File x/Display


class x.Display

Inherits

State supers
tag.Display, tom.Descriptor, too.DescriptorReadDelegate, Constants

methods

tom.OutputStream
  help tom.OutputStream s
  done tom.MutableKeyed done;
Undocumented.

void
  load tom.MutableArray arguments;
Register this CIT to TAG, and try to find one or more `-display' arguments on the command line.

instance (id) (display)
  openDisplay tom.String name;
Open the display known by its name, and return it. Upon success, the display has been registered with the tag.Display class.

private void
  closeDisplay pointer d;
Close the X Display d.

instance x.Display

variables

public pointer display;
The underlying X display structure.
public tom.String name;
The name of this display.
tom.MutableIndexed screens;
The screens on this display.
tom.MutableIntDictionary windows;
Windows on this display, mapped on their X window id.
tom.MutableDictionary fonts;
The loaded fonts, keyed on their name (which includes the size).
public Font current_font;
The current font.
pointer locked_screen;
The X screen of the locked view.
public int locked_window;
The X window of the locked view.
float bl_x;
The bounds origin of the locked view, in window coordinates.
float bl_y;
Subpath current_path;
The current path. This is actually re-used.

methods

class (CachedImageRep)
  cachedImageRepClass;
Return the CachedImageRep class to be used to display on this Display.

void
  close;
Close this display.

id
  init tom.String display_name;
Designated initializer.

private id
  do_init tom.String display_name;
Open the connection to the display named display_name. Return nil if opening the display failed.

void
  doLockView tag.View v;
Undocumented.

void
  doUnlockView tag.View v;
Undocumented.

void
  updateLockedView;
Undocumented.

void
  beep;

Drawing

void
  drawImage CachedImageRep rep
         at (float, float) (x, y);
Undocumented.

void
  drawLine (float, float, float, float) (x1, y1, x2, y2);
Undocumented.

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

void
  setColor tag.Color c;
Undocumented.

void
  setFont Font f;
Undocumented.

void
  setXColor XColor c;
Undocumented.

void
  show tom.String text
    at (float, float) (x, y);
Undocumented.

Blitting

void
  copyRect (float, float, float, float) (rx, ry, rw, rh)
        to (float, float) (x, y);
Copy the indicated rectange in the currently locked_view to the destination point.

void
  clipToRect (float, float, float, float) (x, y, w, h);
Start clipping to the indicated rectangle on the currently locked_window.

void
  unclip;
Cancel a previous clipToRect.

tom.Indexed
  screens;
Return the screens attached to this display.

void
  addWindow Window window
        key int x_win_id;
Be informed by the window that it now exists on the receiving dislay.

void
  clearWindow int w;
Invoke XClearWindow on the window w. This fills the window with its background colour (with whatever attributes).

void
  frameWindow int window
           to (float, float, float, float) (x, y, w, h);
Move and/or resize the window.

void
  moveWindow int window
          to (float, float) (x, y);
Undocumented.

void
  mapWindow int window
     raised boolean raised;
Invoke XMapWindow or XMapRaised on the window.

void
  setTitle tom.String title
  ofWindow int w;
Undocumented.

void
  unmapWindow int w;
Invoke XUnmapWindow on the window.

Dispatching events

void
  dispatch;
Dispatch, while catching problems (can't do that from C sensibly yet).

int
  eventsQueued int when;
Return the number of events queued in some way.

id
  flushOutput;
See if we can dispatch more events.

private void
  internalDispatch;
Dispatch events while there are any.

void
  readEventOnDescriptor tom.Descriptor d;

too.DescriptorReadDelegate

pointer
  loadFont tom.String name;

Fonts

Font
  fontNamed tom.String name
       size int size;
Return the font with with name and size. It is possible that the size is ignored.

Font
  systemFont;
Undocumented.

void
  closepath;
Close the current path.

void
  curveto (float, float, float, float, float, float) (x1, y1, x2, y2, x3, y3);
Undocumented.

void
  eofill;
Undocumented.

void
  fill;
Undocumented.

void
  flattenpath;
Replace the current_path with a flattened version.

void
  lineto (float, float) (x, y);
Undocumented.

void
  newpath;
Undocumented.

void
  moveto (float, float) (x, y);
Undocumented.

(float, float, float, float) (x1, y1, x2, y2)
  pathbbox;
Forward to the current_path.

void
  stroke;
Undocumented.


Generated by tm 1.01.