2002-12-24 23:31:38 +00:00
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
2002-12-26 18:15:23 +00:00
|
|
|
* Version 1.3.17u-20021226-0459
|
2002-12-24 23:31:38 +00:00
|
|
|
*
|
|
|
|
* This file is not intended to be easily readable and contains a number of
|
|
|
|
* coding conventions designed to improve portability and efficiency. Do not make
|
|
|
|
* changes to this file unless you know what you are doing--modify the SWIG
|
|
|
|
* interface file instead.
|
|
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
#define SWIGPYTHON
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
template<class T> class SwigValueWrapper {
|
|
|
|
T *tt;
|
|
|
|
public:
|
|
|
|
inline SwigValueWrapper() : tt(0) { }
|
|
|
|
inline ~SwigValueWrapper() { if (tt) delete tt; }
|
|
|
|
inline SwigValueWrapper& operator=(const T& t) { tt = new T(t); return *this; }
|
|
|
|
inline operator T&() const { return *tt; }
|
|
|
|
inline T *operator&() { return tt; }
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#include "Python.h"
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* common.swg
|
|
|
|
*
|
|
|
|
* This file contains generic SWIG runtime support for pointer
|
|
|
|
* type checking as well as a few commonly used macros to control
|
|
|
|
* external linkage.
|
|
|
|
*
|
|
|
|
* Author : David Beazley (beazley@cs.uchicago.edu)
|
|
|
|
*
|
|
|
|
* Copyright (c) 1999-2000, The University of Chicago
|
|
|
|
*
|
|
|
|
* This file may be freely redistributed without license or fee provided
|
|
|
|
* this copyright message remains intact.
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#if defined(_WIN32) || defined(__WIN32__)
|
|
|
|
# if defined(_MSC_VER)
|
|
|
|
# if defined(STATIC_LINKED)
|
|
|
|
# define SWIGEXPORT(a) a
|
|
|
|
# define SWIGIMPORT(a) extern a
|
|
|
|
# else
|
|
|
|
# define SWIGEXPORT(a) __declspec(dllexport) a
|
|
|
|
# define SWIGIMPORT(a) extern a
|
|
|
|
# endif
|
|
|
|
# else
|
|
|
|
# if defined(__BORLANDC__)
|
|
|
|
# define SWIGEXPORT(a) a _export
|
|
|
|
# define SWIGIMPORT(a) a _export
|
|
|
|
# else
|
|
|
|
# define SWIGEXPORT(a) a
|
|
|
|
# define SWIGIMPORT(a) a
|
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
#else
|
|
|
|
# define SWIGEXPORT(a) a
|
|
|
|
# define SWIGIMPORT(a) a
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef SWIG_GLOBAL
|
|
|
|
#define SWIGRUNTIME(a) SWIGEXPORT(a)
|
|
|
|
#else
|
|
|
|
#define SWIGRUNTIME(a) static a
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef void *(*swig_converter_func)(void *);
|
|
|
|
typedef struct swig_type_info *(*swig_dycast_func)(void **);
|
|
|
|
|
|
|
|
typedef struct swig_type_info {
|
|
|
|
const char *name;
|
|
|
|
swig_converter_func converter;
|
|
|
|
const char *str;
|
|
|
|
void *clientdata;
|
|
|
|
swig_dycast_func dcast;
|
|
|
|
struct swig_type_info *next;
|
|
|
|
struct swig_type_info *prev;
|
|
|
|
} swig_type_info;
|
|
|
|
|
|
|
|
#ifdef SWIG_NOINCLUDE
|
|
|
|
|
|
|
|
SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
|
|
|
|
SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
|
|
|
|
SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
|
|
|
|
SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
|
|
|
|
SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
|
|
|
|
SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
|
|
|
|
|
|
|
|
#else
|
|
|
|
|
|
|
|
static swig_type_info *swig_type_list = 0;
|
|
|
|
|
|
|
|
/* Register a type mapping with the type-checking */
|
|
|
|
SWIGRUNTIME(swig_type_info *)
|
|
|
|
SWIG_TypeRegister(swig_type_info *ti)
|
|
|
|
{
|
|
|
|
swig_type_info *tc, *head, *ret, *next;
|
|
|
|
/* Check to see if this type has already been registered */
|
|
|
|
tc = swig_type_list;
|
|
|
|
while (tc) {
|
|
|
|
if (strcmp(tc->name, ti->name) == 0) {
|
|
|
|
/* Already exists in the table. Just add additional types to the list */
|
|
|
|
if (tc->clientdata) ti->clientdata = tc->clientdata;
|
|
|
|
head = tc;
|
|
|
|
next = tc->next;
|
|
|
|
goto l1;
|
|
|
|
}
|
|
|
|
tc = tc->prev;
|
|
|
|
}
|
|
|
|
head = ti;
|
|
|
|
next = 0;
|
|
|
|
|
|
|
|
/* Place in list */
|
|
|
|
ti->prev = swig_type_list;
|
|
|
|
swig_type_list = ti;
|
|
|
|
|
|
|
|
/* Build linked lists */
|
|
|
|
l1:
|
|
|
|
ret = head;
|
|
|
|
tc = ti + 1;
|
|
|
|
/* Patch up the rest of the links */
|
|
|
|
while (tc->name) {
|
|
|
|
head->next = tc;
|
|
|
|
tc->prev = head;
|
|
|
|
head = tc;
|
|
|
|
tc++;
|
|
|
|
}
|
|
|
|
head->next = next;
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Check the typename */
|
|
|
|
SWIGRUNTIME(swig_type_info *)
|
|
|
|
SWIG_TypeCheck(char *c, swig_type_info *ty)
|
|
|
|
{
|
|
|
|
swig_type_info *s;
|
|
|
|
if (!ty) return 0; /* Void pointer */
|
|
|
|
s = ty->next; /* First element always just a name */
|
|
|
|
do {
|
|
|
|
if (strcmp(s->name,c) == 0) {
|
|
|
|
if (s == ty->next) return s;
|
|
|
|
/* Move s to the top of the linked list */
|
|
|
|
s->prev->next = s->next;
|
|
|
|
if (s->next) {
|
|
|
|
s->next->prev = s->prev;
|
|
|
|
}
|
|
|
|
/* Insert s as second element in the list */
|
|
|
|
s->next = ty->next;
|
|
|
|
if (ty->next) ty->next->prev = s;
|
|
|
|
ty->next = s;
|
|
|
|
return s;
|
|
|
|
}
|
|
|
|
s = s->next;
|
|
|
|
} while (s && (s != ty->next));
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Cast a pointer up an inheritance hierarchy */
|
|
|
|
SWIGRUNTIME(void *)
|
|
|
|
SWIG_TypeCast(swig_type_info *ty, void *ptr)
|
|
|
|
{
|
|
|
|
if ((!ty) || (!ty->converter)) return ptr;
|
|
|
|
return (*ty->converter)(ptr);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Dynamic pointer casting. Down an inheritance hierarchy */
|
|
|
|
SWIGRUNTIME(swig_type_info *)
|
|
|
|
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr)
|
|
|
|
{
|
|
|
|
swig_type_info *lastty = ty;
|
|
|
|
if (!ty || !ty->dcast) return ty;
|
|
|
|
while (ty && (ty->dcast)) {
|
|
|
|
ty = (*ty->dcast)(ptr);
|
|
|
|
if (ty) lastty = ty;
|
|
|
|
}
|
|
|
|
return lastty;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Search for a swig_type_info structure */
|
|
|
|
SWIGRUNTIME(swig_type_info *)
|
|
|
|
SWIG_TypeQuery(const char *name) {
|
|
|
|
swig_type_info *ty = swig_type_list;
|
|
|
|
while (ty) {
|
|
|
|
if (ty->str && (strcmp(name,ty->str) == 0)) return ty;
|
|
|
|
if (ty->name && (strcmp(name,ty->name) == 0)) return ty;
|
|
|
|
ty = ty->prev;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Set the clientdata field for a type */
|
|
|
|
SWIGRUNTIME(void)
|
|
|
|
SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
|
|
|
|
swig_type_info *tc, *equiv;
|
|
|
|
if (ti->clientdata == clientdata) return;
|
|
|
|
ti->clientdata = clientdata;
|
|
|
|
equiv = ti->next;
|
|
|
|
while (equiv) {
|
|
|
|
if (!equiv->converter) {
|
|
|
|
tc = swig_type_list;
|
|
|
|
while (tc) {
|
|
|
|
if ((strcmp(tc->name, equiv->name) == 0))
|
|
|
|
SWIG_TypeClientData(tc,clientdata);
|
|
|
|
tc = tc->prev;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
equiv = equiv->next;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* python.swg
|
|
|
|
*
|
|
|
|
* This file contains the runtime support for Python modules
|
|
|
|
* and includes code for managing global variables and pointer
|
|
|
|
* type checking.
|
|
|
|
*
|
|
|
|
* Author : David Beazley (beazley@cs.uchicago.edu)
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#include "Python.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define SWIG_PY_INT 1
|
|
|
|
#define SWIG_PY_FLOAT 2
|
|
|
|
#define SWIG_PY_STRING 3
|
|
|
|
#define SWIG_PY_POINTER 4
|
|
|
|
#define SWIG_PY_BINARY 5
|
|
|
|
|
|
|
|
/* Flags for pointer conversion */
|
|
|
|
|
|
|
|
#define SWIG_POINTER_EXCEPTION 0x1
|
|
|
|
#define SWIG_POINTER_DISOWN 0x2
|
|
|
|
|
|
|
|
/* Exception handling in wrappers */
|
|
|
|
#define SWIG_fail goto fail
|
|
|
|
|
|
|
|
/* Constant information structure */
|
|
|
|
typedef struct swig_const_info {
|
|
|
|
int type;
|
|
|
|
char *name;
|
|
|
|
long lvalue;
|
|
|
|
double dvalue;
|
|
|
|
void *pvalue;
|
|
|
|
swig_type_info **ptype;
|
|
|
|
} swig_const_info;
|
|
|
|
|
|
|
|
#ifdef SWIG_NOINCLUDE
|
|
|
|
|
|
|
|
SWIGEXPORT(PyObject *) SWIG_newvarlink();
|
|
|
|
SWIGEXPORT(void) SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
|
|
|
|
SWIGEXPORT(int) SWIG_ConvertPtr(PyObject *, void **, swig_type_info *, int);
|
|
|
|
SWIGEXPORT(int) SWIG_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
|
|
|
|
SWIGEXPORT(char *) SWIG_PackData(char *c, void *, int);
|
|
|
|
SWIGEXPORT(char *) SWIG_UnpackData(char *c, void *, int);
|
|
|
|
SWIGEXPORT(PyObject *) SWIG_NewPointerObj(void *, swig_type_info *,int own);
|
|
|
|
SWIGEXPORT(PyObject *) SWIG_NewPackedObj(void *, int sz, swig_type_info *);
|
|
|
|
SWIGEXPORT(void) SWIG_InstallConstants(PyObject *d, swig_const_info constants[]);
|
|
|
|
#else
|
|
|
|
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
|
|
* global variable support code.
|
|
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
typedef struct swig_globalvar {
|
|
|
|
char *name; /* Name of global variable */
|
|
|
|
PyObject *(*get_attr)(void); /* Return the current value */
|
|
|
|
int (*set_attr)(PyObject *); /* Set the value */
|
|
|
|
struct swig_globalvar *next;
|
|
|
|
} swig_globalvar;
|
|
|
|
|
|
|
|
typedef struct swig_varlinkobject {
|
|
|
|
PyObject_HEAD
|
|
|
|
swig_globalvar *vars;
|
|
|
|
} swig_varlinkobject;
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
swig_varlink_repr(swig_varlinkobject *v) {
|
|
|
|
v = v;
|
|
|
|
return PyString_FromString("<Global variables>");
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
swig_varlink_print(swig_varlinkobject *v, FILE *fp, int flags) {
|
|
|
|
swig_globalvar *var;
|
|
|
|
flags = flags;
|
|
|
|
fprintf(fp,"Global variables { ");
|
|
|
|
for (var = v->vars; var; var=var->next) {
|
|
|
|
fprintf(fp,"%s", var->name);
|
|
|
|
if (var->next) fprintf(fp,", ");
|
|
|
|
}
|
|
|
|
fprintf(fp," }\n");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static PyObject *
|
|
|
|
swig_varlink_getattr(swig_varlinkobject *v, char *n) {
|
|
|
|
swig_globalvar *var = v->vars;
|
|
|
|
while (var) {
|
|
|
|
if (strcmp(var->name,n) == 0) {
|
|
|
|
return (*var->get_attr)();
|
|
|
|
}
|
|
|
|
var = var->next;
|
|
|
|
}
|
|
|
|
PyErr_SetString(PyExc_NameError,"Unknown C global variable");
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int
|
|
|
|
swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
|
|
|
|
swig_globalvar *var = v->vars;
|
|
|
|
while (var) {
|
|
|
|
if (strcmp(var->name,n) == 0) {
|
|
|
|
return (*var->set_attr)(p);
|
|
|
|
}
|
|
|
|
var = var->next;
|
|
|
|
}
|
|
|
|
PyErr_SetString(PyExc_NameError,"Unknown C global variable");
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
statichere PyTypeObject varlinktype = {
|
|
|
|
PyObject_HEAD_INIT(0)
|
|
|
|
0,
|
|
|
|
(char *)"swigvarlink", /* Type name */
|
|
|
|
sizeof(swig_varlinkobject), /* Basic size */
|
|
|
|
0, /* Itemsize */
|
|
|
|
0, /* Deallocator */
|
|
|
|
(printfunc) swig_varlink_print, /* Print */
|
|
|
|
(getattrfunc) swig_varlink_getattr, /* get attr */
|
|
|
|
(setattrfunc) swig_varlink_setattr, /* Set attr */
|
|
|
|
0, /* tp_compare */
|
|
|
|
(reprfunc) swig_varlink_repr, /* tp_repr */
|
|
|
|
0, /* tp_as_number */
|
|
|
|
0, /* tp_as_mapping*/
|
|
|
|
0, /* tp_hash */
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Create a variable linking object for use later */
|
|
|
|
SWIGRUNTIME(PyObject *)
|
|
|
|
SWIG_newvarlink(void) {
|
|
|
|
swig_varlinkobject *result = 0;
|
|
|
|
result = PyMem_NEW(swig_varlinkobject,1);
|
|
|
|
varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */
|
|
|
|
result->ob_type = &varlinktype;
|
|
|
|
result->vars = 0;
|
|
|
|
result->ob_refcnt = 0;
|
|
|
|
Py_XINCREF((PyObject *) result);
|
|
|
|
return ((PyObject*) result);
|
|
|
|
}
|
|
|
|
|
|
|
|
SWIGRUNTIME(void)
|
|
|
|
SWIG_addvarlink(PyObject *p, char *name,
|
|
|
|
PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
|
|
|
|
swig_varlinkobject *v;
|
|
|
|
swig_globalvar *gv;
|
|
|
|
v= (swig_varlinkobject *) p;
|
|
|
|
gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
|
|
|
|
gv->name = (char *) malloc(strlen(name)+1);
|
|
|
|
strcpy(gv->name,name);
|
|
|
|
gv->get_attr = get_attr;
|
|
|
|
gv->set_attr = set_attr;
|
|
|
|
gv->next = v->vars;
|
|
|
|
v->vars = gv;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Pack binary data into a string */
|
|
|
|
SWIGRUNTIME(char *)
|
|
|
|
SWIG_PackData(char *c, void *ptr, int sz) {
|
|
|
|
static char hex[17] = "0123456789abcdef";
|
|
|
|
int i;
|
|
|
|
unsigned char *u = (unsigned char *) ptr;
|
|
|
|
register unsigned char uu;
|
|
|
|
for (i = 0; i < sz; i++,u++) {
|
|
|
|
uu = *u;
|
|
|
|
*(c++) = hex[(uu & 0xf0) >> 4];
|
|
|
|
*(c++) = hex[uu & 0xf];
|
|
|
|
}
|
|
|
|
return c;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Unpack binary data from a string */
|
|
|
|
SWIGRUNTIME(char *)
|
|
|
|
SWIG_UnpackData(char *c, void *ptr, int sz) {
|
|
|
|
register unsigned char uu = 0;
|
|
|
|
register int d;
|
|
|
|
unsigned char *u = (unsigned char *) ptr;
|
|
|
|
int i;
|
|
|
|
for (i = 0; i < sz; i++, u++) {
|
|
|
|
d = *(c++);
|
|
|
|
if ((d >= '0') && (d <= '9'))
|
|
|
|
uu = ((d - '0') << 4);
|
|
|
|
else if ((d >= 'a') && (d <= 'f'))
|
|
|
|
uu = ((d - ('a'-10)) << 4);
|
|
|
|
d = *(c++);
|
|
|
|
if ((d >= '0') && (d <= '9'))
|
|
|
|
uu |= (d - '0');
|
|
|
|
else if ((d >= 'a') && (d <= 'f'))
|
|
|
|
uu |= (d - ('a'-10));
|
|
|
|
*u = uu;
|
|
|
|
}
|
|
|
|
return c;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Convert a pointer value */
|
|
|
|
SWIGRUNTIME(int)
|
|
|
|
SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) {
|
|
|
|
swig_type_info *tc;
|
|
|
|
char *c;
|
|
|
|
static PyObject *SWIG_this = 0;
|
|
|
|
int newref = 0;
|
|
|
|
PyObject *pyobj = 0;
|
|
|
|
|
|
|
|
if (!obj) return 0;
|
|
|
|
if (obj == Py_None) {
|
|
|
|
*ptr = 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
#ifdef SWIG_COBJECT_TYPES
|
|
|
|
if (!(PyCObject_Check(obj))) {
|
|
|
|
if (!SWIG_this)
|
|
|
|
SWIG_this = PyString_FromString("this");
|
|
|
|
pyobj = obj;
|
|
|
|
obj = PyObject_GetAttr(obj,SWIG_this);
|
|
|
|
newref = 1;
|
|
|
|
if (!obj) goto type_error;
|
|
|
|
if (!PyCObject_Check(obj)) {
|
|
|
|
Py_DECREF(obj);
|
|
|
|
goto type_error;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
*ptr = PyCObject_AsVoidPtr(obj);
|
|
|
|
c = (char *) PyCObject_GetDesc(obj);
|
|
|
|
if (newref) Py_DECREF(obj);
|
|
|
|
goto cobject;
|
|
|
|
#else
|
|
|
|
if (!(PyString_Check(obj))) {
|
|
|
|
if (!SWIG_this)
|
|
|
|
SWIG_this = PyString_FromString("this");
|
|
|
|
pyobj = obj;
|
|
|
|
obj = PyObject_GetAttr(obj,SWIG_this);
|
|
|
|
newref = 1;
|
|
|
|
if (!obj) goto type_error;
|
|
|
|
if (!PyString_Check(obj)) {
|
|
|
|
Py_DECREF(obj);
|
|
|
|
goto type_error;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
c = PyString_AsString(obj);
|
|
|
|
/* Pointer values must start with leading underscore */
|
|
|
|
if (*c != '_') {
|
|
|
|
*ptr = (void *) 0;
|
|
|
|
if (strcmp(c,"NULL") == 0) {
|
|
|
|
if (newref) { Py_DECREF(obj); }
|
|
|
|
return 0;
|
|
|
|
} else {
|
|
|
|
if (newref) { Py_DECREF(obj); }
|
|
|
|
goto type_error;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
c++;
|
|
|
|
c = SWIG_UnpackData(c,ptr,sizeof(void *));
|
|
|
|
if (newref) { Py_DECREF(obj); }
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef SWIG_COBJECT_TYPES
|
|
|
|
cobject:
|
|
|
|
#endif
|
|
|
|
|
|
|
|
if (ty) {
|
|
|
|
tc = SWIG_TypeCheck(c,ty);
|
|
|
|
if (!tc) goto type_error;
|
|
|
|
*ptr = SWIG_TypeCast(tc,(void*) *ptr);
|
|
|
|
}
|
|
|
|
|
|
|
|
if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) {
|
|
|
|
PyObject *zero = PyInt_FromLong(0);
|
|
|
|
PyObject_SetAttrString(pyobj,(char*)"thisown",zero);
|
|
|
|
Py_DECREF(zero);
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
type_error:
|
|
|
|
if (flags & SWIG_POINTER_EXCEPTION) {
|
|
|
|
if (ty) {
|
|
|
|
char *temp = (char *) malloc(64+strlen(ty->name));
|
|
|
|
sprintf(temp,"Type error. Expected %s", ty->name);
|
|
|
|
PyErr_SetString(PyExc_TypeError, temp);
|
|
|
|
free((char *) temp);
|
|
|
|
} else {
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Expected a pointer");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Convert a packed value value */
|
|
|
|
SWIGRUNTIME(int)
|
|
|
|
SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) {
|
|
|
|
swig_type_info *tc;
|
|
|
|
char *c;
|
|
|
|
|
|
|
|
if ((!obj) || (!PyString_Check(obj))) goto type_error;
|
|
|
|
c = PyString_AsString(obj);
|
|
|
|
/* Pointer values must start with leading underscore */
|
|
|
|
if (*c != '_') goto type_error;
|
|
|
|
c++;
|
|
|
|
c = SWIG_UnpackData(c,ptr,sz);
|
|
|
|
if (ty) {
|
|
|
|
tc = SWIG_TypeCheck(c,ty);
|
|
|
|
if (!tc) goto type_error;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
type_error:
|
|
|
|
|
|
|
|
if (flags) {
|
|
|
|
if (ty) {
|
|
|
|
char *temp = (char *) malloc(64+strlen(ty->name));
|
|
|
|
sprintf(temp,"Type error. Expected %s", ty->name);
|
|
|
|
PyErr_SetString(PyExc_TypeError, temp);
|
|
|
|
free((char *) temp);
|
|
|
|
} else {
|
|
|
|
PyErr_SetString(PyExc_TypeError,"Expected a pointer");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Create a new pointer object */
|
|
|
|
SWIGRUNTIME(PyObject *)
|
|
|
|
SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) {
|
|
|
|
PyObject *robj;
|
|
|
|
if (!ptr) {
|
|
|
|
Py_INCREF(Py_None);
|
|
|
|
return Py_None;
|
|
|
|
}
|
|
|
|
#ifdef SWIG_COBJECT_TYPES
|
|
|
|
robj = PyCObject_FromVoidPtrAndDesc((void *) ptr, (char *) type->name, NULL);
|
|
|
|
#else
|
|
|
|
{
|
|
|
|
char result[1024];
|
|
|
|
char *r = result;
|
|
|
|
*(r++) = '_';
|
|
|
|
r = SWIG_PackData(r,&ptr,sizeof(void *));
|
|
|
|
strcpy(r,type->name);
|
|
|
|
robj = PyString_FromString(result);
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
if (!robj || (robj == Py_None)) return robj;
|
|
|
|
if (type->clientdata) {
|
|
|
|
PyObject *inst;
|
|
|
|
PyObject *args = Py_BuildValue((char*)"(O)", robj);
|
|
|
|
Py_DECREF(robj);
|
|
|
|
inst = PyObject_CallObject((PyObject *) type->clientdata, args);
|
|
|
|
Py_DECREF(args);
|
|
|
|
if (inst) {
|
|
|
|
if (own) {
|
|
|
|
PyObject *n = PyInt_FromLong(1);
|
|
|
|
PyObject_SetAttrString(inst,(char*)"thisown",n);
|
|
|
|
Py_DECREF(n);
|
|
|
|
}
|
|
|
|
robj = inst;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return robj;
|
|
|
|
}
|
|
|
|
|
|
|
|
SWIGRUNTIME(PyObject *)
|
|
|
|
SWIG_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
|
|
|
|
char result[1024];
|
|
|
|
char *r = result;
|
|
|
|
if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
|
|
|
|
*(r++) = '_';
|
|
|
|
r = SWIG_PackData(r,ptr,sz);
|
|
|
|
strcpy(r,type->name);
|
|
|
|
return PyString_FromString(result);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Install Constants */
|
|
|
|
SWIGRUNTIME(void)
|
|
|
|
SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) {
|
|
|
|
int i;
|
|
|
|
PyObject *obj;
|
|
|
|
for (i = 0; constants[i].type; i++) {
|
|
|
|
switch(constants[i].type) {
|
|
|
|
case SWIG_PY_INT:
|
|
|
|
obj = PyInt_FromLong(constants[i].lvalue);
|
|
|
|
break;
|
|
|
|
case SWIG_PY_FLOAT:
|
|
|
|
obj = PyFloat_FromDouble(constants[i].dvalue);
|
|
|
|
break;
|
|
|
|
case SWIG_PY_STRING:
|
|
|
|
obj = PyString_FromString((char *) constants[i].pvalue);
|
|
|
|
break;
|
|
|
|
case SWIG_PY_POINTER:
|
|
|
|
obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
|
|
|
|
break;
|
|
|
|
case SWIG_PY_BINARY:
|
|
|
|
obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
obj = 0;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
if (obj) {
|
|
|
|
PyDict_SetItemString(d,constants[i].name,obj);
|
|
|
|
Py_DECREF(obj);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* -------- TYPES TABLE (BEGIN) -------- */
|
|
|
|
|
2002-12-31 09:17:16 +00:00
|
|
|
#define SWIGTYPE_p_otk__OBTimerQueueManager swig_types[0]
|
2003-01-02 20:36:14 +00:00
|
|
|
#define SWIGTYPE_p_ob__OBActions swig_types[1]
|
|
|
|
#define SWIGTYPE_p_ob__Cursors swig_types[2]
|
|
|
|
#define SWIGTYPE_p_ob__OBScreen swig_types[3]
|
|
|
|
#define SWIGTYPE_p_otk__Style swig_types[4]
|
2003-01-03 02:48:25 +00:00
|
|
|
#define SWIGTYPE_p_ob__OBFrame swig_types[5]
|
|
|
|
#define SWIGTYPE_p_XReparentEvent swig_types[6]
|
|
|
|
#define SWIGTYPE_p_ob__OBClient swig_types[7]
|
|
|
|
#define SWIGTYPE_p_ob__Openbox swig_types[8]
|
|
|
|
#define SWIGTYPE_p_otk__Strut swig_types[9]
|
|
|
|
#define SWIGTYPE_p_XShapeEvent swig_types[10]
|
|
|
|
#define SWIGTYPE_p_XConfigureRequestEvent swig_types[11]
|
|
|
|
#define SWIGTYPE_p_otk__OtkEventHandler swig_types[12]
|
|
|
|
#define SWIGTYPE_p_otk__Rect swig_types[13]
|
2002-12-31 19:15:24 +00:00
|
|
|
#define SWIGTYPE_p_ob__OBWidget swig_types[14]
|
2003-01-03 02:48:25 +00:00
|
|
|
#define SWIGTYPE_p_XFocusChangeEvent swig_types[15]
|
|
|
|
#define SWIGTYPE_p_XClientMessageEvent swig_types[16]
|
|
|
|
#define SWIGTYPE_p_otk__OBProperty swig_types[17]
|
|
|
|
#define SWIGTYPE_p_otk__OtkEventDispatcher swig_types[18]
|
|
|
|
#define SWIGTYPE_p_XPropertyEvent swig_types[19]
|
|
|
|
#define SWIGTYPE_p_XDestroyWindowEvent swig_types[20]
|
|
|
|
#define SWIGTYPE_p_otk__BImageControl swig_types[21]
|
2003-01-03 00:26:36 +00:00
|
|
|
#define SWIGTYPE_p_PyObject swig_types[22]
|
2003-01-03 02:48:25 +00:00
|
|
|
#define SWIGTYPE_p_ob__OBBindings swig_types[23]
|
|
|
|
#define SWIGTYPE_p_ob__MwmHints swig_types[24]
|
|
|
|
#define SWIGTYPE_p_XUnmapEvent swig_types[25]
|
|
|
|
static swig_type_info *swig_types[27];
|
2002-12-24 23:31:38 +00:00
|
|
|
|
|
|
|
/* -------- TYPES TABLE (END) -------- */
|
|
|
|
|
|
|
|
|
|
|
|
/*-----------------------------------------------
|
|
|
|
@(target):= _openbox.so
|
|
|
|
------------------------------------------------*/
|
|
|
|
#define SWIG_init init_openbox
|
|
|
|
|
|
|
|
#define SWIG_name "_openbox"
|
|
|
|
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "../config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "openbox.hh"
|
|
|
|
#include "screen.hh"
|
|
|
|
#include "client.hh"
|
2002-12-31 06:59:46 +00:00
|
|
|
#include "bindings.hh"
|
2003-01-02 20:36:14 +00:00
|
|
|
#include "actions.hh"
|
2002-12-24 23:31:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
#define SWIG_MemoryError 1
|
|
|
|
#define SWIG_IOError 2
|
|
|
|
#define SWIG_RuntimeError 3
|
|
|
|
#define SWIG_IndexError 4
|
|
|
|
#define SWIG_TypeError 5
|
|
|
|
#define SWIG_DivisionByZero 6
|
|
|
|
#define SWIG_OverflowError 7
|
|
|
|
#define SWIG_SyntaxError 8
|
|
|
|
#define SWIG_ValueError 9
|
|
|
|
#define SWIG_SystemError 10
|
|
|
|
#define SWIG_UnknownError 99
|
|
|
|
|
|
|
|
|
|
|
|
static void _SWIG_exception(int code, const char *msg) {
|
|
|
|
switch(code) {
|
|
|
|
case SWIG_MemoryError:
|
|
|
|
PyErr_SetString(PyExc_MemoryError,msg);
|
|
|
|
break;
|
|
|
|
case SWIG_IOError:
|
|
|
|
PyErr_SetString(PyExc_IOError,msg);
|
|
|
|
break;
|
|
|
|
case SWIG_RuntimeError:
|
|
|
|
PyErr_SetString(PyExc_RuntimeError,msg);
|
|
|
|
break;
|
|
|
|
case SWIG_IndexError:
|
|
|
|
PyErr_SetString(PyExc_IndexError,msg);
|
|
|
|
break;
|
|
|
|
case SWIG_TypeError:
|
|
|
|
PyErr_SetString(PyExc_TypeError,msg);
|
|
|
|
break;
|
|
|
|
case SWIG_DivisionByZero:
|
|
|
|
PyErr_SetString(PyExc_ZeroDivisionError,msg);
|
|
|
|
break;
|
|
|
|
case SWIG_OverflowError:
|
|
|
|
PyErr_SetString(PyExc_OverflowError,msg);
|
|
|
|
break;
|
|
|
|
case SWIG_SyntaxError:
|
|
|
|
PyErr_SetString(PyExc_SyntaxError,msg);
|
|
|
|
break;
|
|
|
|
case SWIG_ValueError:
|
|
|
|
PyErr_SetString(PyExc_ValueError,msg);
|
|
|
|
break;
|
|
|
|
case SWIG_SystemError:
|
|
|
|
PyErr_SetString(PyExc_SystemError,msg);
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
PyErr_SetString(PyExc_RuntimeError,msg);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; }
|
|
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
static PyObject* SwigInt_FromBool(bool b) {
|
|
|
|
return PyInt_FromLong(b ? 1L : 0L);
|
|
|
|
}
|
|
|
|
static double SwigNumber_Check(PyObject* o) {
|
|
|
|
return PyFloat_Check(o) || PyInt_Check(o);
|
|
|
|
}
|
|
|
|
static double SwigNumber_AsDouble(PyObject* o) {
|
|
|
|
return (PyFloat_Check(o) ? PyFloat_AsDouble(o) : double(PyInt_AsLong(o)));
|
|
|
|
}
|
|
|
|
static PyObject* SwigString_FromString(const std::string& s) {
|
|
|
|
return PyString_FromString(s.c_str());
|
|
|
|
}
|
|
|
|
static std::string SwigString_AsString(PyObject* o) {
|
|
|
|
return std::string(PyString_AsString(o));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
#include <algorithm>
|
|
|
|
#include <stdexcept>
|
|
|
|
|
2002-12-25 02:19:49 +00:00
|
|
|
|
|
|
|
ob::Openbox *Openbox_instance() { return ob::Openbox::instance; }
|
|
|
|
|
|
|
|
|
|
|
|
#include <iterator>
|
|
|
|
|
2002-12-24 23:31:38 +00:00
|
|
|
ob::OBClient *ob_OBScreen_client(ob::OBScreen *self,int i){
|
2002-12-25 02:19:49 +00:00
|
|
|
if (i >= (int)self->clients.size())
|
|
|
|
return NULL;
|
2002-12-24 23:31:38 +00:00
|
|
|
ob::OBScreen::ClientList::iterator it = self->clients.begin();
|
|
|
|
std::advance(it,i);
|
|
|
|
return *it;
|
|
|
|
}
|
|
|
|
int ob_OBScreen_clientCount(ob::OBScreen const *self){
|
|
|
|
return (int) self->clients.size();
|
|
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2002-12-25 02:19:49 +00:00
|
|
|
static PyObject *_wrap_Openbox_instance(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Openbox *result;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)":Openbox_instance")) goto fail;
|
|
|
|
result = (ob::Openbox *)Openbox_instance();
|
|
|
|
|
|
|
|
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Openbox, 0);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-24 23:31:38 +00:00
|
|
|
static PyObject *_wrap_Cursors_session_set(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Cursors *arg1 = (ob::Cursors *) 0 ;
|
|
|
|
Cursor arg2 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_session_set",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2002-12-25 02:19:49 +00:00
|
|
|
arg2 = (Cursor) PyInt_AsLong(obj1);
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
2002-12-24 23:31:38 +00:00
|
|
|
if (arg1) (arg1)->session = arg2;
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_Cursors_session_get(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Cursors *arg1 = (ob::Cursors *) 0 ;
|
|
|
|
Cursor result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:Cursors_session_get",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2002-12-25 02:19:49 +00:00
|
|
|
result = (Cursor) ((arg1)->session);
|
2002-12-24 23:31:38 +00:00
|
|
|
|
2002-12-25 02:19:49 +00:00
|
|
|
resultobj = PyInt_FromLong((long)result);
|
2002-12-24 23:31:38 +00:00
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_Cursors_move_set(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Cursors *arg1 = (ob::Cursors *) 0 ;
|
|
|
|
Cursor arg2 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_move_set",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2002-12-25 02:19:49 +00:00
|
|
|
arg2 = (Cursor) PyInt_AsLong(obj1);
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
2002-12-24 23:31:38 +00:00
|
|
|
if (arg1) (arg1)->move = arg2;
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_Cursors_move_get(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Cursors *arg1 = (ob::Cursors *) 0 ;
|
|
|
|
Cursor result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:Cursors_move_get",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2002-12-25 02:19:49 +00:00
|
|
|
result = (Cursor) ((arg1)->move);
|
2002-12-24 23:31:38 +00:00
|
|
|
|
2002-12-25 02:19:49 +00:00
|
|
|
resultobj = PyInt_FromLong((long)result);
|
2002-12-24 23:31:38 +00:00
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_Cursors_ll_angle_set(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Cursors *arg1 = (ob::Cursors *) 0 ;
|
|
|
|
Cursor arg2 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ll_angle_set",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2002-12-25 02:19:49 +00:00
|
|
|
arg2 = (Cursor) PyInt_AsLong(obj1);
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
2002-12-24 23:31:38 +00:00
|
|
|
if (arg1) (arg1)->ll_angle = arg2;
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_Cursors_ll_angle_get(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Cursors *arg1 = (ob::Cursors *) 0 ;
|
|
|
|
Cursor result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ll_angle_get",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2002-12-25 02:19:49 +00:00
|
|
|
result = (Cursor) ((arg1)->ll_angle);
|
2002-12-24 23:31:38 +00:00
|
|
|
|
2002-12-25 02:19:49 +00:00
|
|
|
resultobj = PyInt_FromLong((long)result);
|
2002-12-24 23:31:38 +00:00
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_Cursors_lr_angle_set(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Cursors *arg1 = (ob::Cursors *) 0 ;
|
|
|
|
Cursor arg2 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_lr_angle_set",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2002-12-25 02:19:49 +00:00
|
|
|
arg2 = (Cursor) PyInt_AsLong(obj1);
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
2002-12-24 23:31:38 +00:00
|
|
|
if (arg1) (arg1)->lr_angle = arg2;
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_Cursors_lr_angle_get(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Cursors *arg1 = (ob::Cursors *) 0 ;
|
|
|
|
Cursor result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:Cursors_lr_angle_get",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2002-12-25 02:19:49 +00:00
|
|
|
result = (Cursor) ((arg1)->lr_angle);
|
2002-12-24 23:31:38 +00:00
|
|
|
|
2002-12-25 02:19:49 +00:00
|
|
|
resultobj = PyInt_FromLong((long)result);
|
2002-12-24 23:31:38 +00:00
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_Cursors_ul_angle_set(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Cursors *arg1 = (ob::Cursors *) 0 ;
|
|
|
|
Cursor arg2 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ul_angle_set",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2002-12-25 02:19:49 +00:00
|
|
|
arg2 = (Cursor) PyInt_AsLong(obj1);
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
2002-12-24 23:31:38 +00:00
|
|
|
if (arg1) (arg1)->ul_angle = arg2;
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_Cursors_ul_angle_get(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Cursors *arg1 = (ob::Cursors *) 0 ;
|
|
|
|
Cursor result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ul_angle_get",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2002-12-25 02:19:49 +00:00
|
|
|
result = (Cursor) ((arg1)->ul_angle);
|
2002-12-24 23:31:38 +00:00
|
|
|
|
2002-12-25 02:19:49 +00:00
|
|
|
resultobj = PyInt_FromLong((long)result);
|
2002-12-24 23:31:38 +00:00
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_Cursors_ur_angle_set(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Cursors *arg1 = (ob::Cursors *) 0 ;
|
|
|
|
Cursor arg2 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:Cursors_ur_angle_set",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2002-12-25 02:19:49 +00:00
|
|
|
arg2 = (Cursor) PyInt_AsLong(obj1);
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
2002-12-24 23:31:38 +00:00
|
|
|
if (arg1) (arg1)->ur_angle = arg2;
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_Cursors_ur_angle_get(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Cursors *arg1 = (ob::Cursors *) 0 ;
|
|
|
|
Cursor result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:Cursors_ur_angle_get",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Cursors,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2002-12-25 02:19:49 +00:00
|
|
|
result = (Cursor) ((arg1)->ur_angle);
|
2002-12-24 23:31:38 +00:00
|
|
|
|
2002-12-25 02:19:49 +00:00
|
|
|
resultobj = PyInt_FromLong((long)result);
|
2002-12-24 23:31:38 +00:00
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject * Cursors_swigregister(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *obj;
|
|
|
|
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
|
|
|
|
SWIG_TypeClientData(SWIGTYPE_p_ob__Cursors, obj);
|
|
|
|
Py_INCREF(obj);
|
|
|
|
return Py_BuildValue((char *)"");
|
|
|
|
}
|
|
|
|
static PyObject *_wrap_Openbox_state(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Openbox *arg1 = (ob::Openbox *) 0 ;
|
|
|
|
int result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:Openbox_state",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (int)((ob::Openbox const *)arg1)->state();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_Openbox_timerManager(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Openbox *arg1 = (ob::Openbox *) 0 ;
|
|
|
|
otk::OBTimerQueueManager *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:Openbox_timerManager",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (otk::OBTimerQueueManager *)(arg1)->timerManager();
|
|
|
|
|
|
|
|
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBTimerQueueManager, 0);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_Openbox_property(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Openbox *arg1 = (ob::Openbox *) 0 ;
|
|
|
|
otk::OBProperty *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:Openbox_property",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (otk::OBProperty *)((ob::Openbox const *)arg1)->property();
|
|
|
|
|
|
|
|
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__OBProperty, 0);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-01-02 20:36:14 +00:00
|
|
|
static PyObject *_wrap_Openbox_actions(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Openbox *arg1 = (ob::Openbox *) 0 ;
|
|
|
|
ob::OBActions *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:Openbox_actions",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (ob::OBActions *)((ob::Openbox const *)arg1)->actions();
|
|
|
|
|
|
|
|
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBActions, 0);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-30 06:31:45 +00:00
|
|
|
static PyObject *_wrap_Openbox_bindings(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Openbox *arg1 = (ob::Openbox *) 0 ;
|
|
|
|
ob::OBBindings *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:Openbox_bindings",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (ob::OBBindings *)((ob::Openbox const *)arg1)->bindings();
|
|
|
|
|
|
|
|
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBBindings, 0);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-24 23:31:38 +00:00
|
|
|
static PyObject *_wrap_Openbox_screen(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Openbox *arg1 = (ob::Openbox *) 0 ;
|
|
|
|
int arg2 ;
|
|
|
|
ob::OBScreen *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"Oi:Openbox_screen",&obj0,&arg2)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (ob::OBScreen *)(arg1)->screen(arg2);
|
|
|
|
|
|
|
|
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-25 02:19:49 +00:00
|
|
|
static PyObject *_wrap_Openbox_screenCount(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Openbox *arg1 = (ob::Openbox *) 0 ;
|
|
|
|
int result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:Openbox_screenCount",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (int)((ob::Openbox const *)arg1)->screenCount();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-24 23:31:38 +00:00
|
|
|
static PyObject *_wrap_Openbox_cursors(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Openbox *arg1 = (ob::Openbox *) 0 ;
|
|
|
|
ob::Cursors *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:Openbox_cursors",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
{
|
|
|
|
ob::Cursors const &_result_ref = ((ob::Openbox const *)arg1)->cursors();
|
|
|
|
result = (ob::Cursors *) &_result_ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__Cursors, 0);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_Openbox_addClient(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Openbox *arg1 = (ob::Openbox *) 0 ;
|
|
|
|
Window arg2 ;
|
|
|
|
ob::OBClient *arg3 = (ob::OBClient *) 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
PyObject * obj2 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OOO:Openbox_addClient",&obj0,&obj1,&obj2)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2002-12-25 02:19:49 +00:00
|
|
|
arg2 = (Window) PyInt_AsLong(obj1);
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
2002-12-24 23:31:38 +00:00
|
|
|
if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
(arg1)->addClient(arg2,arg3);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_Openbox_removeClient(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Openbox *arg1 = (ob::Openbox *) 0 ;
|
|
|
|
Window arg2 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_removeClient",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2002-12-25 02:19:49 +00:00
|
|
|
arg2 = (Window) PyInt_AsLong(obj1);
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
2002-12-24 23:31:38 +00:00
|
|
|
(arg1)->removeClient(arg2);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_Openbox_findClient(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Openbox *arg1 = (ob::Openbox *) 0 ;
|
|
|
|
Window arg2 ;
|
|
|
|
ob::OBClient *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_findClient",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2002-12-25 02:19:49 +00:00
|
|
|
arg2 = (Window) PyInt_AsLong(obj1);
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
2002-12-24 23:31:38 +00:00
|
|
|
result = (ob::OBClient *)(arg1)->findClient(arg2);
|
|
|
|
|
|
|
|
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-25 22:02:34 +00:00
|
|
|
static PyObject *_wrap_Openbox_focusedClient(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Openbox *arg1 = (ob::Openbox *) 0 ;
|
|
|
|
ob::OBClient *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedClient",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (ob::OBClient *)(arg1)->focusedClient();
|
|
|
|
|
|
|
|
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_Openbox_setFocusedClient(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Openbox *arg1 = (ob::Openbox *) 0 ;
|
|
|
|
ob::OBClient *arg2 = (ob::OBClient *) 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:Openbox_setFocusedClient",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
(arg1)->setFocusedClient(arg2);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_Openbox_focusedScreen(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Openbox *arg1 = (ob::Openbox *) 0 ;
|
|
|
|
ob::OBScreen *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:Openbox_focusedScreen",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (ob::OBScreen *)(arg1)->focusedScreen();
|
|
|
|
|
|
|
|
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBScreen, 0);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-24 23:31:38 +00:00
|
|
|
static PyObject *_wrap_Openbox_shutdown(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Openbox *arg1 = (ob::Openbox *) 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:Openbox_shutdown",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
(arg1)->shutdown();
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-01-03 16:06:10 +00:00
|
|
|
static PyObject *_wrap_Openbox_execute(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::Openbox *arg1 = (ob::Openbox *) 0 ;
|
|
|
|
int arg2 ;
|
|
|
|
std::string *arg3 = 0 ;
|
|
|
|
std::string temp3 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj2 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OiO:Openbox_execute",&obj0,&arg2,&obj2)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__Openbox,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
{
|
|
|
|
if (PyString_Check(obj2)) {
|
|
|
|
temp3 = std::string(PyString_AsString(obj2));
|
|
|
|
arg3 = &temp3;
|
|
|
|
}else {
|
|
|
|
SWIG_exception(SWIG_TypeError, "string expected");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
(arg1)->execute(arg2,(std::string const &)*arg3);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-24 23:31:38 +00:00
|
|
|
static PyObject * Openbox_swigregister(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *obj;
|
|
|
|
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
|
|
|
|
SWIG_TypeClientData(SWIGTYPE_p_ob__Openbox, obj);
|
|
|
|
Py_INCREF(obj);
|
|
|
|
return Py_BuildValue((char *)"");
|
|
|
|
}
|
2002-12-25 02:19:49 +00:00
|
|
|
static PyObject *_wrap_OBScreen_client(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
|
|
|
|
int arg2 ;
|
|
|
|
ob::OBClient *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"Oi:OBScreen_client",&obj0,&arg2)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (ob::OBClient *)ob_OBScreen_client(arg1,arg2);
|
|
|
|
|
|
|
|
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBClient, 0);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBScreen_clientCount(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
|
|
|
|
int result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_clientCount",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (int)ob_OBScreen_clientCount((ob::OBScreen const *)arg1);
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-24 23:31:38 +00:00
|
|
|
static PyObject *_wrap_OBScreen_managed(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
|
|
|
|
bool result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_managed",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (bool)((ob::OBScreen const *)arg1)->managed();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBScreen_imageControl(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
|
|
|
|
otk::BImageControl *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_imageControl",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (otk::BImageControl *)(arg1)->imageControl();
|
|
|
|
|
|
|
|
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__BImageControl, 0);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBScreen_area(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
|
|
|
|
otk::Rect *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_area",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
{
|
|
|
|
otk::Rect const &_result_ref = ((ob::OBScreen const *)arg1)->area();
|
|
|
|
result = (otk::Rect *) &_result_ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBScreen_style(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
|
|
|
|
otk::Style *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_style",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (otk::Style *)((ob::OBScreen const *)arg1)->style();
|
|
|
|
|
|
|
|
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Style, 0);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-25 22:02:34 +00:00
|
|
|
static PyObject *_wrap_OBScreen_focuswindow(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
|
|
|
|
Window result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_focuswindow",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (Window)((ob::OBScreen const *)arg1)->focuswindow();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-24 23:31:38 +00:00
|
|
|
static PyObject *_wrap_OBScreen_addStrut(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
|
|
|
|
otk::Strut *arg2 = (otk::Strut *) 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_addStrut",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
(arg1)->addStrut(arg2);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBScreen_removeStrut(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
|
|
|
|
otk::Strut *arg2 = (otk::Strut *) 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_removeStrut",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_otk__Strut,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
(arg1)->removeStrut(arg2);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBScreen_manageExisting(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBScreen_manageExisting",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
(arg1)->manageExisting();
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBScreen_manageWindow(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
|
|
|
|
Window arg2 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_manageWindow",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2002-12-25 02:19:49 +00:00
|
|
|
arg2 = (Window) PyInt_AsLong(obj1);
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
2002-12-24 23:31:38 +00:00
|
|
|
(arg1)->manageWindow(arg2);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBScreen_unmanageWindow(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
|
|
|
|
ob::OBClient *arg2 = (ob::OBClient *) 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:OBScreen_unmanageWindow",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
(arg1)->unmanageWindow(arg2);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-01-03 18:25:04 +00:00
|
|
|
static PyObject *_wrap_OBScreen_restack(PyObject *self, PyObject *args) {
|
2003-01-03 18:21:28 +00:00
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBScreen *arg1 = (ob::OBScreen *) 0 ;
|
2003-01-03 18:25:04 +00:00
|
|
|
bool arg2 ;
|
|
|
|
ob::OBClient *arg3 = (ob::OBClient *) 0 ;
|
2003-01-03 18:21:28 +00:00
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
2003-01-03 18:25:04 +00:00
|
|
|
PyObject * obj2 = 0 ;
|
2003-01-03 18:21:28 +00:00
|
|
|
|
2003-01-03 18:25:04 +00:00
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OOO:OBScreen_restack",&obj0,&obj1,&obj2)) goto fail;
|
2003-01-03 18:21:28 +00:00
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBScreen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2003-01-03 18:25:04 +00:00
|
|
|
arg2 = (bool) PyInt_AsLong(obj1);
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
(arg1)->restack(arg2,arg3);
|
2003-01-03 18:21:28 +00:00
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-24 23:31:38 +00:00
|
|
|
static PyObject * OBScreen_swigregister(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *obj;
|
|
|
|
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
|
|
|
|
SWIG_TypeClientData(SWIGTYPE_p_ob__OBScreen, obj);
|
|
|
|
Py_INCREF(obj);
|
|
|
|
return Py_BuildValue((char *)"");
|
|
|
|
}
|
|
|
|
static PyObject *_wrap_MwmHints_flags_set(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
|
|
|
|
unsigned long arg2 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_flags_set",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
arg2 = (unsigned long) PyInt_AsLong(obj1);
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
|
|
if (arg1) (arg1)->flags = arg2;
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_MwmHints_flags_get(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
|
|
|
|
unsigned long result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_flags_get",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (unsigned long) ((arg1)->flags);
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_MwmHints_functions_set(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
|
|
|
|
unsigned long arg2 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_functions_set",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
arg2 = (unsigned long) PyInt_AsLong(obj1);
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
|
|
if (arg1) (arg1)->functions = arg2;
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_MwmHints_functions_get(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
|
|
|
|
unsigned long result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_functions_get",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (unsigned long) ((arg1)->functions);
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_MwmHints_decorations_set(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
|
|
|
|
unsigned long arg2 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:MwmHints_decorations_set",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
arg2 = (unsigned long) PyInt_AsLong(obj1);
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
|
|
if (arg1) (arg1)->decorations = arg2;
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_MwmHints_decorations_get(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::MwmHints *arg1 = (ob::MwmHints *) 0 ;
|
|
|
|
unsigned long result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:MwmHints_decorations_get",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__MwmHints,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (unsigned long) ((arg1)->decorations);
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject * MwmHints_swigregister(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *obj;
|
|
|
|
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
|
|
|
|
SWIG_TypeClientData(SWIGTYPE_p_ob__MwmHints, obj);
|
|
|
|
Py_INCREF(obj);
|
|
|
|
return Py_BuildValue((char *)"");
|
|
|
|
}
|
|
|
|
static PyObject *_wrap_OBClient_frame_set(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
ob::OBFrame *arg2 = (ob::OBFrame *) 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_frame_set",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_ob__OBFrame,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN )) == -1) SWIG_fail;
|
|
|
|
if (arg1) (arg1)->frame = arg2;
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_frame_get(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
ob::OBFrame *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_frame_get",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (ob::OBFrame *) ((arg1)->frame);
|
|
|
|
|
|
|
|
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_ob__OBFrame, 0);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_ignore_unmaps_set(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
int arg2 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"Oi:OBClient_ignore_unmaps_set",&obj0,&arg2)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if (arg1) (arg1)->ignore_unmaps = arg2;
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_ignore_unmaps_get(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
int result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_ignore_unmaps_get",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (int) ((arg1)->ignore_unmaps);
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_screen(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
int result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_screen",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (int)((ob::OBClient const *)arg1)->screen();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_window(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
Window result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_window",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2002-12-25 02:19:49 +00:00
|
|
|
result = (Window)((ob::OBClient const *)arg1)->window();
|
2002-12-24 23:31:38 +00:00
|
|
|
|
2002-12-25 02:19:49 +00:00
|
|
|
resultobj = PyInt_FromLong((long)result);
|
2002-12-24 23:31:38 +00:00
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_type(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
int result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_type",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (int)((ob::OBClient const *)arg1)->type();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_desktop(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
unsigned long result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_desktop",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (unsigned long)((ob::OBClient const *)arg1)->desktop();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_title(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
std::string *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_title",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
{
|
|
|
|
std::string const &_result_ref = ((ob::OBClient const *)arg1)->title();
|
|
|
|
result = (std::string *) &_result_ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
resultobj = PyString_FromString(result->c_str());
|
|
|
|
}
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_iconTitle(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
std::string *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconTitle",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
{
|
|
|
|
std::string const &_result_ref = ((ob::OBClient const *)arg1)->iconTitle();
|
|
|
|
result = (std::string *) &_result_ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
resultobj = PyString_FromString(result->c_str());
|
|
|
|
}
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_appName(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
std::string *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appName",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
{
|
|
|
|
std::string const &_result_ref = ((ob::OBClient const *)arg1)->appName();
|
|
|
|
result = (std::string *) &_result_ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
resultobj = PyString_FromString(result->c_str());
|
|
|
|
}
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_appClass(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
std::string *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_appClass",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
{
|
|
|
|
std::string const &_result_ref = ((ob::OBClient const *)arg1)->appClass();
|
|
|
|
result = (std::string *) &_result_ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
resultobj = PyString_FromString(result->c_str());
|
|
|
|
}
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_canFocus(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
bool result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_canFocus",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (bool)((ob::OBClient const *)arg1)->canFocus();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_urgent(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
bool result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_urgent",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (bool)((ob::OBClient const *)arg1)->urgent();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_focusNotify(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
bool result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focusNotify",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (bool)((ob::OBClient const *)arg1)->focusNotify();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_shaped(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
bool result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaped",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (bool)((ob::OBClient const *)arg1)->shaped();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_gravity(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
int result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_gravity",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (int)((ob::OBClient const *)arg1)->gravity();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_positionRequested(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
bool result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_positionRequested",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (bool)((ob::OBClient const *)arg1)->positionRequested();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_decorations(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
ob::OBClient::DecorationFlags result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_decorations",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (ob::OBClient::DecorationFlags)((ob::OBClient const *)arg1)->decorations();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_funtions(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
ob::OBClient::FunctionFlags result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_funtions",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (ob::OBClient::FunctionFlags)((ob::OBClient const *)arg1)->funtions();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_modal(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
bool result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_modal",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (bool)((ob::OBClient const *)arg1)->modal();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_shaded(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
bool result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_shaded",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (bool)((ob::OBClient const *)arg1)->shaded();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_iconic(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
bool result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_iconic",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (bool)((ob::OBClient const *)arg1)->iconic();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_maxVert(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
bool result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxVert",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (bool)((ob::OBClient const *)arg1)->maxVert();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_maxHorz(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
bool result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_maxHorz",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (bool)((ob::OBClient const *)arg1)->maxHorz();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-01-03 18:21:28 +00:00
|
|
|
static PyObject *_wrap_OBClient_layer(PyObject *self, PyObject *args) {
|
2002-12-24 23:31:38 +00:00
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
2003-01-03 18:21:28 +00:00
|
|
|
int result;
|
2002-12-24 23:31:38 +00:00
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
2003-01-03 18:21:28 +00:00
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_layer",&obj0)) goto fail;
|
2002-12-24 23:31:38 +00:00
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
2003-01-03 18:21:28 +00:00
|
|
|
result = (int)((ob::OBClient const *)arg1)->layer();
|
2002-12-24 23:31:38 +00:00
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_toggleClientBorder(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
bool arg2 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_toggleClientBorder",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
arg2 = (bool) PyInt_AsLong(obj1);
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
|
|
(arg1)->toggleClientBorder(arg2);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_area(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
otk::Rect *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_area",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
{
|
|
|
|
otk::Rect const &_result_ref = ((ob::OBClient const *)arg1)->area();
|
|
|
|
result = (otk::Rect *) &_result_ref;
|
|
|
|
}
|
|
|
|
|
|
|
|
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_otk__Rect, 0);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_move(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
int arg2 ;
|
|
|
|
int arg3 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"Oii:OBClient_move",&obj0,&arg2,&arg3)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
(arg1)->move(arg2,arg3);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_resize(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
int arg2 ;
|
|
|
|
int arg3 ;
|
|
|
|
int arg4 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"Oiii:OBClient_resize",&obj0,&arg2,&arg3,&arg4)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
(arg1)->resize((ob::OBClient::Corner )arg2,arg3,arg4);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-25 05:46:02 +00:00
|
|
|
static PyObject *_wrap_OBClient_close(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_close",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
(arg1)->close();
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-25 22:02:34 +00:00
|
|
|
static PyObject *_wrap_OBClient_focus(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
bool result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_focus",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
result = (bool)(arg1)->focus();
|
|
|
|
|
|
|
|
resultobj = PyInt_FromLong((long)result);
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-26 18:15:23 +00:00
|
|
|
static PyObject *_wrap_OBClient_unfocus(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:OBClient_unfocus",&obj0)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
(arg1)->unfocus();
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-25 22:02:34 +00:00
|
|
|
static PyObject *_wrap_OBClient_focusHandler(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
XFocusChangeEvent *arg2 = 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_focusHandler",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if (arg2 == NULL) {
|
|
|
|
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
|
|
|
|
}
|
|
|
|
(arg1)->focusHandler((XFocusChangeEvent const &)*arg2);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_unfocusHandler(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
XFocusChangeEvent *arg2 = 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unfocusHandler",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XFocusChangeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if (arg2 == NULL) {
|
|
|
|
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
|
|
|
|
}
|
|
|
|
(arg1)->unfocusHandler((XFocusChangeEvent const &)*arg2);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-24 23:31:38 +00:00
|
|
|
static PyObject *_wrap_OBClient_propertyHandler(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
XPropertyEvent *arg2 = 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_propertyHandler",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XPropertyEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if (arg2 == NULL) {
|
|
|
|
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
|
|
|
|
}
|
|
|
|
(arg1)->propertyHandler((XPropertyEvent const &)*arg2);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_clientMessageHandler(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
XClientMessageEvent *arg2 = 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_clientMessageHandler",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XClientMessageEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if (arg2 == NULL) {
|
|
|
|
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
|
|
|
|
}
|
|
|
|
(arg1)->clientMessageHandler((XClientMessageEvent const &)*arg2);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_shapeHandler(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
XShapeEvent *arg2 = 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_shapeHandler",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XShapeEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if (arg2 == NULL) {
|
|
|
|
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
|
|
|
|
}
|
|
|
|
(arg1)->shapeHandler((XShapeEvent const &)*arg2);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_configureRequestHandler(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
XConfigureRequestEvent *arg2 = 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_configureRequestHandler",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XConfigureRequestEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if (arg2 == NULL) {
|
|
|
|
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
|
|
|
|
}
|
|
|
|
(arg1)->configureRequestHandler((XConfigureRequestEvent const &)*arg2);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_unmapHandler(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
XUnmapEvent *arg2 = 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_unmapHandler",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XUnmapEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if (arg2 == NULL) {
|
|
|
|
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
|
|
|
|
}
|
|
|
|
(arg1)->unmapHandler((XUnmapEvent const &)*arg2);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_OBClient_destroyHandler(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
XDestroyWindowEvent *arg2 = 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_destroyHandler",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XDestroyWindowEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if (arg2 == NULL) {
|
|
|
|
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
|
|
|
|
}
|
|
|
|
(arg1)->destroyHandler((XDestroyWindowEvent const &)*arg2);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-27 08:52:16 +00:00
|
|
|
static PyObject *_wrap_OBClient_reparentHandler(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
ob::OBClient *arg1 = (ob::OBClient *) 0 ;
|
|
|
|
XReparentEvent *arg2 = 0 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj1 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OO:OBClient_reparentHandler",&obj0,&obj1)) goto fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ob__OBClient,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_XReparentEvent,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
|
|
|
if (arg2 == NULL) {
|
|
|
|
PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
|
|
|
|
}
|
|
|
|
(arg1)->reparentHandler((XReparentEvent const &)*arg2);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-24 23:31:38 +00:00
|
|
|
static PyObject * OBClient_swigregister(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *obj;
|
|
|
|
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
|
|
|
|
SWIG_TypeClientData(SWIGTYPE_p_ob__OBClient, obj);
|
|
|
|
Py_INCREF(obj);
|
|
|
|
return Py_BuildValue((char *)"");
|
|
|
|
}
|
2003-01-03 02:48:25 +00:00
|
|
|
static PyObject *_wrap_mbind(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
std::string *arg1 = 0 ;
|
|
|
|
int arg2 ;
|
|
|
|
int arg3 ;
|
|
|
|
PyObject *arg4 = (PyObject *) 0 ;
|
|
|
|
PyObject *result;
|
|
|
|
std::string temp1 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj3 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OiiO:mbind",&obj0,&arg2,&arg3,&obj3)) goto fail;
|
|
|
|
{
|
|
|
|
if (PyString_Check(obj0)) {
|
|
|
|
temp1 = std::string(PyString_AsString(obj0));
|
|
|
|
arg1 = &temp1;
|
|
|
|
}else {
|
|
|
|
SWIG_exception(SWIG_TypeError, "string expected");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
arg4 = obj3;
|
|
|
|
result = (PyObject *)ob::mbind((std::string const &)*arg1,(ob::MouseContext )arg2,(ob::MouseAction )arg3,arg4);
|
|
|
|
|
|
|
|
resultobj = result;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_kbind(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
PyObject *arg1 = (PyObject *) 0 ;
|
|
|
|
int arg2 ;
|
|
|
|
PyObject *arg3 = (PyObject *) 0 ;
|
|
|
|
PyObject *result;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
PyObject * obj2 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"OiO:kbind",&obj0,&arg2,&obj2)) goto fail;
|
|
|
|
arg1 = obj0;
|
|
|
|
arg3 = obj2;
|
|
|
|
result = (PyObject *)ob::kbind(arg1,(ob::KeyContext )arg2,arg3);
|
|
|
|
|
|
|
|
resultobj = result;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2003-01-03 21:36:09 +00:00
|
|
|
static PyObject *_wrap_ebind(PyObject *self, PyObject *args) {
|
2003-01-03 02:48:25 +00:00
|
|
|
PyObject *resultobj;
|
2003-01-03 21:36:09 +00:00
|
|
|
int arg1 ;
|
|
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
2003-01-03 02:48:25 +00:00
|
|
|
PyObject *result;
|
2003-01-03 21:36:09 +00:00
|
|
|
PyObject * obj1 = 0 ;
|
2003-01-03 02:48:25 +00:00
|
|
|
|
2003-01-03 21:36:09 +00:00
|
|
|
if(!PyArg_ParseTuple(args,(char *)"iO:ebind",&arg1,&obj1)) goto fail;
|
|
|
|
arg2 = obj1;
|
|
|
|
result = (PyObject *)ob::ebind((ob::EventAction )arg1,arg2);
|
2003-01-03 02:48:25 +00:00
|
|
|
|
|
|
|
resultobj = result;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static PyObject *_wrap_set_reset_key(PyObject *self, PyObject *args) {
|
|
|
|
PyObject *resultobj;
|
|
|
|
std::string *arg1 = 0 ;
|
|
|
|
std::string temp1 ;
|
|
|
|
PyObject * obj0 = 0 ;
|
|
|
|
|
|
|
|
if(!PyArg_ParseTuple(args,(char *)"O:set_reset_key",&obj0)) goto fail;
|
|
|
|
{
|
|
|
|
if (PyString_Check(obj0)) {
|
|
|
|
temp1 = std::string(PyString_AsString(obj0));
|
|
|
|
arg1 = &temp1;
|
|
|
|
}else {
|
|
|
|
SWIG_exception(SWIG_TypeError, "string expected");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ob::set_reset_key((std::string const &)*arg1);
|
|
|
|
|
|
|
|
Py_INCREF(Py_None); resultobj = Py_None;
|
|
|
|
return resultobj;
|
|
|
|
fail:
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-12-24 23:31:38 +00:00
|
|
|
static PyMethodDef SwigMethods[] = {
|
2002-12-25 02:19:49 +00:00
|
|
|
{ (char *)"Openbox_instance", _wrap_Openbox_instance, METH_VARARGS },
|
2002-12-24 23:31:38 +00:00
|
|
|
{ (char *)"Cursors_session_set", _wrap_Cursors_session_set, METH_VARARGS },
|
|
|
|
{ (char *)"Cursors_session_get", _wrap_Cursors_session_get, METH_VARARGS },
|
|
|
|
{ (char *)"Cursors_move_set", _wrap_Cursors_move_set, METH_VARARGS },
|
|
|
|
{ (char *)"Cursors_move_get", _wrap_Cursors_move_get, METH_VARARGS },
|
|
|
|
{ (char *)"Cursors_ll_angle_set", _wrap_Cursors_ll_angle_set, METH_VARARGS },
|
|
|
|
{ (char *)"Cursors_ll_angle_get", _wrap_Cursors_ll_angle_get, METH_VARARGS },
|
|
|
|
{ (char *)"Cursors_lr_angle_set", _wrap_Cursors_lr_angle_set, METH_VARARGS },
|
|
|
|
{ (char *)"Cursors_lr_angle_get", _wrap_Cursors_lr_angle_get, METH_VARARGS },
|
|
|
|
{ (char *)"Cursors_ul_angle_set", _wrap_Cursors_ul_angle_set, METH_VARARGS },
|
|
|
|
{ (char *)"Cursors_ul_angle_get", _wrap_Cursors_ul_angle_get, METH_VARARGS },
|
|
|
|
{ (char *)"Cursors_ur_angle_set", _wrap_Cursors_ur_angle_set, METH_VARARGS },
|
|
|
|
{ (char *)"Cursors_ur_angle_get", _wrap_Cursors_ur_angle_get, METH_VARARGS },
|
|
|
|
{ (char *)"Cursors_swigregister", Cursors_swigregister, METH_VARARGS },
|
|
|
|
{ (char *)"Openbox_state", _wrap_Openbox_state, METH_VARARGS },
|
|
|
|
{ (char *)"Openbox_timerManager", _wrap_Openbox_timerManager, METH_VARARGS },
|
|
|
|
{ (char *)"Openbox_property", _wrap_Openbox_property, METH_VARARGS },
|
2003-01-02 20:36:14 +00:00
|
|
|
{ (char *)"Openbox_actions", _wrap_Openbox_actions, METH_VARARGS },
|
2002-12-30 06:31:45 +00:00
|
|
|
{ (char *)"Openbox_bindings", _wrap_Openbox_bindings, METH_VARARGS },
|
2002-12-24 23:31:38 +00:00
|
|
|
{ (char *)"Openbox_screen", _wrap_Openbox_screen, METH_VARARGS },
|
2002-12-25 02:19:49 +00:00
|
|
|
{ (char *)"Openbox_screenCount", _wrap_Openbox_screenCount, METH_VARARGS },
|
2002-12-24 23:31:38 +00:00
|
|
|
{ (char *)"Openbox_cursors", _wrap_Openbox_cursors, METH_VARARGS },
|
|
|
|
{ (char *)"Openbox_addClient", _wrap_Openbox_addClient, METH_VARARGS },
|
|
|
|
{ (char *)"Openbox_removeClient", _wrap_Openbox_removeClient, METH_VARARGS },
|
|
|
|
{ (char *)"Openbox_findClient", _wrap_Openbox_findClient, METH_VARARGS },
|
2002-12-25 22:02:34 +00:00
|
|
|
{ (char *)"Openbox_focusedClient", _wrap_Openbox_focusedClient, METH_VARARGS },
|
|
|
|
{ (char *)"Openbox_setFocusedClient", _wrap_Openbox_setFocusedClient, METH_VARARGS },
|
|
|
|
{ (char *)"Openbox_focusedScreen", _wrap_Openbox_focusedScreen, METH_VARARGS },
|
2002-12-24 23:31:38 +00:00
|
|
|
{ (char *)"Openbox_shutdown", _wrap_Openbox_shutdown, METH_VARARGS },
|
2003-01-03 16:06:10 +00:00
|
|
|
{ (char *)"Openbox_execute", _wrap_Openbox_execute, METH_VARARGS },
|
2002-12-24 23:31:38 +00:00
|
|
|
{ (char *)"Openbox_swigregister", Openbox_swigregister, METH_VARARGS },
|
2002-12-25 02:19:49 +00:00
|
|
|
{ (char *)"OBScreen_client", _wrap_OBScreen_client, METH_VARARGS },
|
|
|
|
{ (char *)"OBScreen_clientCount", _wrap_OBScreen_clientCount, METH_VARARGS },
|
2002-12-24 23:31:38 +00:00
|
|
|
{ (char *)"OBScreen_managed", _wrap_OBScreen_managed, METH_VARARGS },
|
|
|
|
{ (char *)"OBScreen_imageControl", _wrap_OBScreen_imageControl, METH_VARARGS },
|
|
|
|
{ (char *)"OBScreen_area", _wrap_OBScreen_area, METH_VARARGS },
|
|
|
|
{ (char *)"OBScreen_style", _wrap_OBScreen_style, METH_VARARGS },
|
2002-12-25 22:02:34 +00:00
|
|
|
{ (char *)"OBScreen_focuswindow", _wrap_OBScreen_focuswindow, METH_VARARGS },
|
2002-12-24 23:31:38 +00:00
|
|
|
{ (char *)"OBScreen_addStrut", _wrap_OBScreen_addStrut, METH_VARARGS },
|
|
|
|
{ (char *)"OBScreen_removeStrut", _wrap_OBScreen_removeStrut, METH_VARARGS },
|
|
|
|
{ (char *)"OBScreen_manageExisting", _wrap_OBScreen_manageExisting, METH_VARARGS },
|
|
|
|
{ (char *)"OBScreen_manageWindow", _wrap_OBScreen_manageWindow, METH_VARARGS },
|
|
|
|
{ (char *)"OBScreen_unmanageWindow", _wrap_OBScreen_unmanageWindow, METH_VARARGS },
|
2003-01-03 18:25:04 +00:00
|
|
|
{ (char *)"OBScreen_restack", _wrap_OBScreen_restack, METH_VARARGS },
|
2002-12-24 23:31:38 +00:00
|
|
|
{ (char *)"OBScreen_swigregister", OBScreen_swigregister, METH_VARARGS },
|
|
|
|
{ (char *)"MwmHints_flags_set", _wrap_MwmHints_flags_set, METH_VARARGS },
|
|
|
|
{ (char *)"MwmHints_flags_get", _wrap_MwmHints_flags_get, METH_VARARGS },
|
|
|
|
{ (char *)"MwmHints_functions_set", _wrap_MwmHints_functions_set, METH_VARARGS },
|
|
|
|
{ (char *)"MwmHints_functions_get", _wrap_MwmHints_functions_get, METH_VARARGS },
|
|
|
|
{ (char *)"MwmHints_decorations_set", _wrap_MwmHints_decorations_set, METH_VARARGS },
|
|
|
|
{ (char *)"MwmHints_decorations_get", _wrap_MwmHints_decorations_get, METH_VARARGS },
|
|
|
|
{ (char *)"MwmHints_swigregister", MwmHints_swigregister, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_frame_set", _wrap_OBClient_frame_set, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_frame_get", _wrap_OBClient_frame_get, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_ignore_unmaps_set", _wrap_OBClient_ignore_unmaps_set, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_ignore_unmaps_get", _wrap_OBClient_ignore_unmaps_get, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_screen", _wrap_OBClient_screen, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_window", _wrap_OBClient_window, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_type", _wrap_OBClient_type, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_desktop", _wrap_OBClient_desktop, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_title", _wrap_OBClient_title, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_iconTitle", _wrap_OBClient_iconTitle, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_appName", _wrap_OBClient_appName, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_appClass", _wrap_OBClient_appClass, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_canFocus", _wrap_OBClient_canFocus, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_urgent", _wrap_OBClient_urgent, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_focusNotify", _wrap_OBClient_focusNotify, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_shaped", _wrap_OBClient_shaped, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_gravity", _wrap_OBClient_gravity, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_positionRequested", _wrap_OBClient_positionRequested, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_decorations", _wrap_OBClient_decorations, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_funtions", _wrap_OBClient_funtions, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_modal", _wrap_OBClient_modal, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_shaded", _wrap_OBClient_shaded, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_iconic", _wrap_OBClient_iconic, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_maxVert", _wrap_OBClient_maxVert, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_maxHorz", _wrap_OBClient_maxHorz, METH_VARARGS },
|
2003-01-03 18:21:28 +00:00
|
|
|
{ (char *)"OBClient_layer", _wrap_OBClient_layer, METH_VARARGS },
|
2002-12-24 23:31:38 +00:00
|
|
|
{ (char *)"OBClient_toggleClientBorder", _wrap_OBClient_toggleClientBorder, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_area", _wrap_OBClient_area, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_move", _wrap_OBClient_move, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_resize", _wrap_OBClient_resize, METH_VARARGS },
|
2002-12-25 05:46:02 +00:00
|
|
|
{ (char *)"OBClient_close", _wrap_OBClient_close, METH_VARARGS },
|
2002-12-25 22:02:34 +00:00
|
|
|
{ (char *)"OBClient_focus", _wrap_OBClient_focus, METH_VARARGS },
|
2002-12-26 18:15:23 +00:00
|
|
|
{ (char *)"OBClient_unfocus", _wrap_OBClient_unfocus, METH_VARARGS },
|
2002-12-25 22:02:34 +00:00
|
|
|
{ (char *)"OBClient_focusHandler", _wrap_OBClient_focusHandler, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_unfocusHandler", _wrap_OBClient_unfocusHandler, METH_VARARGS },
|
2002-12-24 23:31:38 +00:00
|
|
|
{ (char *)"OBClient_propertyHandler", _wrap_OBClient_propertyHandler, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_clientMessageHandler", _wrap_OBClient_clientMessageHandler, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_shapeHandler", _wrap_OBClient_shapeHandler, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_configureRequestHandler", _wrap_OBClient_configureRequestHandler, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_unmapHandler", _wrap_OBClient_unmapHandler, METH_VARARGS },
|
|
|
|
{ (char *)"OBClient_destroyHandler", _wrap_OBClient_destroyHandler, METH_VARARGS },
|
2002-12-27 08:52:16 +00:00
|
|
|
{ (char *)"OBClient_reparentHandler", _wrap_OBClient_reparentHandler, METH_VARARGS },
|
2002-12-24 23:31:38 +00:00
|
|
|
{ (char *)"OBClient_swigregister", OBClient_swigregister, METH_VARARGS },
|
2003-01-03 02:48:25 +00:00
|
|
|
{ (char *)"mbind", _wrap_mbind, METH_VARARGS },
|
|
|
|
{ (char *)"kbind", _wrap_kbind, METH_VARARGS },
|
2003-01-03 21:36:09 +00:00
|
|
|
{ (char *)"ebind", _wrap_ebind, METH_VARARGS },
|
2003-01-03 02:48:25 +00:00
|
|
|
{ (char *)"set_reset_key", _wrap_set_reset_key, METH_VARARGS },
|
2002-12-24 23:31:38 +00:00
|
|
|
{ NULL, NULL }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
|
|
|
|
|
2003-01-02 20:36:14 +00:00
|
|
|
static void *_p_ob__OBActionsTo_p_otk__OtkEventHandler(void *x) {
|
|
|
|
return (void *)((otk::OtkEventHandler *) ((ob::OBActions *) x));
|
|
|
|
}
|
2002-12-24 23:31:38 +00:00
|
|
|
static void *_p_ob__OpenboxTo_p_otk__OtkEventHandler(void *x) {
|
|
|
|
return (void *)((otk::OtkEventHandler *) ((ob::Openbox *) x));
|
|
|
|
}
|
|
|
|
static void *_p_ob__OBClientTo_p_otk__OtkEventHandler(void *x) {
|
|
|
|
return (void *)((otk::OtkEventHandler *) ((ob::OBClient *) x));
|
|
|
|
}
|
|
|
|
static void *_p_ob__OBClientTo_p_ob__OBWidget(void *x) {
|
|
|
|
return (void *)((ob::OBWidget *) ((ob::OBClient *) x));
|
|
|
|
}
|
|
|
|
static void *_p_ob__OpenboxTo_p_otk__OtkEventDispatcher(void *x) {
|
|
|
|
return (void *)((otk::OtkEventDispatcher *) ((ob::Openbox *) x));
|
|
|
|
}
|
|
|
|
static swig_type_info _swigt__p_otk__OBTimerQueueManager[] = {{"_p_otk__OBTimerQueueManager", 0, "otk::OBTimerQueueManager *", 0},{"_p_otk__OBTimerQueueManager"},{0}};
|
2003-01-02 20:36:14 +00:00
|
|
|
static swig_type_info _swigt__p_ob__OBActions[] = {{"_p_ob__OBActions", 0, "ob::OBActions *", 0},{"_p_ob__OBActions"},{0}};
|
2002-12-24 23:31:38 +00:00
|
|
|
static swig_type_info _swigt__p_ob__Cursors[] = {{"_p_ob__Cursors", 0, "ob::Cursors *", 0},{"_p_ob__Cursors"},{0}};
|
|
|
|
static swig_type_info _swigt__p_ob__OBScreen[] = {{"_p_ob__OBScreen", 0, "ob::OBScreen *", 0},{"_p_ob__OBScreen"},{0}};
|
|
|
|
static swig_type_info _swigt__p_otk__Style[] = {{"_p_otk__Style", 0, "otk::Style *", 0},{"_p_otk__Style"},{0}};
|
|
|
|
static swig_type_info _swigt__p_ob__OBFrame[] = {{"_p_ob__OBFrame", 0, "ob::OBFrame *", 0},{"_p_ob__OBFrame"},{0}};
|
2002-12-27 08:52:16 +00:00
|
|
|
static swig_type_info _swigt__p_XReparentEvent[] = {{"_p_XReparentEvent", 0, "XReparentEvent *", 0},{"_p_XReparentEvent"},{0}};
|
2002-12-24 23:31:38 +00:00
|
|
|
static swig_type_info _swigt__p_ob__OBClient[] = {{"_p_ob__OBClient", 0, "ob::OBClient *", 0},{"_p_ob__OBClient"},{0}};
|
|
|
|
static swig_type_info _swigt__p_ob__Openbox[] = {{"_p_ob__Openbox", 0, "ob::Openbox *", 0},{"_p_ob__Openbox"},{0}};
|
|
|
|
static swig_type_info _swigt__p_otk__Strut[] = {{"_p_otk__Strut", 0, "otk::Strut *", 0},{"_p_otk__Strut"},{0}};
|
|
|
|
static swig_type_info _swigt__p_XShapeEvent[] = {{"_p_XShapeEvent", 0, "XShapeEvent *", 0},{"_p_XShapeEvent"},{0}};
|
|
|
|
static swig_type_info _swigt__p_XConfigureRequestEvent[] = {{"_p_XConfigureRequestEvent", 0, "XConfigureRequestEvent *", 0},{"_p_XConfigureRequestEvent"},{0}};
|
2003-01-02 20:36:14 +00:00
|
|
|
static swig_type_info _swigt__p_otk__OtkEventHandler[] = {{"_p_otk__OtkEventHandler", 0, "otk::OtkEventHandler *", 0},{"_p_ob__OBActions", _p_ob__OBActionsTo_p_otk__OtkEventHandler},{"_p_otk__OtkEventHandler"},{"_p_ob__Openbox", _p_ob__OpenboxTo_p_otk__OtkEventHandler},{"_p_ob__OBClient", _p_ob__OBClientTo_p_otk__OtkEventHandler},{0}};
|
2003-01-03 00:26:36 +00:00
|
|
|
static swig_type_info _swigt__p_otk__Rect[] = {{"_p_otk__Rect", 0, "otk::Rect *", 0},{"_p_otk__Rect"},{0}};
|
2003-01-03 02:48:25 +00:00
|
|
|
static swig_type_info _swigt__p_ob__OBWidget[] = {{"_p_ob__OBWidget", 0, "ob::OBWidget *", 0},{"_p_ob__OBWidget"},{"_p_ob__OBClient", _p_ob__OBClientTo_p_ob__OBWidget},{0}};
|
2002-12-25 22:02:34 +00:00
|
|
|
static swig_type_info _swigt__p_XFocusChangeEvent[] = {{"_p_XFocusChangeEvent", 0, "XFocusChangeEvent *", 0},{"_p_XFocusChangeEvent"},{0}};
|
2002-12-24 23:31:38 +00:00
|
|
|
static swig_type_info _swigt__p_XClientMessageEvent[] = {{"_p_XClientMessageEvent", 0, "XClientMessageEvent *", 0},{"_p_XClientMessageEvent"},{0}};
|
|
|
|
static swig_type_info _swigt__p_otk__OBProperty[] = {{"_p_otk__OBProperty", 0, "otk::OBProperty *", 0},{"_p_otk__OBProperty"},{0}};
|
|
|
|
static swig_type_info _swigt__p_otk__OtkEventDispatcher[] = {{"_p_otk__OtkEventDispatcher", 0, "otk::OtkEventDispatcher *", 0},{"_p_otk__OtkEventDispatcher"},{"_p_ob__Openbox", _p_ob__OpenboxTo_p_otk__OtkEventDispatcher},{0}};
|
|
|
|
static swig_type_info _swigt__p_XPropertyEvent[] = {{"_p_XPropertyEvent", 0, "XPropertyEvent *", 0},{"_p_XPropertyEvent"},{0}};
|
|
|
|
static swig_type_info _swigt__p_XDestroyWindowEvent[] = {{"_p_XDestroyWindowEvent", 0, "XDestroyWindowEvent *", 0},{"_p_XDestroyWindowEvent"},{0}};
|
2003-01-02 20:36:14 +00:00
|
|
|
static swig_type_info _swigt__p_otk__BImageControl[] = {{"_p_otk__BImageControl", 0, "otk::BImageControl *", 0},{"_p_otk__BImageControl"},{0}};
|
2003-01-03 02:48:25 +00:00
|
|
|
static swig_type_info _swigt__p_PyObject[] = {{"_p_PyObject", 0, "PyObject *", 0},{"_p_PyObject"},{0}};
|
2002-12-30 06:31:45 +00:00
|
|
|
static swig_type_info _swigt__p_ob__OBBindings[] = {{"_p_ob__OBBindings", 0, "ob::OBBindings *", 0},{"_p_ob__OBBindings"},{0}};
|
2002-12-24 23:31:38 +00:00
|
|
|
static swig_type_info _swigt__p_ob__MwmHints[] = {{"_p_ob__MwmHints", 0, "ob::MwmHints *", 0},{"_p_ob__MwmHints"},{0}};
|
|
|
|
static swig_type_info _swigt__p_XUnmapEvent[] = {{"_p_XUnmapEvent", 0, "XUnmapEvent *", 0},{"_p_XUnmapEvent"},{0}};
|
|
|
|
|
|
|
|
static swig_type_info *swig_types_initial[] = {
|
|
|
|
_swigt__p_otk__OBTimerQueueManager,
|
2003-01-02 20:36:14 +00:00
|
|
|
_swigt__p_ob__OBActions,
|
2002-12-24 23:31:38 +00:00
|
|
|
_swigt__p_ob__Cursors,
|
|
|
|
_swigt__p_ob__OBScreen,
|
|
|
|
_swigt__p_otk__Style,
|
|
|
|
_swigt__p_ob__OBFrame,
|
2002-12-27 08:52:16 +00:00
|
|
|
_swigt__p_XReparentEvent,
|
2002-12-24 23:31:38 +00:00
|
|
|
_swigt__p_ob__OBClient,
|
|
|
|
_swigt__p_ob__Openbox,
|
|
|
|
_swigt__p_otk__Strut,
|
|
|
|
_swigt__p_XShapeEvent,
|
|
|
|
_swigt__p_XConfigureRequestEvent,
|
|
|
|
_swigt__p_otk__OtkEventHandler,
|
2003-01-03 00:26:36 +00:00
|
|
|
_swigt__p_otk__Rect,
|
2003-01-03 02:48:25 +00:00
|
|
|
_swigt__p_ob__OBWidget,
|
2002-12-25 22:02:34 +00:00
|
|
|
_swigt__p_XFocusChangeEvent,
|
2002-12-24 23:31:38 +00:00
|
|
|
_swigt__p_XClientMessageEvent,
|
|
|
|
_swigt__p_otk__OBProperty,
|
|
|
|
_swigt__p_otk__OtkEventDispatcher,
|
|
|
|
_swigt__p_XPropertyEvent,
|
|
|
|
_swigt__p_XDestroyWindowEvent,
|
2003-01-02 20:36:14 +00:00
|
|
|
_swigt__p_otk__BImageControl,
|
2003-01-03 02:48:25 +00:00
|
|
|
_swigt__p_PyObject,
|
2002-12-30 06:31:45 +00:00
|
|
|
_swigt__p_ob__OBBindings,
|
2002-12-24 23:31:38 +00:00
|
|
|
_swigt__p_ob__MwmHints,
|
|
|
|
_swigt__p_XUnmapEvent,
|
|
|
|
0
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
|
|
|
|
|
|
|
|
static swig_const_info swig_const_table[] = {
|
|
|
|
{ SWIG_PY_INT, (char *)"Openbox_State_Starting", (long) ob::Openbox::State_Starting, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Openbox_State_Normal", (long) ob::Openbox::State_Normal, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Openbox_State_Exiting", (long) ob::Openbox::State_Exiting, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBScreen_event_mask", (long) ob::OBScreen::event_mask, 0, 0, 0},
|
2003-01-03 18:21:28 +00:00
|
|
|
{ SWIG_PY_INT, (char *)"OBScreen_Layer_Icon", (long) ob::OBScreen::Layer_Icon, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBScreen_Layer_Desktop", (long) ob::OBScreen::Layer_Desktop, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBScreen_Layer_Below", (long) ob::OBScreen::Layer_Below, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBScreen_Layer_Normal", (long) ob::OBScreen::Layer_Normal, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBScreen_Layer_Above", (long) ob::OBScreen::Layer_Above, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBScreen_Layer_Top", (long) ob::OBScreen::Layer_Top, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBScreen_Layer_Fullscreen", (long) ob::OBScreen::Layer_Fullscreen, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBScreen_Layer_Internal", (long) ob::OBScreen::Layer_Internal, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBScreen_NUM_LAYERS", (long) ob::OBScreen::NUM_LAYERS, 0, 0, 0},
|
2002-12-24 23:31:38 +00:00
|
|
|
{ SWIG_PY_INT, (char *)"MwmHints_elements", (long) ob::MwmHints::elements, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_TopLeft", (long) ob::OBClient::TopLeft, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_TopRight", (long) ob::OBClient::TopRight, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_BottomLeft", (long) ob::OBClient::BottomLeft, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_BottomRight", (long) ob::OBClient::BottomRight, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Type_Desktop", (long) ob::OBClient::Type_Desktop, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Type_Dock", (long) ob::OBClient::Type_Dock, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Type_Toolbar", (long) ob::OBClient::Type_Toolbar, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Type_Menu", (long) ob::OBClient::Type_Menu, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Type_Utility", (long) ob::OBClient::Type_Utility, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Type_Splash", (long) ob::OBClient::Type_Splash, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Type_Dialog", (long) ob::OBClient::Type_Dialog, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Type_Normal", (long) ob::OBClient::Type_Normal, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_MwmFlag_Functions", (long) ob::OBClient::MwmFlag_Functions, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_MwmFlag_Decorations", (long) ob::OBClient::MwmFlag_Decorations, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_MwmFunc_All", (long) ob::OBClient::MwmFunc_All, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_MwmFunc_Resize", (long) ob::OBClient::MwmFunc_Resize, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_MwmFunc_Move", (long) ob::OBClient::MwmFunc_Move, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_MwmFunc_Iconify", (long) ob::OBClient::MwmFunc_Iconify, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_MwmFunc_Maximize", (long) ob::OBClient::MwmFunc_Maximize, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_MwmDecor_All", (long) ob::OBClient::MwmDecor_All, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_MwmDecor_Border", (long) ob::OBClient::MwmDecor_Border, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_MwmDecor_Handle", (long) ob::OBClient::MwmDecor_Handle, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_MwmDecor_Title", (long) ob::OBClient::MwmDecor_Title, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_MwmDecor_Iconify", (long) ob::OBClient::MwmDecor_Iconify, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_MwmDecor_Maximize", (long) ob::OBClient::MwmDecor_Maximize, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Func_Resize", (long) ob::OBClient::Func_Resize, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Func_Move", (long) ob::OBClient::Func_Move, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Func_Iconify", (long) ob::OBClient::Func_Iconify, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Func_Maximize", (long) ob::OBClient::Func_Maximize, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Func_Close", (long) ob::OBClient::Func_Close, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Decor_Titlebar", (long) ob::OBClient::Decor_Titlebar, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Decor_Handle", (long) ob::OBClient::Decor_Handle, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Decor_Border", (long) ob::OBClient::Decor_Border, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Decor_Iconify", (long) ob::OBClient::Decor_Iconify, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Decor_Maximize", (long) ob::OBClient::Decor_Maximize, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Decor_Sticky", (long) ob::OBClient::Decor_Sticky, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_Decor_Close", (long) ob::OBClient::Decor_Close, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_State_Remove", (long) ob::OBClient::State_Remove, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_State_Add", (long) ob::OBClient::State_Add, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_State_Toggle", (long) ob::OBClient::State_Toggle, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_event_mask", (long) ob::OBClient::event_mask, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OBClient_no_propagate_mask", (long) ob::OBClient::no_propagate_mask, 0, 0, 0},
|
2003-01-03 02:48:25 +00:00
|
|
|
{ SWIG_PY_INT, (char *)"MC_Frame", (long) ob::MC_Frame, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MC_Titlebar", (long) ob::MC_Titlebar, 0, 0, 0},
|
2003-01-03 05:26:04 +00:00
|
|
|
{ SWIG_PY_INT, (char *)"MC_Handle", (long) ob::MC_Handle, 0, 0, 0},
|
2003-01-03 02:48:25 +00:00
|
|
|
{ SWIG_PY_INT, (char *)"MC_Window", (long) ob::MC_Window, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MC_MaximizeButton", (long) ob::MC_MaximizeButton, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MC_CloseButton", (long) ob::MC_CloseButton, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MC_IconifyButton", (long) ob::MC_IconifyButton, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MC_StickyButton", (long) ob::MC_StickyButton, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MC_Grip", (long) ob::MC_Grip, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MC_Root", (long) ob::MC_Root, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MC_MenuItem", (long) ob::MC_MenuItem, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NUM_MOUSE_CONTEXT", (long) ob::NUM_MOUSE_CONTEXT, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MousePress", (long) ob::MousePress, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MouseClick", (long) ob::MouseClick, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MouseDoubleClick", (long) ob::MouseDoubleClick, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MouseMotion", (long) ob::MouseMotion, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NUM_MOUSE_ACTION", (long) ob::NUM_MOUSE_ACTION, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"KC_Menu", (long) ob::KC_Menu, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"KC_All", (long) ob::KC_All, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NUM_KEY_CONTEXT", (long) ob::NUM_KEY_CONTEXT, 0, 0, 0},
|
2003-01-03 21:36:09 +00:00
|
|
|
{ SWIG_PY_INT, (char *)"EventEnterWindow", (long) ob::EventEnterWindow, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"EventLeaveWindow", (long) ob::EventLeaveWindow, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"EventNewWindow", (long) ob::EventNewWindow, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"EventCloseWindow", (long) ob::EventCloseWindow, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NUM_EVENTS", (long) ob::NUM_EVENTS, 0, 0, 0},
|
2002-12-25 02:19:49 +00:00
|
|
|
{ SWIG_PY_INT, (char *)"X_PROTOCOL", (long) 11, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"X_PROTOCOL_REVISION", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"None", (long) 0L, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ParentRelative", (long) 1L, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CopyFromParent", (long) 0L, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"PointerWindow", (long) 0L, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"InputFocus", (long) 1L, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"PointerRoot", (long) 1L, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"AnyPropertyType", (long) 0L, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"AnyKey", (long) 0L, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"AnyButton", (long) 0L, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"AllTemporary", (long) 0L, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CurrentTime", (long) 0L, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NoSymbol", (long) 0L, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NoEventMask", (long) 0L, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"KeyPressMask", (long) (1L<<0), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"KeyReleaseMask", (long) (1L<<1), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ButtonPressMask", (long) (1L<<2), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ButtonReleaseMask", (long) (1L<<3), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"EnterWindowMask", (long) (1L<<4), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"LeaveWindowMask", (long) (1L<<5), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"PointerMotionMask", (long) (1L<<6), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"PointerMotionHintMask", (long) (1L<<7), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Button1MotionMask", (long) (1L<<8), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Button2MotionMask", (long) (1L<<9), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Button3MotionMask", (long) (1L<<10), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Button4MotionMask", (long) (1L<<11), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Button5MotionMask", (long) (1L<<12), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ButtonMotionMask", (long) (1L<<13), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"KeymapStateMask", (long) (1L<<14), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ExposureMask", (long) (1L<<15), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"VisibilityChangeMask", (long) (1L<<16), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"StructureNotifyMask", (long) (1L<<17), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ResizeRedirectMask", (long) (1L<<18), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"SubstructureNotifyMask", (long) (1L<<19), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"SubstructureRedirectMask", (long) (1L<<20), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"FocusChangeMask", (long) (1L<<21), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"PropertyChangeMask", (long) (1L<<22), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ColormapChangeMask", (long) (1L<<23), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"OwnerGrabButtonMask", (long) (1L<<24), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"KeyPress", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"KeyRelease", (long) 3, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ButtonPress", (long) 4, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ButtonRelease", (long) 5, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MotionNotify", (long) 6, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"EnterNotify", (long) 7, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"LeaveNotify", (long) 8, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"FocusIn", (long) 9, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"FocusOut", (long) 10, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"KeymapNotify", (long) 11, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Expose", (long) 12, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GraphicsExpose", (long) 13, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NoExpose", (long) 14, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"VisibilityNotify", (long) 15, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CreateNotify", (long) 16, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"DestroyNotify", (long) 17, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"UnmapNotify", (long) 18, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MapNotify", (long) 19, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MapRequest", (long) 20, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ReparentNotify", (long) 21, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ConfigureNotify", (long) 22, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ConfigureRequest", (long) 23, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GravityNotify", (long) 24, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ResizeRequest", (long) 25, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CirculateNotify", (long) 26, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CirculateRequest", (long) 27, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"PropertyNotify", (long) 28, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"SelectionClear", (long) 29, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"SelectionRequest", (long) 30, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"SelectionNotify", (long) 31, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ColormapNotify", (long) 32, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ClientMessage", (long) 33, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MappingNotify", (long) 34, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"LASTEvent", (long) 35, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ShiftMask", (long) (1<<0), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"LockMask", (long) (1<<1), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ControlMask", (long) (1<<2), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Mod1Mask", (long) (1<<3), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Mod2Mask", (long) (1<<4), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Mod3Mask", (long) (1<<5), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Mod4Mask", (long) (1<<6), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Mod5Mask", (long) (1<<7), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ShiftMapIndex", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"LockMapIndex", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ControlMapIndex", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Mod1MapIndex", (long) 3, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Mod2MapIndex", (long) 4, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Mod3MapIndex", (long) 5, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Mod4MapIndex", (long) 6, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Mod5MapIndex", (long) 7, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Button1Mask", (long) (1<<8), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Button2Mask", (long) (1<<9), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Button3Mask", (long) (1<<10), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Button4Mask", (long) (1<<11), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Button5Mask", (long) (1<<12), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"AnyModifier", (long) (1<<15), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Button1", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Button2", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Button3", (long) 3, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Button4", (long) 4, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Button5", (long) 5, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NotifyNormal", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NotifyGrab", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NotifyUngrab", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NotifyWhileGrabbed", (long) 3, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NotifyHint", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NotifyAncestor", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NotifyVirtual", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NotifyInferior", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NotifyNonlinear", (long) 3, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NotifyNonlinearVirtual", (long) 4, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NotifyPointer", (long) 5, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NotifyPointerRoot", (long) 6, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NotifyDetailNone", (long) 7, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"VisibilityUnobscured", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"VisibilityPartiallyObscured", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"VisibilityFullyObscured", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"PlaceOnTop", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"PlaceOnBottom", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"FamilyInternet", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"FamilyDECnet", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"FamilyChaos", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"PropertyNewValue", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"PropertyDelete", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ColormapUninstalled", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ColormapInstalled", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GrabModeSync", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GrabModeAsync", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GrabSuccess", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"AlreadyGrabbed", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GrabInvalidTime", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GrabNotViewable", (long) 3, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GrabFrozen", (long) 4, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"AsyncPointer", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"SyncPointer", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ReplayPointer", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"AsyncKeyboard", (long) 3, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"SyncKeyboard", (long) 4, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ReplayKeyboard", (long) 5, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"AsyncBoth", (long) 6, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"SyncBoth", (long) 7, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"RevertToParent", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Success", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"BadRequest", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"BadValue", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"BadWindow", (long) 3, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"BadPixmap", (long) 4, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"BadAtom", (long) 5, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"BadCursor", (long) 6, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"BadFont", (long) 7, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"BadMatch", (long) 8, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"BadDrawable", (long) 9, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"BadAccess", (long) 10, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"BadAlloc", (long) 11, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"BadColor", (long) 12, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"BadGC", (long) 13, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"BadIDChoice", (long) 14, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"BadName", (long) 15, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"BadLength", (long) 16, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"BadImplementation", (long) 17, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"FirstExtensionError", (long) 128, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"LastExtensionError", (long) 255, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"InputOutput", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"InputOnly", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWBackPixmap", (long) (1L<<0), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWBackPixel", (long) (1L<<1), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWBorderPixmap", (long) (1L<<2), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWBorderPixel", (long) (1L<<3), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWBitGravity", (long) (1L<<4), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWWinGravity", (long) (1L<<5), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWBackingStore", (long) (1L<<6), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWBackingPlanes", (long) (1L<<7), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWBackingPixel", (long) (1L<<8), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWOverrideRedirect", (long) (1L<<9), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWSaveUnder", (long) (1L<<10), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWEventMask", (long) (1L<<11), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWDontPropagate", (long) (1L<<12), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWColormap", (long) (1L<<13), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWCursor", (long) (1L<<14), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWX", (long) (1<<0), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWY", (long) (1<<1), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWWidth", (long) (1<<2), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWHeight", (long) (1<<3), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWBorderWidth", (long) (1<<4), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWSibling", (long) (1<<5), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CWStackMode", (long) (1<<6), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ForgetGravity", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NorthWestGravity", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NorthGravity", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NorthEastGravity", (long) 3, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"WestGravity", (long) 4, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CenterGravity", (long) 5, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"EastGravity", (long) 6, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"SouthWestGravity", (long) 7, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"SouthGravity", (long) 8, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"SouthEastGravity", (long) 9, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"StaticGravity", (long) 10, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"UnmapGravity", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"NotUseful", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"WhenMapped", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Always", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"IsUnmapped", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"IsUnviewable", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"IsViewable", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"SetModeInsert", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"SetModeDelete", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"DestroyAll", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"RetainPermanent", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"RetainTemporary", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Above", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Below", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"TopIf", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"BottomIf", (long) 3, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Opposite", (long) 4, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"RaiseLowest", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"LowerHighest", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"PropModeReplace", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"PropModePrepend", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"PropModeAppend", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GXclear", (long) 0x0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GXand", (long) 0x1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GXandReverse", (long) 0x2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GXcopy", (long) 0x3, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GXandInverted", (long) 0x4, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GXnoop", (long) 0x5, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GXxor", (long) 0x6, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GXor", (long) 0x7, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GXnor", (long) 0x8, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GXequiv", (long) 0x9, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GXinvert", (long) 0xa, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GXorReverse", (long) 0xb, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GXcopyInverted", (long) 0xc, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GXorInverted", (long) 0xd, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GXnand", (long) 0xe, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GXset", (long) 0xf, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"LineSolid", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"LineOnOffDash", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"LineDoubleDash", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CapNotLast", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CapButt", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CapRound", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CapProjecting", (long) 3, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"JoinMiter", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"JoinRound", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"JoinBevel", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"FillSolid", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"FillTiled", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"FillStippled", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"FillOpaqueStippled", (long) 3, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"EvenOddRule", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"WindingRule", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ClipByChildren", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"IncludeInferiors", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Unsorted", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"YSorted", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"YXSorted", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"YXBanded", (long) 3, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CoordModeOrigin", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CoordModePrevious", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Complex", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Nonconvex", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"Convex", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ArcChord", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ArcPieSlice", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCFunction", (long) (1L<<0), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCPlaneMask", (long) (1L<<1), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCForeground", (long) (1L<<2), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCBackground", (long) (1L<<3), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCLineWidth", (long) (1L<<4), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCLineStyle", (long) (1L<<5), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCCapStyle", (long) (1L<<6), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCJoinStyle", (long) (1L<<7), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCFillStyle", (long) (1L<<8), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCFillRule", (long) (1L<<9), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCTile", (long) (1L<<10), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCStipple", (long) (1L<<11), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCTileStipXOrigin", (long) (1L<<12), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCTileStipYOrigin", (long) (1L<<13), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCFont", (long) (1L<<14), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCSubwindowMode", (long) (1L<<15), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCGraphicsExposures", (long) (1L<<16), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCClipXOrigin", (long) (1L<<17), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCClipYOrigin", (long) (1L<<18), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCClipMask", (long) (1L<<19), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCDashOffset", (long) (1L<<20), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCDashList", (long) (1L<<21), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCArcMode", (long) (1L<<22), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GCLastBit", (long) 22, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"FontLeftToRight", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"FontRightToLeft", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"FontChange", (long) 255, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"XYBitmap", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"XYPixmap", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ZPixmap", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"AllocNone", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"AllocAll", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"DoRed", (long) (1<<0), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"DoGreen", (long) (1<<1), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"DoBlue", (long) (1<<2), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"CursorShape", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"TileShape", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"StippleShape", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"AutoRepeatModeOff", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"AutoRepeatModeOn", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"AutoRepeatModeDefault", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"LedModeOff", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"LedModeOn", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"KBKeyClickPercent", (long) (1L<<0), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"KBBellPercent", (long) (1L<<1), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"KBBellPitch", (long) (1L<<2), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"KBBellDuration", (long) (1L<<3), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"KBLed", (long) (1L<<4), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"KBLedMode", (long) (1L<<5), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"KBKey", (long) (1L<<6), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"KBAutoRepeatMode", (long) (1L<<7), 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MappingSuccess", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MappingBusy", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MappingFailed", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MappingModifier", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MappingKeyboard", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MappingPointer", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"DontPreferBlanking", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"PreferBlanking", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"DefaultBlanking", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"DisableScreenSaver", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"DisableScreenInterval", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"DontAllowExposures", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"AllowExposures", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"DefaultExposures", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ScreenSaverReset", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"ScreenSaverActive", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"HostInsert", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"HostDelete", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"EnableAccess", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"DisableAccess", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"StaticGray", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"GrayScale", (long) 1, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"StaticColor", (long) 2, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"PseudoColor", (long) 3, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"TrueColor", (long) 4, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"DirectColor", (long) 5, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"LSBFirst", (long) 0, 0, 0, 0},
|
|
|
|
{ SWIG_PY_INT, (char *)"MSBFirst", (long) 1, 0, 0, 0},
|
2002-12-24 23:31:38 +00:00
|
|
|
{0}};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
#endif
|
|
|
|
SWIGEXPORT(void) SWIG_init(void) {
|
|
|
|
static PyObject *SWIG_globals = 0;
|
|
|
|
static int typeinit = 0;
|
|
|
|
PyObject *m, *d;
|
|
|
|
int i;
|
|
|
|
if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
|
|
|
|
m = Py_InitModule((char *) SWIG_name, SwigMethods);
|
|
|
|
d = PyModule_GetDict(m);
|
|
|
|
|
|
|
|
if (!typeinit) {
|
|
|
|
for (i = 0; swig_types_initial[i]; i++) {
|
|
|
|
swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
|
|
|
|
}
|
|
|
|
typeinit = 1;
|
|
|
|
}
|
|
|
|
SWIG_InstallConstants(d,swig_const_table);
|
|
|
|
|
|
|
|
}
|
|
|
|
|