private void nativeEvent(IntPtr widget) { if (boundEvent != null) { boundEvent.Invoke(WidgetManager.getWidget(widget)); } }
public void Dispose() { Disposing = true; InputManager.Instance.Dispose(); PointerManager.Instance.Dispose(); WidgetManager.destroyAllWrappers(); Gui_Delete(gui); }
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))); }
public TabItem addItem(String name) { return((TabItem)WidgetManager.getWidget(TabControl_addItem(widget, name))); }
public Widget getWidget(uint index) { return(WidgetManager.getWidget(VectorWidgetPtr_getRootWidget(vectorWidgetPtr, new UIntPtr(index)))); }
/// <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))); }
public Widget findWidgetT(String name, String prefix) { return(WidgetManager.getWidget(Gui_findWidgetT2(gui, name, prefix))); }
public Widget findWidgetT(String name) { return(WidgetManager.getWidget(Gui_findWidgetT(gui, name))); }
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)))); }
public Widget getChildAt(uint index) { return(WidgetManager.getWidget(Widget_getChildAt(widget, new UIntPtr(index)))); }
public MenuItem getMenuItemParent() { return((MenuItem)WidgetManager.getWidget(MenuControl_getMenuItemParent(widget))); }
/// <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))); }
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))); }
public Widget getWidgetFromPoint(int left, int top) { return(WidgetManager.getWidget(LayerManager_getWidgetFromPoint(layerManager, left, top))); }
public Widget getKeyFocusWidget() { return(WidgetManager.getWidget(InputManager_getKeyFocusWidget(inputManager))); }