Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Teddy::PhysicalComponents::ActionButton Class Reference

Action button. More...

#include <ActionButton.h>

Inheritance diagram for Teddy::PhysicalComponents::ActionButton:

Inheritance graph
[legend]
Collaboration diagram for Teddy::PhysicalComponents::ActionButton:

Collaboration graph
[legend]
List of all members.

Public Methods

 ActionButton (std::string name, Teddy::Signals::Functor0< bool > *f, const int type=Teddy::PhysicalComponents::Event::MouseButtonUpEvent_ID)
 Constructor. More...

 ActionButton (std::string name, Teddy::Signals::Functor1< bool, const Event & > *f, const int type=Teddy::PhysicalComponents::Event::MouseButtonUpEvent_ID)
 ActionButton (std::string name, Teddy::Signals::Functor1< bool, void * > *f, void *data, const int type=Teddy::PhysicalComponents::Event::MouseButtonUpEvent_ID)
virtual ~ActionButton ()
 Destructor. More...

virtual void event (const Event &e)
virtual bool doesEvent (int type)
virtual void drawSelf ()
 Drawing code. More...


Protected Attributes

std::string label
int v_type
int e_type
int d_type
Teddy::Signals::Holder0< bool > v_holder
Teddy::Signals::Holder1< bool,
const Event & > 
e_holder
Teddy::Signals::Holder1< bool,
void * > 
d_holder
void * d_data

Detailed Description

Action button.

Definition at line 43 of file ActionButton.h.


Constructor & Destructor Documentation

Teddy::PhysicalComponents::ActionButton::ActionButton std::string    name,
Teddy::Signals::Functor0< bool > *    f,
const int    type = Teddy::PhysicalComponents::Event::MouseButtonUpEvent_ID
 

Constructor.

Definition at line 41 of file ActionButton.cpp.

References d_data, d_type, Teddy::PhysicalComponents::Area::drawing_ordering, e_type, Teddy::PhysicalComponents::Area::event_ordering, Teddy::PhysicalComponents::Area::fill_base_pixels, Teddy::Signals::Holder0< bool >::functor, Teddy::MixIn::Named::name, Teddy::PhysicalComponents::Area::post_self, Teddy::PhysicalComponents::Area::pre_self, Teddy::PhysicalComponents::Area::style, v_holder, and v_type.

Teddy::PhysicalComponents::ActionButton::ActionButton std::string    name,
Teddy::Signals::Functor1< bool, const Event & > *    f,
const int    type = Teddy::PhysicalComponents::Event::MouseButtonUpEvent_ID
 

Definition at line 60 of file ActionButton.cpp.

References d_data, d_type, Teddy::PhysicalComponents::Area::drawing_ordering, e_holder, e_type, Teddy::PhysicalComponents::Area::event_ordering, Teddy::PhysicalComponents::Area::fill_base_pixels, Teddy::Signals::Holder1< bool, const Event & >::functor, Teddy::MixIn::Named::name, Teddy::PhysicalComponents::Area::post_self, Teddy::PhysicalComponents::Area::pre_self, Teddy::PhysicalComponents::Area::style, and v_type.

Teddy::PhysicalComponents::ActionButton::ActionButton std::string    name,
Teddy::Signals::Functor1< bool, void * > *    f,
void *    data,
const int    type = Teddy::PhysicalComponents::Event::MouseButtonUpEvent_ID
 

Definition at line 79 of file ActionButton.cpp.

References d_data, d_holder, d_type, Teddy::PhysicalComponents::Area::drawing_ordering, e_type, Teddy::PhysicalComponents::Area::event_ordering, Teddy::PhysicalComponents::Area::fill_base_pixels, Teddy::Signals::Holder1< bool, void * >::functor, Teddy::MixIn::Named::name, Teddy::PhysicalComponents::Area::post_self, Teddy::PhysicalComponents::Area::pre_self, Teddy::PhysicalComponents::Area::style, and v_type.

Teddy::PhysicalComponents::ActionButton::~ActionButton   [virtual]
 

Destructor.

Definition at line 119 of file ActionButton.cpp.


Member Function Documentation

bool Teddy::PhysicalComponents::ActionButton::doesEvent int    type [virtual]
 

Reimplemented from Teddy::PhysicalComponents::EventListener.

Definition at line 110 of file ActionButton.cpp.

References d_type, e_type, and v_type.

void Teddy::PhysicalComponents::ActionButton::drawSelf   [virtual]
 

Drawing code.

Reimplemented from Teddy::PhysicalComponents::Area.

Definition at line 124 of file ActionButton.cpp.

References Teddy::PhysicalComponents::Area::drawBiColRect, Teddy::PhysicalComponents::Area::drawFillRect, Teddy::PhysicalComponents::Area::drawString, label, Teddy::PhysicalComponents::Area::size, Teddy::PhysicalComponents::Area::style, and Teddy::Graphics::ViewClient::view.

void Teddy::PhysicalComponents::ActionButton::event const Event   e [virtual]
 

Reimplemented from Teddy::PhysicalComponents::EventListener.

Definition at line 98 of file ActionButton.cpp.

References d_data, d_holder, d_type, e_holder, e_type, v_holder, and v_type.


Member Data Documentation

void* Teddy::PhysicalComponents::ActionButton::d_data [protected]
 

Definition at line 65 of file ActionButton.h.

Referenced by ActionButton, and event.

Teddy::Signals::Holder1<bool,void *> Teddy::PhysicalComponents::ActionButton::d_holder [protected]
 

Definition at line 64 of file ActionButton.h.

Referenced by ActionButton, and event.

int Teddy::PhysicalComponents::ActionButton::d_type [protected]
 

Definition at line 61 of file ActionButton.h.

Referenced by ActionButton, doesEvent, and event.

Teddy::Signals::Holder1<bool,const Event &> Teddy::PhysicalComponents::ActionButton::e_holder [protected]
 

Definition at line 63 of file ActionButton.h.

Referenced by ActionButton, and event.

int Teddy::PhysicalComponents::ActionButton::e_type [protected]
 

Definition at line 60 of file ActionButton.h.

Referenced by ActionButton, doesEvent, and event.

std::string Teddy::PhysicalComponents::ActionButton::label [protected]
 

Definition at line 58 of file ActionButton.h.

Referenced by drawSelf.

Teddy::Signals::Holder0<bool> Teddy::PhysicalComponents::ActionButton::v_holder [protected]
 

Definition at line 62 of file ActionButton.h.

Referenced by ActionButton, and event.

int Teddy::PhysicalComponents::ActionButton::v_type [protected]
 

Definition at line 59 of file ActionButton.h.

Referenced by ActionButton, doesEvent, and event.


The documentation for this class was generated from the following files: