#[repr(C)]pub struct NativeStyleMetrics {Show 15 fields
pub layout_spacing: Property<LogicalLength>,
pub layout_padding: Property<LogicalLength>,
pub text_cursor_width: Property<LogicalLength>,
pub window_background: Property<Color>,
pub default_text_color: Property<Color>,
pub default_font_size: Property<LogicalLength>,
pub textedit_background: Property<Color>,
pub textedit_text_color: Property<Color>,
pub textedit_background_disabled: Property<Color>,
pub textedit_text_color_disabled: Property<Color>,
pub placeholder_color: Property<Color>,
pub placeholder_color_disabled: Property<Color>,
pub dark_color_scheme: Property<bool>,
pub tab_bar_alignment: Property<LayoutAlignment>,
pub style_change_listener: Cell<*const u8>,
}
Fields§
§layout_spacing: Property<LogicalLength>
§layout_padding: Property<LogicalLength>
§text_cursor_width: Property<LogicalLength>
§window_background: Property<Color>
§default_text_color: Property<Color>
§default_font_size: Property<LogicalLength>
§textedit_background: Property<Color>
§textedit_text_color: Property<Color>
§textedit_background_disabled: Property<Color>
§textedit_text_color_disabled: Property<Color>
§placeholder_color: Property<Color>
§placeholder_color_disabled: Property<Color>
§dark_color_scheme: Property<bool>
§tab_bar_alignment: Property<LayoutAlignment>
§style_change_listener: Cell<*const u8>
Implementations§
Source§impl NativeStyleMetrics
impl NativeStyleMetrics
Sourcepub const FIELD_OFFSETS: NativeStyleMetricsFieldsOffsets
pub const FIELD_OFFSETS: NativeStyleMetricsFieldsOffsets
Return a struct containing the offset of for the fields of this struct
Source§impl NativeStyleMetrics
impl NativeStyleMetrics
pub fn layout_spacing(self: Pin<&Self>) -> LogicalLength
pub fn layout_padding(self: Pin<&Self>) -> LogicalLength
pub fn text_cursor_width(self: Pin<&Self>) -> LogicalLength
pub fn window_background(self: Pin<&Self>) -> Color
pub fn default_text_color(self: Pin<&Self>) -> Color
pub fn default_font_size(self: Pin<&Self>) -> LogicalLength
pub fn textedit_background(self: Pin<&Self>) -> Color
pub fn textedit_text_color(self: Pin<&Self>) -> Color
pub fn textedit_background_disabled(self: Pin<&Self>) -> Color
pub fn textedit_text_color_disabled(self: Pin<&Self>) -> Color
pub fn placeholder_color(self: Pin<&Self>) -> Color
pub fn placeholder_color_disabled(self: Pin<&Self>) -> Color
pub fn dark_color_scheme(self: Pin<&Self>) -> bool
pub fn tab_bar_alignment(self: Pin<&Self>) -> LayoutAlignment
Trait Implementations§
Source§impl Drop for NativeStyleMetrics
impl Drop for NativeStyleMetrics
Source§impl PinnedDrop for NativeStyleMetrics
impl PinnedDrop for NativeStyleMetrics
impl<'__dummy_lifetime> Unpin for NativeStyleMetricswhere
__MustNotImplUnpin<'__dummy_lifetime>: Unpin,
Auto Trait Implementations§
impl !Freeze for NativeStyleMetrics
impl !RefUnwindSafe for NativeStyleMetrics
impl !Send for NativeStyleMetrics
impl !Sync for NativeStyleMetrics
impl UnwindSafe for NativeStyleMetrics
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