本文整理汇总了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 );
}
示例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;
}
示例3: widget_EventKeyButtonReleased
static void widget_EventKeyButtonReleased(Widget _sender, KeyCode _key)
{
Export.DebugOut("EventKeyButtonReleased _key=" + _key.ToString());
}
示例4: OnExportRootMouseChangeFocus
private static void OnExportRootMouseChangeFocus(
Widget _sender ,
bool _focus)
{
if (_sender.mEventRootMouseChangeFocus != null)
_sender.mEventRootMouseChangeFocus(
_sender ,
_focus );
}
示例5: OnExportMouseSetFocus
private static void OnExportMouseSetFocus(
Widget _sender ,
Widget _old)
{
if (_sender.mEventMouseSetFocus != null)
_sender.mEventMouseSetFocus(
_sender ,
_old );
}
示例6: OnExportMouseLostFocus
private static void OnExportMouseLostFocus(
Widget _sender ,
Widget _new)
{
if (_sender.mEventMouseLostFocus != null)
_sender.mEventMouseLostFocus(
_sender ,
_new );
}
示例7: OnExportMouseButtonDoubleClick
private static void OnExportMouseButtonDoubleClick(
Widget _sender)
{
if (_sender.mEventMouseButtonDoubleClick != null)
_sender.mEventMouseButtonDoubleClick(
_sender );
}
示例8: OnExportKeyButtonPressed
private static void OnExportKeyButtonPressed(
Widget _sender ,
KeyCode _key ,
uint _char)
{
if (_sender.mEventKeyButtonPressed != null)
_sender.mEventKeyButtonPressed(
_sender ,
_key ,
_char );
}
示例9: widget_EventRootMouseChangeFocus
static void widget_EventRootMouseChangeFocus(Widget _sender, bool _focus)
{
Export.DebugOut("EventRootMouseChangeFocus _focus=" + _focus.ToString());
}
示例10: widget_EventMouseWheel
static void widget_EventMouseWheel(Widget _sender, int _rel)
{
Export.DebugOut("EventMouseWheel _rel=" + _rel.ToString());
}
示例11: widget_EventMouseSetFocus
static void widget_EventMouseSetFocus(Widget _sender, Widget _old)
{
Export.DebugOut("EventMouseSetFocus _old=" + (_old == null ? "null" : _old.ToString()));
}
示例12: widget_EventMouseMove
static void widget_EventMouseMove(Widget _sender, int _left, int _top)
{
Export.DebugOut("EventMouseMove _left=" + _left.ToString() + " _top=" + _top.ToString());
}
示例13: widget_EventMouseLostFocus
static void widget_EventMouseLostFocus(Widget _sender, Widget _new)
{
Export.DebugOut("EventMouseLostFocus _new=" + (_new == null ? "null" : _new.ToString()));
}
示例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());
}
示例15: widget_EventMouseButtonDoubleClick
static void widget_EventMouseButtonDoubleClick(Widget _sender)
{
Export.DebugOut("EventMouseButtonDoubleClick");
}