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.
NextionUI.h
- Committer:
- Ocky Kristanto
- Date:
- 2021-03-03
- Revision:
- 0:87b7b2ae63c3
File content as of revision 0:87b7b2ae63c3:
#pragma once
#include <cstdint>
#include <string>
class NextionSerial;
enum class TEventType
{
EPress,
ERelease
};
class NextionUI
{
public:
explicit NextionUI(uint32_t aPage, uint32_t aId, const std::string& aObjectName, NextionSerial& aSerialHandler);
virtual ~NextionUI() = default;
uint32_t GetPage() const;
uint32_t GetId() const;
virtual void PressReleaseTriggered(TEventType aEventType);
protected:
uint32_t iPage;
uint32_t iId;
std::string iObjectName;
NextionSerial& iNextionSerial;
};