
__all__ = ["PlacerPropertyFrame"]

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


class PlacerPropertyFrame(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, "offset_x", PropertyType.FLOAT)
        self._add_property(self._widget, "offset_y", PropertyType.FLOAT)
        self._add_property(self._widget, "draggable", PropertyType.BOOL)
        self._add_property(self._widget, "drag_axis", PropertyType.ENUM)
        self._add_property(self._widget, "stable_size", PropertyType.BOOL)
