Struct x11_dl::xcursor::Xcursor

source ·
pub struct Xcursor {
Show 59 fields pub XcursorAnimateCreate: unsafe extern "C" fn(_: *mut XcursorCursors) -> *mut XcursorAnimate, pub XcursorAnimateDestroy: unsafe extern "C" fn(_: *mut XcursorAnimate), pub XcursorAnimateNext: unsafe extern "C" fn(_: *mut XcursorAnimate) -> c_ulong, pub XcursorCommentCreate: unsafe extern "C" fn(_: c_uint, _: c_int) -> *mut XcursorComment, pub XcursorCommentDestroy: unsafe extern "C" fn(_: *mut XcursorComment), pub XcursorCommentsCreate: unsafe extern "C" fn(_: c_int) -> *mut XcursorComments, pub XcursorCommentsDestroy: unsafe extern "C" fn(_: *mut XcursorComments), pub XcursorCursorsCreate: unsafe extern "C" fn(_: *mut Display, _: c_int) -> *mut XcursorCursors, pub XcursorCursorsDestroy: unsafe extern "C" fn(_: *mut XcursorCursors), pub XcursorFileLoad: unsafe extern "C" fn(_: *mut FILE, _: *mut *mut XcursorComments, _: *mut *mut XcursorImages) -> c_int, pub XcursorFileLoadAllImages: unsafe extern "C" fn(_: *mut FILE) -> *mut XcursorImages, pub XcursorFileLoadImage: unsafe extern "C" fn(_: *mut FILE, _: c_int) -> *mut XcursorImage, pub XcursorFileLoadImages: unsafe extern "C" fn(_: *mut FILE, _: c_int) -> *mut XcursorImages, pub XcursorFilenameLoad: unsafe extern "C" fn(_: *const c_char, _: *mut *mut XcursorComments, _: *mut *mut XcursorImages) -> c_int, pub XcursorFilenameLoadAllImages: unsafe extern "C" fn(_: *const c_char) -> *mut XcursorImages, pub XcursorFilenameLoadCursor: unsafe extern "C" fn(_: *mut Display, _: *const c_char) -> c_ulong, pub XcursorFilenameLoadCursors: unsafe extern "C" fn(_: *mut Display, _: *const c_char) -> *mut XcursorCursors, pub XcursorFilenameLoadImage: unsafe extern "C" fn(_: *const c_char, _: c_int) -> *mut XcursorImage, pub XcursorFilenameLoadImages: unsafe extern "C" fn(_: *const c_char, _: c_int) -> *mut XcursorImages, pub XcursorFilenameSave: unsafe extern "C" fn(_: *const c_char, _: *const XcursorComments, _: *const XcursorImages) -> c_int, pub XcursorFilenameSaveImages: unsafe extern "C" fn(_: *const c_char, _: *const XcursorImages) -> c_int, pub XcursorFileSave: unsafe extern "C" fn(_: *mut FILE, _: *const XcursorComments, _: *const XcursorImages) -> c_int, pub XcursorFileSaveImages: unsafe extern "C" fn(_: *mut FILE, _: *const XcursorImages) -> c_int, pub XcursorGetDefaultSize: unsafe extern "C" fn(_: *mut Display) -> c_int, pub XcursorGetTheme: unsafe extern "C" fn(_: *mut Display) -> *mut c_char, pub XcursorGetThemeCore: unsafe extern "C" fn(_: *mut Display) -> c_int, pub XcursorImageCreate: unsafe extern "C" fn(_: c_int, _: c_int) -> *mut XcursorImage, pub XcursorImageDestroy: unsafe extern "C" fn(_: *mut XcursorImage), pub XcursorImageHash: unsafe extern "C" fn(_: *mut XImage, _: *mut c_uchar), pub XcursorImageLoadCursor: unsafe extern "C" fn(_: *mut Display, _: *const XcursorImage) -> c_ulong, pub XcursorImagesCreate: unsafe extern "C" fn(_: c_int) -> *mut XcursorImages, pub XcursorImagesDestroy: unsafe extern "C" fn(_: *mut XcursorImages), pub XcursorImagesLoadCursor: unsafe extern "C" fn(_: *mut Display, _: *const XcursorImages) -> c_ulong, pub XcursorImagesLoadCursors: unsafe extern "C" fn(_: *mut Display, _: *const XcursorImages) -> *mut XcursorCursors, pub XcursorImagesSetName: unsafe extern "C" fn(_: *mut XcursorImages, _: *const c_char), pub XcursorLibraryLoadCursor: unsafe extern "C" fn(_: *mut Display, _: *const c_char) -> c_ulong, pub XcursorLibraryLoadCursors: unsafe extern "C" fn(_: *mut Display, _: *const c_char) -> *mut XcursorCursors, pub XcursorLibraryLoadImage: unsafe extern "C" fn(_: *const c_char, _: *const c_char, _: c_int) -> *mut XcursorImage, pub XcursorLibraryLoadImages: unsafe extern "C" fn(_: *const c_char, _: *const c_char, _: c_int) -> *mut XcursorImages, pub XcursorLibraryPath: unsafe extern "C" fn() -> *const c_char, pub XcursorLibraryShape: unsafe extern "C" fn(_: *const c_char) -> c_int, pub XcursorNoticeCreateBitmap: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: c_uint, _: c_uint), pub XcursorNoticePutBitmap: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: *mut XImage), pub XcursorSetDefaultSize: unsafe extern "C" fn(_: *mut Display, _: c_int) -> c_int, pub XcursorSetTheme: unsafe extern "C" fn(_: *mut Display, _: *const c_char) -> c_int, pub XcursorSetThemeCore: unsafe extern "C" fn(_: *mut Display, _: c_int) -> c_int, pub XcursorShapeLoadCursor: unsafe extern "C" fn(_: *mut Display, _: c_uint) -> c_ulong, pub XcursorShapeLoadCursors: unsafe extern "C" fn(_: *mut Display, _: c_uint) -> *mut XcursorCursors, pub XcursorShapeLoadImage: unsafe extern "C" fn(_: c_uint, _: *const c_char, _: c_int) -> *mut XcursorImage, pub XcursorShapeLoadImages: unsafe extern "C" fn(_: c_uint, _: *const c_char, _: c_int) -> *mut XcursorImages, pub XcursorSupportsAnim: unsafe extern "C" fn(_: *mut Display) -> c_int, pub XcursorSupportsARGB: unsafe extern "C" fn(_: *mut Display) -> c_int, pub XcursorTryShapeBitmapCursor: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: c_ulong, _: *mut XColor, _: *mut XColor, _: c_uint, _: c_uint) -> c_ulong, pub XcursorTryShapeCursor: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: c_ulong, _: c_uint, _: c_uint, _: *const XColor, _: *const XColor) -> c_ulong, pub XcursorXcFileLoad: unsafe extern "C" fn(_: *mut XcursorFile, _: *mut *mut XcursorComments, _: *mut *mut XcursorImages) -> c_int, pub XcursorXcFileLoadAllImages: unsafe extern "C" fn(_: *mut XcursorFile) -> *mut XcursorImages, pub XcursorXcFileLoadImage: unsafe extern "C" fn(_: *mut XcursorFile, _: c_int) -> *mut XcursorImage, pub XcursorXcFileLoadImages: unsafe extern "C" fn(_: *mut XcursorFile, _: c_int) -> *mut XcursorImages, pub XcursorXcFileSave: unsafe extern "C" fn(_: *mut XcursorFile, _: *const XcursorComments, _: *const XcursorImages) -> c_int, /* private fields */
}

Fields§

§XcursorAnimateCreate: unsafe extern "C" fn(_: *mut XcursorCursors) -> *mut XcursorAnimate§XcursorAnimateDestroy: unsafe extern "C" fn(_: *mut XcursorAnimate)§XcursorAnimateNext: unsafe extern "C" fn(_: *mut XcursorAnimate) -> c_ulong§XcursorCommentCreate: unsafe extern "C" fn(_: c_uint, _: c_int) -> *mut XcursorComment§XcursorCommentDestroy: unsafe extern "C" fn(_: *mut XcursorComment)§XcursorCommentsCreate: unsafe extern "C" fn(_: c_int) -> *mut XcursorComments§XcursorCommentsDestroy: unsafe extern "C" fn(_: *mut XcursorComments)§XcursorCursorsCreate: unsafe extern "C" fn(_: *mut Display, _: c_int) -> *mut XcursorCursors§XcursorCursorsDestroy: unsafe extern "C" fn(_: *mut XcursorCursors)§XcursorFileLoad: unsafe extern "C" fn(_: *mut FILE, _: *mut *mut XcursorComments, _: *mut *mut XcursorImages) -> c_int§XcursorFileLoadAllImages: unsafe extern "C" fn(_: *mut FILE) -> *mut XcursorImages§XcursorFileLoadImage: unsafe extern "C" fn(_: *mut FILE, _: c_int) -> *mut XcursorImage§XcursorFileLoadImages: unsafe extern "C" fn(_: *mut FILE, _: c_int) -> *mut XcursorImages§XcursorFilenameLoad: unsafe extern "C" fn(_: *const c_char, _: *mut *mut XcursorComments, _: *mut *mut XcursorImages) -> c_int§XcursorFilenameLoadAllImages: unsafe extern "C" fn(_: *const c_char) -> *mut XcursorImages§XcursorFilenameLoadCursor: unsafe extern "C" fn(_: *mut Display, _: *const c_char) -> c_ulong§XcursorFilenameLoadCursors: unsafe extern "C" fn(_: *mut Display, _: *const c_char) -> *mut XcursorCursors§XcursorFilenameLoadImage: unsafe extern "C" fn(_: *const c_char, _: c_int) -> *mut XcursorImage§XcursorFilenameLoadImages: unsafe extern "C" fn(_: *const c_char, _: c_int) -> *mut XcursorImages§XcursorFilenameSave: unsafe extern "C" fn(_: *const c_char, _: *const XcursorComments, _: *const XcursorImages) -> c_int§XcursorFilenameSaveImages: unsafe extern "C" fn(_: *const c_char, _: *const XcursorImages) -> c_int§XcursorFileSave: unsafe extern "C" fn(_: *mut FILE, _: *const XcursorComments, _: *const XcursorImages) -> c_int§XcursorFileSaveImages: unsafe extern "C" fn(_: *mut FILE, _: *const XcursorImages) -> c_int§XcursorGetDefaultSize: unsafe extern "C" fn(_: *mut Display) -> c_int§XcursorGetTheme: unsafe extern "C" fn(_: *mut Display) -> *mut c_char§XcursorGetThemeCore: unsafe extern "C" fn(_: *mut Display) -> c_int§XcursorImageCreate: unsafe extern "C" fn(_: c_int, _: c_int) -> *mut XcursorImage§XcursorImageDestroy: unsafe extern "C" fn(_: *mut XcursorImage)§XcursorImageHash: unsafe extern "C" fn(_: *mut XImage, _: *mut c_uchar)§XcursorImageLoadCursor: unsafe extern "C" fn(_: *mut Display, _: *const XcursorImage) -> c_ulong§XcursorImagesCreate: unsafe extern "C" fn(_: c_int) -> *mut XcursorImages§XcursorImagesDestroy: unsafe extern "C" fn(_: *mut XcursorImages)§XcursorImagesLoadCursor: unsafe extern "C" fn(_: *mut Display, _: *const XcursorImages) -> c_ulong§XcursorImagesLoadCursors: unsafe extern "C" fn(_: *mut Display, _: *const XcursorImages) -> *mut XcursorCursors§XcursorImagesSetName: unsafe extern "C" fn(_: *mut XcursorImages, _: *const c_char)§XcursorLibraryLoadCursor: unsafe extern "C" fn(_: *mut Display, _: *const c_char) -> c_ulong§XcursorLibraryLoadCursors: unsafe extern "C" fn(_: *mut Display, _: *const c_char) -> *mut XcursorCursors§XcursorLibraryLoadImage: unsafe extern "C" fn(_: *const c_char, _: *const c_char, _: c_int) -> *mut XcursorImage§XcursorLibraryLoadImages: unsafe extern "C" fn(_: *const c_char, _: *const c_char, _: c_int) -> *mut XcursorImages§XcursorLibraryPath: unsafe extern "C" fn() -> *const c_char§XcursorLibraryShape: unsafe extern "C" fn(_: *const c_char) -> c_int§XcursorNoticeCreateBitmap: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: c_uint, _: c_uint)§XcursorNoticePutBitmap: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: *mut XImage)§XcursorSetDefaultSize: unsafe extern "C" fn(_: *mut Display, _: c_int) -> c_int§XcursorSetTheme: unsafe extern "C" fn(_: *mut Display, _: *const c_char) -> c_int§XcursorSetThemeCore: unsafe extern "C" fn(_: *mut Display, _: c_int) -> c_int§XcursorShapeLoadCursor: unsafe extern "C" fn(_: *mut Display, _: c_uint) -> c_ulong§XcursorShapeLoadCursors: unsafe extern "C" fn(_: *mut Display, _: c_uint) -> *mut XcursorCursors§XcursorShapeLoadImage: unsafe extern "C" fn(_: c_uint, _: *const c_char, _: c_int) -> *mut XcursorImage§XcursorShapeLoadImages: unsafe extern "C" fn(_: c_uint, _: *const c_char, _: c_int) -> *mut XcursorImages§XcursorSupportsAnim: unsafe extern "C" fn(_: *mut Display) -> c_int§XcursorSupportsARGB: unsafe extern "C" fn(_: *mut Display) -> c_int§XcursorTryShapeBitmapCursor: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: c_ulong, _: *mut XColor, _: *mut XColor, _: c_uint, _: c_uint) -> c_ulong§XcursorTryShapeCursor: unsafe extern "C" fn(_: *mut Display, _: c_ulong, _: c_ulong, _: c_uint, _: c_uint, _: *const XColor, _: *const XColor) -> c_ulong§XcursorXcFileLoad: unsafe extern "C" fn(_: *mut XcursorFile, _: *mut *mut XcursorComments, _: *mut *mut XcursorImages) -> c_int§XcursorXcFileLoadAllImages: unsafe extern "C" fn(_: *mut XcursorFile) -> *mut XcursorImages§XcursorXcFileLoadImage: unsafe extern "C" fn(_: *mut XcursorFile, _: c_int) -> *mut XcursorImage§XcursorXcFileLoadImages: unsafe extern "C" fn(_: *mut XcursorFile, _: c_int) -> *mut XcursorImages§XcursorXcFileSave: unsafe extern "C" fn(_: *mut XcursorFile, _: *const XcursorComments, _: *const XcursorImages) -> c_int

Implementations§

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.