gi-adwaita-1.0.1: 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

easeOutCubic

easeOutCubic Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Double

t: the term

-> m Double

Returns: the ease out for t

Computes the ease out for t.

Since: 1.0

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 MAJOR_VERSION macro, 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 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

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

isInitialized Source #

Arguments

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

Returns: the initialization status

Use this function to check if libadwaita has been initialized with init.