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.disable button(int b) disables button b.<br />

void W.enable button(int b) enables button b.<br />

bool W.is enabled(int b) tests whether button b is enabled or not.<br />

void<br />

W.disable panel(bool disable every item = true)<br />

disables the entire panel section of W .<br />

void W.enable panel( ) enables the entire panel section of W .<br />

Accessing and Updating Item Data<br />

void W.set text(panel item it, string s)<br />

replaces the text of text item it by s.<br />

panel item W.get item(string s) returns the item with label s and NULL if no such<br />

item exists in W .<br />

int<br />

string<br />

W.get button(string s) returns the button with label s and −1 if no such<br />

button exists in W .<br />

W.get button label(int but)<br />

returns the label of button but.<br />

void W.set button label(int but, string s)<br />

sets the label of button but to s.<br />

void W.set button pixrects(int but, char ∗ pr1 , char ∗ pr2 )<br />

sets the pixrects of button but to pr1 and pr2.<br />

window∗<br />

W.get window(int but) returns a pointer to the subwindow attached to<br />

button but (NULL if but has no subwindow)<br />

window∗ W.set window(int but, window ∗ M)<br />

associates subwindow (menu) ∗M with button but.<br />

Returns a pointer to the window previously attached<br />

to but.<br />

void<br />

W.set function(int but, void (∗F )(int))<br />

assign action function F to button but.<br />

void W.set object(int but, const window handler& obj )<br />

assign handler object obj to button but.<br />

3.9.9. Miscellanous<br />

void W.redraw panel( ) redraw the panel area of W .

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

Saved successfully!

Ooh no, something went wrong!