Initial strict HL bindings for passing Image, Rectangle, Bytes

This commit is contained in:
Joshua Granick
2018-05-23 19:43:55 -07:00
parent f01e980114
commit 2fe10275e3
12 changed files with 369 additions and 1 deletions

View File

@@ -2,12 +2,24 @@
#define LIME_MATH_RECTANGLE_H
#include <hl.h>
#include <hx/CFFI.h>
namespace lime {
struct HL_Rectangle {
hl_type* type;
double height;
double width;
double x;
double y;
};
class Rectangle {
@@ -16,6 +28,7 @@ namespace lime {
Rectangle ();
Rectangle (double x, double y, double width, double height);
Rectangle (value rect);
Rectangle (HL_Rectangle* rect);
void Contract (double x, double y, double width, double height);
value Value ();