Exemplo 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);
        }
Exemplo 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);
        }
Exemplo n.º 3
0
Arquivo: Gui.cs Projeto: 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);
        }