oa::ui::types::NodeCanvasState

Caller-owned view state for a node-graph canvas. Donor: oa::NodeCanvasState.

StRust public API

Declaration

pub struct NodeCanvasState { pub pan: [f32; 2], pub zoom: f32, pub view_size: [f32; 2], }
Public Rust declaration.

Public Methods

fn clone(&self) -> NodeCanvasState
fn fmt(&self, f: &mut Formatter<'_>) -> Result

Associated Functions

fn default() -> Self

Public Data Members

pan[f32; 2]field
zoomf32field
view_size[f32; 2]field

Public Method Documentation

fn clone( &self ) -> NodeCanvasState
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn default() -> Self
No public source comment is attached to this declaration.