Xcursor.CursorCursor file modules.
Contains functions used for cursor files which contain the images and metadata for cursors.
module Card32 : sig ... endmodule Header : sig ... endmodule Image : sig ... endCursor file with parsed header.
val of_bigstring : Bigstringaf.t -> ( t, string ) Stdlib.resultGet a cursor from parsing a bigstring.
val of_descr :
?pos:int ->
?size:int ->
Unix.file_descr ->
( t, string ) Stdlib.resultGet a cursor from parsing a memory-mapped a Unix file descriptor.
The file descriptor must have at least read permissions.
val toc_len : t -> intThe number of entries in the table of contents.
Return a lazy sequence of image indices in the table of contents.
If size is specified, filter by the notional size (i.e. the subtype) of the index.
Cursor.Image.t.pixels is the offset from the start of t.data.
Return a lazy sequence of images in the cursor.
See image_indices for more information.