Skip to main content

SchTextFrameVariant

Struct SchTextFrameVariant 

Source
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: SchGraphicalBase

Graphical base (location = lower-left, color).

§corner_x: i32

Corner point X (opposite corner).

§corner_y: i32

Corner point Y (opposite corner).

§line_width: LineWidth

Line width.

§is_solid: bool

Whether the frame is solid (filled).

§transparent: bool

Whether the fill is transparent.

§font_id: i32

Font ID (references fonts in the document).

§alignment: i32

Text alignment.

§word_wrap: bool

Whether to wrap words.

§clip_to_rect: bool

Whether to clip text to the frame.

§text_color: i32

Text color.

§text: String

Text contents.

§orientation: TextOrientations

Text orientation.

§text_margin: i32

Text margin (raw coord units).

§show_border: bool

Whether to show the border.

§unknown_params: UnknownFields

Unknown parameters (preserved for non-destructive editing).

Trait Implementations§

Source§

impl AltiumRecord for SchTextFrameVariant

Source§

fn record_type_name() -> &'static str

Human-readable name for this record type.
Source§

fn supports_unknown_preservation() -> bool

Whether this record type supports unknown field preservation.
Source§

impl Clone for SchTextFrameVariant

Source§

fn clone(&self) -> SchTextFrameVariant

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SchTextFrameVariant

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SchTextFrameVariant

Source§

fn default() -> SchTextFrameVariant

Returns the “default value” for a type. Read more
Source§

impl DumpTree for SchTextFrameVariant

Source§

fn dump(&self, tree: &mut TreeBuilder)

Dump this item to the tree builder.
Source§

fn dump_to_string(&self) -> String

Convenience method to dump to a string.
Source§

fn dump_to_string_with_options(&self, options: DumpOptions) -> String

Convenience method to dump to a string with options.
Source§

impl FromParams for SchTextFrameVariant

Source§

fn from_params(params: &ParameterCollection) -> Result<Self>

Parse this type from a parameter collection.
Source§

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

Source§

const RECORD_ID: i32 = 209

Record type ID for this primitive.
Source§

fn location(&self) -> Option<CoordPoint>

Get the location (if applicable).
Source§

fn record_type_name(&self) -> &'static str

Get the record type name for diagnostics.
Source§

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>

Import primitive data from parameters.
Source§

fn export_to_params(&self) -> ParameterCollection

Export primitive data to parameters.
Source§

fn owner_index(&self) -> i32

Get the owner index (index of parent primitive in the list).
Source§

fn calculate_bounds(&self) -> CoordRect

Calculate the bounding rectangle.
Source§

impl ToParams for SchTextFrameVariant

Source§

fn to_params(&self) -> ParameterCollection

Export this type to a new parameter collection.
Source§

fn append_to_params(&self, params: &mut ParameterCollection)

Append this type’s parameters to an existing collection. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool