Trait webkitten::ui::ApplicationUI [] [src]

pub trait ApplicationUI<S>: Sized where
    S: ScriptingEngine
{ fn new(engine: Engine) -> Option<Self>; fn run(&self); fn copy(&self, text: &str); fn execute_command(&self, window_index: Option<u32>, text: &str); fn focused_window_index(&self) -> Option<u32>; fn window_count(&self) -> u32; fn open_window<U, B>(&self, uri: Option<U>, config: Option<B>) -> u32
    where
        U: Into<String>,
        B: BrowserConfiguration
; fn close_window(&self, index: u32); fn focus_window(&self, index: u32); fn focus_window_area(&self, index: u32, area: WindowArea); fn toggle_window(&self, index: u32, visible: bool); fn resize_window(&self, window_index: u32, width: u32, height: u32); fn command_field_text(&self, window_index: u32) -> String; fn set_command_field_text(&self, window_index: u32, text: &str); fn command_field_visible(&self, window_index: u32) -> bool; fn set_command_field_visible(&self, window_index: u32, visible: bool); fn window_title(&self, window_index: u32) -> String; fn set_window_title(&self, window_index: u32, title: &str); fn focused_webview_index(&self, window_index: u32) -> Option<u32>; fn webview_count(&self, window_index: u32) -> u32; fn open_webview<'a, U, B>(
        &self,
        window_index: u32,
        uri: Option<U>,
        config: Option<B>
    )
    where
        U: Into<String>,
        B: BrowserConfiguration
; fn close_webview(&self, window_index: u32, webview_index: u32); fn focus_webview(&self, window_index: u32, webview_index: u32); fn reload_webview(
        &self,
        window_index: u32,
        webview_index: u32,
        disable_filters: bool
    ); fn set_uri(&self, window_index: u32, webview_index: u32, uri: &str); fn go_back(&self, window_index: u32, webview_index: u32) -> bool; fn go_forward(&self, window_index: u32, webview_index: u32) -> bool; fn uri(&self, window_index: u32, webview_index: u32) -> String; fn find_string(&self, window_index: u32, webview_index: u32, query: &str); fn hide_find_results(&self, window_index: u32, webview_index: u32); fn webview_title(&self, window_index: u32, webview_index: u32) -> String; fn run_javascript(
        &self,
        window_index: u32,
        webview_index: u32,
        script: &str
    ); fn apply_styles(&self, window_index: u32, webview_index: u32, styles: &str); }

Required Methods

Create a new UI

Initialize all needed UI functions

Copy text to the system clipboard

Send a command to the event handler to be run in a particular window

The index of the focused window

Number of open windows

Open a new window

Close a window

Focus window at index

Capture keyboard input in given area

Set window visibility

Change the dimensions of a specified window

Text in the command bar of a specified window

Set the text in the command bar of a specified window

true if the command bar of a specified window is visible

Set the visibility in the command bar of a specified window

Title of a specified window

Set the title of a specified window

Index of the webview currently visible in a specified window

Number of webviews in a window

Open a new webview in a specified window

Close a webview in a specified window

Focus a webview in a specified window, hiding the current webview

Reload a webview in a specified window

Load a URI in a webview

Go back to the previously loaded resource in a webview

Go forward to the next loaded resource in a webview

Get the currently loaded URI or empty string

Find a string within the selected web view

Hide results from a previous find invocation (if applicable)

Get the title of the currently loaded URI or empty string

Run a JavaScript snippet in a webview

Apply a stylesheet to a webview

Implementors