PointerData

from acron.core import PointerData
class PointerData

Bases:

Holds the data that might be generated by a 2-d pointer input device, such as the mouse in the GraphicsWindow.

Inheritance diagram

digraph inheritance6c27d8abb7 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "PointerData" [URL="acron.core.PointerData.html#acron.core.PointerData",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" -> "PointerData" [arrowsize=0.75,style=""]; }
__init__()
get_in_window()

If this returns false, the pointer is not currently present in the window and the values returned by get_x() and get_y() may not be meaningful.

get_x()
get_y()
property id → int

Returns a unique identifier for this pointer. This is for tracking individual fingers. This value should not be assumed to have a specific meaning other than that there will not be two different pointers active simultaneously with the same identifier.

property in_window → bool

If this returns false, the pointer is not currently present in the window and the values returned by get_x() and get_y() may not be meaningful.

property pressure → float

Returns the pressure of the pointer. For mice, this will be 1.0 if any button is pressed, 0.0 otherwise.

property primary → bool

Returns true if this is the primary pointer, which the window also reports as the mouse (for instance, the first finger touching a touch screen that emulates the mouse). Mouse events already account for it; code that handles the other pointers individually may ignore it.

property type → PointerType

Returns the type of pointing device.

property x → float
property y → float