mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
doc update
This commit is contained in:
@@ -357,12 +357,13 @@ class Region(NamedTuple):
|
||||
|
||||
@property
|
||||
def column_span(self) -> tuple[int, int]:
|
||||
"""Get the start and end column (x coord).
|
||||
"""Get the start and end columns (x coord).
|
||||
|
||||
The end value is exclusive.
|
||||
|
||||
Returns:
|
||||
tuple[int, int]: Pair of x coordinates (column numbers).
|
||||
|
||||
"""
|
||||
return (self.x, self.x + self.width)
|
||||
|
||||
@@ -374,6 +375,7 @@ class Region(NamedTuple):
|
||||
|
||||
Returns:
|
||||
tuple[int, int]: Pair of y coordinates (line numbers).
|
||||
|
||||
"""
|
||||
return (self.y, self.y + self.height)
|
||||
|
||||
@@ -402,7 +404,7 @@ class Region(NamedTuple):
|
||||
"""Get the area within the region.
|
||||
|
||||
Returns:
|
||||
int: area.
|
||||
int: Area covered by this region.
|
||||
|
||||
"""
|
||||
return self.width * self.height
|
||||
|
||||
Reference in New Issue
Block a user