quakeforge/include/sv_console.h
Bill Currie 817aeb334e [ui] Convert view_t to an ECS entity
Much of the nq/qw HUD system is quite broken, but the basic status bar
seems to be working nicely. As is the console (both client and server).
Possibly the biggest benefit is separating the rendering of HUD elements
from the updating of them, and much less traversing of invisible views
whose only purpose is to control the positioning of the visible views.

The view flow tests are currently disabled until I adapt the flow code
to ECS.

There seems to be a problem with view resizing in that some gravities
don't follow resizing correctly.
2022-11-01 00:40:52 +09:00

26 lines
407 B
C

#ifndef __sv_console_h
#define __sv_console_h
enum {
server_href,
server_view,
server_window,
server_comp_count
};
struct view_s;
typedef struct sv_view_s {
void *win;
void *obj;
void (*draw) (struct view_s view);
void (*setgeometry) (struct view_s view);
} sv_view_t;
typedef struct sv_sbar_s {
int width;
char *text;
} sv_sbar_t;
#endif//__sv_console_h