Document gtk_widget_get_allocated_baseline
This commit is contained in:
@@ -14181,6 +14181,17 @@ gtk_widget_get_allocated_height (GtkWidget *widget)
|
||||
return widget->priv->allocation.height;
|
||||
}
|
||||
|
||||
/**
|
||||
* gtk_widget_get_allocated_baseline:
|
||||
* @widget: the widget to query
|
||||
*
|
||||
* Returns the baseline that has currently been allocated to @widget.
|
||||
* This function is intended to be used when implementing handlers
|
||||
* for the #GtkWidget::draw function, and when allocating child
|
||||
* widgets in #GtkWidget::size_allocate.
|
||||
*
|
||||
* Returns: the baseline of the @widget, or -1 if none
|
||||
**/
|
||||
int
|
||||
gtk_widget_get_allocated_baseline (GtkWidget *widget)
|
||||
{
|
||||
|
||||
@@ -683,6 +683,7 @@ void gtk_widget_unregister_window (GtkWidget *widget,
|
||||
|
||||
int gtk_widget_get_allocated_width (GtkWidget *widget);
|
||||
int gtk_widget_get_allocated_height (GtkWidget *widget);
|
||||
GDK_AVAILABLE_IN_3_10
|
||||
int gtk_widget_get_allocated_baseline (GtkWidget *widget);
|
||||
|
||||
void gtk_widget_get_allocation (GtkWidget *widget,
|
||||
|
||||
Reference in New Issue
Block a user