class
Lune::Options
- Lune::Options
- Reference
- Object
Overview
Configuration passed to Lune.run via its block parameter.
Lune.run(app) do |o|
o.title = "My App"
o.width = 1280
o.height = 720
o.on_load = -> { puts "ready" }
end
Defined in:
lune/options.crConstructors
Instance Method Summary
- #apply(window : Config::Window)
-
#debug : Bool
Enable webview debug/inspector tools.
-
#debug=(debug : Bool)
Enable webview debug/inspector tools.
-
#height : Int32
Initial window height in logical pixels.
-
#height=(height : Int32)
Initial window height in logical pixels.
-
#hint : Webview::SizeHints
Size constraint mode (NONE, MIN, MAX, FIXED).
-
#hint=(hint : Webview::SizeHints)
Size constraint mode (NONE, MIN, MAX, FIXED).
-
#max_height : Int32 | Nil
Maximum window height in logical pixels.
-
#max_height=(max_height : Int32 | Nil)
Maximum window height in logical pixels.
-
#max_width : Int32 | Nil
Maximum window width in logical pixels.
-
#max_width=(max_width : Int32 | Nil)
Maximum window width in logical pixels.
-
#min_height : Int32 | Nil
Minimum window height in logical pixels.
-
#min_height=(min_height : Int32 | Nil)
Minimum window height in logical pixels.
-
#min_width : Int32 | Nil
Minimum window width in logical pixels.
-
#min_width=(min_width : Int32 | Nil)
Minimum window width in logical pixels.
-
#on_close : -> Nil | Nil
Called once after the webview window closes and the run loop exits.
-
#on_close=(on_close : -> Nil | Nil)
Called once after the webview window closes and the run loop exits.
-
#on_load : -> Nil | Nil
Called once when the page's
loadevent fires (i.e. -
#on_load=(on_load : -> Nil | Nil)
Called once when the page's
loadevent fires (i.e. -
#on_navigate : String -> Nil | Nil
Called on every client-side navigation with the new URL as argument.
-
#on_navigate=(on_navigate : String -> Nil | Nil)
Called on every client-side navigation with the new URL as argument.
-
#resizable : Bool
When false the window cannot be resized by the user (forces
#hintto FIXED). -
#resizable=(resizable : Bool)
When false the window cannot be resized by the user (forces
#hintto FIXED). -
#title : String
Window title bar text.
-
#title=(title : String)
Window title bar text.
-
#width : Int32
Initial window width in logical pixels.
-
#width=(width : Int32)
Initial window width in logical pixels.
Constructor Detail
Instance Method Detail
Size constraint mode (NONE, MIN, MAX, FIXED). Ignored when #resizable is false — the hint is forced to FIXED.
Size constraint mode (NONE, MIN, MAX, FIXED). Ignored when #resizable is false — the hint is forced to FIXED.
Maximum window height in logical pixels. Applied in addition to #hint.
Maximum window height in logical pixels. Applied in addition to #hint.
Maximum window width in logical pixels. Applied in addition to #hint.
Minimum window height in logical pixels. Applied in addition to #hint.
Minimum window height in logical pixels. Applied in addition to #hint.
Minimum window width in logical pixels. Applied in addition to #hint.
Called once after the webview window closes and the run loop exits.
Called once when the page's load event fires (i.e. the DOM is ready).