Make secretViewActive in guiTextInputBox optional (#205)

This commit is contained in:
Nikolas 2025-03-06 15:23:34 +01:00
parent 1a9b848c06
commit e18e2db5e5
Failed to generate hash of commit
2 changed files with 2 additions and 1 deletions

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))));
}