pub struct NodeView<'a> { /* private fields */ }Expand description
One node of a laid-out window: a widget, or the window itself at the root. Draw it, then its children in order, so later ones are on top.
Implementations§
Source§impl<'a> NodeView<'a>
impl<'a> NodeView<'a>
Sourcepub fn name(&self) -> &'static str
pub fn name(&self) -> &'static str
The widget type, such as "Row", or "PanelWindow" at the root.
Sourcepub fn rect(&self) -> Rect
pub fn rect(&self) -> Rect
The rectangle from the last layout, in window coordinates. Empty before the first layout.
Sourcepub fn bounds(&self) -> Rect
pub fn bounds(&self) -> Rect
The area the node and everything inside it painted at the last layout: its rectangle, text and icons that overflow it, and its descendants’ bounds. Nothing outside it needs drawing for this node.
Sourcepub fn style(&self) -> Style
pub fn style(&self) -> Style
The style in effect, with a button’s hover and pressed styles laid
over its own. Inherited fields aren’t filled in;
TextView::color has the color text is drawn in.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for NodeView<'a>
impl<'a> !Send for NodeView<'a>
impl<'a> !Sync for NodeView<'a>
impl<'a> !UnwindSafe for NodeView<'a>
impl<'a> Forget for NodeView<'a>
impl<'a> Freeze for NodeView<'a>
impl<'a> Move for NodeView<'a>
impl<'a> Unpin for NodeView<'a>
impl<'a> UnsafeUnpin for NodeView<'a>
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