swim.git
draw.h
/* swim - window manager
* Copyright (C) 2022-2023 ArcNyxx
* see LICENCE file for licensing information */
#ifndef DRAW_H
#define DRAW_H
#include <stdbool.h>
#include <stdint.h>
#include "swim.h"
void drawinit(void);
void drawwide(const char *restrict str, uint16_t max,
uint16_t *restrict width);
void drawrect(const mon_t *mon, clr_t col, bool fill,
uint16_t x, uint16_t y, uint16_t w, uint16_t h);
void drawtext(const mon_t *mon, clr_t bg, clr_t fg, uint16_t x, uint16_t w);
#endif /* DRAW_H */