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 |
GtkActionBar is designed to present contextual actions. It is expected to be displayed below the content and expand horizontally to fill the area.
It allows placing children at the start or the end. In addition, it contains an internal centered box which is centered with respect to the full width of the box, even if the children at either side take up different amounts of space.
CSS nodes
GtkActionBar has a single CSS node with name actionbar.
- newtype ActionBar = ActionBar (ManagedPtr ActionBar)
- class GObject o => IsActionBar o
- toActionBar :: IsActionBar o => o -> IO ActionBar
- noActionBar :: Maybe ActionBar
- data ActionBarGetCenterWidgetMethodInfo
- actionBarGetCenterWidget :: (HasCallStack, MonadIO m, IsActionBar a) => a -> m (Maybe Widget)
- actionBarNew :: (HasCallStack, MonadIO m) => m ActionBar
- data ActionBarPackEndMethodInfo
- actionBarPackEnd :: (HasCallStack, MonadIO m, IsActionBar a, IsWidget b) => a -> b -> m ()
- data ActionBarPackStartMethodInfo
- actionBarPackStart :: (HasCallStack, MonadIO m, IsActionBar a, IsWidget b) => a -> b -> m ()
- data ActionBarSetCenterWidgetMethodInfo
- actionBarSetCenterWidget :: (HasCallStack, MonadIO m, IsActionBar a, IsWidget b) => a -> Maybe b -> m ()
Exported types
GObject ActionBar Source # | |
IsImplementorIface ActionBar Source # | |
IsObject ActionBar Source # | |
IsWidget ActionBar Source # | |
IsContainer ActionBar Source # | |
IsBin ActionBar Source # | |
IsBuildable ActionBar Source # | |
IsActionBar ActionBar Source # | |
((~) * info (ResolveActionBarMethod t ActionBar), MethodInfo * info ActionBar p) => IsLabel t (ActionBar -> p) Source # | |
((~) * info (ResolveActionBarMethod t ActionBar), MethodInfo * info ActionBar p) => IsLabelProxy t (ActionBar -> p) Source # | |
HasAttributeList * ActionBar Source # | |
type AttributeList ActionBar Source # | |
type SignalList ActionBar Source # | |
class GObject o => IsActionBar o Source #
toActionBar :: IsActionBar o => o -> IO ActionBar Source #
Methods
getCenterWidget
data ActionBarGetCenterWidgetMethodInfo Source #
((~) * signature (m (Maybe Widget)), MonadIO m, IsActionBar a) => MethodInfo * ActionBarGetCenterWidgetMethodInfo a signature Source # | |
actionBarGetCenterWidget Source #
:: (HasCallStack, MonadIO m, IsActionBar a) | |
=> a |
|
-> m (Maybe Widget) |
Retrieves the center bar widget of the bar.
Since: 3.12
new
:: (HasCallStack, MonadIO m) | |
=> m ActionBar | Returns: a new |
Creates a new ActionBar
widget.
Since: 3.12
packEnd
data ActionBarPackEndMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsActionBar a, IsWidget b) => MethodInfo * ActionBarPackEndMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsActionBar a, IsWidget b) | |
=> a |
|
-> b |
|
-> m () |
Adds child
to actionBar
, packed with reference to the
end of the actionBar
.
Since: 3.12
packStart
data ActionBarPackStartMethodInfo Source #
((~) * signature (b -> m ()), MonadIO m, IsActionBar a, IsWidget b) => MethodInfo * ActionBarPackStartMethodInfo a signature Source # | |
:: (HasCallStack, MonadIO m, IsActionBar a, IsWidget b) | |
=> a |
|
-> b |
|
-> m () |
Adds child
to actionBar
, packed with reference to the
start of the actionBar
.
Since: 3.12
setCenterWidget
data ActionBarSetCenterWidgetMethodInfo Source #
((~) * signature (Maybe b -> m ()), MonadIO m, IsActionBar a, IsWidget b) => MethodInfo * ActionBarSetCenterWidgetMethodInfo a signature Source # | |
actionBarSetCenterWidget Source #
:: (HasCallStack, MonadIO m, IsActionBar a, IsWidget b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the center widget for the ActionBar
.
Since: 3.12