aboutsummaryrefslogtreecommitdiff
path: root/src_c/common.h
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2021-12-24 02:12:55 +0100
committerbozo.kopic <bozo@kopic.xyz>2021-12-24 02:12:55 +0100
commit2c3bacd1ed7f68e407766d96fa3da72b08674d21 (patch)
tree19808af52a1bdbc790c523fa5f878ffedcaab8c7 /src_c/common.h
parent1a19c238e3741931db9e61b6a0b79259b5ed0753 (diff)
WIP c implementation
Diffstat (limited to 'src_c/common.h')
-rw-r--r--src_c/common.h13
1 files changed, 13 insertions, 0 deletions
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;