Window_Creation module

get_mouse_pointer_position

procedure · 7 overloadsSource

Where the mouse is, in window coordinates: x, y, success.

get_mouse_pointer_position :: (
    dpy: *Display,
    win: Window,
    right_handed: bool
) -> (x: int, y: int, success: bool)

Where the mouse is, in window coordinates: x, y, success.

Parameters

dpy: *Display
win: Window
right_handed: bool
counts y up from the bottom of the window instead of down from the top.

Returns

x: int
y: int
success: bool
get_mouse_pointer_position :: (
    win: Window,
    right_handed: bool
) -> (x: int, y: int, success: bool)

Where the mouse is, in window coordinates: x, y, success.

Parameters

win: Window
right_handed: bool
counts y up from the bottom of the window instead of down from the top.

Returns

x: int
y: int
success: bool
get_mouse_pointer_position :: (
    right_handed := false
) -> (x: int, y: int, success: bool)

Where the mouse is, in window coordinates: x, y, success.

Parameters

right_handed := false
counts y up from the bottom of the window instead of down from the top.

Returns

x: int
y: int
success: bool
get_mouse_pointer_position :: (
    hwnd: Windows.HWND,
    right_handed: bool
) -> (x: int, y: int, success: bool)

Where the mouse is, in window coordinates: x, y, success.

Parameters

hwnd: Windows.HWND
right_handed: bool
counts y up from the bottom of the window instead of down from the top.

Returns

x: int
y: int
success: bool
get_mouse_pointer_position :: (
    right_handed := false
) -> (x: int, y: int, success: bool)

Where the mouse is, in window coordinates: x, y, success.

Parameters

right_handed := false
counts y up from the bottom of the window instead of down from the top.

Returns

x: int
y: int
success: bool
get_mouse_pointer_position :: (
    window: *ObjC.NSWindow,
    right_handed: bool
) -> (x: int, y: int, success: bool)

Where the mouse is, in window coordinates: x, y, success.

Parameters

window: *ObjC.NSWindow
right_handed: bool
counts y up from the bottom of the window instead of down from the top.

Returns

x: int
y: int
success: bool
get_mouse_pointer_position :: (
    right_handed := false
) -> (x: int, y: int, success: bool)

Where the mouse is, in window coordinates: x, y, success.

Parameters

right_handed := false
counts y up from the bottom of the window instead of down from the top.

Returns

x: int
y: int
success: bool

See also