Mouse (gb.qt4)
This class is used for getting information about a mouse event from another control,
or about the mouse in general.
Information about mouse events is available during mouse event handlers only!
Mouse.
ScreenX and Mouse.
ScreenY are available anytime.
It also defines the constants used with the
Mouse property.
Seit 3.17
The cursor constants are now deprecated, and have been moved to the
Cursor class.
Diese Klasse ist statisch.
Konstanten
Arrow
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
Blank
|
Constant used with the Mouse property of controls, indicating that a control displays
no cursor.
|
Cross
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
Custom
|
Indicates that the mouse cursor of a control is a customed picture.
|
Default
|
Constant used with the Mouse property, indicating that a control displays the
same cursor than its parent.
|
Horizontal
|
Indicate a horizontal mouse wheel event.
|
Pointing
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
SizeAll
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
SizeE
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
SizeH
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
SizeN
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
SizeNE
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
SizeNESW
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
SizeNW
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
SizeNWSE
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
SizeS
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
SizeSE
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
SizeSW
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
SizeV
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
SizeW
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
SplitH
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
SplitV
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
Text
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
Vertical
|
Indicate a vertcial mouse wheel event.
|
Wait
|
Constant used with the Mouse property of controls, indicating a cursor shape.
|
Statische Eigenschaften
Alt
|
Returns if the ALT key is pressed.
|
Button
|
Return which button is pressed or released during a MouseDown or MouseUp event.
|
Click
|
Return the number of successive clicks on the mouse button.
|
Control
|
Returns if the CONTROL key is pressed.
|
Delta
|
Returns the delta value of a MouseWheel event.
|
Forward
|
Return if the mouse wheel has been scrolled forward.
|
Left
|
Returns if the mouse left button is pressed.
|
Meta
|
Returns if the META key is pressed.
|
Middle
|
Returns if the mouse middle button is pressed.
|
Normal
|
Indicates that no special key was pressed.
|
Orientation
|
Returns the orientation of a MouseWheel event.
|
Right
|
Returns if the mouse right button is pressed.
|
ScreenX
|
Returns the current absolute horizontal position of the cursor.
|
ScreenY
|
Returns the current absolute vertical position of the cursor.
|
Shift
|
Returns if the SHIFT key is pressed.
|
StartX
|
Returns the value of Mouse.X at the beginning of the event.
|
StartY
|
Returns the value of Mouse.Y at the beginning of the event.
|
State
|
Return the state of the mouse buttons when the mouse event was generated.
|
X
|
Returns the relative horizontal position of the cursor of a mouse event.
|
Y
|
Returns the relative vertical position of the cursor of a mouse event.
|
Statische Methoden
Inside
|
Return if the mouse cursor is inside a specific control.
|
Move
|
Moves the cursor on the screen at a specified position.
|
Translate
|
Translate the current mouse event by the specified distance.
|
See also
Examples for mouse events: