Trait compositing::windowing::WindowMethods
source · pub trait WindowMethods {
fn get_coordinates(&self) -> EmbedderCoordinates;
fn set_animation_state(&self, _state: AnimationState);
fn get_gl_context(&self) -> GlContext;
fn get_native_display(&self) -> NativeDisplay;
fn get_gl_api(&self) -> GlApi;
fn webrender_surfman(&self) -> WebrenderSurfman;
}
Required Methods§
sourcefn get_coordinates(&self) -> EmbedderCoordinates
fn get_coordinates(&self) -> EmbedderCoordinates
Get the coordinates of the native window, the screen and the framebuffer.
sourcefn set_animation_state(&self, _state: AnimationState)
fn set_animation_state(&self, _state: AnimationState)
Set whether the application is currently animating. Typically, when animations are active, the window will want to avoid blocking on UI events, and just run the event loop at the vsync interval.
sourcefn get_gl_context(&self) -> GlContext
fn get_gl_context(&self) -> GlContext
Get the media GL context
sourcefn get_native_display(&self) -> NativeDisplay
fn get_native_display(&self) -> NativeDisplay
Get the media native display
sourcefn get_gl_api(&self) -> GlApi
fn get_gl_api(&self) -> GlApi
Get the GL api
sourcefn webrender_surfman(&self) -> WebrenderSurfman
fn webrender_surfman(&self) -> WebrenderSurfman
Get the webrender surfman instance