Skip to content

Star

import { Aside } from “@astrojs/starlight/components”; import TypeSignature from “@components/TypeSignature.astro”;

<TypeSignature typeName={ “Star” } typePrefix={ “class” } typeArgList={ “(points: int = 5, ratio: float = 0.5, name: str | None = None, visible: bool = True, all_visible: bool = False, style: str | None = None, style_classes: Iterable[str] | str | None = None, tooltip_text: str | None = None, tooltip_markup: str | None = None, h_align: Literal[‘fill’, ‘start’, ‘end’, ‘center’, ‘baseline’] | Align | None = None, v_align: Literal[‘fill’, ‘start’, ‘end’, ‘center’, ‘baseline’] | Align | None = None, h_expand: bool = False, v_expand: bool = False, size: Iterable[int] | int | None = None, **kwargs)” }> Star

Bases: DrawingArea, Widget

<TypeSignature typeName={ “render_shape” } typePrefix={ “static” } typeArgList={ “(cr: Context, width: float, height: float, points: int = 5, ratio: float = 0.5)” }> render_shape

<TypeSignature typeName={ “points” } typePrefix={ “property” } returnType={ “int” }> points

<TypeSignature typeName={ “ratio” } typePrefix={ “property” } returnType={ “float” }> ratio