X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Fstyle.hh;h=c024ade9bb12b27f71ff57c98b0f6ba9e619a8c7;hb=74cb09bb2cc4832463a57743b1495eef24237d2a;hp=d13a1282c3e8dc59d50f51121ed8a9004c97516e;hpb=6852efaa9e4c5915aba5f9895a8f09cd9593083e;p=chaz%2Fopenbox diff --git a/otk/style.hh b/otk/style.hh index d13a1282..c024ade9 100644 --- a/otk/style.hh +++ b/otk/style.hh @@ -62,13 +62,9 @@ public: public: Style(); - Style(unsigned int); - Style(unsigned int, BImageControl *); + Style(BImageControl *); ~Style(); - void doJustify(const std::string &text, int &start_pos, - unsigned int max_length, unsigned int modifier) const; - void readDatabaseMask(const std::string &rname, PixmapMask &pixmapMask, const Configuration &style); @@ -85,7 +81,7 @@ public: BFont *readDatabaseFont(const std::string &rbasename, const Configuration &style); - void load(Configuration &); + void load(const Configuration &style); inline BColor *getBorderColor(void) { return &border_color; } @@ -111,7 +107,7 @@ public: inline BTexture *getButtonUnfocus(void) { return &b_unfocus; } inline BTexture *getButtonPressedFocus(void) - { return &b_pressed_focus; } + { return &b_pressed; } inline BTexture *getButtonPressedUnfocus(void) { return &b_pressed_unfocus; } @@ -124,6 +120,11 @@ public: inline unsigned int getBorderWidth(void) const { return border_width; } inline const BFont &getFont() const { return *font; } + + inline void setShadowFonts(bool fonts) { shadow_fonts = fonts; } + inline bool hasShadowFonts(void) const { return shadow_fonts; } + + inline void setAAFonts(bool fonts) { aa_fonts = fonts; } inline bool hasAAFonts(void) const { return aa_fonts; } inline TextJustify textJustify(void) { return justify; } @@ -134,8 +135,10 @@ public: inline const BTexture &getFrameFocus() const { return f_focus; } inline const BTexture &getFrameUnfocus() const { return f_unfocus; } - inline void setImageControl(BImageControl *c) { image_control = c; } - inline void setScreenNumber(unsigned int scr) { screen_number = scr; } + inline void setImageControl(BImageControl *c) { + image_control = c; + screen_number = c->getScreenInfo()->getScreenNumber(); + } inline unsigned int getScreen(void) { return screen_number; } // XXX add inline accessors for the rest of the bummy