[][src]Struct fltk::window::GlWindow

pub struct GlWindow { /* fields omitted */ }

Creates a OpenGL window widget

Implementations

impl GlWindow[src]

pub fn flush(&mut self)[src]

Flush window content

pub fn valid(&self) -> bool[src]

Returns whether the OpeGL context is still valid

pub fn set_valid(&mut self, v: bool)[src]

Mark the OpeGL context as still valid

pub fn context_valid(&self) -> bool[src]

Returns whether the context is valid upon creation

pub fn set_context_valid(&mut self, v: bool)[src]

Mark the context as valid upon creation

pub fn context(&self) -> Option<GlContext>[src]

Returns the GlContext

pub fn set_context(&mut self, ctx: GlContext, destroy_flag: bool)[src]

Sets the GlContext

pub fn swap_buffers(&mut self)[src]

Swaps the back and front buffers

pub fn ortho(&mut self)[src]

Sets the projection so 0,0 is in the lower left of the window and each pixel is 1 unit wide/tall.

pub fn can_do_overlay(&mut self) -> bool[src]

Returns whether the GlWindow can do overlay

pub fn redraw_overlay(&mut self)[src]

Redraws the overlay

pub fn hide_overlay(&mut self)[src]

Hides the overlay

pub fn make_overlay_current(&mut self)[src]

Makes the overlay current

pub fn pixels_per_unit(&mut self) -> f32[src]

Returns the pixels per unit

pub fn pixel_w(&mut self) -> i32[src]

Gets the window's width in pixels

pub fn pixel_h(&mut self) -> i32[src]

Gets the window's height in pixels

pub fn mode(&self) -> Mode[src]

Get the Mode of the GlWindow

pub fn set_mode(&mut self, mode: Mode)[src]

Set the Mode of the GlWindow

Trait Implementations

impl Clone for GlWindow[src]

impl Debug for GlWindow[src]

impl GroupExt for GlWindow[src]

impl Send for GlWindow[src]

impl Sync for GlWindow[src]

impl WidgetExt for GlWindow[src]

impl WindowExt for GlWindow[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.