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<br />

void<br />

void<br />

W.redraw panel(panel item it)<br />

W.display help text(string fname)<br />

redraw item i in the panel area of W .<br />

displays the help text contained in name.hlp. <strong>The</strong><br />

file name.hlp must exist either in the current working<br />

directory or in $<strong>LEDA</strong>ROOT/incl/Help.<br />

W.set tooltip(int i, double x 0 , double y 0 , double x 1 , double y 1 , string txt)<br />

inserts a tooltip with id i, rectangle (x 0 , y 0 ,x 1 ,y 1 )<br />

and text txt into the window. <strong>The</strong> text is shown<br />

when the mouse pointer enters the rectangle. <strong>The</strong><br />

text disappears as soon as the mouse pointer leaves<br />

the rectangle.<br />

CAUTION: Currently the method has to be called<br />

after the call of W .display(). Setting a tooltip before<br />

the call W .display() has no effect.<br />

void W.del tooltip(int i) removes the tooltip with id i.<br />

4. Example<br />

Example programs can be found on <strong>LEDA</strong>ROOT/demo/win and <strong>LEDA</strong>ROOT/test/win.

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

Saved successfully!

Ooh no, something went wrong!