@@ -828,10 +828,10 @@ pub const HoveredFlags = packed struct(c_int) {
828
828
pub const isWindowAppearing = cimgui .igIsWindowAppearing ;
829
829
pub const isWindowCollapsed = cimgui .igIsWindowCollapsed ;
830
830
pub fn isWindowFocused (flags : FocusedFlags ) bool {
831
- return cimgui .igIsWindowFocused (@bitCast (flags ))
831
+ return cimgui .igIsWindowFocused (@bitCast (flags ));
832
832
}
833
833
pub fn isWindowHovered (flags : HoveredFlags ) bool {
834
- return cimgui .igIsWindowHovered (@bitCast (flags ))
834
+ return cimgui .igIsWindowHovered (@bitCast (flags ));
835
835
}
836
836
//--------------------------------------------------------------------------------------------------
837
837
pub fn getWindowPos () Vec2 {
@@ -902,31 +902,32 @@ pub const DockSpaceOverViewport = cimgui.igDockSpaceOverViewport;
902
902
// ListClipper
903
903
//
904
904
//--------------------------------------------------------------------------------------------------
905
+
905
906
pub const ListClipper = extern struct {
906
- Ctx : * Context ,
907
- DisplayStart : c_int ,
908
- DisplayEnd : c_int ,
909
- ItemsCount : c_int ,
910
- ItemsHeight : f32 ,
911
- StartPosY : f32 ,
912
- TempData : * anyopaque ,
913
-
914
- pub const init = zguiListClipper_Init ;
915
- extern fn zguiListClipper_Init () ListClipper ;
916
-
917
- pub fn begin (self : * ListClipper , items_count : ? i32 , items_height : ? f32 ) void {
918
- zguiListClipper_Begin (self , items_count orelse std .math .maxInt (i32 ), items_height orelse -1.0 );
907
+ Base : cimgui.ImGuiListClipper ,
908
+
909
+ pub fn init () ListClipper {
910
+ return .{
911
+ .Base = cimgui .ImGuiListClipper_ImGuiListClipper ()
912
+ };
913
+ }
914
+
915
+ pub fn begin (self : * ListClipper , items_count : ? i32 , items_height : ? f32 ) void {
916
+ cimgui .ImGuiListClipper_Begin (self .Base , items_count orelse std .math .maxInt (i32 ), items_height orelse -1 );
919
917
}
920
- extern fn zguiListClipper_Begin (self : * ListClipper , items_count : i32 , items_height : f32 ) void ;
921
918
922
- pub const end = zguiListClipper_End ;
923
- extern fn zguiListClipper_End (self : * ListClipper ) void ;
919
+ pub fn end (self : * ListClipper ) void {
920
+ cimgui .ImGuiListClipper_End (self .Base );
921
+ }
924
922
925
- pub const includeItemsByIndex = zguiListClipper_IncludeItemsByIndex ;
926
- extern fn zguiListClipper_IncludeItemsByIndex (self : * ListClipper , item_begin : i32 , item_end : i32 ) void ;
923
+ pub fn includeItemsByIndex (self : * ListClipper , item_begin : c_int , item_end : c_int ) void {
924
+ cimgui .ImGuiListClipper_IncludeItemsByIndex (self .Base , item_begin , item_end );
925
+ }
927
926
928
- pub const step = zguiListClipper_Step ;
929
- extern fn zguiListClipper_Step (self : * ListClipper ) bool ;
927
+
928
+ pub fn step (self : * ListClipper ) bool {
929
+ return cimgui .ImGuiListClipper_Step (self .Base );
930
+ }
930
931
};
931
932
932
933
//--------------------------------------------------------------------------------------------------
0 commit comments