Next: ClutterBehaviourBspline, Previous: ClutterAlpha, Up: Top
Backend abstraction
Clutter can be compiled against different backends. Each backend has to implement a set of functions, in order to be used by Clutter.
<clutter-backend> is the base class abstracting the various
implementation; it provides a basic API to query the backend for generic
information and settings.
<clutter-backend> is available since Clutter 0.4
<clutter-backend>)FIXME
- ret
- the default backend. You should not ref or unref the returned object. Applications should not rarely need to use this.
Since 0.4
<clutter-backend>) (ret double)Gets the resolution for font handling on the screen; see
clutter-backend-set-resolutionfor full details.
- backend
- a
<clutter-backend>- ret
- the current resolution, or -1 if no resolution has been set.
Since 0.4
<clutter-backend>) (dpi double)Sets the resolution for font handling on the screen. This is a scale factor between points specified in a
<pango-font-description>and cairo units. The default value is 96, meaning that a 10 point font will be 13 units high. (10 * 96. / 72. = 13.3).Applications should never need to call this function.
- backend
- a
<clutter-backend>- dpi
- the resolution in "dots per inch" (Physical inches aren't actually involved; the terminology is conventional).
Since 0.4
<clutter-backend>) (options cairo-font-options-t)Sets the new font options for backend. If options is ‘
#f’, the first following call toclutter-backend-get-font-optionswill return the default font options for backend.This function is intended for actors creating a Pango layout using the PangoCairo API.
- backend
- a
<clutter-backend>- options
- Cairo font options for the backend, or ‘
#f’Since 0.8