gi-handy-1.0.1: 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 t.

Since: 0.0.11

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 newly allocated displayable name that represents value

This is a default implementation of ComboRowGetEnumValueNameFunc to be used with comboRowSetForEnum. If the enumeration has a nickname, it will return it, otherwise it will return its name.

Since: 0.0.6

getEnableAnimations

getEnableAnimations Source #

Arguments

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

widget: a Widget

-> m Bool

Returns: True if animations are enabled for widget.

Returns whether animations are enabled for that widget. This should be used when implementing an animated widget to know whether to animate it or not.

Since: 0.0.11

init

init :: (HasCallStack, MonadIO m) => m () Source #

Call this function just after initializing GTK, if you are using Application it means it must be called when the 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.