Uranium
Application Framework
|
Event relating to what's happening with the scroll wheel of a mouse. More...
Public Member Functions | |
None | __init__ (self, int horizontal, int vertical, int x=0, int y=0) |
Create a new scroll wheel event. More... | |
int | horizontal (self) |
How far the scroll wheel was scrolled horizontally, in eighths of a degree. More... | |
int | vertical (self) |
How far the scroll wheel was scrolled vertically, in eighths of a degree. More... | |
![]() | |
None | __init__ (self, int event_type, int x=0, int y=0, int last_x=None, int last_y=None, List buttons=None) |
Raise a new mouse event. More... | |
int | x (self) |
The X coordinate of the event. | |
int | y (self) |
The Y coordinate of the event. | |
int | lastX (self) |
The X coordinate of the previous event. | |
int | lastY (self) |
The Y coordinate of the previous event. | |
int | deltaX (self) |
The change in X position between this event and the previous event. | |
int | deltaY (self) |
The change in Y position between this event and the previous event. | |
List | buttons (self) |
The list of buttons associated with this event. | |
Additional Inherited Members | |
![]() | |
string | LeftButton = "left" |
Left mouse button. | |
string | RightButton = "right" |
string | MiddleButton = "middle" |
Event relating to what's happening with the scroll wheel of a mouse.
None UM.Event.WheelEvent.__init__ | ( | self, | |
int | horizontal, | ||
int | vertical, | ||
int | x = 0 , |
||
int | y = 0 |
||
) |
Create a new scroll wheel event.
horizontal | How far the scroll wheel scrolled horizontally, in eighths of a degree. To the right is positive. To the left is negative. |
vertical | How far the scroll wheel scrolled vertically, in eighths of a degree. Up is positive. Down is negative. |
int UM.Event.WheelEvent.horizontal | ( | self | ) |
How far the scroll wheel was scrolled horizontally, in eighths of a degree.
To the right is positive. To the left is negative.
int UM.Event.WheelEvent.vertical | ( | self | ) |
How far the scroll wheel was scrolled vertically, in eighths of a degree.
Up is positive. Down is negative.