OpenWalnut
1.5.0dev
|
implements mouse interaction for a osgWidget label More...
#include <WOSGButtonLabel.h>
Public Member Functions | |
WOSGButtonLabel (bool pushable) | |
constructor More... | |
~WOSGButtonLabel () | |
destructor More... | |
virtual bool | mousePush (double, double, const osgWidget::WindowManager *) |
function handles mouse click on label, the function was copied from an osg example, as everything in the osg it wasn't documented, so it's not entirely sure what the params are for and what they do More... | |
bool | clicked () |
getter for clicked flag, resets the flag to false More... | |
bool | pushed () |
getter for pushed flag More... | |
void | setPushed (bool pushed) |
setter More... | |
Private Attributes | |
bool | m_clicked |
if true the label has been clicked since it was last checked for More... | |
bool | m_pushable |
button is pushable or not More... | |
bool | m_pushed |
true if button is pushable and was clicked More... | |
implements mouse interaction for a osgWidget label
Definition at line 35 of file WOSGButtonLabel.h.
|
explicit |
constructor
pushable | denotes if the button is pushable, i.e. keeps a pushed state or not |
Definition at line 27 of file WOSGButtonLabel.cpp.
WOSGButtonLabel::~WOSGButtonLabel | ( | ) |
destructor
Definition at line 41 of file WOSGButtonLabel.cpp.
|
inline |
getter for clicked flag, resets the flag to false
Definition at line 86 of file WOSGButtonLabel.h.
References m_clicked.
Referenced by WOSGButton::clicked().
|
virtual |
function handles mouse click on label, the function was copied from an osg example, as everything in the osg it wasn't documented, so it's not entirely sure what the params are for and what they do
Definition at line 45 of file WOSGButtonLabel.cpp.
References m_clicked, m_pushable, and m_pushed.
|
inline |
getter for pushed flag
Definition at line 93 of file WOSGButtonLabel.h.
References m_pushed.
Referenced by WOSGButton::pushed(), and setPushed().
|
inline |
setter
pushed | if true the button is pushed |
Definition at line 98 of file WOSGButtonLabel.h.
References m_pushed, and pushed().
Referenced by WOSGButton::setPushed().
|
private |
if true the label has been clicked since it was last checked for
Definition at line 79 of file WOSGButtonLabel.h.
Referenced by clicked(), and mousePush().
|
private |
button is pushable or not
Definition at line 81 of file WOSGButtonLabel.h.
Referenced by mousePush().
|
private |
true if button is pushable and was clicked
Definition at line 83 of file WOSGButtonLabel.h.
Referenced by mousePush(), pushed(), and setPushed().