#include <math.h>
#include <stdio.h>
#include <string.h>
#include "mquickjs_build.h"
static const JSPropDef js_rectangle_proto[] = {
JS_CGETSET_DEF("x", js_rectangle_get_x, NULL ),
JS_CGETSET_DEF("y", js_rectangle_get_y, NULL ),
JS_PROP_END,
};
static const JSPropDef js_rectangle[] = {
JS_CFUNC_DEF("getClosure", 1, js_rectangle_getClosure ),
JS_CFUNC_DEF("call", 2, js_rectangle_call ),
JS_PROP_END,
};
static const JSClassDef js_rectangle_class =
JS_CLASS_DEF("Rectangle", 2, js_rectangle_constructor, JS_CLASS_RECTANGLE, js_rectangle, js_rectangle_proto, NULL, js_rectangle_finalizer);
static const JSPropDef js_filled_rectangle_proto[] = {
JS_CGETSET_DEF("color", js_filled_rectangle_get_color, NULL ),
JS_PROP_END,
};
static const JSClassDef js_filled_rectangle_class =
JS_CLASS_DEF("FilledRectangle", 3, js_filled_rectangle_constructor, JS_CLASS_FILLED_RECTANGLE, NULL, js_filled_rectangle_proto, &js_rectangle_class, js_filled_rectangle_finalizer);
#define CONFIG_CLASS_EXAMPLE
#include "mqjs_stdlib.c"