gtk_widget_set_has_tooltip
gtk_widget_trigger_tooltip_query
gtk_widget_get_window
+gtk_widget_get_allocated_width
+gtk_widget_get_allocated_height
gtk_widget_get_allocation
gtk_widget_set_allocation
gtk_widget_get_app_paintable
gtk_widget_freeze_child_notify
gtk_widget_get_accessible
gtk_widget_get_allocation
+gtk_widget_get_allocated_width
+gtk_widget_get_allocated_height
gtk_widget_get_ancestor
gtk_widget_get_app_paintable
#ifndef GTK_DISABLE_DEPRECATED
priv->allocation = *allocation;
}
+/**
+ * gtk_widget_get_allocated_width:
+ * @widget: the widget to query
+ *
+ * Returns the width that has currently been allocated to @widget.
+ * This function is intended to be used when implementing handlers
+ * for the GtkWidget::draw function.
+ *
+ * Returns: the width of the @widget
+ **/
+int
+gtk_widget_get_allocated_width (GtkWidget *widget)
+{
+ g_return_val_if_fail (GTK_IS_WIDGET (widget), 0);
+
+ return widget->priv->allocation.width;
+}
+
+/**
+ * gtk_widget_get_allocated_height:
+ * @widget: the widget to query
+ *
+ * Returns the height that has currently been allocated to @widget.
+ * This function is intended to be used when implementing handlers
+ * for the GtkWidget::draw function.
+ *
+ * Returns: the height of the @widget
+ **/
+int
+gtk_widget_get_allocated_height (GtkWidget *widget)
+{
+ g_return_val_if_fail (GTK_IS_WIDGET (widget), 0);
+
+ return widget->priv->allocation.height;
+}
+
/**
* gtk_widget_get_requisition:
* @widget: a #GtkWidget
GdkWindow *window);
GdkWindow * gtk_widget_get_window (GtkWidget *widget);
+int gtk_widget_get_allocated_width (GtkWidget *widget);
+int gtk_widget_get_allocated_height (GtkWidget *widget);
+
void gtk_widget_get_allocation (GtkWidget *widget,
GtkAllocation *allocation);
void gtk_widget_set_allocation (GtkWidget *widget,