Gtk.Arrow - Classes - Gtk 3.0 (original) (raw)
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) |
Virtual Methods¶
Inherited:
Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)
Properties¶
Inherited:
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:
Name | Type | Default | Flags | Short Description |
---|---|---|---|---|
arrow-scaling | float | 0.699999988079071 | r | Amount of space used up by arrow |
Signals¶
Inherited:
Gtk.Widget (69), GObject.Object (1)
Fields¶
Inherited:
Gtk.Widget (69), GObject.Object (1)
Name | Type | Access | Description |
---|---|---|---|
misc | Gtk.Misc | r |
Class Details¶
class Gtk.Arrow(*args, **kwargs)¶
Bases:
Abstract:
No
Structure:
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 replacingGtk.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:
- arrow_type (Gtk.ArrowType) – a valid Gtk.ArrowType.
- shadow_type (Gtk.ShadowType) – a valid Gtk.ShadowType.
Returns:
the new Gtk.Arrow widget.
Return type:
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:
- arrow_type (Gtk.ArrowType) – a valid Gtk.ArrowType.
- shadow_type (Gtk.ShadowType) – a valid Gtk.ShadowType.
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:
Default Value:
Flags:
The direction the arrow should point
Gtk.Arrow.props.shadow_type¶
Name:
shadow-type
Type:
Default Value:
Flags:
Appearance of the shadow surrounding the arrow