Crazy Eddie's GUI System  0.8.4
CEGUI::TabButton Class Reference

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...

+ Inheritance diagram for CEGUI::TabButton:
+ Collaboration diagram for CEGUI::TabButton:

List of all members.

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.
WindowgetTargetWindow (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.
Windowd_targetWindow
 The target window which this button is representing.

Detailed Description

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.


Member Function Documentation

virtual void CEGUI::TabButton::onMouseButtonDown ( MouseEventArgs e) [protected, virtual]

Handler called when a mouse button has been depressed within this window's area.

Parameters:
eMouseEventArgs 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.

Parameters:
eMouseEventArgs 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.

Parameters:
eMouseEventArgs 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.

Parameters:
eMouseEventArgs object. All fields are valid.

Reimplemented from CEGUI::Window.


Member Data Documentation

Event fired when the button is clicked. Handlers are passed a const WindowEventArgs reference with WindowEventArgs::window set to the TabButton that was clicked.

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.

Event fired when the scroll wheel is used on top of the button. Handlers are passed a const MouseEventArgs reference with all fields valid.

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends