pub struct TextInputWidget<A = ()> { /* private fields */ }Expand description
Retained text-field leaf created internally by TextInput.
Its stateful fields are intentionally private; public code should construct
TextInput instead. The type remains nameable for widget diagnostics.
§Examples
use ailloli_ui_widgets::controls::text_input::TextInputWidget;
assert!(std::any::type_name::<TextInputWidget<()>>().ends_with("TextInputWidget"));Trait Implementations§
Source§impl<A: 'static> Widget<A> for TextInputWidget<A>
impl<A: 'static> Widget<A> for TextInputWidget<A>
Source§fn debug_name(&self) -> &'static str
fn debug_name(&self) -> &'static str
Returns a stable, non-sensitive static name for diagnostics. Read more
Source§fn layout(
&self,
_engine: &mut LayoutEngine<'_, A>,
ctx: &mut LayoutCtx<'_>,
_children: &mut [LayoutChild],
constraints: Constraints,
) -> LayoutResult
fn layout( &self, _engine: &mut LayoutEngine<'_, A>, ctx: &mut LayoutCtx<'_>, _children: &mut [LayoutChild], constraints: Constraints, ) -> LayoutResult
Measures and positions this widget’s direct retained children. Read more
Source§fn layout_committed(
&self,
ctx: &mut LayoutCtx<'_>,
bounds: Rect,
layout: &LayoutResult,
)
fn layout_committed( &self, ctx: &mut LayoutCtx<'_>, bounds: Rect, layout: &LayoutResult, )
Observes newly committed absolute bounds after layout. Read more
Source§fn paint(&self, ctx: &mut PaintCtx<'_>, bounds: Rect, layout: &LayoutResult)
fn paint(&self, ctx: &mut PaintCtx<'_>, bounds: Rect, layout: &LayoutResult)
Emits base draw commands for absolute logical-pixel
bounds. Read moreSource§fn event(
&self,
ctx: &mut EventCtx<A>,
event: &Event,
bounds: Rect,
layout: &LayoutResult,
)
fn event( &self, ctx: &mut EventCtx<A>, event: &Event, bounds: Rect, layout: &LayoutResult, )
Handles one routed event for absolute bounds and cached layout. Read more
Source§fn focus_policy(&self) -> FocusPolicy
fn focus_policy(&self) -> FocusPolicy
Returns whether the widget may receive keyboard focus. Read more
Source§fn activation_policy(&self) -> ActivationPolicy
fn activation_policy(&self) -> ActivationPolicy
Policy used for provider-neutral focus-only pointer gestures. Read more
Source§fn input_role(&self) -> InputRole
fn input_role(&self) -> InputRole
Returns provider-neutral text-input semantics. Read more
Source§fn ime_cursor_rect(&self, bounds: Rect, layout: &LayoutResult) -> Option<Rect>
fn ime_cursor_rect(&self, bounds: Rect, layout: &LayoutResult) -> Option<Rect>
Returns the absolute logical-pixel IME candidate/caret rectangle. Read more
§fn layout_dependency_revision(&self) -> u64
fn layout_dependency_revision(&self) -> u64
Revision of widget-owned inputs that can change its layout result. Read more
§fn paint_overlay(
&self,
_ctx: &mut PaintContext<'_>,
_bounds: Rect,
_layout: &LayoutResult,
)
fn paint_overlay( &self, _ctx: &mut PaintContext<'_>, _bounds: Rect, _layout: &LayoutResult, )
Emits top-level paint commands after this widget’s descendants. Read more
§fn hover_cursor_role(&self) -> HoverCursorRole
fn hover_cursor_role(&self) -> HoverCursorRole
Returns the widget-wide hover cursor role. Read more
§fn hover_cursor_role_at(
&self,
_bounds: Rect,
_layout: &LayoutResult,
_pos: Point,
) -> HoverCursorRole
fn hover_cursor_role_at( &self, _bounds: Rect, _layout: &LayoutResult, _pos: Point, ) -> HoverCursorRole
Returns the hover cursor role at an absolute logical-pixel position. Read more
Auto Trait Implementations§
impl<A = ()> !Freeze for TextInputWidget<A>
impl<A = ()> !RefUnwindSafe for TextInputWidget<A>
impl<A = ()> !Send for TextInputWidget<A>
impl<A = ()> !Sync for TextInputWidget<A>
impl<A> Unpin for TextInputWidget<A>
impl<A = ()> !UnwindSafe for TextInputWidget<A>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more