aboutsummaryrefslogtreecommitdiff
path: root/src/frame.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-12-04 23:56:09 +0100
committerThomas White <taw@bitwiz.org.uk>2012-12-04 23:56:09 +0100
commit5ed4ab710e8408f3cdad40b91eb8ca60de5f87bc (patch)
tree8737ff4ee2e2360f7657f2572797272a4871900b /src/frame.h
parent1da61dcda8ac5d7e74ac06ba2659af38c55351a3 (diff)
Rendering WIP
Diffstat (limited to 'src/frame.h')
-rw-r--r--src/frame.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/src/frame.h b/src/frame.h
index 80072a2..25368d0 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -28,6 +28,7 @@
#endif
#include <pango/pango.h>
+#include <cairo.h>
typedef enum
@@ -58,25 +59,29 @@ struct layout_parameters
Direction grav;
+ int use_min_w;
double min_w;
+ int use_min_h;
double min_h;
};
struct frame
{
- struct frame **rendering_order;
- int num_ro;
- int max_ro;
+ struct frame **children;
+ int num_children;
+ int max_children;
char *sc; /* Storycode */
+ cairo_surface_t *contents;
+
struct layout_parameters lop;
struct style *style; /* Non-NULL if 'lop' came from SS */
- /* Location relative to parent, calculated from layout parameters */
- double offs_x;
- double offs_y;
+ /* The rectangle allocated to this frame, determined by the renderer */
+ double x;
+ double y;
double w;
double h;