Chapter 9. Graphics context

Table of Contents
ggiSetGCForeground — Set or get the foreground and background colors used in drawing operations in a visual
ggiSetGCClipping — Set or get the clipping rectangle for a visual

LibGGI has a current context associated with each visual. This is done for performance reasons, as LibGGI can set up pointers to optimized functions when the GC changes (which can be monitored, as it may only be changed by the functions mentioned below), or switch the hardware state efficiently.