Class: GLFW::Cursor

Inherits:
Object
  • Object
show all
Defined in:
lib/glfw/stubs/cursor.rb,
lib/glfw/constants.rb

Overview

Describes the application's mouse cursor object and how it appears for the window.

Constant Summary collapse

SHAPE_ARROW =

Standard "arror" cursor shape.

0x00036001
SHAPE_IBEAM =

I-beam cursor shape, commonly used for text editing.

0x00036002
SHAPE_CROSSHAIR =

Cross-hair cursor shape

0x00036003
SHAPE_HAND =

Hand cursor shape, common for clickable links, move, drag, etc.

0x00036004
SHAPE_HRESIZE =

Horizontal-resize cursor shape.

0x00036005
SHAPE_VRESIZE =

Vertical-resize cursor shape.

0x00036006

Instance Method Summary collapse

Constructor Details

#initialize(shape) ⇒ Cursor #initialize(image, xhot = 0, yhot = 0) ⇒ Cursor

Returns a new instance of Cursor.

Overloads:

  • #initialize(shape) ⇒ Cursor

    Creates a new cursor using a standard shape defined by the operating system.

    Parameters:

    • shape (Integer)

      An integer representing the shape of the cursor to create.

  • #initialize(image, xhot = 0, yhot = 0) ⇒ Cursor

    Creates a new cursor using the specified image.

    Parameters:

    • image (Image)

      A source image to use for the cursor's appearance.

    • xhot (Integer) (defaults to: 0)

      The "hot-point" of the cursor on the x-axis, where 0 is the left edge of the image.

    • yhot (Integer) (defaults to: 0)

      The "hot-point" of the cursor on the y-axis, where 0 is the top edge of the image.



18
19
# File 'lib/glfw/stubs/cursor.rb', line 18

def initialize(*argv)
end