10 #include "configuration.hh"
19 enum TextJustify { LeftJustify = 1, RightJustify, CenterJustify };
20 enum BulletType { RoundBullet = 1, TriangleBullet, SquareBullet, NoBullet };
29 otk::BImageControl *image_control;
32 l_text_focus, l_text_unfocus,
33 b_pic_focus, b_pic_unfocus;
35 otk::BColor border_color;
45 b_pressed, b_pressed_focus, b_pressed_unfocus,
48 PixmapMask close_button, max_button, icon_button, stick_button;
51 unsigned int handle_width, bevel_width, frame_width, border_width;
53 unsigned int screen_number;
55 bool shadow_fonts, aa_fonts;
61 Style(unsigned int, otk::BImageControl *);
64 void doJustify(const std::string &text, int &start_pos,
65 unsigned int max_length, unsigned int modifier) const;
67 void readDatabaseMask(const std::string &rname,
68 PixmapMask &pixmapMask,
69 const otk::Configuration &style);
71 otk::BTexture readDatabaseTexture(const std::string &rname,
72 const std::string &default_color,
73 const otk::Configuration &style,
74 bool allowNoTexture = false);
76 otk::BColor readDatabaseColor(const std::string &rname,
77 const std::string &default_color,
78 const otk::Configuration &style);
80 otk::BFont *readDatabaseFont(const std::string &rbasename,
81 const otk::Configuration &style);
83 void load(otk::Configuration &);
85 inline unsigned int getHandleWidth(void) const { return handle_width; }
86 inline unsigned int getBevelWidth(void) const { return bevel_width; }
87 inline unsigned int getFrameWidth(void) const { return frame_width; }
88 inline unsigned int getBorderWidth(void) const { return border_width; }
90 inline void setImageControl(otk::BImageControl *c) { image_control = c; }
91 inline void setScreenNumber(unsigned int scr) { screen_number = scr; }
93 // XXX add inline accessors for the rest of the bummy