The “top” node of the new Panda GUI system. This node must be parented to the 2-d scene graph, and all PG objects should be parented to this node or somewhere below it. PG objects not parented within this hierarchy will not be clickable.
This node begins the special traversal of the PG objects that registers each node within the
MouseWatcherand forces everything to render in a depth-first, left-to-right order, appropriate for 2-d objects.
explicit PGTop(std::string const &name)
MouseWatcherGroup *get_group(void) const
MouseWatcher *get_mouse_watcher(void) const
int get_start_sort(void) const
void set_mouse_watcher(MouseWatcher *watcher)
void set_start_sort(int start_sort)
This number is used by the
MouseWatchersystem to rank the clickable mouse regions in the same order in which the items are rendered, so that items on top will receive mouse priority.
Normally, it makes the most sense to leave this initial value at its default value of 0, unless you need the
PGItemsto have a particular sort value with respect to some other objects in the scene (particularly with a second
- explicit PGTop(std::string const &name)