| Top |
CtkArrow 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 CTK+ to come.
CtkArrow will fill any space alloted to it, but since it is inherited from CtkMisc, it can be padded and/or aligned, to fill exactly the space the programmer desires.
Arrows are created with a call to ctk_arrow_new(). The direction or
style of an arrow can be changed after creation by using ctk_arrow_set().
CtkArrow has been deprecated; you can simply use a CtkImage with a suitable icon name, such as “pan-down-symbolic“. When replacing CtkArrow by an image, pay attention to the fact that CtkArrow is doing automatic flipping between CTK_ARROW_LEFT and CTK_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.
CtkWidget * ctk_arrow_new (CtkArrowType arrow_type,CtkShadowType shadow_type);
ctk_arrow_new has been deprecated since version 3.14 and should not be used in newly-written code.
Use a CtkImage with a suitable icon.
Creates a new CtkArrow widget.
void ctk_arrow_set (CtkArrow *arrow,CtkArrowType arrow_type,CtkShadowType shadow_type);
ctk_arrow_set has been deprecated since version 3.14 and should not be used in newly-written code.
Use a CtkImage with a suitable icon.
Sets the direction and style of the CtkArrow, arrow
.
arrow |
a widget of type CtkArrow. |
|
arrow_type |
a valid CtkArrowType. |
|
shadow_type |
a valid CtkShadowType. |
“arrow-type” property“arrow-type” CtkArrowType
The direction the arrow should point.
Owner: CtkArrow
Flags: Read / Write
Default value: CTK_ARROW_RIGHT
“shadow-type” property“shadow-type” CtkShadowType
Appearance of the shadow surrounding the arrow.
Owner: CtkArrow
Flags: Read / Write
Default value: CTK_SHADOW_OUT