elsie
3.3
▾ elsie
▸ boxtree
▸ ext
▸ render
▸ shapes
▸ slides
▸ text
▾ utils
▸ cache
▸ files
▾ geom
class
Rect
▸ sxml
▸ version
Class Rect
elsie
.
utils
.
geom
.
Rect
Declaration
class
Rect
source
link
Methods
▷
def
__eq__
(
self, other
)
source
link
▷
def
__init__
(
self, x=None, y=None, width=None, height=None, position=None, size=None
)
source
link
▷
def
__repr__
(
self
)
source
link
▷
def
copy
(
self
) -> Rect
source
link
▷
def
mid_point
(
self
) -> Tuple[float, float]
@property
@property
def
mid_point(
self
)
source
link
▷
def
mid_x
(
self
) -> float
@property
@property
def
mid_x(
self
)
source
link
▷
def
mid_y
(
self
) -> float
@property
@property
def
mid_y(
self
)
source
link
▷
def
position
(
self
) -> Tuple[float, float]
@property
@property
def
position(
self
)
source
link
▷
def
shrink
(
self, left=0, right=0, top=0, bottom=0
)
source
link
▷
def
size
(
self
) -> Tuple[float, float]
@property
@property
def
size(
self
)
source
link
▷
def
x2
(
self
)
@property
@property
def
x2(
self
)
source
link
▷
def
y2
(
self
)
@property
@property
def
y2(
self
)
source
link
Reexports
Imported in
elsie.slides.slide
.
Imported in
elsie.boxtree.layout
.
Generated by
nedoc
v0.10 at 2022-02-05 18:22