Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GI.Dazzle.Objects.MenuButton
Description
No description available in the introspection data.
Synopsis
- newtype MenuButton = MenuButton (ManagedPtr MenuButton)
- class (GObject o, IsDescendantOf MenuButton o) => IsMenuButton o
- toMenuButton :: (MonadIO m, IsMenuButton o) => o -> m MenuButton
- menuButtonGetModel :: (HasCallStack, MonadIO m, IsMenuButton a) => a -> m (Maybe MenuModel)
- menuButtonGetShowAccels :: (HasCallStack, MonadIO m, IsMenuButton a) => a -> m Bool
- menuButtonGetShowArrow :: (HasCallStack, MonadIO m, IsMenuButton a) => a -> m Bool
- menuButtonGetShowIcons :: (HasCallStack, MonadIO m, IsMenuButton a) => a -> m Bool
- menuButtonNewWithModel :: (HasCallStack, MonadIO m, IsMenuModel a) => Text -> Maybe a -> m MenuButton
- menuButtonSetModel :: (HasCallStack, MonadIO m, IsMenuButton a, IsMenuModel b) => a -> b -> m ()
- menuButtonSetShowAccels :: (HasCallStack, MonadIO m, IsMenuButton a) => a -> Bool -> m ()
- menuButtonSetShowArrow :: (HasCallStack, MonadIO m, IsMenuButton a) => a -> Bool -> m ()
- menuButtonSetShowIcons :: (HasCallStack, MonadIO m, IsMenuButton a) => a -> Bool -> m ()
- clearMenuButtonIconName :: (MonadIO m, IsMenuButton o) => o -> m ()
- constructMenuButtonIconName :: (IsMenuButton o, MonadIO m) => Text -> m (GValueConstruct o)
- setMenuButtonIconName :: (MonadIO m, IsMenuButton o) => o -> Text -> m ()
- clearMenuButtonMenuId :: (MonadIO m, IsMenuButton o) => o -> m ()
- constructMenuButtonMenuId :: (IsMenuButton o, MonadIO m) => Text -> m (GValueConstruct o)
- setMenuButtonMenuId :: (MonadIO m, IsMenuButton o) => o -> Text -> m ()
- constructMenuButtonModel :: (IsMenuButton o, MonadIO m, IsMenuModel a) => a -> m (GValueConstruct o)
- getMenuButtonModel :: (MonadIO m, IsMenuButton o) => o -> m (Maybe MenuModel)
- setMenuButtonModel :: (MonadIO m, IsMenuButton o, IsMenuModel a) => o -> a -> m ()
- constructMenuButtonShowAccels :: (IsMenuButton o, MonadIO m) => Bool -> m (GValueConstruct o)
- getMenuButtonShowAccels :: (MonadIO m, IsMenuButton o) => o -> m Bool
- setMenuButtonShowAccels :: (MonadIO m, IsMenuButton o) => o -> Bool -> m ()
- constructMenuButtonShowArrow :: (IsMenuButton o, MonadIO m) => Bool -> m (GValueConstruct o)
- getMenuButtonShowArrow :: (MonadIO m, IsMenuButton o) => o -> m Bool
- setMenuButtonShowArrow :: (MonadIO m, IsMenuButton o) => o -> Bool -> m ()
- constructMenuButtonShowIcons :: (IsMenuButton o, MonadIO m) => Bool -> m (GValueConstruct o)
- getMenuButtonShowIcons :: (MonadIO m, IsMenuButton o) => o -> m Bool
- setMenuButtonShowIcons :: (MonadIO m, IsMenuButton o) => o -> Bool -> m ()
- constructMenuButtonTransitionsEnabled :: (IsMenuButton o, MonadIO m) => Bool -> m (GValueConstruct o)
- getMenuButtonTransitionsEnabled :: (MonadIO m, IsMenuButton o) => o -> m Bool
- setMenuButtonTransitionsEnabled :: (MonadIO m, IsMenuButton o) => o -> Bool -> m ()
Exported types
newtype MenuButton Source #
Memory-managed wrapper type.
Constructors
MenuButton (ManagedPtr MenuButton) |
Instances
Eq MenuButton Source # | |
Defined in GI.Dazzle.Objects.MenuButton | |
GObject MenuButton Source # | |
Defined in GI.Dazzle.Objects.MenuButton | |
ManagedPtrNewtype MenuButton Source # | |
Defined in GI.Dazzle.Objects.MenuButton Methods toManagedPtr :: MenuButton -> ManagedPtr MenuButton | |
TypedObject MenuButton Source # | |
Defined in GI.Dazzle.Objects.MenuButton | |
HasParentTypes MenuButton Source # | |
Defined in GI.Dazzle.Objects.MenuButton | |
IsGValue (Maybe MenuButton) Source # | Convert |
Defined in GI.Dazzle.Objects.MenuButton Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe MenuButton -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe MenuButton) | |
type ParentTypes MenuButton Source # | |
Defined in GI.Dazzle.Objects.MenuButton type ParentTypes MenuButton = '[MenuButton, ToggleButton, Button, Bin, Container, Widget, Object, ImplementorIface, Actionable, Activatable, Buildable] |
class (GObject o, IsDescendantOf MenuButton o) => IsMenuButton o Source #
Type class for types which can be safely cast to MenuButton
, for instance with toMenuButton
.
Instances
(GObject o, IsDescendantOf MenuButton o) => IsMenuButton o Source # | |
Defined in GI.Dazzle.Objects.MenuButton |
toMenuButton :: (MonadIO m, IsMenuButton o) => o -> m MenuButton Source #
Cast to MenuButton
, 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, clicked, computeExpand, constructChild, createPangoContext, createPangoLayout, customFinished, customTagEnd, customTagStart, 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, enter, 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, leave, listAccelClosures, listActionPrefixes, listMnemonicLabels, map, mnemonicActivate, modifyBase, modifyBg, modifyCursor, modifyFg, modifyFont, modifyStyle, modifyText, notify, notifyByPspec, overrideBackgroundColor, overrideColor, overrideCursor, overrideFont, overrideSymbolicColor, parserFinished, path, pressed, propagateDraw, queueAllocate, queueComputeExpand, queueDraw, queueDrawArea, queueDrawRegion, queueResize, queueResizeNoRedraw, realize, ref, refSink, regionIntersect, registerWindow, released, remove, removeAccelerator, removeMnemonicLabel, removeTickCallback, renderIcon, renderIconPixbuf, reparent, resetRcStyles, resetStyle, resizeChildren, runDispose, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, syncActionProperties, thawChildNotify, thawNotify, toggled, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unsetFocusChain, unsetStateFlags, watchClosure.
Getters
getAccessible, getActionGroup, getActionName, getActionTargetValue, getActive, getAlignWidget, getAlignment, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAlwaysShowImage, getAncestor, getAppPaintable, getBorderWidth, getCanDefault, getCanFocus, getChild, getChildRequisition, getChildVisible, getChildren, getClip, getClipboard, getCompositeName, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDoubleBuffered, getEventWindow, getEvents, getFocusChain, getFocusChild, getFocusHadjustment, getFocusOnClick, getFocusVadjustment, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getImage, getImagePosition, getInconsistent, getInternalChild, getLabel, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getMenuModel, getMode, getModel, getModifierMask, getModifierStyle, getName, getNoShowAll, getOpacity, getPangoContext, getParent, getParentWindow, getPath, getPathForChild, getPointer, getPopover, getPopup, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProperty, getQdata, getRealized, getReceivesDefault, getRelatedAction, getRelief, getRequestMode, getRequisition, getResizeMode, getRootWindow, getScaleFactor, getScreen, getSensitive, getSettings, getShowAccels, getShowArrow, getShowIcons, getSizeRequest, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getUseActionAppearance, getUsePopover, getUseStock, getUseUnderline, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.
Setters
setAccelPath, setActionName, setActionTargetValue, setActive, setAlignWidget, setAlignment, 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, setImagePosition, setInconsistent, setLabel, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setMenuModel, setMode, setModel, setName, setNoShowAll, setOpacity, setParent, setParentWindow, setPopover, setPopup, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setRelatedAction, setRelief, setResizeMode, setSensitive, setShowAccels, setShowArrow, setShowIcons, setSizeRequest, setState, setStateFlags, setStyle, setSupportMultidevice, setTooltipMarkup, setTooltipText, setTooltipWindow, setUseActionAppearance, setUsePopover, setUseStock, setUseUnderline, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.
getModel
Arguments
:: (HasCallStack, MonadIO m, IsMenuButton a) | |
=> a |
|
-> m (Maybe MenuModel) | Returns: A |
No description available in the introspection data.
Since: 3.26
getShowAccels
menuButtonGetShowAccels :: (HasCallStack, MonadIO m, IsMenuButton a) => a -> m Bool Source #
No description available in the introspection data.
getShowArrow
menuButtonGetShowArrow :: (HasCallStack, MonadIO m, IsMenuButton a) => a -> m Bool Source #
No description available in the introspection data.
getShowIcons
menuButtonGetShowIcons :: (HasCallStack, MonadIO m, IsMenuButton a) => a -> m Bool Source #
No description available in the introspection data.
newWithModel
menuButtonNewWithModel Source #
Arguments
:: (HasCallStack, MonadIO m, IsMenuModel a) | |
=> Text |
|
-> Maybe a | |
-> m MenuButton | Returns: A |
Creates a new MenuButton
with the icon iconName
and
the menu contents of model
.
setModel
menuButtonSetModel :: (HasCallStack, MonadIO m, IsMenuButton a, IsMenuModel b) => a -> b -> m () Source #
No description available in the introspection data.
setShowAccels
menuButtonSetShowAccels Source #
Arguments
:: (HasCallStack, MonadIO m, IsMenuButton a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets the MenuButton:showAccels property.
If True
, accelerators will be displayed next to menu items that
contain a shortcut.
Since: 3.26
setShowArrow
menuButtonSetShowArrow Source #
Arguments
:: (HasCallStack, MonadIO m, IsMenuButton a) | |
=> a |
|
-> Bool | |
-> m () |
Sets the MenuButton:showArrow property.
If True
, an pan-down-symbolic image will be displayed next to the
image in the button.
Since: 3.26
setShowIcons
menuButtonSetShowIcons Source #
Arguments
:: (HasCallStack, MonadIO m, IsMenuButton a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets the MenuButton:showIcons property.
If True
, icons will be displayed next to menu items that
contain a shortcut.
Since: 3.26
Properties
iconName
No description available in the introspection data.
clearMenuButtonIconName :: (MonadIO m, IsMenuButton o) => o -> m () Source #
Set the value of the “icon-name
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#iconName
constructMenuButtonIconName :: (IsMenuButton o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “icon-name
” property. This is rarely needed directly, but it is used by new
.
setMenuButtonIconName :: (MonadIO m, IsMenuButton o) => o -> Text -> m () Source #
Set the value of the “icon-name
” property.
When overloading is enabled, this is equivalent to
set
menuButton [ #iconName:=
value ]
menuId
The "menu-id" property can be used to automatically load a
MenuModel
from the applications merged menus. This is
performed via applicationGetMenuById
.
Since: 3.26
clearMenuButtonMenuId :: (MonadIO m, IsMenuButton o) => o -> m () Source #
Set the value of the “menu-id
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#menuId
constructMenuButtonMenuId :: (IsMenuButton o, MonadIO m) => Text -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “menu-id
” property. This is rarely needed directly, but it is used by new
.
setMenuButtonMenuId :: (MonadIO m, IsMenuButton o) => o -> Text -> m () Source #
Set the value of the “menu-id
” property.
When overloading is enabled, this is equivalent to
set
menuButton [ #menuId:=
value ]
model
No description available in the introspection data.
constructMenuButtonModel :: (IsMenuButton o, MonadIO m, IsMenuModel a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “model
” property. This is rarely needed directly, but it is used by new
.
getMenuButtonModel :: (MonadIO m, IsMenuButton o) => o -> m (Maybe MenuModel) Source #
Get the value of the “model
” property.
When overloading is enabled, this is equivalent to
get
menuButton #model
setMenuButtonModel :: (MonadIO m, IsMenuButton o, IsMenuModel a) => o -> a -> m () Source #
Set the value of the “model
” property.
When overloading is enabled, this is equivalent to
set
menuButton [ #model:=
value ]
showAccels
No description available in the introspection data.
constructMenuButtonShowAccels :: (IsMenuButton o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-accels
” property. This is rarely needed directly, but it is used by new
.
getMenuButtonShowAccels :: (MonadIO m, IsMenuButton o) => o -> m Bool Source #
Get the value of the “show-accels
” property.
When overloading is enabled, this is equivalent to
get
menuButton #showAccels
setMenuButtonShowAccels :: (MonadIO m, IsMenuButton o) => o -> Bool -> m () Source #
Set the value of the “show-accels
” property.
When overloading is enabled, this is equivalent to
set
menuButton [ #showAccels:=
value ]
showArrow
No description available in the introspection data.
constructMenuButtonShowArrow :: (IsMenuButton o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-arrow
” property. This is rarely needed directly, but it is used by new
.
getMenuButtonShowArrow :: (MonadIO m, IsMenuButton o) => o -> m Bool Source #
Get the value of the “show-arrow
” property.
When overloading is enabled, this is equivalent to
get
menuButton #showArrow
setMenuButtonShowArrow :: (MonadIO m, IsMenuButton o) => o -> Bool -> m () Source #
Set the value of the “show-arrow
” property.
When overloading is enabled, this is equivalent to
set
menuButton [ #showArrow:=
value ]
showIcons
No description available in the introspection data.
constructMenuButtonShowIcons :: (IsMenuButton o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “show-icons
” property. This is rarely needed directly, but it is used by new
.
getMenuButtonShowIcons :: (MonadIO m, IsMenuButton o) => o -> m Bool Source #
Get the value of the “show-icons
” property.
When overloading is enabled, this is equivalent to
get
menuButton #showIcons
setMenuButtonShowIcons :: (MonadIO m, IsMenuButton o) => o -> Bool -> m () Source #
Set the value of the “show-icons
” property.
When overloading is enabled, this is equivalent to
set
menuButton [ #showIcons:=
value ]
transitionsEnabled
No description available in the introspection data.
constructMenuButtonTransitionsEnabled :: (IsMenuButton o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “transitions-enabled
” property. This is rarely needed directly, but it is used by new
.
getMenuButtonTransitionsEnabled :: (MonadIO m, IsMenuButton o) => o -> m Bool Source #
Get the value of the “transitions-enabled
” property.
When overloading is enabled, this is equivalent to
get
menuButton #transitionsEnabled
setMenuButtonTransitionsEnabled :: (MonadIO m, IsMenuButton o) => o -> Bool -> m () Source #
Set the value of the “transitions-enabled
” property.
When overloading is enabled, this is equivalent to
set
menuButton [ #transitionsEnabled:=
value ]