Holds the data that might be generated by a 2-d pointer input device, such as the mouse in the GraphicsWindow.
More...
#include <pandadoc.hpp>
|
| __init__ () |
|
| __init__ (const PointerData) |
|
bool | getInWindow () |
| 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.
|
|
double | getX () |
|
double | getY () |
|
|
int | id |
| Returns a unique identifier for this pointer.
|
|
bool | 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.
|
|
double | pressure |
| Returns the pressure of the pointer.
|
|
PointerType | type |
| Returns the type of pointing device.
|
|
double | x |
|
double | y |
|
Holds the data that might be generated by a 2-d pointer input device, such as the mouse in the GraphicsWindow.
◆ __init__() [1/2]
◆ __init__() [2/2]
◆ getInWindow()
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.
◆ getX()
◆ getY()
◆ id
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.
◆ 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.
◆ pressure
Returns the pressure of the pointer.
For mice, this will be 1.0 if any button is pressed, 0.0 otherwise.
◆ type
Returns the type of pointing device.