Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
gi-gio GI.Gio.Objects.MenuModel Queries the item at position itemIndex in model for the link specified by link. If the link exists, the linked MenuModel is returned. If the link does not exist, Nothing is returned. Since: 2.32
menuModelGetNItems :: (HasCallStack, MonadIO m, IsMenuModel a) => a -> m Int32gi-gio GI.Gio.Objects.MenuModel Query the number of items in model. Since: 2.32
menuModelIsMutable :: (HasCallStack, MonadIO m, IsMenuModel a) => a -> m Boolgi-gio GI.Gio.Objects.MenuModel Queries if model is mutable. An immutable MenuModel will never emit the MenuModel::itemsChanged signal. Consumers of the model may make optimisations accordingly. Since: 2.32
-
gi-gio GI.Gio.Objects.MenuModel Requests emission of the MenuModel::itemsChanged signal on model. This function should never be called except by MenuModel subclasses. Any other calls to this function will very likely lead to a violation of the interface of the model. The implementation should update its internal representation of the menu before emitting the signal. The implementation should further expect to receive queries about the new state of the menu (and particularly added menu items) while signal handlers are running. The implementation must dispatch this call directly from a mainloop entry and not in response to calls -- particularly those from the MenuModel API. Said another way: the menu must not change while user code is running without returning to the mainloop. Since: 2.32
-
gi-gio GI.Gio.Objects.MenuModel Creates a MenuAttributeIter to iterate over the attributes of the item at position itemIndex in model. You must free the iterator with objectUnref when you are done. Since: 2.32
-
gi-gio GI.Gio.Objects.MenuModel Creates a MenuLinkIter to iterate over the links of the item at position itemIndex in model. You must free the iterator with objectUnref when you are done. Since: 2.32
-
gi-gio GI.Gio.Objects.MenuModel Connect a signal handler for the itemsChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on menuModel #itemsChanged callback
toMenuModel :: (MonadIO m, IsMenuModel o) => o -> m MenuModelgi-gio GI.Gio.Objects.MenuModel Cast to MenuModel, for types for which this is known to be safe. For general casts, use castTo.
module GI.Gio.Objects.
ProxyAddressEnumerator GProxyAddressEnumerator is a wrapper around SocketAddressEnumerator which takes the SocketAddress instances returned by the SocketAddressEnumerator and wraps them in ProxyAddress instances, using the given ProxyAddressEnumerator:proxyResolver. This enumerator will be returned (for example, by socketConnectableEnumerate) as appropriate when a proxy is configured; there should be no need to manually wrap a SocketAddressEnumerator instance with one.
class (GObject o, IsDescendantOf ProxyAddressEnumerator o) =>
IsProxyAddressEnumerator ogi-gio GI.Gio.Objects.ProxyAddressEnumerator Type class for types which can be safely cast to ProxyAddressEnumerator, for instance with toProxyAddressEnumerator.