[−][src]Struct ul::Ultralight
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]
T: FnMut(View),
pub fn set_dom_ready_callback<T>(&mut self, cb: T) -> Result<(), NoneError> where
T: FnMut(View),
[src]
T: FnMut(View),
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]
&mut self,
name: &'static str,
hook: &mut T
) -> Result<JSObjectRef, NoneError> where
T: FnMut(JSContextRef, JSObjectRef, JSObjectRef, usize, *const JSValueRef, *mut JSValueRef) -> JSValueRef,
pub fn set_js_object_property(
&mut self,
name: &'static str,
object: JSObjectRef
) -> Result<(), NoneError>
[src]
&mut self,
name: &'static str,
object: JSObjectRef
) -> Result<(), NoneError>
pub fn evaluate_script(
&mut self,
script: &'static str
) -> Result<JSValueRef, NoneError>
[src]
&mut self,
script: &'static str
) -> Result<JSValueRef, NoneError>
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]
&mut self,
file_name: &'static str
) -> Result<bool, NoneError>
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]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,