#include <basiccontainer.hpp>
Inheritance diagram for gcn::BasicContainer:
Contains basic container functions every container should have. Containers should inherit from this class and implement it's functions.
Definition at line 73 of file basiccontainer.hpp.
Public Member Functions | |
virtual void | moveToTop (Widget *widget)=0 |
Moves a Widget to the top of the BasicContainer. | |
virtual void | moveToBottom (Widget *widget)=0 |
Moves a widget to the bottom of the BasicContainer. | |
virtual void | getDrawSize (int &width, int &height, Widget *widget)=0 |
Gets the drawing space size a Widget has in the BasicContainer. | |
virtual void | _announceDeath (Widget *widget)=0 |
Called when a child of the BasicContainer gets destroyed. |
|
Called when a child of the BasicContainer gets destroyed.
Implemented in gcn::Container, gcn::DropDown, gcn::ScrollArea, and gcn::Window. Referenced by gcn::Widget::~Widget(). |
|
Gets the drawing space size a Widget has in the BasicContainer. It may not be the same size as the Widgets width and height. NOTE: Size is not checked recursively all the way back to the top Widget. If the BasicContainer itself is clipped, the size may be inaccurate.
Implemented in gcn::Container, gcn::DropDown, gcn::ScrollArea, and gcn::Window. Referenced by gcn::TextBox::keyPress(). |
|
Moves a widget to the bottom of the BasicContainer. The Widget will be drawn below all other Widgets in the BasicContainer.
Implemented in gcn::Container, gcn::DropDown, gcn::ScrollArea, and gcn::Window. Referenced by gcn::ScrollArea::moveToBottom(), gcn::DropDown::moveToBottom(), and gcn::Widget::requestMoveToBottom(). |
|
Moves a Widget to the top of the BasicContainer. The widget will be drawn above all other Widgets in the BasicContainer.
Implemented in gcn::Container, gcn::DropDown, gcn::ScrollArea, and gcn::Window. Referenced by gcn::DropDown::dropDown(), gcn::Window::mousePress(), gcn::ScrollArea::moveToTop(), gcn::DropDown::moveToTop(), and gcn::Widget::requestMoveToTop(). |