private void nativeEvent(IntPtr widget)
 {
     if (boundEvent != null)
     {
         boundEvent.Invoke(WidgetManager.getWidget(widget));
     }
 }
Exemple #2
0
 public void Dispose()
 {
     Disposing = true;
     InputManager.Instance.Dispose();
     PointerManager.Instance.Dispose();
     WidgetManager.destroyAllWrappers();
     Gui_Delete(gui);
 }
Exemple #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);
 }
 public MenuItem addItem(String name, MenuItemType type, String id)
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_addItem3(widget, name, type, id)));
 }
 public MenuItem insertItem(MenuItem to, String name, MenuItemType type, String id)
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_insertItem3(widget, to.WidgetPtr, name, type, id)));
 }
 public MenuItem insertItemAt(uint index, String name, MenuItemType type, String id)
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_insertItemAt3(widget, new UIntPtr(index), name, type, id)));
 }
 public MenuItem insertItemAt(uint index, String name)
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_insertItemAt(widget, new UIntPtr(index), name)));
 }
 public PopupMenu createItemPopupMenuChild(MenuItem item)
 {
     return((PopupMenu)WidgetManager.getWidget(MenuControl_createItemPopupMenuChild(widget, item.WidgetPtr)));
 }
Exemple #10
0
 public TabItem addItem(String name)
 {
     return((TabItem)WidgetManager.getWidget(TabControl_addItem(widget, name)));
 }
Exemple #11
0
 public Widget getWidget(uint index)
 {
     return(WidgetManager.getWidget(VectorWidgetPtr_getRootWidget(vectorWidgetPtr, new UIntPtr(index))));
 }
Exemple #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)));
 }
Exemple #13
0
 public Widget findWidgetT(String name, String prefix)
 {
     return(WidgetManager.getWidget(Gui_findWidgetT2(gui, name, prefix)));
 }
Exemple #14
0
 public Widget findWidgetT(String name)
 {
     return(WidgetManager.getWidget(Gui_findWidgetT(gui, name)));
 }
Exemple #15
0
 public MenuControl getItemChild()
 {
     return((MenuControl)WidgetManager.getWidget(MenuItem_getItemChild(widget)));
 }
 public MenuControl createItemChildAt(uint index)
 {
     return((MenuControl)WidgetManager.getWidget(MenuControl_createItemChildAt(widget, new UIntPtr(index))));
 }
 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);
 }
 public PopupMenu createItemPopupMenuChild(uint index)
 {
     return((PopupMenu)WidgetManager.getWidget(MenuControl_createItemPopupMenuChildAt(widget, new UIntPtr(index))));
 }
Exemple #20
0
 public Widget getChildAt(uint index)
 {
     return(WidgetManager.getWidget(Widget_getChildAt(widget, new UIntPtr(index))));
 }
 public MenuItem getMenuItemParent()
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_getMenuItemParent(widget)));
 }
Exemple #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)));
 }
 public MenuItem insertItem(MenuItem to, String name)
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_insertItem(widget, to.WidgetPtr, name)));
 }
Exemple #24
0
 public Widget findWidgetChildSkin(String name)
 {
     return(WidgetManager.getWidget(Widget_findWidgetChildSkin(widget, name)));
 }
 public MenuItem addItem(String name)
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_addItem(widget, name)));
 }
 public MenuItem getItemAt(uint index)
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_getItemAt(widget, new UIntPtr(index))));
 }
 public MenuItem findItemWith(String name)
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_findItemWith(widget, name)));
 }
 public MenuItem getItemById(String id)
 {
     return((MenuItem)WidgetManager.getWidget(MenuControl_getItemById(widget, id)));
 }
Exemple #29
0
 public Widget getWidgetFromPoint(int left, int top)
 {
     return(WidgetManager.getWidget(LayerManager_getWidgetFromPoint(layerManager, left, top)));
 }
Exemple #30
0
 public Widget getKeyFocusWidget()
 {
     return(WidgetManager.getWidget(InputManager_getKeyFocusWidget(inputManager)));
 }