Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
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 | |
HasParentTypes Client Source # | |
Defined in GI.DbusmenuGtk3.Objects.Client | |
IsGValue (Maybe Client) Source # | Convert |
Defined in GI.DbusmenuGtk3.Objects.Client gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Client -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe 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
Click to display all available methods, including inherited ones
Methods
addTypeHandler, addTypeHandlerFull, bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, menuitemGet, menuitemGetSubmenu, newitemBase, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getAccelGroup, getData, getIconPaths, getProperty, getQdata, getRoot, getStatus, getTextDirection.
Setters
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.