Beispiel #1
0
        internal static BaseWidget RequestWrapItemBox(BaseWidget _parent, IntPtr _widget)
        {
            ItemBox widget = new ItemBox();

            widget.WrapWidget(_parent, _widget);
            return(widget);
        }
Beispiel #2
0
        internal static BaseWidget RequestCreateItemBox(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
        {
            ItemBox widget = new ItemBox();

            widget.CreateWidget(_parent, _style, _skin, _coord, _align, _layer, _name);
            return(widget);
        }
Beispiel #3
0
 static void box_RequestCoordItem(ItemBox _sender, ref IntCoord _coord, bool _drag)
 {
     _coord.left = 0;
     _coord.top = 0;
     _coord.width = 70;
     _coord.height = 70;
 }
Beispiel #4
0
 private static void OnExportMouseItemActivate(
     ItemBox _sender,
     uint _index)
 {
     if (_sender.mEventMouseItemActivate != null)
     {
         _sender.mEventMouseItemActivate(
             _sender,
             _index);
     }
 }
Beispiel #5
0
 private static void OnExportChangeItemPosition(
     ItemBox _sender,
     uint _index)
 {
     if (_sender.mEventChangeItemPosition != null)
     {
         _sender.mEventChangeItemPosition(
             _sender,
             _index);
     }
 }
Beispiel #6
0
 private static void OnExportSelectItemAccept(
     ItemBox _sender,
     uint _index)
 {
     if (_sender.mEventSelectItemAccept != null)
     {
         _sender.mEventSelectItemAccept(
             _sender,
             _index);
     }
 }
Beispiel #7
0
 private static void OnExportCreateWidgetItem(
     ItemBox _sender,
     Widget _item)
 {
     if (_sender.mEventCreateWidgetItem != null)
     {
         _sender.mEventCreateWidgetItem(
             _sender,
             _item);
     }
 }
Beispiel #8
0
 private static void OnExportNotifyItem(
     ItemBox _sender,
     ref IBNotifyItemData _info)
 {
     if (_sender.mEventNotifyItem != null)
     {
         _sender.mEventNotifyItem(
             _sender,
             ref _info);
     }
 }
Beispiel #9
0
        private static void OnExportNotifyItem(
            IntPtr _sender,
            ref IBNotifyItemData _info)
        {
            ItemBox sender = (ItemBox)BaseWidget.GetByNative(_sender);

            if (sender.mEventNotifyItem != null)
            {
                sender.mEventNotifyItem(
                    sender,
                    ref _info);
            }
        }
Beispiel #10
0
        private static void OnExportCreateWidgetItem(
            IntPtr _sender,
            IntPtr _item)
        {
            ItemBox sender = (ItemBox)BaseWidget.GetByNative(_sender);

            if (sender.mEventCreateWidgetItem != null)
            {
                sender.mEventCreateWidgetItem(
                    sender,
                    (Widget)BaseWidget.GetByNative(_item));
            }
        }
Beispiel #11
0
        private static void OnExportSelectItemAccept(
            IntPtr _sender,
            uint _index)
        {
            ItemBox sender = (ItemBox)BaseWidget.GetByNative(_sender);

            if (sender.mEventSelectItemAccept != null)
            {
                sender.mEventSelectItemAccept(
                    sender,
                    _index);
            }
        }
Beispiel #12
0
        private static void OnExportMouseItemActivate(
            IntPtr _sender,
            uint _index)
        {
            ItemBox sender = (ItemBox)BaseWidget.GetByNative(_sender);

            if (sender.mEventMouseItemActivate != null)
            {
                sender.mEventMouseItemActivate(
                    sender,
                    _index);
            }
        }
Beispiel #13
0
        private static void OnExportChangeItemPosition(
            IntPtr _sender,
            uint _index)
        {
            ItemBox sender = (ItemBox)BaseWidget.GetByNative(_sender);

            if (sender.mEventChangeItemPosition != null)
            {
                sender.mEventChangeItemPosition(
                    sender,
                    _index);
            }
        }
Beispiel #14
0
 private static void OnExportDrawItem(
     ItemBox _sender,
     Widget _item,
     ref IBDrawItemInfo _info)
 {
     if (_sender.mEventDrawItem != null)
     {
         _sender.mEventDrawItem(
             _sender,
             _item,
             ref _info);
     }
 }
Beispiel #15
0
 private static void OnExportCoordItem(
     ItemBox _sender,
     ref IntCoord _coord,
     bool _drag)
 {
     if (_sender.mEventCoordItem != null)
     {
         _sender.mEventCoordItem(
             _sender,
             ref _coord,
             _drag);
     }
 }
Beispiel #16
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);
            }
        }
Beispiel #17
0
        private static void OnExportDrawItem(
            IntPtr _sender,
            IntPtr _item,
            ref IBDrawItemInfo _info)
        {
            ItemBox sender = (ItemBox)BaseWidget.GetByNative(_sender);

            if (sender.mEventDrawItem != null)
            {
                sender.mEventDrawItem(
                    sender,
                    (Widget)BaseWidget.GetByNative(_item),
                    ref _info);
            }
        }
        private static void OnExportCreateWidgetItem(
			 ItemBox _sender ,
			 Widget _item )
        {
            if (_sender.mEventCreateWidgetItem != null)
                _sender.mEventCreateWidgetItem(
                     _sender ,
                     _item );
        }
Beispiel #19
0
 static void box_EventChangeItemPosition(ItemBox _sender, uint _index)
 {
     Gui.Instance.Log("TestApp", LogLevel.Info, "EventChangeItemPosition  index=" + _index.ToString());
 }
Beispiel #20
0
 static void box_EventMouseItemActivate(ItemBox _sender, uint _index)
 {
     Gui.Instance.Log("TestApp", LogLevel.Info, "EventMouseItemActivate  index=" + _index.ToString());
 }
Beispiel #21
0
 static void box_EventNotifyItem(ItemBox _sender, ref IBNotifyItemData _info)
 {
     Gui.Instance.Log("TestApp", LogLevel.Info, "EventNotifyItem  notify=" + _info.notify.ToString());
 }
Beispiel #22
0
 static void box_EventSelectItemAccept(ItemBox _sender, uint _index)
 {
     Gui.Instance.Log("TestApp", LogLevel.Info, "EventSelectItemAccept  index=" + _index.ToString());
 }
        private static void OnExportSelectItemAccept(
			 ItemBox _sender ,
			 uint _index )
        {
            if (_sender.mEventSelectItemAccept != null)
                _sender.mEventSelectItemAccept(
                     _sender ,
                     _index );
        }
        private static void OnExportNotifyItem(
			 ItemBox _sender ,
			ref IBNotifyItemData _info )
        {
            if (_sender.mEventNotifyItem != null)
                _sender.mEventNotifyItem(
                     _sender ,
                    ref _info );
        }
Beispiel #25
0
 static void box_EventChangeItemPosition(ItemBox _sender, uint _index)
 {
     Export.DebugOut("EventChangeItemPosition  index=" + _index.ToString());
 }
        private static void OnExportCoordItem(
			 ItemBox _sender ,
			ref IntCoord _coord ,
			 bool _drag )
        {
            if (_sender.mEventCoordItem != null)
                _sender.mEventCoordItem(
                     _sender ,
                    ref _coord ,
                     _drag );
        }
Beispiel #27
0
 static void box_EventMouseItemActivate(ItemBox _sender, uint _index)
 {
     Export.DebugOut("EventMouseItemActivate  index=" + _index.ToString());
 }
        private static void OnExportChangeItemPosition(
			 ItemBox _sender ,
			 uint _index )
        {
            if (_sender.mEventChangeItemPosition != null)
                _sender.mEventChangeItemPosition(
                     _sender ,
                     _index );
        }
Beispiel #29
0
 static void box_RequestDrawItem(ItemBox _sender, Widget _item, ref IBDrawItemInfo _info)
 {
     EditBox cell = _item.UserData as EditBox;
     string str = _sender.GetItemDataAt(_info.index) as string;
     if (str != null) cell.OnlyText = str;
 }
Beispiel #30
0
 static void box_EventNotifyItem(ItemBox _sender, ref IBNotifyItemData _info)
 {
     Export.DebugOut("EventNotifyItem  notify=" + _info.notify.ToString());
 }
 internal static BaseWidget RequestCreateItemBox(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
 {
     ItemBox widget = new ItemBox();
     widget.CreateWidget(_parent, _style, _skin, _coord, _align, _layer, _name);
     return widget;
 }
Beispiel #32
0
 static void box_EventSelectItemAccept(ItemBox _sender, uint _index)
 {
     Export.DebugOut("EventSelectItemAccept  index=" + _index.ToString());
 }
        private static void OnExportDrawItem(
			 ItemBox _sender ,
			 Widget _item ,
			ref IBDrawItemInfo _info )
        {
            if (_sender.mEventDrawItem != null)
                _sender.mEventDrawItem(
                     _sender ,
                     _item ,
                    ref _info );
        }
        private static void OnExportMouseItemActivate(
			 ItemBox _sender ,
			 uint _index )
        {
            if (_sender.mEventMouseItemActivate != null)
                _sender.mEventMouseItemActivate(
                     _sender ,
                     _index );
        }
Beispiel #35
0
 static void box_RequestCreateWidgetItem(ItemBox _sender, Widget _item)
 {
     EditBox cell = _item.CreateWidget<EditBox>("Edit", new IntCoord(0, 0, 50, 50), Align.Default);
     _item.UserData = cell;
 }
 internal static BaseWidget RequestWrapItemBox(BaseWidget _parent, IntPtr _widget)
 {
     ItemBox widget = new ItemBox();
     widget.WrapWidget(_parent, _widget);
     return widget;
 }