gi-gtk-3.0.34: Gtk bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Objects.CheckButton

Description

A CheckButton places a discrete ToggleButton next to a widget, (usually a Label). See the section on ToggleButton widgets for more information about toggle/check buttons.

The important signal ( toggled ) is also inherited from ToggleButton.

CSS nodes

plain code

checkbutton
├── check
╰── <child>

A GtkCheckButton with indicator (see toggleButtonSetMode) has a main CSS node with name checkbutton and a subnode with name check.

plain code

button.check
├── check
╰── <child>

A GtkCheckButton without indicator changes the name of its main node to button and adds a .check style class to it. The subnode is invisible in this case.

Synopsis

Exported types

newtype CheckButton Source #

Memory-managed wrapper type.

Constructors

CheckButton (ManagedPtr CheckButton) 

Instances

Instances details
Eq CheckButton Source # 
Instance details

Defined in GI.Gtk.Objects.CheckButton

Methods

(==) :: CheckButton -> CheckButton -> Bool

(/=) :: CheckButton -> CheckButton -> Bool

GObject CheckButton Source # 
Instance details

Defined in GI.Gtk.Objects.CheckButton

ManagedPtrNewtype CheckButton Source # 
Instance details

Defined in GI.Gtk.Objects.CheckButton

Methods

toManagedPtr :: CheckButton -> ManagedPtr CheckButton

TypedObject CheckButton Source # 
Instance details

Defined in GI.Gtk.Objects.CheckButton

Methods

glibType :: IO GType

IsGValue CheckButton Source #

Convert CheckButton to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.CheckButton

Methods

toGValue :: CheckButton -> IO GValue

fromGValue :: GValue -> IO CheckButton

HasParentTypes CheckButton Source # 
Instance details

Defined in GI.Gtk.Objects.CheckButton

type ParentTypes CheckButton Source # 
Instance details

Defined in GI.Gtk.Objects.CheckButton

type ParentTypes CheckButton = '[ToggleButton, Button, Bin, Container, Widget, Object, ImplementorIface, Actionable, Activatable, Buildable]

class (GObject o, IsDescendantOf CheckButton o) => IsCheckButton o Source #

Type class for types which can be safely cast to CheckButton, for instance with toCheckButton.

Instances

Instances details
(GObject o, IsDescendantOf CheckButton o) => IsCheckButton o Source # 
Instance details

Defined in GI.Gtk.Objects.CheckButton

toCheckButton :: (MonadIO m, IsCheckButton o) => o -> m CheckButton Source #

Cast to CheckButton, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

new

checkButtonNew Source #

Arguments

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

Returns: a Widget.

Creates a new CheckButton.

newWithLabel

checkButtonNewWithLabel Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

label: the text for the check button.

-> m CheckButton

Returns: a Widget.

Creates a new CheckButton with a Label to the right of it.

newWithMnemonic

checkButtonNewWithMnemonic Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

label: The text of the button, with an underscore in front of the mnemonic character

-> m CheckButton

Returns: a new CheckButton

Creates a new CheckButton containing a label. The label will be created using labelNewWithMnemonic, so underscores in label indicate the mnemonic for the check button.