新規作成  編集  Ruby-GNOME2 Project Website  ページ一覧  検索  更新履歴  編集履歴  RSS  ログイン

Gtk::Arrow

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.

インクルードされているモジュール

  • Gtk::Buildable?
  • Atk::Implementor
  • GLib::Interface?

クラスメソッド

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

インスタンスメソッド

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.
  • arrow_type: a valid GtkArrowType.
  • Returns: 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=.

プロパティ

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

定数

GtkArrowType

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

その他

NONE (Gtk::Arrow::Type)
要編集

更新履歴

  • 2014-06-15 クラスのメンバ項目でリストから漏れているものを追加。 - きたがわ
  • - Masao?
更新日時:2014/06/15 19:04:30
キーワード:
参照:[gtk2-tut-widget-overview] [Ruby/GTK Object Hierarchy] [Ruby/GTK] [Gtk::Style] [Gtk::Arrow] [gtk2-tut-arrow]