forked from AuroraMiddleware/gtk
gtk: Tweak GTK_ALIGN_BASELINE docs
This commit is contained in:
parent
ff0909f366
commit
1963ff2951
@ -51,7 +51,8 @@ G_BEGIN_DECLS
|
||||
* or top
|
||||
* @GTK_ALIGN_CENTER: center natural width of widget inside the
|
||||
* allocation
|
||||
* @GTK_ALIGN_BASELINE: align the widget according to the baseline
|
||||
* @GTK_ALIGN_BASELINE: align the widget according to the baseline. See
|
||||
* #GtkWidget
|
||||
*
|
||||
* Controls how a widget deals with extra space in a single (x or y)
|
||||
* dimension.
|
||||
@ -66,8 +67,8 @@ G_BEGIN_DECLS
|
||||
* Note that in horizontal context @GTK_ALIGN_START and @GTK_ALIGN_END
|
||||
* are interpreted relative to text direction.
|
||||
*
|
||||
* GTK_ALIGN_BASELINE support for it is optional for containers and widgets, and
|
||||
* it is only supported for vertical alignment. When its not supported by
|
||||
* @GTK_ALIGN_BASELINE support is optional for containers and widgets, and
|
||||
* it is only supported for vertical alignment. When it's not supported by
|
||||
* a child or a container it is treated as @GTK_ALIGN_FILL.
|
||||
*/
|
||||
typedef enum
|
||||
|
@ -243,7 +243,7 @@
|
||||
* or a baseline assigned to it by the grandparent.
|
||||
*
|
||||
* Baseline alignment support for a widget is also done by the #GtkWidgetClass.measure()
|
||||
* virtual function. It allows you to report a both a minimum and natural
|
||||
* virtual function. It allows you to report both a minimum and natural size.
|
||||
*
|
||||
* If a widget ends up baseline aligned it will be allocated all the space in the parent
|
||||
* as if it was %GTK_ALIGN_FILL, but the selected baseline can be found via gtk_widget_get_allocated_baseline().
|
||||
|
Loading…
Reference in New Issue
Block a user