OpenCOVER
coLabelSubMenuToolboxItem.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_LABELSUBMENU_TOOLBOXITEM_H
9#define CO_LABELSUBMENU_TOOLBOXITEM_H
10
12#include <string>
13
14namespace vrui
15{
16
17class coLabel;
18
25class OPENVRUIEXPORT coLabelSubMenuToolboxItem
27{
28protected:
30
31public:
32 coLabelSubMenuToolboxItem(const std::string &name);
34
35 virtual void setAttachment(int);
36
38 virtual const char *getClassName() const;
40 virtual bool isOfClassName(const char *name) const;
41
43 virtual void setLabel(const std::string &labelString);
44
45 virtual void buttonEvent(coRotButton *)
46 {
47 }
48};
49}
50#endif
collaborative interface manager
Definition: coVRCommunication.h:41
Definition: coLabel.h:26
Definition: coLabelSubMenuToolboxItem.h:27
coLabelSubMenuToolboxItem(const std::string &name)
virtual bool isOfClassName(const char *name) const
check if the Element or any ancestor is this classname
virtual void setAttachment(int)
sets the attachment border
coLabel * label
Definition: coLabelSubMenuToolboxItem.h:29
virtual const char * getClassName() const
get the Element's classname
virtual void setLabel(const std::string &labelString)
change the label text
virtual void buttonEvent(coRotButton *)
Definition: coLabelSubMenuToolboxItem.h:45
Definition: coRotButton.h:36
Definition: coSubMenuToolboxItem.h:34