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