gi-gtk-3.0.11: Gtk bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.CellRendererToggle

Contents

Description

CellRendererToggle renders a toggle button in a cell. The button is drawn as a radio or a checkbutton, depending on the CellRendererToggle:radio property. When activated, it emits the CellRendererToggle::toggled signal.

Synopsis

Exported types

Methods

getActivatable

cellRendererToggleGetActivatable Source #

Arguments

:: (HasCallStack, MonadIO m, IsCellRendererToggle a) 
=> a

toggle: a CellRendererToggle

-> m Bool

Returns: True if the cell renderer is activatable.

Returns whether the cell renderer is activatable. See cellRendererToggleSetActivatable.

Since: 2.18

getActive

cellRendererToggleGetActive Source #

Arguments

:: (HasCallStack, MonadIO m, IsCellRendererToggle a) 
=> a

toggle: a CellRendererToggle

-> m Bool

Returns: True if the cell renderer is active.

Returns whether the cell renderer is active. See cellRendererToggleSetActive.

getRadio

cellRendererToggleGetRadio Source #

Arguments

:: (HasCallStack, MonadIO m, IsCellRendererToggle a) 
=> a

toggle: a CellRendererToggle

-> m Bool

Returns: True if we’re rendering radio toggles rather than checkboxes

Returns whether we’re rendering radio toggles rather than checkboxes.

new

cellRendererToggleNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m CellRendererToggle

Returns: the new cell renderer

Creates a new CellRendererToggle. Adjust rendering parameters using object properties. Object properties can be set globally (with g_object_set()). Also, with TreeViewColumn, you can bind a property to a value in a TreeModel. For example, you can bind the “active” property on the cell renderer to a boolean value in the model, thus causing the check button to reflect the state of the model.

setActivatable

cellRendererToggleSetActivatable Source #

Arguments

:: (HasCallStack, MonadIO m, IsCellRendererToggle a) 
=> a

toggle: a CellRendererToggle.

-> Bool

setting: the value to set.

-> m () 

Makes the cell renderer activatable.

Since: 2.18

setActive

cellRendererToggleSetActive Source #

Arguments

:: (HasCallStack, MonadIO m, IsCellRendererToggle a) 
=> a

toggle: a CellRendererToggle.

-> Bool

setting: the value to set.

-> m () 

Activates or deactivates a cell renderer.

setRadio

cellRendererToggleSetRadio Source #

Arguments

:: (HasCallStack, MonadIO m, IsCellRendererToggle a) 
=> a

toggle: a CellRendererToggle

-> Bool

radio: True to make the toggle look like a radio button

-> m () 

If radio is True, the cell renderer renders a radio toggle (i.e. a toggle in a group of mutually-exclusive toggles). If False, it renders a check toggle (a standalone boolean option). This can be set globally for the cell renderer, or changed just before rendering each cell in the model (for TreeView, you set up a per-row setting using TreeViewColumn to associate model columns with cell renderer properties).

Properties

activatable

data CellRendererToggleActivatablePropertyInfo Source #

Instances

AttrInfo CellRendererToggleActivatablePropertyInfo Source # 
type AttrOrigin CellRendererToggleActivatablePropertyInfo Source # 
type AttrLabel CellRendererToggleActivatablePropertyInfo Source # 
type AttrGetType CellRendererToggleActivatablePropertyInfo Source # 
type AttrBaseTypeConstraint CellRendererToggleActivatablePropertyInfo Source # 
type AttrSetTypeConstraint CellRendererToggleActivatablePropertyInfo Source # 
type AttrAllowedOps CellRendererToggleActivatablePropertyInfo Source # 

active

data CellRendererToggleActivePropertyInfo Source #

Instances

AttrInfo CellRendererToggleActivePropertyInfo Source # 
type AttrOrigin CellRendererToggleActivePropertyInfo Source # 
type AttrLabel CellRendererToggleActivePropertyInfo Source # 
type AttrGetType CellRendererToggleActivePropertyInfo Source # 
type AttrBaseTypeConstraint CellRendererToggleActivePropertyInfo Source # 
type AttrSetTypeConstraint CellRendererToggleActivePropertyInfo Source # 
type AttrAllowedOps CellRendererToggleActivePropertyInfo Source # 

inconsistent

data CellRendererToggleInconsistentPropertyInfo Source #

Instances

AttrInfo CellRendererToggleInconsistentPropertyInfo Source # 
type AttrOrigin CellRendererToggleInconsistentPropertyInfo Source # 
type AttrLabel CellRendererToggleInconsistentPropertyInfo Source # 
type AttrGetType CellRendererToggleInconsistentPropertyInfo Source # 
type AttrBaseTypeConstraint CellRendererToggleInconsistentPropertyInfo Source # 
type AttrSetTypeConstraint CellRendererToggleInconsistentPropertyInfo Source # 
type AttrAllowedOps CellRendererToggleInconsistentPropertyInfo Source # 

indicatorSize

data CellRendererToggleIndicatorSizePropertyInfo Source #

Instances

AttrInfo CellRendererToggleIndicatorSizePropertyInfo Source # 
type AttrOrigin CellRendererToggleIndicatorSizePropertyInfo Source # 
type AttrLabel CellRendererToggleIndicatorSizePropertyInfo Source # 
type AttrGetType CellRendererToggleIndicatorSizePropertyInfo Source # 
type AttrBaseTypeConstraint CellRendererToggleIndicatorSizePropertyInfo Source # 
type AttrSetTypeConstraint CellRendererToggleIndicatorSizePropertyInfo Source # 
type AttrAllowedOps CellRendererToggleIndicatorSizePropertyInfo Source # 

radio

data CellRendererToggleRadioPropertyInfo Source #

Instances

AttrInfo CellRendererToggleRadioPropertyInfo Source # 
type AttrOrigin CellRendererToggleRadioPropertyInfo Source # 
type AttrLabel CellRendererToggleRadioPropertyInfo Source # 
type AttrGetType CellRendererToggleRadioPropertyInfo Source # 
type AttrBaseTypeConstraint CellRendererToggleRadioPropertyInfo Source # 
type AttrSetTypeConstraint CellRendererToggleRadioPropertyInfo Source # 
type AttrAllowedOps CellRendererToggleRadioPropertyInfo Source # 

Signals

toggled