OpenCOVER
coColoredBackground.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_COLORED_BACKGROUND_H
9#define CO_COLORED_BACKGROUND_H
10
13
20namespace vrui
21{
22
23class OPENVRUIEXPORT coColoredBackground : public coBackground
24{
25public:
27 coUIElement::Material highlightMaterial,
28 coUIElement::Material disableMaterial);
30
31 virtual void setEnabled(bool enabled);
32 virtual void setHighlighted(bool highlighted);
33
37
39 virtual const char *getClassName() const;
41 virtual bool isOfClassName(const char *) const;
42
43private:
44 coUIElement::Material backgroundMaterial;
45 coUIElement::Material highlightMaterial;
46 coUIElement::Material disableMaterial;
47};
48}
49#endif
collaborative interface manager
Definition: coVRCommunication.h:41
Definition: coBackground.h:23
Definition: coColoredBackground.h:24
coUIElement::Material getBackgroundMaterial() const
virtual void setHighlighted(bool highlighted)
virtual void setEnabled(bool enabled)
coColoredBackground(coUIElement::Material backgroundMaterial, coUIElement::Material highlightMaterial, coUIElement::Material disableMaterial)
coUIElement::Material getDisableMaterial() const
coUIElement::Material getHighlightMaterial() const
virtual const char * getClassName() const
get the Element's classname
virtual bool isOfClassName(const char *) const
check if the Element or any ancestor is this classname
Material
Color definitions, to be used whenever a material is needed.
Definition: coUIElement.h:66