Exemplo n.º 1
0
 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.")
     });
Exemplo n.º 2
0
 public static bool Group(string name, PanelFlags flags, Action render)
 {
     return(NuklearUI.Group(
                name,
                (nk_panel_flags)flags,
                render
                ));
 }
Exemplo n.º 3
0
 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
                ));
 }
Exemplo n.º 4
0
 public static RectangleF GetWindowBounds()
 => NuklearUI.WindowGetBounds();
Exemplo n.º 5
0
 public static bool IsWindowCollapsed(string name)
 => NuklearUI.WindowIsCollapsed(name);
Exemplo n.º 6
0
 public static bool IsWindowHidden(string name)
 => NuklearUI.WindowIsHidden(name);
Exemplo n.º 7
0
 public static void DynamicRowLayout(float height = 0, int columns = 1)
 => NuklearUI.LayoutRowDynamic(height, columns);
Exemplo n.º 8
0
 public static void StaticRowLayout(float height, int childWidth, int columns)
 => NuklearUI.LayoutRowStatic(height, childWidth, columns);