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

Contents

Description

A ToolItemGroup is used together with ToolPalette to add GtkToolItems to a palette like container with different categories and drag and drop support.

CSS nodes

GtkToolItemGroup has a single CSS node named toolitemgroup.

Synopsis

Exported types

Methods

getCollapsed

toolItemGroupGetCollapsed Source #

Arguments

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

group: a GtkToolItemGroup

-> m Bool

Returns: True if group is collapsed, False if it is expanded

Gets whether group is collapsed or expanded.

Since: 2.20

getDropItem

toolItemGroupGetDropItem Source #

Arguments

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

group: a ToolItemGroup

-> Int32

x: the x position

-> Int32

y: the y position

-> m ToolItem

Returns: the ToolItem at position (x, y)

Gets the tool item at position (x, y).

Since: 2.20

getEllipsize

toolItemGroupGetEllipsize Source #

Arguments

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

group: a ToolItemGroup

-> m EllipsizeMode

Returns: the EllipsizeMode of group

Gets the ellipsization mode of group.

Since: 2.20

getHeaderRelief

toolItemGroupGetHeaderRelief Source #

Arguments

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

group: a ToolItemGroup

-> m ReliefStyle

Returns: the ReliefStyle

Gets the relief mode of the header button of group.

Since: 2.20

getItemPosition

toolItemGroupGetItemPosition Source #

Arguments

:: (HasCallStack, MonadIO m, IsToolItemGroup a, IsToolItem b) 
=> a

group: a ToolItemGroup

-> b

item: a ToolItem

-> m Int32

Returns: the index of item in group or -1 if item is no child of group

Gets the position of item in group as index.

Since: 2.20

getLabel

toolItemGroupGetLabel Source #

Arguments

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

group: a ToolItemGroup

-> m Text

Returns: the label of group. The label is an internal string of group and must not be modified. Note that Nothing is returned if a custom label has been set with toolItemGroupSetLabelWidget

Gets the label of group.

Since: 2.20

getLabelWidget

toolItemGroupGetLabelWidget Source #

Arguments

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

group: a ToolItemGroup

-> m Widget

Returns: the label widget of group

Gets the label widget of group. See toolItemGroupSetLabelWidget.

Since: 2.20

getNItems

toolItemGroupGetNItems Source #

Arguments

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

group: a ToolItemGroup

-> m Word32

Returns: the number of tool items in group

Gets the number of tool items in group.

Since: 2.20

getNthItem

toolItemGroupGetNthItem Source #

Arguments

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

group: a ToolItemGroup

-> Word32

index: the index

-> m ToolItem

Returns: the ToolItem at index

Gets the tool item at index in group.

Since: 2.20

insert

toolItemGroupInsert Source #

Arguments

:: (HasCallStack, MonadIO m, IsToolItemGroup a, IsToolItem b) 
=> a

group: a ToolItemGroup

-> b

item: the ToolItem to insert into group

-> Int32

position: the position of item in group, starting with 0. The position -1 means end of list.

-> m () 

Inserts item at position in the list of children of group.

Since: 2.20

new

toolItemGroupNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

label: the label of the new group

-> m ToolItemGroup

Returns: a new ToolItemGroup.

Creates a new tool item group with label label.

Since: 2.20

setCollapsed

toolItemGroupSetCollapsed Source #

Arguments

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

group: a ToolItemGroup

-> Bool

collapsed: whether the group should be collapsed or expanded

-> m () 

Sets whether the group should be collapsed or expanded.

Since: 2.20

setEllipsize

toolItemGroupSetEllipsize Source #

Arguments

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

group: a ToolItemGroup

-> EllipsizeMode

ellipsize: the EllipsizeMode labels in group should use

-> m () 

Sets the ellipsization mode which should be used by labels in group.

Since: 2.20

setHeaderRelief

toolItemGroupSetHeaderRelief Source #

Arguments

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

group: a ToolItemGroup

-> ReliefStyle

style: the ReliefStyle

-> m () 

Set the button relief of the group header. See buttonSetRelief for details.

Since: 2.20

setItemPosition

toolItemGroupSetItemPosition Source #

Arguments

:: (HasCallStack, MonadIO m, IsToolItemGroup a, IsToolItem b) 
=> a

group: a ToolItemGroup

-> b

item: the ToolItem to move to a new position, should be a child of group.

-> Int32

position: the new position of item in group, starting with 0. The position -1 means end of list.

-> m () 

Sets the position of item in the list of children of group.

Since: 2.20

setLabel

toolItemGroupSetLabel Source #

Arguments

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

group: a ToolItemGroup

-> Text

label: the new human-readable label of of the group

-> m () 

Sets the label of the tool item group. The label is displayed in the header of the group.

Since: 2.20

setLabelWidget

toolItemGroupSetLabelWidget Source #

Arguments

:: (HasCallStack, MonadIO m, IsToolItemGroup a, IsWidget b) 
=> a

group: a ToolItemGroup

-> b

labelWidget: the widget to be displayed in place of the usual label

-> m () 

Sets the label of the tool item group. The label widget is displayed in the header of the group, in place of the usual label.

Since: 2.20

Properties

collapsed

data ToolItemGroupCollapsedPropertyInfo Source #

Instances

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

ellipsize

data ToolItemGroupEllipsizePropertyInfo Source #

Instances

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

headerRelief

data ToolItemGroupHeaderReliefPropertyInfo Source #

Instances

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

label

data ToolItemGroupLabelPropertyInfo Source #

Instances

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

labelWidget

data ToolItemGroupLabelWidgetPropertyInfo Source #

Instances

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