Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
- Methods
- cairoRegionCreateFromClipExtents
- cairoRoundedRectangle
- cancellableChain
- dndGetUriList
- fileManagerShow
- frameSourceAddFull
- fuzzyHighlight
- gDateTimeFormatForDisplay
- gTimeSpanToLabel
- gTimeSpanToLabelMapping
- gVariantHash
- getCurrentCpuCall
- gtkListStoreInsertSorted
- gtkTextBufferRemoveTag
- gtkWidgetAction
- gtkWidgetActionWithString
- gtkWidgetAddStyleClass
- gtkWidgetFindChildTyped
- gtkWidgetGetRelative
- gtkWidgetHideWithFade
- gtkWidgetIsAncestorOrRelative
- gtkWidgetMuxActionGroups
- gtkWidgetRemoveStyleClass
- gtkWidgetShowWithFade
- levenshtein
- overlayAddChild
- pangoFontDescriptionToCss
- rgbaShade
- shortcutChordTableGetType
Synopsis
- cairoRegionCreateFromClipExtents :: (HasCallStack, MonadIO m) => Context -> m Region
- cairoRoundedRectangle :: (HasCallStack, MonadIO m) => Context -> Rectangle -> Int32 -> Int32 -> m ()
- cancellableChain :: (HasCallStack, MonadIO m, IsCancellable a, IsCancellable b) => Maybe a -> Maybe b -> m (Maybe Cancellable)
- dndGetUriList :: (HasCallStack, MonadIO m) => SelectionData -> m [Text]
- fileManagerShow :: (HasCallStack, MonadIO m, IsFile a) => a -> m ()
- frameSourceAddFull :: (HasCallStack, MonadIO m) => Int32 -> Word32 -> SourceFunc -> m Word32
- fuzzyHighlight :: (HasCallStack, MonadIO m) => Text -> Text -> Bool -> m Text
- gDateTimeFormatForDisplay :: (HasCallStack, MonadIO m) => DateTime -> m Text
- gTimeSpanToLabel :: (HasCallStack, MonadIO m) => Int64 -> m Text
- gTimeSpanToLabelMapping :: (HasCallStack, MonadIO m, IsBinding a) => a -> GValue -> GValue -> Ptr () -> m Bool
- gVariantHash :: (HasCallStack, MonadIO m) => Ptr () -> m Word32
- getCurrentCpuCall :: (HasCallStack, MonadIO m) => m Word32
- gtkListStoreInsertSorted :: (HasCallStack, MonadIO m, IsListStore a) => a -> Ptr () -> Word32 -> CompareDataFunc -> m TreeIter
- gtkTextBufferRemoveTag :: (HasCallStack, MonadIO m, IsTextBuffer a, IsTextTag b) => a -> b -> TextIter -> TextIter -> Bool -> m ()
- gtkWidgetAction :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> Text -> GVariant -> m Bool
- gtkWidgetActionWithString :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> Text -> Text -> m Bool
- gtkWidgetAddStyleClass :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> m ()
- gtkWidgetFindChildTyped :: (HasCallStack, MonadIO m, IsWidget a) => a -> GType -> m (Maybe Widget)
- gtkWidgetGetRelative :: (HasCallStack, MonadIO m, IsWidget a) => a -> GType -> m (Maybe Widget)
- gtkWidgetHideWithFade :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- gtkWidgetIsAncestorOrRelative :: (HasCallStack, MonadIO m, IsWidget a, IsWidget b) => a -> b -> m Bool
- gtkWidgetMuxActionGroups :: (HasCallStack, MonadIO m, IsWidget a, IsWidget b) => a -> b -> Maybe Text -> m ()
- gtkWidgetRemoveStyleClass :: (HasCallStack, MonadIO m, IsWidget a) => a -> Text -> m ()
- gtkWidgetShowWithFade :: (HasCallStack, MonadIO m, IsWidget a) => a -> m ()
- levenshtein :: (HasCallStack, MonadIO m) => Text -> Text -> m Int32
- overlayAddChild :: (HasCallStack, MonadIO m, IsDockOverlay a, IsWidget b) => a -> b -> Text -> m ()
- pangoFontDescriptionToCss :: (HasCallStack, MonadIO m) => FontDescription -> m Text
- rgbaShade :: (HasCallStack, MonadIO m) => RGBA -> Double -> m RGBA
- shortcutChordTableGetType :: (HasCallStack, MonadIO m) => m GType
Methods
cairoRegionCreateFromClipExtents
cairoRegionCreateFromClipExtents Source #
:: (HasCallStack, MonadIO m) | |
=> Context | |
-> m Region | Returns: A |
cr
a cairo context
Creates a region from the extents of the context's current clip area.
cairoRoundedRectangle
cairoRoundedRectangle Source #
:: (HasCallStack, MonadIO m) | |
=> Context |
|
-> Rectangle |
|
-> Int32 |
|
-> Int32 |
|
-> m () |
Adds a rounded rectangle to cr
's current path.
cancellableChain
:: (HasCallStack, MonadIO m, IsCancellable a, IsCancellable b) | |
=> Maybe a |
|
-> Maybe b |
|
-> m (Maybe Cancellable) | Returns: a |
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
:: (HasCallStack, MonadIO m) | |
=> SelectionData |
|
-> m [Text] | Returns: a string array which will hold the uris or
|
Deprecated: Use selectionDataGetUris
instead; it is exactly the same.
Create a list of valid uri's from a uri-list drop.
fileManagerShow
:: (HasCallStack, MonadIO m, IsFile a) | |
=> a | |
-> m () | (Can throw |
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 #
:: (HasCallStack, MonadIO m) | |
=> 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
:: (HasCallStack, MonadIO m) | |
=> Int64 |
|
-> 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 #
:: (HasCallStack, MonadIO m, IsListStore a) | |
=> a |
|
-> Ptr () |
|
-> Word32 |
|
-> CompareDataFunc |
|
-> 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 #
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a | |
-> GType | |
-> m (Maybe Widget) | Returns: A widget or |
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
:: (HasCallStack, MonadIO m, IsWidget a) | |
=> a |
|
-> GType |
|
-> m (Maybe Widget) |
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 #
:: (HasCallStack, MonadIO m, IsWidget a, IsWidget b) | |
=> a |
|
-> b |
|
-> m Bool | Returns: |
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 #
:: (HasCallStack, MonadIO m, IsWidget a, IsWidget b) | |
=> a |
|
-> b |
|
-> Maybe Text |
|
-> 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 #
:: (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
:: (HasCallStack, MonadIO m) | |
=> RGBA |
|
-> Double |
|
-> 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.