Back to index

plt-scheme  4.2.1
Classes | Defines | Typedefs | Functions
wx_img.cc File Reference
#include <stdlib.h>
#include "wx_image.h"
#include "wx_utils.h"
#include "../../../src/XWidgets/wxAllocColor.h"

Go to the source code of this file.

Classes

struct  thing

Defines

#define NEEDSTIME
#define NOPIX   0xffffffff

Typedefs

typedef struct thing CMAPENT
typedef int(* image_Compare_Proc )(const void *, const void *)

Functions

static int CMAPcompare (CMAPENT *a, CMAPENT *b)
void xvDestroyImage (XImage *image)
void xvbzero (char *s, int len)

Class Documentation

struct thing

Definition at line 127 of file wx_img.cc.

Class Members
byte b
byte g
int oldindex
byte r
int use

Define Documentation

#define NEEDSTIME

Definition at line 39 of file wx_img.cc.

#define NOPIX   0xffffffff

Definition at line 271 of file wx_img.cc.


Typedef Documentation

typedef struct thing CMAPENT

Definition at line 138 of file wx_img.cc.


Function Documentation

static int CMAPcompare ( CMAPENT a,
CMAPENT b 
) [static]

Definition at line 133 of file wx_img.cc.

{
  return (b->use - a->use);
}
void xvbzero ( char *  s,
int  len 
)

Definition at line 1094 of file wx_img.cc.

{
  for ( ; len>0; len--) {
    *s++ = 0;
  }
}
void xvDestroyImage ( XImage *  image)

Definition at line 1080 of file wx_img.cc.

{
  /* called in place of XDestroyImage().  Explicitly destroys *BOTH* the
     data and the structure.  XDestroyImage() doesn't seem to do this on all
     systems.  Also, can be called with a NULL image pointer */

  if (image) {
    /* free data by hand, since XDestroyImage is vague about it */
    if (image->data) free(image->data);
    image->data = NULL;
    XDestroyImage(image);
  }
}