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:
parent
51a1bc21af
commit
f1414a125f
@ -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 widget’s width
|
||||
* @height: the widget’s height
|
||||
* @halign: the widget’s horizontal alignment
|
||||
* @valign: the widget’s horizontal alignment
|
||||
* @margin: the widget’s #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;
|
||||
|
@ -36,6 +36,27 @@ G_BEGIN_DECLS
|
||||
|
||||
#define GTK_STATE_FLAGS_BITS 12
|
||||
|
||||
/**
|
||||
* GtkWidgetAuxInfo:
|
||||
* @width: the widget’s width
|
||||
* @height: the widget’s height
|
||||
* @halign: the widget’s horizontal alignment
|
||||
* @valign: the widget’s horizontal alignment
|
||||
* @margin: the widget’s #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
|
||||
|
Loading…
Reference in New Issue
Block a user