pub trait GlWindow {
// Required methods
fn get_render_target(
&self,
device: &mut SurfmanDevice,
context: &mut SurfmanContext,
) -> GlWindowRenderTarget;
fn get_rotation(&self) -> Rotation3D<f32, UnknownUnit, UnknownUnit>;
fn get_translation(&self) -> Vector3D<f32, UnknownUnit>;
fn display_handle(&self) -> DisplayHandle<'_>;
// Provided method
fn get_mode(&self) -> GlWindowMode { ... }
}Required Methods§
fn get_render_target( &self, device: &mut SurfmanDevice, context: &mut SurfmanContext, ) -> GlWindowRenderTarget
fn get_rotation(&self) -> Rotation3D<f32, UnknownUnit, UnknownUnit>
fn get_translation(&self) -> Vector3D<f32, UnknownUnit>
fn display_handle(&self) -> DisplayHandle<'_>
Provided Methods§
fn get_mode(&self) -> GlWindowMode
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".