Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gtk.Objects.ImageMenuItem
Description
A GtkImageMenuItem is a menu item which has an icon next to the text label.
This is functionally equivalent to:
C code
GtkWidget *box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); GtkWidget *icon = gtk_image_new_from_icon_name ("folder-music-symbolic", GTK_ICON_SIZE_MENU); GtkWidget *label = gtk_label_new ("Music"); GtkWidget *menu_item = gtk_menu_item_new (); gtk_container_add (GTK_CONTAINER (box), icon); gtk_container_add (GTK_CONTAINER (box), label); gtk_container_add (GTK_CONTAINER (menu_item), box); gtk_widget_show_all (menu_item);
Note that the user may disable display of menu icons using
the Settings:gtkMenuImages setting, so make sure to still
fill in the text label. If you want to ensure that your menu items
show an icon you are strongly encouraged to use a MenuItem
with a Image
instead.
ImageMenuItem
has been deprecated since GTK+ 3.10. If you want to
display an icon in a menu item, you should use MenuItem
and pack a
Box
with a Image
and a Label
instead. You should also consider
using Builder
and the XML Menu
description for creating menus, by
following the [GMenu guide][https://developer.gnome.org/GMenu/]. You should
consider using icons in menu items only sparingly, and for "objects" (or
"nouns") elements only, like bookmarks, files, and links; "actions" (or
"verbs") should not have icons.
Furthermore, if you would like to display keyboard accelerator, you must
pack the accel label into the box using boxPackEnd
and align the
label, otherwise the accelerator will not display correctly. The following
code snippet adds a keyboard accelerator to the menu item, with a key
binding of Ctrl+M:
C code
GtkWidget *box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6); GtkWidget *icon = gtk_image_new_from_icon_name ("folder-music-symbolic", GTK_ICON_SIZE_MENU); GtkWidget *label = gtk_accel_label_new ("Music"); GtkWidget *menu_item = gtk_menu_item_new (); GtkAccelGroup *accel_group = gtk_accel_group_new (); gtk_container_add (GTK_CONTAINER (box), icon); gtk_label_set_use_underline (GTK_LABEL (label), TRUE); gtk_label_set_xalign (GTK_LABEL (label), 0.0); gtk_widget_add_accelerator (menu_item, "activate", accel_group, GDK_KEY_m, GDK_CONTROL_MASK, GTK_ACCEL_VISIBLE); gtk_accel_label_set_accel_widget (GTK_ACCEL_LABEL (label), menu_item); gtk_box_pack_end (GTK_BOX (box), label, TRUE, TRUE, 0); gtk_container_add (GTK_CONTAINER (menu_item), box); gtk_widget_show_all (menu_item);
Synopsis
- newtype ImageMenuItem = ImageMenuItem (ManagedPtr ImageMenuItem)
- class (GObject o, IsDescendantOf ImageMenuItem o) => IsImageMenuItem o
- toImageMenuItem :: (MonadIO m, IsImageMenuItem o) => o -> m ImageMenuItem
- type family ResolveImageMenuItemMethod (t :: Symbol) o where ...
- data ImageMenuItemGetAlwaysShowImageMethodInfo
- imageMenuItemGetAlwaysShowImage :: (HasCallStack, MonadIO m, IsImageMenuItem a) => a -> m Bool
- data ImageMenuItemGetImageMethodInfo
- imageMenuItemGetImage :: (HasCallStack, MonadIO m, IsImageMenuItem a) => a -> m Widget
- data ImageMenuItemGetUseStockMethodInfo
- imageMenuItemGetUseStock :: (HasCallStack, MonadIO m, IsImageMenuItem a) => a -> m Bool
- imageMenuItemNew :: (HasCallStack, MonadIO m) => m ImageMenuItem
- imageMenuItemNewFromStock :: (HasCallStack, MonadIO m, IsAccelGroup a) => Text -> Maybe a -> m ImageMenuItem
- imageMenuItemNewWithLabel :: (HasCallStack, MonadIO m) => Text -> m ImageMenuItem
- imageMenuItemNewWithMnemonic :: (HasCallStack, MonadIO m) => Text -> m ImageMenuItem
- data ImageMenuItemSetAccelGroupMethodInfo
- imageMenuItemSetAccelGroup :: (HasCallStack, MonadIO m, IsImageMenuItem a, IsAccelGroup b) => a -> b -> m ()
- data ImageMenuItemSetAlwaysShowImageMethodInfo
- imageMenuItemSetAlwaysShowImage :: (HasCallStack, MonadIO m, IsImageMenuItem a) => a -> Bool -> m ()
- data ImageMenuItemSetImageMethodInfo
- imageMenuItemSetImage :: (HasCallStack, MonadIO m, IsImageMenuItem a, IsWidget b) => a -> Maybe b -> m ()
- data ImageMenuItemSetUseStockMethodInfo
- imageMenuItemSetUseStock :: (HasCallStack, MonadIO m, IsImageMenuItem a) => a -> Bool -> m ()
- data ImageMenuItemAccelGroupPropertyInfo
- constructImageMenuItemAccelGroup :: (IsImageMenuItem o, MonadIO m, IsAccelGroup a) => a -> m (GValueConstruct o)
- imageMenuItemAccelGroup :: AttrLabelProxy "accelGroup"
- setImageMenuItemAccelGroup :: (MonadIO m, IsImageMenuItem o, IsAccelGroup a) => o -> a -> m ()
- data ImageMenuItemAlwaysShowImagePropertyInfo
- constructImageMenuItemAlwaysShowImage :: (IsImageMenuItem o, MonadIO m) => Bool -> m (GValueConstruct o)
- getImageMenuItemAlwaysShowImage :: (MonadIO m, IsImageMenuItem o) => o -> m Bool
- imageMenuItemAlwaysShowImage :: AttrLabelProxy "alwaysShowImage"
- setImageMenuItemAlwaysShowImage :: (MonadIO m, IsImageMenuItem o) => o -> Bool -> m ()
- data ImageMenuItemImagePropertyInfo
- clearImageMenuItemImage :: (MonadIO m, IsImageMenuItem o) => o -> m ()
- constructImageMenuItemImage :: (IsImageMenuItem o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o)
- getImageMenuItemImage :: (MonadIO m, IsImageMenuItem o) => o -> m Widget
- imageMenuItemImage :: AttrLabelProxy "image"
- setImageMenuItemImage :: (MonadIO m, IsImageMenuItem o, IsWidget a) => o -> a -> m ()
- data ImageMenuItemUseStockPropertyInfo
- constructImageMenuItemUseStock :: (IsImageMenuItem o, MonadIO m) => Bool -> m (GValueConstruct o)
- getImageMenuItemUseStock :: (MonadIO m, IsImageMenuItem o) => o -> m Bool
- imageMenuItemUseStock :: AttrLabelProxy "useStock"
- setImageMenuItemUseStock :: (MonadIO m, IsImageMenuItem o) => o -> Bool -> m ()
Exported types
newtype ImageMenuItem Source #
Memory-managed wrapper type.
Constructors
ImageMenuItem (ManagedPtr ImageMenuItem) |
Instances
class (GObject o, IsDescendantOf ImageMenuItem o) => IsImageMenuItem o Source #
Type class for types which can be safely cast to ImageMenuItem
, for instance with toImageMenuItem
.
Instances
(GObject o, IsDescendantOf ImageMenuItem o) => IsImageMenuItem o Source # | |
Defined in GI.Gtk.Objects.ImageMenuItem |
toImageMenuItem :: (MonadIO m, IsImageMenuItem o) => o -> m ImageMenuItem Source #
Cast to ImageMenuItem
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
activate, add, addAccelerator, addChild, addDeviceEvents, addEvents, addMnemonicLabel, addTickCallback, bindProperty, bindPropertyFull, canActivateAccel, checkResize, childFocus, childGetProperty, childNotify, childNotifyByPspec, childSetProperty, childType, classPath, computeExpand, constructChild, createPangoContext, createPangoLayout, customFinished, customTagEnd, customTagStart, deselect, destroy, destroyed, deviceIsShadowed, doSetRelatedAction, dragBegin, dragBeginWithCoordinates, dragCheckThreshold, dragDestAddImageTargets, dragDestAddTextTargets, dragDestAddUriTargets, dragDestFindTarget, dragDestGetTargetList, dragDestGetTrackMotion, dragDestSet, dragDestSetProxy, dragDestSetTargetList, dragDestSetTrackMotion, dragDestUnset, dragGetData, dragHighlight, dragSourceAddImageTargets, dragSourceAddTextTargets, dragSourceAddUriTargets, dragSourceGetTargetList, dragSourceSet, dragSourceSetIconGicon, dragSourceSetIconName, dragSourceSetIconPixbuf, dragSourceSetIconStock, dragSourceSetTargetList, dragSourceUnset, dragUnhighlight, draw, ensureStyle, errorBell, event, forall, forceFloating, foreach, freezeChildNotify, freezeNotify, getv, grabAdd, grabDefault, grabFocus, grabRemove, hasDefault, hasFocus, hasGrab, hasRcStyle, hasScreen, hasVisibleFocus, hide, hideOnDelete, inDestruction, initTemplate, inputShapeCombineRegion, insertActionGroup, intersect, isAncestor, isComposited, isDrawable, isFloating, isFocus, isSensitive, isToplevel, isVisible, keynavFailed, listAccelClosures, listActionPrefixes, listMnemonicLabels, map, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, parserFinished, path, propagateDraw, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refSink, regionIntersect, registerWindow, remove, removeAccelerator, removeMnemonicLabel, removeTickCallback, renderIcon, renderIconPixbuf, reparent, resetRcStyles, resetStyle, resizeChildren, runDispose, select, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, syncActionProperties, thawChildNotify, thawNotify, toggleSizeAllocate, toggleSizeRequest, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unsetFocusChain, unsetStateFlags, watchClosure.
Getters
getAccelPath, getAccessible, getActionGroup, getActionName, getActionTargetValue, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAlwaysShowImage, getAncestor, getAppPaintable, getBorderWidth, getCanDefault, getCanFocus, getChild, getChildRequisition, getChildVisible, getChildren, getClip, getClipboard, getCompositeName, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getEvents, getFocusChain, getFocusChild, getFocusHadjustment, getFocusOnClick, getFocusVadjustment, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getImage, getInternalChild, getLabel, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getModifierMask, getModifierStyle, getName, getNoShowAll, getOpacity, getPangoContext, getParent, getParentWindow, getPath, getPathForChild, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProperty, getQdata, getRealized, getReceivesDefault, getRelatedAction, getRequestMode, getRequisition, getReserveIndicator, getResizeMode, getRightJustified, getRootWindow, getScaleFactor, getScreen, getSensitive, getSettings, getSizeRequest, getState, getStateFlags, getStyle, getStyleContext, getSubmenu, getSupportMultidevice, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getUseActionAppearance, getUseStock, getUseUnderline, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.
Setters
setAccelGroup, setAccelPath, setActionName, setActionTargetValue, setAllocation, setAlwaysShowImage, setAppPaintable, setBorderWidth, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setCompositeName, setData, setDataFull, setDetailedActionName, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setEvents, setFocusChain, setFocusChild, setFocusHadjustment, setFocusOnClick, setFocusVadjustment, setFontMap, setFontOptions, setHalign, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setImage, setLabel, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setName, setNoShowAll, setOpacity, setParent, setParentWindow, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setRelatedAction, setReserveIndicator, setResizeMode, setRightJustified, setSensitive, setSizeRequest, setState, setStateFlags, setStyle, setSubmenu, setSupportMultidevice, setTooltipMarkup, setTooltipText, setTooltipWindow, setUseActionAppearance, setUseStock, setUseUnderline, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.
type family ResolveImageMenuItemMethod (t :: Symbol) o where ... Source #
Equations
getAlwaysShowImage
data ImageMenuItemGetAlwaysShowImageMethodInfo Source #
Instances
(signature ~ m Bool, MonadIO m, IsImageMenuItem a) => OverloadedMethod ImageMenuItemGetAlwaysShowImageMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.ImageMenuItem Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo ImageMenuItemGetAlwaysShowImageMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.ImageMenuItem Methods |
imageMenuItemGetAlwaysShowImage Source #
Arguments
:: (HasCallStack, MonadIO m, IsImageMenuItem a) | |
=> a |
|
-> m Bool | Returns: |
Deprecated: (Since version 3.10)
Returns whether the menu item will ignore the Settings:gtkMenuImages setting and always show the image, if available.
Since: 2.16
getImage
data ImageMenuItemGetImageMethodInfo Source #
Instances
(signature ~ m Widget, MonadIO m, IsImageMenuItem a) => OverloadedMethod ImageMenuItemGetImageMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.ImageMenuItem Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo ImageMenuItemGetImageMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.ImageMenuItem Methods |
imageMenuItemGetImage Source #
Arguments
:: (HasCallStack, MonadIO m, IsImageMenuItem a) | |
=> a |
|
-> m Widget | Returns: the widget set as image of |
Deprecated: (Since version 3.10)
Gets the widget that is currently set as the image of imageMenuItem
.
See imageMenuItemSetImage
.
getUseStock
data ImageMenuItemGetUseStockMethodInfo Source #
Instances
(signature ~ m Bool, MonadIO m, IsImageMenuItem a) => OverloadedMethod ImageMenuItemGetUseStockMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.ImageMenuItem Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo ImageMenuItemGetUseStockMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.ImageMenuItem Methods |
imageMenuItemGetUseStock Source #
Arguments
:: (HasCallStack, MonadIO m, IsImageMenuItem a) | |
=> a |
|
-> m Bool | Returns: |
Deprecated: (Since version 3.10)
Checks whether the label set in the menuitem is used as a stock id to select the stock item for the item.
Since: 2.16
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m ImageMenuItem | Returns: a new |
Deprecated: (Since version 3.10)Use menuItemNew
instead.
Creates a new ImageMenuItem
with an empty label.
newFromStock
imageMenuItemNewFromStock Source #
Arguments
:: (HasCallStack, MonadIO m, IsAccelGroup a) | |
=> Text |
|
-> Maybe a |
|
-> m ImageMenuItem | Returns: a new |
Deprecated: (Since version 3.10)Use menuItemNewWithMnemonic
instead.
Creates a new ImageMenuItem
containing the image and text from a
stock item. Some stock ids have preprocessor macros like STOCK_OK
and STOCK_APPLY
.
If you want this menu item to have changeable accelerators, then pass in
Nothing
for accel_group. Next call menuItemSetAccelPath
with an
appropriate path for the menu item, use stockLookup
to look up the
standard accelerator for the stock item, and if one is found, call
accelMapAddEntry
to register it.
newWithLabel
imageMenuItemNewWithLabel Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m ImageMenuItem | Returns: a new |
Deprecated: (Since version 3.10)Use menuItemNewWithLabel
instead.
Creates a new ImageMenuItem
containing a label.
newWithMnemonic
imageMenuItemNewWithMnemonic Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m ImageMenuItem | Returns: a new |
Deprecated: (Since version 3.10)Use menuItemNewWithMnemonic
instead.
Creates a new ImageMenuItem
containing a label. The label
will be created using labelNewWithMnemonic
, so underscores
in label
indicate the mnemonic for the menu item.
setAccelGroup
data ImageMenuItemSetAccelGroupMethodInfo Source #
Instances
(signature ~ (b -> m ()), MonadIO m, IsImageMenuItem a, IsAccelGroup b) => OverloadedMethod ImageMenuItemSetAccelGroupMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.ImageMenuItem Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo ImageMenuItemSetAccelGroupMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.ImageMenuItem Methods |
imageMenuItemSetAccelGroup Source #
Arguments
:: (HasCallStack, MonadIO m, IsImageMenuItem a, IsAccelGroup b) | |
=> a |
|
-> b |
|
-> m () |
Deprecated: (Since version 3.10)
Specifies an accelGroup
to add the menu items accelerator to
(this only applies to stock items so a stock item must already
be set, make sure to call imageMenuItemSetUseStock
and menuItemSetLabel
with a valid stock item first).
If you want this menu item to have changeable accelerators then
you shouldnt need this (see imageMenuItemNewFromStock
).
Since: 2.16
setAlwaysShowImage
data ImageMenuItemSetAlwaysShowImageMethodInfo Source #
Instances
(signature ~ (Bool -> m ()), MonadIO m, IsImageMenuItem a) => OverloadedMethod ImageMenuItemSetAlwaysShowImageMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.ImageMenuItem Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo ImageMenuItemSetAlwaysShowImageMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.ImageMenuItem Methods |
imageMenuItemSetAlwaysShowImage Source #
Arguments
:: (HasCallStack, MonadIO m, IsImageMenuItem a) | |
=> a |
|
-> Bool |
|
-> m () |
Deprecated: (Since version 3.10)
If True
, the menu item will ignore the Settings:gtkMenuImages
setting and always show the image, if available.
Use this property if the menuitem would be useless or hard to use without the image.
Since: 2.16
setImage
data ImageMenuItemSetImageMethodInfo Source #
Instances
(signature ~ (Maybe b -> m ()), MonadIO m, IsImageMenuItem a, IsWidget b) => OverloadedMethod ImageMenuItemSetImageMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.ImageMenuItem Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo ImageMenuItemSetImageMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.ImageMenuItem Methods |
imageMenuItemSetImage Source #
Arguments
:: (HasCallStack, MonadIO m, IsImageMenuItem a, IsWidget b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Deprecated: (Since version 3.10)
Sets the image of imageMenuItem
to the given widget.
Note that it depends on the show-menu-images setting whether
the image will be displayed or not.
setUseStock
data ImageMenuItemSetUseStockMethodInfo Source #
Instances
(signature ~ (Bool -> m ()), MonadIO m, IsImageMenuItem a) => OverloadedMethod ImageMenuItemSetUseStockMethodInfo a signature Source # | |
Defined in GI.Gtk.Objects.ImageMenuItem Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo ImageMenuItemSetUseStockMethodInfo (a :: Type) Source # | |
Defined in GI.Gtk.Objects.ImageMenuItem Methods |
imageMenuItemSetUseStock Source #
Arguments
:: (HasCallStack, MonadIO m, IsImageMenuItem a) | |
=> a |
|
-> Bool |
|
-> m () |
Deprecated: (Since version 3.10)
If True
, the label set in the menuitem is used as a
stock id to select the stock item for the item.
Since: 2.16
Properties
accelGroup
The Accel Group to use for stock accelerator keys
Since: 2.16
data ImageMenuItemAccelGroupPropertyInfo Source #
Instances
constructImageMenuItemAccelGroup :: (IsImageMenuItem o, MonadIO m, IsAccelGroup a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “accel-group
” property. This is rarely needed directly, but it is used by new
.
imageMenuItemAccelGroup :: AttrLabelProxy "accelGroup" Source #
setImageMenuItemAccelGroup :: (MonadIO m, IsImageMenuItem o, IsAccelGroup a) => o -> a -> m () Source #
Set the value of the “accel-group
” property.
When overloading is enabled, this is equivalent to
set
imageMenuItem [ #accelGroup:=
value ]
alwaysShowImage
If True
, the menu item will always show the image, if available.
Use this property only if the menuitem would be useless or hard to use without the image.
Since: 2.16
data ImageMenuItemAlwaysShowImagePropertyInfo Source #
Instances
AttrInfo ImageMenuItemAlwaysShowImagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.ImageMenuItem Associated Types
Methods attrGet :: AttrBaseTypeConstraint ImageMenuItemAlwaysShowImagePropertyInfo o => o -> IO (AttrGetType ImageMenuItemAlwaysShowImagePropertyInfo) # attrSet :: (AttrBaseTypeConstraint ImageMenuItemAlwaysShowImagePropertyInfo o, AttrSetTypeConstraint ImageMenuItemAlwaysShowImagePropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint ImageMenuItemAlwaysShowImagePropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint ImageMenuItemAlwaysShowImagePropertyInfo o, AttrSetTypeConstraint ImageMenuItemAlwaysShowImagePropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint ImageMenuItemAlwaysShowImagePropertyInfo o, AttrTransferTypeConstraint ImageMenuItemAlwaysShowImagePropertyInfo b) => Proxy o -> b -> IO (AttrTransferType ImageMenuItemAlwaysShowImagePropertyInfo) # attrPut :: AttrBaseTypeConstraint ImageMenuItemAlwaysShowImagePropertyInfo o => o -> AttrGetType ImageMenuItemAlwaysShowImagePropertyInfo -> IO () # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps ImageMenuItemAlwaysShowImagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.ImageMenuItem type AttrAllowedOps ImageMenuItemAlwaysShowImagePropertyInfo = '['AttrSet, 'AttrConstruct, 'AttrGet, 'AttrPut] | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint ImageMenuItemAlwaysShowImagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType ImageMenuItemAlwaysShowImagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.ImageMenuItem | |||||||||||||||||||||||||||||||||
type AttrLabel ImageMenuItemAlwaysShowImagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.ImageMenuItem | |||||||||||||||||||||||||||||||||
type AttrOrigin ImageMenuItemAlwaysShowImagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint ImageMenuItemAlwaysShowImagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferType ImageMenuItemAlwaysShowImagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint ImageMenuItemAlwaysShowImagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
constructImageMenuItemAlwaysShowImage :: (IsImageMenuItem o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “always-show-image
” property. This is rarely needed directly, but it is used by new
.
getImageMenuItemAlwaysShowImage :: (MonadIO m, IsImageMenuItem o) => o -> m Bool Source #
Get the value of the “always-show-image
” property.
When overloading is enabled, this is equivalent to
get
imageMenuItem #alwaysShowImage
imageMenuItemAlwaysShowImage :: AttrLabelProxy "alwaysShowImage" Source #
setImageMenuItemAlwaysShowImage :: (MonadIO m, IsImageMenuItem o) => o -> Bool -> m () Source #
Set the value of the “always-show-image
” property.
When overloading is enabled, this is equivalent to
set
imageMenuItem [ #alwaysShowImage:=
value ]
image
Child widget to appear next to the menu text.
data ImageMenuItemImagePropertyInfo Source #
Instances
AttrInfo ImageMenuItemImagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.ImageMenuItem Associated Types
Methods attrGet :: AttrBaseTypeConstraint ImageMenuItemImagePropertyInfo o => o -> IO (AttrGetType ImageMenuItemImagePropertyInfo) # attrSet :: (AttrBaseTypeConstraint ImageMenuItemImagePropertyInfo o, AttrSetTypeConstraint ImageMenuItemImagePropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint ImageMenuItemImagePropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint ImageMenuItemImagePropertyInfo o, AttrSetTypeConstraint ImageMenuItemImagePropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint ImageMenuItemImagePropertyInfo o, AttrTransferTypeConstraint ImageMenuItemImagePropertyInfo b) => Proxy o -> b -> IO (AttrTransferType ImageMenuItemImagePropertyInfo) # attrPut :: AttrBaseTypeConstraint ImageMenuItemImagePropertyInfo o => o -> AttrGetType ImageMenuItemImagePropertyInfo -> IO () # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps ImageMenuItemImagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.ImageMenuItem type AttrAllowedOps ImageMenuItemImagePropertyInfo = '['AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear] | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint ImageMenuItemImagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType ImageMenuItemImagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.ImageMenuItem | |||||||||||||||||||||||||||||||||
type AttrLabel ImageMenuItemImagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.ImageMenuItem | |||||||||||||||||||||||||||||||||
type AttrOrigin ImageMenuItemImagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.ImageMenuItem | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint ImageMenuItemImagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrTransferType ImageMenuItemImagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.ImageMenuItem | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint ImageMenuItemImagePropertyInfo Source # | |||||||||||||||||||||||||||||||||
clearImageMenuItemImage :: (MonadIO m, IsImageMenuItem o) => o -> m () Source #
Set the value of the “image
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#image
constructImageMenuItemImage :: (IsImageMenuItem o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “image
” property. This is rarely needed directly, but it is used by new
.
getImageMenuItemImage :: (MonadIO m, IsImageMenuItem o) => o -> m Widget Source #
Get the value of the “image
” property.
When overloading is enabled, this is equivalent to
get
imageMenuItem #image
imageMenuItemImage :: AttrLabelProxy "image" Source #
setImageMenuItemImage :: (MonadIO m, IsImageMenuItem o, IsWidget a) => o -> a -> m () Source #
Set the value of the “image
” property.
When overloading is enabled, this is equivalent to
set
imageMenuItem [ #image:=
value ]
useStock
If True
, the label set in the menuitem is used as a
stock id to select the stock item for the item.
Since: 2.16
data ImageMenuItemUseStockPropertyInfo Source #
Instances
AttrInfo ImageMenuItemUseStockPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.ImageMenuItem Associated Types
Methods attrGet :: AttrBaseTypeConstraint ImageMenuItemUseStockPropertyInfo o => o -> IO (AttrGetType ImageMenuItemUseStockPropertyInfo) # attrSet :: (AttrBaseTypeConstraint ImageMenuItemUseStockPropertyInfo o, AttrSetTypeConstraint ImageMenuItemUseStockPropertyInfo b) => o -> b -> IO () # attrClear :: AttrBaseTypeConstraint ImageMenuItemUseStockPropertyInfo o => o -> IO () # attrConstruct :: (AttrBaseTypeConstraint ImageMenuItemUseStockPropertyInfo o, AttrSetTypeConstraint ImageMenuItemUseStockPropertyInfo b) => b -> IO (GValueConstruct o) # attrTransfer :: (AttrBaseTypeConstraint ImageMenuItemUseStockPropertyInfo o, AttrTransferTypeConstraint ImageMenuItemUseStockPropertyInfo b) => Proxy o -> b -> IO (AttrTransferType ImageMenuItemUseStockPropertyInfo) # attrPut :: AttrBaseTypeConstraint ImageMenuItemUseStockPropertyInfo o => o -> AttrGetType ImageMenuItemUseStockPropertyInfo -> IO () # | |||||||||||||||||||||||||||||||||
type AttrAllowedOps ImageMenuItemUseStockPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.ImageMenuItem type AttrAllowedOps ImageMenuItemUseStockPropertyInfo = '['AttrSet, 'AttrConstruct, 'AttrGet, 'AttrPut] | |||||||||||||||||||||||||||||||||
type AttrBaseTypeConstraint ImageMenuItemUseStockPropertyInfo Source # | |||||||||||||||||||||||||||||||||
type AttrGetType ImageMenuItemUseStockPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.ImageMenuItem | |||||||||||||||||||||||||||||||||
type AttrLabel ImageMenuItemUseStockPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.ImageMenuItem | |||||||||||||||||||||||||||||||||
type AttrOrigin ImageMenuItemUseStockPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.ImageMenuItem | |||||||||||||||||||||||||||||||||
type AttrSetTypeConstraint ImageMenuItemUseStockPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.ImageMenuItem | |||||||||||||||||||||||||||||||||
type AttrTransferType ImageMenuItemUseStockPropertyInfo Source # | |||||||||||||||||||||||||||||||||
Defined in GI.Gtk.Objects.ImageMenuItem | |||||||||||||||||||||||||||||||||
type AttrTransferTypeConstraint ImageMenuItemUseStockPropertyInfo Source # | |||||||||||||||||||||||||||||||||
constructImageMenuItemUseStock :: (IsImageMenuItem o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “use-stock
” property. This is rarely needed directly, but it is used by new
.
getImageMenuItemUseStock :: (MonadIO m, IsImageMenuItem o) => o -> m Bool Source #
Get the value of the “use-stock
” property.
When overloading is enabled, this is equivalent to
get
imageMenuItem #useStock
imageMenuItemUseStock :: AttrLabelProxy "useStock" Source #
setImageMenuItemUseStock :: (MonadIO m, IsImageMenuItem o) => o -> Bool -> m () Source #
Set the value of the “use-stock
” property.
When overloading is enabled, this is equivalent to
set
imageMenuItem [ #useStock:=
value ]