2.2.12. Superclasses for Elements in the Layout Tree (layout.managers.root)¶
-
class
layout.managers.root.GroupLayoutManager(elements: Sequence[layout.managers.root.LayoutElement] = []) → None¶ Bases:
layout.managers.root.LayoutManagerA base class for layout managers that can have any number of elements.
-
class
layout.managers.root.LayoutElement¶ Bases:
abc.ABCA layout element has size data and can be asked to draw itself.
-
get_minimum_size(data) → layout.datatypes.position.Point¶ How small can the element be? Should return a Point.
-
render(rectangle: layout.datatypes.position.Rectangle, data) → None¶ Asks the element to render itself.
-
-
class
layout.managers.root.LayoutManager¶ Bases:
layout.managers.root.LayoutElementLayout managers position and size content to fit some container, based on some algorithm. This class is an empty subclass used for clearer naming when used as a parent class.
-
layout.managers.root.add_fields(store_name, field_names)¶ A class-decorator that creates layout managers with a set of named fields.