#include <iMouse.h>
Inherits igor::iOSEventListener, and igor::iModule< iMouse >.
◆ getButton4()
bool igor::iMouse::getButton4 |
( |
| ) |
|
- Returns
- true: mouse button 4 is pressed; false: mouse button 4 is not pressed
◆ getButton5()
bool igor::iMouse::getButton5 |
( |
| ) |
|
- Returns
- true: mouse button 5 is pressed; false: mouse button 5 is not pressed
◆ getLeftButton()
bool igor::iMouse::getLeftButton |
( |
| ) |
|
- Returns
- true: left mouse button is pressed; false: left mouse button is not pressed
◆ getMiddleButton()
bool igor::iMouse::getMiddleButton |
( |
| ) |
|
- Returns
- true: middle mouse button is pressed; false: middle mouse button is not pressed
◆ getPos()
- Returns
- the current mouse position relative to the parent window in pixel.
origin is top left
◆ getPosDelta()
- Returns
- the delta mouse movement since last mouse update.
◆ getRightButton()
bool igor::iMouse::getRightButton |
( |
| ) |
|
- Returns
- true: right mouse button is pressed; false: right mouse button is not pressed
◆ getWindow()
- Returns
- pointer to corresponding window
If it returns nullptr the listener was not registered to a window yet
Implements igor::iOSEventListener.
◆ hideCursor()
void igor::iMouse::hideCursor |
( |
bool |
hide | ) |
|
switches the cursor on or off
- Parameters
-
show | true: cursor is visible; false: cursor is invisible |
◆ resetCursor()
void igor::iMouse::resetCursor |
( |
| ) |
|
resets cursor type to default
◆ setCenter()
void igor::iMouse::setCenter |
( |
| ) |
|
set mouse to center of currently focused window
- Parameters
-
suppressMoveEvent | if true suppress next mouse event |
◆ setCursor()
sets cursor type
- Parameters
-
cursorType | the cursor type to set |
◆ setPosition() [1/2]
void igor::iMouse::setPosition |
( |
const iaVector2i & |
pos | ) |
|
set mouse to a position relative to currently focussed window
- Parameters
-
pos | horizontal and vertical position of the mouse cursor in pixel |
◆ setPosition() [2/2]
void igor::iMouse::setPosition |
( |
int32 |
x, |
|
|
int32 |
y |
|
) |
| |
set mouse to a position relative to currently focussed window
- Parameters
-
x | horizontal position of the mouse cursor in pixel |
y | vertical position of the mouse cursor in pixel |
◆ iModule< iMouse >
The documentation for this class was generated from the following files:
- /home/maddin/dev/Igor/src/igor/igor/system/iMouse.h
- /home/maddin/dev/Igor/src/igor/igor/system/iMouse.cpp