#[repr(C)]pub struct IOHardwareCursorDescriptor {
pub majorVersion: u16,
pub minorVersion: u16,
pub height: u32,
pub width: u32,
pub bitDepth: u32,
pub maskBitDepth: u32,
pub numColors: u32,
pub colorEncodings: *mut u32,
pub flags: u32,
pub supportedSpecialEncodings: u32,
pub specialEncodings: [u32; 16],
}graphics only.Expand description
A structure defining the format of a hardware cursor.
This structure is used by IOFramebuffer to define the format of a hardware cursor. Field: majorVersion Set to kHardwareCursorDescriptorMajorVersion. Field: minorVersion Set to kHardwareCursorDescriptorMinorVersion. Field: height Maximum size of the cursor. Field: width Maximum size of the cursor. Field: bitDepth Number bits per pixel, or a QD/QT pixel type, for example kIO8IndexedPixelFormat, kIO32ARGBPixelFormat. Field: maskBitDepth Unused. Field: numColors Number of colors for indexed pixel types. Field: colorEncodings An array pointer specifying the pixel values corresponding to the indices into the color table, for indexed pixel types. Field: flags None defined, set to zero. Field: supportedSpecialEncodings Mask of supported special pixel values, eg. kTransparentEncodedPixel, kInvertingEncodedPixel. Field: specialEncodings Array of pixel values for each supported special encoding.
See also Apple’s documentation
Fields§
§majorVersion: u16§minorVersion: u16§height: u32§width: u32§bitDepth: u32§maskBitDepth: u32§numColors: u32§colorEncodings: *mut u32§flags: u32§supportedSpecialEncodings: u32§specialEncodings: [u32; 16]Trait Implementations§
Source§impl Clone for IOHardwareCursorDescriptor
impl Clone for IOHardwareCursorDescriptor
Source§fn clone(&self) -> IOHardwareCursorDescriptor
fn clone(&self) -> IOHardwareCursorDescriptor
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IOHardwareCursorDescriptor
impl Debug for IOHardwareCursorDescriptor
Source§impl Encode for IOHardwareCursorDescriptor
Available on crate feature objc2 only.
impl Encode for IOHardwareCursorDescriptor
objc2 only.Source§impl RefEncode for IOHardwareCursorDescriptor
Available on crate feature objc2 only.
impl RefEncode for IOHardwareCursorDescriptor
objc2 only.