forked from AuroraMiddleware/gtk
356df7f650
Thu Oct 23 21:55:10 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbar.c (gtk_toolbar_highlight_drop_location): Make this function take an index and a GtkToolItem. * tests/testtoolbar.c (main): Make "Show Arrow" default to true. Make one of the separators !draw and expand. Update for new highlight_drop_location() API. * gtk/gtktoolitem.[ch]: Remove "pack_end" property * gtk/gtktoolbar.h: Formatting fixes. * gtk/gtktoolbar.c: Remove "pack_end" child property. Allow separator tool items to expand. (logical_to_physical, physical_to_logical): Fix off-by-one errors (Fix #125472, Marco Pesenti Gritti) * gtk/gtkseparatortoolitem.[ch]: Add new "draw" property. (gtk_separator_tool_item_expose) only draw if "draw" is TRUE. Also return FALSE, not TRUE. (gtk_separator_too_item_{set|get}_property, (gtk_separator_tool_item_{set|get}_draw): new functions
90 lines
2.3 KiB
Plaintext
90 lines
2.3 KiB
Plaintext
<!-- ##### SECTION Title ##### -->
|
|
GtkArrow
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
produces an arrow pointing in one of the four cardinal directions.
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
<para>
|
|
GtkArrow should be used to draw simple arrows that need to point in
|
|
one of the four cardinal directions (up, down, left, or right). The
|
|
style of the arrow can be one of shadow in, shadow out, etched in, or
|
|
etched out. Note that these directions and style types may be
|
|
ammended in versions of Gtk to come.
|
|
</para>
|
|
<para>
|
|
GtkArrow will fill any space alloted to it, but since it is inherited
|
|
from #GtkMisc, it can be padded and/or aligned, to fill exactly the
|
|
space the programmer desires.
|
|
</para>
|
|
<para>
|
|
Arrows are created with a call to gtk_arrow_new(). The direction or
|
|
style of an arrow can be changed after creation by using gtk_arrow_set().
|
|
</para>
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
<para>
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
<term>gtk_paint_arrow()</term>
|
|
<listitem><para>the function used internally to paint the arrow.</para></listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
</para>
|
|
|
|
<!-- ##### STRUCT GtkArrow ##### -->
|
|
<para>
|
|
The #GtkArrow-struct containes the following fields.
|
|
(These fields should be considered read-only. They should never be set by
|
|
an application.)
|
|
|
|
<informaltable pgwide="1" frame="none" role="struct">
|
|
<tgroup cols="2"><colspec colwidth="2*"/><colspec colwidth="8*"/>
|
|
<tbody>
|
|
|
|
<row>
|
|
<entry>#gint16 <structfield>arrow_type</structfield>;</entry>
|
|
<entry>the direction of the arrow, one of #GtkArrowType.</entry>
|
|
</row>
|
|
|
|
<row>
|
|
<entry>#gint16 <structfield>shadow_type</structfield>;</entry>
|
|
<entry>the style of the arrow, one of #GtkShadowType.</entry>
|
|
</row>
|
|
</tbody></tgroup></informaltable>
|
|
</para>
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_arrow_new ##### -->
|
|
<para>
|
|
Creates a new arrow widget.
|
|
</para>
|
|
|
|
@arrow_type: a valid #GtkArrowType.
|
|
@shadow_type: a valid #GtkShadowType.
|
|
@Returns: the new #GtkArrow widget.
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_arrow_set ##### -->
|
|
<para>
|
|
Sets the direction and style of the #GtkArrow, @arrow.
|
|
</para>
|
|
|
|
@arrow: a widget of type #GtkArrow.
|
|
@arrow_type: a valid #GtkArrowType.
|
|
@shadow_type: a valid #GtkShadowType.
|
|
|
|
|
|
<!-- ##### ARG GtkArrow:arrow-type ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
<!-- ##### ARG GtkArrow:shadow-type ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|