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.Handy.Objects.Flap
Contents
- Exported types
- Methods
- getContent
- getFlap
- getFlapPosition
- getFoldDuration
- getFoldPolicy
- getFolded
- getLocked
- getModal
- getRevealDuration
- getRevealFlap
- getRevealProgress
- getSeparator
- getSwipeToClose
- getSwipeToOpen
- getTransitionType
- new
- setContent
- setFlap
- setFlapPosition
- setFoldDuration
- setFoldPolicy
- setLocked
- setModal
- setRevealDuration
- setRevealFlap
- setSeparator
- setSwipeToClose
- setSwipeToOpen
- setTransitionType
- Properties
Description
An adaptive container acting like a box or an overlay.
The HdyFlap
widget can display its children like a Box
does or
like a Overlay
does, according to the
[propertyflap
:fold-policy] value.
HdyFlap
has at most three children: [propertyflap
:content],
[propertyflap
:flap] and [propertyflap
:separator]. Content is the primary
child, flap is displayed next to it when unfolded, or overlays it when
folded. Flap can be shown or hidden by changing the
[propertyflap
:reveal-flap] value, as well as via swipe gestures if
[propertyflap
:swipe-to-open] and/or [propertyflap
:swipe-to-close] are set
to TRUE
.
Optionally, a separator can be provided, which would be displayed between the content and the flap when there's no shadow to separate them, depending on the transition type.
- property
flap
:flap - is transparent by default; add the
.background
style class to it if this is unwanted.
If [propertyflap
:modal] is set to TRUE
, content becomes completely
inaccessible when the flap is revealed while folded.
The position of the flap and separator children relative to the content is
determined by orientation, as well as the [propertyflap
:flap-position]
value.
Folding the flap will automatically hide the flap widget, and unfolding it
will automatically reveal it. If this behavior is not desired, the
[propertyflap
:locked] property can be used to override it.
Common use cases include sidebars, header bars that need to be able to overlap the window content (for example, in fullscreen mode) and bottom sheets.
HdyFlap as GtkBuildable
The HdyFlap
implementation of the Buildable
interface supports
setting the flap child by specifying “flap” as the “type” attribute of a
<child> element, and separator by specifying “separator”. Specifying
“content” child type or omitting it results in setting the content child.
CSS nodes
HdyFlap
has a single CSS node with name flap
. The node will get the style
classes .folded
when it is folded, and .unfolded
when it's not.
Since: 1.2
Synopsis
- newtype Flap = Flap (ManagedPtr Flap)
- class (GObject o, IsDescendantOf Flap o) => IsFlap o
- toFlap :: (MonadIO m, IsFlap o) => o -> m Flap
- flapGetContent :: (HasCallStack, MonadIO m, IsFlap a) => a -> m (Maybe Widget)
- flapGetFlap :: (HasCallStack, MonadIO m, IsFlap a) => a -> m (Maybe Widget)
- flapGetFlapPosition :: (HasCallStack, MonadIO m, IsFlap a) => a -> m PackType
- flapGetFoldDuration :: (HasCallStack, MonadIO m, IsFlap a) => a -> m Word32
- flapGetFoldPolicy :: (HasCallStack, MonadIO m, IsFlap a) => a -> m FlapFoldPolicy
- flapGetFolded :: (HasCallStack, MonadIO m, IsFlap a) => a -> m Bool
- flapGetLocked :: (HasCallStack, MonadIO m, IsFlap a) => a -> m Bool
- flapGetModal :: (HasCallStack, MonadIO m, IsFlap a) => a -> m Bool
- flapGetRevealDuration :: (HasCallStack, MonadIO m, IsFlap a) => a -> m Word32
- flapGetRevealFlap :: (HasCallStack, MonadIO m, IsFlap a) => a -> m Bool
- flapGetRevealProgress :: (HasCallStack, MonadIO m, IsFlap a) => a -> m Double
- flapGetSeparator :: (HasCallStack, MonadIO m, IsFlap a) => a -> m (Maybe Widget)
- flapGetSwipeToClose :: (HasCallStack, MonadIO m, IsFlap a) => a -> m Bool
- flapGetSwipeToOpen :: (HasCallStack, MonadIO m, IsFlap a) => a -> m Bool
- flapGetTransitionType :: (HasCallStack, MonadIO m, IsFlap a) => a -> m FlapTransitionType
- flapNew :: (HasCallStack, MonadIO m) => m Flap
- flapSetContent :: (HasCallStack, MonadIO m, IsFlap a, IsWidget b) => a -> Maybe b -> m ()
- flapSetFlap :: (HasCallStack, MonadIO m, IsFlap a, IsWidget b) => a -> Maybe b -> m ()
- flapSetFlapPosition :: (HasCallStack, MonadIO m, IsFlap a) => a -> PackType -> m ()
- flapSetFoldDuration :: (HasCallStack, MonadIO m, IsFlap a) => a -> Word32 -> m ()
- flapSetFoldPolicy :: (HasCallStack, MonadIO m, IsFlap a) => a -> FlapFoldPolicy -> m ()
- flapSetLocked :: (HasCallStack, MonadIO m, IsFlap a) => a -> Bool -> m ()
- flapSetModal :: (HasCallStack, MonadIO m, IsFlap a) => a -> Bool -> m ()
- flapSetRevealDuration :: (HasCallStack, MonadIO m, IsFlap a) => a -> Word32 -> m ()
- flapSetRevealFlap :: (HasCallStack, MonadIO m, IsFlap a) => a -> Bool -> m ()
- flapSetSeparator :: (HasCallStack, MonadIO m, IsFlap a, IsWidget b) => a -> Maybe b -> m ()
- flapSetSwipeToClose :: (HasCallStack, MonadIO m, IsFlap a) => a -> Bool -> m ()
- flapSetSwipeToOpen :: (HasCallStack, MonadIO m, IsFlap a) => a -> Bool -> m ()
- flapSetTransitionType :: (HasCallStack, MonadIO m, IsFlap a) => a -> FlapTransitionType -> m ()
- clearFlapContent :: (MonadIO m, IsFlap o) => o -> m ()
- constructFlapContent :: (IsFlap o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o)
- getFlapContent :: (MonadIO m, IsFlap o) => o -> m (Maybe Widget)
- setFlapContent :: (MonadIO m, IsFlap o, IsWidget a) => o -> a -> m ()
- clearFlapFlap :: (MonadIO m, IsFlap o) => o -> m ()
- constructFlapFlap :: (IsFlap o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o)
- getFlapFlap :: (MonadIO m, IsFlap o) => o -> m (Maybe Widget)
- setFlapFlap :: (MonadIO m, IsFlap o, IsWidget a) => o -> a -> m ()
- constructFlapFlapPosition :: (IsFlap o, MonadIO m) => PackType -> m (GValueConstruct o)
- getFlapFlapPosition :: (MonadIO m, IsFlap o) => o -> m PackType
- setFlapFlapPosition :: (MonadIO m, IsFlap o) => o -> PackType -> m ()
- constructFlapFoldDuration :: (IsFlap o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getFlapFoldDuration :: (MonadIO m, IsFlap o) => o -> m Word32
- setFlapFoldDuration :: (MonadIO m, IsFlap o) => o -> Word32 -> m ()
- constructFlapFoldPolicy :: (IsFlap o, MonadIO m) => FlapFoldPolicy -> m (GValueConstruct o)
- getFlapFoldPolicy :: (MonadIO m, IsFlap o) => o -> m FlapFoldPolicy
- setFlapFoldPolicy :: (MonadIO m, IsFlap o) => o -> FlapFoldPolicy -> m ()
- getFlapFolded :: (MonadIO m, IsFlap o) => o -> m Bool
- constructFlapLocked :: (IsFlap o, MonadIO m) => Bool -> m (GValueConstruct o)
- getFlapLocked :: (MonadIO m, IsFlap o) => o -> m Bool
- setFlapLocked :: (MonadIO m, IsFlap o) => o -> Bool -> m ()
- constructFlapModal :: (IsFlap o, MonadIO m) => Bool -> m (GValueConstruct o)
- getFlapModal :: (MonadIO m, IsFlap o) => o -> m Bool
- setFlapModal :: (MonadIO m, IsFlap o) => o -> Bool -> m ()
- constructFlapRevealDuration :: (IsFlap o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getFlapRevealDuration :: (MonadIO m, IsFlap o) => o -> m Word32
- setFlapRevealDuration :: (MonadIO m, IsFlap o) => o -> Word32 -> m ()
- constructFlapRevealFlap :: (IsFlap o, MonadIO m) => Bool -> m (GValueConstruct o)
- getFlapRevealFlap :: (MonadIO m, IsFlap o) => o -> m Bool
- setFlapRevealFlap :: (MonadIO m, IsFlap o) => o -> Bool -> m ()
- getFlapRevealProgress :: (MonadIO m, IsFlap o) => o -> m Double
- clearFlapSeparator :: (MonadIO m, IsFlap o) => o -> m ()
- constructFlapSeparator :: (IsFlap o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o)
- getFlapSeparator :: (MonadIO m, IsFlap o) => o -> m (Maybe Widget)
- setFlapSeparator :: (MonadIO m, IsFlap o, IsWidget a) => o -> a -> m ()
- constructFlapSwipeToClose :: (IsFlap o, MonadIO m) => Bool -> m (GValueConstruct o)
- getFlapSwipeToClose :: (MonadIO m, IsFlap o) => o -> m Bool
- setFlapSwipeToClose :: (MonadIO m, IsFlap o) => o -> Bool -> m ()
- constructFlapSwipeToOpen :: (IsFlap o, MonadIO m) => Bool -> m (GValueConstruct o)
- getFlapSwipeToOpen :: (MonadIO m, IsFlap o) => o -> m Bool
- setFlapSwipeToOpen :: (MonadIO m, IsFlap o) => o -> Bool -> m ()
- constructFlapTransitionType :: (IsFlap o, MonadIO m) => FlapTransitionType -> m (GValueConstruct o)
- getFlapTransitionType :: (MonadIO m, IsFlap o) => o -> m FlapTransitionType
- setFlapTransitionType :: (MonadIO m, IsFlap o) => o -> FlapTransitionType -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Flap Source # | |
GObject Flap Source # | |
Defined in GI.Handy.Objects.Flap | |
ManagedPtrNewtype Flap Source # | |
Defined in GI.Handy.Objects.Flap Methods toManagedPtr :: Flap -> ManagedPtr Flap | |
TypedObject Flap Source # | |
Defined in GI.Handy.Objects.Flap | |
HasParentTypes Flap Source # | |
Defined in GI.Handy.Objects.Flap | |
IsGValue (Maybe Flap) Source # | Convert |
Defined in GI.Handy.Objects.Flap Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Flap -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Flap) | |
type ParentTypes Flap Source # | |
Defined in GI.Handy.Objects.Flap |
class (GObject o, IsDescendantOf Flap o) => IsFlap o Source #
Instances
(GObject o, IsDescendantOf Flap o) => IsFlap o Source # | |
Defined in GI.Handy.Objects.Flap |
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, destroy, destroyed, deviceIsShadowed, 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, emitChildSwitched, 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, sendExpose, sendFocusChange, shapeCombineRegion, show, showAll, showNow, sizeAllocate, sizeAllocateWithBaseline, sizeRequest, stealData, stealQdata, styleAttach, styleGetProperty, switchChild, thawChildNotify, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unregisterWindow, unsetFocusChain, unsetStateFlags, watchClosure.
Getters
getAccessible, getActionGroup, getAllocatedBaseline, getAllocatedHeight, getAllocatedSize, getAllocatedWidth, getAllocation, getAncestor, getAppPaintable, getBorderWidth, getCanDefault, getCanFocus, getCancelProgress, getChildRequisition, getChildVisible, getChildren, getClip, getClipboard, getCompositeName, getContent, getData, getDeviceEnabled, getDeviceEvents, getDirection, getDisplay, getDistance, getDoubleBuffered, getEvents, getFlap, getFlapPosition, getFocusChain, getFocusChild, getFocusHadjustment, getFocusOnClick, getFocusVadjustment, getFoldDuration, getFoldPolicy, getFolded, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHasWindow, getHexpand, getHexpandSet, getInternalChild, getLocked, getMapped, getMarginBottom, getMarginEnd, getMarginLeft, getMarginRight, getMarginStart, getMarginTop, getModal, getModifierMask, getModifierStyle, getName, getNoShowAll, getOpacity, getOrientation, getPangoContext, getParent, getParentWindow, getPath, getPathForChild, getPointer, getPreferredHeight, getPreferredHeightAndBaselineForWidth, getPreferredHeightForWidth, getPreferredSize, getPreferredWidth, getPreferredWidthForHeight, getProgress, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRequisition, getResizeMode, getRevealDuration, getRevealFlap, getRevealProgress, getRootWindow, getScaleFactor, getScreen, getSensitive, getSeparator, getSettings, getSizeRequest, getSnapPoints, getState, getStateFlags, getStyle, getStyleContext, getSupportMultidevice, getSwipeArea, getSwipeToClose, getSwipeToOpen, getSwipeTracker, getTemplateChild, getTooltipMarkup, getTooltipText, getTooltipWindow, getToplevel, getTransitionType, getValign, getValignWithBaseline, getVexpand, getVexpandSet, getVisible, getVisual, getWindow.
Setters
setAccelPath, setAllocation, setAppPaintable, setBorderWidth, setBuildableProperty, setCanDefault, setCanFocus, setChildVisible, setClip, setCompositeName, setContent, setData, setDataFull, setDeviceEnabled, setDeviceEvents, setDirection, setDoubleBuffered, setEvents, setFlap, setFlapPosition, setFocusChain, setFocusChild, setFocusHadjustment, setFocusOnClick, setFocusVadjustment, setFoldDuration, setFoldPolicy, setFontMap, setFontOptions, setHalign, setHasTooltip, setHasWindow, setHexpand, setHexpandSet, setLocked, setMapped, setMarginBottom, setMarginEnd, setMarginLeft, setMarginRight, setMarginStart, setMarginTop, setModal, setName, setNoShowAll, setOpacity, setOrientation, setParent, setParentWindow, setProperty, setRealized, setReallocateRedraws, setReceivesDefault, setRedrawOnAllocate, setResizeMode, setRevealDuration, setRevealFlap, setSensitive, setSeparator, setSizeRequest, setState, setStateFlags, setStyle, setSupportMultidevice, setSwipeToClose, setSwipeToOpen, setTooltipMarkup, setTooltipText, setTooltipWindow, setTransitionType, setValign, setVexpand, setVexpandSet, setVisible, setVisual, setWindow.
getContent
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m (Maybe Widget) | Returns: the content widget for |
Gets the content widget for self
Since: 1.2
getFlap
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m (Maybe Widget) | Returns: the flap widget for |
Gets the flap widget for self
Since: 1.2
getFlapPosition
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m PackType | Returns: the flap position for |
Gets the flap position for self
.
Since: 1.2
getFoldDuration
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m Word32 | Returns: the fold transition duration, in milliseconds |
Gets the amount of time that fold transitions will take.
Since: 1.2
getFoldPolicy
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m FlapFoldPolicy | Returns: the current fold policy of |
Gets the current fold policy of self
.
Since: 1.2
getFolded
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m Bool | Returns: |
Gets whether self
is currently folded.
Since: 1.2
getLocked
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m Bool | Returns: whether |
Gets whether self
is locked.
Since: 1.2
getModal
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m Bool | Returns: whether |
Gets whether the self
is modal.
Since: 1.2
getRevealDuration
flapGetRevealDuration Source #
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m Word32 | Returns: the reveal transition duration, in milliseconds |
Gets the amount of time that reveal transitions will take.
Since: 1.2
getRevealFlap
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m Bool | Returns: whether flap widget is revealed |
Gets whether the flap widget is revealed for self
.
Since: 1.2
getRevealProgress
flapGetRevealProgress Source #
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m Double | Returns: the current reveal progress for |
Gets the current reveal transition progress for self
.
Since: 1.2
getSeparator
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m (Maybe Widget) | Returns: the separator widget for |
Gets the separator widget for self
.
Since: 1.2
getSwipeToClose
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m Bool | Returns: |
Gets whether self
can be closed with a swipe gesture.
Since: 1.2
getSwipeToOpen
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m Bool | Returns: |
Gets whether self
can be opened with a swipe gesture.
Since: 1.2
getTransitionType
flapGetTransitionType Source #
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m FlapTransitionType | Returns: the current transition type of |
Gets the type of animation used for reveal and fold transitions in self
.
Since: 1.2
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m Flap | Returns: the newly created |
Creates a new HdyFlap
.
Since: 1.2
setContent
Arguments
:: (HasCallStack, MonadIO m, IsFlap a, IsWidget b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the content widget for self
.
It is always displayed when unfolded, and partially visible when folded.
Since: 1.2
setFlap
Arguments
:: (HasCallStack, MonadIO m, IsFlap a, IsWidget b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the flap widget for self
.
Since: 1.2
setFlapPosition
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> PackType |
|
-> m () |
Sets the flap position for self
.
Since: 1.2
setFoldDuration
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> Word32 |
|
-> m () |
Sets the duration that fold transitions will take.
Since: 1.2
setFoldPolicy
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> FlapFoldPolicy |
|
-> m () |
Sets the current fold policy for self
.
Since: 1.2
setLocked
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether self
is locked.
If FALSE
, folding self
when the flap is revealed automatically closes it,
and unfolding it when the flap is not revealed opens it. If TRUE
,
[propertyflap
:reveal-flap] value never changes on its own.
Since: 1.2
setModal
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the self
can be closed with a click.
If modal
is TRUE
, clicking the content widget while flap is revealed, or
pressing the <kbd>Esc</kbd> key, will close the flap. If FALSE
, clicks are
passed through to the content widget.
Since: 1.2
setRevealDuration
flapSetRevealDuration Source #
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> Word32 |
|
-> m () |
Sets the duration that reveal transitions in self
will take.
Since: 1.2
setRevealFlap
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the flap widget is revealed for self
.
Since: 1.2
setSeparator
Arguments
:: (HasCallStack, MonadIO m, IsFlap a, IsWidget b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the separator widget for self
.
Since: 1.2
setSwipeToClose
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether self
can be closed with a swipe gesture.
The area that can be swiped depends on the [propertyflap
:transition-type] value.
Since: 1.2
setSwipeToOpen
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether self
can be opened with a swipe gesture.
The area that can be swiped depends on the [propertyflap
:transition-type]
value.
Since: 1.2
setTransitionType
flapSetTransitionType Source #
Arguments
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> FlapTransitionType |
|
-> m () |
Sets the type of animation used for reveal and fold transitions in self
.
Since: 1.2
Properties
content
The content widget.
It's always displayed when unfolded, and partially visible when folded.
Since: 1.2
clearFlapContent :: (MonadIO m, IsFlap o) => o -> m () Source #
Set the value of the “content
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#content
constructFlapContent :: (IsFlap o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “content
” property. This is rarely needed directly, but it is used by new
.
getFlapContent :: (MonadIO m, IsFlap o) => o -> m (Maybe Widget) Source #
Get the value of the “content
” property.
When overloading is enabled, this is equivalent to
get
flap #content
setFlapContent :: (MonadIO m, IsFlap o, IsWidget a) => o -> a -> m () Source #
Set the value of the “content
” property.
When overloading is enabled, this is equivalent to
set
flap [ #content:=
value ]
flap
The flap widget.
It's only visible when [propertyflap
:reveal-progress] is greater than 0.
Since: 1.2
clearFlapFlap :: (MonadIO m, IsFlap o) => o -> m () Source #
Set the value of the “flap
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#flap
constructFlapFlap :: (IsFlap o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “flap
” property. This is rarely needed directly, but it is used by new
.
getFlapFlap :: (MonadIO m, IsFlap o) => o -> m (Maybe Widget) Source #
Get the value of the “flap
” property.
When overloading is enabled, this is equivalent to
get
flap #flap
setFlapFlap :: (MonadIO m, IsFlap o, IsWidget a) => o -> a -> m () Source #
Set the value of the “flap
” property.
When overloading is enabled, this is equivalent to
set
flap [ #flap:=
value ]
flapPosition
The flap position.
If GTK_PACK_START
, the flap is displayed before the content, if
GTK_PACK_END
, it's displayed after the content.
Since: 1.2
constructFlapFlapPosition :: (IsFlap o, MonadIO m) => PackType -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “flap-position
” property. This is rarely needed directly, but it is used by new
.
getFlapFlapPosition :: (MonadIO m, IsFlap o) => o -> m PackType Source #
Get the value of the “flap-position
” property.
When overloading is enabled, this is equivalent to
get
flap #flapPosition
setFlapFlapPosition :: (MonadIO m, IsFlap o) => o -> PackType -> m () Source #
Set the value of the “flap-position
” property.
When overloading is enabled, this is equivalent to
set
flap [ #flapPosition:=
value ]
foldDuration
The fold transition animation duration, in milliseconds.
Since: 1.2
constructFlapFoldDuration :: (IsFlap o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “fold-duration
” property. This is rarely needed directly, but it is used by new
.
getFlapFoldDuration :: (MonadIO m, IsFlap o) => o -> m Word32 Source #
Get the value of the “fold-duration
” property.
When overloading is enabled, this is equivalent to
get
flap #foldDuration
setFlapFoldDuration :: (MonadIO m, IsFlap o) => o -> Word32 -> m () Source #
Set the value of the “fold-duration
” property.
When overloading is enabled, this is equivalent to
set
flap [ #foldDuration:=
value ]
foldPolicy
The current fold policy.
See [enumflapFoldPolicy
] for available policies.
Since: 1.2
constructFlapFoldPolicy :: (IsFlap o, MonadIO m) => FlapFoldPolicy -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “fold-policy
” property. This is rarely needed directly, but it is used by new
.
getFlapFoldPolicy :: (MonadIO m, IsFlap o) => o -> m FlapFoldPolicy Source #
Get the value of the “fold-policy
” property.
When overloading is enabled, this is equivalent to
get
flap #foldPolicy
setFlapFoldPolicy :: (MonadIO m, IsFlap o) => o -> FlapFoldPolicy -> m () Source #
Set the value of the “fold-policy
” property.
When overloading is enabled, this is equivalent to
set
flap [ #foldPolicy:=
value ]
folded
Whether the flap is currently folded.
See [propertyflap
:fold-policy].
Since: 1.2
getFlapFolded :: (MonadIO m, IsFlap o) => o -> m Bool Source #
Get the value of the “folded
” property.
When overloading is enabled, this is equivalent to
get
flap #folded
locked
Whether the flap is locked.
If FALSE
, folding when the flap is revealed automatically closes it, and
unfolding it when the flap is not revealed opens it. If TRUE
,
[propertyflap
:reveal-flap] value never changes on its own.
Since: 1.2
constructFlapLocked :: (IsFlap o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “locked
” property. This is rarely needed directly, but it is used by new
.
getFlapLocked :: (MonadIO m, IsFlap o) => o -> m Bool Source #
Get the value of the “locked
” property.
When overloading is enabled, this is equivalent to
get
flap #locked
setFlapLocked :: (MonadIO m, IsFlap o) => o -> Bool -> m () Source #
Set the value of the “locked
” property.
When overloading is enabled, this is equivalent to
set
flap [ #locked:=
value ]
modal
Whether the flap is modal.
If TRUE
, clicking the content widget while flap is revealed, as well as
pressing the <kbd>Esc</kbd> key, will close the flap. If FALSE
, clicks
are passed through to the content widget.
Since: 1.2
constructFlapModal :: (IsFlap o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “modal
” property. This is rarely needed directly, but it is used by new
.
getFlapModal :: (MonadIO m, IsFlap o) => o -> m Bool Source #
Get the value of the “modal
” property.
When overloading is enabled, this is equivalent to
get
flap #modal
setFlapModal :: (MonadIO m, IsFlap o) => o -> Bool -> m () Source #
Set the value of the “modal
” property.
When overloading is enabled, this is equivalent to
set
flap [ #modal:=
value ]
revealDuration
The reveal transition animation duration, in milliseconds.
Since: 1.2
constructFlapRevealDuration :: (IsFlap o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “reveal-duration
” property. This is rarely needed directly, but it is used by new
.
getFlapRevealDuration :: (MonadIO m, IsFlap o) => o -> m Word32 Source #
Get the value of the “reveal-duration
” property.
When overloading is enabled, this is equivalent to
get
flap #revealDuration
setFlapRevealDuration :: (MonadIO m, IsFlap o) => o -> Word32 -> m () Source #
Set the value of the “reveal-duration
” property.
When overloading is enabled, this is equivalent to
set
flap [ #revealDuration:=
value ]
revealFlap
Whether the flap widget is revealed.
Since: 1.2
constructFlapRevealFlap :: (IsFlap o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “reveal-flap
” property. This is rarely needed directly, but it is used by new
.
getFlapRevealFlap :: (MonadIO m, IsFlap o) => o -> m Bool Source #
Get the value of the “reveal-flap
” property.
When overloading is enabled, this is equivalent to
get
flap #revealFlap
setFlapRevealFlap :: (MonadIO m, IsFlap o) => o -> Bool -> m () Source #
Set the value of the “reveal-flap
” property.
When overloading is enabled, this is equivalent to
set
flap [ #revealFlap:=
value ]
revealProgress
The current reveal transition progress.
0 means fully hidden, 1 means fully revealed. See
[propertyflap
:reveal-flap].
Since: 1.2
getFlapRevealProgress :: (MonadIO m, IsFlap o) => o -> m Double Source #
Get the value of the “reveal-progress
” property.
When overloading is enabled, this is equivalent to
get
flap #revealProgress
separator
The separator widget.
It's displayed between content and flap when there's no shadow to display.
When exactly it's visible depends on the [propertyflap
:transition-type]
value. If NULL
, no separator will be used.
Since: 1.2
clearFlapSeparator :: (MonadIO m, IsFlap o) => o -> m () Source #
Set the value of the “separator
” property to Nothing
.
When overloading is enabled, this is equivalent to
clear
#separator
constructFlapSeparator :: (IsFlap o, MonadIO m, IsWidget a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “separator
” property. This is rarely needed directly, but it is used by new
.
getFlapSeparator :: (MonadIO m, IsFlap o) => o -> m (Maybe Widget) Source #
Get the value of the “separator
” property.
When overloading is enabled, this is equivalent to
get
flap #separator
setFlapSeparator :: (MonadIO m, IsFlap o, IsWidget a) => o -> a -> m () Source #
Set the value of the “separator
” property.
When overloading is enabled, this is equivalent to
set
flap [ #separator:=
value ]
swipeToClose
Whether the flap can be closed with a swipe gesture.
The area that can be swiped depends on the [propertyflap
:transition-type]
value.
Since: 1.2
constructFlapSwipeToClose :: (IsFlap o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “swipe-to-close
” property. This is rarely needed directly, but it is used by new
.
getFlapSwipeToClose :: (MonadIO m, IsFlap o) => o -> m Bool Source #
Get the value of the “swipe-to-close
” property.
When overloading is enabled, this is equivalent to
get
flap #swipeToClose
setFlapSwipeToClose :: (MonadIO m, IsFlap o) => o -> Bool -> m () Source #
Set the value of the “swipe-to-close
” property.
When overloading is enabled, this is equivalent to
set
flap [ #swipeToClose:=
value ]
swipeToOpen
Whether the flap can be opened with a swipe gesture.
The area that can be swiped depends on the [propertyflap
:transition-type]
value.
Since: 1.2
constructFlapSwipeToOpen :: (IsFlap o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “swipe-to-open
” property. This is rarely needed directly, but it is used by new
.
getFlapSwipeToOpen :: (MonadIO m, IsFlap o) => o -> m Bool Source #
Get the value of the “swipe-to-open
” property.
When overloading is enabled, this is equivalent to
get
flap #swipeToOpen
setFlapSwipeToOpen :: (MonadIO m, IsFlap o) => o -> Bool -> m () Source #
Set the value of the “swipe-to-open
” property.
When overloading is enabled, this is equivalent to
set
flap [ #swipeToOpen:=
value ]
transitionType
the type of animation used for reveal and fold transitions.
- property
flap
:flap - is transparent by default, which means the content
will be seen through it with
HDY_FLAP_TRANSITION_TYPE_OVER
transitions; add the.background
style class to it if this is unwanted.
Since: 1.2
constructFlapTransitionType :: (IsFlap o, MonadIO m) => FlapTransitionType -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “transition-type
” property. This is rarely needed directly, but it is used by new
.
getFlapTransitionType :: (MonadIO m, IsFlap o) => o -> m FlapTransitionType Source #
Get the value of the “transition-type
” property.
When overloading is enabled, this is equivalent to
get
flap #transitionType
setFlapTransitionType :: (MonadIO m, IsFlap o) => o -> FlapTransitionType -> m () Source #
Set the value of the “transition-type
” property.
When overloading is enabled, this is equivalent to
set
flap [ #transitionType:=
value ]