pub struct TextBox { /* private fields */ }Implementations§
Source§impl TextBox
impl TextBox
pub fn new() -> Self
pub fn element_ref(self, reference: &ElementRef<Self>) -> Self
pub fn text(self, value: impl Into<String>) -> Self
pub fn text_optional<T>(self, value: Option<T>) -> Self
pub fn placeholder_text(self, value: impl Into<String>) -> Self
pub fn placeholder_text_optional<T>(self, value: Option<T>) -> Self
pub fn is_enabled(self, value: impl Into<Option<bool>>) -> Self
pub fn accepts_return(self, value: impl Into<Option<bool>>) -> Self
pub fn text_wrapping(self, value: impl Into<Option<TextWrapping>>) -> Self
pub fn background(self, value: impl Into<Brush>) -> Self
pub fn background_optional<T>(self, value: Option<T>) -> Self
pub fn border_brush(self, value: impl Into<Brush>) -> Self
pub fn border_brush_optional<T>(self, value: Option<T>) -> Self
pub fn border_thickness(self, value: impl Into<Thickness>) -> Self
pub fn border_thickness_optional<T>(self, value: Option<T>) -> Self
pub fn on_text_changed(self, callback: impl IntoPayloadCallback<String>) -> Self
Trait Implementations§
impl FocusControl for TextBox
Source§impl LayoutControl for TextBox
impl LayoutControl for TextBox
fn width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_width(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn min_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn max_height(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn opacity(self, value: impl Into<Option<f64>>) -> Selfwhere
Self: Sized,
fn horizontal_alignment(
self,
value: impl Into<Option<HorizontalAlignment>>,
) -> Selfwhere
Self: Sized,
fn vertical_alignment(self, value: impl Into<Option<VerticalAlignment>>) -> Selfwhere
Self: Sized,
fn margin(self, value: impl Into<Thickness>) -> Selfwhere
Self: Sized,
fn margin_optional<T>(self, value: Option<T>) -> Self
fn exit_transition(self, transition: ExitTransition) -> Selfwhere
Self: Sized,
impl ReferenceControl for TextBox
Source§impl SlotsControl for TextBox
impl SlotsControl for TextBox
impl StructuralPartialEq for TextBox
Auto Trait Implementations§
impl !RefUnwindSafe for TextBox
impl !Send for TextBox
impl !Sync for TextBox
impl !UnwindSafe for TextBox
impl Freeze for TextBox
impl Unpin for TextBox
impl UnsafeUnpin for TextBox
Blanket Implementations§
Source§impl<T> AutomationExt for Twhere
T: LayoutControl,
impl<T> AutomationExt for Twhere
T: LayoutControl,
fn automation_name(self, value: impl Into<String>) -> Self
fn automation_id(self, value: impl Into<String>) -> Self
fn automation_heading_level(self, value: AutomationHeadingLevel) -> Self
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