public void AttachToWidget(
     Widget _parent ,
     WidgetStyle _style ,
     string _layer)
 {
     ExportWidget_AttachToWidget_parent_style_layer( mNative ,
          _parent ,
          _style ,
          _layer );
 }
        public static void Test()
        {
            DDContainer container = Gui.Instance.CreateWidget<DDContainer>("Button", new IntCoord(420, 520, 100, 100), Align.Default, "Main");
            container.NeedDragDrop = !container.NeedDragDrop;

            container.EventChangeDDState += new DDContainer.HandleChangeDDState(container_EventChangeDDState);
            container.EventDropResult += new DDContainer.HandleDropResult(container_EventDropResult);
            container.EventRequestDrop += new DDContainer.HandleRequestDrop(container_EventRequestDrop);
            container.EventStartDrag += new DDContainer.HandleStartDrag(container_EventStartDrag);
            container.RequestDragWidgetInfo += new DDContainer.HandleDragWidgetInfo(container_RequestDragWidgetInfo);

            mWidget = Gui.Instance.CreateWidget<Widget>("Button", new IntCoord(0, 0, 10, 10), Align.Default, "Popup");
            mWidget.Visible = false;
        }
Beispiel #3
0
 static void widget_EventKeyButtonReleased(Widget _sender, KeyCode _key)
 {
     Export.DebugOut("EventKeyButtonReleased  _key=" + _key.ToString());
 }
 private static void OnExportRootMouseChangeFocus(
     Widget _sender ,
     bool _focus)
 {
     if (_sender.mEventRootMouseChangeFocus != null)
         _sender.mEventRootMouseChangeFocus(
              _sender ,
              _focus );
 }
 private static void OnExportMouseSetFocus(
     Widget _sender ,
     Widget _old)
 {
     if (_sender.mEventMouseSetFocus != null)
         _sender.mEventMouseSetFocus(
              _sender ,
              _old );
 }
 private static void OnExportMouseLostFocus(
     Widget _sender ,
     Widget _new)
 {
     if (_sender.mEventMouseLostFocus != null)
         _sender.mEventMouseLostFocus(
              _sender ,
              _new );
 }
 private static void OnExportMouseButtonDoubleClick(
     Widget _sender)
 {
     if (_sender.mEventMouseButtonDoubleClick != null)
         _sender.mEventMouseButtonDoubleClick(
              _sender );
 }
 private static void OnExportKeyButtonPressed(
     Widget _sender ,
     KeyCode _key ,
     uint _char)
 {
     if (_sender.mEventKeyButtonPressed != null)
         _sender.mEventKeyButtonPressed(
              _sender ,
              _key ,
              _char );
 }
Beispiel #9
0
 static void widget_EventRootMouseChangeFocus(Widget _sender, bool _focus)
 {
     Export.DebugOut("EventRootMouseChangeFocus  _focus=" + _focus.ToString());
 }
Beispiel #10
0
 static void widget_EventMouseWheel(Widget _sender, int _rel)
 {
     Export.DebugOut("EventMouseWheel  _rel=" + _rel.ToString());
 }
Beispiel #11
0
 static void widget_EventMouseSetFocus(Widget _sender, Widget _old)
 {
     Export.DebugOut("EventMouseSetFocus  _old=" + (_old == null ? "null" : _old.ToString()));
 }
Beispiel #12
0
 static void widget_EventMouseMove(Widget _sender, int _left, int _top)
 {
     Export.DebugOut("EventMouseMove  _left=" + _left.ToString() + "   _top=" + _top.ToString());
 }
Beispiel #13
0
 static void widget_EventMouseLostFocus(Widget _sender, Widget _new)
 {
     Export.DebugOut("EventMouseLostFocus  _new=" + (_new == null ? "null" : _new.ToString()));
 }
Beispiel #14
0
 static void widget_EventMouseButtonReleased(Widget _sender, int _left, int _top, MouseButton _id)
 {
     Export.DebugOut("EventMouseMove  _left=" + _left.ToString() + "   _top=" + _top.ToString() + "   _id=" + _id.ToString());
 }
Beispiel #15
0
 static void widget_EventMouseButtonDoubleClick(Widget _sender)
 {
     Export.DebugOut("EventMouseButtonDoubleClick");
 }
 private static void OnExportActionInfo(
     Widget _sender ,
     string _key ,
     string _value)
 {
     if (_sender.mEventActionInfo != null)
         _sender.mEventActionInfo(
              _sender ,
              _key ,
              _value );
 }
 private static void OnExportChangeProperty(
     Widget _sender ,
     string _key ,
     string _value)
 {
     if (_sender.mEventChangeProperty != null)
         _sender.mEventChangeProperty(
              _sender ,
              _key ,
              _value );
 }
Beispiel #18
0
 static void widget_EventToolTip(Widget _sender, ref ToolTipInfo _info)
 {
     Export.DebugOut("EventToolTip  _info=" + _info.ToString());
 }
 private static void OnExportKeyButtonReleased(
     Widget _sender ,
     KeyCode _key)
 {
     if (_sender.mEventKeyButtonReleased != null)
         _sender.mEventKeyButtonReleased(
              _sender ,
              _key );
 }
Beispiel #20
0
 public static void SetWidgetDepth(Widget _widget, float _depth)
 {
     ExportLayers_SetWidgetDepth(_widget.Native, _depth);
 }
 private static void OnExportMouseButtonReleased(
     Widget _sender ,
     int _left ,
     int _top ,
     MouseButton _id)
 {
     if (_sender.mEventMouseButtonReleased != null)
         _sender.mEventMouseButtonReleased(
              _sender ,
              _left ,
              _top ,
              _id );
 }
Beispiel #22
0
 public void AttachToLayer(string _layer, Widget _widget)
 {
     ExportLayerManager_AttachToLayer(_layer, _widget.GetNative());
 }
 private static void OnExportMouseMove(
     Widget _sender ,
     int _left ,
     int _top)
 {
     if (_sender.mEventMouseMove != null)
         _sender.mEventMouseMove(
              _sender ,
              _left ,
              _top );
 }
Beispiel #24
0
 public void UpWidget(Widget _widget)
 {
     ExportLayerManager_UpWidget(_widget.GetNative());
 }
 private static void OnExportMouseWheel(
     Widget _sender ,
     int _rel)
 {
     if (_sender.mEventMouseWheel != null)
         _sender.mEventMouseWheel(
              _sender ,
              _rel );
 }
 internal static BaseWidget RequestCreateWidget(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
 {
     Widget widget = new Widget();
     widget.CreateWidget(_parent, _style, _skin, _coord, _align, _layer, _name);
     return widget;
 }
 private static void OnExportToolTip(
     Widget _sender ,
     ref ToolTipInfo _info)
 {
     if (_sender.mEventToolTip != null)
         _sender.mEventToolTip(
              _sender ,
             ref _info );
 }
 internal static BaseWidget RequestWrapWidget(BaseWidget _parent, IntPtr _widget)
 {
     Widget widget = new Widget();
     widget.WrapWidget(_parent, _widget);
     return widget;
 }
 static void container_RequestDragWidgetInfo(DDContainer _sender, ref Widget _item, ref IntCoord _dimension)
 {
     mWidget.Visible = true;
     _item = mWidget;
     _dimension = new IntCoord(0, 0, 20, 20);
 }
Beispiel #30
0
 static void widget_EventKeyButtonPressed(Widget _sender, KeyCode _key, uint _char)
 {
     Export.DebugOut("EventMouseMove  _key=" + _key.ToString() + "   _char=" + _char.ToString());
 }