File: [Development] / performer / src / pyper / text.i (download)
Revision 1.1, Mon May 21 21:40:00 2001 UTC (16 years, 5 months ago) by flynnt
Branch: MAIN
CVS Tags: HEAD
Doing some cleanup and adding the pfgtk example and the python wrapper for
Performer (pyper).
|
// This file contains the public interface from the Performer
// header file pf/pfText.h
// This Performer header file is (c) Silicon Graphics, Inc.
// Binding specific code is (c) SARA.
%{
#include <Performer/pf/pfText.h>
%}
// This is the pfText node
class pfText : public pfNode
{
public:
%addmethods
{
char *__str__()
{
static char temp[256];
const char *name = self->getName();
if (name)
sprintf(temp, "pfText named '%s'", name);
else
sprintf(temp, "unnamed pfText");
return temp;
}
}
int addString(pfString *str);
int insertString(int index, pfString *str);
int replaceString(pfString *oldgs, pfString *newgs);
int removeString(pfString *str);
pfString* getString(int i) const;
int getNumStrings() const;
pfText();
virtual ~pfText();
static void init();
static pfType* getClassType();
};