Public Member Functions | |
TabButton (const String &type, const String &name) | |
Constructor for base TabButton class. | |
virtual | ~TabButton (void) |
Destructor for TabButton class. | |
virtual void | setSelected (bool selected) |
Set whether this tab button is selected or not. | |
bool | isSelected (void) const |
Return whether this tab button is selected or not. | |
void | setTargetWindow (Window *wnd) |
Set the target window which is the content pane which this button is covering. | |
Window * | getTargetWindow (void) |
Get the target window which is the content pane which this button is covering. | |
Static Public Attributes | |
static const String | EventNamespace |
Namespace for global events. | |
static const String | WidgetTypeName |
Window factory name. | |
static const String | EventClicked |
The button was clicked. | |
static const String | EventDragged |
Attempt to drag the button with middle button. | |
static const String | EventScrolled |
Scroll wheel activated on top of the button. | |
Protected Member Functions | |
virtual void | onClicked (WindowEventArgs &e) |
handler invoked internally when the button is clicked. | |
virtual void | onMouseButtonUp (MouseEventArgs &e) |
Handler called when a mouse button has been released within this window's area. | |
virtual void | onMouseButtonDown (MouseEventArgs &e) |
Handler called when a mouse button has been depressed within this window's area. | |
virtual void | onMouseWheel (MouseEventArgs &e) |
Handler called when the mouse wheel (z-axis) position changes within this window's area. | |
virtual void | onMouseMove (MouseEventArgs &e) |
Handler called when the mouse cursor has been moved within this window's area. | |
virtual bool | testClassName_impl (const String &class_name) const |
Return whether this window was inherited from the given class name at some point in the inheritance hierarchy. | |
Protected Attributes | |
bool | d_selected |
Is this button selected? | |
bool | d_dragging |
In drag mode or not. | |
Window * | d_targetWindow |
The target window which this button is representing. |
void CEGUI::TabButton::onMouseButtonDown | ( | MouseEventArgs & | e | ) | [protected, virtual] |
Handler called when a mouse button has been depressed within this window's area.
e | MouseEventArgs object. All fields are valid. |
Reimplemented from CEGUI::ButtonBase.
References CEGUI::MouseEventArgs::button, CEGUI::Window::captureInput(), d_dragging, EventDragged, EventNamespace, CEGUI::EventSet::fireEvent(), CEGUI::EventArgs::handled, and CEGUI::MiddleButton.
void CEGUI::TabButton::onMouseButtonUp | ( | MouseEventArgs & | e | ) | [protected, virtual] |
Handler called when a mouse button has been released within this window's area.
e | MouseEventArgs object. All fields are valid. |
Reimplemented from CEGUI::ButtonBase.
References CEGUI::MouseEventArgs::button, d_dragging, CEGUI::System::getGUISheet(), CEGUI::System::getSingleton(), CEGUI::Window::getTargetChildAtPosition(), CEGUI::EventArgs::handled, CEGUI::ButtonBase::isPushed(), CEGUI::LeftButton, CEGUI::MiddleButton, onClicked(), CEGUI::MouseEventArgs::position, and CEGUI::Window::releaseInput().
void CEGUI::TabButton::onMouseMove | ( | MouseEventArgs & | e | ) | [protected, virtual] |
Handler called when the mouse cursor has been moved within this window's area.
e | MouseEventArgs object. All fields are valid. |
Reimplemented from CEGUI::ButtonBase.
References d_dragging, EventDragged, EventNamespace, CEGUI::EventSet::fireEvent(), and CEGUI::EventArgs::handled.
Referenced by onMouseWheel().
void CEGUI::TabButton::onMouseWheel | ( | MouseEventArgs & | e | ) | [protected, virtual] |
Handler called when the mouse wheel (z-axis) position changes within this window's area.
e | MouseEventArgs object. All fields are valid. |
Reimplemented from CEGUI::Window.
References EventNamespace, EventScrolled, CEGUI::EventSet::fireEvent(), and onMouseMove().
virtual bool CEGUI::TabButton::testClassName_impl | ( | const String & | class_name | ) | const [inline, protected, virtual] |
Return whether this window was inherited from the given class name at some point in the inheritance hierarchy.
class_name | The class name that is to be checked. |
Reimplemented from CEGUI::ButtonBase.
References CEGUI::ButtonBase::testClassName_impl().