| 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.SeparatorToolItem
Description
A SeparatorToolItem is a ToolItem that separates groups of other
GtkToolItems. Depending on the theme, a SeparatorToolItem will
often look like a vertical line on horizontally docked toolbars.
If the Toolbar child property “expand” is True and the property
SeparatorToolItem:draw is False, a SeparatorToolItem will act as
a “spring” that forces other items to the ends of the toolbar.
Use separatorToolItemNew to create a new SeparatorToolItem.
CSS nodes
GtkSeparatorToolItem has a single CSS node with name separator.
Synopsis
- newtype SeparatorToolItem = SeparatorToolItem (ManagedPtr SeparatorToolItem)
- class GObject o => IsSeparatorToolItem o
- toSeparatorToolItem :: (MonadIO m, IsSeparatorToolItem o) => o -> m SeparatorToolItem
- noSeparatorToolItem :: Maybe SeparatorToolItem
- separatorToolItemGetDraw :: (HasCallStack, MonadIO m, IsSeparatorToolItem a) => a -> m Bool
- separatorToolItemNew :: (HasCallStack, MonadIO m) => m SeparatorToolItem
- separatorToolItemSetDraw :: (HasCallStack, MonadIO m, IsSeparatorToolItem a) => a -> Bool -> m ()
- constructSeparatorToolItemDraw :: IsSeparatorToolItem o => Bool -> IO (GValueConstruct o)
- getSeparatorToolItemDraw :: (MonadIO m, IsSeparatorToolItem o) => o -> m Bool
- setSeparatorToolItemDraw :: (MonadIO m, IsSeparatorToolItem o) => o -> Bool -> m ()
Exported types
newtype SeparatorToolItem Source #
Memory-managed wrapper type.
Constructors
| SeparatorToolItem (ManagedPtr SeparatorToolItem) |
Instances
| GObject SeparatorToolItem Source # | |
Defined in GI.Gtk.Objects.SeparatorToolItem Methods gobjectType :: SeparatorToolItem -> IO GType # | |
| IsImplementorIface SeparatorToolItem Source # | |
Defined in GI.Gtk.Objects.SeparatorToolItem | |
| IsObject SeparatorToolItem Source # | |
Defined in GI.Gtk.Objects.SeparatorToolItem | |
| IsActivatable SeparatorToolItem Source # | |
Defined in GI.Gtk.Objects.SeparatorToolItem | |
| IsBuildable SeparatorToolItem Source # | |
Defined in GI.Gtk.Objects.SeparatorToolItem | |
| IsBin SeparatorToolItem Source # | |
Defined in GI.Gtk.Objects.SeparatorToolItem | |
| IsContainer SeparatorToolItem Source # | |
Defined in GI.Gtk.Objects.SeparatorToolItem | |
| IsToolItem SeparatorToolItem Source # | |
Defined in GI.Gtk.Objects.SeparatorToolItem | |
| IsWidget SeparatorToolItem Source # | |
Defined in GI.Gtk.Objects.SeparatorToolItem | |
| IsSeparatorToolItem SeparatorToolItem Source # | |
Defined in GI.Gtk.Objects.SeparatorToolItem | |
class GObject o => IsSeparatorToolItem o Source #
Type class for types which can be safely cast to SeparatorToolItem, for instance with toSeparatorToolItem.
Instances
| (GObject a, (UnknownAncestorError SeparatorToolItem a :: Constraint)) => IsSeparatorToolItem a Source # | |
Defined in GI.Gtk.Objects.SeparatorToolItem | |
| IsSeparatorToolItem SeparatorToolItem Source # | |
Defined in GI.Gtk.Objects.SeparatorToolItem | |
toSeparatorToolItem :: (MonadIO m, IsSeparatorToolItem o) => o -> m SeparatorToolItem Source #
Cast to SeparatorToolItem, for types for which this is known to be safe. For general casts, use castTo.
noSeparatorToolItem :: Maybe SeparatorToolItem Source #
A convenience alias for Nothing :: Maybe SeparatorToolItem.
Methods
getDraw
separatorToolItemGetDraw Source #
Arguments
| :: (HasCallStack, MonadIO m, IsSeparatorToolItem a) | |
| => a |
|
| -> m Bool | Returns: |
Returns whether item is drawn as a line, or just blank.
See separatorToolItemSetDraw.
Since: 2.4
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m SeparatorToolItem | Returns: the new |
Create a new SeparatorToolItem
Since: 2.4
setDraw
separatorToolItemSetDraw Source #
Arguments
| :: (HasCallStack, MonadIO m, IsSeparatorToolItem a) | |
| => a |
|
| -> Bool |
|
| -> m () |
Whether item is drawn as a vertical line, or just blank.
Setting this to False along with toolItemSetExpand is useful
to create an item that forces following items to the end of the toolbar.
Since: 2.4
Properties
draw
No description available in the introspection data.
constructSeparatorToolItemDraw :: IsSeparatorToolItem o => Bool -> IO (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “draw” property. This is rarely needed directly, but it is used by new.
getSeparatorToolItemDraw :: (MonadIO m, IsSeparatorToolItem o) => o -> m Bool Source #
Get the value of the “draw” property.
When overloading is enabled, this is equivalent to
get separatorToolItem #draw
setSeparatorToolItemDraw :: (MonadIO m, IsSeparatorToolItem o) => o -> Bool -> m () Source #
Set the value of the “draw” property.
When overloading is enabled, this is equivalent to
setseparatorToolItem [ #draw:=value ]