docs: expand README with design philosophy, features, and architecture sections while adding panel dirty tracking, Xft color caching, and XInput2 mouse distance monitoring
This commit is contained in:
@@ -223,11 +223,13 @@ typedef struct {
|
||||
#define PHASE_OFFSET_CLOCK 2.4f
|
||||
#define PHASE_OFFSET_STATS 3.2f
|
||||
#define PHASE_OFFSET_TOP_MEM 4.0f
|
||||
#define PHASE_OFFSET_TOP_CPU 4.4f
|
||||
#define PHASE_OFFSET_DECORATIONS 4.8f
|
||||
#define PHASE_OFFSET_SYSTRAY 5.6f
|
||||
#define PHASE_OFFSET_NEWS 1.2f
|
||||
#define PHASE_OFFSET_KEY_COUNTER 5.2f
|
||||
#define PHASE_OFFSET_MOUSE_DIST 5.8f
|
||||
#define PHASE_OFFSET_DISK_SPACE 6.2f
|
||||
|
||||
extern DWNState *dwn;
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ struct Panel {
|
||||
int width, height;
|
||||
bool visible;
|
||||
Pixmap buffer;
|
||||
bool dirty;
|
||||
};
|
||||
|
||||
Panel *panel_create(PanelPosition position);
|
||||
@@ -31,6 +32,13 @@ void panels_cleanup(void);
|
||||
|
||||
void panel_render(Panel *panel);
|
||||
void panel_render_all(void);
|
||||
void panel_invalidate(void);
|
||||
void panel_invalidate_taskbar(void);
|
||||
void panel_invalidate_news(void);
|
||||
void panel_set_news_region(int x, int width);
|
||||
void panel_render_news_only(void);
|
||||
bool panel_needs_render(void);
|
||||
bool panel_news_needs_render(void);
|
||||
void panel_render_workspaces(Panel *panel, int x, int *width);
|
||||
void panel_render_taskbar(Panel *panel, int x, int *width);
|
||||
void panel_render_clock(Panel *panel, int x, int *width);
|
||||
|
||||
Reference in New Issue
Block a user