public WidgetGroup(WidgetGroup parentGroup, float width, float height, float x, float y) { m_widgetEventListener = null; m_childWidgets = new List<IWidget>() { }; m_parentWidgetGroup = parentGroup; m_localPosition = new Point2d(); m_worldPosition = new Point2d(); Width = width; Height = height; Visible = true; if (m_parentWidgetGroup != null) { m_parentWidgetGroup.AddWidget(this); } SetLocalPosition(x, y); }
public WidgetGroup(WidgetGroup parentGroup, float width, float height, float x, float y) { m_widgetEventListener = null; m_childWidgets = new List <IWidget>() { }; m_parentWidgetGroup = parentGroup; m_localPosition = new Point2d(); m_worldPosition = new Point2d(); Width = width; Height = height; Visible = true; if (m_parentWidgetGroup != null) { m_parentWidgetGroup.AddWidget(this); } SetLocalPosition(x, y); }
// IWidgetEventListener public void SetWidgetEventListener(IWidgetEventListener listener) { m_widgetEventListener = listener; }
// IWidgetEventListener public void SetWidgetEventListener(IWidgetEventListener listener) { m_widgetEventListener = listener; }