pub struct Cursor { /* fields omitted */ }
Represents a window cursor that can be used to display any
of the standard cursors or load a custom cursor from an image.
Note that the cursor object has a lifetime and will not display
correctly after it has been dropped.
Create a new cursor using glfwCreateStandardCursor
Creates a new cursor from the PixelImage
provided via glfwCreateCursor
Note that the cursor image will be the same size as the image provided,
so scaling it beforehand may be required.
The cursor hotspot is specified in pixels, relative to the upper-left
corner of the cursor image. Like all other coordinate systems in GLFW,
the X-axis points to the right and the Y-axis points down.
Executes the destructor for this type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static