OpenCOVER
coTextButtonGeometry.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_TEXT_BUTTON_GEOMETRY_H
9#define CO_TEXT_BUTTON_GEOMETRY_H
10
11#include "coButtonGeometry.h"
12
13#include <string>
14
15namespace vrui
16{
17
18class OPENVRUIEXPORT coTextButtonGeometry : public coButtonGeometry
19{
20public:
21 coTextButtonGeometry(float width, float height, const std::string &name);
23
24 float getInnerWidth() const
25 {
26 return width;
27 }
28 float getInnerHeight() const
29 {
30 return height;
31 }
32
34 virtual const char *getClassName() const;
36 virtual bool isOfClassName(const char *) const;
37
38 void setColors(float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2);
39
40 float c1r, c1g, c1b, c1a, c2r, c2g, c2b, c2a;
41
42private:
43 float width;
44 float height;
45};
46}
47#endif
collaborative interface manager
Definition: coVRCommunication.h:41
Definition: coButtonGeometry.h:27
Definition: coTextButtonGeometry.h:19
float c1a
Definition: coTextButtonGeometry.h:40
float getInnerWidth() const
Definition: coTextButtonGeometry.h:24
coTextButtonGeometry(float width, float height, const std::string &name)
virtual bool isOfClassName(const char *) const
check if the Element or any ancestor is this classname
void setColors(float r1, float g1, float b1, float a1, float r2, float g2, float b2, float a2)
virtual const char * getClassName() const
get the Element's classname
float getInnerHeight() const
Definition: coTextButtonGeometry.h:28