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 |
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::Window::child_of(), current_size, fltk::Widget::flags(), fltk::flush(), fltk::Rectangle::h(), fltk::Window::i, fltk::Window::icon(), fltk::Window::iconlabel(), fltk::Window::label(), fltk::modal(), fltk::Window::override(), fltk::Widget::parent(), sendxjunk(), fltk::Rectangle::set(), set_xid(), fltk::Window::shown(), fltk::version(), fltk::Rectangle::w(), wait_for_expose, fltk::Rectangle::x(), fltk::Window::xclass(), fltk::xdisplay, xid, fltk::xscreen, and fltk::Rectangle::y().
CreatedWindow * CreatedWindow::set_xid | ( | Window * | window, | |
XWindow | winxid | |||
) | [static] |
Set things up so that xid(window) returns winxid. Thus you will make that Window draw into an existing X window.
References backbuffer, cursor, cursor_for, frontbuffer, fltk::Window::i, next, overlay, region, wait_for_expose, window, and xid.
Referenced by create().