@@ -3890,7 +3890,44 @@ 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+ };
3910+
3911+ pub const Viewport = extern struct {
3912+ id : Ident ,
3913+ flags : ViewportFlags ,
3914+ pos : [2 ]f32 ,
3915+ size : [2 ]f32 ,
3916+ framebuffer_scale : [2 ]f32 ,
3917+ work_pos : [2 ]f32 ,
3918+ work_size : [2 ]f32 ,
3919+ dpi_scale : f32 ,
3920+ parent_viewport_id : Ident ,
3921+ draw_data : * DrawData ,
3922+ renderer_user_data : * anyopaque ,
3923+ platform_user_data : * anyopaque ,
3924+ platform_handle : * anyopaque ,
3925+ platform_handle_raw : * anyopaque ,
3926+ platform_window_created : bool ,
3927+ platform_request_move : bool ,
3928+ platform_request_resize : bool ,
3929+ platform_request_close : bool ,
3930+
38943931 pub fn getId (viewport : Viewport ) Ident {
38953932 return zguiViewport_GetId (viewport );
38963933 }
0 commit comments