gi-gtk-3.0.32: 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.SeparatorToolItem

Contents

Description

A tSeparatorToolItem is a tToolItem that separates groups of other GtkToolItems. Depending on the theme, a tSeparatorToolItem will often look like a vertical line on horizontally docked toolbars.

If the tToolbar child property “expand” is True and the property tSeparatorToolItem:draw is False, a tSeparatorToolItem will act as a “spring” that forces other items to the ends of the toolbar.

Use separatorToolItemNew to create a new tSeparatorToolItem.

CSS nodes

GtkSeparatorToolItem has a single CSS node with name separator.

Synopsis

Exported types

newtype SeparatorToolItem Source #

Memory-managed wrapper type.

Constructors

SeparatorToolItem (ManagedPtr SeparatorToolItem) 
Instances
Eq SeparatorToolItem Source # 
Instance details

Defined in GI.Gtk.Objects.SeparatorToolItem

GObject SeparatorToolItem Source # 
Instance details

Defined in GI.Gtk.Objects.SeparatorToolItem

Methods

gobjectType :: IO GType

IsGValue SeparatorToolItem Source #

Convert SeparatorToolItem to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Gtk.Objects.SeparatorToolItem

Methods

toGValue :: SeparatorToolItem -> IO GValue

fromGValue :: GValue -> IO SeparatorToolItem

HasParentTypes SeparatorToolItem Source # 
Instance details

Defined in GI.Gtk.Objects.SeparatorToolItem

type ParentTypes SeparatorToolItem Source # 
Instance details

Defined in GI.Gtk.Objects.SeparatorToolItem

type ParentTypes SeparatorToolItem = ToolItem ': (Bin ': (Container ': (Widget ': (Object ': (ImplementorIface ': (Activatable ': (Buildable ': ([] :: [Type]))))))))

class (GObject o, IsDescendantOf SeparatorToolItem o) => IsSeparatorToolItem o Source #

Type class for types which can be safely cast to SeparatorToolItem, for instance with toSeparatorToolItem.

Instances
(GObject o, IsDescendantOf SeparatorToolItem o) => IsSeparatorToolItem o Source # 
Instance details

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

Overloaded methods

getDraw

separatorToolItemGetDraw Source #

Arguments

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

item: a tSeparatorToolItem

-> m Bool

Returns: True if item is drawn as a line, or just blank.

Returns whether item is drawn as a line, or just blank. See separatorToolItemSetDraw.

Since: 2.4

new

separatorToolItemNew Source #

Arguments

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

Returns: the new tSeparatorToolItem

Create a new tSeparatorToolItem

Since: 2.4

setDraw

separatorToolItemSetDraw Source #

Arguments

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

item: a tSeparatorToolItem

-> Bool

draw: whether item is drawn as a vertical line

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

set separatorToolItem [ #draw := value ]