mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
draw: move padding_t inside and use it for parser data
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
3c304bca07
commit
1d7d3309de
2 changed files with 14 additions and 17 deletions
18
draw.h
18
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;
|
||||
|
|
13
structs.h
13
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 */
|
||||
|
|
Loading…
Reference in a new issue