OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
coRowMenuItem.h
Go to the documentation of this file.
1 /* This file is part of COVISE.
2 
3  You can use it under the terms of the GNU Lesser General Public License
4  version 2.1 or later, see lgpl-2.1.txt.
5 
6  * License: LGPL 2+ */
7 
8 #ifndef CO_ROWMENUITEM_H
9 #define CO_ROWMENUITEM_H
10 
11 #include <OpenVRUI/coMenuItem.h>
12 
13 namespace vrui
14 {
15 
16 class coMenuContainer;
17 class coColoredBackground;
18 class coMenu;
19 class coLabel;
20 
30 class OPENVRUIEXPORT coRowMenuItem : public coMenuItem
31 {
32 protected:
33  static const int LEFTMARGIN;
37 
38 public:
39  coRowMenuItem(const std::string &labelString);
40  coRowMenuItem(const std::string &symbolicName, const std::string &labelString);
41  virtual ~coRowMenuItem();
42  virtual void setLabel(coLabel *label);
43  coLabel *getLabel();
44  void setLabel(const std::string &labelString);
45  virtual coUIElement *getUIElement();
46 
48  virtual const char *getClassName() const;
50  virtual bool isOfClassName(const char *) const;
51 
53  virtual void setActive(bool a);
54 
55  virtual void selected(bool selected);
56 };
57 }
58 #endif
static const int LEFTMARGIN
size of margin at left edge of menu item
Definition: coRowMenuItem.h:33
coLabel * label
label text
Definition: coRowMenuItem.h:36
Definition: coLabel.h:25
Definition: coRowMenuItem.h:30
coColoredBackground * background
menu item background which changes its color when menu item is selected
Definition: coRowMenuItem.h:35
Definition: coMenuContainer.h:19
coMenuContainer * container
container to store menu elements
Definition: coRowMenuItem.h:34
Definition: coUIElement.h:52
Definition: coColoredBackground.h:23
Definition: coMenuItem.h:44