diff options
author | Thomas White <taw@bitwiz.org.uk> | 2012-10-08 21:09:16 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2012-10-08 21:09:16 +0200 |
commit | 43f4a4df59d960442df2faedfd50e5c7c7a55d99 (patch) | |
tree | 2ee01715b93ae567a01854485299ac33c6878131 /src/layout.h | |
parent | d52c17c36ada874e6a0702808577a603331af095 (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/layout.h')
-rw-r--r-- | src/layout.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/layout.h b/src/layout.h index e389d67..b35a532 100644 --- a/src/layout.h +++ b/src/layout.h @@ -28,6 +28,20 @@ #endif +typedef enum +{ + DIR_NONE, + DIR_UL, + DIR_U, + DIR_UR, + DIR_R, + DIR_DR, + DIR_D, + DIR_DL, + DIR_L +} Direction; + + struct layout_parameters { double margin_l; @@ -39,11 +53,17 @@ struct layout_parameters double pad_r; double pad_t; double pad_b; + + Direction grav; + + double min_w; + double min_h; }; /* Calculate layout for frame (and all its children) based on size */ -extern void layout_frame(struct frame *fr, double w, double h); +extern void layout_frame(struct frame *fr, double w, double h, + PangoContext *pc); #endif /* LAYOUT_H */ |