Struct fltk::window::GlutWindow[][src]

pub struct GlutWindow { /* fields omitted */ }

Creates a OpenGL Glut window widget

Implementations

impl GlutWindow[src]

pub fn default() -> GlutWindow[src]

Creates a default initialized glut window

pub fn get_proc_address(&self, s: &str) -> *const c_void[src]

Gets an opengl function address

pub fn flush(&mut self)[src]

Forces the window to be drawn, this window is also made current and calls draw()

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(&self) -> bool[src]

Returns whether the GlutWindow 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 GlutWindow

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

Set the Mode of the GlutWindow

Trait Implementations

impl Clone for GlutWindow[src]

impl Debug for GlutWindow[src]

impl Default for GlutWindow[src]

impl GroupExt for GlutWindow[src]

impl HasRawWindowHandle for GlutWindow[src]

impl IntoIterator for GlutWindow[src]

type Item = Box<dyn WidgetExt>

The type of the elements being iterated over.

type IntoIter = IntoIter<Self::Item>

Which kind of iterator are we turning this into?

impl Send for GlutWindow[src]

impl Sync for GlutWindow[src]

impl WidgetBase for GlutWindow[src]

impl WidgetExt for GlutWindow[src]

impl WindowExt for GlutWindow[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.