Initial public release: fresh history
This commit is contained in:
25
include/ui.h
Normal file
25
include/ui.h
Normal file
@@ -0,0 +1,25 @@
|
||||
#ifndef UI_H
|
||||
#define UI_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "fb.h"
|
||||
|
||||
#ifndef FONT_SCALE
|
||||
#define FONT_SCALE 2
|
||||
#endif
|
||||
|
||||
/* Enable/disable cmatrix background animation. */
|
||||
void ui_set_cmatrix(int flag);
|
||||
|
||||
/* Draw login screen. If focus_on_password!=0, password box is highlighted. */
|
||||
void ui_draw_login(framebuffer_t *fb,
|
||||
const char *username,
|
||||
const char *password,
|
||||
int focus_on_password);
|
||||
|
||||
void ui_draw_error(framebuffer_t *fb, const char *message);
|
||||
void ui_draw_welcome(framebuffer_t *fb, const char *username);
|
||||
void ui_draw_message(framebuffer_t *fb, const char *msg);
|
||||
|
||||
#endif /* UI_H */
|
||||
|
||||
Reference in New Issue
Block a user