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 |
Synopsis
- getEnableAnimations :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- getMajorVersion :: (HasCallStack, MonadIO m) => m Word32
- getMicroVersion :: (HasCallStack, MonadIO m) => m Word32
- getMinorVersion :: (HasCallStack, MonadIO m) => m Word32
- init :: (HasCallStack, MonadIO m) => m ()
- isInitialized :: (HasCallStack, MonadIO m) => m Bool
- lerp :: (HasCallStack, MonadIO m) => Double -> Double -> Double -> m Double
Methods
getEnableAnimations
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> m Bool | Returns: whether animations are enabled for |
Checks whether animations are enabled for widget
.
This should be used when implementing an animated widget to know whether to animate it or not.
Since: 1.0
getMajorVersion
:: (HasCallStack, MonadIO m) | |
=> m Word32 | Returns: the major version number of the Adwaita library |
Returns the major version number of the Adwaita library.
For example, in libadwaita version 1.2.3 this is 1.
This function is in the library, so it represents the libadwaita library your
code is running against. Contrast with the [constmAJORVERSION
] constant,
which represents the major version of the libadwaita headers you have
included when compiling your code.
getMicroVersion
:: (HasCallStack, MonadIO m) | |
=> m Word32 | Returns: the micro version number of the Adwaita library |
Returns the micro version number of the Adwaita library.
For example, in libadwaita version 1.2.3 this is 3.
This function is in the library, so it represents the libadwaita library your
code is running against. Contrast with the [constmAJORVERSION
] constant,
which represents the micro version of the libadwaita headers you have
included when compiling your code.
getMinorVersion
:: (HasCallStack, MonadIO m) | |
=> m Word32 | Returns: the minor version number of the Adwaita library |
Returns the minor version number of the Adwaita library.
For example, in libadwaita version 1.2.3 this is 2.
This function is in the library, so it represents the libadwaita library your
code is running against. Contrast with the [constmAJORVERSION
] constant,
which represents the minor version of the libadwaita headers you have
included when compiling your code.
init
init :: (HasCallStack, MonadIO m) => m () Source #
Initializes Libadwaita.
This function can be used instead of init
as it initializes GTK
implicitly.
There's no need to call this function if you're using [classapplication
].
If Libadwaita has already been initialized, the function will simply return.
This makes sure translations, types, themes, and icons for the Adwaita library are set up properly.
Since: 1.0
isInitialized
:: (HasCallStack, MonadIO m) | |
=> m Bool | Returns: the initialization status |
Use this function to check if libadwaita has been initialized with
[funcinit
].