
__all__ = ["CirclePropertyFrame"]

import omni.ui as ui
from ..base_frame import WidgetCollectionFrame
from ..create_widget import PropertyType


class CirclePropertyFrame(WidgetCollectionFrame):
    def __init__(self, frame_label: str, widget: ui.Widget) -> None:
        super().__init__(frame_label, widget)

    def _build_ui(self):
        self._add_property(self._widget, "radius", PropertyType.FLOAT, range_from=0)

        self._add_property(self._widget, "alignment", PropertyType.ENUM)
        self._add_property(self._widget, "arc", PropertyType.ENUM)

        self._add_property(self._widget, "size_policy", PropertyType.ENUM)
