#[repr(C)]pub struct IOHardwareCursorInfo {
pub majorVersion: u16,
pub minorVersion: u16,
pub cursorHeight: u32,
pub cursorWidth: u32,
pub colorMap: *mut IOColorEntry,
pub hardwareCursorData: *mut u8,
pub cursorHotSpotX: u16,
pub cursorHotSpotY: u16,
pub reserved: [u32; 5],
}graphics only.Expand description
A structure defining the converted data of a hardware cursor.
This structure is used by IOFramebuffer to return the data of a hardware cursor by convertCursorImage() after conversion based on the IOHardwareCursorDescriptor passed to that routine. Field: majorVersion Set to kHardwareCursorInfoMajorVersion. Field: minorVersion Set to kHardwareCursorInfoMinorVersion. Field: cursorHeight The actual size of the cursor is returned. Field: cursorWidth The actual size of the cursor is returned. Field: colorMap Pointer to array of IOColorEntry structures, with the number of elements set by the numColors field of the IOHardwareCursorDescriptor. Zero should be passed for direct pixel formats. Field: hardwareCursorData Buffer to receive the converted cursor data. Field: cursorHotSpotX Cursor’s hotspot. Field: cursorHotSpotY Cursor’s hotspot. Field: reserved Reserved, set to zero.
See also Apple’s documentation
Fields§
§majorVersion: u16§minorVersion: u16§cursorHeight: u32§cursorWidth: u32§colorMap: *mut IOColorEntry§hardwareCursorData: *mut u8§cursorHotSpotX: u16§cursorHotSpotY: u16§reserved: [u32; 5]Trait Implementations§
Source§impl Clone for IOHardwareCursorInfo
impl Clone for IOHardwareCursorInfo
Source§fn clone(&self) -> IOHardwareCursorInfo
fn clone(&self) -> IOHardwareCursorInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IOHardwareCursorInfo
impl Debug for IOHardwareCursorInfo
Source§impl Encode for IOHardwareCursorInfo
Available on crate feature objc2 only.
impl Encode for IOHardwareCursorInfo
objc2 only.Source§impl PartialEq for IOHardwareCursorInfo
impl PartialEq for IOHardwareCursorInfo
Source§impl RefEncode for IOHardwareCursorInfo
Available on crate feature objc2 only.
impl RefEncode for IOHardwareCursorInfo
objc2 only.