EmbeddedArtists AB / ewgui

Dependents:   app_emwin1 app_emwin2_pos lpc4088_ebb_gui_emwin

Embed: (wiki syntax)

« Back to documentation index

EwButton Class Reference

EwButton Class Reference

This is a wrapper class for the emwin BUTTON interface. More...

#include <EwButton.h>

Inherits EwWindow.

Public Member Functions

template<typename T >
void setPressedListener (T *tptr, void(T::*mptr)(EwWindow *w))
 Register a member function that will called when the button is pressed.
void setPressedListener (void(*fptr)(EwWindow *w))
 Register a function that will called when the button is pressed.
template<typename T >
void setReleasedListener (T *tptr, void(T::*mptr)(EwWindow *w))
 Register a member function that will called when the button is released.
void setReleasedListener (void(*fptr)(EwWindow *w))
 Register a function that will called when the button is released.
template<typename T >
void setClickedListener (T *tptr, void(T::*mptr)(EwWindow *w))
 Register a member function that will called when the button is clicked.
void setClickedListener (void(*fptr)(EwWindow *w))
 Register a function that will called when the button is clicked.

Detailed Description

This is a wrapper class for the emwin BUTTON interface.

Definition at line 20 of file EwButton.h.


Member Function Documentation

void setClickedListener ( T *  tptr,
void(T::*)(EwWindow *w)  mptr 
)

Register a member function that will called when the button is clicked.

Parameters:
tptrpointer to the object to call the member function on
mptrpointer to the member function to be called

Definition at line 105 of file EwButton.h.

void setClickedListener ( void(*)(EwWindow *w)  fptr )

Register a function that will called when the button is clicked.

Parameters:
fptrA pointer to a void function that will be called when the button is clicked

Definition at line 97 of file EwButton.cpp.

void setPressedListener ( T *  tptr,
void(T::*)(EwWindow *w)  mptr 
)

Register a member function that will called when the button is pressed.

Parameters:
tptrpointer to the object to call the member function on
mptrpointer to the member function to be called

Definition at line 59 of file EwButton.h.

void setPressedListener ( void(*)(EwWindow *w)  fptr )

Register a function that will called when the button is pressed.

Parameters:
fptrA pointer to a void function that will be called when the button is pressed

Definition at line 89 of file EwButton.cpp.

void setReleasedListener ( T *  tptr,
void(T::*)(EwWindow *w)  mptr 
)

Register a member function that will called when the button is released.

Parameters:
tptrpointer to the object to call the member function on
mptrpointer to the member function to be called

Definition at line 82 of file EwButton.h.

void setReleasedListener ( void(*)(EwWindow *w)  fptr )

Register a function that will called when the button is released.

Parameters:
fptrA pointer to a void function that will be called when the button is released

Definition at line 93 of file EwButton.cpp.