Replace #by_ptr ... with Maybe(^...) where SDL API allows nil pointers

This commit is contained in:
sndb
2025-02-26 09:54:39 +03:00
parent cae91c9472
commit 5fc1984fd4
3 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ foreign lib {
TextInputActive :: proc(window: ^Window) -> bool ---
StopTextInput :: proc(window: ^Window) -> bool ---
ClearComposition :: proc(window: ^Window) -> bool ---
SetTextInputArea :: proc(window: ^Window, #by_ptr rect: Rect, cursor: c.int) -> bool ---
SetTextInputArea :: proc(window: ^Window, rect: Maybe(^Rect), cursor: c.int) -> bool ---
GetTextInputArea :: proc(window: ^Window, rect: ^Rect, cursor: ^c.int) -> bool ---
HasScreenKeyboardSupport :: proc() -> bool ---
ScreenKeyboardShown :: proc(window: ^Window) -> bool ---