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]
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]
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]
impl TextInput
[src]pub fn selection_anchor_and_cursor(self: Pin<&Self>) -> (usize, usize)
[src]
pub fn has_selection(self: Pin<&Self>) -> bool
[src]
pub fn unresolved_font_request(self: Pin<&Self>) -> FontRequest
[src]
Trait Implementations
impl HasStaticVTable<ItemVTable> for TextInput
[src]
impl HasStaticVTable<ItemVTable> for TextInput
[src]fn static_vtable() -> &'static ItemVTable
[src]
impl Item for TextInput
[src]
impl Item for TextInput
[src]fn init(self: Pin<&Self>, _window: &ComponentWindow)
[src]
fn geometry(self: Pin<&Self>) -> Rect
[src]
fn layouting_info(self: Pin<&Self>, window: &ComponentWindow) -> LayoutInfo
[src]
fn implicit_size(self: Pin<&Self>, window: &ComponentWindow) -> Size
[src]
fn input_event_filter_before_children(
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventFilterResult
[src]
self: Pin<&Self>,
_: MouseEvent,
_window: &ComponentWindow,
_self_rc: &ItemRc
) -> InputEventFilterResult
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
fn key_event(
self: Pin<&Self>,
event: &KeyEvent,
window: &ComponentWindow
) -> KeyEventResult
[src]
self: Pin<&Self>,
event: &KeyEvent,
window: &ComponentWindow
) -> KeyEventResult
fn focus_event(self: Pin<&Self>, event: &FocusEvent, window: &ComponentWindow)
[src]
fn render(self: Pin<&Self>, backend: &mut &mut dyn ItemRenderer)
[src]
impl ItemConsts for TextInput
[src]
impl ItemConsts for TextInput
[src]const cached_rendering_data_offset: FieldOffset<TextInput, CachedRenderingData>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TextInput
impl !RefUnwindSafe for TextInput
impl !UnwindSafe for TextInput
impl !UnwindSafe for TextInput