fltk::CreatedWindow Class Reference

List of all members.

Public Member Functions

void expose (const Rectangle &)
void sendxjunk ()

Static Public Member Functions

static void create (Window *, XVisualInfo *, Colormap, int background=-1)
static CreatedWindowfind (const Window *window)
static CreatedWindowset_xid (Window *, XWindow)

Public Attributes

XWindow backbuffer
bool backbuffer_bad
Rectangle current_size
::Cursor cursor
const Widgetcursor_for
XWindow frontbuffer
CreatedWindownext
bool overlay
Region region
bool wait_for_expose
Windowwindow
XWindow xid

Static Public Attributes

static CreatedWindowfirst


Detailed Description

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:

Member Function Documentation

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().


Wed Jun 17 08:58:18 2009. FLTK ©2007 Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for any purpose, provided this copyright and permission notice are preserved.