Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: app_emwin1 app_emwin2_pos lpc4088_ebb_gui_emwin
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:
-
tptr pointer to the object to call the member function on mptr pointer 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:
-
fptr A 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:
-
tptr pointer to the object to call the member function on mptr pointer 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:
-
fptr A 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:
-
tptr pointer to the object to call the member function on mptr pointer 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:
-
fptr A pointer to a void function that will be called when the button is released
Definition at line 93 of file EwButton.cpp.
Generated on Tue Jul 12 2022 19:57:49 by
