~ubuntu-branches/ubuntu/edgy/swig1.3/edgy

« back to all changes in this revision

Viewing changes to Examples/GIFPlot/Interface/gifplot.i

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
#include "gifplot.h"
7
7
%}
8
8
 
 
9
#if defined(SWIGJAVA ) || defined(SWIGPHP4)
 
10
  %rename(make_default) ColorMap::default();
 
11
#endif
 
12
 
 
13
%rename(__getitem__)  ColorMap::getitem(int index);
 
14
%rename(__setitem__)  ColorMap::setitem(int index, int value);
 
15
 
9
16
/* Pixel is 8-bits */
10
17
 
11
18
typedef unsigned char Pixel;
28
35
  %extend {
29
36
    ColorMap(char *filename);
30
37
    ~ColorMap();
31
 
#if defined(SWIGJAVA ) || defined(SWIGPHP4)
32
 
    %name(make_default) void        default();
33
 
#else
34
38
    void        default();
35
 
#endif
36
39
    void        assign(int index,int r, int g, int b);
37
 
    %name(__getitem__)  int getitem(int index);
38
 
    %name(__setitem__)  void setitem(int index, int value);
 
40
    int getitem(int index);
 
41
    void setitem(int index, int value);
39
42
    int         write(char *filename);
40
43
  }
41
44
} ColorMap;