2025-06-27 00:32:57 +08:00
|
|
|
|
#ifndef MYWIN_USER_BACKLIGHTSET_H__
|
|
|
|
|
|
#define MYWIN_USER_BACKLIGHTSET_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><C3B1><EFBFBD><EFBFBD>ĶԻ<C4B6><D4BB><EFBFBD>
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
typedef struct {
|
|
|
|
|
|
WIN_WindowStruct win;
|
|
|
|
|
|
int press;
|
|
|
|
|
|
int index;
|
|
|
|
|
|
char *title;
|
|
|
|
|
|
int light; // <20><><EFBFBD><EFBFBD>ֵ
|
|
|
|
|
|
int lightSave; // <20><><EFBFBD>ڻָ<DABB>ԭʼ<D4AD><CABC><EFBFBD><EFBFBD>
|
|
|
|
|
|
int autoLight; // <20>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
int offTime; // <20>Զ<EFBFBD>Ϩ<EFBFBD><CFA8>ʱ<EFBFBD>䣬<EFBFBD><E4A3AC>
|
|
|
|
|
|
} WIN_BackLightSetboxStruct;
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
WIN_BackLightSetboxStruct *WIN_CreatBackLightSetbox(
|
|
|
|
|
|
WIN_WindowStruct *base,
|
|
|
|
|
|
void (*msgLoop)(struct _WIN_WindowStruct *win, WIN_MsgStruct *msg), int x,
|
|
|
|
|
|
int y, int x_size, int y_size);
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
// <20><>Ϣ<EFBFBD><CFA2><EFBFBD>Ļ<EFBFBD><C4BB>ƺ<EFBFBD><C6BA><EFBFBD>
|
|
|
|
|
|
void BACKLIGHTSETBOX_DefaultPaint(WIN_BackLightSetboxStruct *backlightsetbox);
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
// <20><>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
|
void BACKLIGHTSETBOX_defaultMsgLoop(WIN_BackLightSetboxStruct *backlightsetbox,
|
|
|
|
|
|
WIN_MsgStruct *msg);
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
2025-10-18 01:02:27 +08:00
|
|
|
|
// <20><>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD>
|
|
|
|
|
|
int BACKLIGHTSETBOX_BackLightSet(void);
|
2025-06-27 00:32:57 +08:00
|
|
|
|
|
|
|
|
|
|
#endif
|