askiff.gritems.GrTextBox

class askiff.gritems.GrTextBox

Bases: askiff._auto_serde.AutoSerde

Inheritance diagram of askiff.gritems.GrTextBox

Graphic text box item with frame on a KiCad schematic or PCB.

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

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

border : bool | None = None

Whether the text box has a border.

border_stroke : askiff.common.Stroke | None

Border stroke styling including thickness, line style, and color.

box : RectTextBox

Rectangle defining text box boundaries and margins.

effects : askiff.common.Effects

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

text : str

Text content


Last update: 2026-05-05