Make secretViewActive in guiTextInputBox optional (#205)

This commit is contained in:
Nikolas 2025-03-06 15:23:34 +01:00
parent 1a9b848c06
commit e18e2db5e5
No known key found for this signature in database
GPG Key ID: E95F679E3CDD9784
2 changed files with 2 additions and 1 deletions

View File

@ -300,6 +300,7 @@ def parse_header(header_name: str, output_file: str, ext_file: str, prefix: str,
("rlLoadShaderBuffer", "data"),
("rlLoadShaderCode", "vsCode"),
("rlLoadShaderCode", "fsCode"),
("GuiTextInputBox", "secretViewActive")
]
zig_type = ziggify_type(arg_name, arg_type, func_name)

View File

@ -710,7 +710,7 @@ pub fn guiMessageBox(bounds: Rectangle, title: [:0]const u8, message: [:0]const
}
/// Text Input Box control, ask for text, supports secret
pub fn guiTextInputBox(bounds: Rectangle, title: [:0]const u8, message: [:0]const u8, buttons: [:0]const u8, text: [:0]u8, textMaxSize: i32, secretViewActive: *bool) i32 {
pub fn guiTextInputBox(bounds: Rectangle, title: [:0]const u8, message: [:0]const u8, buttons: [:0]const u8, text: [:0]u8, textMaxSize: i32, secretViewActive: ?*bool) i32 {
return @as(i32, cdef.GuiTextInputBox(bounds, @as([*c]const u8, @ptrCast(title)), @as([*c]const u8, @ptrCast(message)), @as([*c]const u8, @ptrCast(buttons)), @as([*c]u8, @ptrCast(text)), @as(c_int, textMaxSize), @as([*c]bool, @ptrCast(secretViewActive))));
}