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 |
- Exported types
- Methods
- getContent
- getFlap
- getFlapPosition
- getFoldDuration
- getFoldPolicy
- getFoldThresholdPolicy
- getFolded
- getLocked
- getModal
- getRevealDuration
- getRevealFlap
- getRevealProgress
- getSeparator
- getSwipeToClose
- getSwipeToOpen
- getTransitionType
- new
- setContent
- setFlap
- setFlapPosition
- setFoldDuration
- setFoldPolicy
- setFoldThresholdPolicy
- setLocked
- setModal
- setRevealDuration
- setRevealFlap
- setSeparator
- setSwipeToClose
- setSwipeToOpen
- setTransitionType
- Properties
An adaptive container acting like a box or an overlay.
The AdwFlap
widget can display its children like a Box
does or
like a Overlay
does, according to the
Flap:foldPolicy value.
AdwFlap
has at most three children: Flap:content,
Flap:flap and Flap: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 th
Flap:revealFlap value, as well as via swipe gestures if
Flap:swipeToOpen and/or Flap:swipeToClose 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.
Flap:flap is transparent by default; add the .background
style class to it if this is unwanted.
If Flap: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 Flap:flapPosition value.
Folding the flap will automatically hide the flap widget, and unfolding it will automatically reveal it. If this behavior is not desired, the Flap: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.
AdwFlap as GtkBuildable
The AdwFlap
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
AdwFlap
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.0
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
- flapGetFoldThresholdPolicy :: (HasCallStack, MonadIO m, IsFlap a) => a -> m FoldThresholdPolicy
- 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 ()
- flapSetFoldThresholdPolicy :: (HasCallStack, MonadIO m, IsFlap a) => a -> FoldThresholdPolicy -> 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 ()
- constructFlapFoldThresholdPolicy :: (IsFlap o, MonadIO m) => FoldThresholdPolicy -> m (GValueConstruct o)
- getFlapFoldThresholdPolicy :: (MonadIO m, IsFlap o) => o -> m FoldThresholdPolicy
- setFlapFoldThresholdPolicy :: (MonadIO m, IsFlap o) => o -> FoldThresholdPolicy -> 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.Adw.Objects.Flap | |
ManagedPtrNewtype Flap Source # | |
Defined in GI.Adw.Objects.Flap toManagedPtr :: Flap -> ManagedPtr Flap # | |
TypedObject Flap Source # | |
Defined in GI.Adw.Objects.Flap | |
HasParentTypes Flap Source # | |
Defined in GI.Adw.Objects.Flap | |
IsGValue (Maybe Flap) Source # | Convert |
Defined in GI.Adw.Objects.Flap | |
type ParentTypes Flap Source # | |
Defined in GI.Adw.Objects.Flap type ParentTypes Flap = '[Widget, Object, Swipeable, Accessible, Buildable, ConstraintTarget, Orientable] |
class (GObject o, IsDescendantOf Flap o) => IsFlap o Source #
Instances
(GObject o, IsDescendantOf Flap o) => IsFlap o Source # | |
Defined in GI.Adw.Objects.Flap |
Methods
Click to display all available methods, including inherited ones
Methods
actionSetEnabled, activate, activateAction, activateDefault, addController, addCssClass, addMnemonicLabel, addTickCallback, allocate, bindProperty, bindPropertyFull, childFocus, computeBounds, computeExpand, computePoint, computeTransform, contains, createPangoContext, createPangoLayout, dragCheckThreshold, errorBell, forceFloating, freezeNotify, getv, grabFocus, hasCssClass, hasDefault, hasFocus, hasVisibleFocus, hide, inDestruction, initTemplate, insertActionGroup, insertAfter, insertBefore, isAncestor, isDrawable, isFloating, isFocus, isSensitive, isVisible, keynavFailed, listMnemonicLabels, map, measure, mnemonicActivate, notify, notifyByPspec, observeChildren, observeControllers, pick, queueAllocate, queueDraw, queueResize, realize, ref, refSink, removeController, removeCssClass, removeMnemonicLabel, removeTickCallback, resetProperty, resetRelation, resetState, runDispose, shouldLayout, show, sizeAllocate, snapshotChild, stealData, stealQdata, thawNotify, translateCoordinates, triggerTooltipQuery, unmap, unparent, unrealize, unref, unsetStateFlags, updateProperty, updateRelation, updateState, watchClosure.
Getters
getAccessibleRole, getAllocatedBaseline, getAllocatedHeight, getAllocatedWidth, getAllocation, getAncestor, getBuildableId, getCanFocus, getCanTarget, getCancelProgress, getChildVisible, getClipboard, getContent, getCssClasses, getCssName, getCursor, getData, getDirection, getDisplay, getDistance, getFirstChild, getFlap, getFlapPosition, getFocusChild, getFocusOnClick, getFocusable, getFoldDuration, getFoldPolicy, getFoldThresholdPolicy, getFolded, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHeight, getHexpand, getHexpandSet, getLastChild, getLayoutManager, getLocked, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getModal, getName, getNative, getNextSibling, getOpacity, getOrientation, getOverflow, getPangoContext, getParent, getPreferredSize, getPrevSibling, getPrimaryClipboard, getProgress, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRevealDuration, getRevealFlap, getRevealProgress, getRoot, getScaleFactor, getSensitive, getSeparator, getSettings, getSize, getSizeRequest, getSnapPoints, getStateFlags, getStyleContext, getSwipeArea, getSwipeToClose, getSwipeToOpen, getTemplateChild, getTooltipMarkup, getTooltipText, getTransitionType, getValign, getVexpand, getVexpandSet, getVisible, getWidth.
Setters
setCanFocus, setCanTarget, setChildVisible, setContent, setCssClasses, setCursor, setCursorFromName, setData, setDataFull, setDirection, setFlap, setFlapPosition, setFocusChild, setFocusOnClick, setFocusable, setFoldDuration, setFoldPolicy, setFoldThresholdPolicy, setFontMap, setFontOptions, setHalign, setHasTooltip, setHexpand, setHexpandSet, setLayoutManager, setLocked, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setModal, setName, setOpacity, setOrientation, setOverflow, setParent, setProperty, setReceivesDefault, setRevealDuration, setRevealFlap, setSensitive, setSeparator, setSizeRequest, setStateFlags, setSwipeToClose, setSwipeToOpen, setTooltipMarkup, setTooltipText, setTransitionType, setValign, setVexpand, setVexpandSet, setVisible.
getContent
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m (Maybe Widget) | Returns: the content widget for |
Gets the content widget for self
.
Since: 1.0
getFlap
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m (Maybe Widget) | Returns: the flap widget for |
Gets the flap widget for self
.
Since: 1.0
getFlapPosition
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m PackType | Returns: the flap position for |
Gets the flap position for self
.
Since: 1.0
getFoldDuration
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m Word32 | Returns: the fold transition duration |
Gets the duration that fold transitions in self
will take.
Since: 1.0
getFoldPolicy
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m FlapFoldPolicy | Returns: the fold policy for |
Gets the fold policy for self
.
Since: 1.0
getFoldThresholdPolicy
flapGetFoldThresholdPolicy Source #
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m FoldThresholdPolicy |
Gets the fold threshold policy for self
.
Since: 1.0
getFolded
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m Bool | Returns: |
Gets whether self
is currently folded.
Since: 1.0
getLocked
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m Bool | Returns: |
Gets whether self
is locked.
Since: 1.0
getModal
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m Bool | Returns: |
Gets whether self
is modal.
Since: 1.0
getRevealDuration
flapGetRevealDuration Source #
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m Word32 | Returns: the reveal transition duration |
Returns the duration that reveal transitions in self
will take.
Since: 1.0
getRevealFlap
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m Bool | Returns: |
Gets whether the flap widget is revealed for self
.
Since: 1.0
getRevealProgress
flapGetRevealProgress Source #
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m Double | Returns: the current reveal progress for |
Gets the current reveal progress for self
.
Since: 1.0
getSeparator
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m (Maybe Widget) | Returns: the separator widget for |
Gets the separator widget for self
.
Since: 1.0
getSwipeToClose
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m Bool | Returns: |
Gets whether self
can be closed with a swipe gesture.
Since: 1.0
getSwipeToOpen
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> m Bool | Returns: |
Gets whether self
can be opened with a swipe gesture.
Since: 1.0
getTransitionType
flapGetTransitionType Source #
:: (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.0
new
:: (HasCallStack, MonadIO m) | |
=> m Flap | Returns: the newly created |
Creates a new AdwFlap
.
Since: 1.0
setContent
:: (HasCallStack, MonadIO m, IsFlap a, IsWidget b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the content widget for self
.
Since: 1.0
setFlap
:: (HasCallStack, MonadIO m, IsFlap a, IsWidget b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the flap widget for self
.
Since: 1.0
setFlapPosition
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> PackType |
|
-> m () |
Sets the flap position for self
.
Since: 1.0
setFoldDuration
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> Word32 |
|
-> m () |
Sets the duration that fold transitions in self
will take.
Since: 1.0
setFoldPolicy
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> FlapFoldPolicy |
|
-> m () |
Sets the fold policy for self
.
Since: 1.0
setFoldThresholdPolicy
flapSetFoldThresholdPolicy Source #
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> FoldThresholdPolicy |
|
-> m () |
Sets the fold threshold policy for self
.
Since: 1.0
setLocked
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether self
is locked.
Since: 1.0
setModal
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether self
is modal.
Since: 1.0
setRevealDuration
flapSetRevealDuration Source #
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> Word32 |
|
-> m () |
Sets the duration that reveal transitions in self
will take.
Since: 1.0
setRevealFlap
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether the flap widget is revealed for self
.
Since: 1.0
setSeparator
:: (HasCallStack, MonadIO m, IsFlap a, IsWidget b) | |
=> a |
|
-> Maybe b |
|
-> m () |
Sets the separator widget for self
.
Since: 1.0
setSwipeToClose
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether self
can be closed with a swipe gesture.
Since: 1.0
setSwipeToOpen
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether self
can be opened with a swipe gesture.
Since: 1.0
setTransitionType
flapSetTransitionType Source #
:: (HasCallStack, MonadIO m, IsFlap a) | |
=> a |
|
-> FlapTransitionType |
|
-> m () |
Sets the type of animation used for reveal and fold transitions in self
.
Since: 1.0
Properties
content
The content widget.
It's always displayed when unfolded, and partially visible when folded.
Since: 1.0
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
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 it's set to GTK_PACK_START
, the flap is displayed before the content,
if GTK_PACK_END
, it's displayed after the content.
Since: 1.0
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.0
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 fold policy for the flap.
Since: 1.0
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 ]
foldThresholdPolicy
Determines when the flap will fold.
If set to ADW_FOLD_THRESHOLD_POLICY_MINIMUM
, flap will only fold when
the children cannot fit anymore. With ADW_FOLD_THRESHOLD_POLICY_NATURAL
,
it will fold as soon as children don't get their natural size.
This can be useful if you have a long ellipsizing label and want to let it ellipsize instead of immediately folding.
Since: 1.0
constructFlapFoldThresholdPolicy :: (IsFlap o, MonadIO m) => FoldThresholdPolicy -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “fold-threshold-policy
” property. This is rarely needed directly, but it is used by new
.
getFlapFoldThresholdPolicy :: (MonadIO m, IsFlap o) => o -> m FoldThresholdPolicy Source #
Get the value of the “fold-threshold-policy
” property.
When overloading is enabled, this is equivalent to
get
flap #foldThresholdPolicy
setFlapFoldThresholdPolicy :: (MonadIO m, IsFlap o) => o -> FoldThresholdPolicy -> m () Source #
Set the value of the “fold-threshold-policy
” property.
When overloading is enabled, this is equivalent to
set
flap [ #foldThresholdPolicy:=
value ]
folded
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
,
Flap:revealFlap value never changes on its own.
Since: 1.0
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 Escape key, will close the flap. If FALSE
, clicks are passed
through to the content widget.
Since: 1.0
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.0
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.0
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 Flap:revealFlap.
Since: 1.0
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 Flap:transitionType value.
Since: 1.0
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 Flap:transitionType value.
Since: 1.0
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 Flap:transitionType value.
Since: 1.0
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.
Flap:flap is transparent by default, which means the content
will be seen through it with ADW_FLAP_TRANSITION_TYPE_OVER
transitions;
add the .background
style class to it if this is unwanted.
Since: 1.0
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 ]