17.06.2013 Views

pvbrowser manual - Flussi liberi informatici

pvbrowser manual - Flussi liberi informatici

pvbrowser manual - Flussi liberi informatici

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

5.6. WIDGETS 33<br />

int pvSetBackgroundColor(PARAM *p, int id, int r, int g, int b);<br />

int pvText(PARAM *p, int id);<br />

Le altre ’Util functions’ fanno riferimento solo ai singoli widget. Questi li potrete trovare sotto ’Construction’<br />

all’interno dell’help su pvslib sotto ciascun widget.<br />

5.6.1 PushButton<br />

I PushButton possono avere icone addizionali.<br />

Forniscono gli eventi nei seguenti slot.<br />

Figura 5.1: PushButton<br />

static int slotButtonEvent(PARAM *p, int id, DATA *d)<br />

static int slotButtonPressedEvent(PARAM *p, int id, DATA *d)<br />

static int slotButtonReleasedEvent(PARAM *p, int id, DATA *d)<br />

static int slotMouseOverEvent(PARAM *p, int id, DATA *d, int enter)<br />

5.6.2 RadioButton<br />

Alcuni RadioButton lavorano esclusivamente se condividono lo stesso widget genitore.<br />

Forniscono gli eventi nei seguenti slots.<br />

Figura 5.2: RadioButton<br />

static int slotRadioButtonEvent(PARAM *p, int id, DATA *d, const char *text)<br />

static int slotButtonPressedEvent(PARAM *p, int id, DATA *d)<br />

static int slotButtonReleasedEvent(PARAM *p, int id, DATA *d)<br />

static int slotRightMouseEvent(PARAM *p, int id, DATA *d, const char *text)<br />

static int slotMouseOverEvent(PARAM *p, int id, DATA *d, int enter)<br />

5.6.3 CheckBox<br />

I CheckBoxes possono essere contrassegnati come spuntati.<br />

Forniscono gli eventi nei seguenti slots.<br />

Figura 5.3: CheckBox<br />

static int slotCheckboxEvent(PARAM *p, int id, DATA *d, const char *text)

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

Saved successfully!

Ooh no, something went wrong!