pub struct VectorLinePrimitive {
pub exposure: MacroBoolean,
pub width: MacroDecimal,
pub start: (MacroDecimal, MacroDecimal),
pub end: (MacroDecimal, MacroDecimal),
pub angle: MacroDecimal,
}
Fields§
§exposure: MacroBoolean
Exposure off/on
width: MacroDecimal
Line width, a decimal >= 0
start: (MacroDecimal, MacroDecimal)
X and Y coordinates of start point, decimals
end: (MacroDecimal, MacroDecimal)
X and Y coordinates of end point, decimals
angle: MacroDecimal
Rotation angle of the vector line primitive
The rotation angle is specified by a decimal, in degrees. The primitive is rotated around the origin of the macro definition, i.e. the (0, 0) point of macro coordinates.
Implementations§
Source§impl VectorLinePrimitive
impl VectorLinePrimitive
pub fn new( start: (MacroDecimal, MacroDecimal), end: (MacroDecimal, MacroDecimal), ) -> Self
pub fn with_exposure(self, exposure: MacroBoolean) -> Self
pub fn exposure_on(self, exposure: bool) -> Self
👎Deprecated since 0.4.0: Use
with_exposure
insteadpub fn with_width(self, width: MacroDecimal) -> Self
pub fn with_angle(self, angle: MacroDecimal) -> Self
Trait Implementations§
Source§impl Clone for VectorLinePrimitive
impl Clone for VectorLinePrimitive
Source§fn clone(&self) -> VectorLinePrimitive
fn clone(&self) -> VectorLinePrimitive
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 moreSource§impl Debug for VectorLinePrimitive
impl Debug for VectorLinePrimitive
Source§impl From<VectorLinePrimitive> for MacroContent
impl From<VectorLinePrimitive> for MacroContent
Source§fn from(val: VectorLinePrimitive) -> MacroContent
fn from(val: VectorLinePrimitive) -> MacroContent
Converts to this type from the input type.
Source§impl PartialEq for VectorLinePrimitive
impl PartialEq for VectorLinePrimitive
impl StructuralPartialEq for VectorLinePrimitive
Auto Trait Implementations§
impl Freeze for VectorLinePrimitive
impl RefUnwindSafe for VectorLinePrimitive
impl Send for VectorLinePrimitive
impl Sync for VectorLinePrimitive
impl Unpin for VectorLinePrimitive
impl UnwindSafe for VectorLinePrimitive
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