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.
Button.h
00001 #pragma once 00002 00003 #include "NextionUI.h" 00004 00005 #include <cstdint> 00006 #include <functional> 00007 #include <string> 00008 00009 class NextionSerial; 00010 00011 class Button : public NextionUI 00012 { 00013 public: 00014 explicit Button(uint32_t aPage, uint32_t aId, const std::string& aObjectName, NextionSerial& aNextionSerial); 00015 00016 void SetPushCallback(std::function<void()> aPushCallback); 00017 void SetReleaseCallback(std::function<void()> aReleaseCallback); 00018 00019 void PressReleaseTriggered(TEventType aEventType) override; 00020 00021 private: 00022 std::function<void()> iPushCallback {nullptr}; 00023 std::function<void()> iReleaseCallback {nullptr}; 00024 }; 00025
Generated on Wed Jul 13 2022 10:35:08 by
1.7.2