| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
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
- newtype ToolItemGroup = ToolItemGroup (ManagedPtr ToolItemGroup)
- class GObject o => IsToolItemGroup o
- toToolItemGroup :: (MonadIO m, IsToolItemGroup o) => o -> m ToolItemGroup
- noToolItemGroup :: Maybe ToolItemGroup
- toolItemGroupGetCollapsed :: (HasCallStack, MonadIO m, IsToolItemGroup a) => a -> m Bool
- toolItemGroupGetDropItem :: (HasCallStack, MonadIO m, IsToolItemGroup a) => a -> Int32 -> Int32 -> m ToolItem
- toolItemGroupGetEllipsize :: (HasCallStack, MonadIO m, IsToolItemGroup a) => a -> m EllipsizeMode
- toolItemGroupGetHeaderRelief :: (HasCallStack, MonadIO m, IsToolItemGroup a) => a -> m ReliefStyle
- toolItemGroupGetItemPosition :: (HasCallStack, MonadIO m, IsToolItemGroup a, IsToolItem b) => a -> b -> m Int32
- toolItemGroupGetLabel :: (HasCallStack, MonadIO m, IsToolItemGroup a) => a -> m Text
- toolItemGroupGetLabelWidget :: (HasCallStack, MonadIO m, IsToolItemGroup a) => a -> m Widget
- toolItemGroupGetNItems :: (HasCallStack, MonadIO m, IsToolItemGroup a) => a -> m Word32
- toolItemGroupGetNthItem :: (HasCallStack, MonadIO m, IsToolItemGroup a) => a -> Word32 -> m ToolItem
- toolItemGroupInsert :: (HasCallStack, MonadIO m, IsToolItemGroup a, IsToolItem b) => a -> b -> Int32 -> m ()
- toolItemGroupNew :: (HasCallStack, MonadIO m) => Text -> m ToolItemGroup
- toolItemGroupSetCollapsed :: (HasCallStack, MonadIO m, IsToolItemGroup a) => a -> Bool -> m ()
- toolItemGroupSetEllipsize :: (HasCallStack, MonadIO m, IsToolItemGroup a) => a -> EllipsizeMode -> m ()
- toolItemGroupSetHeaderRelief :: (HasCallStack, MonadIO m, IsToolItemGroup a) => a -> ReliefStyle -> m ()
- toolItemGroupSetItemPosition :: (HasCallStack, MonadIO m, IsToolItemGroup a, IsToolItem b) => a -> b -> Int32 -> m ()
- toolItemGroupSetLabel :: (HasCallStack, MonadIO m, IsToolItemGroup a) => a -> Text -> m ()
- toolItemGroupSetLabelWidget :: (HasCallStack, MonadIO m, IsToolItemGroup a, IsWidget b) => a -> b -> m ()
- constructToolItemGroupCollapsed :: IsToolItemGroup o => Bool -> IO (GValueConstruct o)
- getToolItemGroupCollapsed :: (MonadIO m, IsToolItemGroup o) => o -> m Bool
- setToolItemGroupCollapsed :: (MonadIO m, IsToolItemGroup o) => o -> Bool -> m ()
- constructToolItemGroupEllipsize :: IsToolItemGroup o => EllipsizeMode -> IO (GValueConstruct o)
- getToolItemGroupEllipsize :: (MonadIO m, IsToolItemGroup o) => o -> m EllipsizeMode
- setToolItemGroupEllipsize :: (MonadIO m, IsToolItemGroup o) => o -> EllipsizeMode -> m ()
- constructToolItemGroupHeaderRelief :: IsToolItemGroup o => ReliefStyle -> IO (GValueConstruct o)
- getToolItemGroupHeaderRelief :: (MonadIO m, IsToolItemGroup o) => o -> m ReliefStyle
- setToolItemGroupHeaderRelief :: (MonadIO m, IsToolItemGroup o) => o -> ReliefStyle -> m ()
- constructToolItemGroupLabel :: IsToolItemGroup o => Text -> IO (GValueConstruct o)
- getToolItemGroupLabel :: (MonadIO m, IsToolItemGroup o) => o -> m Text
- setToolItemGroupLabel :: (MonadIO m, IsToolItemGroup o) => o -> Text -> m ()
- constructToolItemGroupLabelWidget :: (IsToolItemGroup o, IsWidget a) => a -> IO (GValueConstruct o)
- getToolItemGroupLabelWidget :: (MonadIO m, IsToolItemGroup o) => o -> m Widget
- setToolItemGroupLabelWidget :: (MonadIO m, IsToolItemGroup o, IsWidget a) => o -> a -> m ()
Exported types
newtype ToolItemGroup Source #
Memory-managed wrapper type.
Constructors
| ToolItemGroup (ManagedPtr ToolItemGroup) |
Instances
| GObject ToolItemGroup Source # | |
Defined in GI.Gtk.Objects.ToolItemGroup Methods gobjectType :: ToolItemGroup -> IO GType # | |
| IsImplementorIface ToolItemGroup Source # | |
Defined in GI.Gtk.Objects.ToolItemGroup | |
| IsObject ToolItemGroup Source # | |
Defined in GI.Gtk.Objects.ToolItemGroup | |
| IsBuildable ToolItemGroup Source # | |
Defined in GI.Gtk.Objects.ToolItemGroup | |
| IsToolShell ToolItemGroup Source # | |
Defined in GI.Gtk.Objects.ToolItemGroup | |
| IsContainer ToolItemGroup Source # | |
Defined in GI.Gtk.Objects.ToolItemGroup | |
| IsToolItemGroup ToolItemGroup Source # | |
Defined in GI.Gtk.Objects.ToolItemGroup | |
| IsWidget ToolItemGroup Source # | |
Defined in GI.Gtk.Objects.ToolItemGroup | |
class GObject o => IsToolItemGroup o Source #
Type class for types which can be safely cast to ToolItemGroup, for instance with toToolItemGroup.
Instances
| (GObject a, (UnknownAncestorError ToolItemGroup a :: Constraint)) => IsToolItemGroup a Source # | |
Defined in GI.Gtk.Objects.ToolItemGroup | |
| IsToolItemGroup ToolItemGroup Source # | |
Defined in GI.Gtk.Objects.ToolItemGroup | |
toToolItemGroup :: (MonadIO m, IsToolItemGroup o) => o -> m ToolItemGroup Source #
Cast to ToolItemGroup, for types for which this is known to be safe. For general casts, use castTo.
noToolItemGroup :: Maybe ToolItemGroup Source #
A convenience alias for Nothing :: Maybe ToolItemGroup.
Methods
getCollapsed
toolItemGroupGetCollapsed Source #
Arguments
| :: (HasCallStack, MonadIO m, IsToolItemGroup a) | |
| => a |
|
| -> m Bool | Returns: |
Gets whether group is collapsed or expanded.
Since: 2.20
getDropItem
toolItemGroupGetDropItem Source #
Arguments
| :: (HasCallStack, MonadIO m, IsToolItemGroup a) | |
| => a |
|
| -> Int32 |
|
| -> Int32 |
|
| -> m ToolItem | Returns: the |
Gets the tool item at position (x, y).
Since: 2.20
getEllipsize
toolItemGroupGetEllipsize Source #
Arguments
| :: (HasCallStack, MonadIO m, IsToolItemGroup a) | |
| => a |
|
| -> m EllipsizeMode | Returns: the |
Gets the ellipsization mode of group.
Since: 2.20
getHeaderRelief
toolItemGroupGetHeaderRelief Source #
Arguments
| :: (HasCallStack, MonadIO m, IsToolItemGroup a) | |
| => a |
|
| -> m ReliefStyle | Returns: the |
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 |
|
| -> b |
|
| -> m Int32 | Returns: the index of |
Gets the position of item in group as index.
Since: 2.20
getLabel
toolItemGroupGetLabel Source #
Arguments
| :: (HasCallStack, MonadIO m, IsToolItemGroup a) | |
| => a |
|
| -> m Text | Returns: the label of |
Gets the label of group.
Since: 2.20
getLabelWidget
toolItemGroupGetLabelWidget Source #
Arguments
| :: (HasCallStack, MonadIO m, IsToolItemGroup a) | |
| => a |
|
| -> m Widget | Returns: the label widget of |
Gets the label widget of group.
See toolItemGroupSetLabelWidget.
Since: 2.20
getNItems
toolItemGroupGetNItems Source #
Arguments
| :: (HasCallStack, MonadIO m, IsToolItemGroup a) | |
| => a |
|
| -> m Word32 | Returns: the number of tool items in |
Gets the number of tool items in group.
Since: 2.20
getNthItem
toolItemGroupGetNthItem Source #
Arguments
| :: (HasCallStack, MonadIO m, IsToolItemGroup a) | |
| => a |
|
| -> Word32 |
|
| -> m ToolItem | Returns: the |
Gets the tool item at index in group.
Since: 2.20
insert
Arguments
| :: (HasCallStack, MonadIO m, IsToolItemGroup a, IsToolItem b) | |
| => a |
|
| -> b |
|
| -> Int32 |
|
| -> m () |
Inserts item at position in the list of children of group.
Since: 2.20
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> m ToolItemGroup | Returns: a new |
Creates a new tool item group with label label.
Since: 2.20
setCollapsed
toolItemGroupSetCollapsed Source #
Arguments
| :: (HasCallStack, MonadIO m, IsToolItemGroup a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Sets whether the group should be collapsed or expanded.
Since: 2.20
setEllipsize
toolItemGroupSetEllipsize Source #
Arguments
| :: (HasCallStack, MonadIO m, IsToolItemGroup a) | |
| => a |
|
| -> EllipsizeMode |
|
| -> 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 |
|
| -> 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 |
|
| -> b |
|
| -> Int32 |
|
| -> 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 |
|
| -> Text |
|
| -> 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 |
|
| -> b |
|
| -> 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
No description available in the introspection data.
constructToolItemGroupCollapsed :: IsToolItemGroup o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “collapsed” property. This is rarely needed directly, but it is used by new.
getToolItemGroupCollapsed :: (MonadIO m, IsToolItemGroup o) => o -> m Bool Source #
Get the value of the “collapsed” property.
When overloading is enabled, this is equivalent to
get toolItemGroup #collapsed
setToolItemGroupCollapsed :: (MonadIO m, IsToolItemGroup o) => o -> Bool -> m () Source #
Set the value of the “collapsed” property.
When overloading is enabled, this is equivalent to
settoolItemGroup [ #collapsed:=value ]
ellipsize
No description available in the introspection data.
constructToolItemGroupEllipsize :: IsToolItemGroup o => EllipsizeMode -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “ellipsize” property. This is rarely needed directly, but it is used by new.
getToolItemGroupEllipsize :: (MonadIO m, IsToolItemGroup o) => o -> m EllipsizeMode Source #
Get the value of the “ellipsize” property.
When overloading is enabled, this is equivalent to
get toolItemGroup #ellipsize
setToolItemGroupEllipsize :: (MonadIO m, IsToolItemGroup o) => o -> EllipsizeMode -> m () Source #
Set the value of the “ellipsize” property.
When overloading is enabled, this is equivalent to
settoolItemGroup [ #ellipsize:=value ]
headerRelief
No description available in the introspection data.
constructToolItemGroupHeaderRelief :: IsToolItemGroup o => ReliefStyle -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “header-relief” property. This is rarely needed directly, but it is used by new.
getToolItemGroupHeaderRelief :: (MonadIO m, IsToolItemGroup o) => o -> m ReliefStyle Source #
Get the value of the “header-relief” property.
When overloading is enabled, this is equivalent to
get toolItemGroup #headerRelief
setToolItemGroupHeaderRelief :: (MonadIO m, IsToolItemGroup o) => o -> ReliefStyle -> m () Source #
Set the value of the “header-relief” property.
When overloading is enabled, this is equivalent to
settoolItemGroup [ #headerRelief:=value ]
label
No description available in the introspection data.
constructToolItemGroupLabel :: IsToolItemGroup o => Text -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “label” property. This is rarely needed directly, but it is used by new.
getToolItemGroupLabel :: (MonadIO m, IsToolItemGroup o) => o -> m Text Source #
Get the value of the “label” property.
When overloading is enabled, this is equivalent to
get toolItemGroup #label
setToolItemGroupLabel :: (MonadIO m, IsToolItemGroup o) => o -> Text -> m () Source #
Set the value of the “label” property.
When overloading is enabled, this is equivalent to
settoolItemGroup [ #label:=value ]
labelWidget
No description available in the introspection data.
constructToolItemGroupLabelWidget :: (IsToolItemGroup o, IsWidget a) => a -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “label-widget” property. This is rarely needed directly, but it is used by new.
getToolItemGroupLabelWidget :: (MonadIO m, IsToolItemGroup o) => o -> m Widget Source #
Get the value of the “label-widget” property.
When overloading is enabled, this is equivalent to
get toolItemGroup #labelWidget
setToolItemGroupLabelWidget :: (MonadIO m, IsToolItemGroup o, IsWidget a) => o -> a -> m () Source #
Set the value of the “label-widget” property.
When overloading is enabled, this is equivalent to
settoolItemGroup [ #labelWidget:=value ]