Crea  Modifica  FrontPage  Indici  Cerca  Ultime modifiche  History  RSS  Login

Gtk::Arrow

class Gtk::Arrow

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 ammended 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.

Class Methods

Gtk::Arrow.new(arrow_type, shadow_type)
Creates a new arrow widget.

Instance Methods

set(arrow_type, shadow_type)
Sets the direction and style.
arrow_type
Returns the arrow_type.
  • Returns: the arrow_type.
arrow_type=(arrow_type)
Sets the arrow_type.
set_arrow_type(arrow_type)
Same as Gtk::Arrow#arrow_type=.
shadow_type
Returns the shadow_type.
  • Returns: the shadow_type.
shadow_type=(shadow_type)
Sets the shadow_type.
set_shadow_type(shadow_type)
Same as Gtk::Arrow#shadow_type=.

Constants

Type

UP
Represents an upward pointing arrow.
DOWN
Represents a downward pointing arrow.
LEFT
Represents a left pointing arrow.
RIGHT
Represents a right pointing arrow.

Properties

arrow-type: Integer (Read/Write)
The direction the arrow should point
shadow-type: Integer (Read/Write)
Appearance of the shadow surrounding the arrow

ChangeLog

  • 2006-01-31 Revised. - Masao
Ultima modifica:2007/01/30 02:17:56
Parola chiave:
Referenze:[Gtk::Arrow] [Gtk::Style]