Esempio n. 1
0
        public T CreateWidget <T>(string _skin, IntCoord _coord, Align _align) where T : class
        {
            T          type   = System.Activator.CreateInstance <T>();
            BaseWidget widget = type as BaseWidget;

            widget.CreateWidget(this, WidgetStyle.Child, _skin, _coord, _align, "", "");
            return(type);
        }
Esempio n. 2
0
        public T CreateWidget <T>(WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name) where T : class
        {
            T          type   = System.Activator.CreateInstance <T>();
            BaseWidget widget = type as BaseWidget;

            widget.CreateWidget(this, _style, _skin, _coord, _align, _layer, _name);
            return(type);
        }
Esempio n. 3
0
File: Gui.cs Progetto: southdy/iwe
        public T CreateWidget <T>(string _skin, IntCoord _coord, Align _align, string _layer) where T : class
        {
            T          type   = System.Activator.CreateInstance <T>();
            BaseWidget widget = type as BaseWidget;

            widget.CreateWidget(null, WidgetStyle.Overlapped, _skin, _coord, _align, _layer, "");
            return(type);
        }