File x/Window


class x.Panel

Inherits

State supers
Window, tag.Panel

instance x.Panel


class x.Window

Inherits

State supers
tag.Window

methods

protected int
  createWindow (float, float, float, float) (x, y, w, h)
          with (int, int) (style, backing)
            on Screen screen;
Return the X handle of a newly created X window with the indicated dimensions and features on the screen.

protected void
  setBackground XColor xcolor
       ofWindow int window
      onDisplay pointer display;
Set the background xcolor of the X window on the display.

instance x.Window

variables

public Screen screen;
Our Screen.
public int window;
The underlying X window.

methods

Colormap
  colormap;
For now, we only use the default screen colormap.

void
  display;
Display the receiving window. This does nothing if the window is currently off-screen.

redeclare Display
  display;
Our display is an x.Display.

id
  initWithContentRect (float, float, float, float) (x, y, w, h)
            styleMask int style
              backing int backing
               screen Screen scr;
Designated initializer.

void
  orderFront tom.All sender;
Undocumented.

void
  orderOut tom.All sender;
Undocumented.

void
  setBackgroundColor tag.Color c;
Undocumented.

void
  setFrame (float, float, float, float) (x, y, w, h);
Undocumented.

void
  setTitle tom.String t;
Undocumented.

id (self)
  awakeAfterUsingCoder tom.Decoder coder;
Set this window's screen from the system_display's default.

Low-level event handling

void
  configureNotify pointer event;
Handle a ConfigureNotify event.

void
  expose (float, float, float, float) (x, y, w, h)
    left int count;
Handle an expose event.

void
  mouseEvent tag.MouseEvent e;
Handle a mouse event.

void
  putOnServer;
Make sure the window has a valid X window.


Generated by tm 1.01.