Arrow

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 #GtkMisc, it can be padded and/or aligned, to fill exactly the space the programmer desires.

Arrows are created with a call to gtk.arrow.Arrow.new_. The direction or style of an arrow can be changed after creation by using gtk.arrow.Arrow.set.

GtkArrow has been deprecated; you can simply use a #GtkImage 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.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(gtk.types.ArrowType arrowType, gtk.types.ShadowType shadowType)

Creates a new #GtkArrow widget.

Members

Functions

self
Arrow self()

Returns this, for use in with statements.

set
void set(gtk.types.ArrowType arrowType, gtk.types.ShadowType shadowType)

Sets the direction and style of the #GtkArrow, arrow.

Properties

_gType
GType _gType [@property getter]
arrowType
gtk.types.ArrowType arrowType [@property getter]
arrowType
gtk.types.ArrowType arrowType [@property setter]
shadowType
gtk.types.ShadowType shadowType [@property getter]
shadowType
gtk.types.ShadowType shadowType [@property setter]

Static functions

_getGType
GType _getGType()
builder
ArrowGidBuilder builder()

Get builder for gtk.arrow.Arrow

Inherited Members

From Misc

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
Misc self()

Returns this, for use in with statements.

builder
MiscGidBuilder builder()

Get builder for gtk.misc.Misc

xalign
float xalign [@property getter]

Get xalign property.

xalign
float xalign [@property setter]

Set xalign property.

xpad
int xpad [@property getter]

Get xpad property.

xpad
int xpad [@property setter]

Set xpad property.

yalign
float yalign [@property getter]

Get yalign property.

yalign
float yalign [@property setter]

Set yalign property.

ypad
int ypad [@property getter]

Get ypad property.

ypad
int ypad [@property setter]

Set ypad property.

getAlignment
void getAlignment(float xalign, float yalign)

Gets the X and Y alignment of the widget within its allocation. See gtk.misc.Misc.setAlignment.

getPadding
void getPadding(int xpad, int ypad)

Gets the padding in the X and Y directions of the widget. See gtk.misc.Misc.setPadding.

setAlignment
void setAlignment(float xalign, float yalign)

Sets the alignment of the widget.

setPadding
void setPadding(int xpad, int ypad)

Sets the amount of space to add around the widget.