2.3.5. Spacing (layout.elements.space)

class layout.elements.space.Spacer(width=0, height=0)

Bases: layout.managers.root.LayoutElement

Reserves a specific amount of blank space.

The space reserved is not proportional to the space provided, so this class is normally used with a scaling layout manager or to perform fine grained movement of elements on a page.

get_minimum_size(data)

How small can the element be? Should return a Point.

render(rect, data)

Asks the element to render itself.