Move GtkWidgetAuxInfo struct to private headers

There's no API returning such a struct, it is entirely internal.
Therefore, don't expose it in public headers.
This commit is contained in:
Matthias Clasen 2015-09-12 18:36:32 -04:00
parent 51a1bc21af
commit f1414a125f
2 changed files with 21 additions and 20 deletions

View File

@ -66,7 +66,6 @@ typedef enum
typedef struct _GtkWidgetPrivate GtkWidgetPrivate;
typedef struct _GtkWidgetClass GtkWidgetClass;
typedef struct _GtkWidgetClassPrivate GtkWidgetClassPrivate;
typedef struct _GtkWidgetAuxInfo GtkWidgetAuxInfo;
/**
* GtkAllocation:
@ -609,25 +608,6 @@ struct _GtkWidgetClass
void (*_gtk_reserved7) (void);
};
/**
* GtkWidgetAuxInfo:
* @width: the widgets width
* @height: the widgets height
* @halign: the widgets horizontal alignment
* @valign: the widgets horizontal alignment
* @margin: the widgets #GtkBorder margins
*
*/
struct _GtkWidgetAuxInfo
{
gint width;
gint height;
guint halign : 4;
guint valign : 4;
GtkBorder margin;
};
GDK_AVAILABLE_IN_ALL
GType gtk_widget_get_type (void) G_GNUC_CONST;

View File

@ -36,6 +36,27 @@ G_BEGIN_DECLS
#define GTK_STATE_FLAGS_BITS 12
/**
* GtkWidgetAuxInfo:
* @width: the widgets width
* @height: the widgets height
* @halign: the widgets horizontal alignment
* @valign: the widgets horizontal alignment
* @margin: the widgets #GtkBorder margins
*
*/
typedef struct _GtkWidgetAuxInfo GtkWidgetAuxInfo;
struct _GtkWidgetAuxInfo
{
gint width;
gint height;
guint halign : 4;
guint valign : 4;
GtkBorder margin;
};
struct _GtkWidgetPrivate
{
/* The state of the widget. Needs to be able to hold all GtkStateFlags bits