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.Handy.Functions
Description
Synopsis
- easeOutCubic :: (HasCallStack, MonadIO m) => Double -> m Double
- enumValueRowName :: (HasCallStack, MonadIO m, IsEnumValueObject a) => a -> Ptr () -> m Text
- getEnableAnimations :: (HasCallStack, MonadIO m, IsWidget a) => a -> m Bool
- init :: (HasCallStack, MonadIO m) => m ()
Methods
easeOutCubic
Arguments
:: (HasCallStack, MonadIO m) | |
=> Double |
|
-> m Double | Returns: the ease out for |
Computes the ease out for a value.
Since: 1.0
enumValueRowName
Arguments
:: (HasCallStack, MonadIO m, IsEnumValueObject a) | |
=> a |
|
-> Ptr () |
|
-> m Text | Returns: a displayable name that represents |
Returns the name of a [classenumValueObject
].
This is a default implementation of [callbackcomboRowGetEnumValueNameFunc
]
to be used with [methodcomboRow
.set_for_enum]. If the enumeration has a
nickname, it will return it, otherwise it will return its name.
Since: 1.0
getEnableAnimations
Arguments
:: (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
init
init :: (HasCallStack, MonadIO m) => m () Source #
Initializes Libhandy.
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.
If Libhandy has already been initialized, the function will simply return.
This makes sure translations, types, themes, and icons for the Handy library are set up properly.
Since: 1.0