textual.map_geometry
A data structure returned by screen.find_widget.
MapGeometry
¶
Bases: NamedTuple
Defines the absolute location of a Widget.
clip
instance-attribute
¶
A [region][textual.geometry.Region] to clip the widget by (if a Widget is within a container).
container_size
instance-attribute
¶
The container [size][textual.geometry.Size] (area not occupied by scrollbars).
order
instance-attribute
¶
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
¶
The (screen) [region][textual.geometry.Region] occupied by the widget.
virtual_region
instance-attribute
¶
The [region][textual.geometry.Region] relative to the container (but not necessarily visible).
virtual_size
instance-attribute
¶
The virtual [size][textual.geometry.Size] (scrollable area) of a widget if it is a container.