PointerThrower¶
from acron.core import PointerThrower
- class PointerThrower¶
Bases:
Bases:
DataNodeThrows an event for each pointer that goes down, moves while it is down and goes up: each finger on a touch screen, say. The events carry the pointer’s identifier and its position in window pixels, followed by any parameters added with
add_parameter().This is a
DataNodewhich is intended to be parented to the data graph below a device which is generating a sequence of pointer events, like aMouseAndKeyboarddevice.Inheritance diagram
digraph inheritance3a340e7fe9 { 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=""]; "DataNode" [URL="acron.core.DataNode.html#acron.core.DataNode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "AcronNode" -> "DataNode" [arrowsize=0.75,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=""]; "PointerThrower" [URL="acron.core.PointerThrower.html#acron.core.PointerThrower",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DataNode" -> "PointerThrower" [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=""]; }- __init__()¶
- add_parameter()¶
Adds the indicated parameter to the list of parameters that will be passed with each event generated by this
PointerThrower.
- property down_event string¶
- Getter
Returns the down_event that has been set on this
PointerThrower. Seeset_down_event().- Setter
Specifies the event that is thrown when a pointer goes down (a finger touches the screen). The default is “pointer-down”.
- static get_class_type()¶
- get_down_event()¶
Returns the down_event that has been set on this
PointerThrower. Seeset_down_event().
- get_move_event()¶
Returns the move_event that has been set on this
PointerThrower. Seeset_move_event().
- get_num_parameters()¶
Returns the number of parameters that have been added to the list of parameters to be passed with each event generated by this
PointerThrower.
- get_parameter()¶
Returns the nth parameter that has been added to the list of parameters passed with each event generated by this
PointerThrower.
- get_prefix()¶
Returns the prefix that has been set on this
PointerThrower. Seeset_prefix().
- get_up_event()¶
Returns the up_event that has been set on this
PointerThrower. Seeset_up_event().
- property move_event string¶
- Getter
Returns the move_event that has been set on this
PointerThrower. Seeset_move_event().- Setter
Specifies the event that is thrown when a pointer moves while it is down. The default is “pointer-move”.
- property parameters Sequence[EventParameter]¶
Returns the nth parameter that has been added to the list of parameters passed with each event generated by this
PointerThrower.
- property prefix string¶
- Getter
Returns the prefix that has been set on this
PointerThrower. Seeset_prefix().- Setter
Sets the prefix which is prepended to the names of the events thrown by this object.
- set_down_event()¶
Specifies the event that is thrown when a pointer goes down (a finger touches the screen). The default is “pointer-down”.
- set_move_event()¶
Specifies the event that is thrown when a pointer moves while it is down. The default is “pointer-move”.
- set_prefix()¶
Sets the prefix which is prepended to the names of the events thrown by this object.
- set_up_event()¶
Specifies the event that is thrown when a pointer goes up (a finger leaves the screen). The default is “pointer-up”.
- property up_event string¶
- Getter
Returns the up_event that has been set on this
PointerThrower. Seeset_up_event().- Setter
Specifies the event that is thrown when a pointer goes up (a finger leaves the screen). The default is “pointer-up”.