[−][src]Struct ul::Ultralight
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]
&mut self,
cb: &'a mut T
) -> Result<(), NoneError> where
T: FnMut(View),
pub fn set_dom_ready_callback<T>(
&mut self,
cb: &'a mut T
) -> Result<(), NoneError> where
T: FnMut(View),
[src]
&mut self,
cb: &'a mut T
) -> Result<(), NoneError> where
T: FnMut(View),
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]
&mut self,
name: &'static str,
hook: &'a 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<'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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,