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

Widget * gcn::Widget::getWidgetAt ( int  x,
int  y 
) [virtual]

Gets a widget from a certain position in the widget. This function is used to decide which gets mouse input, thus it can be overloaded to change that behaviour.

NOTE: This always returns NULL if the widget is not a container.

x the x coordinate.
y the y coordinate.
the widget at the specified coodinate, or NULL if no such widget exists.

Reimplemented in gcn::BasicContainer, and gcn::ScrollArea.

Definition at line 552 of file widget.cpp.

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

        return NULL;

Generated by  Doxygen 1.6.0   Back to index