gi-adwaita-1.0.3: Adwaita bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Adw.Functions

Description

 
Synopsis

Methods

getEnableAnimations

getEnableAnimations Source #

Arguments

:: (HasCallStack, MonadIO m, IsWidget a) 
=> a

widget: a GtkWidget

-> m Bool

Returns: whether animations are enabled for widget

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

getMajorVersion Source #

Arguments

:: (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

getMicroVersion Source #

Arguments

:: (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

getMinorVersion Source #

Arguments

:: (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

isInitialized Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Bool

Returns: the initialization status

Use this function to check if libadwaita has been initialized with [funcinit].

lerp

lerp Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Double

a: the start

-> Double

b: the end

-> Double

t: the interpolation rate

-> m Double

Returns: the computed value

Computes the linear interpolation between a and b for t.

Since: 1.0