Example #1
0
 static void box_RequestCoordItem(ItemBox _sender, ref IntCoord _coord, bool _drag)
 {
     _coord.left = 0;
     _coord.top = 0;
     _coord.width = 70;
     _coord.height = 70;
 }
 public void AddItemFrame(
     uint _index ,
     IntCoord _item)
 {
     ExportStaticImage_AddItemFrame_index_item( mNative ,
          _index ,
         ref _item );
 }
Example #3
0
 public void AddItemFrame(
     uint _index,
     IntCoord _item)
 {
     ExportImageBox_AddItemFrame__index__item(Native,
         _index,
         ref _item);
 }
        public void SetImageInfo(
			string _texture ,
			IntCoord _coord ,
			IntSize _tile )
        {
            ExportStaticImage_SetImageInfo_texture_coord_tile( mNative ,
                 _texture ,
                ref _coord ,
                ref _tile );
        }
        public void InsertItemFrame(
			uint _index ,
			uint _indexFrame ,
			IntCoord _item )
        {
            ExportImageBox_InsertItemFrame_index_indexFrame_item( mNative ,
                 _index ,
                 _indexFrame ,
                ref _item );
        }
        public bool IsMaskPickInside(
			IntPoint _point,
			IntCoord _coord)
        {
            return ExportWidget_IsMaskPickInside__point__coord(Native,
                ref _point,
                ref _coord);
        }
        private static void OnExportDragWidgetInfo(
			 DDContainer _sender ,
			ref IntPtr _item ,
			ref IntCoord _dimension )
        {
            Widget __item = null;

            if (_sender.mEventDragWidgetInfo != null)
                _sender.mEventDragWidgetInfo(
                     _sender ,
                    ref __item ,
                    ref _dimension );

            _item = (__item == null) ? IntPtr.Zero : __item.GetNative();
        }
        private static void OnExportCoordItem(
			 ItemBox _sender ,
			ref IntCoord _coord ,
			 bool _drag )
        {
            if (_sender.mEventCoordItem != null)
                _sender.mEventCoordItem(
                     _sender ,
                    ref _coord ,
                     _drag );
        }
 internal MenuBar(IntPtr _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
     : base(_parent, _style, _skin, _coord, _align, _layer, _name)
 {
 }
Example #10
0
        private static void OnExportCoordItem(
			IntPtr _sender,
			ref IntCoord _coord,
			bool _drag)
        {
            ItemBox sender = (ItemBox)BaseWidget.GetByNative(_sender);

            if (sender.mEventCoordItem != null)
                sender.mEventCoordItem(
                    sender ,
                    ref _coord,
                    _drag);
        }
Example #11
0
 private static extern void ExportWidget_SetCoord(IntPtr _widget, [In] ref IntCoord _value);
Example #12
0
 public void AddItem(
     IntCoord _item)
 {
     ExportImageBox_AddItem__item(Native,
         ref _item);
 }
 internal static BaseWidget RequestCreateDDContainer(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
 {
     DDContainer widget = new DDContainer();
     widget.CreateWidgetImpl(_parent, _style, _skin, _coord, _align, _layer, _name);
     return widget;
 }
Example #14
0
 private static extern bool ExportWidget_IsMaskPickInside_point_coord(IntPtr _native,
                                                                      [In] ref IntPoint _point,
                                                                      [In] ref IntCoord _coord);
Example #15
0
 internal void CreateWidget(IntPtr _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
 {
     mNative = ExportGui_CreateWidget(this, _parent, _style, GetWidgetType(), _skin, ref _coord, _align, _layer, _name);
     mIsWrap = false;
 }
 public void AddItem(
     IntCoord _item)
 {
     ExportStaticImage_AddItem_item( mNative ,
         ref _item );
 }
 public void SetItemFrame(
     uint _index ,
     uint _indexFrame ,
     IntCoord _item)
 {
     ExportStaticImage_SetItemFrame_index_indexFrame_item( mNative ,
          _index ,
          _indexFrame ,
         ref _item );
 }
Example #18
0
 public void SetImageCoord(
     IntCoord _value)
 {
     ExportImageBox_SetImageCoord__value(Native,
         ref _value);
 }
Example #19
0
 private static extern void ExportImageBox_SetItemFrame_index_indexFrame_item(IntPtr _native,
                                                                              uint _index,
                                                                              uint _indexFrame,
                                                                              [In] ref IntCoord _item);
Example #20
0
 public void SetItem(
     uint _index,
     IntCoord _item)
 {
     ExportImageBox_SetItem__index__item(Native,
         _index,
         ref _item);
 }
Example #21
0
        internal static BaseWidget RequestCreateImageBox(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
        {
            ImageBox widget = new ImageBox();

            widget.CreateWidget(_parent, _style, _skin, _coord, _align, _layer, _name);
            return(widget);
        }
 public void SetItem(
     uint _index ,
     IntCoord _item)
 {
     ExportStaticImage_SetItem_index_item( mNative ,
          _index ,
         ref _item );
 }
Example #23
0
 private static extern void ExportImageBox_AddItem_item(IntPtr _native,
                                                        [In] ref IntCoord _item);
Example #24
0
        internal void CreateWidgetImpl(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
        {
            mParent = _parent;
            IntPtr parent = _parent != null ? _parent.Native : IntPtr.Zero;

            mNative = ExportGui_CreateWidget(parent, _style, GetWidgetType(), _skin, ref _coord, _align, _layer, _name);

            ExportGui_WrapWidget(mNative);
            mWidgets.Add(mNative, this);
            mIsWrap = false;

            if (mParent != null)
            {
                mParent.mChilds.Add(this);
            }
            else
            {
                mRoots.Add(this);
            }
        }
Example #25
0
 public void AddItem(
     IntCoord _item)
 {
     ExportImageBox_AddItem_item(mNative,
                                 ref _item);
 }
        public void SetCoord(
			IntCoord _coord )
        {
            ExportWidget_SetCoord_coord( mNative ,
                ref _coord );
        }
Example #27
0
 private static extern void ExportImageBox_InsertItem_index_item(IntPtr _native,
                                                                 uint _index,
                                                                 [In] ref IntCoord _item);
        internal static BaseWidget RequestCreateDDContainer(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
        {
			DDContainer widget = new DDContainer();
			widget.CreateWidget(_parent, _style, _skin, _coord, _align, _layer, _name);
            return widget;
        }
Example #29
0
 private static extern void ExportImageBox_SetImageCoord_value(IntPtr _native,
                                                               [In] ref IntCoord _value);
        public void InsertItem(
			uint _index ,
			IntCoord _item )
        {
            ExportImageBox_InsertItem_index_item( mNative ,
                 _index ,
                ref _item );
        }
Example #31
0
 public void SetImageCoord(
     IntCoord _value)
 {
     ExportImageBox_SetImageCoord_value(mNative,
                                        ref _value);
 }
 internal static BaseWidget RequestCreateTabBar(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
 {
     TabBar widget = new TabBar();
     widget.CreateWidget(_parent, _style, _skin, _coord, _align, _layer, _name);
     return widget;
 }
Example #33
0
 private static extern void ExportImageBox_SetImageInfo_texture_coord_tile(IntPtr _native,
                                                                           [MarshalAs(UnmanagedType.LPStr)]  string _texture,
                                                                           [In] ref IntCoord _coord,
                                                                           ref IntSize _tile);
 public void SetCoord(
     IntCoord _value)
 {
     ExportWidget_SetCoord_value( mNative ,
         ref _value );
 }
        public void SetImageCoord(
			IntCoord _coord )
        {
            ExportStaticImage_SetImageCoord_coord( mNative ,
                ref _coord );
        }
Example #36
0
 public void SetImageInfo(
     string _texture,
     IntCoord _coord,
     IntSize _tile)
 {
     ExportImageBox_SetImageInfo__texture__coord__tile(Native,
         _texture,
         ref _coord,
         ref _tile);
 }
 internal static BaseWidget RequestCreateMultiListBox(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
 {
     MultiListBox widget = new MultiListBox();
     widget.CreateWidgetImpl(_parent, _style, _skin, _coord, _align, _layer, _name);
     return widget;
 }
Example #38
0
 public void SetItemFrame(
     uint _index,
     uint _indexFrame,
     IntCoord _item)
 {
     ExportImageBox_SetItemFrame__index__indexFrame__item(Native,
         _index,
         _indexFrame,
         ref _item);
 }
Example #39
0
 static void container_RequestDragWidgetInfo(DDContainer _sender, ref Widget _item, ref IntCoord _dimension)
 {
     mWidget.Visible = true;
     _item = mWidget;
     _dimension = new IntCoord(0, 0, 20, 20);
 }
Example #40
0
        internal static BaseWidget RequestCreateTabControl(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
        {
            TabControl widget = new TabControl();

            widget.CreateWidgetImpl(_parent, _style, _skin, _coord, _align, _layer, _name);
            return(widget);
        }
 public void SetImageCoord(
     IntCoord _value)
 {
     ExportStaticImage_SetImageCoord_value( mNative ,
         ref _value );
 }
Example #42
0
        internal static BaseWidget RequestCreateScrollView(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
        {
            ScrollView widget = new ScrollView();

            widget.CreateWidget(_parent, _style, _skin, _coord, _align, _layer, _name);
            return(widget);
        }
Example #43
0
 internal TabBar(IntPtr _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
     : base(_parent, _style, _skin, _coord, _align, _layer, _name)
 {
 }
Example #44
0
 internal static BaseWidget RequestCreateScrollView(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
 {
     ScrollView widget = new ScrollView();
     widget.CreateWidgetImpl(_parent, _style, _skin, _coord, _align, _layer, _name);
     return widget;
 }
Example #45
0
 internal static BaseWidget RequestCreateTabBar(IntPtr _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
 {
     return(new TabBar(_parent, _style, _skin, _coord, _align, _layer, _name));
 }
 internal static BaseWidget RequestCreatePopupMenu(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
 {
     PopupMenu widget = new PopupMenu();
     widget.CreateWidgetImpl(_parent, _style, _skin, _coord, _align, _layer, _name);
     return widget;
 }
Example #47
0
        internal static BaseWidget RequestCreateMultiListItem(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
        {
            MultiListItem widget = new MultiListItem();

            widget.CreateWidget(_parent, _style, _skin, _coord, _align, _layer, _name);
            return(widget);
        }
 internal static BaseWidget RequestCreateMenuBar(IntPtr _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
 {
     return new MenuBar(_parent, _style, _skin, _coord, _align, _layer, _name);
 }
        internal static BaseWidget RequestCreateProgressBar(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
        {
            ProgressBar widget = new ProgressBar();

            widget.CreateWidget(_parent, _style, _skin, _coord, _align, _layer, _name);
            return(widget);
        }