Initial strict HL bindings for passing Image, Rectangle, Bytes
This commit is contained in:
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user