public Widget(WidgetGroup parentGroup, float width, float height, float x, float y) { m_localPosition = new Point2d(); m_worldPosition = new Point2d(); Width = width; Height = height; Visible = true; m_parentGroup = parentGroup; if (m_parentGroup != null) { m_parentGroup.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); }
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); }