pub struct SchTextFrameVariant {Show 16 fields
pub graphical: SchGraphicalBase,
pub corner_x: i32,
pub corner_y: i32,
pub line_width: LineWidth,
pub is_solid: bool,
pub transparent: bool,
pub font_id: i32,
pub alignment: i32,
pub word_wrap: bool,
pub clip_to_rect: bool,
pub text_color: i32,
pub text: String,
pub orientation: TextOrientations,
pub text_margin: i32,
pub show_border: bool,
pub unknown_params: UnknownFields,
}Expand description
Schematic text frame variant (Record 209).
Fields§
§graphical: SchGraphicalBaseGraphical base (location = lower-left, color).
corner_x: i32Corner point X (opposite corner).
corner_y: i32Corner point Y (opposite corner).
line_width: LineWidthLine width.
is_solid: boolWhether the frame is solid (filled).
transparent: boolWhether the fill is transparent.
font_id: i32Font ID (references fonts in the document).
alignment: i32Text alignment.
word_wrap: boolWhether to wrap words.
clip_to_rect: boolWhether to clip text to the frame.
text_color: i32Text color.
text: StringText contents.
orientation: TextOrientationsText orientation.
text_margin: i32Text margin (raw coord units).
show_border: boolWhether to show the border.
unknown_params: UnknownFieldsUnknown parameters (preserved for non-destructive editing).
Trait Implementations§
Source§impl AltiumRecord for SchTextFrameVariant
impl AltiumRecord for SchTextFrameVariant
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 SchTextFrameVariant
impl Clone for SchTextFrameVariant
Source§fn clone(&self) -> SchTextFrameVariant
fn clone(&self) -> SchTextFrameVariant
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 SchTextFrameVariant
impl Debug for SchTextFrameVariant
Source§impl Default for SchTextFrameVariant
impl Default for SchTextFrameVariant
Source§fn default() -> SchTextFrameVariant
fn default() -> SchTextFrameVariant
Returns the “default value” for a type. Read more
Source§impl DumpTree for SchTextFrameVariant
impl DumpTree for SchTextFrameVariant
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 SchTextFrameVariant
impl FromParams for SchTextFrameVariant
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 SchTextFrameVariant
impl SchPrimitive for SchTextFrameVariant
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 get_property(&self, name: &str) -> Option<String>
fn get_property(&self, name: &str) -> Option<String>
Get a property value by name (for generic queries).
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 SchTextFrameVariant
impl ToParams for SchTextFrameVariant
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 SchTextFrameVariant
impl RefUnwindSafe for SchTextFrameVariant
impl Send for SchTextFrameVariant
impl Sync for SchTextFrameVariant
impl Unpin for SchTextFrameVariant
impl UnwindSafe for SchTextFrameVariant
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