G_BEGIN_DECLS
-/* Anchor types */
-typedef enum
-{
- GTK_ANCHOR_CENTER,
- GTK_ANCHOR_NORTH,
- GTK_ANCHOR_NORTH_WEST,
- GTK_ANCHOR_NORTH_EAST,
- GTK_ANCHOR_SOUTH,
- GTK_ANCHOR_SOUTH_WEST,
- GTK_ANCHOR_SOUTH_EAST,
- GTK_ANCHOR_WEST,
- GTK_ANCHOR_EAST,
- GTK_ANCHOR_N = GTK_ANCHOR_NORTH,
- GTK_ANCHOR_NW = GTK_ANCHOR_NORTH_WEST,
- GTK_ANCHOR_NE = GTK_ANCHOR_NORTH_EAST,
- GTK_ANCHOR_S = GTK_ANCHOR_SOUTH,
- GTK_ANCHOR_SW = GTK_ANCHOR_SOUTH_WEST,
- GTK_ANCHOR_SE = GTK_ANCHOR_SOUTH_EAST,
- GTK_ANCHOR_W = GTK_ANCHOR_WEST,
- GTK_ANCHOR_E = GTK_ANCHOR_EAST
-} GtkAnchorType;
+/**
+ * GtkAlign:
+ * @GTK_ALIGN_FILL: stretch to fill all space if possible, center if
+ * no meaningful way to stretch
+ * @GTK_ALIGN_START: snap to left or top side, leaving space on right
+ * or bottom
+ * @GTK_ALIGN_END: snap to right or bottom side, leaving space on left
+ * or top
+ * @GTK_ALIGN_CENTER: center natural width of widget inside the
+ * allocation
+ *
+ * Controls how a widget deals with extra space in a single (x or y)
+ * dimension.
+ *
+ * Alignment only matters if the widget receives a "too large" allocation,
+ * for example if you packed the widget with the #GtkWidget:expand
+ * flag inside a #GtkBox, then the widget might get extra space. If
+ * you have for example a 16x16 icon inside a 32x32 space, the icon
+ * could be scaled and stretched, it could be centered, or it could be
+ * positioned to one side of the space.
+ */
+typedef enum
+{
+ GTK_ALIGN_FILL,
+ GTK_ALIGN_START,
+ GTK_ALIGN_END,
+ GTK_ALIGN_CENTER
+} GtkAlign;
/* Arrow placement */
typedef enum
GTK_MESSAGE_OTHER
} GtkMessageType;
-typedef enum
-{
- GTK_PIXELS,
- GTK_INCHES,
- GTK_CENTIMETERS
-} GtkMetricType;
-
/**
* GtkMovementStep:
* @GTK_MOVEMENT_LOGICAL_POSITIONS: Move forward or back by graphemes
GTK_UPDATE_DELAYED
} GtkUpdateType;
-/* Generic visibility flags */
-typedef enum
-{
- GTK_VISIBILITY_NONE,
- GTK_VISIBILITY_PARTIAL,
- GTK_VISIBILITY_FULL
-} GtkVisibility;
-
/* Window position types */
typedef enum
{
GTK_UNIT_MM
} GtkUnit;
+/**
+ * GtkTreeViewGridLines:
+ * @GTK_TREE_VIEW_GRID_LINES_NONE: No grid lines.
+ * @GTK_TREE_VIEW_GRID_LINES_HORIZONTAL: Horizontal grid lines.
+ * @GTK_TREE_VIEW_GRID_LINES_VERTICAL: Vertical grid lines.
+ * @GTK_TREE_VIEW_GRID_LINES_BOTH: Horizontal and vertical grid lines.
+ *
+ * Used to indicate which grid lines to draw in a tree view.
+ */
typedef enum
{
GTK_TREE_VIEW_GRID_LINES_NONE,
GTK_SIZE_REQUEST_WIDTH_FOR_HEIGHT
} GtkSizeRequestMode;
-
/**
- * GtkWrapAllocationMode:
- * @GTK_WRAP_ALLOCATE_FREE: Items wrap freely in the box's orientation
- * @GTK_WRAP_ALLOCATE_ALIGNED: Items are aligned into rows and columns
- * @GTK_WRAP_ALLOCATE_HOMOGENEOUS: Items are all allocated the same size
+ * GtkScrollablePolicy:
+ * @GTK_SCROLL_MINIMUM: Scrollable adjustments are based on the minimum size
+ * @GTK_SCROLL_NATURAL: Scrollable adjustments are based on the natural size
*
- * Describes how an #GtkWrapBox positions its children.
+ * Defines the policy to be used in a scrollable widget when updating
+ * the scrolled window adjustments in a given orientation.
*/
-typedef enum {
- GTK_WRAP_ALLOCATE_FREE = 0,
- GTK_WRAP_ALLOCATE_ALIGNED,
- GTK_WRAP_ALLOCATE_HOMOGENEOUS
-} GtkWrapAllocationMode;
-
-/**
- * GtkWrapBoxSpreading:
- * @GTK_WRAP_BOX_SPREAD_BEGIN: Items are allocated no more than their natural size
- * in the layout's orientation and any extra space is left trailing at
- * the end of each line.
- * @GTK_WRAP_BOX_SPREAD_END: Items are allocated no more than their natural size
- * in the layout's orientation and any extra space skipped at the beginning
- * of each line.
- * @GTK_WRAP_BOX_SPREAD_EVEN: Items are allocated no more than their natural size
- * in the layout's orientation and any extra space is evenly distributed
- * between children.
- * @GTK_WRAP_BOX_SPREAD_EXPAND: Items share the extra space evenly (or among children that 'expand' when
- * in %GTK_WRAP_ALLOCATE_FREE mode.
- *
- * Describes how an #GtkWrapBox deals with extra space when allocating children.
- *
- * The box always tries to fit as many children at their natural size
- * in the given orentation as possible with the exception of fitting "minimum-line-children"
- * items into the available size. When the available size is larger than
- * the size needed to fit a given number of children at their natural size
- * then extra space is available to distribute among children. The
- * #GtkWrapBoxSpreading option describes what to do with this space.
- *
- */
-typedef enum {
- GTK_WRAP_BOX_SPREAD_BEGIN = 0,
- GTK_WRAP_BOX_SPREAD_END,
- GTK_WRAP_BOX_SPREAD_EVEN,
- GTK_WRAP_BOX_SPREAD_EXPAND
-} GtkWrapBoxSpreading;
-
+typedef enum
+{
+ GTK_SCROLL_MINIMUM = 0,
+ GTK_SCROLL_NATURAL
+} GtkScrollablePolicy;
G_END_DECLS
+
#endif /* __GTK_ENUMS_H__ */