package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gdk/Ocgtk_gdk/Gdk/Wrappers/Cursor/index.html
Module Wrappers.Cursor
type t = [ `cursor | `object_ ] Gobject.objval new_from_texture :
[ `texture | `object_ ] Gobject.obj ->
int ->
int ->
t option ->
tCreate a new Cursor
val get_texture : t -> [ `texture | `object_ ] Gobject.obj optionReturns the texture for the cursor.
If the cursor is a named cursor, %NULL will be returned.
val get_name : t -> string optionReturns the name of the cursor.
If the cursor is not a named cursor, %NULL will be returned.
val get_hotspot_y : t -> intReturns the vertical offset of the hotspot.
The hotspot indicates the pixel that will be directly above the cursor.
Note that named cursors may have a nonzero hotspot, but this function will only return the hotspot position for cursors created with ctor@Gdk.Cursor.new_from_texture.
val get_hotspot_x : t -> intReturns the horizontal offset of the hotspot.
The hotspot indicates the pixel that will be directly above the cursor.
Note that named cursors may have a nonzero hotspot, but this function will only return the hotspot position for cursors created with ctor@Gdk.Cursor.new_from_texture.
Returns the fallback for this @cursor.
The fallback will be used if this cursor is not available on a given `GdkDisplay`. For named cursors, this can happen when using nonstandard names or when using an incomplete cursor theme. For textured cursors, this can happen when the texture is too large or when the `GdkDisplay` it is used on does not support textured cursors.