i_slint_backend_qt::native_widgets

Struct NativeStyleMetrics

Source
#[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

Source

pub const FIELD_OFFSETS: NativeStyleMetricsFieldsOffsets

Return a struct containing the offset of for the fields of this struct

Source§

impl NativeStyleMetrics

Source

pub fn layout_spacing(self: Pin<&Self>) -> LogicalLength

Source

pub fn layout_padding(self: Pin<&Self>) -> LogicalLength

Source

pub fn text_cursor_width(self: Pin<&Self>) -> LogicalLength

Source

pub fn window_background(self: Pin<&Self>) -> Color

Source

pub fn default_text_color(self: Pin<&Self>) -> Color

Source

pub fn default_font_size(self: Pin<&Self>) -> LogicalLength

Source

pub fn textedit_background(self: Pin<&Self>) -> Color

Source

pub fn textedit_text_color(self: Pin<&Self>) -> Color

Source

pub fn textedit_background_disabled(self: Pin<&Self>) -> Color

Source

pub fn textedit_text_color_disabled(self: Pin<&Self>) -> Color

Source

pub fn placeholder_color(self: Pin<&Self>) -> Color

Source

pub fn placeholder_color_disabled(self: Pin<&Self>) -> Color

Source

pub fn dark_color_scheme(self: Pin<&Self>) -> bool

Source

pub fn tab_bar_alignment(self: Pin<&Self>) -> LayoutAlignment

Source§

impl NativeStyleMetrics

Source

pub fn new() -> Pin<Rc<Self>>

Source

pub fn init<T>(self: Pin<Rc<Self>>, _root: &T)

Trait Implementations§

Source§

impl Drop for NativeStyleMetrics

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl PinnedDrop for NativeStyleMetrics

Source§

fn drop(self: Pin<&mut Self>)

This is the equivalent to the regular Drop trait with the difference that self is pinned.
Source§

impl<'__dummy_lifetime> Unpin for NativeStyleMetrics
where __MustNotImplUnpin<'__dummy_lifetime>: Unpin,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.