Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
A subclass of Client
to add functionality with regarding
building GTK items out of the abstract tree.
Synopsis
- newtype Client = Client (ManagedPtr Client)
- class (GObject o, IsDescendantOf Client o) => IsClient o
- toClient :: (MonadIO m, IsClient o) => o -> m Client
- noClient :: Maybe Client
- clientGetAccelGroup :: (HasCallStack, MonadIO m, IsClient a) => a -> m AccelGroup
- clientMenuitemGet :: (HasCallStack, MonadIO m, IsClient a, IsMenuitem b) => a -> b -> m MenuItem
- clientMenuitemGetSubmenu :: (HasCallStack, MonadIO m, IsClient a, IsMenuitem b) => a -> b -> m Menu
- clientNew :: (HasCallStack, MonadIO m) => Text -> Text -> m Client
- clientNewitemBase :: (HasCallStack, MonadIO m, IsClient a, IsMenuitem b, IsMenuItem c, IsMenuitem d) => a -> b -> c -> d -> m ()
- clientSetAccelGroup :: (HasCallStack, MonadIO m, IsClient a, IsAccelGroup b) => a -> b -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Client Source # | |
IsGValue Client Source # | Convert |
GObject Client Source # | |
Defined in GI.DbusmenuGtk3.Objects.Client gobjectType :: IO GType # | |
HasParentTypes Client Source # | |
Defined in GI.DbusmenuGtk3.Objects.Client | |
type ParentTypes Client Source # | |
Defined in GI.DbusmenuGtk3.Objects.Client |
class (GObject o, IsDescendantOf Client o) => IsClient o Source #
Instances
(GObject o, IsDescendantOf Client o) => IsClient o Source # | |
Defined in GI.DbusmenuGtk3.Objects.Client |
Methods
Overloaded methods
getAccelGroup
:: (HasCallStack, MonadIO m, IsClient a) | |
=> a |
|
-> m AccelGroup | Returns: Either a valid group or |
Gets the accel group for this client.
menuitemGet
:: (HasCallStack, MonadIO m, IsClient a, IsMenuitem b) | |
=> a |
|
-> b | |
-> m MenuItem | Returns: The |
menuitemGetSubmenu
clientMenuitemGetSubmenu Source #
:: (HasCallStack, MonadIO m, IsClient a, IsMenuitem b) | |
=> a |
|
-> b | |
-> m Menu | Returns: The |
This grabs the submenu associated with the menuitem.
new
newitemBase
:: (HasCallStack, MonadIO m, IsClient a, IsMenuitem b, IsMenuItem c, IsMenuitem d) | |
=> a |
|
-> b |
|
-> c |
|
-> d |
|
-> m () |
This function provides some of the basic connectivity for being in the GTK world. Things like visibility and sensitivity of the item are handled here so that the subclasses don't have to. If you're building your on GTK menu item you can use this function to apply those basic attributes so that you don't have to deal with them either.
This also handles passing the "activate" signal back to the
Menuitem
side of thing.
setAccelGroup
:: (HasCallStack, MonadIO m, IsClient a, IsAccelGroup b) | |
=> a |
|
-> b |
|
-> m () |
Sets the acceleration group for the menu items with accelerators on this client.