Пример #1
0
    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);
    }
Пример #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
    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);
    }