Hoogle Search

Within LTS Haskell 24.70 (ghc-9.10.3)

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

  1. menuButtonSetAlignWidget :: (HasCallStack, MonadIO m, IsMenuButton a, IsWidget b) => a -> Maybe b -> m ()

    gi-gtk3 GI.Gtk.Objects.MenuButton

    Sets the Widget to use to line the menu with when popped up. Note that the alignWidget must contain the MenuButton itself. Setting it to Nothing means that the menu will be aligned with the button itself. Note that this property is only used with menus currently, and not for popovers. Since: 3.6

  2. menuButtonSetDirection :: (HasCallStack, MonadIO m, IsMenuButton a) => a -> ArrowType -> m ()

    gi-gtk3 GI.Gtk.Objects.MenuButton

    Sets the direction in which the popup will be popped up, as well as changing the arrow’s direction. The child will not be changed to an arrow if it was customized. If the does not fit in the available space in the given direction, GTK+ will its best to keep it inside the screen and fully visible. If you pass ArrowTypeNone for a direction, the popup will behave as if you passed ArrowTypeDown (although you won’t see any arrows). Since: 3.6

  3. menuButtonSetMenuModel :: (HasCallStack, MonadIO m, IsMenuButton a, IsMenuModel b) => a -> Maybe b -> m ()

    gi-gtk3 GI.Gtk.Objects.MenuButton

    Sets the MenuModel from which the popup will be constructed, or Nothing to dissociate any existing menu model and disable the button. Depending on the value of MenuButton:usePopover, either a Menu will be created with menuNewFromModel, or a Popover with popoverNewFromModel. In either case, actions will be connected as documented for these functions. If MenuButton:popup or MenuButton:popover are already set, those widgets are dissociated from the menuButton, and those properties are set to Nothing. Since: 3.6

  4. menuButtonSetPopover :: (HasCallStack, MonadIO m, IsMenuButton a, IsWidget b) => a -> Maybe b -> m ()

    gi-gtk3 GI.Gtk.Objects.MenuButton

    Sets the Popover that will be popped up when the menuButton is clicked, or Nothing to dissociate any existing popover and disable the button. If MenuButton:menuModel or MenuButton:popup are set, those objects are dissociated from the menuButton, and those properties are set to Nothing. Since: 3.12

  5. menuButtonSetPopup :: (HasCallStack, MonadIO m, IsMenuButton a, IsWidget b) => a -> Maybe b -> m ()

    gi-gtk3 GI.Gtk.Objects.MenuButton

    Sets the Menu that will be popped up when the menuButton is clicked, or Nothing to dissociate any existing menu and disable the button. If MenuButton:menuModel or MenuButton:popover are set, those objects are dissociated from the menuButton, and those properties are set to Nothing. Since: 3.6

  6. menuButtonSetUsePopover :: (HasCallStack, MonadIO m, IsMenuButton a) => a -> Bool -> m ()

    gi-gtk3 GI.Gtk.Objects.MenuButton

    Sets whether to construct a Popover instead of Menu when menuButtonSetMenuModel is called. Note that this property is only consulted when a new menu model is set. Since: 3.12

  7. menuItemSetAccelPath :: (HasCallStack, MonadIO m, IsMenuItem a) => a -> Maybe Text -> m ()

    gi-gtk3 GI.Gtk.Objects.MenuItem

    Set the accelerator path on menuItem, through which runtime changes of the menu item’s accelerator caused by the user can be identified and saved to persistent storage (see accelMapSave on this). To set up a default accelerator for this menu item, call accelMapAddEntry with the same accelPath. See also accelMapAddEntry on the specifics of accelerator paths, and menuSetAccelPath for a more convenient variant of this function. This function is basically a convenience wrapper that handles calling widgetSetAccelPath with the appropriate accelerator group for the menu item. Note that you do need to set an accelerator on the parent menu with menuSetAccelGroup for this to work. Note that accelPath string will be stored in a GQuark. Therefore, if you pass a static string, you can save some memory by interning it first with internStaticString.

  8. menuItemSetLabel :: (HasCallStack, MonadIO m, IsMenuItem a) => a -> Text -> m ()

    gi-gtk3 GI.Gtk.Objects.MenuItem

    Sets text on the menuItem label Since: 2.16

  9. menuItemSetReserveIndicator :: (HasCallStack, MonadIO m, IsMenuItem a) => a -> Bool -> m ()

    gi-gtk3 GI.Gtk.Objects.MenuItem

    Sets whether the menuItem should reserve space for the submenu indicator, regardless if it actually has a submenu or not. There should be little need for applications to call this functions. Since: 3.0

  10. menuItemSetRightJustified :: (HasCallStack, MonadIO m, IsMenuItem a) => a -> Bool -> m ()

    gi-gtk3 GI.Gtk.Objects.MenuItem

    Deprecated: (Since version 3.2)If you insist on using it, usewidgetSetHexpand and widgetSetHalign.

Page 1744 of many | Previous | Next