#[repr(C)]pub struct SCreateLineFigureDrawerCommand {
pub pos1_posF3: *mut f32,
pub pos2_posF3: *mut f32,
pub width: f32,
pub arrow: bool,
pub lifeTime: c_int,
pub figureGroupId: c_int,
pub ret_newFigureGroupId: c_int,
}
Expand description
@brief Creates a straight line Creates a straight line from pos1 to pos2.
- Each figure is part of a figure group
- When creating figures, use 0 as <figureGroupId> to create a new figure group. The id of this figure group is returned in <ret_newFigureGroupId> @param lifeTime specifies how many frames a figure should live before being auto-removed; 0 means no removal @param arrow true means that the figure will get an arrow at the end
Fields§
§pos1_posF3: *mut f32
§pos2_posF3: *mut f32
§width: f32
§arrow: bool
true: means that the figure will get an arrow at the end
lifeTime: c_int
how many frames a figure should live before being autoremoved, 0 means no removal
figureGroupId: c_int
use 0 to get a new group
ret_newFigureGroupId: c_int
the new group
Trait Implementations§
Source§impl Clone for SCreateLineFigureDrawerCommand
impl Clone for SCreateLineFigureDrawerCommand
Source§fn clone(&self) -> SCreateLineFigureDrawerCommand
fn clone(&self) -> SCreateLineFigureDrawerCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for SCreateLineFigureDrawerCommand
Auto Trait Implementations§
impl Freeze for SCreateLineFigureDrawerCommand
impl RefUnwindSafe for SCreateLineFigureDrawerCommand
impl !Send for SCreateLineFigureDrawerCommand
impl !Sync for SCreateLineFigureDrawerCommand
impl Unpin for SCreateLineFigureDrawerCommand
impl UnwindSafe for SCreateLineFigureDrawerCommand
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