forked from AuroraMiddleware/gtk
85c05a86c0
Mon Dec 8 10:54:44 2003 Owen Taylor <otaylor@redhat.com> * === Released 2.3.1 === * NEWS: Updates for 2.3.1 * configure.in: Version 2.3.1, interface age 0, binary age 301. * gtk/gtkmenuitem.c (gtk_menu_item_can_activate_accel): Rename from gtk_menu_item_real_can_activate_accel() to match GTK+ convention, improve comment. * gtk/gtkwidget.c: Document gtk_widget_can_activate_accel(), can ::can-activate-accel signal. * gtk/gtkwidget.c (closure_accel_activate): Fix spelling in comment. * gtk/gtkmenu.c (gtk_menu_real_can_activate_accel): Clean up comment. * gtk/gtkcellview{,menuitem}.[ch]: Move GET_PRIVATE() macros into the .c file. Mon Dec 8 12:09:21 2003 Owen Taylor <otaylor@redhat.com> * gtk/gtkicontheme.c (find_builtin_icon): Fix a missing 'else'. (#128816, Jorn Baayen)
86 lines
2.1 KiB
Plaintext
86 lines
2.1 KiB
Plaintext
<!-- ##### SECTION Title ##### -->
|
|
GtkAspectFrame
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
A frame that constrains its child to a particular aspect ratio.
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
<para>
|
|
The #GtkAspectFrame is useful when you want
|
|
pack a widget so that it can resize but always retains
|
|
the same aspect ratio. For instance, one might be
|
|
drawing a small preview of a larger image. #GtkAspectFrame
|
|
derives from #GtkFrame, so it can draw a label and
|
|
a frame around the child. The frame will be
|
|
"shrink-wrapped" to the size of the child.
|
|
</para>
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
<!-- ##### STRUCT GtkAspectFrame ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
|
<!-- ##### ARG GtkAspectFrame:obey-child ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
<!-- ##### ARG GtkAspectFrame:ratio ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
<!-- ##### ARG GtkAspectFrame:xalign ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
<!-- ##### ARG GtkAspectFrame:yalign ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
<!-- ##### FUNCTION gtk_aspect_frame_new ##### -->
|
|
<para>
|
|
Create a new #GtkAspectFrame.
|
|
</para>
|
|
|
|
@label: Label text.
|
|
@xalign: Horizontal alignment of the child within the allocation of
|
|
the #GtkAspectFrame. This ranges from 0.0 (left aligned)
|
|
to 1.0 (right aligned)
|
|
@yalign: Vertical alignment of the child within the allocation of
|
|
the #GtkAspectFrame. This ranges from 0.0 (left aligned)
|
|
to 1.0 (right aligned)
|
|
@ratio: The desired aspect ratio.
|
|
@obey_child: If %TRUE, @ratio is ignored, and the aspect
|
|
ratio is taken from the requistion of the child.
|
|
@Returns: the new #GtkAspectFrame.
|
|
<!-- # Unused Parameters # -->
|
|
@ratio: The desired aspect ratio.
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_aspect_frame_set ##### -->
|
|
<para>
|
|
Set parameters for an existing #GtkAspectFrame.
|
|
</para>
|
|
|
|
@aspect_frame: a #GtkAspectFrame
|
|
@xalign: Horizontal alignment of the child within the allocation of
|
|
the #GtkAspectFrame. This ranges from 0.0 (left aligned)
|
|
to 1.0 (right aligned)
|
|
@yalign: Vertical alignment of the child within the allocation of
|
|
the #GtkAspectFrame. This ranges from 0.0 (left aligned)
|
|
to 1.0 (right aligned)
|
|
@ratio: The desired aspect ratio.
|
|
@obey_child: If %TRUE, @ratio is ignored, and the aspect
|
|
ratio is taken from the requistion of the child.
|
|
|
|
|