pub struct QuestEditorGraphState {Show 18 fields
pub pan_offset: Vec2,
pub zoom: f32,
pub canvas_size: Vec2,
pub selected_nodes: HashSet<u64>,
pub hovered_node: Option<u64>,
pub dragging_node: Option<u64>,
pub drag_start_pos: Vec2,
pub drag_node_start: Vec2,
pub connection_drag_from: Option<(u64, usize)>,
pub connection_drag_pos: Vec2,
pub selection_box_start: Option<Vec2>,
pub selection_box_end: Vec2,
pub grid_size: f32,
pub snap_to_grid: bool,
pub show_grid: bool,
pub context_menu_pos: Option<Vec2>,
pub context_menu_node: Option<u64>,
pub bezier_smoothness: f32,
}Fields§
§pan_offset: Vec2§zoom: f32§canvas_size: Vec2§selected_nodes: HashSet<u64>§hovered_node: Option<u64>§dragging_node: Option<u64>§drag_start_pos: Vec2§drag_node_start: Vec2§connection_drag_from: Option<(u64, usize)>§connection_drag_pos: Vec2§selection_box_start: Option<Vec2>§selection_box_end: Vec2§grid_size: f32§snap_to_grid: bool§show_grid: bool§bezier_smoothness: f32Implementations§
Trait Implementations§
Source§impl Clone for QuestEditorGraphState
impl Clone for QuestEditorGraphState
Source§impl Debug for QuestEditorGraphState
impl Debug for QuestEditorGraphState
Auto Trait Implementations§
impl Freeze for QuestEditorGraphState
impl RefUnwindSafe for QuestEditorGraphState
impl Send for QuestEditorGraphState
impl Sync for QuestEditorGraphState
impl Unpin for QuestEditorGraphState
impl UnsafeUnpin for QuestEditorGraphState
impl UnwindSafe for QuestEditorGraphState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.