Enum fyrox_ui::text_box::TextBoxMessage
source · pub enum TextBoxMessage {
SelectionBrush(Brush),
CaretBrush(Brush),
TextCommitMode(TextCommitMode),
Multiline(bool),
Editable(bool),
}Expand description
A message that could be used to alternate text box widget’s state or receive changes from it.
Important notes
Text box widget also supports TextMessage and WidgetMessage.
Variants§
SelectionBrush(Brush)
Used to change selection brush of a text box. Use TextBoxMessage::selection_brush` to create the message.
CaretBrush(Brush)
Used to change caret brush of a text box. Use TextBoxMessage::caret_brush` to create the message.
TextCommitMode(TextCommitMode)
Used to change text commit mode of a text box. Use TextBoxMessage::text_commit_mode` to create the message.
Multiline(bool)
Used to enable or disable multiline mode of a text box. Use TextBoxMessage::multiline` to create the message.
Editable(bool)
Used to enable or disable an ability to edit text box content. Use TextBoxMessage::editable` to create the message.
Implementations§
source§impl TextBoxMessage
impl TextBoxMessage
sourcepub fn selection_brush(
destination: Handle<UiNode>,
direction: MessageDirection,
value: Brush
) -> UiMessage
pub fn selection_brush( destination: Handle<UiNode>, direction: MessageDirection, value: Brush ) -> UiMessage
Creates TextBoxMessage::SelectionBrush.
sourcepub fn caret_brush(
destination: Handle<UiNode>,
direction: MessageDirection,
value: Brush
) -> UiMessage
pub fn caret_brush( destination: Handle<UiNode>, direction: MessageDirection, value: Brush ) -> UiMessage
Creates TextBoxMessage::CaretBrush.
sourcepub fn text_commit_mode(
destination: Handle<UiNode>,
direction: MessageDirection,
value: TextCommitMode
) -> UiMessage
pub fn text_commit_mode( destination: Handle<UiNode>, direction: MessageDirection, value: TextCommitMode ) -> UiMessage
Creates TextBoxMessage::TextCommitMode.
sourcepub fn multiline(
destination: Handle<UiNode>,
direction: MessageDirection,
value: bool
) -> UiMessage
pub fn multiline( destination: Handle<UiNode>, direction: MessageDirection, value: bool ) -> UiMessage
Creates TextBoxMessage::Multiline.
sourcepub fn editable(
destination: Handle<UiNode>,
direction: MessageDirection,
value: bool
) -> UiMessage
pub fn editable( destination: Handle<UiNode>, direction: MessageDirection, value: bool ) -> UiMessage
Creates TextBoxMessage::Editable.
Trait Implementations§
source§impl Clone for TextBoxMessage
impl Clone for TextBoxMessage
source§fn clone(&self) -> TextBoxMessage
fn clone(&self) -> TextBoxMessage
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TextBoxMessage
impl Debug for TextBoxMessage
source§impl PartialEq<TextBoxMessage> for TextBoxMessage
impl PartialEq<TextBoxMessage> for TextBoxMessage
source§fn eq(&self, other: &TextBoxMessage) -> bool
fn eq(&self, other: &TextBoxMessage) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TextBoxMessage
Auto Trait Implementations§
impl RefUnwindSafe for TextBoxMessage
impl Send for TextBoxMessage
impl Sync for TextBoxMessage
impl Unpin for TextBoxMessage
impl UnwindSafe for TextBoxMessage
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
source§impl<T> FieldValue for Twhere
T: 'static,
impl<T> FieldValue for Twhere T: 'static,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.