askiff.gritems.GrTextSym

class askiff.gritems.GrTextSym

Bases: GrText, GrItemSym

Inheritance diagram of askiff.gritems.GrTextSym

Graphic text item in a KiCad symbol

classmethod deserialize(sexp: askiff._sexpr.GeneralizedSexpr) Self

Deserializes a KiCad sexpr representation into an object instance. :Parameters: sexp – pre-parsed S-Expression AST

Returns:

Deserialized structure

Parameters:
sexp : askiff._sexpr.GeneralizedSexpr

Return type:

Self

Notes

  • Uses _AutoSerde__deser_field* tables for efficient lookup how to deserialize encountered objects

  • Places unrecognized field in __extra/__extra_positional and issues warning

  • Encountered str objects are processed as positional or bare-flag components

  • Tuples are processed as normal args treating first object as keyword identifying target field

classmethod deserialize_downcast_agg(sexp: askiff._sexpr.GeneralizedSexpr) Self

Deserializes a sexpr into an instance of the class or one of its downcast subclasses

Parameters:
sexp : askiff._sexpr.GeneralizedSexpr

Return type:

Self

serialize() askiff._sexpr.GeneralizedSexpr

Serializes the object into a S-Expression AST

Fields are processed in order: __ser_field_positional, __extra_positional, __ser_field & __extra

Return type:

askiff._sexpr.GeneralizedSexpr

effects : askiff.common.Effects

Text element formatting properties including font, justification, and visibility.

exclude_from_sim : bool | None = None

Whether the text is excluded from simulation.

position : askiff.common.Position

Text element position and optional rotation angle.

private : bool

Whether the text is private to the symbol

text : str

Text content.


Last update: 2026-05-05