pub struct SchRectangle {
pub graphical: SchGraphicalBase,
pub corner_x: i32,
pub corner_y: i32,
pub line_width: LineWidth,
pub is_solid: bool,
pub transparent: bool,
pub unknown_params: UnknownFields,
}Expand description
Schematic rectangle primitive.
Fields§
§graphical: SchGraphicalBaseGraphical base (location = one corner, color).
corner_x: i32Corner point X (opposite corner).
corner_y: i32Corner point Y (opposite corner).
line_width: LineWidthLine width.
is_solid: boolWhether the rectangle is solid (filled).
transparent: boolWhether the fill is transparent.
unknown_params: UnknownFieldsUnknown parameters (preserved for non-destructive editing).
Trait Implementations§
Source§impl AltiumRecord for SchRectangle
impl AltiumRecord for SchRectangle
Source§fn record_type_name() -> &'static str
fn record_type_name() -> &'static str
Human-readable name for this record type.
Source§fn supports_unknown_preservation() -> bool
fn supports_unknown_preservation() -> bool
Whether this record type supports unknown field preservation.
Source§impl Clone for SchRectangle
impl Clone for SchRectangle
Source§fn clone(&self) -> SchRectangle
fn clone(&self) -> SchRectangle
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 SchRectangle
impl Debug for SchRectangle
Source§impl Default for SchRectangle
impl Default for SchRectangle
Source§fn default() -> SchRectangle
fn default() -> SchRectangle
Returns the “default value” for a type. Read more
Source§impl DumpTree for SchRectangle
impl DumpTree for SchRectangle
Source§fn dump(&self, tree: &mut TreeBuilder)
fn dump(&self, tree: &mut TreeBuilder)
Dump this item to the tree builder.
Source§fn dump_to_string(&self) -> String
fn dump_to_string(&self) -> String
Convenience method to dump to a string.
Source§fn dump_to_string_with_options(&self, options: DumpOptions) -> String
fn dump_to_string_with_options(&self, options: DumpOptions) -> String
Convenience method to dump to a string with options.
Source§impl FromParams for SchRectangle
impl FromParams for SchRectangle
Source§fn from_params(params: &ParameterCollection) -> Result<Self>
fn from_params(params: &ParameterCollection) -> Result<Self>
Parse this type from a parameter collection.
Source§fn from_params_preserving(
params: &ParameterCollection,
) -> Result<(Self, UnknownFields)>
fn from_params_preserving( params: &ParameterCollection, ) -> Result<(Self, UnknownFields)>
Parse this type and collect unknown parameters for non-destructive editing.
Source§impl SchPrimitive for SchRectangle
impl SchPrimitive for SchRectangle
Source§fn location(&self) -> Option<CoordPoint>
fn location(&self) -> Option<CoordPoint>
Get the location (if applicable).
Source§fn record_type_name(&self) -> &'static str
fn record_type_name(&self) -> &'static str
Get the record type name for diagnostics.
Source§fn import_from_params(params: &ParameterCollection) -> Result<Self>
fn import_from_params(params: &ParameterCollection) -> Result<Self>
Import primitive data from parameters.
Source§fn export_to_params(&self) -> ParameterCollection
fn export_to_params(&self) -> ParameterCollection
Export primitive data to parameters.
Source§fn owner_index(&self) -> i32
fn owner_index(&self) -> i32
Get the owner index (index of parent primitive in the list).
Source§fn calculate_bounds(&self) -> CoordRect
fn calculate_bounds(&self) -> CoordRect
Calculate the bounding rectangle.
Source§impl ToParams for SchRectangle
impl ToParams for SchRectangle
Source§fn to_params(&self) -> ParameterCollection
fn to_params(&self) -> ParameterCollection
Export this type to a new parameter collection.
Source§fn append_to_params(&self, params: &mut ParameterCollection)
fn append_to_params(&self, params: &mut ParameterCollection)
Append this type’s parameters to an existing collection. Read more
Auto Trait Implementations§
impl Freeze for SchRectangle
impl RefUnwindSafe for SchRectangle
impl Send for SchRectangle
impl Sync for SchRectangle
impl Unpin for SchRectangle
impl UnwindSafe for SchRectangle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more