Gtk.Arrow

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Arrow Gtk.Arrow Gtk.Buildable->Gtk.Widget Gtk.Misc Gtk.Misc Gtk.Misc->Gtk.Arrow Gtk.Widget->Gtk.Misc

Subclasses:None

Methods

Inherited:Gtk.Misc (4), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
Structs:Gtk.WidgetClass (12), GObject.ObjectClass (5)
class new (arrow_type, shadow_type)
  set (arrow_type, shadow_type)

Properties

Inherited:Gtk.Misc (4), Gtk.Widget (39)
Name Type Flags Short Description
arrow-type Gtk.ArrowType r/w The direction the arrow should point
shadow-type Gtk.ShadowType r/w Appearance of the shadow surrounding the arrow

Style Properties

Inherited:Gtk.Widget (17)
Name Type Default Flags Short Description
arrow-scaling float 0.699999988079071 r Amount of space used up by arrow

Fields

Inherited:Gtk.Widget (69), GObject.Object (1)
Name Type Access Description
misc Gtk.Misc r  
priv Gtk.ArrowPrivate r  

Class Details

class Gtk.Arrow(*args, **kwargs)
Bases:Gtk.Misc
Abstract:No
Structure:Gtk.ArrowClass

Gtk.Arrow 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.

Gtk.Arrow 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().

Gtk.Arrow has been deprecated; you can simply use a Gtk.Image with a suitable icon name, such as “pan-down-symbolic“. When replacing Gtk.Arrow by an image, pay attention to the fact that Gtk.Arrow is doing automatic flipping between Gtk.ArrowType.LEFT and Gtk.ArrowType.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.

classmethod new(arrow_type, shadow_type)[source]
Parameters:
Returns:

the new Gtk.Arrow widget.

Return type:

Gtk.Widget

Creates a new Gtk.Arrow widget.

Deprecated since version 3.14: Use a Gtk.Image with a suitable icon.

set(arrow_type, shadow_type)[source]
Parameters:

Sets the direction and style of the Gtk.Arrow, self.

Deprecated since version 3.14: Use a Gtk.Image with a suitable icon.

Property Details

Gtk.Arrow.props.arrow_type
Name:arrow-type
Type:Gtk.ArrowType
Default Value:Gtk.ArrowType.RIGHT
Flags:READABLE, WRITABLE

The direction the arrow should point

Gtk.Arrow.props.shadow_type
Name:shadow-type
Type:Gtk.ShadowType
Default Value:Gtk.ShadowType.OUT
Flags:READABLE, WRITABLE

Appearance of the shadow surrounding the arrow