Next: , Previous: GtkAdjustment, Up: Top


115 GtkArrow

Displays an arrow

115.1 Overview

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.

GtkArrow will fill any space alloted to it, but since it is inherited from <gtk-misc>, it can be padded and/or aligned, to fill exactly the space the programmer desires.

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.

115.2 Usage

— Class: <gtk-arrow>

Derives from <gtk-misc>.

This class defines the following slots:

arrow-type
The direction the arrow should point
shadow-type
Appearance of the shadow surrounding the arrow
— Function: gtk-arrow-new (arrow_type <gtk-arrow-type>) (shadow_type <gtk-shadow-type>) ⇒  (ret <gtk-widget>)

Creates a new arrow widget.

arrow-type
a valid <gtk-arrow-type>.
shadow-type
a valid <gtk-shadow-type>.
ret
the new <gtk-arrow> widget.
— Function: gtk-arrow-set (self <gtk-arrow>) (arrow_type <gtk-arrow-type>) (shadow_type <gtk-shadow-type>)
— Method: set

Sets the direction and style of the <gtk-arrow>, arrow.

arrow
a widget of type <gtk-arrow>.
arrow-type
a valid <gtk-arrow-type>.
shadow-type
a valid <gtk-shadow-type>.