AbstractButtonView¶
-
class
mono::ui::
AbstractButtonView
¶ Inherits from mono::ui::ResponderView
Subclassed by mono::ui::OnOffButtonView
Public Functions
- template <typename Owner>
-
void mono::ui::AbstractButtonView::setClickCallback(Owner * obj, void(Owner::*)(void) memPtr)
Attach a member function as the button click handler.
Provide the callback member function you ewant to be called when the button is clicked.
NOTE: THere can only be one callback function
- Parameters
obj
: A pointer to the object where the callback method existsmemPtr
: A pointer to the callback method itself
-
void
setClickCallback
(void (*memPtr)(void))¶ Attach a C function pointeras the button click handler.
Provide a pointer to the callback C function, you ewant to be called when the button is clicked.
NOTE: THere can only be one callback function.
- Parameters
memPtr
: A pointer to the C function callback