add silly abstract case
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6476 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
0c57969c61
commit
a6db836faf
2 changed files with 42 additions and 0 deletions
|
|
@ -22,3 +22,31 @@ public:
|
|||
virtual std::string pong() { return "Foo::pong();" + ping(); }
|
||||
};
|
||||
|
||||
|
||||
|
||||
%feature("director") Example1;
|
||||
|
||||
%inline %{
|
||||
class Example1
|
||||
{
|
||||
private:
|
||||
|
||||
protected:
|
||||
int xsize, ysize;
|
||||
int fontsize;
|
||||
int fontdim[23];
|
||||
|
||||
|
||||
public:
|
||||
Example1()
|
||||
: xsize(200), ysize(200) { }
|
||||
|
||||
virtual ~Example1() {}
|
||||
|
||||
int GetXSize() const { return xsize; }
|
||||
|
||||
// pure virtual methods that must be overridden
|
||||
virtual int Color(unsigned char r, unsigned char g, unsigned char b) = 0;
|
||||
};
|
||||
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue