From 2c3bacd1ed7f68e407766d96fa3da72b08674d21 Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Fri, 24 Dec 2021 02:12:55 +0100 Subject: WIP c implementation --- src_c/common.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src_c/common.h') diff --git a/src_c/common.h b/src_c/common.h index 42fed63..660932f 100644 --- a/src_c/common.h +++ b/src_c/common.h @@ -36,6 +36,9 @@ typedef struct { opcut_str_t id; double width; double height; + + // internal + double area; } opcut_panel_t; typedef struct { @@ -43,6 +46,9 @@ typedef struct { double width; double height; bool can_rotate; + + // internal + double area; } opcut_item_t; typedef struct { @@ -68,6 +74,10 @@ typedef struct { double height; double x; double y; + + // internal + double area; + bool initial; } opcut_unused_t; typedef struct { @@ -76,6 +86,9 @@ typedef struct { size_t used_len; opcut_unused_t *unused; size_t unused_len; + + // internal + double panels_area; } opcut_result_t; -- cgit v1.2.3-70-g09d2