aboutsummaryrefslogtreecommitdiff
path: root/ui_ani.h
blob: 15962ae5709a94466c38aabac3f0bacca85d1566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef UI_ANIC_H
#define UI_ANIC_H 1

#include <ncurses.h>


struct anic {
  unsigned int x;
  unsigned int y;
  char state;
  char *fmt;
  chtype attrs;
};

struct anic *
init_anic(unsigned int x, unsigned int y, chtype attrs, char *fmt);

void
free_anic(struct anic *a);

int
anic_cb(WINDOW *win, void *data, bool timed_out);

void
register_anic(struct anic *a);

#endif