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
- easeOutCubic :: (HasCallStack, MonadIO m) => Double -> m Double
- 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
Methods
easeOutCubic
:: (HasCallStack, MonadIO m) | |
=> Double |
|
-> m Double | Returns: the ease out for |
Computes the ease out for t
.
Since: 1.0
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 MAJOR_VERSION
macro,
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 2.
This function is in the library, so it represents the libadwaita library
your code is running against. Contrast with the MAJOR_VERSION
macro,
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 MAJOR_VERSION
macro,
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.
Call this function just after initializing GTK, if you are using
Application
it means it must be called when the
Application::startup signal is emitted.
There's no need to call this function if you're using Application
.
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
init
.