Subversion Repositories freemyipod

Rev

Rev 509 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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