1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
pub use crate::prelude::*; use fltk_sys::window::*; use std::{ffi::CString, mem, os::raw}; /// Creates a window widget #[derive(WidgetTrait, GroupTrait, WindowTrait, Debug, Clone)] pub struct Window { _inner: *mut Fl_Window, } /// Defines the window type, can be set dynamically using the set_type() method #[repr(i32)] #[derive(WidgetType, Debug, Copy, Clone)] pub enum WindowType { NormalWindow = 240, DoubleWindow = 241, } /// Creates a double window widget #[derive(WidgetTrait, GroupTrait, WindowTrait, Debug, Clone)] pub struct DoubleWindow { _inner: *mut Fl_Double_Window, }