gi-gtk-4.0.10: Gtk bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Interfaces.SymbolicPaintable

Description

GtkSymbolicPaintable is an interface that support symbolic colors in paintables.

GdkPaintables implementing the interface will have the SymbolicPaintable.snapshot_symbolic() function called and have the colors for drawing symbolic icons passed. At least 4 colors are guaranteed to be passed every time.

These 4 colors are the foreground color, and the colors to use for errors, warnings and success information in that order.

More colors may be added in the future.

Since: 4.6

Synopsis

Exported types

class (GObject o, IsDescendantOf SymbolicPaintable o) => IsSymbolicPaintable o Source #

Type class for types which can be safely cast to SymbolicPaintable, for instance with toSymbolicPaintable.

Instances

Instances details
(GObject o, IsDescendantOf SymbolicPaintable o) => IsSymbolicPaintable o Source # 
Instance details

Defined in GI.Gtk.Interfaces.SymbolicPaintable

toSymbolicPaintable :: (MonadIO m, IsSymbolicPaintable o) => o -> m SymbolicPaintable Source #

Cast to SymbolicPaintable, for types for which this is known to be safe. For general casts, use castTo.

Methods

snapshotSymbolic

symbolicPaintableSnapshotSymbolic Source #

Arguments

:: (HasCallStack, MonadIO m, IsSymbolicPaintable a, IsSnapshot b) 
=> a

paintable: a GtkSymbolicPaintable

-> b

snapshot: a GdkSnapshot to snapshot to

-> Double

width: width to snapshot in

-> Double

height: height to snapshot in

-> [RGBA]

colors: a pointer to an array of colors

-> m () 

Snapshots the paintable with the given colors.

If less than 4 colors are provided, GTK will pad the array with default colors.

Since: 4.6