Subversion Repositories freemyipod

Rev

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

Rev 504 Rev 509
Line 28... Line 28...
28
struct libui_buffer
28
struct libui_buffer
29
{
29
{
30
    void* addr;
30
    void* addr;
31
    int stride;
31
    int stride;
32
};
32
};
-
 
33
#define LIBUI_BUFFER(a, b) \
-
 
34
{                          \
-
 
35
    .addr = a,             \
-
 
36
    .stride = b            \
-
 
37
}
33
 
38
 
34
struct libui_point
39
struct libui_point
35
{
40
{
36
    int x;
41
    int x;
37
    int y;
42
    int y;
38
};
43
};
-
 
44
#define LIBUI_POINT(a, b) \
-
 
45
{                         \
-
 
46
    .x = a,               \
-
 
47
    .y = b                \
-
 
48
}
39
 
49
 
40
struct libui_box
50
struct libui_box
41
{
51
{
42
    struct libui_point pos;
52
    struct libui_point pos;
43
    struct libui_point size;
53
    struct libui_point size;
44
};
54
};
-
 
55
#define LIBUI_BOX(a, b) \
-
 
56
{                       \
-
 
57
    .pos = a,           \
-
 
58
    .size = b           \
-
 
59
}
45
 
60
 
46
struct libui_location
61
struct libui_location
47
{
62
{
48
    struct libui_buffer buf;
63
    struct libui_buffer buf;
49
    struct libui_point pos;
64
    struct libui_point pos;
50
};
65
};
-
 
66
#define LIBUI_LOCATION(a, b) \
-
 
67
{                            \
-
 
68
    .buf = a,                \
-
 
69
    .pos = b                 \
-
 
70
}
51
 
71
 
52
struct libui_surface
72
struct libui_surface
53
{
73
{
54
    struct libui_location loc;
74
    struct libui_location loc;
55
    struct libui_point size;
75
    struct libui_point size;
56
};
76
};
-
 
77
#define LIBUI_SURFACE(a, b) \
-
 
78
{                           \
-
 
79
    .loc = a,               \
-
 
80
    .size = b               \
-
 
81
}
57
 
82
 
58
#endif
83
#endif