Synopsis#define PANGO_VERSION_ENCODE (major, minor, micro) #define PANGO_VERSION #define PANGO_VERSION_MAJOR #define PANGO_VERSION_MINOR #define PANGO_VERSION_MICRO #define PANGO_VERSION_STRING #define PANGO_VERSION_CHECK (major,minor,micro) int pango_version (void); const char* pango_version_string (void); const char* pango_version_check (int required_major, int required_minor, int required_micro); DescriptionThe capital-letter macros defined here can be used to check the version of Pango at compile-time, and to encode Pango versions into integers. The functions can be used to check the version of the linked Pango library at run-time. DetailsPANGO_VERSION_ENCODE()#define PANGO_VERSION_ENCODE(major, minor, micro)
This macro encodes the given Pango version into an integer. The numbers
returned by
PANGO_VERSION#define PANGO_VERSION
The version of Pango available at compile-time, encoded using
PANGO_VERSION_MAJOR#define PANGO_VERSION_MAJOR 1 The major component of the version of Pango available at compile-time. PANGO_VERSION_MINOR#define PANGO_VERSION_MINOR 22 The minor component of the version of Pango available at compile-time. PANGO_VERSION_MICRO#define PANGO_VERSION_MICRO 2 The micro component of the version of Pango available at compile-time. PANGO_VERSION_STRING#define PANGO_VERSION_STRING "1.22.2" A string literal containing the version of Pango available at compile-time. PANGO_VERSION_CHECK()#define PANGO_VERSION_CHECK(major,minor,micro) Checks that the version of Pango available at compile-time is not older than the provided version number.
pango_version ()int pango_version (void);
This is similar to the macro
A version number can be encoded into an integer using
Since 1.16 pango_version_string ()const char* pango_version_string (void);
This is similar to the macro
Since 1.16 pango_version_check ()const char* pango_version_check (int required_major, int required_minor, int required_micro);
Checks that the Pango library in use is compatible with the
given version. Generally you would pass in the constants
Compatibility is defined by two things: first the version
of the running library is newer than the version
For compile-time version checking use
Since 1.16 |