Subversion Repositories Kolibri OS

Rev

Rev 3068 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3068 Rev 3248
Line 1... Line 1...
1
#ifndef __CONTROL_H__
1
#ifndef __CONTROL_H__
2
#define __CONTROL_H_
2
#define __CONTROL_H_
Line -... Line 3...
-
 
3
 
3
 
4
#include 
Line 4... Line 5...
4
#include "link.h"
5
#include "link.h"
5
 
6
 
6
typedef struct
7
typedef struct
Line 11... Line 12...
11
  int  b;
12
  int  b;
12
}rect_t;
13
}rect_t;
Line 13... Line 14...
13
 
14
 
14
typedef struct ctx
15
typedef struct ctx
15
{
16
{
16
  void    *pixmap;
-
 
17
  int      stride;
17
  bitmap_t *pixmap;
18
  int      offset_x;
18
  int      offset_x;
19
  int      offset_y;
19
  int      offset_y;
Line 20... Line 20...
20
}ctx_t;
20
}ctx_t;
Line 199... Line 199...
199
 
199
 
Line 200... Line 200...
200
ctrl_t *get_child(ctrl_t *ctrl, int x, int y);
200
ctrl_t *get_child(ctrl_t *ctrl, int x, int y);
Line -... Line 201...
-
 
201
 
-
 
202
ctrl_t *capture_mouse(ctrl_t *newm);
-
 
203
 
-
 
204
void blit_raw(ctx_t *ctx, void *raw, int x, int y, int w, int h, int pitch);
-
 
205
 
-
 
206
#define __ALIGN_MASK(x,mask)  (((x)+(mask))&~(mask))
201
 
207
#define ALIGN(x,a)            __ALIGN_MASK(x,(typeof(x))(a)-1)