Crear  Editar  FrontPage  Indexes  Buscar  Cambios  History  RSS  Login

Gtk::ToggleToolButton

class Gtk::ToggleToolButton

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

Class Methods

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

Instance Methods

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

Signals

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

ChangeLog

  • 2005-1-27 Added. - Masao
Ultimas actualizaciones:2011/06/06 15:38:33
Clave:
Referencias:[Gtk::ToolButton] [Gtk::ToggleToolButton] [Gtk::ToolItem] [Gtk::RadioToolButton]