TwiceAsNice
2019-02-18
|
#include <cv-buttons.h>
Public Member Functions | |
CvButtons () | |
Constructor creates button font. More... | |
~CvButtons () | |
Deconstructor clears the button list. More... | |
void | setMouseState (int e, int x, int y, int f) |
Called by cvButtonsOnMouse() when button was pressed. More... | |
void | paintButtons (IplImage *img) |
Paint all buttons to an image. More... | |
void | addButton (PushButton pb) |
Add button to list. More... | |
void | delButton (int pos) |
Delete button from list. More... | |
Private Attributes | |
vector< PushButton > | buttonList |
The list of all buttons in this class. More... | |
int | me |
The last event (mouse state) More... | |
int | mx |
int | my |
int | mf |
CvFont | font |
The font to draw the buttons. More... | |
Class CvButtons
Implements functions to enhance the OpenCV GUI elements
by simple, platform-independet push buttons and toggle elements.
|
inline |
Constructor creates button font.
|
inline |
Deconstructor clears the button list.
|
inline |
Add button to list.
|
inline |
Delete button from list.
void CvButtons::paintButtons | ( | IplImage * | img | ) |
Paint all buttons to an image.
|
inline |
Called by cvButtonsOnMouse() when button was pressed.
|
private |
The list of all buttons in this class.
|
private |
The font to draw the buttons.
|
private |
The last event (mouse state)
|
private |
|
private |
|
private |