Hoogle Search

Within LTS Haskell 24.32 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. MenuModel :: ManagedPtr MenuModel -> MenuModel

    gi-gio GI.Gio.Objects.MenuModel

    No documentation available.

  2. type MenuModelItemsChangedCallback = Int32 -> Int32 -> Int32 -> IO ()

    gi-gio GI.Gio.Objects.MenuModel

    Emitted when a change has occurred to the menu. The only changes that can occur to a menu is that items are removed or added. Items may not change (except by being removed and added back in the same location). This signal is capable of describing both of those changes (at the same time). The signal means that starting at the index position, removed items were removed and added items were added in their place. If removed is zero then only items were added. If added is zero then only items were removed. As an example, if the menu contains items a, b, c, d (in that order) and the signal (2, 1, 3) occurs then the new composition of the menu will be a, b, _, _, _, d (with each _ representing some new item). Signal handlers may query the model (particularly the added items) and expect to see the results of the modification that is being reported. The signal is emitted after the modification.

  3. afterMenuModelItemsChanged :: (IsMenuModel a, MonadIO m) => a -> ((?self :: a) => MenuModelItemsChangedCallback) -> m SignalHandlerId

    gi-gio GI.Gio.Objects.MenuModel

    Connect a signal handler for the itemsChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to

    after menuModel #itemsChanged callback
    
    By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

  4. menuModelGetItemAttributeValue :: (HasCallStack, MonadIO m, IsMenuModel a) => a -> Int32 -> Text -> Maybe VariantType -> m (Maybe GVariant)

    gi-gio GI.Gio.Objects.MenuModel

    Queries the item at position itemIndex in model for the attribute specified by attribute. If expectedType is non-Nothing then it specifies the expected type of the attribute. If it is Nothing then any type will be accepted. If the attribute exists and matches expectedType (or if the expected type is unspecified) then the value is returned. If the attribute does not exist, or does not match the expected type then Nothing is returned. Since: 2.32

  5. menuModelGetItemLink :: (HasCallStack, MonadIO m, IsMenuModel a) => a -> Int32 -> Text -> m (Maybe MenuModel)

    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

  6. menuModelGetNItems :: (HasCallStack, MonadIO m, IsMenuModel a) => a -> m Int32

    gi-gio GI.Gio.Objects.MenuModel

    Query the number of items in model. Since: 2.32

  7. menuModelIsMutable :: (HasCallStack, MonadIO m, IsMenuModel a) => a -> m Bool

    gi-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

  8. menuModelItemsChanged :: (HasCallStack, MonadIO m, IsMenuModel a) => a -> Int32 -> Int32 -> Int32 -> m ()

    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

  9. menuModelIterateItemAttributes :: (HasCallStack, MonadIO m, IsMenuModel a) => a -> Int32 -> m MenuAttributeIter

    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

  10. menuModelIterateItemLinks :: (HasCallStack, MonadIO m, IsMenuModel a) => a -> Int32 -> m MenuLinkIter

    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

Page 118 of many | Previous | Next