[go: up one dir, main page]

Skip to content

textual.map_geometry

A data structure returned by screen.find_widget.

MapGeometry

Bases: NamedTuple

Defines the absolute location of a Widget.

clip instance-attribute

clip

A region to clip the widget by (if a Widget is within a container).

container_size instance-attribute

container_size

The container size (area not occupied by scrollbars).

dock_gutter instance-attribute

dock_gutter

Space from the container reserved by docked widgets.

order instance-attribute

order

Tuple of tuples defining the painting order of the widget.

Each successive triple represents painting order information with regards to ancestors in the DOM hierarchy and the last triple provides painting order information for this specific widget.

region instance-attribute

region

The (screen) region occupied by the widget.

virtual_region instance-attribute

virtual_region

The region relative to the container (but not necessarily visible).

virtual_size instance-attribute

virtual_size

The virtual size (scrollable area) of a widget if it is a container.

visible_region property

visible_region

The Widget region after clipping.