Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

Box Class Reference

abstract Box base class More...

#include <editor.h>

Inheritance diagram for Box:

Inheritance graph
[legend]
Collaboration diagram for Box:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Box (Sint16, Sint16)
virtual void act (Sint8)=0
 Activate specified entry, if no entry is selected this is -1.
virtual void input (Uint16)
Uint8 getSize ()
const SDL_Rect & getArea ()
Sint8 getCurrentEntry (Sint16, Sint16)

Public Attributes

string title
 Name of the box.

Protected Member Functions

virtual void update ()
 Draw the box surface.

Protected Attributes

SDL_Surface * surface
 Menu surface to be drawn.
std::vector< string > entries
 List of all Box entry names.
Fontfont
 Font for non highlighted menu entries.
Fontfont_title
 Font for the menu title.
Fontfont_high
 Font for the selected menu entry.
SDL_Rect area
 Area occupied by the selection box.
bool centered
 True if the entries should be draw centered.

Detailed Description

abstract Box base class


The documentation for this class was generated from the following file:
Generated on Sun Feb 5 13:02:35 2006 for Lost Penguins by doxygen 1.3.8