1- from typing import List , NewType
1+ from typing import List , NewType , Tuple
22from pilotlight .types import *
33from pilotlight .enums import *
44
@@ -80,33 +80,12 @@ def ImGui_StyleColorsLight():
8080def ImGui_StyleColorsClassic ():
8181 ...
8282
83- def ImGui_Begin (name , bool_pointer : plBoolPointer = None , flags : ImGuiWindowFlags = 0 ) -> None :
83+ def ImGui_Begin (name : str , bool_pointer : plBoolPointer = None , flags : ImGuiWindowFlags = 0 ) -> bool :
8484 ...
8585
8686def ImGui_End ():
8787 ...
8888
89- def ImGui_BeginMenuBar ():
90- ...
91-
92- def ImGui_BeginMainMenuBar ():
93- ...
94-
95- def ImGui_EndMenuBar ():
96- ...
97-
98- def ImGui_EndMainMenuBar ():
99- ...
100-
101- def ImGui_BeginMenu (label , enabled = True ):
102- ...
103-
104- def ImGui_EndMenu ():
105- ...
106-
107- def ImGui_MenuItem (label , shortcut = "" , selected = False , enabled = True , selected_pointer : plBoolPointer = None ):
108- ...
109-
11089########################################################################################################################
11190# [SECTION] imgui window utilities
11291########################################################################################################################
@@ -126,10 +105,10 @@ def ImGui_IsWindowHovered(flags: ImGuiHoveredFlags = 0) -> bool:
126105def ImGui_GetWindowDpiScale () -> float :
127106 ...
128107
129- def ImGui_GetWindowPos () -> tuple [float , float ]:
108+ def ImGui_GetWindowPos () -> Tuple [float , float ]:
130109 ...
131110
132- def ImGui_GetWindowSize () -> tuple [float , float ]:
111+ def ImGui_GetWindowSize () -> Tuple [float , float ]:
133112 ...
134113
135114def ImGui_GetWindowWidth () -> float :
@@ -178,6 +157,41 @@ def ImGui_SetWindowCollapsed(collapsed: bool, cond: ImGuiCond = 0, name: str = N
178157def ImGui_SetWindowFocus (name : str = None ) -> None :
179158 ...
180159
160+ ########################################################################################################################
161+ # [SECTION] imgui menu stuff
162+ ########################################################################################################################
163+
164+ def ImGui_BeginMenuBar () -> bool :
165+ ...
166+
167+ def ImGui_BeginMainMenuBar () -> bool :
168+ ...
169+
170+ def ImGui_EndMenuBar () -> None :
171+ ...
172+
173+ def ImGui_EndMainMenuBar () -> None :
174+ ...
175+
176+ def ImGui_BeginMenu (label :str , enabled :bool = True ) -> bool :
177+ ...
178+
179+ def ImGui_EndMenu () -> None :
180+ ...
181+
182+ def ImGui_MenuItem (label :str , shortcut :str = "" , selected :bool = False , enabled :bool = True , selected_pointer : plBoolPointer = None ) -> Tuple [bool , bool ]:
183+ ...
184+
185+ ########################################################################################################################
186+ # [SECTION] imgui child windows
187+ ########################################################################################################################
188+
189+ def ImGui_BeginChild (str_id : str , size :List [int , int ]= None , child_flags : ImGuiChildFlags = 0 , window_flags : ImGuiWindowFlags = 0 ) -> bool :
190+ ...
191+
192+ def ImGui_EndChild () -> None :
193+ ...
194+
181195########################################################################################################################
182196# [SECTION] imgui input utilities mouse
183197########################################################################################################################
@@ -206,16 +220,16 @@ def ImGui_IsMousePosValid(mouse_pos=None) -> bool:
206220def ImGui_IsAnyMouseDown () -> bool :
207221 ...
208222
209- def ImGui_GetMousePos () -> tuple [float , float ]:
223+ def ImGui_GetMousePos () -> Tuple [float , float ]:
210224 ...
211225
212- def ImGui_GetMousePosOnOpeningCurrentPopup () -> tuple [float , float ]:
226+ def ImGui_GetMousePosOnOpeningCurrentPopup () -> Tuple [float , float ]:
213227 ...
214228
215229def ImGui_IsMouseDragging (button : ImGuiMouseButton , lock_threshold : float = - 1.0 ) -> bool :
216230 ...
217231
218- def ImGui_GetMouseDragDelta (button : ImGuiMouseButton = 0 , lock_threshold : float = - 1.0 ) -> tuple [float , float ]:
232+ def ImGui_GetMouseDragDelta (button : ImGuiMouseButton = 0 , lock_threshold : float = - 1.0 ) -> Tuple [float , float ]:
219233 ...
220234
221235def ImGui_ResetMouseDragDelta (button : ImGuiMouseButton = 0 ) -> None :
@@ -257,16 +271,6 @@ def ImGui_SaveIniSettingsToDisk(ini_filename: str) -> None:
257271def ImGui_SaveIniSettingsToMemory () -> str | None :
258272 ...
259273
260- ########################################################################################################################
261- # [SECTION] imgui child windows
262- ########################################################################################################################
263-
264- def ImGui_BeginChild (str_id : str , size = None , child_flags : ImGuiChildFlags = 0 , window_flags : ImGuiWindowFlags = 0 ) -> bool :
265- ...
266-
267- def ImGui_EndChild () -> None :
268- ...
269-
270274########################################################################################################################
271275# [SECTION] imgui id stack/scopes
272276########################################################################################################################
@@ -284,10 +288,10 @@ def ImGui_GetID(id: str | int) -> int:
284288# [SECTION] imgui main widgets
285289########################################################################################################################
286290
287- def ImGui_Button (label , size = None ):
291+ def ImGui_Button (label : str , size = None ):
288292 ...
289293
290- def ImGui_Checkbox (label , bool_pointer : plBoolPointer ):
294+ def ImGui_Checkbox (label : str , bool_pointer : plBoolPointer ):
291295 ...
292296
293297def ImGui_SmallButton (label : str ) -> bool :
@@ -327,6 +331,9 @@ def ImGui_BeginCombo(label: str, preview_value: str, flags: ImGuiComboFlags = 0)
327331def ImGui_EndCombo () -> None :
328332 ...
329333
334+ def ImGui_Combo (label : str , current_item : plIntPointer , items : List [str ], popup_max_height_in_items : int = - 1 ) -> bool :
335+ ...
336+
330337########################################################################################################################
331338# [SECTION] imgui list boxes
332339########################################################################################################################
@@ -552,16 +559,16 @@ def ImGui_GetFrameHeightWithSpacing() -> float:
552559# [SECTION] imgui layout cursor positioning
553560########################################################################################################################
554561
555- def ImGui_GetCursorScreenPos () -> tuple [float , float ]:
562+ def ImGui_GetCursorScreenPos () -> Tuple [float , float ]:
556563 ...
557564
558565def ImGui_SetCursorScreenPos (pos ) -> None :
559566 ...
560567
561- def ImGui_GetContentRegionAvail () -> tuple [float , float ]:
568+ def ImGui_GetContentRegionAvail () -> Tuple [float , float ]:
562569 ...
563570
564- def ImGui_GetCursorPos () -> tuple [float , float ]:
571+ def ImGui_GetCursorPos () -> Tuple [float , float ]:
565572 ...
566573
567574def ImGui_GetCursorPosX () -> float :
@@ -579,7 +586,7 @@ def ImGui_SetCursorPosX(local_x: float) -> None:
579586def ImGui_SetCursorPosY (local_y : float ) -> None :
580587 ...
581588
582- def ImGui_GetCursorStartPos () -> tuple [float , float ]:
589+ def ImGui_GetCursorStartPos () -> Tuple [float , float ]:
583590 ...
584591
585592########################################################################################################################
@@ -793,13 +800,13 @@ def ImGui_IsAnyItemFocused() -> bool:
793800def ImGui_GetItemID () -> int :
794801 ...
795802
796- def ImGui_GetItemRectMin () -> tuple [float , float ]:
803+ def ImGui_GetItemRectMin () -> Tuple [float , float ]:
797804 ...
798805
799- def ImGui_GetItemRectMax () -> tuple [float , float ]:
806+ def ImGui_GetItemRectMax () -> Tuple [float , float ]:
800807 ...
801808
802- def ImGui_GetItemRectSize () -> tuple [float , float ]:
809+ def ImGui_GetItemRectSize () -> Tuple [float , float ]:
803810 ...
804811
805812def ImGui_SetItemAllowOverlap () -> None :
0 commit comments