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

Teddy::PhysicalComponents::Label Class Reference

Simple text label. More...

#include <Label.h>

Inheritance diagram for Teddy::PhysicalComponents::Label:

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

Collaboration graph
[legend]
List of all members.

Public Methods

 Label (char *label)
 Constructor. More...

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

void setText (char *text)
char * getText ()

Protected Attributes

char * text

Detailed Description

Simple text label.

Definition at line 40 of file Label.h.


Constructor & Destructor Documentation

Teddy::PhysicalComponents::Label::Label char *    label
 

Constructor.

Definition at line 37 of file Label.cpp.

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


Member Function Documentation

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

Area interface.

Reimplemented from Teddy::PhysicalComponents::Area.

Definition at line 45 of file Label.cpp.

References Teddy::PhysicalComponents::Area::drawString, Teddy::PhysicalComponents::Area::style, text, and Teddy::Graphics::ViewClient::view.

char * Teddy::PhysicalComponents::Label::getText  
 

Definition at line 60 of file Label.cpp.

References text.

void Teddy::PhysicalComponents::Label::setText char *    text
 

Definition at line 55 of file Label.cpp.

References text.


Member Data Documentation

char* Teddy::PhysicalComponents::Label::text [protected]
 

Definition at line 50 of file Label.h.

Referenced by drawSelf, getText, and setText.


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