35 lines
879 B
C
35 lines
879 B
C
#ifndef MYWIN_USER_BACKLIGHTSET_H__
|
|
#define MYWIN_USER_BACKLIGHTSET_H__
|
|
|
|
#include "mywin_inc.h"
|
|
|
|
// 设置背光的对话框
|
|
|
|
typedef struct {
|
|
WIN_WindowStruct win;
|
|
int press;
|
|
int index;
|
|
char *title;
|
|
int light; // 背光值
|
|
int lightSave; // 用于恢复原始亮度
|
|
int autoLight; // 自动亮度
|
|
int offTime; // 自动熄屏时间,秒
|
|
} WIN_BackLightSetboxStruct;
|
|
|
|
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);
|
|
|
|
// 消息框的绘制函数
|
|
void BACKLIGHTSETBOX_DefaultPaint(WIN_BackLightSetboxStruct *backlightsetbox);
|
|
|
|
// 消息框的消息处理函数
|
|
void BACKLIGHTSETBOX_defaultMsgLoop(WIN_BackLightSetboxStruct *backlightsetbox,
|
|
WIN_MsgStruct *msg);
|
|
|
|
// 显示设置
|
|
int BACKLIGHTSETBOX_BackLightSet(void);
|
|
|
|
#endif
|