Logo Search packages:      
Sourcecode: qonk version File versions  Download package

virtual void gcn::Widget::draw ( Graphics graphics  )  [pure virtual]

Draws the Widget. It is called by the parent widget when it is time for the Widget to draw itself. The graphics object is set up so that all drawing is relative to the Widget, i.e coordinate (0,0) is the top-left corner of the Widget. It is not possible to draw outside of a Widgets dimension.

graphics a Graphics object to draw with.

Implemented in gcn::Button, gcn::CheckBox, gcn::Container, gcn::DropDown, gcn::Icon, gcn::Label, gcn::ListBox, gcn::RadioButton, gcn::ScrollArea, gcn::Slider, gcn::TextBox, gcn::TextField, and gcn::Window.

Referenced by gcn::Gui::draw().

Generated by  Doxygen 1.6.0   Back to index