Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- menuItemActivate
- menuItemDeselect
- menuItemGetAccelPath
- menuItemGetLabel
- menuItemGetReserveIndicator
- menuItemGetRightJustified
- menuItemGetSubmenu
- menuItemGetUseUnderline
- menuItemNew
- menuItemNewWithLabel
- menuItemNewWithMnemonic
- menuItemSelect
- menuItemSetAccelPath
- menuItemSetLabel
- menuItemSetReserveIndicator
- menuItemSetRightJustified
- menuItemSetSubmenu
- menuItemSetUseUnderline
- menuItemToggleSizeAllocate
- menuItemToggleSizeRequest
- Properties
- Signals
- newtype MenuItem = MenuItem (ForeignPtr MenuItem)
- class GObject o => MenuItemK o
- toMenuItem :: MenuItemK o => o -> IO MenuItem
- noMenuItem :: Maybe MenuItem
- menuItemActivate :: (MonadIO m, MenuItemK a) => a -> m ()
- menuItemDeselect :: (MonadIO m, MenuItemK a) => a -> m ()
- menuItemGetAccelPath :: (MonadIO m, MenuItemK a) => a -> m Text
- menuItemGetLabel :: (MonadIO m, MenuItemK a) => a -> m Text
- menuItemGetReserveIndicator :: (MonadIO m, MenuItemK a) => a -> m Bool
- menuItemGetRightJustified :: (MonadIO m, MenuItemK a) => a -> m Bool
- menuItemGetSubmenu :: (MonadIO m, MenuItemK a) => a -> m Widget
- menuItemGetUseUnderline :: (MonadIO m, MenuItemK a) => a -> m Bool
- menuItemNew :: MonadIO m => m MenuItem
- menuItemNewWithLabel :: MonadIO m => Text -> m MenuItem
- menuItemNewWithMnemonic :: MonadIO m => Text -> m MenuItem
- menuItemSelect :: (MonadIO m, MenuItemK a) => a -> m ()
- menuItemSetAccelPath :: (MonadIO m, MenuItemK a) => a -> Maybe Text -> m ()
- menuItemSetLabel :: (MonadIO m, MenuItemK a) => a -> Text -> m ()
- menuItemSetReserveIndicator :: (MonadIO m, MenuItemK a) => a -> Bool -> m ()
- menuItemSetRightJustified :: (MonadIO m, MenuItemK a) => a -> Bool -> m ()
- menuItemSetSubmenu :: (MonadIO m, MenuItemK a, MenuK b) => a -> Maybe b -> m ()
- menuItemSetUseUnderline :: (MonadIO m, MenuItemK a) => a -> Bool -> m ()
- menuItemToggleSizeAllocate :: (MonadIO m, MenuItemK a) => a -> Int32 -> m ()
- menuItemToggleSizeRequest :: (MonadIO m, MenuItemK a) => a -> Int32 -> m Int32
- data MenuItemAccelPathPropertyInfo
- constructMenuItemAccelPath :: Text -> IO ([Char], GValue)
- getMenuItemAccelPath :: (MonadIO m, MenuItemK o) => o -> m Text
- setMenuItemAccelPath :: (MonadIO m, MenuItemK o) => o -> Text -> m ()
- data MenuItemLabelPropertyInfo
- constructMenuItemLabel :: Text -> IO ([Char], GValue)
- getMenuItemLabel :: (MonadIO m, MenuItemK o) => o -> m Text
- setMenuItemLabel :: (MonadIO m, MenuItemK o) => o -> Text -> m ()
- data MenuItemRightJustifiedPropertyInfo
- constructMenuItemRightJustified :: Bool -> IO ([Char], GValue)
- getMenuItemRightJustified :: (MonadIO m, MenuItemK o) => o -> m Bool
- setMenuItemRightJustified :: (MonadIO m, MenuItemK o) => o -> Bool -> m ()
- data MenuItemSubmenuPropertyInfo
- constructMenuItemSubmenu :: MenuK a => a -> IO ([Char], GValue)
- getMenuItemSubmenu :: (MonadIO m, MenuItemK o) => o -> m Menu
- setMenuItemSubmenu :: (MonadIO m, MenuItemK o, MenuK a) => o -> a -> m ()
- data MenuItemUseUnderlinePropertyInfo
- constructMenuItemUseUnderline :: Bool -> IO ([Char], GValue)
- getMenuItemUseUnderline :: (MonadIO m, MenuItemK o) => o -> m Bool
- setMenuItemUseUnderline :: (MonadIO m, MenuItemK o) => o -> Bool -> m ()
- type MenuItemActivateCallback = IO ()
- type MenuItemActivateCallbackC = Ptr () -> Ptr () -> IO ()
- data MenuItemActivateSignalInfo
- afterMenuItemActivate :: (GObject a, MonadIO m) => a -> MenuItemActivateCallback -> m SignalHandlerId
- menuItemActivateCallbackWrapper :: MenuItemActivateCallback -> Ptr () -> Ptr () -> IO ()
- menuItemActivateClosure :: MenuItemActivateCallback -> IO Closure
- mkMenuItemActivateCallback :: MenuItemActivateCallbackC -> IO (FunPtr MenuItemActivateCallbackC)
- noMenuItemActivateCallback :: Maybe MenuItemActivateCallback
- onMenuItemActivate :: (GObject a, MonadIO m) => a -> MenuItemActivateCallback -> m SignalHandlerId
- type MenuItemActivateItemCallback = IO ()
- type MenuItemActivateItemCallbackC = Ptr () -> Ptr () -> IO ()
- data MenuItemActivateItemSignalInfo
- afterMenuItemActivateItem :: (GObject a, MonadIO m) => a -> MenuItemActivateItemCallback -> m SignalHandlerId
- menuItemActivateItemCallbackWrapper :: MenuItemActivateItemCallback -> Ptr () -> Ptr () -> IO ()
- menuItemActivateItemClosure :: MenuItemActivateItemCallback -> IO Closure
- mkMenuItemActivateItemCallback :: MenuItemActivateItemCallbackC -> IO (FunPtr MenuItemActivateItemCallbackC)
- noMenuItemActivateItemCallback :: Maybe MenuItemActivateItemCallback
- onMenuItemActivateItem :: (GObject a, MonadIO m) => a -> MenuItemActivateItemCallback -> m SignalHandlerId
- type MenuItemDeselectCallback = IO ()
- type MenuItemDeselectCallbackC = Ptr () -> Ptr () -> IO ()
- data MenuItemDeselectSignalInfo
- afterMenuItemDeselect :: (GObject a, MonadIO m) => a -> MenuItemDeselectCallback -> m SignalHandlerId
- menuItemDeselectCallbackWrapper :: MenuItemDeselectCallback -> Ptr () -> Ptr () -> IO ()
- menuItemDeselectClosure :: MenuItemDeselectCallback -> IO Closure
- mkMenuItemDeselectCallback :: MenuItemDeselectCallbackC -> IO (FunPtr MenuItemDeselectCallbackC)
- noMenuItemDeselectCallback :: Maybe MenuItemDeselectCallback
- onMenuItemDeselect :: (GObject a, MonadIO m) => a -> MenuItemDeselectCallback -> m SignalHandlerId
- type MenuItemSelectCallback = IO ()
- type MenuItemSelectCallbackC = Ptr () -> Ptr () -> IO ()
- data MenuItemSelectSignalInfo
- afterMenuItemSelect :: (GObject a, MonadIO m) => a -> MenuItemSelectCallback -> m SignalHandlerId
- menuItemSelectCallbackWrapper :: MenuItemSelectCallback -> Ptr () -> Ptr () -> IO ()
- menuItemSelectClosure :: MenuItemSelectCallback -> IO Closure
- mkMenuItemSelectCallback :: MenuItemSelectCallbackC -> IO (FunPtr MenuItemSelectCallbackC)
- noMenuItemSelectCallback :: Maybe MenuItemSelectCallback
- onMenuItemSelect :: (GObject a, MonadIO m) => a -> MenuItemSelectCallback -> m SignalHandlerId
- type MenuItemToggleSizeAllocateCallback = Int32 -> IO ()
- type MenuItemToggleSizeAllocateCallbackC = Ptr () -> Int32 -> Ptr () -> IO ()
- data MenuItemToggleSizeAllocateSignalInfo
- afterMenuItemToggleSizeAllocate :: (GObject a, MonadIO m) => a -> MenuItemToggleSizeAllocateCallback -> m SignalHandlerId
- menuItemToggleSizeAllocateCallbackWrapper :: MenuItemToggleSizeAllocateCallback -> Ptr () -> Int32 -> Ptr () -> IO ()
- menuItemToggleSizeAllocateClosure :: MenuItemToggleSizeAllocateCallback -> IO Closure
- mkMenuItemToggleSizeAllocateCallback :: MenuItemToggleSizeAllocateCallbackC -> IO (FunPtr MenuItemToggleSizeAllocateCallbackC)
- noMenuItemToggleSizeAllocateCallback :: Maybe MenuItemToggleSizeAllocateCallback
- onMenuItemToggleSizeAllocate :: (GObject a, MonadIO m) => a -> MenuItemToggleSizeAllocateCallback -> m SignalHandlerId
- type MenuItemToggleSizeRequestCallback = Ptr () -> IO ()
- type MenuItemToggleSizeRequestCallbackC = Ptr () -> Ptr () -> Ptr () -> IO ()
- data MenuItemToggleSizeRequestSignalInfo
- afterMenuItemToggleSizeRequest :: (GObject a, MonadIO m) => a -> MenuItemToggleSizeRequestCallback -> m SignalHandlerId
- menuItemToggleSizeRequestCallbackWrapper :: MenuItemToggleSizeRequestCallback -> Ptr () -> Ptr () -> Ptr () -> IO ()
- menuItemToggleSizeRequestClosure :: MenuItemToggleSizeRequestCallback -> IO Closure
- mkMenuItemToggleSizeRequestCallback :: MenuItemToggleSizeRequestCallbackC -> IO (FunPtr MenuItemToggleSizeRequestCallbackC)
- noMenuItemToggleSizeRequestCallback :: Maybe MenuItemToggleSizeRequestCallback
- onMenuItemToggleSizeRequest :: (GObject a, MonadIO m) => a -> MenuItemToggleSizeRequestCallback -> m SignalHandlerId
Exported types
GObject MenuItem Source | |
type ParentTypes MenuItem Source | |
type AttributeList MenuItem Source | |
type SignalList MenuItem Source |
toMenuItem :: MenuItemK o => o -> IO MenuItem Source
Methods
menuItemActivate
menuItemActivate :: (MonadIO m, MenuItemK a) => a -> m () Source
menuItemDeselect
menuItemDeselect :: (MonadIO m, MenuItemK a) => a -> m () Source
menuItemGetAccelPath
menuItemGetAccelPath :: (MonadIO m, MenuItemK a) => a -> m Text Source
menuItemGetLabel
menuItemGetLabel :: (MonadIO m, MenuItemK a) => a -> m Text Source
menuItemGetReserveIndicator
menuItemGetReserveIndicator :: (MonadIO m, MenuItemK a) => a -> m Bool Source
menuItemGetRightJustified
menuItemGetRightJustified :: (MonadIO m, MenuItemK a) => a -> m Bool Source
Deprecated: (Since version 3.2)See gtk_menu_item_set_right_justified()
menuItemGetSubmenu
menuItemGetSubmenu :: (MonadIO m, MenuItemK a) => a -> m Widget Source
menuItemGetUseUnderline
menuItemGetUseUnderline :: (MonadIO m, MenuItemK a) => a -> m Bool Source
menuItemNew
menuItemNew :: MonadIO m => m MenuItem Source
menuItemNewWithLabel
menuItemNewWithLabel :: MonadIO m => Text -> m MenuItem Source
menuItemNewWithMnemonic
menuItemNewWithMnemonic :: MonadIO m => Text -> m MenuItem Source
menuItemSelect
menuItemSelect :: (MonadIO m, MenuItemK a) => a -> m () Source
menuItemSetAccelPath
menuItemSetLabel
menuItemSetLabel :: (MonadIO m, MenuItemK a) => a -> Text -> m () Source
menuItemSetReserveIndicator
menuItemSetReserveIndicator :: (MonadIO m, MenuItemK a) => a -> Bool -> m () Source
menuItemSetRightJustified
menuItemSetRightJustified :: (MonadIO m, MenuItemK a) => a -> Bool -> m () Source
Deprecated: (Since version 3.2)If you insist on using it, use gtk_widget_set_hexpand() and gtk_widget_set_halign().
menuItemSetSubmenu
menuItemSetUseUnderline
menuItemSetUseUnderline :: (MonadIO m, MenuItemK a) => a -> Bool -> m () Source
menuItemToggleSizeAllocate
menuItemToggleSizeAllocate :: (MonadIO m, MenuItemK a) => a -> Int32 -> m () Source
menuItemToggleSizeRequest
Properties
AccelPath
data MenuItemAccelPathPropertyInfo Source
AttrInfo MenuItemAccelPathPropertyInfo Source | |
type AttrLabel MenuItemAccelPathPropertyInfo = "MenuItem::accel-path" Source | |
type AttrGetType MenuItemAccelPathPropertyInfo = Text Source | |
type AttrBaseTypeConstraint MenuItemAccelPathPropertyInfo = MenuItemK Source | |
type AttrSetTypeConstraint MenuItemAccelPathPropertyInfo = * ~ Text Source | |
type AttrAllowedOps MenuItemAccelPathPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getMenuItemAccelPath :: (MonadIO m, MenuItemK o) => o -> m Text Source
setMenuItemAccelPath :: (MonadIO m, MenuItemK o) => o -> Text -> m () Source
Label
data MenuItemLabelPropertyInfo Source
AttrInfo MenuItemLabelPropertyInfo Source | |
type AttrLabel MenuItemLabelPropertyInfo = "MenuItem::label" Source | |
type AttrGetType MenuItemLabelPropertyInfo = Text Source | |
type AttrBaseTypeConstraint MenuItemLabelPropertyInfo = MenuItemK Source | |
type AttrSetTypeConstraint MenuItemLabelPropertyInfo = * ~ Text Source | |
type AttrAllowedOps MenuItemLabelPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getMenuItemLabel :: (MonadIO m, MenuItemK o) => o -> m Text Source
setMenuItemLabel :: (MonadIO m, MenuItemK o) => o -> Text -> m () Source
RightJustified
data MenuItemRightJustifiedPropertyInfo Source
AttrInfo MenuItemRightJustifiedPropertyInfo Source | |
type AttrLabel MenuItemRightJustifiedPropertyInfo = "MenuItem::right-justified" Source | |
type AttrGetType MenuItemRightJustifiedPropertyInfo = Bool Source | |
type AttrBaseTypeConstraint MenuItemRightJustifiedPropertyInfo = MenuItemK Source | |
type AttrSetTypeConstraint MenuItemRightJustifiedPropertyInfo = * ~ Bool Source | |
type AttrAllowedOps MenuItemRightJustifiedPropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getMenuItemRightJustified :: (MonadIO m, MenuItemK o) => o -> m Bool Source
setMenuItemRightJustified :: (MonadIO m, MenuItemK o) => o -> Bool -> m () Source
Submenu
getMenuItemSubmenu :: (MonadIO m, MenuItemK o) => o -> m Menu Source
setMenuItemSubmenu :: (MonadIO m, MenuItemK o, MenuK a) => o -> a -> m () Source
UseUnderline
data MenuItemUseUnderlinePropertyInfo Source
AttrInfo MenuItemUseUnderlinePropertyInfo Source | |
type AttrLabel MenuItemUseUnderlinePropertyInfo = "MenuItem::use-underline" Source | |
type AttrGetType MenuItemUseUnderlinePropertyInfo = Bool Source | |
type AttrBaseTypeConstraint MenuItemUseUnderlinePropertyInfo = MenuItemK Source | |
type AttrSetTypeConstraint MenuItemUseUnderlinePropertyInfo = * ~ Bool Source | |
type AttrAllowedOps MenuItemUseUnderlinePropertyInfo = (:) AttrOpTag AttrSet ((:) AttrOpTag AttrConstruct ((:) AttrOpTag AttrGet ([] AttrOpTag))) Source |
getMenuItemUseUnderline :: (MonadIO m, MenuItemK o) => o -> m Bool Source
setMenuItemUseUnderline :: (MonadIO m, MenuItemK o) => o -> Bool -> m () Source
Signals
Activate
type MenuItemActivateCallback = IO () Source
type MenuItemActivateCallbackC = Ptr () -> Ptr () -> IO () Source
afterMenuItemActivate :: (GObject a, MonadIO m) => a -> MenuItemActivateCallback -> m SignalHandlerId Source
menuItemActivateCallbackWrapper :: MenuItemActivateCallback -> Ptr () -> Ptr () -> IO () Source
mkMenuItemActivateCallback :: MenuItemActivateCallbackC -> IO (FunPtr MenuItemActivateCallbackC) Source
onMenuItemActivate :: (GObject a, MonadIO m) => a -> MenuItemActivateCallback -> m SignalHandlerId Source
ActivateItem
type MenuItemActivateItemCallback = IO () Source
type MenuItemActivateItemCallbackC = Ptr () -> Ptr () -> IO () Source
afterMenuItemActivateItem :: (GObject a, MonadIO m) => a -> MenuItemActivateItemCallback -> m SignalHandlerId Source
menuItemActivateItemCallbackWrapper :: MenuItemActivateItemCallback -> Ptr () -> Ptr () -> IO () Source
mkMenuItemActivateItemCallback :: MenuItemActivateItemCallbackC -> IO (FunPtr MenuItemActivateItemCallbackC) Source
onMenuItemActivateItem :: (GObject a, MonadIO m) => a -> MenuItemActivateItemCallback -> m SignalHandlerId Source
Deselect
type MenuItemDeselectCallback = IO () Source
type MenuItemDeselectCallbackC = Ptr () -> Ptr () -> IO () Source
afterMenuItemDeselect :: (GObject a, MonadIO m) => a -> MenuItemDeselectCallback -> m SignalHandlerId Source
menuItemDeselectCallbackWrapper :: MenuItemDeselectCallback -> Ptr () -> Ptr () -> IO () Source
mkMenuItemDeselectCallback :: MenuItemDeselectCallbackC -> IO (FunPtr MenuItemDeselectCallbackC) Source
onMenuItemDeselect :: (GObject a, MonadIO m) => a -> MenuItemDeselectCallback -> m SignalHandlerId Source
Select
type MenuItemSelectCallback = IO () Source
type MenuItemSelectCallbackC = Ptr () -> Ptr () -> IO () Source
afterMenuItemSelect :: (GObject a, MonadIO m) => a -> MenuItemSelectCallback -> m SignalHandlerId Source
menuItemSelectCallbackWrapper :: MenuItemSelectCallback -> Ptr () -> Ptr () -> IO () Source
onMenuItemSelect :: (GObject a, MonadIO m) => a -> MenuItemSelectCallback -> m SignalHandlerId Source
ToggleSizeAllocate
type MenuItemToggleSizeAllocateCallback = Int32 -> IO () Source
afterMenuItemToggleSizeAllocate :: (GObject a, MonadIO m) => a -> MenuItemToggleSizeAllocateCallback -> m SignalHandlerId Source
menuItemToggleSizeAllocateCallbackWrapper :: MenuItemToggleSizeAllocateCallback -> Ptr () -> Int32 -> Ptr () -> IO () Source
mkMenuItemToggleSizeAllocateCallback :: MenuItemToggleSizeAllocateCallbackC -> IO (FunPtr MenuItemToggleSizeAllocateCallbackC) Source
onMenuItemToggleSizeAllocate :: (GObject a, MonadIO m) => a -> MenuItemToggleSizeAllocateCallback -> m SignalHandlerId Source
ToggleSizeRequest
type MenuItemToggleSizeRequestCallback = Ptr () -> IO () Source
afterMenuItemToggleSizeRequest :: (GObject a, MonadIO m) => a -> MenuItemToggleSizeRequestCallback -> m SignalHandlerId Source
menuItemToggleSizeRequestCallbackWrapper :: MenuItemToggleSizeRequestCallback -> Ptr () -> Ptr () -> Ptr () -> IO () Source
mkMenuItemToggleSizeRequestCallback :: MenuItemToggleSizeRequestCallbackC -> IO (FunPtr MenuItemToggleSizeRequestCallbackC) Source
onMenuItemToggleSizeRequest :: (GObject a, MonadIO m) => a -> MenuItemToggleSizeRequestCallback -> m SignalHandlerId Source