Forum und email

GtkCellRendererToggle

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

オブジェクトの階層

GObject
`-- GtkObject
       `-- GtkCellRenderer
              `-- GtkCellRendererToggle

説明

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.

コンストラクタ

-- Creates a new GtkCellRendererToggle.

メソッド

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.

プロパティ

これらにアクセスするには、get_property および set_property メソッドを使用します。

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.

シグナル

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