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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

int W.button(string s, const char ∗ hlp = 0)<br />

int W.fbutton(string s, const char ∗ hlp = 0)<br />

adds a new button to W with label s and number<br />

equal to its position in the list of all buttons<br />

(starting with 0).<br />

as above but makes this button the focus button.<br />

int W.button(int w, int h, unsigned char ∗ bm, string s, int n,<br />

const char ∗ hlp = 0)<br />

adds a button with bitmap bm, label s, and number<br />

n to W .<br />

int W.button(char ∗ pr1 , char ∗ pr2 , string s, int n, const char ∗ hlp = 0)<br />

adds a button with pixrects pr1 and pr2, label s,<br />

and number n to W .<br />

int W.button(int w, int h, unsigned char ∗ bm, string s, const char ∗ hlp = 0)<br />

adds a new button to W with bitmap bm, label s,<br />

and number equal to its position in the list of all<br />

buttons (starting with 0).<br />

int W.button(string s, int n, void (∗F )(int), const char ∗ hlp = 0)<br />

adds a button with label s, number n and action<br />

function F to W . Function F is called with actual<br />

parameter n whenever the button is pressed.<br />

int W.button(string s, int n, const window handler& obj ,<br />

const char ∗ hlp = 0)<br />

as above with handler object obj .<br />

int W.fbutton(string s, int n, void (∗F )(int), const char ∗ hlp = 0)<br />

as above but makes this button the focus button.<br />

int W.fbutton(string s, int n, const window handler& obj ,<br />

const char ∗ hlp = 0)<br />

as above with handler object obj .<br />

int W.button(int w, int h, unsigned char ∗ bm, string s, int n,<br />

void (∗F )(int), const char ∗ hlp = 0)<br />

adds a button with bitmap bm, label s, number n<br />

and action function F to W . Function F is called<br />

with actual parameter n whenever the button is<br />

pressed.<br />

int W.button(int w, int h, unsigned char ∗ bm, string s, int n,<br />

const window handler& obj , const char ∗ hlp = 0)

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

Saved successfully!

Ooh no, something went wrong!