I decided that using 4 SPACES is better than mixing with tabs.

This commit is contained in:
2025-10-18 18:18:29 +02:00
parent e958fcdafe
commit f5faf5ae8c
4 changed files with 182 additions and 177 deletions

27
box.h
View File

@@ -24,22 +24,22 @@ struct box {
double fills;
union {
/* button */
char *name;
/* button */
char *name;
/* chart and vertical/horizontal box */
struct {
/* chart and vertical/horizontal box */
size_t length;
/* chart and vertical/horizontal box */
struct {
/* chart and vertical/horizontal box */
size_t length;
union {
/* vertical/horizontal box */
struct box **children;
union {
/* vertical/horizontal box */
struct box **children;
/* chart */
double *prices;
};
};
/* chart */
double *prices;
};
};
};
};
@@ -49,5 +49,6 @@ struct box *new_vertical_box(void);
struct box *new_horizontal_box(void);
struct box *new_chart_box(void);
void append_box(struct box *parent, struct box *child);
void draw_box(struct box *, double x, double y, double width, double height);