GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
GRASS Display Library

by GRASS Development Team (https://grass.osgeo.org)

This library provides a wide assortment of higher level graphics commands which in turn use the graphics library primitives. It is highly recommended that this section be used to understand how some of the GRASS graphics commands operate. Such modules like d.vect, d.graph, and d.rast demonstrate how these routines work together.

The routines fall into four basic sets:

  1. frame creation and management;
  2. coordinate conversion routines;
  3. specialized efficient raster display routines, and;
  4. assorted miscellaneous routines like pop-up menus and line clipping.

Note: All routines and global variables in this library, documented or undocumented, start with D_ prefix. To avoid name conflicts, programmers should not create variables or routines in their own modules which use this prefix.

List of functions

The library functions are defined in display.h header:

#include <grass/display.h>

Authors

  • Original author CERL
  • Major rewrite by Glynn Clements (2008)
  • Minor updates by Martin Landa <landa.martin gmail.com> (2011)