[][src]Struct ul::Ultralight

pub struct Ultralight<'a> { /* fields omitted */ }

Methods

impl<'a> Ultralight<'a>[src]

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

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

pub fn set_view(&mut self, view: View)[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: &'a mut T
) -> Result<(), NoneError> where
    T: FnMut(View), 
[src]

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

pub fn create_function<T>(
    &mut self,
    name: &'static str,
    hook: &'a 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<'a> RefUnwindSafe for Ultralight<'a>

impl<'a> !Send for Ultralight<'a>

impl<'a> !Sync for Ultralight<'a>

impl<'a> Unpin for Ultralight<'a>

impl<'a> UnwindSafe for Ultralight<'a>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.