本文整理汇总了C#中MyGUI.Sharp.Widget类的典型用法代码示例。如果您正苦于以下问题:C# Widget类的具体用法?C# Widget怎么用?C# Widget使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Widget类属于MyGUI.Sharp命名空间,在下文中一共展示了Widget类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: OnExportActionInfo
private static void OnExportActionInfo(
Widget _sender ,
string _key ,
string _value)
{
if (_sender.mEventActionInfo != null)
_sender.mEventActionInfo(
_sender ,
_key ,
_value );
}
开发者ID:siangzhang,项目名称:starworld,代码行数:11,代码来源:MyGUI.Sharp_WidgetEvent.cs
示例17: OnExportChangeProperty
private static void OnExportChangeProperty(
Widget _sender ,
string _key ,
string _value)
{
if (_sender.mEventChangeProperty != null)
_sender.mEventChangeProperty(
_sender ,
_key ,
_value );
}
开发者ID:siangzhang,项目名称:starworld,代码行数:11,代码来源:MyGUI.Sharp_WidgetEvent.cs
示例18: widget_EventToolTip
static void widget_EventToolTip(Widget _sender, ref ToolTipInfo _info)
{
Export.DebugOut("EventToolTip _info=" + _info.ToString());
}
开发者ID:venkatarajasekhar,项目名称:viper,代码行数:4,代码来源:Test_Widget.cs
示例19: OnExportKeyButtonReleased
private static void OnExportKeyButtonReleased(
Widget _sender ,
KeyCode _key)
{
if (_sender.mEventKeyButtonReleased != null)
_sender.mEventKeyButtonReleased(
_sender ,
_key );
}
开发者ID:siangzhang,项目名称:starworld,代码行数:9,代码来源:MyGUI.Sharp_WidgetEvent.cs
示例20: SetWidgetDepth
public static void SetWidgetDepth(Widget _widget, float _depth)
{
ExportLayers_SetWidgetDepth(_widget.Native, _depth);
}
开发者ID:asdlei00,项目名称:mygui,代码行数:4,代码来源:Platform_Layers.cs
注:本文中的MyGUI.Sharp.Widget类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论