Crazy Eddie's GUI System
0.8.4
|
Base class for TabButtons. A TabButton based class is used internally as the button that appears at the top of a TabControl widget to select the active tab pane. More...
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 |
static const String | EventDragged |
static const String | EventScrolled |
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. | |
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. |
Base class for TabButtons. A TabButton based class is used internally as the button that appears at the top of a TabControl widget to select the active tab pane.
virtual 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.
virtual 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.
virtual 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.
virtual 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.
const String CEGUI::TabButton::EventClicked [static] |
Event fired when the button is clicked. Handlers are passed a const WindowEventArgs reference with WindowEventArgs::window set to the TabButton that was clicked.
const String CEGUI::TabButton::EventDragged [static] |
Event fired when use user attempts to drag the button with middle mouse button. Handlers are passed a const MouseEventArgs reference with all fields valid.
const String CEGUI::TabButton::EventScrolled [static] |
Event fired when the scroll wheel is used on top of the button. Handlers are passed a const MouseEventArgs reference with all fields valid.