private void nativeEvent(IntPtr widget)
 {
     if (boundEvent != null)
     {
         boundEvent.Invoke(WidgetManager.getWidget(widget));
     }
 }
Exemplo n.º 2
0
 public void Dispose()
 {
     Disposing = true;
     InputManager.Instance.Dispose();
     PointerManager.Instance.Dispose();
     WidgetManager.destroyAllWrappers();
     Gui_Delete(gui);
 }
Exemplo n.º 3
0
 public MenuControl getMenuCtrlParent()
 {
     return((MenuControl)WidgetManager.getWidget(MenuItem_getMenuCtrlParent(widget)));
 }
 private void nativeEvent(IntPtr widget, IntPtr item)
 {
     //Fill out the MenuCtrlAcceptEventArgs
     eventArgs.Item = (MenuItem)WidgetManager.getWidget(item);
     fireEvent(eventArgs);
 }
Exemplo n.º 5
0
 public MenuItem addItem(String name, MenuItemType type, String id)
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_addItem3(widget, name, type, id)));
 }
Exemplo n.º 6
0
 public MenuItem insertItem(MenuItem to, String name, MenuItemType type, String id)
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_insertItem3(widget, to.WidgetPtr, name, type, id)));
 }
Exemplo n.º 7
0
 public MenuItem insertItemAt(uint index, String name, MenuItemType type, String id)
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_insertItemAt3(widget, new UIntPtr(index), name, type, id)));
 }
Exemplo n.º 8
0
 public MenuItem insertItemAt(uint index, String name)
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_insertItemAt(widget, new UIntPtr(index), name)));
 }
Exemplo n.º 9
0
 public PopupMenu createItemPopupMenuChild(MenuItem item)
 {
     return((PopupMenu)WidgetManager.getWidget(MenuControl_createItemPopupMenuChild(widget, item.WidgetPtr)));
 }
Exemplo n.º 10
0
 public TabItem addItem(String name)
 {
     return((TabItem)WidgetManager.getWidget(TabControl_addItem(widget, name)));
 }
Exemplo n.º 11
0
 public Widget getWidget(uint index)
 {
     return(WidgetManager.getWidget(VectorWidgetPtr_getRootWidget(vectorWidgetPtr, new UIntPtr(index))));
 }
Exemplo n.º 12
0
 /// <summary>
 /// Create a widget.
 /// </summary>
 /// <param name="type">Widget type.</param>
 /// <param name="skin">Widget skin.</param>
 /// <param name="left">Widget x pos.</param>
 /// <param name="top">Widget y pos.</param>
 /// <param name="width">Width</param>
 /// <param name="height">Height</param>
 /// <param name="align">Widget align.</param>
 /// <param name="layer">Layer where the widget will be created.</param>
 /// <param name="name">The name to find the widget later.</param>
 /// <returns></returns>
 public Widget createWidgetT(String type, String skin, int left, int top, int width, int height, Align align, String layer, String name)
 {
     return(WidgetManager.getWidget(Gui_createWidgetT(gui, type, skin, left, top, width, height, align, layer, name)));
 }
Exemplo n.º 13
0
 public Widget findWidgetT(String name, String prefix)
 {
     return(WidgetManager.getWidget(Gui_findWidgetT2(gui, name, prefix)));
 }
Exemplo n.º 14
0
 public Widget findWidgetT(String name)
 {
     return(WidgetManager.getWidget(Gui_findWidgetT(gui, name)));
 }
Exemplo n.º 15
0
 public MenuControl getItemChild()
 {
     return((MenuControl)WidgetManager.getWidget(MenuItem_getItemChild(widget)));
 }
Exemplo n.º 16
0
 public MenuControl createItemChildAt(uint index)
 {
     return((MenuControl)WidgetManager.getWidget(MenuControl_createItemChildAt(widget, new UIntPtr(index))));
 }
Exemplo n.º 17
0
 public MenuControl createItemChild(MenuItem item)
 {
     return((MenuControl)WidgetManager.getWidget(MenuControl_createItemChild(widget, item.WidgetPtr)));
 }
 private void nativeEvent(IntPtr widget, IntPtr newFocus)
 {
     //Fill out the EventArgs
     eventArgs.OtherWidget = WidgetManager.getWidget(newFocus);
     fireEvent(eventArgs);
 }
Exemplo n.º 19
0
 public PopupMenu createItemPopupMenuChild(uint index)
 {
     return((PopupMenu)WidgetManager.getWidget(MenuControl_createItemPopupMenuChildAt(widget, new UIntPtr(index))));
 }
Exemplo n.º 20
0
 public Widget getChildAt(uint index)
 {
     return(WidgetManager.getWidget(Widget_getChildAt(widget, new UIntPtr(index))));
 }
Exemplo n.º 21
0
 public MenuItem getMenuItemParent()
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_getMenuItemParent(widget)));
 }
Exemplo n.º 22
0
 /// <summary>
 /// Create a widget using coords relative to the parent.
 /// </summary>
 /// <param name="type">Widget type.</param>
 /// <param name="skin">Widget skin.</param>
 /// <param name="left">Widget x pos.</param>
 /// <param name="top">Widget y pos.</param>
 /// <param name="width">Width</param>
 /// <param name="height">Height</param>
 /// <param name="align">Widget align.</param>
 /// <param name="layer">Layer where the widget will be created.</param>
 /// <param name="name">The name to find the widget later.</param>
 /// <returns></returns>
 public Widget createWidgetRealT(String type, String skin, int left, int top, int width, int height, Align align, String name)
 {
     return(WidgetManager.getWidget(Widget_createWidgetRealT(widget, type, skin, left, top, width, height, align, name)));
 }
Exemplo n.º 23
0
 public MenuItem insertItem(MenuItem to, String name)
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_insertItem(widget, to.WidgetPtr, name)));
 }
Exemplo n.º 24
0
 public Widget findWidgetChildSkin(String name)
 {
     return(WidgetManager.getWidget(Widget_findWidgetChildSkin(widget, name)));
 }
Exemplo n.º 25
0
 public MenuItem addItem(String name)
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_addItem(widget, name)));
 }
Exemplo n.º 26
0
 public MenuItem getItemAt(uint index)
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_getItemAt(widget, new UIntPtr(index))));
 }
Exemplo n.º 27
0
 public MenuItem findItemWith(String name)
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_findItemWith(widget, name)));
 }
Exemplo n.º 28
0
 public MenuItem getItemById(String id)
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_getItemById(widget, id)));
 }
Exemplo n.º 29
0
 public Widget getWidgetFromPoint(int left, int top)
 {
     return(WidgetManager.getWidget(LayerManager_getWidgetFromPoint(layerManager, left, top)));
 }
Exemplo n.º 30
0
 public Widget getKeyFocusWidget()
 {
     return(WidgetManager.getWidget(InputManager_getKeyFocusWidget(inputManager)));
 }