Public Member Functions | Protected Member Functions | Private Member Functions

CloseButton Class Reference

A Button on Windows that "Hides" the window and its children. More...

#include <Window.h>

Inheritance diagram for CloseButton:
Button Control Broadcaster Listener

List of all members.

Public Member Functions

 CloseButton ()
 ~CloseButton ()

Protected Member Functions

void initialize ()
void drawSkin ()
virtual void drawPlain ()

Private Member Functions

void onClick (Event *event)
void onPressed (Event *event)
void onMouseButtonUp (Event *event)

Detailed Description

A Button on Windows that "Hides" the window and its children.


Constructor & Destructor Documentation

CloseButton::CloseButton (  )  [inline]
CloseButton::~CloseButton (  )  [inline]

Member Function Documentation

virtual void CloseButton::drawPlain (  )  [inline, protected, virtual]

Draws a Control without a Skin.

Reimplemented from Button.

void CloseButton::drawSkin (  )  [inline, protected, virtual]

Draws a button skinned.

Todo:
This method only supports type SkinPartType::PART_ENNEAD. This should also support SkinPartType::PART_TRIAD.

Reimplemented from Button.

void CloseButton::initialize (  )  [inline, protected, virtual]

Initializes the Button.

Reimplemented from Button.

void CloseButton::onClick ( Event event  )  [inline, private, virtual]

Button's onClick handler.

Notifies a click Listener and pushes a Click event to it.

Warning:
The event pushed into the click Listener is owned by the Button and as such is destroyed by Button. Do not store a direct pointer to the Event.

Reimplemented from Button.

void CloseButton::onMouseButtonUp ( Event event  )  [inline, private, virtual]

Reimplemented from Button.

void CloseButton::onPressed ( Event event  )  [inline, private, virtual]

Reimplemented from Button.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines