Draw an XOR line in the editor view.
Parameters: |
|
---|
Initialise a mouse dragging loop.
Parameters: |
|
---|
Check for the mouse drag status.:
result, mx, my, channels = win.MouseDrag()
Return type: | tuple |
||||||
---|---|---|---|---|---|---|---|
Returns: | See example above. |
||||||
Parameters: |
|
Gets the next input event for a certain device from the event queue. If the return value is True, the container stored in res is just like an input event message, otherwise no event was available.
Parameters: |
|
||||
---|---|---|---|---|---|
Return type: | bool |
||||
Returns: | True if the event could be retrieved, otherwise False. |
Polls a certain channel of a device for the current input state. If the return value is True, the container stored in res is just like an input event message, otherwise no state was available.
Parameters: |
|
||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Return type: | bool |
||||||||||||||||||
Returns: | True if a state could be retrieved, otherwise False. |
Check why the mouse drag ended. This enabled you to perform any undo operations needed if the user cancelled the drag.
Return type: | int | ||||||
---|---|---|---|---|---|---|---|
Returns: | The results.
|
Transforms screen coordinates (relative to the top left corner of the system screen) to local coordinates (relative to the top left corner of the user area):
x, y = win.Screen2Local()
Parameters: |
|
---|---|
Raises RuntimeError: | |
If the coordinates cannot be transformed. |
Transforms local coordinates (relative to the top left corner of the user area) to screen coordinates (relative to the top left corner of the system screen):
x, y = win.Local2Screen()
Parameters: |
|
---|---|
Raises RuntimeError: | |
If the coordinates cannot be transformed. |
Transforms global window coordinates (relative to the top left corner of the application window) to local coordinates (relative to the top left corner of the user area):
x, y = win.Global2Local()
Parameters: |
|
---|---|
Raises RuntimeError: | |
If the coordinates cannot be transformed. |
Transforms local coordinates (relative to the top left corner of the user area) to global window coordinates (relative to the top left corner of the application window):
x, y = win.Local2Global()
Parameters: |
|
---|---|
Raises RuntimeError: | |
If the coordinates cannot be transformed. |