Expand description
Web view types to handle web browsing contexts.
+Expand description
Web view types to handle web browsing contexts.
Structs§
- A panel is a special web view that focus on controlling states around window. It could be treated as the control panel or navigation bar of the window depending on usages.
- A web view is an area to display web browsing context. It’s what user will treat as a “web page”.
pub struct Panel { /* private fields */ }
Expand description
A panel is a special web view that focus on controlling states around window.
+ A panel is a special web view that focus on controlling states around window.
It could be treated as the control panel or navigation bar of the window depending on usages. At the moment, following Web API is supported: Verso’s window types to handle Winit’s window. A Winit window with webrender rendering context. A Winit window with webrender rendering context. A Verso window is a Winit window containing several web views. Set WebView ID of this window. Handle Winit window event. Handle servo messages and return a boolean to indicate servo needs to present or not. Paint offscreen framebuffer to Winit window. Queues a Winit Check if WebView ( Paint offscreen framebuffer to Winit window. Queues a Winit Check if WebView ( Resize the rendering context and all web views. Set cursor icon of the window. Check if WebView ( Set cursor icon of the window. Check if WebView (pub struct Panel { /* private fields */ }
Expand description
@@ -7,10 +7,13 @@
-window.prompt('PREV')
window.prompt('FORWARD')
window.prompt('REFRESH')
window.prompt('MINIMIZE')
window.prompt('MAXIMIZE')
window.prompt('NAVIGATE_TO:${url}')
Implementations§
impl Panel
Implementations§
Auto Trait Implementations§
impl Freeze for Panel
impl RefUnwindSafe for Panel
impl Send for Panel
impl Sync for Panel
impl Unpin for Panel
impl UnwindSafe for Panel
Blanket Implementations§
impl<T> Borrow<T> for T
Expand description
pub struct GLWindow { /* private fields */ }
Expand description
Implementations§
Trait Implementations§
impl WindowMethods for GLWindow
fn get_coordinates(&self) -> EmbedderCoordinates
fn set_animation_state(&self, state: AnimationState)
pub struct GLWindow { /* private fields */ }
Expand description
Implementations§
Trait Implementations§
impl WindowMethods for GLWindow
fn get_coordinates(&self) -> EmbedderCoordinates
fn set_animation_state(&self, state: AnimationState)
fn rendering_context(&self) -> RenderingContext
RenderingContext
] of this Window.Auto Trait Implementations§
impl !Freeze for GLWindow
impl !RefUnwindSafe for GLWindow
impl !Send for GLWindow
impl !Sync for GLWindow
impl Unpin for GLWindow
impl !UnwindSafe for GLWindow
Blanket Implementations§
Auto Trait Implementations§
impl !Freeze for GLWindow
impl !RefUnwindSafe for GLWindow
impl !Send for GLWindow
impl !Sync for GLWindow
impl Unpin for GLWindow
impl !UnwindSafe for GLWindow
Blanket Implementations§
impl<T> BorrowMut<T> for T
fn borrow_mut(&mut self) -> &mut T
impl<T> Downcast for T
pub struct Window { /* private fields */ }
Expand description
Implementations§
impl Window
Implementations§
impl Window
pub fn set_webview_id(&mut self, id: WebViewId)
pub fn handle_winit_window_event(
@@ -9,23 +9,23 @@
events: &mut Vec<EmbedderEvent>,
event: &WindowEvent
)
pub fn handle_servo_messages(
+
pub fn handle_servo_messages(
&mut self,
servo: &mut Servo<GLWindow>,
events: &mut Vec<EmbedderEvent>,
status: &mut Status
) -> bool
pub fn paint(&self, servo: &mut Servo<GLWindow>)
pub fn request_redraw(&self)
WindowEvent::RedrawRequested
event to be emitted that aligns with the windowing system drawing loop.pub fn is_animating(&self) -> bool
GLWindow
) is animating.pub fn paint(&self, servo: &mut Servo<GLWindow>)
pub fn request_redraw(&self)
WindowEvent::RedrawRequested
event to be emitted that aligns with the windowing system drawing loop.pub fn is_animating(&self) -> bool
GLWindow
) is animating.pub fn resize(
&self,
size: Size2D<i32, DevicePixel>,
events: &mut Vec<EmbedderEvent>
)
pub fn set_cursor_icon(&self, cursor: Cursor)
Methods from Deref<Target = GLWindow>§
pub fn is_animating(&self) -> bool
GLWindow
) is animating.Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Window
impl !RefUnwindSafe for Window
impl !Send for Window
impl !Sync for Window
impl Unpin for Window
impl !UnwindSafe for Window
Blanket Implementations§
pub fn set_cursor_icon(&self, cursor: Cursor)
Methods from Deref<Target = GLWindow>§
pub fn is_animating(&self) -> bool
GLWindow
) is animating.Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Window
impl !RefUnwindSafe for Window
impl !Send for Window
impl !Sync for Window
impl Unpin for Window
impl !UnwindSafe for Window
Blanket Implementations§