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

#[repr(C)]
pub struct TextInput {
Show fields pub text: Property<SharedString>, pub font_family: Property<SharedString>, pub font_size: Property<f32>, pub font_weight: Property<i32>, pub color: Property<Brush>, pub selection_foreground_color: Property<Color>, pub selection_background_color: Property<Color>, pub horizontal_alignment: Property<TextHorizontalAlignment>, pub vertical_alignment: Property<TextVerticalAlignment>, pub letter_spacing: Property<f32>, 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: Callback<VoidArg>, pub edited: Callback<VoidArg>, 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<Brush>selection_foreground_color: Property<Color>selection_background_color: Property<Color>horizontal_alignment: Property<TextHorizontalAlignment>vertical_alignment: Property<TextVerticalAlignment>letter_spacing: Property<f32>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: Callback<VoidArg>edited: Callback<VoidArg>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

impl TextInput[src]

pub fn text(self: Pin<&Self>) -> SharedString[src]

pub fn font_family(self: Pin<&Self>) -> SharedString[src]

pub fn font_size(self: Pin<&Self>) -> f32[src]

pub fn font_weight(self: Pin<&Self>) -> i32[src]

pub fn color(self: Pin<&Self>) -> Brush[src]

pub fn selection_foreground_color(self: Pin<&Self>) -> Color[src]

pub fn selection_background_color(self: Pin<&Self>) -> Color[src]

pub fn horizontal_alignment(self: Pin<&Self>) -> TextHorizontalAlignment[src]

pub fn vertical_alignment(self: Pin<&Self>) -> TextVerticalAlignment[src]

pub fn letter_spacing(self: Pin<&Self>) -> f32[src]

pub fn x(self: Pin<&Self>) -> f32[src]

pub fn y(self: Pin<&Self>) -> f32[src]

pub fn width(self: Pin<&Self>) -> f32[src]

pub fn height(self: Pin<&Self>) -> f32[src]

pub fn cursor_position(self: Pin<&Self>) -> i32[src]

pub fn anchor_position(self: Pin<&Self>) -> i32[src]

pub fn text_cursor_width(self: Pin<&Self>) -> f32[src]

pub fn cursor_visible(self: Pin<&Self>) -> bool[src]

pub fn has_focus(self: Pin<&Self>) -> bool[src]

pub fn enabled(self: Pin<&Self>) -> bool[src]

impl TextInput[src]

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.