pub struct CirclePrimitive {
pub exposure: MacroBoolean,
pub diameter: MacroDecimal,
pub center: (MacroDecimal, MacroDecimal),
pub angle: Option<MacroDecimal>,
}Fields§
§exposure: MacroBooleanExposure off/on
diameter: MacroDecimalDiameter, a decimal >= 0
center: (MacroDecimal, MacroDecimal)X and Y coordinates of center position, decimals
angle: Option<MacroDecimal>Rotation angle.
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.
The rotation modifier is optional. The default is no rotation. (We recommend always to set the angle explicitly.
Implementations§
Source§impl CirclePrimitive
impl CirclePrimitive
pub fn new(diameter: MacroDecimal) -> Self
pub fn centered_at(self, center: (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_angle(self, angle: MacroDecimal) -> Self
Trait Implementations§
Source§impl Clone for CirclePrimitive
impl Clone for CirclePrimitive
Source§fn clone(&self) -> CirclePrimitive
fn clone(&self) -> CirclePrimitive
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CirclePrimitive
impl Debug for CirclePrimitive
Source§impl From<CirclePrimitive> for MacroContent
impl From<CirclePrimitive> for MacroContent
Source§fn from(val: CirclePrimitive) -> MacroContent
fn from(val: CirclePrimitive) -> MacroContent
Converts to this type from the input type.
Source§impl PartialEq for CirclePrimitive
impl PartialEq for CirclePrimitive
impl StructuralPartialEq for CirclePrimitive
Auto Trait Implementations§
impl Freeze for CirclePrimitive
impl RefUnwindSafe for CirclePrimitive
impl Send for CirclePrimitive
impl Sync for CirclePrimitive
impl Unpin for CirclePrimitive
impl UnwindSafe for CirclePrimitive
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)