pub struct WebView { /* private fields */ }Implementations§
Source§impl WebView
impl WebView
pub fn new() -> Self
pub fn tick(&mut self) -> Vec<WebViewTask>
pub fn on_html_fetched(&mut self, html: String, document_url: Url)
pub fn on_css_fetched(&mut self, css: String)
Sourcepub fn update_page(&mut self)
pub fn update_page(&mut self)
Update page (e.g. DOM changed)
This is a stub method for now.
pub fn title(&self) -> Option<&String>
pub fn relayout(&mut self, viewport: (f32, f32))
Sourcepub fn layout_and_info(&self) -> Option<(&LayoutNode, &InfoNode)>
pub fn layout_and_info(&self) -> Option<(&LayoutNode, &InfoNode)>
現在描画可能な Layout / Info を返す(なければ None)
pub fn layout_and_info_mut(&mut self) -> Option<(&LayoutNode, &mut InfoNode)>
Sourcepub fn document_info(&self) -> Option<&DocumentInfo>
pub fn document_info(&self) -> Option<&DocumentInfo>
Returns document info
pub fn document_url(&self) -> Option<&Url>
pub fn base_url(&self) -> Option<&Url>
pub fn needs_redraw(&self) -> bool
pub fn clear_redraw_flag(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WebView
impl !RefUnwindSafe for WebView
impl !Send for WebView
impl !Sync for WebView
impl Unpin for WebView
impl !UnwindSafe for WebView
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().