PushButton Class Reference

Class PushButton
Implements a single push button object.
More...

#include <cv-buttons.h>

List of all members.

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)


Detailed Description

Class PushButton
Implements a single push button object.

Author:
Andreas Geiger

Karlsruhe Institute of Technology

Version:
1.0
Date:
16.07.2007


Constructor & Destructor Documentation

PushButton::PushButton ( int  x,
int  y,
int  w,
int  h,
int  t,
char *  text,
void(*)(int)  cb 
) [inline]

Constructor takes parameters such as:


Member Data Documentation

int PushButton::x_pos

x/y position of a push button

int PushButton::width

width/height of a push button

int PushButton::toggle

-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.


The documentation for this class was generated from the following file:
Generated on Thu Oct 25 12:38:54 2007 for webcam by  doxygen 1.5.1