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_new(). The direction or style of an arrow can be changed after creation by using gtk_arrow_set().

Constructors

this
this(GtkArrow* gtkArrow)

Sets our main struct and passes it to the parent class

this
this(GtkArrowType arrowType, GtkShadowType shadowType)

Creates a new GtkArrow widget.

Members

Functions

getArrowStruct
GtkArrow* getArrowStruct()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

set
void set(GtkArrowType arrowType, GtkShadowType shadowType)

Sets the direction and style of the GtkArrow, arrow.

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

gtkArrow
GtkArrow* gtkArrow;

the main Gtk struct

Inherited Members

From Misc

gtkMisc
GtkMisc* gtkMisc;

the main Gtk struct

getMiscStruct
GtkMisc* getMiscStruct()

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
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.

getAlignment
void getAlignment(float xalign, float yalign)

Gets the X and Y alignment of the widget within its allocation. See gtk_misc_set_alignment().

getPadding
void getPadding(int xpad, int ypad)

Gets the padding in the X and Y directions of the widget. See gtk_misc_set_padding().

Meta