deprecated %name -> %rename
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7279 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f5b59592fd
commit
7f7c4b80df
1 changed files with 9 additions and 6 deletions
|
|
@ -6,6 +6,13 @@
|
||||||
#include "gifplot.h"
|
#include "gifplot.h"
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
#if defined(SWIGJAVA ) || defined(SWIGPHP4)
|
||||||
|
%rename(make_default) ColorMap::default();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
%rename(__getitem__) ColorMap::getitem(int index);
|
||||||
|
%rename(__setitem__) ColorMap::setitem(int index, int value);
|
||||||
|
|
||||||
/* Pixel is 8-bits */
|
/* Pixel is 8-bits */
|
||||||
|
|
||||||
typedef unsigned char Pixel;
|
typedef unsigned char Pixel;
|
||||||
|
|
@ -28,14 +35,10 @@ typedef struct ColorMap {
|
||||||
%extend {
|
%extend {
|
||||||
ColorMap(char *filename);
|
ColorMap(char *filename);
|
||||||
~ColorMap();
|
~ColorMap();
|
||||||
#if defined(SWIGJAVA ) || defined(SWIGPHP4)
|
|
||||||
%name(make_default) void default();
|
|
||||||
#else
|
|
||||||
void default();
|
void default();
|
||||||
#endif
|
|
||||||
void assign(int index,int r, int g, int b);
|
void assign(int index,int r, int g, int b);
|
||||||
%name(__getitem__) int getitem(int index);
|
int getitem(int index);
|
||||||
%name(__setitem__) void setitem(int index, int value);
|
void setitem(int index, int value);
|
||||||
int write(char *filename);
|
int write(char *filename);
|
||||||
}
|
}
|
||||||
} ColorMap;
|
} ColorMap;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue