aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MenuTheme.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/MenuTheme.hh')
-rw-r--r--src/FbTk/MenuTheme.hh82
1 files changed, 41 insertions, 41 deletions
diff --git a/src/FbTk/MenuTheme.hh b/src/FbTk/MenuTheme.hh
index 4102552..174e0b5 100644
--- a/src/FbTk/MenuTheme.hh
+++ b/src/FbTk/MenuTheme.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: MenuTheme.hh,v 1.14 2004/06/07 21:02:49 fluxgen Exp $ 22// $Id: MenuTheme.hh,v 1.15 2004/06/13 00:33:06 fluxgen Exp $
23 23
24#ifndef FBTK_MENUTHEME_HH 24#ifndef FBTK_MENUTHEME_HH
25#define FBTK_MENUTHEME_HH 25#define FBTK_MENUTHEME_HH
@@ -54,72 +54,72 @@ public:
54 @name text colors 54 @name text colors
55 */ 55 */
56 ///@{ 56 ///@{
57 const FbTk::Color &titleTextColor() const { return *t_text; } 57 inline const FbTk::Color &titleTextColor() const { return *t_text; }
58 const FbTk::Color &frameTextColor() const { return *f_text; } 58 inline const FbTk::Color &frameTextColor() const { return *f_text; }
59 const FbTk::Color &highlightTextColor() const { return *h_text; } 59 inline const FbTk::Color &highlightTextColor() const { return *h_text; }
60 const FbTk::Color &disableTextColor() const { return *d_text; } 60 inline const FbTk::Color &disableTextColor() const { return *d_text; }
61 ///@} 61 ///@}
62 /** 62 /**
63 @name textures 63 @name textures
64 */ 64 */
65 ///@{ 65 ///@{
66 const FbTk::Texture &titleTexture() const { return *title; } 66 inline const FbTk::Texture &titleTexture() const { return *title; }
67 const FbTk::Texture &frameTexture() const { return *frame; } 67 inline const FbTk::Texture &frameTexture() const { return *frame; }
68 const FbTk::Texture &hiliteTexture() const { return *hilite; } 68 inline const FbTk::Texture &hiliteTexture() const { return *hilite; }
69 ///@} 69 ///@}
70 70
71 const FbTk::PixmapWithMask &bulletPixmap() const { return *m_bullet_pixmap; } 71 inline const FbTk::PixmapWithMask &bulletPixmap() const { return *m_bullet_pixmap; }
72 const FbTk::PixmapWithMask &selectedPixmap() const { return *m_selected_pixmap; } 72 inline const FbTk::PixmapWithMask &selectedPixmap() const { return *m_selected_pixmap; }
73 const FbTk::PixmapWithMask &unselectedPixmap() const { return *m_unselected_pixmap; } 73 inline const FbTk::PixmapWithMask &unselectedPixmap() const { return *m_unselected_pixmap; }
74 /** 74 /**
75 @name fonts 75 @name fonts
76 */ 76 */
77 ///@{ 77 ///@{
78 const FbTk::Font &titleFont() const { return *titlefont; } 78 inline const FbTk::Font &titleFont() const { return *titlefont; }
79 FbTk::Font &titleFont() { return *titlefont; } 79 inline FbTk::Font &titleFont() { return *titlefont; }
80 const FbTk::Font &frameFont() const { return *framefont; } 80 inline const FbTk::Font &frameFont() const { return *framefont; }
81 FbTk::Font &frameFont() { return *framefont; } 81 inline FbTk::Font &frameFont() { return *framefont; }
82 ///@} 82 ///@}
83 83
84 FbTk::Justify frameFontJustify() const { return *framefont_justify; } 84 inline FbTk::Justify frameFontJustify() const { return *framefont_justify; }
85 FbTk::Justify titleFontJustify() const { return *titlefont_justify; } 85 inline FbTk::Justify titleFontJustify() const { return *titlefont_justify; }
86 86
87 /** 87 /**
88 @name graphic contexts 88 @name graphic contexts
89 */ 89 */
90 ///@{ 90 ///@{
91 const GContext &titleTextGC() const { return t_text_gc; } 91 inline const GContext &titleTextGC() const { return t_text_gc; }
92 const GContext &frameTextGC() const { return f_text_gc; } 92 inline const GContext &frameTextGC() const { return f_text_gc; }
93 const GContext &hiliteTextGC() const { return h_text_gc; } 93 inline const GContext &hiliteTextGC() const { return h_text_gc; }
94 const GContext &disableTextGC() const { return d_text_gc; } 94 inline const GContext &disableTextGC() const { return d_text_gc; }
95 const GContext &hiliteGC() const { return hilite_gc; } 95 inline const GContext &hiliteGC() const { return hilite_gc; }
96 GContext &titleTextGC() { return t_text_gc; } 96 inline GContext &titleTextGC() { return t_text_gc; }
97 GContext &frameTextGC() { return f_text_gc; } 97 inline GContext &frameTextGC() { return f_text_gc; }
98 GContext &hiliteTextGC() { return h_text_gc; } 98 inline GContext &hiliteTextGC() { return h_text_gc; }
99 GContext &disableTextGC() { return d_text_gc; } 99 inline GContext &disableTextGC() { return d_text_gc; }
100 GContext &hiliteGC() { return hilite_gc; } 100 inline GContext &hiliteGC() { return hilite_gc; }
101 ///@} 101 ///@}
102 BulletType bullet() const { return *m_bullet; } 102 inline BulletType bullet() const { return *m_bullet; }
103 FbTk::Justify bulletPos() const { return *bullet_pos; } 103 inline FbTk::Justify bulletPos() const { return *bullet_pos; }
104 104
105 unsigned int titleHeight() const { return *m_title_height; } 105 inline unsigned int titleHeight() const { return *m_title_height; }
106 unsigned int itemHeight() const { return *m_item_height; } 106 inline unsigned int itemHeight() const { return *m_item_height; }
107 unsigned int borderWidth() const { return *m_border_width; } 107 inline unsigned int borderWidth() const { return *m_border_width; }
108 unsigned int bevelWidth() const { return *m_bevel_width; } 108 inline unsigned int bevelWidth() const { return *m_bevel_width; }
109 109
110 inline unsigned char alpha() const { return m_alpha; } 110 inline unsigned char alpha() const { return m_alpha; }
111 void setAlpha(unsigned char alpha) { m_alpha = alpha; } 111 inline void setAlpha(unsigned char alpha) { m_alpha = alpha; }
112 // this isn't actually a theme item 112 // this isn't actually a theme item
113 // but we'll let it be here for now, until there's a better way to 113 // but we'll let it be here for now, until there's a better way to
114 // get resources into menu 114 // get resources into menu
115 void setMenuMode(MenuMode mode) { m_menumode = mode; } 115 inline void setMenuMode(MenuMode mode) { m_menumode = mode; }
116 MenuMode menuMode() const { return m_menumode; } 116 inline MenuMode menuMode() const { return m_menumode; }
117 void setDelayOpen(int msec) { m_delayopen = msec; } 117 inline void setDelayOpen(int msec) { m_delayopen = msec; }
118 void setDelayClose(int msec) { m_delayclose = msec; } 118 inline void setDelayClose(int msec) { m_delayclose = msec; }
119 int delayOpen() const { return m_delayopen; } 119 inline int delayOpen() const { return m_delayopen; }
120 int delayClose() const { return m_delayclose; } 120 inline int delayClose() const { return m_delayclose; }
121 121
122 const FbTk::Color &borderColor() const { return *m_border_color; } 122 inline const FbTk::Color &borderColor() const { return *m_border_color; }
123 123
124private: 124private:
125 FbTk::ThemeItem<FbTk::Color> t_text, f_text, h_text, d_text; 125 FbTk::ThemeItem<FbTk::Color> t_text, f_text, h_text, d_text;