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

Gtk::ToggleToolButton

Gtk::ToggleToolButton クラス

A Gtk::ToggleToolButton is a Gtk::ToolItem that contains a toggle button.

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

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

クラスメソッド

Gtk::ToggleToolButton.new(stock_id = nil)
Creates a new Gtk::ToggleToolButton containing the image and text from a stock item. Since 2.4
  • stock_id: the name of the stock item (a constant of Gtk::Stock)
  • Returns: self

インスタンスメソッド

active?
Queries a Gtk::ToggleToolButton and returns its current state. Returns true if the toggle button is pressed in and false if it is raised. Since 2.4
  • Returns: true if the toggle tool button is pressed in, false if not
active=(is_active)
Sets the status of the toggle tool button. Set to true if you want the Gtk::ToggleButton to be 'pressed in', and false to raise it. This action causes the toggled signal to be emitted. Since 2.4
  • is_active: whether button should be active
  • Returns: is_active
set_active(is_active)
Same as Gtk::ToggleToolButton#active=. Since 2.4
  • is_active: whether button should be active
  • Returns: self

シグナル

toggled: self
Emitted whenever the toggle tool button changes state. Since 2.4

更新履歴

  • 2014-06-16 クラスのメンバで漏れていたものを追加。 - きたがわ
  • 2005-1-27 Added. - Masao
更新日時:2014/06/16 18:16:41
キーワード:
参照:[Gtk::ToggleToolButton] [Ruby/GTK] [Ruby/GTK Object Hierarchy] [Gtk::RadioToolButton] [Gtk::ToolButton] [Gtk::ToolItem]