示例#1
0
    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);
    }
示例#2
0
    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);
    }
示例#3
0
 // IWidgetEventListener
 public void SetWidgetEventListener(IWidgetEventListener listener)
 {
     m_widgetEventListener = listener;
 }
示例#4
0
 // IWidgetEventListener
 public void SetWidgetEventListener(IWidgetEventListener listener)
 {
     m_widgetEventListener = listener;
 }