mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Add Widget::getFirstChild() member function
This commit is contained in:
parent
1d56133e75
commit
da946ed90c
@ -186,14 +186,19 @@ namespace ui {
|
||||
Widget* getParent() { return m_parent; }
|
||||
Manager* getManager();
|
||||
|
||||
// Returns a list of parents (you must free the list), if
|
||||
// "ascendant" is true the list is build from child to parents, else
|
||||
// the list is from parent to children.
|
||||
// Returns a list of parents, if "ascendant" is true the list is
|
||||
// build from child to parents, else the list is from parent to
|
||||
// children.
|
||||
void getParents(bool ascendant, WidgetsList& parents);
|
||||
|
||||
// Returns a list of children (you must free the list).
|
||||
// Returns a list of children.
|
||||
const WidgetsList& getChildren() const { return m_children; }
|
||||
|
||||
// Returns the first child or NULL if it doesn't exist.
|
||||
Widget* getFirstChild() {
|
||||
return (!m_children.empty() ? m_children.front(): NULL);
|
||||
}
|
||||
|
||||
// Returns the next or previous siblings.
|
||||
Widget* getNextSibling();
|
||||
Widget* getPreviousSibling();
|
||||
|
Loading…
Reference in New Issue
Block a user