contents up previous next

wxrendererversion

this simple struct represents the wxrenderernative interface version and is only used as the return value of wxrenderernative::getversion.

the version has two components: the version itself and the age. if the main program and the renderer have different versions they are never compatible with each other because the version is only changed when an existing virtual function is modified or removed. the age, on the other hand, is incremented each time a new virtual method is added and so, at least for the compilers using a common c++ object model, the calling program is compatible with any renderer which has the age greater or equal to its age. this verification is done by iscompatible method.

derived from

no base class

include files

<wx/renderer.h>

members

wxrendererversion::iscompatible
wxrendererversion::version
wxrendererversion::age


wxrendererversion::iscompatible

static bool iscompatible(const wxrendererversion& ver)

checks if the main program is compatible with the renderer having the version ver, returns true if it is and false otherwise.

this method is used by wxrenderernative::load to determine whether a renderer can be used.


wxrendererversion::version

const int version

the version component.


wxrendererversion::age

const int age

the age component.