aboutsummaryrefslogtreecommitdiff
path: root/src/layout.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout.h')
-rw-r--r--src/layout.h22
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 */