CEGUI::PushButton Class Reference

Base class to provide logic for push button type widgets. More...

Inheritance diagram for CEGUI::PushButton:

Inheritance graph
[legend]
Collaboration diagram for CEGUI::PushButton:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PushButton (const String &type, const String &name)
 Constructor for base PushButton class.
virtual ~PushButton (void)
 Destructor for PushButton class.

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.

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


Detailed Description

Base class to provide logic for push button type widgets.

Member Function Documentation

void CEGUI::PushButton::onMouseButtonUp ( MouseEventArgs e  )  [protected, virtual]

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

Parameters:
e MouseEventArgs object. All fields are valid.

Reimplemented from CEGUI::ButtonBase.

References CEGUI::MouseEventArgs::button, CEGUI::System::getGUISheet(), CEGUI::System::getSingleton(), CEGUI::Window::getTargetChildAtPosition(), CEGUI::EventArgs::handled, CEGUI::ButtonBase::isPushed(), CEGUI::LeftButton, onClicked(), and CEGUI::MouseEventArgs::position.

virtual bool CEGUI::PushButton::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.

Parameters:
class_name The class name that is to be checked.
Returns:
true if this window was inherited from class_name. false if not.

Reimplemented from CEGUI::ButtonBase.

Reimplemented in CEGUI::Thumb.

References CEGUI::ButtonBase::testClassName_impl().

Referenced by CEGUI::Thumb::testClassName_impl().


Generated on Thu Nov 27 20:34:37 2008 for Crazy Eddies GUI System by  doxygen 1.5.7.1