Crea  Modifica  FrontPage  Indici  Cerca  Ultime modifiche  History  RSS  Login


class Gtk::ToggleToolButton

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

Class Methods = 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

Instance Methods

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


  • 2005-1-27 Added. - Masao
Ultima modifica:2005/11/17 02:43:41
Parola chiave:
Referenze:[Gtk::ToggleToolButton] [Gtk::ToolItem] [Gtk::RadioToolButton] [Gtk::ToolButton]