Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. #ifndef __MGTK_TYPES_H
  2. #define __MGTK_TYPES_H
  3.  
  4. typedef struct {
  5.     int x,y;
  6. } GPoint;
  7.  
  8. typedef struct {
  9.     int x,y;
  10.     int w,h;
  11.     inline void Assign(int _x,int _y,int _w,int _h)
  12.     {
  13.      x=_x;
  14.      y=_y;
  15.      w=_w;
  16.      h=_h;
  17.     }
  18. } GRect;
  19.  
  20. #define RGB(r,g,b)      (((b)&0xff)|(((g)&0x00ff)<<8)|(((r)&0x0000ff)<<16))
  21.  
  22. #endif
  23.