Commit c92b31a0 authored by Lauri Alanko's avatar Lauri Alanko

Another patch to name more GParam-types for gimple.


Another patch to name more GParam-types for gimple.
parent 68e7843c
...@@ -33,6 +33,8 @@ typedef struct _GTile GTile; ...@@ -33,6 +33,8 @@ typedef struct _GTile GTile;
typedef struct _GDrawable GDrawable; typedef struct _GDrawable GDrawable;
typedef struct _GPixelRgn GPixelRgn; typedef struct _GPixelRgn GPixelRgn;
typedef struct _GParamDef GParamDef; typedef struct _GParamDef GParamDef;
typedef struct _GParamColor GParamColor;
typedef struct _GParamRegion GParamRegion;
typedef union _GParamData GParamData; typedef union _GParamData GParamData;
typedef struct _GParam GParam; typedef struct _GParam GParam;
typedef void (* GRunProc) (char *name, typedef void (* GRunProc) (char *name,
...@@ -111,6 +113,21 @@ struct _GParamDef ...@@ -111,6 +113,21 @@ struct _GParamDef
char *description; char *description;
}; };
struct _GParamColor
{
guint8 red;
guint8 green;
guint8 blue;
};
struct _GParamRegion
{
gint32 x;
gint32 y;
gint32 width;
gint32 height;
};
union _GParamData union _GParamData
{ {
gint32 d_int32; gint32 d_int32;
...@@ -123,17 +140,8 @@ union _GParamData ...@@ -123,17 +140,8 @@ union _GParamData
gint8 *d_int8array; gint8 *d_int8array;
gdouble *d_floatarray; gdouble *d_floatarray;
gchar **d_stringarray; gchar **d_stringarray;
struct { GParamColor d_color;
guint8 red; GParamRegion d_region;
guint8 green;
guint8 blue;
} d_color;
struct {
gint32 x;
gint32 y;
gint32 width;
gint32 height;
} d_region;
gint32 d_display; gint32 d_display;
gint32 d_image; gint32 d_image;
gint32 d_layer; gint32 d_layer;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment