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

Teddy::PhysicalComponents::Button Class Reference

Simple pushbutton. More...

#include <Button.h>

Inheritance diagram for Teddy::PhysicalComponents::Button:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 Button (std::string label)
 Constructor. More...

virtual void drawSelf ()
 Area interface. More...


Protected Types

enum  e_state { up, pressed }

Protected Attributes

e_state state
std::string label

Detailed Description

Simple pushbutton.

Definition at line 37 of file Button.h.


Member Enumeration Documentation

enum Teddy::PhysicalComponents::Button::e_state [protected]
 

Enumeration values:
up 
pressed 

Definition at line 45 of file Button.h.


Constructor & Destructor Documentation

Teddy::PhysicalComponents::Button::Button std::string    label
 

Constructor.

Definition at line 41 of file Button.cpp.

References Teddy::PhysicalComponents::Area::drawing_ordering, Teddy::PhysicalComponents::Area::event_ordering, Teddy::PhysicalComponents::Area::fill_base_pixels, Teddy::MixIn::Named::name, Teddy::PhysicalComponents::Area::post_self, state, Teddy::PhysicalComponents::Area::style, and up.


Member Function Documentation

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

Area interface.

Reimplemented from Teddy::PhysicalComponents::Area.

Definition at line 64 of file Button.cpp.

References Teddy::PhysicalComponents::Area::drawString, label, and Teddy::PhysicalComponents::Area::style.


Member Data Documentation

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

Definition at line 50 of file Button.h.

Referenced by drawSelf.

e_state Teddy::PhysicalComponents::Button::state [protected]
 

Definition at line 49 of file Button.h.

Referenced by Button.


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