module Glint::Input::Mouse::Cursor

Overview

Utility module for managing cursor-related features.

Defined in:

glint/input/cursor.cr

Class Method Summary

Class Method Detail

def self.disable #

Disables the cursor.


[View source]
def self.enable #

Enables the cursor.


[View source]
def self.hidden? : Bool #

Returns whether the cursor is hidden.


[View source]
def self.hide #

Hides the cursor.


[View source]
def self.on_screen? : Bool #

Returns whether the cursor is on the screen.


[View source]
def self.position : Position #

Returns the position of the cursor on the screen.

Alias for Mouse.position.


[View source]
def self.show #

Shows the cursor.


[View source]
def self.visible? : Bool #

Returns whether the cursor is visible.


[View source]
def self.x : Number #

Returns the x-position of the cursor on the screen.

Alias for Mouse.x.


[View source]
def self.y : Number #

Returns the y-position of the cursor on the screen.

Alias for Mouse.y.


[View source]