aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Menu.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-12-08 16:39:44 (GMT)
committerfluxgen <fluxgen>2003-12-08 16:39:44 (GMT)
commitf5b447362847a7b0dba39cf3e7e1f0fb9f06e1ea (patch)
tree0aedd7ae4b5257ccd2db17fff816b37ecb3f18e7 /src/FbTk/Menu.hh
parentaccee3cd31e44ce34606888fbdc9d64a46448cab (diff)
downloadfluxbox-f5b447362847a7b0dba39cf3e7e1f0fb9f06e1ea.zip
fluxbox-f5b447362847a7b0dba39cf3e7e1f0fb9f06e1ea.tar.bz2
inline
Diffstat (limited to 'src/FbTk/Menu.hh')
-rw-r--r--src/FbTk/Menu.hh38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/FbTk/Menu.hh b/src/FbTk/Menu.hh
index a6c5c52..333f6d8 100644
--- a/src/FbTk/Menu.hh
+++ b/src/FbTk/Menu.hh
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Menu.hh,v 1.23 2003/08/30 01:03:12 fluxgen Exp $ 25// $Id: Menu.hh,v 1.24 2003/12/08 16:39:44 fluxgen Exp $
26 26
27#ifndef FBTK_MENU_HH 27#ifndef FBTK_MENU_HH
28#define FBTK_MENU_HH 28#define FBTK_MENU_HH
@@ -130,28 +130,28 @@ public:
130 @name accessors 130 @name accessors
131 */ 131 */
132 //@{ 132 //@{
133 bool isTorn() const { return torn; } 133 inline bool isTorn() const { return torn; }
134 bool isVisible() const { return visible; } 134 inline bool isVisible() const { return visible; }
135 int screenNumber() const { return m_screen_num; } 135 inline int screenNumber() const { return m_screen_num; }
136 Window window() const { return menu.window.window(); } 136 inline Window window() const { return menu.window.window(); }
137 FbWindow &fbwindow() { return menu.window; } 137 inline FbWindow &fbwindow() { return menu.window; }
138 const FbWindow &fbwindow() const { return menu.window; } 138 inline const FbWindow &fbwindow() const { return menu.window; }
139 FbWindow &titleWindow() { return menu.title; } 139 inline FbWindow &titleWindow() { return menu.title; }
140 FbWindow &frameWindow() { return menu.frame; } 140 inline FbWindow &frameWindow() { return menu.frame; }
141 const std::string &label() const { return menu.label; } 141 inline const std::string &label() const { return menu.label; }
142 int x() const { return menu.x; } 142 inline int x() const { return menu.x; }
143 int y() const { return menu.y; } 143 inline int y() const { return menu.y; }
144 unsigned int width() const { return menu.width; } 144 inline unsigned int width() const { return menu.width; }
145 unsigned int height() const { return menu.height; } 145 inline unsigned int height() const { return menu.height; }
146 unsigned int numberOfItems() const { return menuitems.size(); } 146 inline unsigned int numberOfItems() const { return menuitems.size(); }
147 int currentSubmenu() const { return which_sub; } 147 inline int currentSubmenu() const { return which_sub; }
148 unsigned int titleHeight() const { return menu.title_h; } 148 inline unsigned int titleHeight() const { return menu.title_h; }
149 bool hasSubmenu(unsigned int index) const; 149 bool hasSubmenu(unsigned int index) const;
150 bool isItemSelected(unsigned int index) const; 150 bool isItemSelected(unsigned int index) const;
151 bool isItemEnabled(unsigned int index) const; 151 bool isItemEnabled(unsigned int index) const;
152 const MenuTheme &theme() const { return m_theme; } 152 inline const MenuTheme &theme() const { return m_theme; }
153 inline unsigned char alpha() const { return m_theme.alpha(); } 153 inline unsigned char alpha() const { return m_theme.alpha(); }
154 static Menu *focused() { return s_focused; } 154 inline static Menu *focused() { return s_focused; }
155 /// @return menuitem at index 155 /// @return menuitem at index
156 inline const MenuItem *find(unsigned int index) const { return menuitems[index]; } 156 inline const MenuItem *find(unsigned int index) const { return menuitems[index]; }
157 inline MenuItem *find(unsigned int index) { return menuitems[index]; } 157 inline MenuItem *find(unsigned int index) { return menuitems[index]; }