#[repr(C)]pub struct NativePalette {Show 13 fields
pub background: Property<Brush>,
pub foreground: Property<Brush>,
pub alternate_background: Property<Brush>,
pub alternate_foreground: Property<Brush>,
pub accent_background: Property<Brush>,
pub accent_foreground: Property<Brush>,
pub control_background: Property<Brush>,
pub control_foreground: Property<Brush>,
pub selection_background: Property<Brush>,
pub selection_foreground: Property<Brush>,
pub border: Property<Brush>,
pub color_scheme: Property<ColorScheme>,
pub style_change_listener: Cell<*const u8>,
}
Fields§
§background: Property<Brush>
§foreground: Property<Brush>
§alternate_background: Property<Brush>
§alternate_foreground: Property<Brush>
§accent_background: Property<Brush>
§accent_foreground: Property<Brush>
§control_background: Property<Brush>
§control_foreground: Property<Brush>
§selection_background: Property<Brush>
§selection_foreground: Property<Brush>
§border: Property<Brush>
§color_scheme: Property<ColorScheme>
§style_change_listener: Cell<*const u8>
Implementations§
Source§impl NativePalette
impl NativePalette
Sourcepub const FIELD_OFFSETS: NativePaletteFieldsOffsets
pub const FIELD_OFFSETS: NativePaletteFieldsOffsets
Return a struct containing the offset of for the fields of this struct
Source§impl NativePalette
impl NativePalette
pub fn background(self: Pin<&Self>) -> Brush
pub fn foreground(self: Pin<&Self>) -> Brush
pub fn alternate_background(self: Pin<&Self>) -> Brush
pub fn alternate_foreground(self: Pin<&Self>) -> Brush
pub fn accent_background(self: Pin<&Self>) -> Brush
pub fn accent_foreground(self: Pin<&Self>) -> Brush
pub fn control_background(self: Pin<&Self>) -> Brush
pub fn control_foreground(self: Pin<&Self>) -> Brush
pub fn selection_background(self: Pin<&Self>) -> Brush
pub fn selection_foreground(self: Pin<&Self>) -> Brush
pub fn border(self: Pin<&Self>) -> Brush
pub fn color_scheme(self: Pin<&Self>) -> ColorScheme
Trait Implementations§
Source§impl Drop for NativePalette
impl Drop for NativePalette
Source§impl PinnedDrop for NativePalette
impl PinnedDrop for NativePalette
impl<'__dummy_lifetime> Unpin for NativePalettewhere
__MustNotImplUnpin<'__dummy_lifetime>: Unpin,
Auto Trait Implementations§
impl !Freeze for NativePalette
impl !RefUnwindSafe for NativePalette
impl !Send for NativePalette
impl !Sync for NativePalette
impl UnwindSafe for NativePalette
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