Skip to content

Commit 1440f2e

Browse files
committed
update bindings
Signed-off-by: Tomas Slusny <[email protected]>
1 parent 34919f4 commit 1440f2e

File tree

12 files changed

+198
-46
lines changed

12 files changed

+198
-46
lines changed

src/Raylib.NET.Test/RayguiTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public void CheckTypes()
2929
CheckType<GuiComboBoxProperty>();
3030
CheckType<GuiDropdownBoxProperty>();
3131
CheckType<GuiTextBoxProperty>();
32-
CheckType<GuiSpinnerProperty>();
32+
CheckType<GuiValueBoxProperty>();
3333
CheckType<GuiListViewProperty>();
3434
CheckType<GuiColorPickerProperty>();
3535
CheckType<GuiIconName>();

src/Raylib.NET/Enums/GlVersion.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ namespace RaylibNET;
33

44
public enum GlVersion
55
{
6+
/// <summary>
7+
/// Software rendering
8+
/// </summary>
9+
RL_OPENGL_11_SOFTWARE = 0,
610
/// <summary>
711
/// OpenGL 1.1
812
/// </summary>
9-
RL_OPENGL_11 = 1,
13+
RL_OPENGL_11,
1014
/// <summary>
1115
/// OpenGL 2.1 (GLSL 120)
1216
/// </summary>

src/Raylib.NET/Enums/GuiControl.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ public enum GuiControl
2929
/// </summary>
3030
TEXTBOX,
3131
VALUEBOX,
32-
/// <summary>
33-
/// Uses: BUTTON, VALUEBOX
34-
/// </summary>
35-
SPINNER,
32+
CONTROL11,
3633
LISTVIEW,
3734
COLORPICKER,
3835
SCROLLBAR,

src/Raylib.NET/Enums/GuiControlProperty.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ public enum GuiControlProperty
5454
/// <summary>
5555
/// Control border size, 0 for no border
5656
/// </summary>
57-
BORDER_WIDTH,
57+
BORDER_WIDTH = 12,
5858
/// <summary>
5959
/// Control text padding, not considering border
6060
/// </summary>
61-
TEXT_PADDING,
61+
TEXT_PADDING = 13,
6262
/// <summary>
6363
/// Control text horizontal alignment inside control text bound (after border and padding)
6464
/// </summary>
65-
TEXT_ALIGNMENT,
65+
TEXT_ALIGNMENT = 14,
6666
}

src/Raylib.NET/Enums/GuiIconName.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,11 +232,11 @@ public enum GuiIconName
232232
ICON_MLAYERS = 226,
233233
ICON_MAPS = 227,
234234
ICON_HOT = 228,
235-
ICON_229 = 229,
236-
ICON_230 = 230,
237-
ICON_231 = 231,
238-
ICON_232 = 232,
239-
ICON_233 = 233,
235+
ICON_LABEL = 229,
236+
ICON_NAME_ID = 230,
237+
ICON_SLICING = 231,
238+
ICON_MANUAL_CONTROL = 232,
239+
ICON_COLLISION = 233,
240240
ICON_234 = 234,
241241
ICON_235 = 235,
242242
ICON_236 = 236,

src/Raylib.NET/Enums/GuiListViewProperty.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ public enum GuiListViewProperty
2020
/// </summary>
2121
SCROLLBAR_SIDE,
2222
/// <summary>
23+
/// ListView items border enabled in normal state
24+
/// </summary>
25+
LIST_ITEMS_BORDER_NORMAL,
26+
/// <summary>
2327
/// ListView items border width
2428
/// </summary>
2529
LIST_ITEMS_BORDER_WIDTH,
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// This file was generated by Bindgen, do not edit it manually.
2+
namespace RaylibNET;
3+
4+
public enum GuiValueBoxProperty
5+
{
6+
/// <summary>
7+
/// Spinner left/right buttons width
8+
/// </summary>
9+
SPINNER_BUTTON_WIDTH = 16,
10+
/// <summary>
11+
/// Spinner buttons separation
12+
/// </summary>
13+
SPINNER_BUTTON_SPACING,
14+
}

src/Raylib.NET/Raygui.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static unsafe partial class Raygui
1616

1717
public const int RAYGUI_VERSION_PATCH = 0;
1818

19-
public const string RAYGUI_VERSION = "4.5-dev";
19+
public const string RAYGUI_VERSION = "5.0-dev";
2020

2121
public const int SCROLLBAR_LEFT_SIDE = 0;
2222

@@ -176,6 +176,13 @@ public static unsafe partial class Raygui
176176
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
177177
public static partial void GuiDrawIcon(int iconId, int posX, int posY, int pixelSize, Color color);
178178

179+
/// <summary>
180+
/// Get text width considering gui style and icon size (if required)
181+
/// </summary>
182+
[LibraryImport(LIBRARY, StringMarshalling = StringMarshalling.Utf8)]
183+
[UnmanagedCallConv(CallConvs = [typeof(CallConvCdecl)])]
184+
public static partial int GuiGetTextWidth(string text);
185+
179186
/// <summary>
180187
/// Window Box control, shows a window that can be closed
181188
/// </summary>

0 commit comments

Comments
 (0)