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 |
GtkSymbolicPaintable
is an interface that support symbolic colors in
paintables.
GdkPaintable
s 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
- newtype SymbolicPaintable = SymbolicPaintable (ManagedPtr SymbolicPaintable)
- class (GObject o, IsDescendantOf SymbolicPaintable o) => IsSymbolicPaintable o
- toSymbolicPaintable :: (MonadIO m, IsSymbolicPaintable o) => o -> m SymbolicPaintable
- symbolicPaintableSnapshotSymbolic :: (HasCallStack, MonadIO m, IsSymbolicPaintable a, IsSnapshot b) => a -> b -> Double -> Double -> [RGBA] -> m ()
Exported types
newtype SymbolicPaintable Source #
Memory-managed wrapper type.
SymbolicPaintable (ManagedPtr SymbolicPaintable) |
Instances
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
(GObject o, IsDescendantOf SymbolicPaintable o) => IsSymbolicPaintable o Source # | |
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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, computeConcreteSize, forceFloating, freezeNotify, getv, invalidateContents, invalidateSize, isFloating, notify, notifyByPspec, ref, refSink, runDispose, snapshot, snapshotSymbolic, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getCurrentImage, getData, getFlags, getIntrinsicAspectRatio, getIntrinsicHeight, getIntrinsicWidth, getProperty, getQdata.
Setters
snapshotSymbolic
symbolicPaintableSnapshotSymbolic Source #
:: (HasCallStack, MonadIO m, IsSymbolicPaintable a, IsSnapshot b) | |
=> a |
|
-> b |
|
-> Double |
|
-> Double |
|
-> [RGBA] |
|
-> 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