Struct fltk::window::GlutWindow [−][src]
pub struct GlutWindow { /* fields omitted */ }
Creates a OpenGL Glut window widget
Implementations
impl GlutWindow
[src]
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 Clone for GlutWindow
[src]fn clone(&self) -> GlutWindow
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for GlutWindow
[src]
impl Default for GlutWindow
[src]impl GroupExt for GlutWindow
[src]
impl GroupExt for GlutWindow
[src]fn begin(&self)
[src]
fn end(&self)
[src]
fn clear(&mut self)
[src]
fn children(&self) -> i32
[src]
fn child(&self, idx: i32) -> Option<Box<dyn WidgetExt>>
[src]
fn find<W: WidgetExt>(&self, widget: &W) -> i32
[src]
fn add<W: WidgetExt>(&mut self, widget: &W)
[src]
fn insert<W: WidgetExt>(&mut self, widget: &W, index: i32)
[src]
fn remove<W: WidgetExt>(&mut self, widget: &W)
[src]
fn remove_by_index(&mut self, idx: i32)
[src]
fn resizable<W: WidgetExt>(&self, widget: &W)
[src]
fn make_resizable(&mut self, val: bool)
[src]
fn set_clip_children(&mut self, flag: bool)
[src]
fn clip_children(&mut self) -> bool
[src]
fn draw_child<W: WidgetExt>(&self, w: &mut W)
[src]
fn update_child<W: WidgetExt>(&self, w: &mut W)
[src]
fn draw_outside_label<W: WidgetExt>(&self, w: &mut W)
[src]
fn draw_children(&mut self)
[src]
impl HasRawWindowHandle for GlutWindow
[src]
impl HasRawWindowHandle for GlutWindow
[src]fn raw_window_handle(&self) -> RawWindowHandle
[src]
impl IntoIterator for GlutWindow
[src]
impl IntoIterator for GlutWindow
[src]impl Send for GlutWindow
[src]
impl Send for GlutWindow
[src]impl Sync for GlutWindow
[src]
impl Sync for GlutWindow
[src]impl WidgetBase for GlutWindow
[src]
impl WidgetBase for GlutWindow
[src]fn new<T: Into<Option<&'static str>>>(
x: i32,
y: i32,
width: i32,
height: i32,
title: T
) -> GlutWindow
[src]
x: i32,
y: i32,
width: i32,
height: i32,
title: T
) -> GlutWindow
fn delete(wid: Self)
[src]
unsafe fn from_widget_ptr(ptr: *mut Fl_Widget) -> Self
[src]
unsafe fn from_widget<W: WidgetExt>(w: W) -> Self
[src]
fn handle<F: FnMut(&mut Self, Event) -> bool + 'static>(&mut self, cb: F)
[src]
fn draw<F: FnMut(&mut Self) + 'static>(&mut self, cb: F)
[src]
unsafe fn draw_data(&mut self) -> Option<Box<dyn FnMut()>>
[src]
unsafe fn handle_data(&mut self) -> Option<Box<dyn FnMut(Event) -> bool>>
[src]
impl WidgetExt for GlutWindow
[src]
impl WidgetExt for GlutWindow
[src]fn set_pos(&mut self, x: i32, y: i32)
[src]
fn set_size(&mut self, width: i32, height: i32)
[src]
fn set_label(&mut self, title: &str)
[src]
fn redraw(&mut self)
[src]
fn show(&mut self)
[src]
fn hide(&mut self)
[src]
fn x(&self) -> i32
[src]
fn y(&self) -> i32
[src]
fn width(&self) -> i32
[src]
fn height(&self) -> i32
[src]
fn w(&self) -> i32
[src]
fn h(&self) -> i32
[src]
fn label(&self) -> String
[src]
fn measure_label(&self) -> (i32, i32)
[src]
unsafe fn as_widget_ptr(&self) -> *mut Fl_Widget
[src]
fn activate(&mut self)
[src]
fn deactivate(&mut self)
[src]
fn redraw_label(&mut self)
[src]
fn resize(&mut self, x: i32, y: i32, width: i32, height: i32)
[src]
fn tooltip(&self) -> Option<String>
[src]
fn set_tooltip(&mut self, txt: &str)
[src]
fn color(&self) -> Color
[src]
fn set_color(&mut self, color: Color)
[src]
fn label_color(&self) -> Color
[src]
fn set_label_color(&mut self, color: Color)
[src]
fn label_font(&self) -> Font
[src]
fn set_label_font(&mut self, font: Font)
[src]
fn label_size(&self) -> i32
[src]
fn set_label_size(&mut self, sz: i32)
[src]
fn label_type(&self) -> LabelType
[src]
fn set_label_type(&mut self, typ: LabelType)
[src]
fn frame(&self) -> FrameType
[src]
fn set_frame(&mut self, typ: FrameType)
[src]
fn changed(&self) -> bool
[src]
fn set_changed(&mut self)
[src]
fn clear_changed(&mut self)
[src]
fn align(&self) -> Align
[src]
fn set_align(&mut self, align: Align)
[src]
fn set_trigger(&mut self, trigger: CallbackTrigger)
[src]
fn trigger(&self) -> CallbackTrigger
[src]
fn parent(&self) -> Option<Box<dyn GroupExt>>
[src]
fn selection_color(&mut self) -> Color
[src]
fn set_selection_color(&mut self, color: Color)
[src]
fn do_callback(&mut self)
[src]
fn window(&self) -> Option<Box<dyn WindowExt>>
[src]
fn top_window(&self) -> Option<Box<dyn WindowExt>>
[src]
fn takes_events(&self) -> bool
[src]
unsafe fn user_data(&self) -> Option<Box<dyn FnMut()>>
[src]
fn take_focus(&mut self) -> Result<(), FltkError>
[src]
fn set_visible_focus(&mut self)
[src]
fn clear_visible_focus(&mut self)
[src]
fn visible_focus(&mut self, v: bool)
[src]
fn has_visible_focus(&mut self) -> bool
[src]
fn was_deleted(&self) -> bool
[src]
fn damage(&self) -> bool
[src]
fn set_damage(&mut self, flag: bool)
[src]
fn damage_type(&self) -> Damage
[src]
fn set_damage_type(&mut self, mask: Damage)
[src]
fn clear_damage(&mut self)
[src]
fn as_window(&self) -> Option<Box<dyn WindowExt>>
[src]
fn as_group(&self) -> Option<Box<dyn GroupExt>>
[src]
fn below_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]
fn above_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]
fn right_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]
fn left_of<W: WidgetExt>(self, w: &W, padding: i32) -> Self
[src]
fn center_of<W: WidgetExt>(self, w: &W) -> Self
[src]
fn center_of_parent(self) -> Self
[src]
fn size_of<W: WidgetExt>(self, w: &W) -> Self
[src]
fn size_of_parent(self) -> Self
[src]
fn inside<W: WidgetExt>(&self, wid: &W) -> bool
[src]
fn with_pos(self, x: i32, y: i32) -> Self
[src]
fn with_size(self, width: i32, height: i32) -> Self
[src]
fn with_label(self, title: &str) -> Self
[src]
fn with_align(self, align: Align) -> Self
[src]
fn get_type<T: WidgetType>(&self) -> T
[src]
fn set_type<T: WidgetType>(&mut self, typ: T)
[src]
fn set_image<I: ImageExt>(&mut self, image: Option<I>)
[src]
fn image(&self) -> Option<Box<dyn ImageExt>>
[src]
fn set_deimage<I: ImageExt>(&mut self, image: Option<I>)
[src]
fn deimage(&self) -> Option<Box<dyn ImageExt>>
[src]
fn set_callback<F: FnMut(&mut Self) + 'static>(&mut self, cb: F)
[src]
fn emit<T: 'static + Clone + Send + Sync>(&mut self, sender: Sender<T>, msg: T)
[src]
unsafe fn into_widget<W: WidgetBase>(&self) -> W where
Self: Sized,
[src]
Self: Sized,
fn visible(&self) -> bool
[src]
fn visible_r(&self) -> bool
[src]
impl WindowExt for GlutWindow
[src]
impl WindowExt for GlutWindow
[src]