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.

template <br />

bool GW.set post del handler(GeoEditScene ∗ sc, F handler)<br />

sets the handler that is called after an object<br />

is deleted from (∗sc). handler must have type<br />

void (∗handler)(GeoWin&, const T :: value type &).<br />

template <br />

bool GW.set start change handler(GeoEditScene ∗ sc, F handler)<br />

sets the handler that is called when a geometric object<br />

from (∗sc) starts changing (for instance when<br />

you move it or rotate it). handler must have type<br />

bool (∗handler)(GeoWin&, const T :: value type &).<br />

<strong>The</strong> handler function gets a reference to the object.<br />

template <br />

bool GW.set pre move handler(GeoEditScene ∗ sc, F handler)<br />

sets the handler that is called before every<br />

move operation. handler must have type<br />

bool (∗handler)(GeoWin&, const T :: value type &,<br />

double x, double y). <strong>The</strong> handler gets as the second<br />

parameter a reference to the object, as the third<br />

parameter and fourth parameter the move vector. If<br />

the handler returns true, the change operation will<br />

be executed, if the handler returns false, it will not<br />

be executed.<br />

template <br />

bool GW.set post move handler(GeoEditScene ∗ sc, F handler)<br />

sets the handler that is called after every<br />

move operation. handler must have type<br />

void (∗handler)(GeoWin&, const T :: value type &,<br />

double x, double y). <strong>The</strong> handler gets as the second<br />

parameter a reference to the object, as the third<br />

parameter and fourth parameter the move vector.<br />

template <br />

bool GW.set pre rotate handler(GeoEditScene ∗ sc, F handler)<br />

template <br />

sets the handler that is called before every<br />

rotate operation. handler must have type<br />

bool (∗handler)(GeoWin&, const T :: value type &,<br />

double x, double y, double a). If the handler returns<br />

true, the rotate operation will be executed, if the handler<br />

returns false, it will not be executed.

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

Saved successfully!

Ooh no, something went wrong!