1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799
|
/*!
@file
@author Generate utility by Albert Semenov
@date 01/2009
@module
*/
using System;
using System.Runtime.InteropServices;
namespace MyGUI.Sharp
{
public class MenuControl :
Widget
{
#region MenuControl
protected override string GetWidgetType() { return "MenuControl"; }
internal static BaseWidget RequestWrapMenuControl(BaseWidget _parent, IntPtr _widget)
{
MenuControl widget = new MenuControl();
widget.WrapWidget(_parent, _widget);
return widget;
}
internal static BaseWidget RequestCreateMenuControl(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)
{
MenuControl widget = new MenuControl();
widget.CreateWidgetImpl(_parent, _style, _skin, _coord, _align, _layer, _name);
return widget;
}
#endregion
//InsertPoint
#region Event MenuCtrlClose
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportMenuControlEvent_AdviseMenuCtrlClose(IntPtr _native, bool _advise);
public delegate void HandleMenuCtrlClose(
MenuControl _sender);
private HandleMenuCtrlClose mEventMenuCtrlClose;
public event HandleMenuCtrlClose EventMenuCtrlClose
{
add
{
if (ExportEventMenuCtrlClose.mDelegate == null)
{
ExportEventMenuCtrlClose.mDelegate = new ExportEventMenuCtrlClose.ExportHandle(OnExportMenuCtrlClose);
ExportEventMenuCtrlClose.ExportMenuControlEvent_DelegateMenuCtrlClose(ExportEventMenuCtrlClose.mDelegate);
}
if (mEventMenuCtrlClose == null)
ExportMenuControlEvent_AdviseMenuCtrlClose(Native, true);
mEventMenuCtrlClose += value;
}
remove
{
mEventMenuCtrlClose -= value;
if (mEventMenuCtrlClose == null)
ExportMenuControlEvent_AdviseMenuCtrlClose(Native, false);
}
}
private struct ExportEventMenuCtrlClose
{
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
public static extern void ExportMenuControlEvent_DelegateMenuCtrlClose(ExportHandle _delegate);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate void ExportHandle(
IntPtr _sender);
public static ExportHandle mDelegate;
}
private static void OnExportMenuCtrlClose(
IntPtr _sender)
{
MenuControl sender = (MenuControl)BaseWidget.GetByNative(_sender);
if (sender.mEventMenuCtrlClose != null)
sender.mEventMenuCtrlClose(
sender);
}
#endregion
#region Event MenuCtrlAccept
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportMenuControlEvent_AdviseMenuCtrlAccept(IntPtr _native, bool _advise);
public delegate void HandleMenuCtrlAccept(
MenuControl _sender,
MenuItem _item);
private HandleMenuCtrlAccept mEventMenuCtrlAccept;
public event HandleMenuCtrlAccept EventMenuCtrlAccept
{
add
{
if (ExportEventMenuCtrlAccept.mDelegate == null)
{
ExportEventMenuCtrlAccept.mDelegate = new ExportEventMenuCtrlAccept.ExportHandle(OnExportMenuCtrlAccept);
ExportEventMenuCtrlAccept.ExportMenuControlEvent_DelegateMenuCtrlAccept(ExportEventMenuCtrlAccept.mDelegate);
}
if (mEventMenuCtrlAccept == null)
ExportMenuControlEvent_AdviseMenuCtrlAccept(Native, true);
mEventMenuCtrlAccept += value;
}
remove
{
mEventMenuCtrlAccept -= value;
if (mEventMenuCtrlAccept == null)
ExportMenuControlEvent_AdviseMenuCtrlAccept(Native, false);
}
}
private struct ExportEventMenuCtrlAccept
{
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
public static extern void ExportMenuControlEvent_DelegateMenuCtrlAccept(ExportHandle _delegate);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
public delegate void ExportHandle(
IntPtr _sender,
IntPtr _item);
public static ExportHandle mDelegate;
}
private static void OnExportMenuCtrlAccept(
IntPtr _sender,
IntPtr _item)
{
MenuControl sender = (MenuControl)BaseWidget.GetByNative(_sender);
if (sender.mEventMenuCtrlAccept != null)
sender.mEventMenuCtrlAccept(
sender ,
(MenuItem)BaseWidget.GetByNative(_item));
}
#endregion
#region Method SetItemType
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportMenuControl_SetItemType__item__type(IntPtr _native,
IntPtr _item,
[MarshalAs(UnmanagedType.I4)] MenuItemType _type);
public void SetItemType(
MenuItem _item,
MenuItemType _type)
{
ExportMenuControl_SetItemType__item__type(Native,
_item.Native,
_type);
}
#endregion
#region Method SetItemTypeAt
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportMenuControl_SetItemTypeAt__index__type(IntPtr _native,
uint _index,
[MarshalAs(UnmanagedType.I4)] MenuItemType _type);
public void SetItemTypeAt(
uint _index,
MenuItemType _type)
{
ExportMenuControl_SetItemTypeAt__index__type(Native,
_index,
_type);
}
#endregion
#region Method GetItemType
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern MenuItemType ExportMenuControl_GetItemType__item(IntPtr _native,
IntPtr _item);
public MenuItemType GetItemType(
MenuItem _item)
{
return ExportMenuControl_GetItemType__item(Native,
_item.Native);
}
#endregion
#region Method GetItemTypeAt
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern MenuItemType ExportMenuControl_GetItemTypeAt__index(IntPtr _native,
uint _index);
public MenuItemType GetItemTypeAt(
uint _index)
{
return ExportMenuControl_GetItemTypeAt__index(Native,
_index);
}
#endregion
#region Method RemoveItemChild
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportMenuControl_RemoveItemChild__item(IntPtr _native,
IntPtr _item);
public void RemoveItemChild(
MenuItem _item)
{
ExportMenuControl_RemoveItemChild__item(Native,
_item.Native);
}
#endregion
#region Method RemoveItemChildAt
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportMenuControl_RemoveItemChildAt__index(IntPtr _native,
uint _index);
public void RemoveItemChildAt(
uint _index)
{
ExportMenuControl_RemoveItemChildAt__index(Native,
_index);
}
#endregion
#region Method CreateItemChild
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_CreateItemChild__item(IntPtr _native,
IntPtr _item);
public MenuControl CreateItemChild(
MenuItem _item)
{
return (MenuControl)BaseWidget.GetByNative(ExportMenuControl_CreateItemChild__item(Native,
_item.Native));
}
#endregion
#region Method CreateItemChildAt
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_CreateItemChildAt__index(IntPtr _native,
uint _index);
public MenuControl CreateItemChildAt(
uint _index)
{
return (MenuControl)BaseWidget.GetByNative(ExportMenuControl_CreateItemChildAt__index(Native,
_index));
}
#endregion
#region Method GetItemChild
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_GetItemChild__item(IntPtr _native,
IntPtr _item);
public MenuControl GetItemChild(
MenuItem _item)
{
return (MenuControl)BaseWidget.GetByNative(ExportMenuControl_GetItemChild__item(Native,
_item.Native));
}
#endregion
#region Method GetItemChildAt
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_GetItemChildAt__index(IntPtr _native,
uint _index);
public MenuControl GetItemChildAt(
uint _index)
{
return (MenuControl)BaseWidget.GetByNative(ExportMenuControl_GetItemChildAt__index(Native,
_index));
}
#endregion
#region Method SetItemChildVisible
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportMenuControl_SetItemChildVisible__item__visible(IntPtr _native,
IntPtr _item,
[MarshalAs(UnmanagedType.U1)] bool _visible);
public void SetItemChildVisible(
MenuItem _item,
bool _visible)
{
ExportMenuControl_SetItemChildVisible__item__visible(Native,
_item.Native,
_visible);
}
#endregion
#region Method SetItemChildVisibleAt
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportMenuControl_SetItemChildVisibleAt__index__visible(IntPtr _native,
uint _index,
[MarshalAs(UnmanagedType.U1)] bool _visible);
public void SetItemChildVisibleAt(
uint _index,
bool _visible)
{
ExportMenuControl_SetItemChildVisibleAt__index__visible(Native,
_index,
_visible);
}
#endregion
#region Method FindItemIndexWith
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern uint ExportMenuControl_FindItemIndexWith__name(IntPtr _native,
[MarshalAs(UnmanagedType.LPWStr)] string _name);
public uint FindItemIndexWith(
string _name)
{
return ExportMenuControl_FindItemIndexWith__name(Native,
_name);
}
#endregion
#region Method GetItemName
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_GetItemName__item(IntPtr _native,
IntPtr _item);
public string GetItemName(
MenuItem _item)
{
return Marshal.PtrToStringUni(ExportMenuControl_GetItemName__item(Native,
_item.Native));
}
#endregion
#region Method GetItemNameAt
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_GetItemNameAt__index(IntPtr _native,
uint _index);
public string GetItemNameAt(
uint _index)
{
return Marshal.PtrToStringUni(ExportMenuControl_GetItemNameAt__index(Native,
_index));
}
#endregion
#region Method SetItemName
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportMenuControl_SetItemName__item__name(IntPtr _native,
IntPtr _item,
[MarshalAs(UnmanagedType.LPWStr)] string _name);
public void SetItemName(
MenuItem _item,
string _name)
{
ExportMenuControl_SetItemName__item__name(Native,
_item.Native,
_name);
}
#endregion
#region Method SetItemNameAt
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportMenuControl_SetItemNameAt__index__name(IntPtr _native,
uint _index,
[MarshalAs(UnmanagedType.LPWStr)] string _name);
public void SetItemNameAt(
uint _index,
string _name)
{
ExportMenuControl_SetItemNameAt__index__name(Native,
_index,
_name);
}
#endregion
#region Method GetItemIndexById
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern uint ExportMenuControl_GetItemIndexById__id(IntPtr _native,
[MarshalAs(UnmanagedType.LPStr)] string _id);
public uint GetItemIndexById(
string _id)
{
return ExportMenuControl_GetItemIndexById__id(Native,
_id);
}
#endregion
#region Method FindItemById
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_FindItemById__id__recursive(IntPtr _native,
[MarshalAs(UnmanagedType.LPStr)] string _id,
[MarshalAs(UnmanagedType.U1)] bool _recursive);
public MenuItem FindItemById(
string _id,
bool _recursive)
{
return (MenuItem)BaseWidget.GetByNative(ExportMenuControl_FindItemById__id__recursive(Native,
_id,
_recursive));
}
#endregion
#region Method GetItemById
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_GetItemById__id(IntPtr _native,
[MarshalAs(UnmanagedType.LPStr)] string _id);
public MenuItem GetItemById(
string _id)
{
return (MenuItem)BaseWidget.GetByNative(ExportMenuControl_GetItemById__id(Native,
_id));
}
#endregion
#region Method GetItemId
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_GetItemId__item(IntPtr _native,
IntPtr _item);
public string GetItemId(
MenuItem _item)
{
return Marshal.PtrToStringAnsi(ExportMenuControl_GetItemId__item(Native,
_item.Native));
}
#endregion
#region Method GetItemIdAt
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_GetItemIdAt__index(IntPtr _native,
uint _index);
public string GetItemIdAt(
uint _index)
{
return Marshal.PtrToStringAnsi(ExportMenuControl_GetItemIdAt__index(Native,
_index));
}
#endregion
#region Method SetItemId
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportMenuControl_SetItemId__item__id(IntPtr _native,
IntPtr _item,
[MarshalAs(UnmanagedType.LPStr)] string _id);
public void SetItemId(
MenuItem _item,
string _id)
{
ExportMenuControl_SetItemId__item__id(Native,
_item.Native,
_id);
}
#endregion
#region Method SetItemIdAt
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportMenuControl_SetItemIdAt__index__id(IntPtr _native,
uint _index,
[MarshalAs(UnmanagedType.LPStr)] string _id);
public void SetItemIdAt(
uint _index,
string _id)
{
ExportMenuControl_SetItemIdAt__index__id(Native,
_index,
_id);
}
#endregion
#region Method FindItemWith
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_FindItemWith__name(IntPtr _native,
[MarshalAs(UnmanagedType.LPWStr)] string _name);
public MenuItem FindItemWith(
string _name)
{
return (MenuItem)BaseWidget.GetByNative(ExportMenuControl_FindItemWith__name(Native,
_name));
}
#endregion
#region Method FindItemIndex
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern uint ExportMenuControl_FindItemIndex__item(IntPtr _native,
IntPtr _item);
public uint FindItemIndex(
MenuItem _item)
{
return ExportMenuControl_FindItemIndex__item(Native,
_item.Native);
}
#endregion
#region Method GetItemIndex
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern uint ExportMenuControl_GetItemIndex__item(IntPtr _native,
IntPtr _item);
public uint GetItemIndex(
MenuItem _item)
{
return ExportMenuControl_GetItemIndex__item(Native,
_item.Native);
}
#endregion
#region Method GetItemAt
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_GetItemAt__index(IntPtr _native,
uint _index);
public MenuItem GetItemAt(
uint _index)
{
return (MenuItem)BaseWidget.GetByNative(ExportMenuControl_GetItemAt__index(Native,
_index));
}
#endregion
#region Method RemoveAllItems
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportMenuControl_RemoveAllItems(IntPtr _native);
public void RemoveAllItems( )
{
ExportMenuControl_RemoveAllItems(Native);
}
#endregion
#region Method RemoveItem
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportMenuControl_RemoveItem__item(IntPtr _native,
IntPtr _item);
public void RemoveItem(
MenuItem _item)
{
ExportMenuControl_RemoveItem__item(Native,
_item.Native);
}
#endregion
#region Method RemoveItemAt
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportMenuControl_RemoveItemAt__index(IntPtr _native,
uint _index);
public void RemoveItemAt(
uint _index)
{
ExportMenuControl_RemoveItemAt__index(Native,
_index);
}
#endregion
#region Method AddItem
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_AddItem__name__type__id(IntPtr _native,
[MarshalAs(UnmanagedType.LPWStr)] string _name,
[MarshalAs(UnmanagedType.I4)] MenuItemType _type,
[MarshalAs(UnmanagedType.LPStr)] string _id);
public MenuItem AddItem(
string _name,
MenuItemType _type,
string _id)
{
return (MenuItem)BaseWidget.GetByNative(ExportMenuControl_AddItem__name__type__id(Native,
_name,
_type,
_id));
}
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_AddItem__name__type(IntPtr _native,
[MarshalAs(UnmanagedType.LPWStr)] string _name,
[MarshalAs(UnmanagedType.I4)] MenuItemType _type);
public MenuItem AddItem(
string _name,
MenuItemType _type)
{
return (MenuItem)BaseWidget.GetByNative(ExportMenuControl_AddItem__name__type(Native,
_name,
_type));
}
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_AddItem__name(IntPtr _native,
[MarshalAs(UnmanagedType.LPWStr)] string _name);
public MenuItem AddItem(
string _name)
{
return (MenuItem)BaseWidget.GetByNative(ExportMenuControl_AddItem__name(Native,
_name));
}
#endregion
#region Method InsertItemAt
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_InsertItemAt__index__name__type__id(IntPtr _native,
uint _index,
[MarshalAs(UnmanagedType.LPWStr)] string _name,
[MarshalAs(UnmanagedType.I4)] MenuItemType _type,
[MarshalAs(UnmanagedType.LPStr)] string _id);
public MenuItem InsertItemAt(
uint _index,
string _name,
MenuItemType _type,
string _id)
{
return (MenuItem)BaseWidget.GetByNative(ExportMenuControl_InsertItemAt__index__name__type__id(Native,
_index,
_name,
_type,
_id));
}
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_InsertItemAt__index__name__type(IntPtr _native,
uint _index,
[MarshalAs(UnmanagedType.LPWStr)] string _name,
[MarshalAs(UnmanagedType.I4)] MenuItemType _type);
public MenuItem InsertItemAt(
uint _index,
string _name,
MenuItemType _type)
{
return (MenuItem)BaseWidget.GetByNative(ExportMenuControl_InsertItemAt__index__name__type(Native,
_index,
_name,
_type));
}
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_InsertItemAt__index__name(IntPtr _native,
uint _index,
[MarshalAs(UnmanagedType.LPWStr)] string _name);
public MenuItem InsertItemAt(
uint _index,
string _name)
{
return (MenuItem)BaseWidget.GetByNative(ExportMenuControl_InsertItemAt__index__name(Native,
_index,
_name));
}
#endregion
#region Method SetVisibleSmooth
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportMenuControl_SetVisibleSmooth__value(IntPtr _native,
[MarshalAs(UnmanagedType.U1)] bool _value);
public void SetVisibleSmooth(
bool _value)
{
ExportMenuControl_SetVisibleSmooth__value(Native,
_value);
}
#endregion
#region Property VerticalAlignment
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern bool ExportMenuControl_GetVerticalAlignment(IntPtr _widget);
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportMenuControl_SetVerticalAlignment(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value);
public bool VerticalAlignment
{
get { return ExportMenuControl_GetVerticalAlignment(Native); }
set { ExportMenuControl_SetVerticalAlignment(Native, value); }
}
#endregion
#region Property MenuItemParent
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern IntPtr ExportMenuControl_GetMenuItemParent(IntPtr _native);
public MenuItem MenuItemParent
{
get { return (MenuItem)BaseWidget.GetByNative(ExportMenuControl_GetMenuItemParent(Native)); }
}
#endregion
#region Property PopupAccept
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern bool ExportMenuControl_GetPopupAccept(IntPtr _widget);
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern void ExportMenuControl_SetPopupAccept(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value);
public bool PopupAccept
{
get { return ExportMenuControl_GetPopupAccept(Native); }
set { ExportMenuControl_SetPopupAccept(Native, value); }
}
#endregion
#region Property ItemCount
[DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)]
private static extern uint ExportMenuControl_GetItemCount(IntPtr _native);
public uint ItemCount
{
get { return ExportMenuControl_GetItemCount(Native); }
}
#endregion
}
}
|