PGTop¶
-
class PGTop¶
Bases:
AcronNodeThe “top” node of the new Acron 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.Inheritance diagram
digraph inheritancefe5754efb0 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "AcronNode" [URL="acron.core.AcronNode.html#acron.core.AcronNode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritableReferenceCount" -> "AcronNode" [arrowsize=0.75,style=""]; "Namable" -> "AcronNode" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "Namable" [URL="acron.core.Namable.html#acron.core.Namable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "Namable" [arrowsize=0.75,style=""]; "PGTop" [URL="acron.core.PGTop.html#acron.core.PGTop",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "AcronNode" -> "PGTop" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedWritable" [URL="acron.core.TypedWritable.html#acron.core.TypedWritable",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedWritable" [arrowsize=0.75,style=""]; "TypedWritableReferenceCount" [URL="acron.core.TypedWritableReferenceCount.html#acron.core.TypedWritableReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedWritable" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedWritableReferenceCount" [arrowsize=0.75,style=""]; }- PGTop.__init__()¶
- static PGTop.get_class_type()¶
- PGTop.get_group()¶
Returns the
MouseWatcherGrouppointer that thePGTopobject registers its PG items with, or NULL if theMouseWatcherhas not yet been set.
- PGTop.get_mouse_watcher()¶
Returns the
MouseWatcherpointer that thePGTopobject registers its PG items with, or NULL if theMouseWatcherhas not yet been set.
- PGTop.get_start_sort()¶
Returns the sort index that is assigned during the traversal to the first
PGItemthat is discovered during traversal. Seeset_start_sort().
- PGTop.set_mouse_watcher()¶
Sets the
MouseWatcherpointer that thePGTopobject registers its PG items with. This must be set before the PG items are active.
- PGTop.set_start_sort()¶
Specifies the sort index that is assigned during the traversal to the first
PGItemthat is discovered during traversal. SubsequentPGItemswill be assigned consecutively higher sort indexes.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 secondPGTopnode).