//! Basic empty widget
//!
//! **Multithreaded** applications can call widget methods from non-ui
//! threads, but will need to call [`app::awake()`](`crate::app::awake`) to awaken
//! the ui thread's event loop.
use crate*;
use crate FlString;
use *;
use ;
/// An empty widget. Instantiating a Widget requires that you at least add a draw callback for it to show anything
/// ```rust,no_run
/// use fltk::{prelude::*, *};
/// fn main() {
/// let a = app::App::default();
/// let mut win = window::Window::default();
/// let mut wid = widget::Widget::default();
/// win.end();
/// win.show();
/// wid.draw(|w| {
/// draw::draw_box(w.frame(), w.x(), w.y(), w.w(), w.h(), w.color());
/// draw::set_draw_color(enums::Color::Black); // for the text
/// draw::set_font(enums::Font::Helvetica, app::font_size());
/// draw::draw_text2(&w.label(), w.x(), w.y(), w.w(), w.h(), w.align());
/// });
/// a.run().unwrap();
/// }
/// ```
crate impl_widget_ext!;
crate impl_widget_base!;
crate impl_widget_default!;
/// An alias exposing the Widget tracker
pub type WidgetTrackerPtr = *mut Fl_Widget_Tracker;