當前位置: 首頁>>代碼示例>>C#>>正文


C# Sharp.Widget類代碼示例

本文整理匯總了C#中MyGUI.Sharp.Widget的典型用法代碼示例。如果您正苦於以下問題:C# Widget類的具體用法?C# Widget怎麽用?C# Widget使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Widget類屬於MyGUI.Sharp命名空間,在下文中一共展示了Widget類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: AttachToWidget

 public void AttachToWidget(
     Widget _parent ,
     WidgetStyle _style ,
     string _layer)
 {
     ExportWidget_AttachToWidget_parent_style_layer( mNative ,
          _parent ,
          _style ,
          _layer );
 }
開發者ID:siangzhang,項目名稱:starworld,代碼行數:10,代碼來源:MyGUI.Sharp_Widget.cs

示例2: Test

        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;
        }
開發者ID:sskoruppa,項目名稱:Glove_Code,代碼行數:14,代碼來源:Test_DDContainer.cs

示例3: widget_EventKeyButtonReleased

 static void widget_EventKeyButtonReleased(Widget _sender, KeyCode _key)
 {
     Export.DebugOut("EventKeyButtonReleased  _key=" + _key.ToString());
 }
開發者ID:venkatarajasekhar,項目名稱:viper,代碼行數:4,代碼來源:Test_Widget.cs

示例4: OnExportRootMouseChangeFocus

 private static void OnExportRootMouseChangeFocus(
     Widget _sender ,
     bool _focus)
 {
     if (_sender.mEventRootMouseChangeFocus != null)
         _sender.mEventRootMouseChangeFocus(
              _sender ,
              _focus );
 }
開發者ID:siangzhang,項目名稱:starworld,代碼行數:9,代碼來源:MyGUI.Sharp_WidgetEvent.cs

示例5: OnExportMouseSetFocus

 private static void OnExportMouseSetFocus(
     Widget _sender ,
     Widget _old)
 {
     if (_sender.mEventMouseSetFocus != null)
         _sender.mEventMouseSetFocus(
              _sender ,
              _old );
 }
開發者ID:siangzhang,項目名稱:starworld,代碼行數:9,代碼來源:MyGUI.Sharp_WidgetEvent.cs

示例6: OnExportMouseLostFocus

 private static void OnExportMouseLostFocus(
     Widget _sender ,
     Widget _new)
 {
     if (_sender.mEventMouseLostFocus != null)
         _sender.mEventMouseLostFocus(
              _sender ,
              _new );
 }
開發者ID:siangzhang,項目名稱:starworld,代碼行數:9,代碼來源:MyGUI.Sharp_WidgetEvent.cs

示例7: OnExportMouseButtonDoubleClick

 private static void OnExportMouseButtonDoubleClick(
     Widget _sender)
 {
     if (_sender.mEventMouseButtonDoubleClick != null)
         _sender.mEventMouseButtonDoubleClick(
              _sender );
 }
開發者ID:siangzhang,項目名稱:starworld,代碼行數:7,代碼來源:MyGUI.Sharp_WidgetEvent.cs

示例8: OnExportKeyButtonPressed

 private static void OnExportKeyButtonPressed(
     Widget _sender ,
     KeyCode _key ,
     uint _char)
 {
     if (_sender.mEventKeyButtonPressed != null)
         _sender.mEventKeyButtonPressed(
              _sender ,
              _key ,
              _char );
 }
開發者ID:siangzhang,項目名稱:starworld,代碼行數:11,代碼來源:MyGUI.Sharp_WidgetEvent.cs

示例9: widget_EventRootMouseChangeFocus

 static void widget_EventRootMouseChangeFocus(Widget _sender, bool _focus)
 {
     Export.DebugOut("EventRootMouseChangeFocus  _focus=" + _focus.ToString());
 }
開發者ID:venkatarajasekhar,項目名稱:viper,代碼行數:4,代碼來源:Test_Widget.cs

示例10: widget_EventMouseWheel

 static void widget_EventMouseWheel(Widget _sender, int _rel)
 {
     Export.DebugOut("EventMouseWheel  _rel=" + _rel.ToString());
 }
開發者ID:venkatarajasekhar,項目名稱:viper,代碼行數:4,代碼來源:Test_Widget.cs

示例11: widget_EventMouseSetFocus

 static void widget_EventMouseSetFocus(Widget _sender, Widget _old)
 {
     Export.DebugOut("EventMouseSetFocus  _old=" + (_old == null ? "null" : _old.ToString()));
 }
開發者ID:venkatarajasekhar,項目名稱:viper,代碼行數:4,代碼來源:Test_Widget.cs

示例12: widget_EventMouseMove

 static void widget_EventMouseMove(Widget _sender, int _left, int _top)
 {
     Export.DebugOut("EventMouseMove  _left=" + _left.ToString() + "   _top=" + _top.ToString());
 }
開發者ID:venkatarajasekhar,項目名稱:viper,代碼行數:4,代碼來源:Test_Widget.cs

示例13: widget_EventMouseLostFocus

 static void widget_EventMouseLostFocus(Widget _sender, Widget _new)
 {
     Export.DebugOut("EventMouseLostFocus  _new=" + (_new == null ? "null" : _new.ToString()));
 }
開發者ID:venkatarajasekhar,項目名稱:viper,代碼行數:4,代碼來源:Test_Widget.cs

示例14: widget_EventMouseButtonReleased

 static void widget_EventMouseButtonReleased(Widget _sender, int _left, int _top, MouseButton _id)
 {
     Export.DebugOut("EventMouseMove  _left=" + _left.ToString() + "   _top=" + _top.ToString() + "   _id=" + _id.ToString());
 }
開發者ID:venkatarajasekhar,項目名稱:viper,代碼行數:4,代碼來源:Test_Widget.cs

示例15: widget_EventMouseButtonDoubleClick

 static void widget_EventMouseButtonDoubleClick(Widget _sender)
 {
     Export.DebugOut("EventMouseButtonDoubleClick");
 }
開發者ID:venkatarajasekhar,項目名稱:viper,代碼行數:4,代碼來源:Test_Widget.cs


注:本文中的MyGUI.Sharp.Widget類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。