draw: move padding_t inside and use it for parser data

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-12-02 17:51:57 +01:00
parent 3c304bca07
commit 1d7d3309de
2 changed files with 14 additions and 17 deletions

18
draw.h
View File

@ -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;

View File

@ -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 */