gi-handy-1.0.2: libhandy bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Handy.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 a value.

Since: 1.0

enumValueRowName

enumValueRowName Source #

Arguments

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

value: the value from the enum from which to get a name

-> Ptr ()

userData: unused user data

-> m Text

Returns: a displayable name that represents value

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

getEnableAnimations Source #

Arguments

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

widget: a widget

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

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