Gtk.Arrow¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Misc (4), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
The direction the arrow should point |
||
r/w |
Appearance of the shadow surrounding the arrow |
Style Properties¶
- Inherited:
Name |
Type |
Default |
Flags |
Short Description |
|---|---|---|---|---|
|
|
r |
Amount of space used up by arrow |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
misc |
r |
Class Details¶
- class Gtk.Arrow(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Gtk.Arrowshould 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.Arrowwill fill any space alloted to it, but since it is inherited fromGtk.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 usingGtk.Arrow.set().Gtk.Arrowhas been deprecated; you can simply use aGtk.Imagewith a suitable icon name, such as “pan-down-symbolic“. When replacingGtk.Arrowby an image, pay attention to the fact thatGtk.Arrowis doing automatic flipping betweenGtk.ArrowType.LEFTandGtk.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 validGtk.ArrowType.shadow_type (
Gtk.ShadowType) – a validGtk.ShadowType.
- Returns:
the new
Gtk.Arrowwidget.- Return type:
Creates a new
Gtk.Arrowwidget.Deprecated since version 3.14: Use a
Gtk.Imagewith a suitable icon.
- set(arrow_type, shadow_type)[source]¶
- Parameters:
arrow_type (
Gtk.ArrowType) – a validGtk.ArrowType.shadow_type (
Gtk.ShadowType) – a validGtk.ShadowType.
Sets the direction and style of the
Gtk.Arrow, self.Deprecated since version 3.14: Use a
Gtk.Imagewith 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