[−][src]Struct sixtyfps_corelib::items::TextInput
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]
pub fn static_vtable() -> &'static ItemVTable
[src]
impl Item for TextInput
[src]
pub fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
pub fn geometry(self: Pin<&Self>) -> Rect
[src]
pub fn rendering_primitive(
self: Pin<&Self>,
window: &ComponentWindow
) -> HighLevelRenderingPrimitive
[src]
self: Pin<&Self>,
window: &ComponentWindow
) -> HighLevelRenderingPrimitive
pub fn rendering_variables(
self: Pin<&Self>,
window: &ComponentWindow
) -> SharedArray<RenderingVariable>
[src]
self: Pin<&Self>,
window: &ComponentWindow
) -> SharedArray<RenderingVariable>
pub fn layouting_info(self: Pin<&Self>, window: &ComponentWindow) -> LayoutInfo
[src]
pub fn input_event(
self: Pin<&Self>,
event: MouseEvent,
window: &ComponentWindow,
self_rc: &ItemRc
) -> InputEventResult
[src]
self: Pin<&Self>,
event: MouseEvent,
window: &ComponentWindow,
self_rc: &ItemRc
) -> InputEventResult
pub fn key_event(
self: Pin<&Self>,
event: &KeyEvent,
window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
event: &KeyEvent,
window: &ComponentWindow
) -> KeyEventResult
pub fn focus_event(
self: Pin<&Self>,
event: &FocusEvent,
window: &ComponentWindow
)
[src]
self: Pin<&Self>,
event: &FocusEvent,
window: &ComponentWindow
)
impl ItemConsts for TextInput
[src]
pub const cached_rendering_data_offset: FieldOffset<TextInput, CachedRenderingData>
[src]
impl<'__dummy_lifetime> Unpin for TextInput where
__MustNotImplUnpin<'__dummy_lifetime>: Unpin,
[src]
__MustNotImplUnpin<'__dummy_lifetime>: Unpin,
Auto Trait Implementations
impl !RefUnwindSafe for TextInput
impl !Send for TextInput
impl !Sync for TextInput
impl !UnwindSafe for TextInput
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,