class
Webview::WindowManager
- Webview::WindowManager
- Reference
- Object
Overview
Multi-window manager for handling multiple webview instances
Defined in:
window_manager.crClass Method Summary
-
.with_manager(&)
RAII-style resource management for multiple windows
Instance Method Summary
-
#count
Get window count
-
#create_window(width : Int32, height : Int32, hint : SizeHints, title : String, url : String, debug = false)
Create a new window with URL
-
#create_window(width : Int32, height : Int32, hint : SizeHints, title : String, debug = false)
Create a new window and add it to the manager
-
#destroy_all
Destroy all windows and clean up
-
#run_all
Run all windows in separate fibers Note: This spawns fibers but returns immediately.
-
#run_sequential
Run all windows sequentially (one at a time)
-
#terminate_all
Terminate all windows
-
#windows : Array(Webview::Webview)
Get all managed windows
Class Method Detail
Instance Method Detail
def create_window(width : Int32, height : Int32, hint : SizeHints, title : String, url : String, debug = false)
#
Create a new window with URL
Create a new window and add it to the manager
def run_all
#
Run all windows in separate fibers Note: This spawns fibers but returns immediately. The caller needs to keep the main thread alive (e.g., with sleep or another blocking call)