Struct glory_core::view::View
source · pub struct View { /* private fields */ }Implementations§
source§impl View
impl View
pub fn new(scope: Scope, widget: impl Widget) -> Self
pub fn holder_id(&self) -> HolderId
pub fn is_built(&self) -> bool
pub fn is_attached(&self) -> bool
pub fn child(&self, view_id: &ViewId) -> Option<&View>
pub fn child_mut(&mut self, view_id: &ViewId) -> Option<&mut View>
pub fn attach(&mut self)
pub fn detach(&mut self)
pub fn prepend_view(&mut self, new_view: View)
pub fn append_view(&mut self, new_view: View)
pub fn before_view(&mut self, view_id: &ViewId, new_view: View) -> bool
pub fn after_view(&mut self, view_id: &ViewId, new_view: View) -> bool
pub fn first_child_node(&self) -> Option<&Node>
pub fn last_child_node(&self) -> Option<&Node>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for View
impl !Send for View
impl !Sync for View
impl Unpin for View
impl !UnwindSafe for View
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