Struct tuifw::StaticText
source · pub struct StaticText { /* private fields */ }
Implementations§
source§impl StaticText
impl StaticText
pub fn new( tree: &mut tuifw_window_WindowTree<'_>, parent: Option<tuifw_window_Window>, prev: Option<tuifw_window_Window> ) -> Result<tuifw_window_Window, tuifw_screen_base_Error>
pub fn new_template( tree: &mut tuifw_window_WindowTree<'_> ) -> Result<tuifw_window_Window, tuifw_screen_base_Error>
pub fn text<'a>( tree: &'a tuifw_window_WindowTree<'_>, window: tuifw_window_Window ) -> &'a String
pub fn text_mut<T>( tree: &mut tuifw_window_WindowTree<'_>, window: tuifw_window_Window, f: impl FnOnce(&mut String) -> T ) -> T
pub fn set_text<'a>( tree: &mut tuifw_window_WindowTree<'_>, window: tuifw_window_Window, value: impl Into<alloc_borrow_Cow<'a, <String as core_ops_Deref>::Target>> )
Trait Implementations§
source§impl WidgetData for StaticText
impl WidgetData for StaticText
fn drop_widget_data( &mut self, tree: &mut tuifw_window_WindowTree<'_>, app: &mut dyn tuifw_window_App )
Auto Trait Implementations§
impl Freeze for StaticText
impl RefUnwindSafe for StaticText
impl Send for StaticText
impl Sync for StaticText
impl Unpin for StaticText
impl UnwindSafe for StaticText
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.