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
18
draw.h
18
draw.h
|
@ -30,6 +30,19 @@
|
||||||
#include "image.h"
|
#include "image.h"
|
||||||
#include "common/array.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
|
typedef struct
|
||||||
{
|
{
|
||||||
unsigned initialized : 1;
|
unsigned initialized : 1;
|
||||||
|
@ -148,10 +161,7 @@ typedef struct
|
||||||
PangoAttrList *attr_list;
|
PangoAttrList *attr_list;
|
||||||
char *text;
|
char *text;
|
||||||
ssize_t len;
|
ssize_t len;
|
||||||
struct
|
padding_t margin;
|
||||||
{
|
|
||||||
int left, right, top;
|
|
||||||
} margin;
|
|
||||||
struct
|
struct
|
||||||
{
|
{
|
||||||
int top, left;
|
int top, left;
|
||||||
|
|
13
structs.h
13
structs.h
|
@ -244,19 +244,6 @@ struct tag
|
||||||
};
|
};
|
||||||
ARRAY_TYPE(tag_t *, 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
|
typedef struct
|
||||||
{
|
{
|
||||||
/** Screen index */
|
/** Screen index */
|
||||||
|
|
Loading…
Reference in New Issue