public static bool Button(ButtonMode mode, string content) { return(mode switch { ButtonMode.Label => NuklearUI.ButtonLabel(content), ButtonMode.Text => NuklearUI.ButtonLabel(content), _ => throw new NotSupportedException("Unsupported button mode.") });
public static bool Group(string name, PanelFlags flags, Action render) { return(NuklearUI.Group( name, (nk_panel_flags)flags, render )); }
public static bool Window(string title, Vector2 position, Size size, PanelFlags flags, Action render) { return(NuklearUI.Window( title, position.X, position.Y, size.Width, size.Height, (nk_panel_flags)flags, render )); }
public static RectangleF GetWindowBounds() => NuklearUI.WindowGetBounds();
public static bool IsWindowCollapsed(string name) => NuklearUI.WindowIsCollapsed(name);
public static bool IsWindowHidden(string name) => NuklearUI.WindowIsHidden(name);
public static void DynamicRowLayout(float height = 0, int columns = 1) => NuklearUI.LayoutRowDynamic(height, columns);
public static void StaticRowLayout(float height, int childWidth, int columns) => NuklearUI.LayoutRowStatic(height, childWidth, columns);