本文整理汇总了C#中MyGUI.Sharp.MenuItem类的典型用法代码示例。如果您正苦于以下问题:C# MenuItem类的具体用法?C# MenuItem怎么用?C# MenuItem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MenuItem类属于MyGUI.Sharp命名空间,在下文中一共展示了MenuItem类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetItemId
public string GetItemId(
MenuItem _item)
{
return Marshal.PtrToStringAnsi( ExportMenuControl_GetItemId_item( mNative ,
_item ) ) ;
}
示例2: GetItemIndex
public uint GetItemIndex(
MenuItem _item)
{
return ExportMenuControl_GetItemIndex_item( mNative ,
_item ) ;
}
示例3: SetItemType
public void SetItemType(
MenuItem _item ,
MenuItemType _type)
{
ExportMenuControl_SetItemType_item_type( mNative ,
_item ,
_type );
}
示例4: GetItemChild
public MenuControl GetItemChild(
MenuItem _item)
{
return (MenuControl)BaseWidget.GetByNative(ExportMenuControl_GetItemChild__item(Native,
_item.Native));
}
示例5: SetItemChildVisible
public void SetItemChildVisible(
MenuItem _item ,
bool _visible)
{
ExportMenuControl_SetItemChildVisible_item_visible( mNative ,
_item ,
_visible );
}
示例6: SetItemId
public void SetItemId(
MenuItem _item ,
string _id)
{
ExportMenuControl_SetItemId_item_id( mNative ,
_item ,
_id );
}
示例7: RequestCreateMenuItem
internal static BaseWidget RequestCreateMenuItem(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
{
MenuItem widget = new MenuItem();
widget.CreateWidgetImpl(_parent, _style, _skin, _coord, _align, _layer, _name);
return widget;
}
示例8: InsertItem
public MenuItem InsertItem(
MenuItem _to ,
string _name ,
MenuItemType _type ,
string _id ,
object _data)
{
return ExportMenuControl_InsertItem_to_name_type_id_data( mNative ,
_to ,
_name ,
_type ,
_id ,
_data ) ;
}
示例9: FindItemIndex
public uint FindItemIndex(
MenuItem _item)
{
return ExportMenuCtrl_FindItemIndex_item( mNative ,
_item ) ;
}
示例10: RemoveItem
public void RemoveItem(
MenuItem _item)
{
ExportMenuCtrl_RemoveItem_item( mNative ,
_item );
}
示例11: menu_EventMenuCtrlAccept
static void menu_EventMenuCtrlAccept(MenuControl _sender, MenuItem _item)
{
Gui.Instance.Log("TestApp", LogLevel.Info, "EventMenuCtrlAccept item=" + _item.ToString());
}
示例12: menu_EventMenuCtrlAccept
static void menu_EventMenuCtrlAccept(MenuCtrl _sender, MenuItem _item)
{
Export.DebugOut("EventMenuCtrlAccept item=" + _item.ToString());
}
示例13: RemoveItem
public void RemoveItem(
MenuItem _item)
{
ExportMenuControl_RemoveItem__item(Native,
_item.Native);
}
示例14: GetItemName
public string GetItemName(
MenuItem _item)
{
return Marshal.PtrToStringUni( ExportMenuControl_GetItemName_item( mNative ,
_item ) ) ;
}
示例15: RequestWrapMenuItem
internal static BaseWidget RequestWrapMenuItem(BaseWidget _parent, IntPtr _widget)
{
MenuItem widget = new MenuItem();
widget.WrapWidget(_parent, _widget);
return widget;
}