class Webview::WindowManager

Overview

Multi-window manager for handling multiple webview instances

Defined in:

window_manager.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.with_manager(&) #

RAII-style resource management for multiple windows


[View source]

Instance Method Detail

def count #

Get window count


[View source]
def create_window(width : Int32, height : Int32, hint : SizeHints, title : String, url : String, debug = false) #

Create a new window with URL


[View source]
def create_window(width : Int32, height : Int32, hint : SizeHints, title : String, debug = false) #

Create a new window and add it to the manager


[View source]
def destroy_all #

Destroy all windows and clean up


[View source]
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)


[View source]
def run_sequential #

Run all windows sequentially (one at a time)


[View source]
def terminate_all #

Terminate all windows


[View source]
def windows : Array(Webview::Webview) #

Get all managed windows


[View source]