2025-06-27 00:32:57 +08:00
|
|
|
|
#ifndef MYWIN_USER_BLUETOOTH_H__
|
|
|
|
|
#define MYWIN_USER_BLUETOOTH_H__
|
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
#include "mywin_inc.h"
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
// <20><><EFBFBD><EFBFBD>ÿ<EFBFBD><C3BF><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>
|
2025-06-27 00:32:57 +08:00
|
|
|
|
#define BLUETOOTH_CHARNUM_MAX 30
|
2025-10-18 01:02:27 +08:00
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF>
|
2025-06-27 00:32:57 +08:00
|
|
|
|
#define BLUETOOTH_ITEMNUM_MAX 20
|
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
typedef struct {
|
|
|
|
|
WIN_TouchWinStruct win;
|
|
|
|
|
int power; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
int index; // <20><><EFBFBD><EFBFBD>
|
|
|
|
|
int selectItem; // ѡ<><D1A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ
|
|
|
|
|
int startItem; // <20><>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>Ŀ
|
|
|
|
|
int itemNum; // <20><>Ŀ<EFBFBD><C4BF>
|
|
|
|
|
char *title;
|
|
|
|
|
char item[BLUETOOTH_ITEMNUM_MAX][BLUETOOTH_CHARNUM_MAX];
|
2025-10-18 13:58:40 +08:00
|
|
|
|
uint32_t selectTxtColor;
|
|
|
|
|
uint32_t txtColor;
|
|
|
|
|
uint32_t selectRectColor;
|
|
|
|
|
uint32_t rectColor;
|
2025-10-18 01:02:27 +08:00
|
|
|
|
int press;
|
|
|
|
|
} WIN_BlueToothStruct;
|
|
|
|
|
|
|
|
|
|
WIN_BlueToothStruct *WIN_CreatBlueTooth(
|
|
|
|
|
WIN_WindowStruct *base,
|
|
|
|
|
void (*msgLoop)(struct _WIN_WindowStruct *win, WIN_MsgStruct *msg), int x,
|
|
|
|
|
int y, int x_size, int y_size);
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ
|
|
|
|
|
void BLUETOOTH_AddItem(WIN_BlueToothStruct *bluetooth, char *txt);
|
|
|
|
|
|
|
|
|
|
// <20><>Ϣ<EFBFBD><CFA2><EFBFBD>Ļ<EFBFBD><C4BB>ƺ<EFBFBD><C6BA><EFBFBD>
|
|
|
|
|
void BLUETOOTH_DefaultPaint(WIN_BlueToothStruct *bluetooth);
|
|
|
|
|
|
|
|
|
|
// <20><>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
void BLUETOOTH_defaultMsgLoop(WIN_BlueToothStruct *bluetooth,
|
|
|
|
|
WIN_MsgStruct *msg);
|
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
int BLUETOOTH_BlueToothSet(WIN_WindowStruct *base);
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
|
|
|
|
#endif
|