Subversion Repositories freemyipod

Rev

Rev 504 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
504 theseven 1
//
2
//
3
//    Copyright 2011 TheSeven
4
//
5
//
6
//    This file is part of emCORE.
7
//
8
//    emCORE is free software: you can redistribute it and/or
9
//    modify it under the terms of the GNU General Public License as
10
//    published by the Free Software Foundation, either version 2 of the
11
//    License, or (at your option) any later version.
12
//
13
//    emCORE is distributed in the hope that it will be useful,
14
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
//    See the GNU General Public License for more details.
17
//
18
//    You should have received a copy of the GNU General Public License along
19
//    with emCORE.  If not, see <http://www.gnu.org/licenses/>.
20
//
21
//
22
 
23
 
24
#ifndef __LIBUI_H__
25
#define __LIBUI_H__
26
 
27
 
28
struct libui_buffer
29
{
30
    void* addr;
31
    int stride;
32
};
509 theseven 33
#define LIBUI_BUFFER(a, b) \
34
{                          \
35
    .addr = a,             \
36
    .stride = b            \
37
}
504 theseven 38
 
39
struct libui_point
40
{
41
    int x;
42
    int y;
43
};
509 theseven 44
#define LIBUI_POINT(a, b) \
45
{                         \
46
    .x = a,               \
47
    .y = b                \
48
}
504 theseven 49
 
50
struct libui_box
51
{
52
    struct libui_point pos;
53
    struct libui_point size;
54
};
509 theseven 55
#define LIBUI_BOX(a, b) \
56
{                       \
57
    .pos = a,           \
58
    .size = b           \
59
}
504 theseven 60
 
61
struct libui_location
62
{
63
    struct libui_buffer buf;
64
    struct libui_point pos;
65
};
509 theseven 66
#define LIBUI_LOCATION(a, b) \
67
{                            \
68
    .buf = a,                \
69
    .pos = b                 \
70
}
504 theseven 71
 
72
struct libui_surface
73
{
74
    struct libui_location loc;
75
    struct libui_point size;
76
};
509 theseven 77
#define LIBUI_SURFACE(a, b) \
78
{                           \
79
    .loc = a,               \
80
    .size = b               \
81
}
504 theseven 82
 
83
#endif