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

View file

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