pub struct DragState<'a>(pub Pin<Rc<InnerDragState>>, pub PhantomData<&'a InnerDragState>);Tuple Fields§
§0: Pin<Rc<InnerDragState>>§1: PhantomData<&'a InnerDragState>Implementations§
Source§impl<'a> DragState<'a>
impl<'a> DragState<'a>
pub fn get_drag_offset_x(&self) -> Coord
pub fn set_drag_offset_x(&self, value: Coord)
pub fn get_drag_offset_y(&self) -> Coord
pub fn set_drag_offset_y(&self, value: Coord)
pub fn get_dragged_group_id(&self) -> i32
pub fn set_dragged_group_id(&self, value: i32)
pub fn get_dragged_node_id(&self) -> i32
pub fn set_dragged_node_id(&self, value: i32)
pub fn get_is_dragging(&self) -> bool
pub fn set_is_dragging(&self, value: bool)
Trait Implementations§
Source§impl<'a> Global<'a, NodeEditor> for DragState<'a>
impl<'a> Global<'a, NodeEditor> for DragState<'a>
Source§type StaticSelf = DragState<'static>
type StaticSelf = DragState<'static>
The
Self type, with a 'static lifetime.Source§fn get(component: &'a NodeEditor) -> Self
fn get(component: &'a NodeEditor) -> Self
Returns a reference to the global.
impl StrongHandle for DragState<'static>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DragState<'a>
impl<'a> !Send for DragState<'a>
impl<'a> !Sync for DragState<'a>
impl<'a> !UnwindSafe for DragState<'a>
impl<'a> Freeze for DragState<'a>
impl<'a> Unpin for DragState<'a>
impl<'a> UnsafeUnpin for DragState<'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