Public Member Functions | |
void | expose (const Rectangle &) |
void | sendxjunk () |
Static Public Member Functions | |
static void | create (Window *, XVisualInfo *, Colormap, int background=-1) |
static CreatedWindow * | find (const Window *window) |
static CreatedWindow * | set_xid (Window *, XWindow) |
Public Attributes | |
XWindow | backbuffer |
bool | backbuffer_bad |
Rectangle | current_size |
::Cursor | cursor |
const Widget * | cursor_for |
XWindow | frontbuffer |
CreatedWindow * | next |
bool | overlay |
Region | region |
bool | wait_for_expose |
Window * | window |
XWindow | xid |
Static Public Attributes | |
static CreatedWindow * | first |
When fltk tells X about a window, one of these objects is created. Warning: this object is highly subject to change! It's definition is only here so that xid(Window) can be declared inline:
void CreatedWindow::create | ( | Window * | window, |
XVisualInfo * | visual, | ||
Colormap | colormap, | ||
int | background = -1 |
||
) | [static] |
This function calls XCreateWindow and sets things up so that xid(window) returns the created X window id. This also does a lot of other ugly X stuff, including setting the label, resize limitations, etc. The background is a pixel to use for X's automatic fill color, use -1 to indicate that no background filling should be done.
References fltk::Widget::flags(), fltk::flush(), fltk::Rectangle::h(), fltk::modal(), fltk::Widget::parent(), fltk::Rectangle::set(), set_xid(), fltk::Window::shown(), fltk::version(), fltk::Rectangle::w(), fltk::Rectangle::x(), fltk::xdisplay, fltk::xscreen, and fltk::Rectangle::y().
CreatedWindow * CreatedWindow::set_xid | ( | Window * | window, |
XWindow | winxid | ||
) | [static] |