]>
Dogcows Code - chaz/openbox/blob - otk/style.hh
10 #include "configuration.hh"
19 enum TextJustify
{ LeftJustify
= 1, RightJustify
, CenterJustify
};
20 enum BulletType
{ RoundBullet
= 1, TriangleBullet
, SquareBullet
, NoBullet
};
29 BImageControl
*image_control
;
32 l_text_focus
, l_text_unfocus
,
33 b_pic_focus
, b_pic_unfocus
;
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, 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 Configuration
&style
);
71 BTexture
readDatabaseTexture(const std::string
&rname
,
72 const std::string
&default_color
,
73 const Configuration
&style
,
74 bool allowNoTexture
= false);
76 BColor
readDatabaseColor(const std::string
&rname
,
77 const std::string
&default_color
,
78 const Configuration
&style
);
80 BFont
*readDatabaseFont(const std::string
&rbasename
,
81 const Configuration
&style
);
83 void load(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 const BFont
*getFont() const { return font
; }
92 inline void setImageControl(BImageControl
*c
) { image_control
= c
; }
93 inline void setScreenNumber(unsigned int scr
) { screen_number
= scr
; }
95 // XXX add inline accessors for the rest of the bummy
This page took 0.036552 seconds and 4 git commands to generate.