pub struct NodeGraphView<'a> { /* private fields */ }👎Deprecated since 0.1.0:
use NodeGraph’s StatefulWidget impl with FlowState (set view_offset for panning)
Expand description
A read-only Widget that renders a scrolled window of a NodeGraph’s
borders/ports/connections (no node content).
The full graph is rendered once into an off-screen canvas during
NodeGraph::calculate; this widget blits the visible window (determined
by its Viewport) onto the frame each draw. Render your own node content
into the rects from NodeGraph::split_viewport separately.
ⓘ
f.render_widget(NodeGraphView::new(&graph).offset(x, y), area);Implementations§
Source§impl<'a> NodeGraphView<'a>
impl<'a> NodeGraphView<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NodeGraphView<'a>
impl<'a> RefUnwindSafe for NodeGraphView<'a>
impl<'a> Send for NodeGraphView<'a>
impl<'a> Sync for NodeGraphView<'a>
impl<'a> Unpin for NodeGraphView<'a>
impl<'a> UnsafeUnpin for NodeGraphView<'a>
impl<'a> UnwindSafe for NodeGraphView<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more