@@ -3890,7 +3890,45 @@ pub const tabItemButton = zguiTabItemButton;
38903890// Viewport
38913891//
38923892//--------------------------------------------------------------------------------------------------
3893- pub const Viewport = * opaque {
3893+ pub const ViewportFlags = packed struct (c_int ) {
3894+ none : bool = false ,
3895+ is_platform_window : bool = false ,
3896+ is_platform_monitor : bool = false ,
3897+ owned_by_app : bool = false ,
3898+ no_decoration : bool = false ,
3899+ no_task_bar_icon : bool = false ,
3900+ no_focus_on_appearing : bool = false ,
3901+ no_focus_on_click : bool = false ,
3902+ no_inputs : bool = false ,
3903+ no_renderer_clear : bool = false ,
3904+ no_auto_merge : bool = false ,
3905+ top_most : bool = false ,
3906+ can_host_other_windows : bool = false ,
3907+ is_minimized : bool = false ,
3908+ is_focused : bool = false ,
3909+ _ : u17 = 0 ,
3910+ };
3911+
3912+ pub const Viewport = extern struct {
3913+ id : Ident ,
3914+ flags : ViewportFlags ,
3915+ pos : [2 ]f32 ,
3916+ size : [2 ]f32 ,
3917+ framebuffer_scale : [2 ]f32 ,
3918+ work_pos : [2 ]f32 ,
3919+ work_size : [2 ]f32 ,
3920+ dpi_scale : f32 ,
3921+ parent_viewport_id : Ident ,
3922+ draw_data : * DrawData ,
3923+ renderer_user_data : * anyopaque ,
3924+ platform_user_data : * anyopaque ,
3925+ platform_handle : * anyopaque ,
3926+ platform_handle_raw : * anyopaque ,
3927+ platform_window_created : bool ,
3928+ platform_request_move : bool ,
3929+ platform_request_resize : bool ,
3930+ platform_request_close : bool ,
3931+
38943932 pub fn getId (viewport : Viewport ) Ident {
38953933 return zguiViewport_GetId (viewport );
38963934 }
0 commit comments