PHP-GTK
Thursday, November 27, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkCellRendererText::text
GtkCellRendererToggle Constructornext

Last updated: Sun, 12 May 2013
view this page in English

GtkCellRendererToggle

Displays the contents of a cell in a GtkTreeView as a toggle button.

Object Hierarchy

Description

Displays the contents of a cell in a GtkTreeView as a toggle button. The cell will likely be drawn as a checkbox which will be checked when the cell is active (toggled on) or empty when the cell is not active.

Constructors

-- Creates a new GtkCellRendererToggle.

Methods

get_active()
  Returns whether or not the cell renderer is active (toggled on).
get_radio()
  Returns true if radio toggles rather than checkboxes are being rendered.
set_active()
  Sets the state of the cell renderer.
set_radio()
  Sets the style of the toggle button. If true, the toggle will be shown as RadioButton.

Properties

Use get_property and set_property methods to access these.

activatable:
  If true, the toggle button can be activated.
active:
  Represents the state of the toggle button. True if it's active.
radio:
  If true, draw the toggle is showed as a radio button.

Signals

"toggled"
  Emitted when the user changes the state of the toggle button.


User Contributed Notes
gtk.gtkcellrenderertoggle.php
add a note about notes
There are no user contributed notes for this page.


previousGtkCellRendererText::text
GtkCellRendererToggle Constructornext

Last updated: Sun, 12 May 2013
view this page in English


credits 

PHP  Copyright © 2001-2014 The PHP Group
 All rights reserved.
Last updated: Sun May 12 20:50:56 2013 CEST