31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

void W.display(window& W 0 , int x, int y)<br />

opens W and displays it with its left upper corner<br />

at position (x, y) relative to the upper left<br />

corner of window W 0 .<br />

W.open. . . can be used as a synonym for W.display. . . Note, that the open operation for<br />

panels (cf. 17.3) is defined slightly different.<br />

void W.close( ) closes W by removing it from the display.<br />

void W.clear( ) clears W using the current background color or<br />

pixmap, i.e., if W has a background pixmap<br />

defined it is tiled with P such that the upper<br />

left corner is the tiling origin. Otherwise, it is<br />

filled with background color of W .<br />

void W.clear(double x 0 , double y 0 , double x 1 , double y 1 )<br />

only clears the rectangular area (x0, y0, x1, y1)<br />

of window W using the current background<br />

color or pixmap.<br />

void W.clear(color c) clears W with color c and sets the background<br />

color of W to c.<br />

void<br />

W.clear(double xorig, double yorig)<br />

clears W . If a background pixmap is defined<br />

the point (xorig, yorig) is used as the origin of<br />

tiling.<br />

void W.redraw( ) repaints the drawing area if W has a redraw<br />

function.<br />

3.2 Setting parameters<br />

color W.set color(color c) sets the foreground color parameter to c and<br />

returns its previous value.<br />

color<br />

W.set fill color(color c) sets the fill color parameter (used by ≪ operators)<br />

to c and returns its previous value.<br />

color W.set bg color(color c) sets the background color parameter to c and<br />

returns its previous value.<br />

char∗<br />

int<br />

W.set bg pixmap(char ∗ pr)<br />

W.set line width(int pix)<br />

sets the background pixmap to pr and returns<br />

its previous value.<br />

sets the line width parameter to pix pixels and<br />

returns its previous value.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!