Files
player/Project/Src/MyWin/Window/mywin_inputbox.h

31 lines
804 B
C
Raw Normal View History

2025-06-27 00:32:57 +08:00
#ifndef MYWIN_INPUTBOX_H__
#define MYWIN_INPUTBOX_H__
2025-07-06 18:46:13 +08:00
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>
2025-06-27 00:32:57 +08:00
#define INPUTBOX_MAX_CHAR_NUM 256
2025-07-06 18:46:13 +08:00
typedef struct {
WIN_WindowStruct win;
char inputs[INPUTBOX_MAX_CHAR_NUM];
int press;
u32 color_light;
u32 color_dark;
} WIN_InputboxStruct;
2025-06-27 00:32:57 +08:00
2025-07-06 18:46:13 +08:00
WIN_InputboxStruct *WIN_CreatInputbox(
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
int INPUTBOX_Clear(WIN_InputboxStruct *box);
2025-07-06 18:46:13 +08:00
int INPUTBOX_SetChars(WIN_InputboxStruct *box, char *str);
2025-06-27 00:32:57 +08:00
2025-07-06 18:46:13 +08:00
// Ĭ<><C4AC><EFBFBD><EFBFBD>Ϣ<EFBFBD><CFA2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
void INPUTBOX_DefaultMsgLoop(WIN_InputboxStruct *box, WIN_MsgStruct *msg);
2025-06-27 00:32:57 +08:00
2025-07-06 18:46:13 +08:00
WIN_InputboxStruct *INPUTBOX_InputChars(WIN_WindowStruct *base, int x, int y,
int x_size, int y_size);
2025-06-27 00:32:57 +08:00
#endif