Use "typedef struct" in ld-diagram-view.c.
This commit is contained in:
parent
b5ff3b5bbb
commit
8aef3fc772
@ -67,32 +67,31 @@ enum
|
|||||||
OPER_MOVE_SELECTION
|
OPER_MOVE_SELECTION
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct _AddObjectData AddObjectData;
|
typedef struct
|
||||||
typedef struct _ConnectData ConnectData;
|
|
||||||
typedef struct _SelectData SelectData;
|
|
||||||
typedef struct _MoveSelectionData MoveSelectionData;
|
|
||||||
|
|
||||||
struct _AddObjectData
|
|
||||||
{
|
{
|
||||||
LdDiagramObject *object;
|
LdDiagramObject *object;
|
||||||
gboolean visible;
|
gboolean visible;
|
||||||
};
|
}
|
||||||
|
AddObjectData;
|
||||||
|
|
||||||
struct _ConnectData
|
typedef struct
|
||||||
{
|
{
|
||||||
LdDiagramConnection *connection;
|
LdDiagramConnection *connection;
|
||||||
LdPoint origin;
|
LdPoint origin;
|
||||||
};
|
}
|
||||||
|
ConnectData;
|
||||||
|
|
||||||
struct _SelectData
|
typedef struct
|
||||||
{
|
{
|
||||||
LdPoint drag_last_pos;
|
LdPoint drag_last_pos;
|
||||||
};
|
}
|
||||||
|
SelectData;
|
||||||
|
|
||||||
struct _MoveSelectionData
|
typedef struct
|
||||||
{
|
{
|
||||||
LdPoint move_origin;
|
LdPoint move_origin;
|
||||||
};
|
}
|
||||||
|
MoveSelectionData;
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
@ -104,15 +103,14 @@ enum
|
|||||||
COLOR_COUNT
|
COLOR_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct _Color Color;
|
typedef struct
|
||||||
|
|
||||||
struct _Color
|
|
||||||
{
|
{
|
||||||
gdouble r;
|
gdouble r;
|
||||||
gdouble g;
|
gdouble g;
|
||||||
gdouble b;
|
gdouble b;
|
||||||
gdouble a;
|
gdouble a;
|
||||||
};
|
}
|
||||||
|
Color;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* LdDiagramViewPrivate:
|
* LdDiagramViewPrivate:
|
||||||
@ -174,15 +172,14 @@ struct _LdDiagramViewPrivate
|
|||||||
* @exposed_rect: the area that is to be redrawn.
|
* @exposed_rect: the area that is to be redrawn.
|
||||||
* @scale: computed size of one diagram unit in pixels.
|
* @scale: computed size of one diagram unit in pixels.
|
||||||
*/
|
*/
|
||||||
typedef struct _DrawData DrawData;
|
typedef struct
|
||||||
|
|
||||||
struct _DrawData
|
|
||||||
{
|
{
|
||||||
LdDiagramView *self;
|
LdDiagramView *self;
|
||||||
cairo_t *cr;
|
cairo_t *cr;
|
||||||
LdRectangle exposed_rect;
|
LdRectangle exposed_rect;
|
||||||
gdouble scale;
|
gdouble scale;
|
||||||
};
|
}
|
||||||
|
DrawData;
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user