#ifndef BEATRAT_CONFIRM_H
#define BEATRAT_CONFIRM_H

#include <X11/Xlib.h>
#include <stdarg.h>

typedef struct {
    char message[300];
} ConfirmDialog;

#define CONFIRM_BOX_W    460
#define CONFIRM_BOX_H    120
#define CONFIRM_YES_BTN_X 100
#define CONFIRM_NO_BTN_X  260
#define CONFIRM_BTN_Y     80
#define CONFIRM_BTN_W     80
#define CONFIRM_BTN_H     26

void confirm_set_message(ConfirmDialog *cd, const char *fmt, ...)
    __attribute__((format(printf, 2, 3)));

void confirm_draw(const ConfirmDialog *cd, Display *dpy, Window win, GC gc, int win_w, int win_h);

#endif
