#include <box.h>
Inheritance diagram for Box:
Public Member Functions | |
Box (const Rectanglei &rect, bool _visible=true) | |
virtual | ~Box () |
void | Update (const Point2i &mousePosition, const Point2i &lastMousePosition, Surface &surf) |
void | Draw (const Point2i &mousePosition, Surface &surf) const |
void | Redraw (const Rectanglei &rect, Surface &surf) |
Widget * | Clic (const Point2i &mousePosition, uint button) |
void | SetMargin (uint _margin) |
void | SetBorder (const Point2i &newBorder) |
virtual void | AddWidget (Widget *a_widget)=0 |
Protected Attributes | |
bool | visible |
uint | margin |
Point2i | border |
Definition at line 29 of file box.h.
Box::Box | ( | const Rectanglei & | rect, | |
bool | _visible = true | |||
) |
virtual void Box::AddWidget | ( | Widget * | a_widget | ) | [pure virtual] |
Reimplemented from WidgetList.
Implemented in VBox, and HBox.
Here is the caller graph for this function:
Reimplemented from WidgetList.
Reimplemented in MapSelectionBox, NetworkTeamsSelectionBox, TeamBox, and TeamsSelectionBox.
Definition at line 73 of file box.cpp.
00074 { 00075 return WidgetList::Clic(mousePosition, button); 00076 }
Here is the call graph for this function:
Reimplemented from WidgetList.
Definition at line 62 of file box.cpp.
00064 { 00065 Rectanglei rect(position, size); 00066 00067 if( visible ){ 00068 surf.BoxColor(rect, defaultOptionColorBox); 00069 surf.RectangleColor(rect, defaultOptionColorRect,2); 00070 } 00071 }
Here is the call graph for this function:
Here is the caller graph for this function:
void Box::Redraw | ( | const Rectanglei & | rect, | |
Surface & | surf | |||
) | [virtual] |
Reimplemented from WidgetList.
Definition at line 38 of file box.cpp.
00040 { 00041 // Redraw bottom layer container 00042 WidgetList::Redraw(rect, surf); 00043 00044 if ( visible ) { 00045 // Redraw 00046 surf.BoxColor(rect, defaultOptionColorBox); 00047 } 00048 }
Here is the call graph for this function:
Here is the caller graph for this function:
void Box::SetBorder | ( | const Point2i & | newBorder | ) |
void Box::SetMargin | ( | uint | _margin | ) |
void Box::Update | ( | const Point2i & | mousePosition, | |
const Point2i & | lastMousePosition, | |||
Surface & | surf | |||
) | [virtual] |
Reimplemented from Widget.
Reimplemented in TeamBox.
Definition at line 50 of file box.cpp.
00053 { 00054 if (need_redrawing) { 00055 Draw(mousePosition, surf); 00056 } 00057 00058 WidgetList::Update(mousePosition, surf); 00059 need_redrawing = false; 00060 }
Here is the call graph for this function:
Here is the caller graph for this function:
Point2i Box::border [protected] |
uint Box::margin [protected] |
bool Box::visible [protected] |