[][src]Struct ul::Ultralight

pub struct Ultralight { /* fields omitted */ }

Methods

impl Ultralight[src]

pub fn new(config: Option<Config>, renderer: Option<Renderer>) -> Ultralight[src]

pub fn view(&mut self, width: u32, height: u32, transparent: bool)[src]

pub fn load_url(&mut self, url: &'static str) -> Result<(), NoneError>[src]

pub fn load_html(&mut self, code: &'static str) -> Result<(), NoneError>[src]

pub fn update(&mut self)[src]

pub fn update_until_loaded(&mut self) -> Result<(), NoneError>[src]

pub fn render(&mut self)[src]

pub fn scroll(&mut self, delta_x: i32, delta_y: i32) -> Result<(), NoneError>[src]

pub fn get_scroll_height(&mut self) -> Result<f64, NoneError>[src]

pub fn set_finish_loading_callback<T>(&mut self, cb: T) -> Result<(), NoneError> where
    T: FnMut(View), 
[src]

pub fn set_dom_ready_callback<T>(&mut self, cb: T) -> Result<(), NoneError> where
    T: FnMut(View), 
[src]

pub fn create_function<T>(
    &mut self,
    name: &'static str,
    hook: &mut T
) -> Result<JSObjectRef, NoneError> where
    T: FnMut(JSContextRef, JSObjectRef, JSObjectRef, usize, *const JSValueRef, *mut JSValueRef) -> JSValueRef
[src]

pub fn set_js_object_property(
    &mut self,
    name: &'static str,
    object: JSObjectRef
) -> Result<(), NoneError>
[src]

pub fn evaluate_script(
    &mut self,
    script: &'static str
) -> Result<JSValueRef, NoneError>
[src]

pub fn get_raw_pixels(&mut self) -> Result<Vec<u8>, NoneError>[src]

pub fn write_png_to_file(
    &mut self,
    file_name: &'static str
) -> Result<bool, NoneError>
[src]

pub fn is_loading(&self) -> bool[src]

pub fn log_to_stdout(&mut self) -> Result<(), NoneError>[src]

Auto Trait Implementations

impl !Send for Ultralight

impl !Sync for Ultralight

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]