Module: AMS::Cursor
- Defined in:
- docs/ams/cursor.rb
Overview
Windows only!
The Cursor namespace contains functions that are subjected to Windows cursor.
Class Method Summary collapse
-
.clear_clip ⇒ Boolean
Unclip cursor.
-
.clip_to_main_window ⇒ Boolean
Clip cursor to main window.
-
.clip_to_viewport ⇒ Boolean
Clip cursor to view window.
-
.get_clip_rect(mode = 1) ⇒ Array<Integer>
Get upper-left and lower-right coordinates of the cursor clip rectangle.
-
.get_pos(mode = 1) ⇒ Array<Integer>
Get cursor position.
-
.is_main_window_target? ⇒ Boolean
Determine whether cursor is pointing at the main window.
-
.is_viewport_target? ⇒ Boolean
Determine whether cursor is within the view client area.
-
.is_visible? ⇒ Boolean
Determine whether cursor is visible.
-
.set_clip_rect(x1, y1, x2, y2, mode = 1) ⇒ Boolean
Set upper-left and lower-right coordinates of the cursor clip rectangle.
-
.set_pos(x, y, mode = 1) ⇒ Boolean
Set cursor position.
-
.show(state) ⇒ Boolean
Show/hide cursor.
Class Method Details
.clear_clip ⇒ Boolean
Unclip cursor.
.clip_to_main_window ⇒ Boolean
Clip cursor to main window.
.clip_to_viewport ⇒ Boolean
Clip cursor to view window.
.get_clip_rect(mode = 1) ⇒ Array<Integer>
Get upper-left and lower-right coordinates of the cursor clip rectangle.
.get_pos(mode = 1) ⇒ Array<Integer>
Get cursor position.
.is_main_window_target? ⇒ Boolean
Determine whether cursor is pointing at the main window.
.is_viewport_target? ⇒ Boolean
Determine whether cursor is within the view client area.
.is_visible? ⇒ Boolean
Determine whether cursor is visible.
.set_clip_rect(x1, y1, x2, y2, mode = 1) ⇒ Boolean
Set upper-left and lower-right coordinates of the cursor clip rectangle.
.set_pos(x, y, mode = 1) ⇒ Boolean
Set cursor position.
.show(state) ⇒ Boolean
Show/hide cursor.