Package org.gnome.gtk
Interface SymbolicPaintable
- All Known Implementing Classes:
IconPaintable
,SpinnerPaintable
,SymbolicPaintable.SymbolicPaintableImpl
GtkSymbolicPaintable
is an interface that support symbolic colors in
paintables.
GdkPaintable
s implementing the interface will have the
snapshotSymbolic(org.gnome.gdk.Snapshot, double, double, org.gnome.gdk.RGBA[])
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.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
The SymbolicPaintableImpl type represents a native instance of the SymbolicPaintable interface.static class
The list of virtual functions for theGtkSymbolicPaintable
interface.Nested classes/interfaces inherited from interface org.gnome.gdk.Paintable
Paintable.InvalidateContentsCallback, Paintable.InvalidateSizeCallback, Paintable.PaintableImpl, Paintable.PaintableInterface
-
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the SymbolicPaintable classdefault void
snapshotSymbolic
(Snapshot snapshot, double width, double height, RGBA[] colors) Snapshots the paintable with the given colors.Methods inherited from interface org.gnome.gdk.Paintable
computeConcreteSize, emitInvalidateContents, emitInvalidateSize, getCurrentImage, getFlags, getIntrinsicAspectRatio, getIntrinsicHeight, getIntrinsicWidth, invalidateContents, invalidateSize, onInvalidateContents, onInvalidateSize, snapshot
-
Method Details
-
getType
-
snapshotSymbolic
Snapshots the paintable with the given colors.If less than 4 colors are provided, GTK will pad the array with default colors.
- Parameters:
snapshot
- aGdkSnapshot
to snapshot towidth
- width to snapshot inheight
- height to snapshot incolors
- a pointer to an array of colors
-