+
+ return true;
+}
+
+void RenderStyle::defaultStyle(RenderStyle *s, int screen)
+{
+ s->_screen = screen;
+ s->_file = "";
+
+ s->_root_color = new RenderColor(screen, 0);
+ s->_text_color_focus = new RenderColor(screen, 0xffffff);
+ s->_text_color_unfocus = new RenderColor(screen, 0xffffff);
+ s->_button_color_focus = new RenderColor(screen, 0);
+ s->_button_color_unfocus = new RenderColor(screen, 0);
+ s->_frame_border_color = new RenderColor(screen, 0);
+ s->_frame_border_width = 1;
+ s->_client_border_color_focus = new RenderColor(screen, 0);
+ s->_client_border_color_unfocus = new RenderColor(screen, 0);
+ s->_client_border_width = 1;
+ s->_titlebar_focus = new RenderTexture(screen,
+ false,
+ RenderTexture::Flat,
+ RenderTexture::Bevel1,
+ false,
+ RenderTexture::Solid,
+ false,
+ 0, 0, 0, 0);
+ s->_titlebar_unfocus = new RenderTexture(screen,
+ false,
+ RenderTexture::Flat,
+ RenderTexture::Bevel1,
+ false,
+ RenderTexture::Solid,
+ false,
+ 0, 0, 0, 0);
+
+ s->_label_focus = new RenderTexture(screen,
+ false,
+ RenderTexture::Flat,
+ RenderTexture::Bevel1,
+ true,
+ RenderTexture::Solid,
+ false,
+ 0, 0, 0, 0);
+ s->_label_unfocus = new RenderTexture(screen,
+ false,
+ RenderTexture::Flat,
+ RenderTexture::Bevel1,
+ false,
+ RenderTexture::Solid,
+ false,
+ 0, 0, 0, 0);
+
+ s->_handle_focus = new RenderTexture(screen,
+ false,
+ RenderTexture::Flat,
+ RenderTexture::Bevel1,
+ false,
+ RenderTexture::Solid,
+ false,
+ 0, 0, 0, 0);
+ s->_handle_unfocus = new RenderTexture(screen,
+ false,
+ RenderTexture::Flat,
+ RenderTexture::Bevel1,
+ false,
+ RenderTexture::Solid,
+ false,
+ 0, 0, 0, 0);
+
+ s->_button_unpress_focus = new RenderTexture(screen,
+ false,
+ RenderTexture::Flat,
+ RenderTexture::Bevel1,
+ false,
+ RenderTexture::Solid,
+ false,
+ 0, 0, 0, 0);
+ s->_button_unpress_unfocus = new RenderTexture(screen,
+ false,
+ RenderTexture::Flat,
+ RenderTexture::Bevel1,
+ false,
+ RenderTexture::Solid,
+ false,
+ 0, 0, 0, 0);
+
+ s->_button_press_focus = new RenderTexture(screen,
+ false,
+ RenderTexture::Flat,
+ RenderTexture::Bevel1,
+ false,
+ RenderTexture::Solid,
+ false,
+ 0, 0, 0, 0);
+ s->_button_press_unfocus = new RenderTexture(screen,
+ false,
+ RenderTexture::Flat,
+ RenderTexture::Bevel1,
+ false,
+ RenderTexture::Solid,
+ false,
+ 0, 0, 0, 0);
+
+ s->_grip_focus = new RenderTexture(screen,
+ false,
+ RenderTexture::Flat,
+ RenderTexture::Bevel1,
+ false,
+ RenderTexture::Solid,
+ false,
+ 0, 0, 0, 0);
+ s->_grip_unfocus = new RenderTexture(screen,
+ false,
+ RenderTexture::Flat,
+ RenderTexture::Bevel1,
+ false,
+ RenderTexture::Solid,
+ false,
+ 0, 0, 0, 0);
+
+ s->_label_font = new Font(screen, "Sans-9", false, 0, 0);
+ s->_label_justify = LeftTopJustify;
+
+ s->_max_mask = new PixmapMask();
+ s->_max_mask->w = s->_max_mask->h = 0;
+ s->_max_mask->mask = None;
+
+ s->_icon_mask = new PixmapMask();
+ s->_icon_mask->w = s->_icon_mask->h = 0;
+ s->_icon_mask->mask = None;
+
+ s->_alldesk_mask = new PixmapMask();
+ s->_alldesk_mask->w = s->_alldesk_mask->h = 0;
+ s->_alldesk_mask->mask = 0;
+
+ s->_close_mask = new PixmapMask();
+ s->_close_mask->w = s->_close_mask->h = 8;
+ s->_close_mask->mask = 0;
+
+ s->_bevel_width = 1;
+ s->_handle_width = 4;