libwallaby  v24
The wallaby standard library
geom.h
Go to the documentation of this file.
1 /*
2  * geom.h
3  *
4  * Created on: Nov 13, 2015
5  * Author: Joshua Southerland
6  */
7 
8 #ifndef INCLUDE_WALLABY_GEOM_H_
9 #define INCLUDE_WALLABY_GEOM_H_
10 
11 
12 #include "export.h"
13 #include "vtable.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 typedef struct point2
20 {
21  int x;
22  int y;
23 } point2;
24 
25 typedef struct point3
26 {
27  int x;
28  int y;
29  int z;
30 } point3;
31 
32 typedef struct rectangle
33 {
34  int ulx;
35  int uly;
36  int width;
37  int height;
38 } rectangle;
39 
40 VF EXPORT_SYM point2 create_point2(int x, int y);
41 VF EXPORT_SYM point3 create_point3(int x, int y, int z);
42 VF EXPORT_SYM rectangle create_rectangle(int ulx, int uly, int width, int height);
43 
44 VFL
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 
51 #endif /* INCLUDE_WALLABY_GEOM_H_ */
rectangle::width
int width
Definition: geom.h:36
point2
Definition: geom.h:19
point3::y
int y
Definition: geom.h:28
point2::x
int x
Definition: geom.h:21
vtable.h
rectangle::ulx
int ulx
Definition: geom.h:34
rectangle::uly
int uly
Definition: geom.h:35
create_point2
VF EXPORT_SYM point2 create_point2(int x, int y)
create_point3
VF EXPORT_SYM point3 create_point3(int x, int y, int z)
point2
struct point2 point2
point3
struct point3 point3
rectangle
Definition: geom.h:32
point3::x
int x
Definition: geom.h:27
rectangle
struct rectangle rectangle
point2::y
int y
Definition: geom.h:22
VFL
#define VFL
Definition: vtable.h:20
point3
Definition: geom.h:25
EXPORT_SYM
#define EXPORT_SYM
Definition: export.h:14
rectangle::height
int height
Definition: geom.h:37
VF
#define VF
Definition: vtable.h:19
create_rectangle
VF EXPORT_SYM rectangle create_rectangle(int ulx, int uly, int width, int height)
point3::z
int z
Definition: geom.h:29
export.h