@@ -193,37 +193,63 @@ extern "user32" fn DestroyIcon(win.HICON) callconv(.winapi) win.BOOL;
193193extern "gdi32" fn CreateRoundRectRgn (i32 , i32 , i32 , i32 , i32 , i32 ) callconv (.winapi ) ? * anyopaque ;
194194extern "gdi32" fn DeleteObject (? * anyopaque ) callconv (.winapi ) win .BOOL ;
195195
196+ /// Owns platform-native host state and thread-affine resources.
196197pub const Host = struct {
198+ /// Allocates host-owned buffers and runtime state.
197199 allocator : std.mem.Allocator ,
200+ /// Stores the current native window title.
198201 title : []u8 ,
202+ /// Stores the last applied window style.
199203 style : WindowStyle ,
200204
205+ /// Stores the mutex.
201206 mutex : thread_compat.Mutex = .{},
207+ /// Stores the queue.
202208 queue : std .array_list .Managed (Command ),
209+ /// Stores the owner thread id.
203210 owner_thread_id : std.Thread.Id = undefined ,
204211
212+ /// Stores the startup done.
205213 startup_done : bool = false ,
214+ /// Stores the startup error.
206215 startup_error : ? anyerror = null ,
216+ /// Stores the ui ready.
207217 ui_ready : bool = false ,
218+ /// Stores the closed.
208219 closed : std .atomic .Value (bool ) = std .atomic .Value (bool ).init (false ),
220+ /// Stores the shutdown requested.
209221 shutdown_requested : bool = false ,
222+ /// Stores the pending async callbacks.
210223 pending_async_callbacks : usize = 0 ,
211224
225+ /// Stores the instance.
212226 instance : ? win.HINSTANCE = null ,
227+ /// Stores the class registered.
213228 class_registered : bool = false ,
229+ /// Stores the hwnd.
214230 hwnd : ? win.HWND = null ,
231+ /// Stores the window icon.
215232 window_icon : ? win.HICON = null ,
233+ /// Stores the window destroy started.
216234 window_destroy_started : bool = false ,
217235
236+ /// Stores the symbols.
218237 symbols : ? wv2.Symbols = null ,
238+ /// Stores the com initialized.
219239 com_initialized : bool = false ,
220240
241+ /// Stores the environment.
221242 environment : ? * wv2.ICoreWebView2Environment = null ,
243+ /// Stores the controller.
222244 controller : ? * wv2.ICoreWebView2Controller = null ,
245+ /// Stores the webview.
223246 webview : ? * wv2.ICoreWebView2 = null ,
247+ /// Stores the title changed token.
224248 title_changed_token : wv2.EventRegistrationToken = .{ .value = 0 },
249+ /// Stores the title handler attached.
225250 title_handler_attached : bool = false ,
226251
252+ /// Stores the pending url.
227253 pending_url : ? []u8 = null ,
228254
229255 /// Start.
0 commit comments