X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcontainer.h;h=40fe4dc60d4855e44a890af8a4230b9ab764c3b7;hb=762a689d799075c0a10e1633bf95d53de80b4572;hp=26100b72d315234329b9814ffdd80d14fc50c8f8;hpb=d10d1de6d17c285c63d7b3cea549017aaa1ddb01;p=libs%2Fgltk.git diff --git a/source/container.h b/source/container.h index 26100b7..40fe4dc 100644 --- a/source/container.h +++ b/source/container.h @@ -1,8 +1,8 @@ #ifndef MSP_GLTK_CONTAINER_H_ #define MSP_GLTK_CONTAINER_H_ -#include #include +#include #include #include "mspgltk_api.h" #include "widget.h" @@ -37,7 +37,7 @@ protected: void rebuild_needed(); }; - std::list children; + std::vector children; Widget *click_focus = nullptr; unsigned click_button = 0; Widget *pointer_focus = nullptr; @@ -59,9 +59,9 @@ protected: void autosize_child(const Widget &, const Part &, Geometry &) const; void reposition_child(Widget &, const Part &) const; public: - std::list get_children() const; - Widget *get_child_at(int, int) const; - Widget *get_descendant_at(int, int) const; + std::vector get_children() const; + Widget *find_child_at(int, int) const; + Widget *find_descendant_at(int, int) const; void raise(Widget &); protected: