diff options
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/Menu.hh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/FbTk/Menu.hh b/src/FbTk/Menu.hh index 9e0d79f..5dd0eb8 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.14 2003/04/25 16:23:59 fluxgen Exp $ | 25 | // $Id: Menu.hh,v 1.15 2003/05/13 00:24:00 fluxgen Exp $ |
26 | 26 | ||
27 | #ifndef FBTK_MENU_HH | 27 | #ifndef FBTK_MENU_HH |
28 | #define FBTK_MENU_HH | 28 | #define FBTK_MENU_HH |
@@ -142,16 +142,17 @@ public: | |||
142 | bool isItemSelected(unsigned int index) const; | 142 | bool isItemSelected(unsigned int index) const; |
143 | bool isItemEnabled(unsigned int index) const; | 143 | bool isItemEnabled(unsigned int index) const; |
144 | static unsigned char alpha() { return s_alpha; } | 144 | static unsigned char alpha() { return s_alpha; } |
145 | /// @return menuitem at index | ||
146 | inline const MenuItem *find(unsigned int index) const { return menuitems[index]; } | ||
147 | inline MenuItem *find(unsigned int index) { return menuitems[index]; } | ||
145 | //@} | 148 | //@} |
146 | 149 | ||
147 | protected: | 150 | protected: |
148 | 151 | ||
149 | inline MenuItem *find(unsigned int index) const { return menuitems[index]; } | ||
150 | inline void setTitleVisibility(bool b) { title_vis = b; } | 152 | inline void setTitleVisibility(bool b) { title_vis = b; } |
151 | inline void setMovable(bool b) { movable = b; } | 153 | inline void setMovable(bool b) { movable = b; } |
152 | inline void setHideTree(bool h) { hide_tree = h; } | 154 | inline void setHideTree(bool h) { hide_tree = h; } |
153 | 155 | ||
154 | |||
155 | virtual void itemSelected(int button, unsigned int index) { } | 156 | virtual void itemSelected(int button, unsigned int index) { } |
156 | virtual void drawItem(unsigned int index, bool highlight = false, | 157 | virtual void drawItem(unsigned int index, bool highlight = false, |
157 | bool clear= false, bool render_trans = true, | 158 | bool clear= false, bool render_trans = true, |