Skip to content

Commit

Permalink
Apply Guichan's changes from ac25684370f72e5e204bd994fd736e630fb8425a…
Browse files Browse the repository at this point in the history
… (Sept 15th 2008)

Documentation of Widget::getChildrenArea has been enhanced.
  • Loading branch information
Jarod42 committed Sep 5, 2024
1 parent 00d8d54 commit b8bb8c7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion TODO
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* Continue rebasing from ac25684370f72e5e204bd994fd736e630fb8425a
* Continue rebasing from 8075bee1c45ba7221ebdc127d0413628591622c6
* Add a focus listener interface.
* Make focus apply synchronously.
* Graphics and input objects for DirectX.
Expand Down
20 changes: 17 additions & 3 deletions include/guisan/widget.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -861,9 +861,23 @@ namespace gcn
virtual const std::list<FocusListener*>& _getFocusListeners();

/**
* Gets the area of the widget that the widget's children occupy.
*
* @return The area of the widget that the widget's children occupy.
* Gets the area of the widget occupied by the widget's children.
* By default this method returns an empty rectangle as not all
* widgets are containers. If you want to make a container this
* method should return the area where the children resides. This
* method is used when drawing children of a widget when computing
* clip rectangles for the children.
*
* An example of a widget that overloads this method is ScrollArea.
* A ScrollArea has a view of its contant and that view is the
* children area. The size of a ScrollArea's children area might
* vary depending on if the scroll bars of the ScrollArea is shown
* or not.
*
* @return The area of the widget occupied by the widget's children.
* @see BasicContainer
* @see BasicContainer::getChildrenArea
* @see BasicContainer::drawChildren
* @since 0.1.0
*/
virtual Rectangle getChildrenArea();
Expand Down

0 comments on commit b8bb8c7

Please sign in to comment.