imtk

diff src/imtk.h @ 7:6d35e6c7b2ca

reorganization finished
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 14 Apr 2011 23:04:07 +0300
parents 09b6e8a5dc14
children 467a520f5c00
line diff
     1.1 --- a/src/imtk.h	Thu Apr 14 14:22:42 2011 +0300
     1.2 +++ b/src/imtk.h	Thu Apr 14 23:04:07 2011 +0300
     1.3 @@ -20,10 +20,18 @@
     1.4  	IMTK_RIGHT_BUTTON
     1.5  };
     1.6  
     1.7 +
     1.8 +#ifdef __cplusplus
     1.9 +extern "C" {
    1.10 +#endif
    1.11 +
    1.12 +
    1.13  void imtk_inp_key(int key, int state);
    1.14  void imtk_inp_mouse(int bn, int state);
    1.15  void imtk_inp_motion(int x, int y);
    1.16 -void imtk_inp_reshape(int x, int y);
    1.17 +
    1.18 +void imtk_set_viewport(int x, int y);
    1.19 +void imtk_get_viewport(int *width, int *height);
    1.20  
    1.21  void imtk_post_redisplay(void);
    1.22  
    1.23 @@ -35,11 +43,19 @@
    1.24  void imtk_textbox(int id, char *textbuf, size_t buf_sz, int x, int y);
    1.25  float imtk_slider(int id, float pos, float min, float max, int x, int y);
    1.26  void imtk_progress(int id, float pos, int x, int y);
    1.27 +/*
    1.28  int imtk_listbox(int id, const char *list, int sel, int x, int y);
    1.29  int imtk_combobox(int id, char *textbuf, size_t buf_sz, const char *list, int sel, int x, int y);
    1.30 +*/
    1.31  
    1.32  /* helper functions to create and destroy item lists for listboxes and comboboxes */
    1.33 +/*
    1.34  char *imtk_create_list(const char *first, ...);
    1.35  void imtk_free_list(char *list);
    1.36 +*/
    1.37 +
    1.38 +#ifdef __cplusplus
    1.39 +}
    1.40 +#endif
    1.41  
    1.42  #endif	/* IMTK_H_ */