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
- add
- getAllowNone
- getHomogeneous
- getInterpolateSize
- getPage
- getPages
- getSwitchThresholdPolicy
- getTransitionDuration
- getTransitionRunning
- getTransitionType
- getVisibleChild
- getXalign
- getYalign
- new
- remove
- setAllowNone
- setHomogeneous
- setInterpolateSize
- setSwitchThresholdPolicy
- setTransitionDuration
- setTransitionType
- setXalign
- setYalign
- Properties
A best fit container.
<picture> <source srcset="squeezer-wide-dark.png" media="(prefers-color-scheme: dark)"> <img src="squeezer-wide.png" alt="squeezer-wide"> </picture> <picture> <source srcset="squeezer-narrow-dark.png" media="(prefers-color-scheme: dark)"> <img src="squeezer-narrow.png" alt="squeezer-narrow"> </picture>
The AdwSqueezer
widget is a container which only shows the first of its
children that fits in the available size. It is convenient to offer different
widgets to represent the same data with different levels of detail, making
the widget seem to squeeze itself to fit in the available space.
Transitions between children can be animated as fades. This can be controlled
with [propertysqueezer
:transition-type].
CSS nodes
AdwSqueezer
has a single CSS node with name squeezer
.
Since: 1.0
Synopsis
- newtype Squeezer = Squeezer (ManagedPtr Squeezer)
- class (GObject o, IsDescendantOf Squeezer o) => IsSqueezer o
- toSqueezer :: (MonadIO m, IsSqueezer o) => o -> m Squeezer
- squeezerAdd :: (HasCallStack, MonadIO m, IsSqueezer a, IsWidget b) => a -> b -> m SqueezerPage
- squeezerGetAllowNone :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> m Bool
- squeezerGetHomogeneous :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> m Bool
- squeezerGetInterpolateSize :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> m Bool
- squeezerGetPage :: (HasCallStack, MonadIO m, IsSqueezer a, IsWidget b) => a -> b -> m SqueezerPage
- squeezerGetPages :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> m SelectionModel
- squeezerGetSwitchThresholdPolicy :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> m FoldThresholdPolicy
- squeezerGetTransitionDuration :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> m Word32
- squeezerGetTransitionRunning :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> m Bool
- squeezerGetTransitionType :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> m SqueezerTransitionType
- squeezerGetVisibleChild :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> m (Maybe Widget)
- squeezerGetXalign :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> m Float
- squeezerGetYalign :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> m Float
- squeezerNew :: (HasCallStack, MonadIO m) => m Squeezer
- squeezerRemove :: (HasCallStack, MonadIO m, IsSqueezer a, IsWidget b) => a -> b -> m ()
- squeezerSetAllowNone :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> Bool -> m ()
- squeezerSetHomogeneous :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> Bool -> m ()
- squeezerSetInterpolateSize :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> Bool -> m ()
- squeezerSetSwitchThresholdPolicy :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> FoldThresholdPolicy -> m ()
- squeezerSetTransitionDuration :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> Word32 -> m ()
- squeezerSetTransitionType :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> SqueezerTransitionType -> m ()
- squeezerSetXalign :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> Float -> m ()
- squeezerSetYalign :: (HasCallStack, MonadIO m, IsSqueezer a) => a -> Float -> m ()
- constructSqueezerAllowNone :: (IsSqueezer o, MonadIO m) => Bool -> m (GValueConstruct o)
- getSqueezerAllowNone :: (MonadIO m, IsSqueezer o) => o -> m Bool
- setSqueezerAllowNone :: (MonadIO m, IsSqueezer o) => o -> Bool -> m ()
- constructSqueezerHomogeneous :: (IsSqueezer o, MonadIO m) => Bool -> m (GValueConstruct o)
- getSqueezerHomogeneous :: (MonadIO m, IsSqueezer o) => o -> m Bool
- setSqueezerHomogeneous :: (MonadIO m, IsSqueezer o) => o -> Bool -> m ()
- constructSqueezerInterpolateSize :: (IsSqueezer o, MonadIO m) => Bool -> m (GValueConstruct o)
- getSqueezerInterpolateSize :: (MonadIO m, IsSqueezer o) => o -> m Bool
- setSqueezerInterpolateSize :: (MonadIO m, IsSqueezer o) => o -> Bool -> m ()
- getSqueezerPages :: (MonadIO m, IsSqueezer o) => o -> m (Maybe SelectionModel)
- constructSqueezerSwitchThresholdPolicy :: (IsSqueezer o, MonadIO m) => FoldThresholdPolicy -> m (GValueConstruct o)
- getSqueezerSwitchThresholdPolicy :: (MonadIO m, IsSqueezer o) => o -> m FoldThresholdPolicy
- setSqueezerSwitchThresholdPolicy :: (MonadIO m, IsSqueezer o) => o -> FoldThresholdPolicy -> m ()
- constructSqueezerTransitionDuration :: (IsSqueezer o, MonadIO m) => Word32 -> m (GValueConstruct o)
- getSqueezerTransitionDuration :: (MonadIO m, IsSqueezer o) => o -> m Word32
- setSqueezerTransitionDuration :: (MonadIO m, IsSqueezer o) => o -> Word32 -> m ()
- getSqueezerTransitionRunning :: (MonadIO m, IsSqueezer o) => o -> m Bool
- constructSqueezerTransitionType :: (IsSqueezer o, MonadIO m) => SqueezerTransitionType -> m (GValueConstruct o)
- getSqueezerTransitionType :: (MonadIO m, IsSqueezer o) => o -> m SqueezerTransitionType
- setSqueezerTransitionType :: (MonadIO m, IsSqueezer o) => o -> SqueezerTransitionType -> m ()
- getSqueezerVisibleChild :: (MonadIO m, IsSqueezer o) => o -> m (Maybe Widget)
- constructSqueezerXalign :: (IsSqueezer o, MonadIO m) => Float -> m (GValueConstruct o)
- getSqueezerXalign :: (MonadIO m, IsSqueezer o) => o -> m Float
- setSqueezerXalign :: (MonadIO m, IsSqueezer o) => o -> Float -> m ()
- constructSqueezerYalign :: (IsSqueezer o, MonadIO m) => Float -> m (GValueConstruct o)
- getSqueezerYalign :: (MonadIO m, IsSqueezer o) => o -> m Float
- setSqueezerYalign :: (MonadIO m, IsSqueezer o) => o -> Float -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Squeezer Source # | |
GObject Squeezer Source # | |
Defined in GI.Adw.Objects.Squeezer | |
ManagedPtrNewtype Squeezer Source # | |
Defined in GI.Adw.Objects.Squeezer toManagedPtr :: Squeezer -> ManagedPtr Squeezer | |
TypedObject Squeezer Source # | |
Defined in GI.Adw.Objects.Squeezer | |
HasParentTypes Squeezer Source # | |
Defined in GI.Adw.Objects.Squeezer | |
IsGValue (Maybe Squeezer) Source # | Convert |
Defined in GI.Adw.Objects.Squeezer gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Squeezer -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Squeezer) | |
type ParentTypes Squeezer Source # | |
Defined in GI.Adw.Objects.Squeezer type ParentTypes Squeezer = '[Widget, Object, Accessible, Buildable, ConstraintTarget, Orientable] |
class (GObject o, IsDescendantOf Squeezer o) => IsSqueezer o Source #
Type class for types which can be safely cast to Squeezer
, for instance with toSqueezer
.
Instances
(GObject o, IsDescendantOf Squeezer o) => IsSqueezer o Source # | |
Defined in GI.Adw.Objects.Squeezer |
toSqueezer :: (MonadIO m, IsSqueezer o) => o -> m Squeezer Source #
Methods
Click to display all available methods, including inherited ones
Methods
actionSetEnabled, activate, activateAction, activateDefault, add, 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, remove, 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, getAllowNone, getAncestor, getBuildableId, getCanFocus, getCanTarget, getChildVisible, getClipboard, getCssClasses, getCssName, getCursor, getData, getDirection, getDisplay, getFirstChild, getFocusChild, getFocusOnClick, getFocusable, getFontMap, getFontOptions, getFrameClock, getHalign, getHasTooltip, getHeight, getHexpand, getHexpandSet, getHomogeneous, getInterpolateSize, getLastChild, getLayoutManager, getMapped, getMarginBottom, getMarginEnd, getMarginStart, getMarginTop, getName, getNative, getNextSibling, getOpacity, getOrientation, getOverflow, getPage, getPages, getPangoContext, getParent, getPreferredSize, getPrevSibling, getPrimaryClipboard, getProperty, getQdata, getRealized, getReceivesDefault, getRequestMode, getRoot, getScaleFactor, getSensitive, getSettings, getSize, getSizeRequest, getStateFlags, getStyleContext, getSwitchThresholdPolicy, getTemplateChild, getTooltipMarkup, getTooltipText, getTransitionDuration, getTransitionRunning, getTransitionType, getValign, getVexpand, getVexpandSet, getVisible, getVisibleChild, getWidth, getXalign, getYalign.
Setters
setAllowNone, setCanFocus, setCanTarget, setChildVisible, setCssClasses, setCursor, setCursorFromName, setData, setDataFull, setDirection, setFocusChild, setFocusOnClick, setFocusable, setFontMap, setFontOptions, setHalign, setHasTooltip, setHexpand, setHexpandSet, setHomogeneous, setInterpolateSize, setLayoutManager, setMarginBottom, setMarginEnd, setMarginStart, setMarginTop, setName, setOpacity, setOrientation, setOverflow, setParent, setProperty, setReceivesDefault, setSensitive, setSizeRequest, setStateFlags, setSwitchThresholdPolicy, setTooltipMarkup, setTooltipText, setTransitionDuration, setTransitionType, setValign, setVexpand, setVexpandSet, setVisible, setXalign, setYalign.
add
:: (HasCallStack, MonadIO m, IsSqueezer a, IsWidget b) | |
=> a |
|
-> b |
|
-> m SqueezerPage | Returns: the [class |
Adds a child to self
.
Since: 1.0
getAllowNone
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> m Bool | Returns: whether |
Gets whether to allow squeezing beyond the last child's minimum size.
Since: 1.0
getHomogeneous
squeezerGetHomogeneous Source #
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> m Bool | Returns: whether |
Gets whether all children have the same size for the opposite orientation.
Since: 1.0
getInterpolateSize
squeezerGetInterpolateSize Source #
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> m Bool | Returns: whether the size is interpolated |
Gets whether self
interpolates its size when changing the visible child.
Since: 1.0
getPage
:: (HasCallStack, MonadIO m, IsSqueezer a, IsWidget b) | |
=> a |
|
-> b |
|
-> m SqueezerPage | Returns: the page object for |
Returns the [classsqueezerPage
] object for child
.
Since: 1.0
getPages
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> m SelectionModel | Returns: a |
Returns a ListModel
that contains the pages of self
.
This can be used to keep an up-to-date view. The model also implements
SelectionModel
and can be used to track the visible page.
Since: 1.0
getSwitchThresholdPolicy
squeezerGetSwitchThresholdPolicy Source #
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> m FoldThresholdPolicy |
Gets the fold threshold policy for self
.
Since: 1.0
getTransitionDuration
squeezerGetTransitionDuration Source #
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> m Word32 | Returns: the transition duration, in milliseconds |
Gets the transition animation duration for self
.
Since: 1.0
getTransitionRunning
squeezerGetTransitionRunning Source #
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> m Bool | Returns: whether a transition is currently running |
Gets whether a transition is currently running for self
.
Since: 1.0
getTransitionType
squeezerGetTransitionType Source #
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> m SqueezerTransitionType | Returns: the current transition type of |
Gets the type of animation used for transitions between children in self
.
Since: 1.0
getVisibleChild
squeezerGetVisibleChild Source #
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> m (Maybe Widget) | Returns: the visible child |
Gets the currently visible child of self
.
Since: 1.0
getXalign
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> m Float | Returns: the alignment value |
Gets the horizontal alignment, from 0 (start) to 1 (end).
Since: 1.0
getYalign
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> m Float | Returns: the alignment value |
Gets the vertical alignment, from 0 (top) to 1 (bottom).
Since: 1.0
new
:: (HasCallStack, MonadIO m) | |
=> m Squeezer | Returns: the newly created |
Creates a new AdwSqueezer
.
Since: 1.0
remove
:: (HasCallStack, MonadIO m, IsSqueezer a, IsWidget b) | |
=> a |
|
-> b |
|
-> m () |
Removes a child widget from self
.
Since: 1.0
setAllowNone
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether to allow squeezing beyond the last child's minimum size.
Since: 1.0
setHomogeneous
squeezerSetHomogeneous Source #
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether all children have the same size for the opposite orientation.
Since: 1.0
setInterpolateSize
squeezerSetInterpolateSize Source #
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether self
interpolates its size when changing the visible child.
Since: 1.0
setSwitchThresholdPolicy
squeezerSetSwitchThresholdPolicy Source #
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> FoldThresholdPolicy |
|
-> m () |
Sets the fold threshold policy for self
.
Since: 1.0
setTransitionDuration
squeezerSetTransitionDuration Source #
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> Word32 |
|
-> m () |
Sets the transition animation duration for self
.
Since: 1.0
setTransitionType
squeezerSetTransitionType Source #
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> SqueezerTransitionType |
|
-> m () |
Sets the type of animation used for transitions between children in self
.
Since: 1.0
setXalign
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> Float |
|
-> m () |
Sets the horizontal alignment, from 0 (start) to 1 (end).
Since: 1.0
setYalign
:: (HasCallStack, MonadIO m, IsSqueezer a) | |
=> a |
|
-> Float |
|
-> m () |
Sets the vertical alignment, from 0 (top) to 1 (bottom).
Since: 1.0
Properties
allowNone
Whether to allow squeezing beyond the last child's minimum size.
If set to TRUE
, the squeezer can shrink to the point where no child can
be shown. This is functionally equivalent to appending a widget with 0x0
minimum size.
Since: 1.0
constructSqueezerAllowNone :: (IsSqueezer o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “allow-none
” property. This is rarely needed directly, but it is used by new
.
getSqueezerAllowNone :: (MonadIO m, IsSqueezer o) => o -> m Bool Source #
Get the value of the “allow-none
” property.
When overloading is enabled, this is equivalent to
get
squeezer #allowNone
setSqueezerAllowNone :: (MonadIO m, IsSqueezer o) => o -> Bool -> m () Source #
Set the value of the “allow-none
” property.
When overloading is enabled, this is equivalent to
set
squeezer [ #allowNone:=
value ]
homogeneous
Whether all children have the same size for the opposite orientation.
For example, if a squeezer is horizontal and is homogeneous, it will request the same height for all its children. If it isn't, the squeezer may change size when a different child becomes visible.
Since: 1.0
constructSqueezerHomogeneous :: (IsSqueezer o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “homogeneous
” property. This is rarely needed directly, but it is used by new
.
getSqueezerHomogeneous :: (MonadIO m, IsSqueezer o) => o -> m Bool Source #
Get the value of the “homogeneous
” property.
When overloading is enabled, this is equivalent to
get
squeezer #homogeneous
setSqueezerHomogeneous :: (MonadIO m, IsSqueezer o) => o -> Bool -> m () Source #
Set the value of the “homogeneous
” property.
When overloading is enabled, this is equivalent to
set
squeezer [ #homogeneous:=
value ]
interpolateSize
Whether the squeezer interpolates its size when changing the visible child.
If TRUE
, the squeezer will interpolate its size between the one of the
previous visible child and the one of the new visible child, according to
the set transition duration and the orientation, e.g. if the squeezer is
horizontal, it will interpolate the its height.
Since: 1.0
constructSqueezerInterpolateSize :: (IsSqueezer o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “interpolate-size
” property. This is rarely needed directly, but it is used by new
.
getSqueezerInterpolateSize :: (MonadIO m, IsSqueezer o) => o -> m Bool Source #
Get the value of the “interpolate-size
” property.
When overloading is enabled, this is equivalent to
get
squeezer #interpolateSize
setSqueezerInterpolateSize :: (MonadIO m, IsSqueezer o) => o -> Bool -> m () Source #
Set the value of the “interpolate-size
” property.
When overloading is enabled, this is equivalent to
set
squeezer [ #interpolateSize:=
value ]
pages
A selection model with the squeezer's pages.
This can be used to keep an up-to-date view. The model also implements
SelectionModel
and can be used to track the visible page.
Since: 1.0
getSqueezerPages :: (MonadIO m, IsSqueezer o) => o -> m (Maybe SelectionModel) Source #
Get the value of the “pages
” property.
When overloading is enabled, this is equivalent to
get
squeezer #pages
switchThresholdPolicy
Determines when the squeezer will switch children.
If set to ADW_FOLD_THRESHOLD_POLICY_MINIMUM
, it will only switch when
the visible child cannot fit anymore. With
ADW_FOLD_THRESHOLD_POLICY_NATURAL
, it will switch as soon as the visible
child doesn'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 switching.
Since: 1.0
constructSqueezerSwitchThresholdPolicy :: (IsSqueezer o, MonadIO m) => FoldThresholdPolicy -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “switch-threshold-policy
” property. This is rarely needed directly, but it is used by new
.
getSqueezerSwitchThresholdPolicy :: (MonadIO m, IsSqueezer o) => o -> m FoldThresholdPolicy Source #
Get the value of the “switch-threshold-policy
” property.
When overloading is enabled, this is equivalent to
get
squeezer #switchThresholdPolicy
setSqueezerSwitchThresholdPolicy :: (MonadIO m, IsSqueezer o) => o -> FoldThresholdPolicy -> m () Source #
Set the value of the “switch-threshold-policy
” property.
When overloading is enabled, this is equivalent to
set
squeezer [ #switchThresholdPolicy:=
value ]
transitionDuration
The animation duration, in milliseconds.
Since: 1.0
constructSqueezerTransitionDuration :: (IsSqueezer o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “transition-duration
” property. This is rarely needed directly, but it is used by new
.
getSqueezerTransitionDuration :: (MonadIO m, IsSqueezer o) => o -> m Word32 Source #
Get the value of the “transition-duration
” property.
When overloading is enabled, this is equivalent to
get
squeezer #transitionDuration
setSqueezerTransitionDuration :: (MonadIO m, IsSqueezer o) => o -> Word32 -> m () Source #
Set the value of the “transition-duration
” property.
When overloading is enabled, this is equivalent to
set
squeezer [ #transitionDuration:=
value ]
transitionRunning
Whether a transition is currently running.
If a transition is impossible, the property value will be set to TRUE
and
then immediately to FALSE
, so it's possible to rely on its notifications
to know that a transition has happened.
Since: 1.0
getSqueezerTransitionRunning :: (MonadIO m, IsSqueezer o) => o -> m Bool Source #
Get the value of the “transition-running
” property.
When overloading is enabled, this is equivalent to
get
squeezer #transitionRunning
transitionType
The type of animation used for transitions between children.
Since: 1.0
constructSqueezerTransitionType :: (IsSqueezer o, MonadIO m) => SqueezerTransitionType -> 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
.
getSqueezerTransitionType :: (MonadIO m, IsSqueezer o) => o -> m SqueezerTransitionType Source #
Get the value of the “transition-type
” property.
When overloading is enabled, this is equivalent to
get
squeezer #transitionType
setSqueezerTransitionType :: (MonadIO m, IsSqueezer o) => o -> SqueezerTransitionType -> m () Source #
Set the value of the “transition-type
” property.
When overloading is enabled, this is equivalent to
set
squeezer [ #transitionType:=
value ]
visibleChild
The currently visible child.
Since: 1.0
getSqueezerVisibleChild :: (MonadIO m, IsSqueezer o) => o -> m (Maybe Widget) Source #
Get the value of the “visible-child
” property.
When overloading is enabled, this is equivalent to
get
squeezer #visibleChild
xalign
The horizontal alignment, from 0 (start) to 1 (end).
This affects the children allocation during transitions, when they exceed the size of the squeezer.
For example, 0.5 means the child will be centered, 0 means it will keep the start side aligned and overflow the end side, and 1 means the opposite.
Since: 1.0
constructSqueezerXalign :: (IsSqueezer o, MonadIO m) => Float -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “xalign
” property. This is rarely needed directly, but it is used by new
.
getSqueezerXalign :: (MonadIO m, IsSqueezer o) => o -> m Float Source #
Get the value of the “xalign
” property.
When overloading is enabled, this is equivalent to
get
squeezer #xalign
setSqueezerXalign :: (MonadIO m, IsSqueezer o) => o -> Float -> m () Source #
Set the value of the “xalign
” property.
When overloading is enabled, this is equivalent to
set
squeezer [ #xalign:=
value ]
yalign
The vertical alignment, from 0 (top) to 1 (bottom).
This affects the children allocation during transitions, when they exceed the size of the squeezer.
For example, 0.5 means the child will be centered, 0 means it will keep the top side aligned and overflow the bottom side, and 1 means the opposite.
Since: 1.0
constructSqueezerYalign :: (IsSqueezer o, MonadIO m) => Float -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “yalign
” property. This is rarely needed directly, but it is used by new
.
getSqueezerYalign :: (MonadIO m, IsSqueezer o) => o -> m Float Source #
Get the value of the “yalign
” property.
When overloading is enabled, this is equivalent to
get
squeezer #yalign
setSqueezerYalign :: (MonadIO m, IsSqueezer o) => o -> Float -> m () Source #
Set the value of the “yalign
” property.
When overloading is enabled, this is equivalent to
set
squeezer [ #yalign:=
value ]