Definitions in screen.h

Preprocessor macro definitions for the screen.h header file in the libscreen library

Definitions:

#include <screen/screen.h>
#define _SCREEN_MAKE_VERSION (((major) * 10000) + ((minor) * 100) + (patch))

Convenience macro to facilitate comparison of Screen versions.

All versions of Screen prior to 2.0.0 are considered to be Screen version 0.0.0.

#define _SCREEN_VERSION_MAJOR 2

@ brief The major version number.

A difference the major version number implies that the Screen API isn't backwards compatible (e.g., A Screen application that's developed using Screen version 2.0.0 can't run on a target that's running Screen version 0.0.0.).

#define _SCREEN_VERSION_MINOR 0

@ brief The minor version number.

A difference the minor version number implies that there may be differences in the Screen API, but the changes are backwards compatible (e.g., A Screen application that's developed using Screen version 2.1.0 can run on a target that's running Screen version 2.0.0.).

#define _SCREEN_VERSION_PATCH 0

@ brief The patch version number.

A difference the patch version number implies no differences in the Screen API; the changes are implementation updates only(e.g., A Screen application that's developed using Screen version 2.1.0 uses the same Screen API as one from Screen version 2.1.1.).

#define _SCREEN_VERSION _SCREEN_MAKE_VERSION(_SCREEN_VERSION_MAJOR, _SCREEN_VERSION_MINOR, _SCREEN_VERSION_PATCH)

The current version of Screen.

#define SCREEN_MODE_PREFERRED_INDEX (-1)

Defines the mode preferred index.

Used as a convenience value to pass when setting SCREEN_PROPERTY_MODE. When this value is passed in setting SCREEN_PROPERTY_MODE, Screen uses the default video mode without having to first determine all the modes supported by the display to find the one with SCREEN_MODE_PREFERRED set in flags.

Library:

libscreen