imtk

diff src/imtk.h @ 5:09b6e8a5dc14

reorganizing the code
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 14 Apr 2011 14:22:20 +0300
parents 00a4ea4ee6dc
children 6d35e6c7b2ca
line diff
     1.1 --- a/src/imtk.h	Sat Mar 05 09:25:27 2011 +0200
     1.2 +++ b/src/imtk.h	Thu Apr 14 14:22:20 2011 +0300
     1.3 @@ -1,16 +1,12 @@
     1.4  #ifndef IMTK_H_
     1.5  #define IMTK_H_
     1.6  
     1.7 +#include <stdlib.h>
     1.8 +
     1.9 +
    1.10  #define IMUID			(__LINE__ << 10)
    1.11  #define IMUID_IDX(i)	((__LINE__ << 10) + ((i) << 1))
    1.12  
    1.13 -enum {
    1.14 -	IMTK_TEXT_COLOR,
    1.15 -	IMTK_BASE_COLOR,
    1.16 -	IMTK_FOCUS_COLOR,
    1.17 -	IMTK_BEVEL_LIT_COLOR,
    1.18 -	IMTK_BEVEL_SHAD_COLOR
    1.19 -};
    1.20  
    1.21  /* key/button state enum */
    1.22  enum {
    1.23 @@ -24,13 +20,13 @@
    1.24  	IMTK_RIGHT_BUTTON
    1.25  };
    1.26  
    1.27 -void imtk_set_color(int col, float r, float g, float b);
    1.28 -
    1.29  void imtk_inp_key(int key, int state);
    1.30  void imtk_inp_mouse(int bn, int state);
    1.31  void imtk_inp_motion(int x, int y);
    1.32  void imtk_inp_reshape(int x, int y);
    1.33  
    1.34 +void imtk_post_redisplay(void);
    1.35 +
    1.36  void imtk_begin(void);
    1.37  void imtk_end(void);
    1.38