i_slint_core::items

Struct TextInputFieldsOffsets

Source
pub struct TextInputFieldsOffsets {
Show 30 fields pub text: FieldOffset<TextInput, Property<SharedString>, AllowPin>, pub font_family: FieldOffset<TextInput, Property<SharedString>, AllowPin>, pub font_size: FieldOffset<TextInput, Property<LogicalLength>, AllowPin>, pub font_weight: FieldOffset<TextInput, Property<i32>, AllowPin>, pub font_italic: FieldOffset<TextInput, Property<bool>, AllowPin>, pub color: FieldOffset<TextInput, Property<Brush>, AllowPin>, pub selection_foreground_color: FieldOffset<TextInput, Property<Color>, AllowPin>, pub selection_background_color: FieldOffset<TextInput, Property<Color>, AllowPin>, pub horizontal_alignment: FieldOffset<TextInput, Property<TextHorizontalAlignment>, AllowPin>, pub vertical_alignment: FieldOffset<TextInput, Property<TextVerticalAlignment>, AllowPin>, pub wrap: FieldOffset<TextInput, Property<TextWrap>, AllowPin>, pub input_type: FieldOffset<TextInput, Property<InputType>, AllowPin>, pub letter_spacing: FieldOffset<TextInput, Property<LogicalLength>, AllowPin>, pub width: FieldOffset<TextInput, Property<LogicalLength>, AllowPin>, pub height: FieldOffset<TextInput, Property<LogicalLength>, AllowPin>, pub cursor_position_byte_offset: FieldOffset<TextInput, Property<i32>, AllowPin>, pub anchor_position_byte_offset: FieldOffset<TextInput, Property<i32>, AllowPin>, pub text_cursor_width: FieldOffset<TextInput, Property<LogicalLength>, AllowPin>, pub cursor_visible: FieldOffset<TextInput, Property<bool>, AllowPin>, pub has_focus: FieldOffset<TextInput, Property<bool>, AllowPin>, pub enabled: FieldOffset<TextInput, Property<bool>, AllowPin>, pub accepted: FieldOffset<TextInput, Callback<VoidArg>, AllowPin>, pub cursor_position_changed: FieldOffset<TextInput, Callback<(Point,)>, AllowPin>, pub edited: FieldOffset<TextInput, Callback<VoidArg>, AllowPin>, pub key_pressed: FieldOffset<TextInput, Callback<KeyEventArg, EventResult>, AllowPin>, pub key_released: FieldOffset<TextInput, Callback<KeyEventArg, EventResult>, AllowPin>, pub single_line: FieldOffset<TextInput, Property<bool>, AllowPin>, pub read_only: FieldOffset<TextInput, Property<bool>, AllowPin>, pub preedit_text: FieldOffset<TextInput, Property<SharedString>, AllowPin>, pub cached_rendering_data: FieldOffset<TextInput, CachedRenderingData, AllowPin>, /* private fields */
}
Expand description

Helper struct containing the offsets of the fields of the struct TextInput

Generated from the #[derive(FieldOffsets)] macro from the const-field-offset crate

Fields§

§text: FieldOffset<TextInput, Property<SharedString>, AllowPin>§font_family: FieldOffset<TextInput, Property<SharedString>, AllowPin>§font_size: FieldOffset<TextInput, Property<LogicalLength>, AllowPin>§font_weight: FieldOffset<TextInput, Property<i32>, AllowPin>§font_italic: FieldOffset<TextInput, Property<bool>, AllowPin>§color: FieldOffset<TextInput, Property<Brush>, AllowPin>§selection_foreground_color: FieldOffset<TextInput, Property<Color>, AllowPin>§selection_background_color: FieldOffset<TextInput, Property<Color>, AllowPin>§horizontal_alignment: FieldOffset<TextInput, Property<TextHorizontalAlignment>, AllowPin>§vertical_alignment: FieldOffset<TextInput, Property<TextVerticalAlignment>, AllowPin>§wrap: FieldOffset<TextInput, Property<TextWrap>, AllowPin>§input_type: FieldOffset<TextInput, Property<InputType>, AllowPin>§letter_spacing: FieldOffset<TextInput, Property<LogicalLength>, AllowPin>§width: FieldOffset<TextInput, Property<LogicalLength>, AllowPin>§height: FieldOffset<TextInput, Property<LogicalLength>, AllowPin>§cursor_position_byte_offset: FieldOffset<TextInput, Property<i32>, AllowPin>§anchor_position_byte_offset: FieldOffset<TextInput, Property<i32>, AllowPin>§text_cursor_width: FieldOffset<TextInput, Property<LogicalLength>, AllowPin>§cursor_visible: FieldOffset<TextInput, Property<bool>, AllowPin>§has_focus: FieldOffset<TextInput, Property<bool>, AllowPin>§enabled: FieldOffset<TextInput, Property<bool>, AllowPin>§accepted: FieldOffset<TextInput, Callback<VoidArg>, AllowPin>§cursor_position_changed: FieldOffset<TextInput, Callback<(Point,)>, AllowPin>§edited: FieldOffset<TextInput, Callback<VoidArg>, AllowPin>§key_pressed: FieldOffset<TextInput, Callback<KeyEventArg, EventResult>, AllowPin>§key_released: FieldOffset<TextInput, Callback<KeyEventArg, EventResult>, AllowPin>§single_line: FieldOffset<TextInput, Property<bool>, AllowPin>§read_only: FieldOffset<TextInput, Property<bool>, AllowPin>§preedit_text: FieldOffset<TextInput, Property<SharedString>, AllowPin>§cached_rendering_data: FieldOffset<TextInput, CachedRenderingData, AllowPin>

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.