1 /*! 2 @file 3 @author Generate utility by Albert Semenov 4 @date 01/2009 5 @module 6 */ 7 8 using System; 9 using System.Runtime.InteropServices; 10 11 namespace MyGUI.Sharp 12 { 13 public class ItemBox : 14 DDContainer 15 { 16 #region ItemBox 17 GetWidgetType()18 protected override string GetWidgetType() { return "ItemBox"; } 19 RequestWrapItemBox(BaseWidget _parent, IntPtr _widget)20 internal static BaseWidget RequestWrapItemBox(BaseWidget _parent, IntPtr _widget) 21 { 22 ItemBox widget = new ItemBox(); 23 widget.WrapWidget(_parent, _widget); 24 return widget; 25 } 26 RequestCreateItemBox(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name)27 internal static BaseWidget RequestCreateItemBox(BaseWidget _parent, WidgetStyle _style, string _skin, IntCoord _coord, Align _align, string _layer, string _name) 28 { 29 ItemBox widget = new ItemBox(); 30 widget.CreateWidgetImpl(_parent, _style, _skin, _coord, _align, _layer, _name); 31 return widget; 32 } 33 34 #endregion 35 36 37 //InsertPoint 38 #region Event NotifyItem 39 40 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBoxEvent_AdviseNotifyItem(IntPtr _native, bool _advise)41 private static extern void ExportItemBoxEvent_AdviseNotifyItem(IntPtr _native, bool _advise); 42 HandleNotifyItem( ItemBox _sender, ref IBNotifyItemData _info)43 public delegate void HandleNotifyItem( 44 ItemBox _sender, 45 ref IBNotifyItemData _info); 46 47 private HandleNotifyItem mEventNotifyItem; 48 public event HandleNotifyItem EventNotifyItem 49 { 50 add 51 { 52 if (ExportEventNotifyItem.mDelegate == null) 53 { 54 ExportEventNotifyItem.mDelegate = new ExportEventNotifyItem.ExportHandle(OnExportNotifyItem); 55 ExportEventNotifyItem.ExportItemBoxEvent_DelegateNotifyItem(ExportEventNotifyItem.mDelegate); 56 } 57 58 if (mEventNotifyItem == null) 59 ExportItemBoxEvent_AdviseNotifyItem(Native, true); 60 mEventNotifyItem += value; 61 } 62 remove 63 { 64 mEventNotifyItem -= value; 65 if (mEventNotifyItem == null) 66 ExportItemBoxEvent_AdviseNotifyItem(Native, false); 67 } 68 } 69 70 private struct ExportEventNotifyItem 71 { 72 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBoxEvent_DelegateNotifyItemMyGUI.Sharp.ItemBox.ExportEventNotifyItem73 public static extern void ExportItemBoxEvent_DelegateNotifyItem(ExportHandle _delegate); 74 [UnmanagedFunctionPointer(CallingConvention.StdCall)] ExportHandleMyGUI.Sharp.ItemBox.ExportEventNotifyItem75 public delegate void ExportHandle( 76 IntPtr _sender, 77 [In] ref IBNotifyItemData _info); 78 79 public static ExportHandle mDelegate; 80 } 81 OnExportNotifyItem( IntPtr _sender, ref IBNotifyItemData _info)82 private static void OnExportNotifyItem( 83 IntPtr _sender, 84 ref IBNotifyItemData _info) 85 { 86 ItemBox sender = (ItemBox)BaseWidget.GetByNative(_sender); 87 88 if (sender.mEventNotifyItem != null) 89 sender.mEventNotifyItem( 90 sender , 91 ref _info); 92 } 93 94 #endregion 95 #region Event MouseItemActivate 96 97 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBoxEvent_AdviseMouseItemActivate(IntPtr _native, bool _advise)98 private static extern void ExportItemBoxEvent_AdviseMouseItemActivate(IntPtr _native, bool _advise); 99 HandleMouseItemActivate( ItemBox _sender, uint _index)100 public delegate void HandleMouseItemActivate( 101 ItemBox _sender, 102 uint _index); 103 104 private HandleMouseItemActivate mEventMouseItemActivate; 105 public event HandleMouseItemActivate EventMouseItemActivate 106 { 107 add 108 { 109 if (ExportEventMouseItemActivate.mDelegate == null) 110 { 111 ExportEventMouseItemActivate.mDelegate = new ExportEventMouseItemActivate.ExportHandle(OnExportMouseItemActivate); 112 ExportEventMouseItemActivate.ExportItemBoxEvent_DelegateMouseItemActivate(ExportEventMouseItemActivate.mDelegate); 113 } 114 115 if (mEventMouseItemActivate == null) 116 ExportItemBoxEvent_AdviseMouseItemActivate(Native, true); 117 mEventMouseItemActivate += value; 118 } 119 remove 120 { 121 mEventMouseItemActivate -= value; 122 if (mEventMouseItemActivate == null) 123 ExportItemBoxEvent_AdviseMouseItemActivate(Native, false); 124 } 125 } 126 127 private struct ExportEventMouseItemActivate 128 { 129 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBoxEvent_DelegateMouseItemActivateMyGUI.Sharp.ItemBox.ExportEventMouseItemActivate130 public static extern void ExportItemBoxEvent_DelegateMouseItemActivate(ExportHandle _delegate); 131 [UnmanagedFunctionPointer(CallingConvention.StdCall)] ExportHandleMyGUI.Sharp.ItemBox.ExportEventMouseItemActivate132 public delegate void ExportHandle( 133 IntPtr _sender, 134 uint _index); 135 136 public static ExportHandle mDelegate; 137 } 138 OnExportMouseItemActivate( IntPtr _sender, uint _index)139 private static void OnExportMouseItemActivate( 140 IntPtr _sender, 141 uint _index) 142 { 143 ItemBox sender = (ItemBox)BaseWidget.GetByNative(_sender); 144 145 if (sender.mEventMouseItemActivate != null) 146 sender.mEventMouseItemActivate( 147 sender , 148 _index); 149 } 150 151 #endregion 152 #region Event ChangeItemPosition 153 154 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBoxEvent_AdviseChangeItemPosition(IntPtr _native, bool _advise)155 private static extern void ExportItemBoxEvent_AdviseChangeItemPosition(IntPtr _native, bool _advise); 156 HandleChangeItemPosition( ItemBox _sender, uint _index)157 public delegate void HandleChangeItemPosition( 158 ItemBox _sender, 159 uint _index); 160 161 private HandleChangeItemPosition mEventChangeItemPosition; 162 public event HandleChangeItemPosition EventChangeItemPosition 163 { 164 add 165 { 166 if (ExportEventChangeItemPosition.mDelegate == null) 167 { 168 ExportEventChangeItemPosition.mDelegate = new ExportEventChangeItemPosition.ExportHandle(OnExportChangeItemPosition); 169 ExportEventChangeItemPosition.ExportItemBoxEvent_DelegateChangeItemPosition(ExportEventChangeItemPosition.mDelegate); 170 } 171 172 if (mEventChangeItemPosition == null) 173 ExportItemBoxEvent_AdviseChangeItemPosition(Native, true); 174 mEventChangeItemPosition += value; 175 } 176 remove 177 { 178 mEventChangeItemPosition -= value; 179 if (mEventChangeItemPosition == null) 180 ExportItemBoxEvent_AdviseChangeItemPosition(Native, false); 181 } 182 } 183 184 private struct ExportEventChangeItemPosition 185 { 186 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBoxEvent_DelegateChangeItemPositionMyGUI.Sharp.ItemBox.ExportEventChangeItemPosition187 public static extern void ExportItemBoxEvent_DelegateChangeItemPosition(ExportHandle _delegate); 188 [UnmanagedFunctionPointer(CallingConvention.StdCall)] ExportHandleMyGUI.Sharp.ItemBox.ExportEventChangeItemPosition189 public delegate void ExportHandle( 190 IntPtr _sender, 191 uint _index); 192 193 public static ExportHandle mDelegate; 194 } 195 OnExportChangeItemPosition( IntPtr _sender, uint _index)196 private static void OnExportChangeItemPosition( 197 IntPtr _sender, 198 uint _index) 199 { 200 ItemBox sender = (ItemBox)BaseWidget.GetByNative(_sender); 201 202 if (sender.mEventChangeItemPosition != null) 203 sender.mEventChangeItemPosition( 204 sender , 205 _index); 206 } 207 208 #endregion 209 #region Event SelectItemAccept 210 211 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBoxEvent_AdviseSelectItemAccept(IntPtr _native, bool _advise)212 private static extern void ExportItemBoxEvent_AdviseSelectItemAccept(IntPtr _native, bool _advise); 213 HandleSelectItemAccept( ItemBox _sender, uint _index)214 public delegate void HandleSelectItemAccept( 215 ItemBox _sender, 216 uint _index); 217 218 private HandleSelectItemAccept mEventSelectItemAccept; 219 public event HandleSelectItemAccept EventSelectItemAccept 220 { 221 add 222 { 223 if (ExportEventSelectItemAccept.mDelegate == null) 224 { 225 ExportEventSelectItemAccept.mDelegate = new ExportEventSelectItemAccept.ExportHandle(OnExportSelectItemAccept); 226 ExportEventSelectItemAccept.ExportItemBoxEvent_DelegateSelectItemAccept(ExportEventSelectItemAccept.mDelegate); 227 } 228 229 if (mEventSelectItemAccept == null) 230 ExportItemBoxEvent_AdviseSelectItemAccept(Native, true); 231 mEventSelectItemAccept += value; 232 } 233 remove 234 { 235 mEventSelectItemAccept -= value; 236 if (mEventSelectItemAccept == null) 237 ExportItemBoxEvent_AdviseSelectItemAccept(Native, false); 238 } 239 } 240 241 private struct ExportEventSelectItemAccept 242 { 243 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBoxEvent_DelegateSelectItemAcceptMyGUI.Sharp.ItemBox.ExportEventSelectItemAccept244 public static extern void ExportItemBoxEvent_DelegateSelectItemAccept(ExportHandle _delegate); 245 [UnmanagedFunctionPointer(CallingConvention.StdCall)] ExportHandleMyGUI.Sharp.ItemBox.ExportEventSelectItemAccept246 public delegate void ExportHandle( 247 IntPtr _sender, 248 uint _index); 249 250 public static ExportHandle mDelegate; 251 } 252 OnExportSelectItemAccept( IntPtr _sender, uint _index)253 private static void OnExportSelectItemAccept( 254 IntPtr _sender, 255 uint _index) 256 { 257 ItemBox sender = (ItemBox)BaseWidget.GetByNative(_sender); 258 259 if (sender.mEventSelectItemAccept != null) 260 sender.mEventSelectItemAccept( 261 sender , 262 _index); 263 } 264 265 #endregion 266 #region Request DrawItem 267 268 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBoxEvent_AdviseDrawItem(IntPtr _native, bool _advise)269 private static extern void ExportItemBoxEvent_AdviseDrawItem(IntPtr _native, bool _advise); 270 HandleDrawItem( ItemBox _sender, Widget _item, ref IBDrawItemInfo _info)271 public delegate void HandleDrawItem( 272 ItemBox _sender, 273 Widget _item, 274 ref IBDrawItemInfo _info); 275 276 private HandleDrawItem mEventDrawItem; 277 public event HandleDrawItem RequestDrawItem 278 { 279 add 280 { 281 if (ExportEventDrawItem.mDelegate == null) 282 { 283 ExportEventDrawItem.mDelegate = new ExportEventDrawItem.ExportHandle(OnExportDrawItem); 284 ExportEventDrawItem.ExportItemBoxEvent_DelegateDrawItem(ExportEventDrawItem.mDelegate); 285 } 286 287 if (mEventDrawItem == null) 288 ExportItemBoxEvent_AdviseDrawItem(Native, true); 289 mEventDrawItem += value; 290 } 291 remove 292 { 293 mEventDrawItem -= value; 294 if (mEventDrawItem == null) 295 ExportItemBoxEvent_AdviseDrawItem(Native, false); 296 } 297 } 298 299 private struct ExportEventDrawItem 300 { 301 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBoxEvent_DelegateDrawItemMyGUI.Sharp.ItemBox.ExportEventDrawItem302 public static extern void ExportItemBoxEvent_DelegateDrawItem(ExportHandle _delegate); 303 [UnmanagedFunctionPointer(CallingConvention.StdCall)] ExportHandleMyGUI.Sharp.ItemBox.ExportEventDrawItem304 public delegate void ExportHandle( 305 IntPtr _sender, 306 IntPtr _item, 307 [In] ref IBDrawItemInfo _info); 308 309 public static ExportHandle mDelegate; 310 } 311 OnExportDrawItem( IntPtr _sender, IntPtr _item, ref IBDrawItemInfo _info)312 private static void OnExportDrawItem( 313 IntPtr _sender, 314 IntPtr _item, 315 ref IBDrawItemInfo _info) 316 { 317 ItemBox sender = (ItemBox)BaseWidget.GetByNative(_sender); 318 319 if (sender.mEventDrawItem != null) 320 sender.mEventDrawItem( 321 sender , 322 (Widget)BaseWidget.GetByNative(_item), 323 ref _info); 324 } 325 326 #endregion 327 #region Request CoordItem 328 329 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBoxEvent_AdviseCoordItem(IntPtr _native, bool _advise)330 private static extern void ExportItemBoxEvent_AdviseCoordItem(IntPtr _native, bool _advise); 331 HandleCoordItem( ItemBox _sender, ref IntCoord _coord, bool _drag)332 public delegate void HandleCoordItem( 333 ItemBox _sender, 334 ref IntCoord _coord, 335 bool _drag); 336 337 private HandleCoordItem mEventCoordItem; 338 public event HandleCoordItem RequestCoordItem 339 { 340 add 341 { 342 if (ExportEventCoordItem.mDelegate == null) 343 { 344 ExportEventCoordItem.mDelegate = new ExportEventCoordItem.ExportHandle(OnExportCoordItem); 345 ExportEventCoordItem.ExportItemBoxEvent_DelegateCoordItem(ExportEventCoordItem.mDelegate); 346 } 347 348 if (mEventCoordItem == null) 349 ExportItemBoxEvent_AdviseCoordItem(Native, true); 350 mEventCoordItem += value; 351 } 352 remove 353 { 354 mEventCoordItem -= value; 355 if (mEventCoordItem == null) 356 ExportItemBoxEvent_AdviseCoordItem(Native, false); 357 } 358 } 359 360 private struct ExportEventCoordItem 361 { 362 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBoxEvent_DelegateCoordItemMyGUI.Sharp.ItemBox.ExportEventCoordItem363 public static extern void ExportItemBoxEvent_DelegateCoordItem(ExportHandle _delegate); 364 [UnmanagedFunctionPointer(CallingConvention.StdCall)] ExportHandleMyGUI.Sharp.ItemBox.ExportEventCoordItem365 public delegate void ExportHandle( 366 IntPtr _sender, 367 ref IntCoord _coord, 368 [MarshalAs(UnmanagedType.U1)] bool _drag); 369 370 public static ExportHandle mDelegate; 371 } 372 OnExportCoordItem( IntPtr _sender, ref IntCoord _coord, bool _drag)373 private static void OnExportCoordItem( 374 IntPtr _sender, 375 ref IntCoord _coord, 376 bool _drag) 377 { 378 ItemBox sender = (ItemBox)BaseWidget.GetByNative(_sender); 379 380 if (sender.mEventCoordItem != null) 381 sender.mEventCoordItem( 382 sender , 383 ref _coord, 384 _drag); 385 } 386 387 #endregion 388 #region Request CreateWidgetItem 389 390 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBoxEvent_AdviseCreateWidgetItem(IntPtr _native, bool _advise)391 private static extern void ExportItemBoxEvent_AdviseCreateWidgetItem(IntPtr _native, bool _advise); 392 HandleCreateWidgetItem( ItemBox _sender, Widget _item)393 public delegate void HandleCreateWidgetItem( 394 ItemBox _sender, 395 Widget _item); 396 397 private HandleCreateWidgetItem mEventCreateWidgetItem; 398 public event HandleCreateWidgetItem RequestCreateWidgetItem 399 { 400 add 401 { 402 if (ExportEventCreateWidgetItem.mDelegate == null) 403 { 404 ExportEventCreateWidgetItem.mDelegate = new ExportEventCreateWidgetItem.ExportHandle(OnExportCreateWidgetItem); 405 ExportEventCreateWidgetItem.ExportItemBoxEvent_DelegateCreateWidgetItem(ExportEventCreateWidgetItem.mDelegate); 406 } 407 408 if (mEventCreateWidgetItem == null) 409 ExportItemBoxEvent_AdviseCreateWidgetItem(Native, true); 410 mEventCreateWidgetItem += value; 411 } 412 remove 413 { 414 mEventCreateWidgetItem -= value; 415 if (mEventCreateWidgetItem == null) 416 ExportItemBoxEvent_AdviseCreateWidgetItem(Native, false); 417 } 418 } 419 420 private struct ExportEventCreateWidgetItem 421 { 422 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBoxEvent_DelegateCreateWidgetItemMyGUI.Sharp.ItemBox.ExportEventCreateWidgetItem423 public static extern void ExportItemBoxEvent_DelegateCreateWidgetItem(ExportHandle _delegate); 424 [UnmanagedFunctionPointer(CallingConvention.StdCall)] ExportHandleMyGUI.Sharp.ItemBox.ExportEventCreateWidgetItem425 public delegate void ExportHandle( 426 IntPtr _sender, 427 IntPtr _item); 428 429 public static ExportHandle mDelegate; 430 } 431 OnExportCreateWidgetItem( IntPtr _sender, IntPtr _item)432 private static void OnExportCreateWidgetItem( 433 IntPtr _sender, 434 IntPtr _item) 435 { 436 ItemBox sender = (ItemBox)BaseWidget.GetByNative(_sender); 437 438 if (sender.mEventCreateWidgetItem != null) 439 sender.mEventCreateWidgetItem( 440 sender , 441 (Widget)BaseWidget.GetByNative(_item)); 442 } 443 444 #endregion 445 #region Method GetWidgetByIndex 446 447 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] 448 ExportItemBox_GetWidgetByIndex__index(IntPtr _native, uint _index)449 private static extern IntPtr ExportItemBox_GetWidgetByIndex__index(IntPtr _native, 450 uint _index); 451 GetWidgetByIndex( uint _index)452 public Widget GetWidgetByIndex( 453 uint _index) 454 { 455 return (Widget)BaseWidget.GetByNative(ExportItemBox_GetWidgetByIndex__index(Native, 456 _index)); 457 } 458 459 #endregion 460 #region Method GetIndexByWidget 461 462 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] 463 ExportItemBox_GetIndexByWidget__widget(IntPtr _native, IntPtr _widget)464 private static extern uint ExportItemBox_GetIndexByWidget__widget(IntPtr _native, 465 IntPtr _widget); 466 GetIndexByWidget( Widget _widget)467 public uint GetIndexByWidget( 468 Widget _widget) 469 { 470 return ExportItemBox_GetIndexByWidget__widget(Native, 471 _widget.Native); 472 } 473 474 #endregion 475 #region Method ClearIndexSelected 476 477 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBox_ClearIndexSelected(IntPtr _native)478 private static extern void ExportItemBox_ClearIndexSelected(IntPtr _native); 479 ClearIndexSelected( )480 public void ClearIndexSelected( ) 481 { 482 ExportItemBox_ClearIndexSelected(Native); 483 } 484 485 #endregion 486 #region Method RedrawAllItems 487 488 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBox_RedrawAllItems(IntPtr _native)489 private static extern void ExportItemBox_RedrawAllItems(IntPtr _native); 490 RedrawAllItems( )491 public void RedrawAllItems( ) 492 { 493 ExportItemBox_RedrawAllItems(Native); 494 } 495 496 #endregion 497 #region Method RedrawItemAt 498 499 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBox_RedrawItemAt__index(IntPtr _native, uint _index)500 private static extern void ExportItemBox_RedrawItemAt__index(IntPtr _native, 501 uint _index); 502 RedrawItemAt( uint _index)503 public void RedrawItemAt( 504 uint _index) 505 { 506 ExportItemBox_RedrawItemAt__index(Native, 507 _index); 508 } 509 510 #endregion 511 #region Method RemoveAllItems 512 513 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBox_RemoveAllItems(IntPtr _native)514 private static extern void ExportItemBox_RemoveAllItems(IntPtr _native); 515 RemoveAllItems( )516 public void RemoveAllItems( ) 517 { 518 ExportItemBox_RemoveAllItems(Native); 519 } 520 521 #endregion 522 #region Method RemoveItemAt 523 524 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBox_RemoveItemAt__index(IntPtr _native, uint _index)525 private static extern void ExportItemBox_RemoveItemAt__index(IntPtr _native, 526 uint _index); 527 RemoveItemAt( uint _index)528 public void RemoveItemAt( 529 uint _index) 530 { 531 ExportItemBox_RemoveItemAt__index(Native, 532 _index); 533 } 534 535 #endregion 536 #region Method AddItem 537 538 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBox_AddItem(IntPtr _native)539 private static extern void ExportItemBox_AddItem(IntPtr _native); 540 AddItem( )541 public void AddItem( ) 542 { 543 ExportItemBox_AddItem(Native); 544 } 545 546 #endregion 547 #region Method InsertItemAt 548 549 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBox_InsertItemAt__index(IntPtr _native, uint _index)550 private static extern void ExportItemBox_InsertItemAt__index(IntPtr _native, 551 uint _index); 552 InsertItemAt( uint _index)553 public void InsertItemAt( 554 uint _index) 555 { 556 ExportItemBox_InsertItemAt__index(Native, 557 _index); 558 } 559 560 #endregion 561 #region Property ViewOffset 562 563 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] 564 ExportItemBox_GetViewOffset(IntPtr _widget)565 private static extern IntPtr ExportItemBox_GetViewOffset(IntPtr _widget); 566 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBox_SetViewOffset(IntPtr _widget, [In] ref IntPoint _value)567 private static extern void ExportItemBox_SetViewOffset(IntPtr _widget, [In] ref IntPoint _value); 568 569 public IntPoint ViewOffset 570 { 571 get { return (IntPoint)Marshal.PtrToStructure(ExportItemBox_GetViewOffset(Native), typeof(IntPoint)); } 572 set { ExportItemBox_SetViewOffset(Native, ref value); } 573 } 574 575 #endregion 576 #region Property WidgetDrag 577 578 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] 579 ExportItemBox_GetWidgetDrag(IntPtr _native)580 private static extern IntPtr ExportItemBox_GetWidgetDrag(IntPtr _native); 581 582 public Widget WidgetDrag 583 { 584 get { return (Widget)BaseWidget.GetByNative(ExportItemBox_GetWidgetDrag(Native)); } 585 } 586 587 #endregion 588 #region Property VerticalAlignment 589 590 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] 591 ExportItemBox_GetVerticalAlignment(IntPtr _widget)592 private static extern bool ExportItemBox_GetVerticalAlignment(IntPtr _widget); 593 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBox_SetVerticalAlignment(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value)594 private static extern void ExportItemBox_SetVerticalAlignment(IntPtr _widget, [MarshalAs(UnmanagedType.U1)] bool _value); 595 596 public bool VerticalAlignment 597 { 598 get { return ExportItemBox_GetVerticalAlignment(Native); } 599 set { ExportItemBox_SetVerticalAlignment(Native, value); } 600 } 601 602 #endregion 603 #region Property IndexSelected 604 605 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] 606 ExportItemBox_GetIndexSelected(IntPtr _widget)607 private static extern uint ExportItemBox_GetIndexSelected(IntPtr _widget); 608 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] ExportItemBox_SetIndexSelected(IntPtr _widget, uint _value)609 private static extern void ExportItemBox_SetIndexSelected(IntPtr _widget, uint _value); 610 611 public uint IndexSelected 612 { 613 get { return ExportItemBox_GetIndexSelected(Native); } 614 set { ExportItemBox_SetIndexSelected(Native, value); } 615 } 616 617 #endregion 618 #region Property ItemCount 619 620 [DllImport(DllName.m_dllName, CallingConvention = CallingConvention.Cdecl)] 621 ExportItemBox_GetItemCount(IntPtr _native)622 private static extern uint ExportItemBox_GetItemCount(IntPtr _native); 623 624 public uint ItemCount 625 { 626 get { return ExportItemBox_GetItemCount(Native); } 627 } 628 629 #endregion 630 631 } 632 } 633