pub struct NodeCanvasState {
pub pan: [f32; 2],
pub zoom: f32,
pub view_size: [f32; 2],
}Expand description
Caller-owned view state for a node-graph canvas.
Donor: oa::NodeCanvasState.
Fields§
§pan: [f32; 2]World-space pan offset (origin of the viewport in world coords).
zoom: f32Zoom factor (pixels per world unit).
view_size: [f32; 2]Viewport dimensions in screen pixels.
Trait Implementations§
Source§impl Clone for NodeCanvasState
impl Clone for NodeCanvasState
Source§impl Debug for NodeCanvasState
impl Debug for NodeCanvasState
Auto Trait Implementations§
impl Forget for NodeCanvasState
impl Freeze for NodeCanvasState
impl Move for NodeCanvasState
impl RefUnwindSafe for NodeCanvasState
impl Send for NodeCanvasState
impl Sync for NodeCanvasState
impl Unpin for NodeCanvasState
impl UnsafeUnpin for NodeCanvasState
impl UnwindSafe for NodeCanvasState
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