You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
477 B

#pragma once
#include <stdint.h>
#include <functional>
#include "uicontroler/tjc/tjc_base_type.h"
#include "appevent_type.hpp"
/**
*
* @注意
* 下面这个结构不易定义过大,否则容易造成栈溢出
*/
// typedef struct {
// } AppEvent;
class AppEvent {
public:
AppEventType_t type;
union val {
uint32_t placeholder;
char bleName[20];
char stateDisplayInfo[30];
UIEvent uiEvent;
int32_t pageChangeTo;
} d;
std::function<void()> onfnc;
};