| 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.Adw.Enums
Contents
- Enumerations
- AnimationState
- BreakpointConditionLengthType
- BreakpointConditionRatioType
- CenteringPolicy
- ColorScheme
- DialogPresentationMode
- Easing
- FlapFoldPolicy
- FlapTransitionType
- FoldThresholdPolicy
- LeafletTransitionType
- LengthUnit
- NavigationDirection
- ResponseAppearance
- SqueezerTransitionType
- ToastPriority
- ToolbarStyle
- ViewSwitcherPolicy
Description
Synopsis
- data AnimationState
- data BreakpointConditionLengthType
- data BreakpointConditionRatioType
- data CenteringPolicy
- data ColorScheme
- data DialogPresentationMode
- data Easing
- = EasingLinear
- | EasingEaseInQuad
- | EasingEaseOutQuad
- | EasingEaseInOutQuad
- | EasingEaseInCubic
- | EasingEaseOutCubic
- | EasingEaseInOutCubic
- | EasingEaseInQuart
- | EasingEaseOutQuart
- | EasingEaseInOutQuart
- | EasingEaseInQuint
- | EasingEaseOutQuint
- | EasingEaseInOutQuint
- | EasingEaseInSine
- | EasingEaseOutSine
- | EasingEaseInOutSine
- | EasingEaseInExpo
- | EasingEaseOutExpo
- | EasingEaseInOutExpo
- | EasingEaseInCirc
- | EasingEaseOutCirc
- | EasingEaseInOutCirc
- | EasingEaseInElastic
- | EasingEaseOutElastic
- | EasingEaseInOutElastic
- | EasingEaseInBack
- | EasingEaseOutBack
- | EasingEaseInOutBack
- | EasingEaseInBounce
- | EasingEaseOutBounce
- | EasingEaseInOutBounce
- | AnotherEasing Int
- data FlapFoldPolicy
- data FlapTransitionType
- data FoldThresholdPolicy
- data LeafletTransitionType
- data LengthUnit
- data NavigationDirection
- data ResponseAppearance
- data SqueezerTransitionType
- data ToastPriority
- data ToolbarStyle
- data ViewSwitcherPolicy
Enumerations
AnimationState
data AnimationState Source #
Describes the possible states of an [classanimation].
The state can be controlled with [methodanimation.play],
[methodanimation.pause], [methodanimation.resume],
[methodanimation.reset] and [methodanimation.skip].
Constructors
| AnimationStateIdle | The animation hasn't started yet. |
| AnimationStatePaused | The animation has been paused. |
| AnimationStatePlaying | The animation is currently playing. |
| AnimationStateFinished | The animation has finished. |
| AnotherAnimationState Int | Catch-all for unknown values |
Instances
BreakpointConditionLengthType
data BreakpointConditionLengthType Source #
Describes length types for [structbreakpointCondition].
See [ctorbreakpointCondition.new_length].
New values may be added to this enumeration over time.
Since: 1.4
Constructors
| BreakpointConditionLengthTypeMinWidth | true if the width is greater than or equal to the condition value |
| BreakpointConditionLengthTypeMaxWidth | true if the width is less than or equal to the condition value |
| BreakpointConditionLengthTypeMinHeight | true if the height is greater than or equal to the condition value |
| BreakpointConditionLengthTypeMaxHeight | true if the height is less than or equal to the condition value |
| AnotherBreakpointConditionLengthType Int | Catch-all for unknown values |
Instances
BreakpointConditionRatioType
data BreakpointConditionRatioType Source #
Describes ratio types for [structbreakpointCondition].
See [ctorbreakpointCondition.new_ratio].
New values may be added to this enumeration over time.
Since: 1.4
Constructors
| BreakpointConditionRatioTypeMinAspectRatio | true if the aspect ratio is greater than or equal to the condition value |
| BreakpointConditionRatioTypeMaxAspectRatio | true if the aspect ratio is less than or equal to the condition value |
| AnotherBreakpointConditionRatioType Int | Catch-all for unknown values |
Instances
CenteringPolicy
data CenteringPolicy Source #
Describes title centering behavior of a [classheaderBar] widget.
Constructors
| CenteringPolicyLoose | Keep the title centered when possible |
| CenteringPolicyStrict | Keep the title centered at all cost |
| AnotherCenteringPolicy Int | Catch-all for unknown values |
Instances
ColorScheme
data ColorScheme Source #
Application color schemes for [propertystyleManager:color-scheme].
Constructors
| ColorSchemeDefault | Inherit the parent color-scheme. When set on the
|
| ColorSchemeForceLight | Always use light appearance. |
| ColorSchemePreferLight | Use light appearance unless the system prefers dark colors. |
| ColorSchemePreferDark | Use dark appearance unless the system prefers prefers light colors. |
| ColorSchemeForceDark | Always use dark appearance. |
| AnotherColorScheme Int | Catch-all for unknown values |
Instances
DialogPresentationMode
data DialogPresentationMode Source #
Describes the available presentation modes for [classdialog].
New values may be added to this enumeration over time.
See [propertydialog:presentation-mode].
Since: 1.5
Constructors
| DialogPresentationModeAuto | Switch between |
| DialogPresentationModeFloating | Present dialog as a centered floating window. |
| DialogPresentationModeBottomSheet | Present dialog as a bottom sheet. |
| AnotherDialogPresentationMode Int | Catch-all for unknown values |
Instances
Easing
Describes the available easing functions for use with
[classtimedAnimation].
New values may be added to this enumeration over time.
Constructors
| EasingLinear | Linear tweening. |
| EasingEaseInQuad | Quadratic tweening. |
| EasingEaseOutQuad | Quadratic tweening, inverse of |
| EasingEaseInOutQuad | Quadratic tweening, combining |
| EasingEaseInCubic | Cubic tweening. |
| EasingEaseOutCubic | Cubic tweening, inverse of |
| EasingEaseInOutCubic | Cubic tweening, combining |
| EasingEaseInQuart | Quartic tweening. |
| EasingEaseOutQuart | Quartic tweening, inverse of |
| EasingEaseInOutQuart | Quartic tweening, combining |
| EasingEaseInQuint | Quintic tweening. |
| EasingEaseOutQuint | Quintic tweening, inverse of |
| EasingEaseInOutQuint | Quintic tweening, combining |
| EasingEaseInSine | Sine wave tweening. |
| EasingEaseOutSine | Sine wave tweening, inverse of |
| EasingEaseInOutSine | Sine wave tweening, combining |
| EasingEaseInExpo | Exponential tweening. |
| EasingEaseOutExpo | Exponential tweening, inverse of |
| EasingEaseInOutExpo | Exponential tweening, combining |
| EasingEaseInCirc | Circular tweening. |
| EasingEaseOutCirc | Circular tweening, inverse of |
| EasingEaseInOutCirc | Circular tweening, combining |
| EasingEaseInElastic | Elastic tweening, with offshoot on start. |
| EasingEaseOutElastic | Elastic tweening, with offshoot on end, inverse of
|
| EasingEaseInOutElastic | Elastic tweening, with offshoot on both ends,
combining |
| EasingEaseInBack | Overshooting cubic tweening, with backtracking on start. |
| EasingEaseOutBack | Overshooting cubic tweening, with backtracking on end,
inverse of |
| EasingEaseInOutBack | Overshooting cubic tweening, with backtracking on both
ends, combining |
| EasingEaseInBounce | Exponentially decaying parabolic (bounce) tweening, on start. |
| EasingEaseOutBounce | Exponentially decaying parabolic (bounce) tweening,
with bounce on end, inverse of |
| EasingEaseInOutBounce | Exponentially decaying parabolic (bounce) tweening,
with bounce on both ends, combining |
| AnotherEasing Int | Catch-all for unknown values |
Instances
| Enum Easing Source # | |
Defined in GI.Adw.Enums | |
| Show Easing Source # | |
| Eq Easing Source # | |
| Ord Easing Source # | |
| BoxedEnum Easing Source # | |
Defined in GI.Adw.Enums | |
| TypedObject Easing Source # | |
Defined in GI.Adw.Enums | |
| HasParentTypes Easing Source # | |
Defined in GI.Adw.Enums | |
| type ParentTypes Easing Source # | |
Defined in GI.Adw.Enums | |
FlapFoldPolicy
data FlapFoldPolicy Source #
Deprecated: (Since version 1.4)See the migration guide
Describes the possible folding behavior of a [classflap] widget.
Constructors
| FlapFoldPolicyNever | Disable folding, the flap cannot reach narrow sizes. |
| FlapFoldPolicyAlways | Keep the flap always folded. |
| FlapFoldPolicyAuto | Fold and unfold the flap based on available space. |
| AnotherFlapFoldPolicy Int | Catch-all for unknown values |
Instances
FlapTransitionType
data FlapTransitionType Source #
Deprecated: (Since version 1.4)See the migration guide
Describes transitions types of a [classflap] widget.
It determines the type of animation when transitioning between children in a
[classflap] widget, as well as which areas can be swiped via
[propertyflap:swipe-to-open] and [propertyflap:swipe-to-close].
Constructors
| FlapTransitionTypeOver | The flap slides over the content, which is dimmed. When folded, only the flap can be swiped. |
| FlapTransitionTypeUnder | The content slides over the flap. Only the content can be swiped. |
| FlapTransitionTypeSlide | The flap slides offscreen when hidden, neither the flap nor content overlap each other. Both widgets can be swiped. |
| AnotherFlapTransitionType Int | Catch-all for unknown values |
Instances
FoldThresholdPolicy
data FoldThresholdPolicy Source #
Deprecated: (Since version 1.4)Stop using AdwLeaflet and AdwFlap
Determines when [classflap] and [classleaflet] will fold.
Constructors
| FoldThresholdPolicyMinimum | Folding is based on the minimum size |
| FoldThresholdPolicyNatural | Folding is based on the natural size |
| AnotherFoldThresholdPolicy Int | Catch-all for unknown values |
Instances
LeafletTransitionType
data LeafletTransitionType Source #
Deprecated: (Since version 1.4)See the migration guide
Describes the possible transitions in a [classleaflet] widget.
New values may be added to this enumeration over time.
Constructors
| LeafletTransitionTypeOver | Cover the old page or uncover the new page, sliding from or towards the end according to orientation, text direction and children order |
| LeafletTransitionTypeUnder | Uncover the new page or cover the old page, sliding from or towards the start according to orientation, text direction and children order |
| LeafletTransitionTypeSlide | Slide from left, right, up or down according to the orientation, text direction and the children order |
| AnotherLeafletTransitionType Int | Catch-all for unknown values |
Instances
LengthUnit
data LengthUnit Source #
Describes length units.
| Unit | Regular Text | Large Text | | ---- | ------------ | ---------- | | 1px | 1px | 1px | | 1pt | 1.333333px | 1.666667px | | 1sp | 1px | 1.25px |
New values may be added to this enumeration over time.
Since: 1.4
Constructors
| LengthUnitPx | pixels |
| LengthUnitPt | points, changes with text scale factor |
| LengthUnitSp | scale independent pixels, changes with text scale factor |
| AnotherLengthUnit Int | Catch-all for unknown values |
Instances
NavigationDirection
data NavigationDirection Source #
Describes the direction of a swipe navigation gesture.
Constructors
| NavigationDirectionBack | Corresponds to start or top, depending on orientation and text direction |
| NavigationDirectionForward | Corresponds to end or bottom, depending on orientation and text direction |
| AnotherNavigationDirection Int | Catch-all for unknown values |
Instances
ResponseAppearance
data ResponseAppearance Source #
Describes the possible styles of [classalertDialog] response buttons.
See [methodalertDialog.set_response_appearance].
Since: 1.2
Constructors
| ResponseAppearanceDefault | the default appearance. |
| ResponseAppearanceSuggested | used to denote important responses such as the affirmative action. |
| ResponseAppearanceDestructive | used to draw attention to the potentially damaging consequences of using the response. This appearance acts as a warning to the user. |
| AnotherResponseAppearance Int | Catch-all for unknown values |
Instances
SqueezerTransitionType
data SqueezerTransitionType Source #
Deprecated: (Since version 1.4)See the migration guide
Describes the possible transitions in a [classsqueezer] widget.
Constructors
| SqueezerTransitionTypeNone | No transition |
| SqueezerTransitionTypeCrossfade | A cross-fade |
| AnotherSqueezerTransitionType Int | Catch-all for unknown values |
Instances
ToastPriority
data ToastPriority Source #
- class
toast - behavior when another toast is already displayed.
Constructors
| ToastPriorityNormal | the toast will be queued if another toast is already displayed. |
| ToastPriorityHigh | the toast will be displayed immediately, pushing the previous toast into the queue instead. |
| AnotherToastPriority Int | Catch-all for unknown values |
Instances
ToolbarStyle
data ToolbarStyle Source #
Describes the possible top or bottom bar styles in an [classtoolbarView]
widget.
ADW_TOOLBAR_FLAT is suitable for simple content, such as
[classstatusPage] or [classpreferencesPage], where the background at the
top and bottom parts of the page is uniform. Additionally, windows with
sidebars should always use this style.
<picture style="min-width: 33%; display: inline-block;"> <source srcset="toolbar-view-flat-1-dark.png" media="(prefers-color-scheme: dark)"> <img src="toolbar-view-flat-1.png" alt="toolbar-view-flat-1"> </picture> <picture style="min-width: 33%; display: inline-block;"> <source srcset="toolbar-view-flat-2-dark.png" media="(prefers-color-scheme: dark)"> <img src="toolbar-view-flat-2.png" alt="toolbar-view-flat-2"> </picture>
ADW_TOOLBAR_RAISED style is suitable for content such as
utility panes,
where some elements are directly adjacent to the top/bottom bars, or
[classtabView], where each page can have a different background.
ADW_TOOLBAR_RAISED_BORDER style is similar to ADW_TOOLBAR_RAISED, but
with the shadow replaced with a more subtle border. It's intended to be used
in applications like image viewers, where a shadow over the content might be
undesired.
<picture style="min-width: 33%; display: inline-block;"> <source srcset="toolbar-view-raised-dark.png" media="(prefers-color-scheme: dark)"> <img src="toolbar-view-raised.png" alt="toolbar-view-raised"> </picture> <picture style="min-width: 33%; display: inline-block;"> <source srcset="toolbar-view-raised-border-dark.png" media="(prefers-color-scheme: dark)"> <img src="toolbar-view-raised-border.png" alt="toolbar-view-raised-border"> </picture>
See [propertytoolbarView:top-bar-style] and
[propertytoolbarView:bottom-bar-style].
New values may be added to this enumeration over time.
Since: 1.4
Constructors
| ToolbarStyleFlat | No background, shadow only for scrolled content |
| ToolbarStyleRaised | Opaque background with a persistent shadow |
| ToolbarStyleRaisedBorder | Opaque background with a persistent border |
| AnotherToolbarStyle Int | Catch-all for unknown values |
Instances
ViewSwitcherPolicy
data ViewSwitcherPolicy Source #
Describes the adaptive modes of [classviewSwitcher].
Constructors
| ViewSwitcherPolicyNarrow | Force the narrow mode |
| ViewSwitcherPolicyWide | Force the wide mode |
| AnotherViewSwitcherPolicy Int | Catch-all for unknown values |