Struct tuifw::ContentPresenter
source · pub struct ContentPresenter { /* private fields */ }
Implementations§
source§impl ContentPresenter
impl ContentPresenter
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 content<'a>( tree: &'a tuifw_window_WindowTree<'_>, window: tuifw_window_Window ) -> &'a Option<Box<dyn Data>>
pub fn content_mut<T>( tree: &mut tuifw_window_WindowTree<'_>, window: tuifw_window_Window, f: impl FnOnce(&mut Option<Box<dyn Data>>) -> T ) -> T
pub fn set_content( tree: &mut tuifw_window_WindowTree<'_>, window: tuifw_window_Window, value: Option<Box<dyn Data>> )
pub fn content_template( tree: &tuifw_window_WindowTree<'_>, window: tuifw_window_Window ) -> Option<Window>
pub fn set_content_template( tree: &mut tuifw_window_WindowTree<'_>, window: tuifw_window_Window, value: Option<Window> )
Trait Implementations§
source§impl WidgetData for ContentPresenter
impl WidgetData for ContentPresenter
fn drop_widget_data( &mut self, tree: &mut tuifw_window_WindowTree<'_>, app: &mut dyn tuifw_window_App )
Auto Trait Implementations§
impl Freeze for ContentPresenter
impl !RefUnwindSafe for ContentPresenter
impl !Send for ContentPresenter
impl !Sync for ContentPresenter
impl Unpin for ContentPresenter
impl !UnwindSafe for ContentPresenter
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.