S or /

SourceClass ClippedShape

from egui import ClippedShape
class ClippedShape:

A Shape within a clip rectangle.

Everything is using logical points.

Properties§

@property def clip_rect(self, /) -> Rect§
@clip_rect.setter def clip_rect(self, /, clip_rect: Rect) -> None§

Methods§

def set_shape(self, /, shape: Any) -> None§
def shape(self, /) -> str§
def shape_value(self, /) -> Shape§
Sourcedef transform(self, /, transform: TSTransform) -> None§

Transform (move/scale) the shape in-place.

If using a PaintCallback, note that only the rect is scaled as opposed to other shapes where the stroke is also scaled.