Plank.Drawing – plank – Vala Binding Reference

Plank.Drawing – plank Reference Manual

# Drawing

## Description:

public namespace Drawing
Namespace: Plank.Drawing
Package: plank

## Content:

### Classes:

- AnimatedRenderer - Handles animated rendering. Uses a timer and continues requesting redraws for a widget until no more animation is needed.
- DrawingService - Utility service for loading icons and working with pixbufs.
- DockSurface - A dock surface is a wrapper class for a Cairo.Surface. It encapsulates a surface/context and provides utility methods.
- DockTheme - A themed renderer for dock windows.
- SurfaceCache - Cache multiple sizes of the assumed same image
- Theme - A themed renderer for windows.

### Structs:

- Color - Represents a RGBA color and has methods for manipulating the color.

### Enums:

- AnimationMode - The available animation modes
- SurfaceCacheFlags - Controls some internal behaviors of a Plank.Drawing.SurfaceCache

### Delegates:

- public delegate DockSurface? DrawFunc (int width, int height, DockSurface model, DrawDataFunc<G>? draw_data_func)
  Creates a new surface based on the given information
- public delegate DockSurface? DrawDataFunc (int width, int height, DockSurface model, G data)
  Creates a new surface using the given element and information

### Methods:

- public double easing_for_mode (AnimationMode mode, double t, double d)
  Calculate an interpolated value for selected animation-mode, and given elapsed time and total duration.