Gtk.Arrow

Entities

Tagged Types

Access Types

Constants

Subprograms

Generic Instantiations

Description

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 amended in versions of GTK+ to come.

GtkArrow will fill any space alloted to it, but since it is inherited from Gtk.Misc.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.Gtk_New. The direction or style of an arrow can be changed after creation by using Gtk.Arrow.Set.

GtkArrow has been deprecated; you can simply use a Gtk.Image.Gtk_Image with a suitable icon name, such as "pan-down-symbolic". When replacing GtkArrow by an image, pay attention to the fact that GtkArrow is doing automatic flipping between GTK_ARROW_LEFT and GTK_ARROW_RIGHT, depending on the text direction. To get the same effect with an image, use the icon names "pan-start-symbolic" and "pan-end-symbolic", which react to the text direction.

<screenshot>gtk-arrow</screenshot> <testgtk>create_arrow.adb</testgtk>

"+"

function "+"
  (Widget : access Gtk_Arrow_Record'Class)
return Gtk.Buildable.Gtk_Buildable
Parameters
Widget
Return Value

"-"

function "-"
  (Interf : Gtk.Buildable.Gtk_Buildable)
return Gtk_Arrow
Parameters
Interf
Return Value

Arrow_Type_Property

Arrow_Type_Property : constant Gtk.Enums.Property_Gtk_Arrow_Type;

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_Arrow

type Gtk_Arrow is access all Gtk_Arrow_Record'Class;

Gtk_Arrow_New

function Gtk_Arrow_New
   (Arrow_Type  : Gtk.Enums.Gtk_Arrow_Type;
    Shadow_Type : Gtk.Enums.Gtk_Shadow_Type) return Gtk_Arrow

Creates a new Gtk.Arrow.Gtk_Arrow widget.

Parameters
Arrow_Type

a valid Gtk.Enums.Gtk_Arrow_Type.

Shadow_Type

a valid Gtk.Enums.Gtk_Shadow_Type.

Return Value

Gtk_Arrow_Record

type Gtk_Arrow_Record is new Gtk_Misc_Record with null record;

Gtk_New

procedure Gtk_New
   (Arrow       : out Gtk_Arrow;
    Arrow_Type  : Gtk.Enums.Gtk_Arrow_Type;
    Shadow_Type : Gtk.Enums.Gtk_Shadow_Type)

Creates a new Gtk.Arrow.Gtk_Arrow widget. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Arrow
Arrow_Type

a valid Gtk.Enums.Gtk_Arrow_Type.

Shadow_Type

a valid Gtk.Enums.Gtk_Shadow_Type.

Implements_Gtk_Buildable

package Implements_Gtk_Buildable is new Glib.Types.Implements
  (Gtk.Buildable.Gtk_Buildable, Gtk_Arrow_Record, Gtk_Arrow);

Initialize

procedure Initialize
   (Arrow       : not null access Gtk_Arrow_Record'Class;
    Arrow_Type  : Gtk.Enums.Gtk_Arrow_Type;
    Shadow_Type : Gtk.Enums.Gtk_Shadow_Type)

Creates a new Gtk.Arrow.Gtk_Arrow widget. Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Arrow
Arrow_Type

a valid Gtk.Enums.Gtk_Arrow_Type.

Shadow_Type

a valid Gtk.Enums.Gtk_Shadow_Type.

Set

procedure Set
   (Arrow       : not null access Gtk_Arrow_Record;
    Arrow_Type  : Gtk.Enums.Gtk_Arrow_Type;
    Shadow_Type : Gtk.Enums.Gtk_Shadow_Type)

Sets the direction and style of the Gtk.Arrow.Gtk_Arrow, Arrow. Deprecated since 3.14, 1

Parameters
Arrow
Arrow_Type

a valid Gtk.Enums.Gtk_Arrow_Type.

Shadow_Type

a valid Gtk.Enums.Gtk_Shadow_Type.

Shadow_Type_Property

Shadow_Type_Property : constant Gtk.Enums.Property_Gtk_Shadow_Type;