gi-dazzle-1.0.1: libdazzle bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Dazzle.Functions

Description

 
Synopsis

Methods

cairoRegionCreateFromClipExtents

cairoRegionCreateFromClipExtents Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Context 
-> m Region

Returns: A CairoRegion.

cr a cairo context Creates a region from the extents of the context's current clip area.

cairoRoundedRectangle

cairoRoundedRectangle Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Context

cr: a cairo context

-> Rectangle

rect: a Rectangle to draw

-> Int32

xRadius: the radius of the corners on the X axis

-> Int32

yRadius: the radius of the corners on the Y axis

-> m () 

Adds a rounded rectangle to cr's current path.

cancellableChain

cancellableChain Source #

Arguments

:: (HasCallStack, MonadIO m, IsCancellable a, IsCancellable b) 
=> Maybe a

self: a Cancellable or Nothing

-> Maybe b

other: a Cancellable or Nothing

-> m (Maybe Cancellable)

Returns: a Cancellable or Nothing

If both self and other are not Nothing, then the cancellation of other will be propagated to self if other is cancelled.

If self and other are the same, self is returned and no additional chaining will occur.

If self and other are Nothing, then Nothing is returned. If self is non-Nothing, it will be returned. If self is Nothing and other is non-Nothing, other will be returned. This is useful to succinctly chain cancellables like:

cancellable = dzl_cancellable_chain (cancellable, self->cancellable);

Since: 3.28

dndGetUriList

dndGetUriList Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> SelectionData

selectionData: the SelectionData from drag_data_received

-> m [Text]

Returns: a string array which will hold the uris or Nothing if there were no valid uris. g_strfreev should be used when the string array is no longer used

Deprecated: Use selectionDataGetUris instead; it is exactly the same.

Create a list of valid uri's from a uri-list drop.

fileManagerShow

fileManagerShow Source #

Arguments

:: (HasCallStack, MonadIO m, IsFile a) 
=> a 
-> m ()

(Can throw GError)

No description available in the introspection data.

frameSourceAddFull

frameSourceAddFull :: (HasCallStack, MonadIO m) => Int32 -> Word32 -> SourceFunc -> m Word32 Source #

No description available in the introspection data.

fuzzyHighlight

fuzzyHighlight :: (HasCallStack, MonadIO m) => Text -> Text -> Bool -> m Text Source #

No description available in the introspection data.

gDateTimeFormatForDisplay

gDateTimeFormatForDisplay Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DateTime

self: A DateTime

-> m Text

Returns: A newly allocated string describing the date and time imprecisely such as "Yesterday".

Helper function to create a human-friendly string describing approximately how long ago a DateTime is.

gTimeSpanToLabel

gTimeSpanToLabel Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Int64

span: the span of time

-> m Text

Returns: A newly allocated string describing the time span.

Creates a string describing the time span in hours, minutes, and seconds. For example, a time span of three and a half minutes would be "3:30". 2 days, 3 hours, 6 minutes, and 20 seconds would be "51:06:20".

gTimeSpanToLabelMapping

gTimeSpanToLabelMapping :: (HasCallStack, MonadIO m, IsBinding a) => a -> GValue -> GValue -> Ptr () -> m Bool Source #

A BindingTransformFunc to transform a time span into a string label using gTimeSpanToLabel.

gVariantHash

gVariantHash :: (HasCallStack, MonadIO m) => Ptr () -> m Word32 Source #

No description available in the introspection data.

getCurrentCpuCall

getCurrentCpuCall :: (HasCallStack, MonadIO m) => m Word32 Source #

No description available in the introspection data.

gtkListStoreInsertSorted

gtkListStoreInsertSorted Source #

Arguments

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

store: A ListStore

-> Ptr ()

key: A key to compare to when binary searching

-> Word32

compareColumn: the column containing the data to compare

-> CompareDataFunc

compareFunc: A callback to compare

-> m TreeIter 

This function will binary search the contents of store looking for the location to insert a new row.

compareColumn must be the index of a column that is a G_TYPE_POINTER, G_TYPE_BOXED or G_TYPE_OBJECT based column.

compareFunc will be called with key as the first parameter and the value from the ListStore row as the second parameter. The third and final parameter is compareData.

Since: 3.26

gtkTextBufferRemoveTag

gtkTextBufferRemoveTag :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextTag b) => a -> b -> TextIter -> TextIter -> Bool -> m () Source #

Like textBufferRemoveTag but allows specifying that the tags should be removed one at a time to avoid over-damaging the views displaying buffer.

gtkWidgetAction

gtkWidgetAction :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> Text -> GVariant -> m Bool Source #

No description available in the introspection data.

gtkWidgetActionWithString

gtkWidgetActionWithString :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> Text -> Text -> m Bool Source #

No description available in the introspection data.

gtkWidgetAddStyleClass

gtkWidgetAddStyleClass :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> m () Source #

No description available in the introspection data.

gtkWidgetFindChildTyped

gtkWidgetFindChildTyped Source #

Arguments

:: (HasCallStack, MonadIO m, IsWidget a) 
=> a 
-> GType 
-> m (Maybe Widget)

Returns: A widget or Nothing

Tries to locate a widget in a hierarchy given it's GType.

There is not an efficient implementation of this method, so use it only when the hierarchy of widgets is small.

gtkWidgetGetRelative

gtkWidgetGetRelative Source #

Arguments

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

widget: a Widget

-> GType

relativeType: the type of widget to locate

-> m (Maybe Widget)

Returns: A Widget or Nothing.

This is similar to widgetGetAncestor, but looks for relatives via properties such as Popover:relativeTo and others.

gtkWidgetHideWithFade

gtkWidgetHideWithFade :: (HasCallStack, MonadIO m, IsWidget a) => a -> m () Source #

No description available in the introspection data.

gtkWidgetIsAncestorOrRelative

gtkWidgetIsAncestorOrRelative Source #

Arguments

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

widget: a Widget

-> b

ancestor: a Widget that might be an ancestor

-> m Bool

Returns: True if ancestor is an ancestor or relative for widget.

This function is like widgetIsAncestor except that it checks various relative widgets that are not in the direct hierarchy of widgets. That includes Menu:attachWidget, Popover:relativeTo, and Window:transientFor.

Since: 3.26

gtkWidgetMuxActionGroups

gtkWidgetMuxActionGroups Source #

Arguments

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

widget: a Widget

-> b

fromWidget: A Widget containing the groups to copy

-> Maybe Text

muxKey: a unique key to represent the muxing

-> m () 

This function will find all of the actions on fromWidget in various groups and add them to widget. As this just copies the action groups over, note that it does not allow for muxing items within the same group.

You should specify a key for muxKey so that if the same mux key is seen again, the previous muxings will be removed.

gtkWidgetRemoveStyleClass

gtkWidgetRemoveStyleClass :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> m () Source #

No description available in the introspection data.

gtkWidgetShowWithFade

gtkWidgetShowWithFade :: (HasCallStack, MonadIO m, IsWidget a) => a -> m () Source #

No description available in the introspection data.

levenshtein

levenshtein :: (HasCallStack, MonadIO m) => Text -> Text -> m Int32 Source #

No description available in the introspection data.

overlayAddChild

overlayAddChild :: (HasCallStack, MonadIO m, IsDockOverlay a, IsWidget b) => a -> b -> Text -> m () Source #

No description available in the introspection data.

pangoFontDescriptionToCss

pangoFontDescriptionToCss Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> FontDescription 
-> m Text

Returns: A newly allocated string containing the CSS describing the font description.

This function will generate CSS suitable for Gtk's CSS engine based on the properties of the FontDescription.

rgbaShade

rgbaShade Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> RGBA

rgba: a RGBA to shade

-> Double

k: the factor by which to shade the input color

-> m RGBA 

Creates a shade of the color rgba by multiplying its saturation and lightness by k.

Values of k greater than 1 will make the color brighter, while values less than 1 will make it darker. The alpha value will remain the same.

shortcutChordTableGetType

shortcutChordTableGetType :: (HasCallStack, MonadIO m) => m GType Source #

No description available in the introspection data.