X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Fstyle.hh;h=d80c6ab9f5aea87c46a2571fb057a3b2e113fdc0;hb=5dc5cc32b0c00c3bfba8ea5727599f49b56ae817;hp=6b0fefaf50dd74493a5abcfe7cfd5c8215719ad0;hpb=35fcb62ddd4861f857d93941407e3d87d444b2cc;p=chaz%2Fopenbox diff --git a/otk/style.hh b/otk/style.hh index 6b0fefaf..d80c6ab9 100644 --- a/otk/style.hh +++ b/otk/style.hh @@ -26,17 +26,17 @@ public: // private: - otk::BImageControl *image_control; + BImageControl *image_control; - otk::BColor + BColor l_text_focus, l_text_unfocus, b_pic_focus, b_pic_unfocus; - otk::BColor border_color; + BColor border_color; - otk::BFont *font; + BFont *font; - otk::BTexture + BTexture f_focus, f_unfocus, t_focus, t_unfocus, l_focus, l_unfocus, @@ -58,7 +58,7 @@ public: Style(); Style(unsigned int); - Style(unsigned int, otk::BImageControl *); + Style(unsigned int, BImageControl *); ~Style(); void doJustify(const std::string &text, int &start_pos, @@ -66,28 +66,35 @@ public: void readDatabaseMask(const std::string &rname, PixmapMask &pixmapMask, - const otk::Configuration &style); + const Configuration &style); - otk::BTexture readDatabaseTexture(const std::string &rname, + BTexture readDatabaseTexture(const std::string &rname, const std::string &default_color, - const otk::Configuration &style, + const Configuration &style, bool allowNoTexture = false); - otk::BColor readDatabaseColor(const std::string &rname, + BColor readDatabaseColor(const std::string &rname, const std::string &default_color, - const otk::Configuration &style); + const Configuration &style); - otk::BFont *readDatabaseFont(const std::string &rbasename, - const otk::Configuration &style); + BFont *readDatabaseFont(const std::string &rbasename, + const Configuration &style); - void load(otk::Configuration &); + void load(Configuration &); inline unsigned int getHandleWidth(void) const { return handle_width; } inline unsigned int getBevelWidth(void) const { return bevel_width; } inline unsigned int getFrameWidth(void) const { return frame_width; } inline unsigned int getBorderWidth(void) const { return border_width; } - inline void setImageControl(otk::BImageControl *c) { image_control = c; } + inline const BFont &getFont() const { return *font; } + + inline const BColor &getBorderColor() const { return border_color; } + + 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; } // XXX add inline accessors for the rest of the bummy