aboutsummaryrefslogtreecommitdiff
path: root/src/presentation.h
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-10-08 21:09:16 +0200
committerThomas White <taw@bitwiz.org.uk>2012-10-08 21:09:16 +0200
commit43f4a4df59d960442df2faedfd50e5c7c7a55d99 (patch)
tree2ee01715b93ae567a01854485299ac33c6878131 /src/presentation.h
parentd52c17c36ada874e6a0702808577a603331af095 (diff)
Create PangoLayout when laying out the frame
Because it's necessary to know how much space the contents take up
Diffstat (limited to 'src/presentation.h')
-rw-r--r--src/presentation.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/presentation.h b/src/presentation.h
index 72a1512..daa016b 100644
--- a/src/presentation.h
+++ b/src/presentation.h
@@ -55,8 +55,6 @@ struct slide
struct frame
{
- PangoContext *pc; /* FIXME: Doesn't belong here */
-
struct frame **rendering_order;
int num_ro;
int max_ro;
@@ -66,12 +64,14 @@ struct frame
struct layout_parameters lop;
struct style *style; /* Non-NULL if 'lop' came from SS */
- /* Location relative to parent, calculated from alignment parameters */
+ /* Location relative to parent, calculated from layout parameters */
double offs_x;
double offs_y;
double w;
double h;
+ PangoLayout *pl;
+
/* True if this frame should be deleted on the next mouse click */
int empty;
};