diff --git a/draw.h b/draw.h index 1be60f52..0953f2ad 100644 --- a/draw.h +++ b/draw.h @@ -30,6 +30,19 @@ #include "image.h" #include "common/array.h" +/** Padding type */ +typedef struct +{ + /** Padding at top */ + int top; + /** Padding at bottom */ + int bottom; + /** Padding at left */ + int left; + /** Padding at right */ + int right; +} padding_t; + typedef struct { unsigned initialized : 1; @@ -148,10 +161,7 @@ typedef struct PangoAttrList *attr_list; char *text; ssize_t len; - struct - { - int left, right, top; - } margin; + padding_t margin; struct { int top, left; diff --git a/structs.h b/structs.h index ae32b7bc..f38ec60b 100644 --- a/structs.h +++ b/structs.h @@ -244,19 +244,6 @@ struct tag }; ARRAY_TYPE(tag_t *, tag) -/** Padding type */ -typedef struct -{ - /** Padding at top */ - int top; - /** Padding at bottom */ - int bottom; - /** Padding at left */ - int left; - /** Padding at right */ - int right; -} padding_t; - typedef struct { /** Screen index */