SDLPP::Component Class Reference

Inheritance diagram for SDLPP::Component:
SDLPP::OButton SDLPP::RootComponent

List of all members.

Public Member Functions

 Component (Component *parent=0)
virtual void draw (Bitmap target)
Componentadd_child (const Component &c)
virtual void draw ()
const iRect2get_rect () const
const Componentget_parent () const
bool inside (const iVec2 &p) const
virtual void button_down (int button, const iVec2 &position)
virtual void button_up (int button, const iVec2 &position)
virtual void mouse_move (int button, const iVec2 &position)

Protected Types

typedef std::vector< Componentcomp_seq

Protected Member Functions

iVec2 get_global_position () const
iVec2 get_local_position (const iVec2 &p) const
void set_bitmap (Bitmap bmp)
void set_position (const iVec2 &p)
void set_parent (Component *parent)
virtual void set_capture (Component *child)

Protected Attributes

Bitmap m_Image
iRect2 m_Rect
Componentm_Parent
comp_seq m_Children

The documentation for this class was generated from the following files:
Generated on Wed May 26 17:41:02 2010 for SDLPP by  doxygen 1.6.3