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
- 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 # | |
GObject Client Source # | |
Defined in GI.DbusmenuGtk3.Objects.Client | |
ManagedPtrNewtype Client Source # | |
Defined in GI.DbusmenuGtk3.Objects.Client toManagedPtr :: Client -> ManagedPtr Client | |
TypedObject Client Source # | |
Defined in GI.DbusmenuGtk3.Objects.Client glibType :: IO GType | |
IsGValue Client Source # | Convert |
Defined in GI.DbusmenuGtk3.Objects.Client toGValue :: Client -> IO GValue fromGValue :: GValue -> IO Client | |
HasParentTypes Client Source # | |
Defined in GI.DbusmenuGtk3.Objects.Client | |
type ParentTypes Client Source # | |
Defined in GI.DbusmenuGtk3.Objects.Client type ParentTypes Client = '[Client, Object] |
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
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.