Struct servo::minibrowser::Minibrowser
source · pub struct Minibrowser {
pub context: EguiGlow,
pub event_queue: RefCell<Vec<MinibrowserEvent>>,
pub toolbar_height: Cell<Length<f32, DeviceIndependentPixel>>,
last_update: Instant,
location: RefCell<String>,
location_dirty: Cell<bool>,
}
Fields§
§context: EguiGlow
§event_queue: RefCell<Vec<MinibrowserEvent>>
§toolbar_height: Cell<Length<f32, DeviceIndependentPixel>>
§last_update: Instant
§location: RefCell<String>
§location_dirty: Cell<bool>
Whether the location has been edited by the user without clicking Go.
Implementations§
source§impl Minibrowser
impl Minibrowser
pub fn new(
webrender_surfman: &WebrenderSurfman,
events_loop: &EventsLoop,
window: &dyn WindowPortsMethods
) -> Self
sourcepub fn update(&mut self, window: &Window, reason: &'static str)
pub fn update(&mut self, window: &Window, reason: &'static str)
Update the minibrowser, but don’t paint.
sourcepub fn queue_embedder_events_for_minibrowser_events(
&self,
browser: &Browser<dyn WindowPortsMethods>,
app_event_queue: &mut Vec<EmbedderEvent>
)
pub fn queue_embedder_events_for_minibrowser_events(
&self,
browser: &Browser<dyn WindowPortsMethods>,
app_event_queue: &mut Vec<EmbedderEvent>
)
Takes any outstanding events from the Minibrowser, converting them to EmbedderEvent and routing those to the App event queue.
sourcepub fn update_location_in_toolbar(
&mut self,
browser: &mut Browser<dyn WindowPortsMethods>
) -> bool
pub fn update_location_in_toolbar(
&mut self,
browser: &mut Browser<dyn WindowPortsMethods>
) -> bool
Updates the location field from the given Browser, unless the user has started editing it without clicking Go, returning true iff the location has changed (needing an egui update).
Auto Trait Implementations§
impl !RefUnwindSafe for Minibrowser
impl Send for Minibrowser
impl !Sync for Minibrowser
impl Unpin for Minibrowser
impl !UnwindSafe for Minibrowser
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> MaybeBoxed<Box<T, Global>> for T
impl<T> MaybeBoxed<Box<T, Global>> for T
source§fn maybe_boxed(self) -> Box<T, Global>
fn maybe_boxed(self) -> Box<T, Global>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert