#[repr(C)]pub struct SCreateSplineFigureDrawerCommand {
pub pos1_posF3: *mut f32,
pub pos2_posF3: *mut f32,
pub pos3_posF3: *mut f32,
pub pos4_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 cubic Bezier spline figure Creates a cubic Bezier spline figure from pos1 to pos4, with control points pos2 and pos3.
- 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>
- <lifeTime> specifies how many frames a figure should live before being auto-removed; 0 means no removal
- <arrow> == true means that the figure will get an arrow at the end
Fields§
§pos1_posF3: *mut f32
§pos2_posF3: *mut f32
§pos3_posF3: *mut f32
§pos4_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 SCreateSplineFigureDrawerCommand
impl Clone for SCreateSplineFigureDrawerCommand
Source§fn clone(&self) -> SCreateSplineFigureDrawerCommand
fn clone(&self) -> SCreateSplineFigureDrawerCommand
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 SCreateSplineFigureDrawerCommand
Auto Trait Implementations§
impl Freeze for SCreateSplineFigureDrawerCommand
impl RefUnwindSafe for SCreateSplineFigureDrawerCommand
impl !Send for SCreateSplineFigureDrawerCommand
impl !Sync for SCreateSplineFigureDrawerCommand
impl Unpin for SCreateSplineFigureDrawerCommand
impl UnwindSafe for SCreateSplineFigureDrawerCommand
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