[ Home ] The pages on this CLiki-driven site can be edited by anybody at any time. No warranty of any kind can therefore be made; any implied warranties of merchantability or fitness for a particular purpose are expressly disclaimed
[ Home ] [ Recent Changes ] [ About CLiki ] [ Text Formatting ]

Gtkairo Configuration

The GTK+ backend has several configuration variables that affect its behaviour.

Documented variables

Font selection

clim-gtkairo:*default-font-families*

A plist mapping the standard font family keywords :fix, :serif, and :sans-serif to Pango font names. Example:

  (setf (getf *default-font-families* :fix) "Bitstream Vera Sans Mono")

Undocumented variables

Switching the medium implementation

clim-gtkairo::*medium-type*

Set this variable to :CAIRO or :GDK to select the medium to use.

The Cairo medium supports antialiasing for all operations, advanced compositing operations (in theory), but has well-known bugs (like ellipse drawing).

The GDK medium produces traditional, CLX-like output, and has no problems with clipping ink. It is very new and probably had brand new bugs, too.

To do: ?

Anti-Aliasing

clim-gtkairo::*antialiasingp*

Set this variable to NIL to disable antialiasing.

This variable only has effect when the cairo medium is enabled.

To do: If we ever support non-cairo drawing, merge this with whatever variable controls the medium class selection. For cairo, allow users to choose between the different kinds of antialiasing.

Removed variables

Double buffering

Until recently, clim-gtkairo::*double-buffering-p* could be used to enable or disable double buffering for all panes globally.

Instead, double buffering is now performed for panes created with

(make-pane .... :double-buffering t)

Try gsharp for an application that has smooth scrolling with gtkairo thanks to this setting.


This page is linked from: GettingStarted   theming  

CLiki pages can be edited by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively