-
Notifications
You must be signed in to change notification settings - Fork 12
/
dialog.h
35 lines (29 loc) · 820 Bytes
/
dialog.h
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
28
29
30
31
32
33
34
35
/*
* Komposter
*
* Copyright (c) 2010 Noora Halme et al. (see AUTHORS)
*
* This code is licensed under the GNU General Public
* License version 2. See LICENSE for full text.
*
* Framework for modal dialog windows
*
*/
#ifndef __DIALOG_H__
#define __DIALOG_H__
#include "widgets.h"
int is_dialog(void);
int is_dialogkb(void);
int is_dialogdrag(void);
void dialog_open(void *draw, void *hover, void *click);
void dialog_bindkeyboard(void *kbfunc);
void dialog_bindspecial(void *specialfunc);
void dialog_close(void);
void dialog_draw(void);
void dialog_hover(int x, int y);
void dialog_click(int button, int state, int x, int y);
void dialog_keyboard(unsigned char key, int x, int y);
void dialog_binddrag(void *dragfunc);
void dialog_drag(int x, int y);
void dialog_special(int key, int x, int y);
#endif