Struct webkitten::Engine
[−]
[src]
pub struct Engine { pub config: Config, // some fields omitted }
The core of a webkitten application. The engine handles configuration options and responding to lifecycle and user events from the UI.
Fields
config: Config
Methods
impl Engine
[src]
fn new(runtime: RunConfiguration) -> Option<Self>
Create a new application engine
fn initial_pages<'a>(&'a self) -> &'a Vec<String>
Any arguments specified at launch to be opened
fn reload(&mut self) -> bool
Reload configuration from path
Trait Implementations
impl EventHandler for Engine
[src]
fn on_new_frame_request<T, S>(&self, ui: &T, window_index: u32, uri: &str) where
T: ApplicationUI<S>,
S: ScriptingEngine,
T: ApplicationUI<S>,
S: ScriptingEngine,
Handle a request to open a URI in a new frame
fn execute_command<T, S>(&self, ui: &T, window_index: Option<u32>, text: &str) where
T: ApplicationUI<S>,
S: ScriptingEngine,
T: ApplicationUI<S>,
S: ScriptingEngine,
Handle a Return key press within the command bar
fn close<T, S>(&self, _ui: &T) where
T: ApplicationUI<S>,
S: ScriptingEngine,
T: ApplicationUI<S>,
S: ScriptingEngine,
Close the application
fn command_completions<T, S>(&self, ui: &T, prefix: &str) -> Vec<String> where
T: ApplicationUI<S>,
S: ScriptingEngine,
T: ApplicationUI<S>,
S: ScriptingEngine,
Get available commands and/or arguments given a prefix
fn on_buffer_event<T, S>(
&self,
ui: &T,
window_index: u32,
webview_index: u32,
uri: Option<&str>,
event: BufferEvent
) where
T: ApplicationUI<S>,
S: ScriptingEngine,
&self,
ui: &T,
window_index: u32,
webview_index: u32,
uri: Option<&str>,
event: BufferEvent
) where
T: ApplicationUI<S>,
S: ScriptingEngine,
Handle a buffer event Read more