[][src]Struct sixtyfps_corelib::items::TextInput

#[repr(C)]pub struct TextInput {
    pub text: Property<SharedString>,
    pub font_family: Property<SharedString>,
    pub font_size: Property<f32>,
    pub font_weight: Property<i32>,
    pub color: Property<Color>,
    pub selection_foreground_color: Property<Color>,
    pub selection_background_color: Property<Color>,
    pub horizontal_alignment: Property<TextHorizontalAlignment>,
    pub vertical_alignment: Property<TextVerticalAlignment>,
    pub x: Property<f32>,
    pub y: Property<f32>,
    pub width: Property<f32>,
    pub height: Property<f32>,
    pub cursor_position: Property<i32>,
    pub anchor_position: Property<i32>,
    pub text_cursor_width: Property<f32>,
    pub cursor_visible: Property<bool>,
    pub has_focus: Property<bool>,
    pub enabled: Property<bool>,
    pub accepted: Signal<()>,
    pub edited: Signal<()>,
    pub pressed: Cell<bool>,
    pub cached_rendering_data: CachedRenderingData,
}

The implementation of the TextInput element

Fields

text: Property<SharedString>font_family: Property<SharedString>font_size: Property<f32>font_weight: Property<i32>color: Property<Color>selection_foreground_color: Property<Color>selection_background_color: Property<Color>horizontal_alignment: Property<TextHorizontalAlignment>vertical_alignment: Property<TextVerticalAlignment>x: Property<f32>y: Property<f32>width: Property<f32>height: Property<f32>cursor_position: Property<i32>anchor_position: Property<i32>text_cursor_width: Property<f32>cursor_visible: Property<bool>has_focus: Property<bool>enabled: Property<bool>accepted: Signal<()>edited: Signal<()>pressed: Cell<bool>cached_rendering_data: CachedRenderingData

Implementations

impl TextInput[src]

pub const FIELD_OFFSETS: TextInputFieldsOffsets[src]

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

Trait Implementations

impl Default for TextInput[src]

impl HasStaticVTable<ItemVTable> for TextInput[src]

impl Item for TextInput[src]

impl ItemConsts for TextInput[src]

impl<'__dummy_lifetime> Unpin for TextInput where
    __MustNotImplUnpin<'__dummy_lifetime>: Unpin
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.