1 /* 2 * Komposter 3 * 4 * Copyright (c) 2010 Noora Halme et al. (see AUTHORS) 5 * 6 * This code is licensed under the GNU General Public 7 * License version 2. See LICENSE for full text. 8 * 9 * Framework for modal dialog windows 10 * 11 */ 12 13 #ifndef __DIALOG_H__ 14 #define __DIALOG_H__ 15 16 #include "widgets.h" 17 18 int is_dialog(void); 19 int is_dialogkb(void); 20 int is_dialogdrag(void); 21 22 void dialog_open(void *draw, void *hover, void *click); 23 void dialog_bindkeyboard(void *kbfunc); 24 void dialog_bindspecial(void *specialfunc); 25 void dialog_close(void); 26 27 void dialog_draw(void); 28 void dialog_hover(int x, int y); 29 void dialog_click(int button, int state, int x, int y); 30 void dialog_keyboard(unsigned char key, int x, int y); 31 void dialog_binddrag(void *dragfunc); 32 void dialog_drag(int x, int y); 33 void dialog_special(int key, int x, int y); 34 35 #endif 36