#include <cv-buttons.h>
Public Member Functions | |
| PushButton (int x, int y, int w, int h, int t, char *text, void(*cb)(int)) | |
Public Attributes | |
| int | x_pos |
| int | width |
| int | toggle |
| char * | text |
| void(* | cb )(int) |
| PushButton::PushButton | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h, | |||
| int | t, | |||
| char * | text, | |||
| void(*)(int) | cb | |||
| ) | [inline] |
Constructor takes parameters such as:
x/y position of a push button
width/height of a push button
-1 if normal button or 0/1 as state of a toggle button
| char* PushButton::text |
button description
| void(* PushButton::cb)(int) |
button callback function. Takes a function pointer.
1.5.1