[−][src]Struct luminance_glutin::GlutinSurface
The Glutin surface.
You want to create such an object in order to use any luminance construct.
Trait Implementations
impl Surface for GlutinSurface
[src]
type Error = Error
Type of surface errors.
type Event = Event
Type of events.
fn new(
dim: WindowDim,
title: &str,
win_opt: WindowOpt
) -> Result<Self, Self::Error>
[src]
dim: WindowDim,
title: &str,
win_opt: WindowOpt
) -> Result<Self, Self::Error>
fn opts(&self) -> &WindowOpt
[src]
fn set_cursor_mode(&mut self, mode: CursorMode) -> &mut Self
[src]
fn set_num_samples<S>(&mut self, _samples: S) -> &mut Self where
S: Into<Option<u32>>,
[src]
S: Into<Option<u32>>,
fn size(&self) -> [u32; 2]
[src]
fn wait_events<'a>(&'a mut self) -> Box<dyn Iterator<Item = Self::Event> + 'a>
[src]
fn poll_events<'a>(&'a mut self) -> Box<dyn Iterator<Item = Self::Event> + 'a>
[src]
fn swap_buffers(&mut self)
[src]
fn width(&self) -> u32
[src]
fn height(&self) -> u32
[src]
fn back_buffer(
&mut self
) -> Result<Framebuffer<Flat, Dim2, (), ()>, Self::Error>
[src]
&mut self
) -> Result<Framebuffer<Flat, Dim2, (), ()>, Self::Error>
impl GraphicsContext for GlutinSurface
[src]
fn state(&self) -> &Rc<RefCell<GraphicsState>>
[src]
fn pipeline_builder(&self) -> Builder
[src]
Auto Trait Implementations
impl Unpin for GlutinSurface
impl !Sync for GlutinSurface
impl !Send for GlutinSurface
impl !UnwindSafe for GlutinSurface
impl !RefUnwindSafe for GlutinSurface
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,