mirror of
https://github.com/Not-Nik/raylib-zig.git
synced 2025-09-08 19:47:28 +00:00
Make secretViewActive in guiTextInputBox optional (#205)
This commit is contained in:
parent
1a9b848c06
commit
e18e2db5e5
@ -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)
|
||||
|
@ -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))));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user