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.CheckMenuItem

Contents

Description

A CheckMenuItem is a menu item that maintains the state of a boolean value in addition to a MenuItem usual role in activating application code.

A check box indicating the state of the boolean value is displayed at the left side of the MenuItem. Activating the MenuItem toggles the value.

CSS nodes

plain code

menuitem
├── check.left
╰── <child>

GtkCheckMenuItem has a main CSS node with name menuitem, and a subnode with name check, which gets the .left or .right style class.

Synopsis

Exported types

Methods

getActive

checkMenuItemGetActive Source #

Arguments

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

checkMenuItem: a CheckMenuItem

-> m Bool

Returns: True if the menu item is checked.

Returns whether the check menu item is active. See gtk_check_menu_item_set_active ().

getDrawAsRadio

checkMenuItemGetDrawAsRadio Source #

Arguments

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

checkMenuItem: a CheckMenuItem

-> m Bool

Returns: Whether checkMenuItem looks like a RadioMenuItem

Returns whether checkMenuItem looks like a RadioMenuItem

Since: 2.4

getInconsistent

checkMenuItemGetInconsistent Source #

Arguments

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

checkMenuItem: a CheckMenuItem

-> m Bool

Returns: True if inconsistent

Retrieves the value set by checkMenuItemSetInconsistent.

new

checkMenuItemNew Source #

Arguments

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

Returns: a new CheckMenuItem.

Creates a new CheckMenuItem.

newWithLabel

checkMenuItemNewWithLabel Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

label: the string to use for the label.

-> m CheckMenuItem

Returns: a new CheckMenuItem.

Creates a new CheckMenuItem with a label.

newWithMnemonic

checkMenuItemNewWithMnemonic Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

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

-> m CheckMenuItem

Returns: a new CheckMenuItem

Creates a new CheckMenuItem containing a label. The label will be created using labelNewWithMnemonic, so underscores in label indicate the mnemonic for the menu item.

setActive

checkMenuItemSetActive Source #

Arguments

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

checkMenuItem: a CheckMenuItem.

-> Bool

isActive: boolean value indicating whether the check box is active.

-> m () 

Sets the active state of the menu item’s check box.

setDrawAsRadio

checkMenuItemSetDrawAsRadio Source #

Arguments

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

checkMenuItem: a CheckMenuItem

-> Bool

drawAsRadio: whether checkMenuItem is drawn like a RadioMenuItem

-> m () 

Sets whether checkMenuItem is drawn like a RadioMenuItem

Since: 2.4

setInconsistent

checkMenuItemSetInconsistent Source #

Arguments

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

checkMenuItem: a CheckMenuItem

-> Bool

setting: True to display an “inconsistent” third state check

-> m () 

If the user has selected a range of elements (such as some text or spreadsheet cells) that are affected by a boolean setting, and the current values in that range are inconsistent, you may want to display the check in an “in between” state. This function turns on “in between” display. Normally you would turn off the inconsistent state again if the user explicitly selects a setting. This has to be done manually, checkMenuItemSetInconsistent only affects visual appearance, it doesn’t affect the semantics of the widget.

toggled

checkMenuItemToggled Source #

Arguments

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

checkMenuItem: a CheckMenuItem.

-> m () 

Emits the CheckMenuItem::toggled signal.

Properties

active

data CheckMenuItemActivePropertyInfo Source #

Instances

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

drawAsRadio

data CheckMenuItemDrawAsRadioPropertyInfo Source #

Instances

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

inconsistent

data CheckMenuItemInconsistentPropertyInfo Source #

Instances

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

Signals

toggled