#[repr(C)]pub struct IOColorEntry {
pub index: u16,
pub red: IOColorComponent,
pub green: IOColorComponent,
pub blue: IOColorComponent,
}Available on crate feature
graphics only.Expand description
A structure defining one entry of a color lookup table.
This structure is used by IOFramebuffer to define an entry of a color lookup table. Field: index Number of pixels visible per row. Field: red Value of red component 0-65535. Field: green Value of green component 0-65535. Field: blue Value of blue component 0-65535.
See also Apple’s documentation
Fields§
§index: u16§red: IOColorComponent§green: IOColorComponent§blue: IOColorComponentTrait Implementations§
Source§impl Clone for IOColorEntry
impl Clone for IOColorEntry
Source§fn clone(&self) -> IOColorEntry
fn clone(&self) -> IOColorEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IOColorEntry
impl Debug for IOColorEntry
Source§impl Encode for IOColorEntry
Available on crate feature objc2 only.
impl Encode for IOColorEntry
Available on crate feature
objc2 only.Source§impl PartialEq for IOColorEntry
impl PartialEq for IOColorEntry
Source§impl RefEncode for IOColorEntry
Available on crate feature objc2 only.
impl RefEncode for IOColorEntry
Available on crate feature
objc2 only.Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for IOColorEntry
impl StructuralPartialEq for IOColorEntry
Auto Trait Implementations§
impl Freeze for IOColorEntry
impl RefUnwindSafe for IOColorEntry
impl Send for IOColorEntry
impl Sync for IOColorEntry
impl Unpin for IOColorEntry
impl UnwindSafe for IOColorEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.