X11workbench Toolkit  1.0
_XPM_ATTRIBUTES_ Struct Reference

Compatibility structure for use with MyLoadPixmapFromData() whenever libXpm is not in use. More...

#include <platform_helper.h>

Data Fields

int width
 The width of the returned pixmaps.
 
int height
 height of the returned pixmaps
 
int depth
 depth of the returned 'image' pixmap. The mask pixmap always has a depth of '1'.
 

Detailed Description

Compatibility structure for use with MyLoadPixmapFromData() whenever libXpm is not in use.

When libXpm is in use, XPM_ATTRIBUTES becomes a #define for XpmAttributes, the structure used by XpmCreatePixmapFromData(). Because so many elements are not needed, MyLoadPixmapFromData() uses this scaled-down version whenever libXpm is not being used by the library.

The configure option "--enable-libXpm" forces linkage with libXpm. Note that this is NOT the default option, since performance is adversely affected when using libXpm. However, for 100% compatibility, it may be necessary to use libXpm as MyLoadPixmapFromData() has not been tested on all platforms.

When libXpm is NOT in use, the follow structure is defined:

typedef struct _XPM_ATTRIBUTES_
{
int width; // The width of the returned pixmaps
int height; // height of the returned pixmaps
int depth; // depth of the returned 'image' pixmap. The mask pixmap always has a depth of '1'.

When libXpm IS in use, the following macro is defined:

#define XPM_ATTRIBUTES XpmAttributes

In summary, this structure is a scaled-down version of the standard X11 structure 'XpmAttributes', and is defined ONLY when libXpm is not in use (based on the configure script). Only those structure members that are needed by this toolkit have been defined in the scaled-down version.

For more information, see MyLoadPixmapFromData()

Definition at line 1116 of file platform_helper.h.


The documentation for this struct was generated from the following file: