git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
61461 lines
2.1 MiB
61461 lines
2.1 MiB
/* ----------------------------------------------------------------------------
|
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
* Version 1.3.29
|
|
*
|
|
* 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
|
|
#define SWIG_PYTHON_DIRECTOR_NO_VTABLE
|
|
|
|
#ifdef __cplusplus
|
|
template<class T> class SwigValueWrapper {
|
|
T *tt;
|
|
public:
|
|
SwigValueWrapper() : tt(0) { }
|
|
SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
|
|
SwigValueWrapper(const T& t) : tt(new T(t)) { }
|
|
~SwigValueWrapper() { delete tt; }
|
|
SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
|
|
operator T&() const { return *tt; }
|
|
T *operator&() { return tt; }
|
|
private:
|
|
SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
|
|
};
|
|
#endif
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* This section contains generic SWIG labels for method/variable
|
|
* declarations/attributes, and other compiler dependent labels.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* template workaround for compilers that cannot correctly implement the C++ standard */
|
|
#ifndef SWIGTEMPLATEDISAMBIGUATOR
|
|
# if defined(__SUNPRO_CC)
|
|
# if (__SUNPRO_CC <= 0x560)
|
|
# define SWIGTEMPLATEDISAMBIGUATOR template
|
|
# else
|
|
# define SWIGTEMPLATEDISAMBIGUATOR
|
|
# endif
|
|
# else
|
|
# define SWIGTEMPLATEDISAMBIGUATOR
|
|
# endif
|
|
#endif
|
|
|
|
/* inline attribute */
|
|
#ifndef SWIGINLINE
|
|
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
|
|
# define SWIGINLINE inline
|
|
# else
|
|
# define SWIGINLINE
|
|
# endif
|
|
#endif
|
|
|
|
/* attribute recognised by some compilers to avoid 'unused' warnings */
|
|
#ifndef SWIGUNUSED
|
|
# if defined(__GNUC__)
|
|
# if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
|
|
# define SWIGUNUSED __attribute__ ((__unused__))
|
|
# else
|
|
# define SWIGUNUSED
|
|
# endif
|
|
# elif defined(__ICC)
|
|
# define SWIGUNUSED __attribute__ ((__unused__))
|
|
# else
|
|
# define SWIGUNUSED
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef SWIGUNUSEDPARM
|
|
# ifdef __cplusplus
|
|
# define SWIGUNUSEDPARM(p)
|
|
# else
|
|
# define SWIGUNUSEDPARM(p) p SWIGUNUSED
|
|
# endif
|
|
#endif
|
|
|
|
/* internal SWIG method */
|
|
#ifndef SWIGINTERN
|
|
# define SWIGINTERN static SWIGUNUSED
|
|
#endif
|
|
|
|
/* internal inline SWIG method */
|
|
#ifndef SWIGINTERNINLINE
|
|
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
|
|
#endif
|
|
|
|
/* exporting methods */
|
|
#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
|
|
# ifndef GCC_HASCLASSVISIBILITY
|
|
# define GCC_HASCLASSVISIBILITY
|
|
# endif
|
|
#endif
|
|
|
|
#ifndef SWIGEXPORT
|
|
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
|
# if defined(STATIC_LINKED)
|
|
# define SWIGEXPORT
|
|
# else
|
|
# define SWIGEXPORT __declspec(dllexport)
|
|
# endif
|
|
# else
|
|
# if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
|
|
# define SWIGEXPORT __attribute__ ((visibility("default")))
|
|
# else
|
|
# define SWIGEXPORT
|
|
# endif
|
|
# endif
|
|
#endif
|
|
|
|
/* calling conventions for Windows */
|
|
#ifndef SWIGSTDCALL
|
|
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
|
# define SWIGSTDCALL __stdcall
|
|
# else
|
|
# define SWIGSTDCALL
|
|
# endif
|
|
#endif
|
|
|
|
/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
|
|
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
|
|
# define _CRT_SECURE_NO_DEPRECATE
|
|
#endif
|
|
|
|
|
|
/* Python.h has to appear first */
|
|
#include <Python.h>
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* swigrun.swg
|
|
*
|
|
* This file contains generic CAPI SWIG runtime support for pointer
|
|
* type checking.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* This should only be incremented when either the layout of swig_type_info changes,
|
|
or for whatever reason, the runtime changes incompatibly */
|
|
#define SWIG_RUNTIME_VERSION "2"
|
|
|
|
/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
|
|
#ifdef SWIG_TYPE_TABLE
|
|
# define SWIG_QUOTE_STRING(x) #x
|
|
# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
|
|
# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
|
|
#else
|
|
# define SWIG_TYPE_TABLE_NAME
|
|
#endif
|
|
|
|
/*
|
|
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
|
|
creating a static or dynamic library from the swig runtime code.
|
|
In 99.9% of the cases, swig just needs to declare them as 'static'.
|
|
|
|
But only do this if is strictly necessary, ie, if you have problems
|
|
with your compiler or so.
|
|
*/
|
|
|
|
#ifndef SWIGRUNTIME
|
|
# define SWIGRUNTIME SWIGINTERN
|
|
#endif
|
|
|
|
#ifndef SWIGRUNTIMEINLINE
|
|
# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
|
|
#endif
|
|
|
|
/* Generic buffer size */
|
|
#ifndef SWIG_BUFFER_SIZE
|
|
# define SWIG_BUFFER_SIZE 1024
|
|
#endif
|
|
|
|
/* Flags for pointer conversions */
|
|
#define SWIG_POINTER_DISOWN 0x1
|
|
|
|
/* Flags for new pointer objects */
|
|
#define SWIG_POINTER_OWN 0x1
|
|
|
|
|
|
/*
|
|
Flags/methods for returning states.
|
|
|
|
The swig conversion methods, as ConvertPtr, return and integer
|
|
that tells if the conversion was successful or not. And if not,
|
|
an error code can be returned (see swigerrors.swg for the codes).
|
|
|
|
Use the following macros/flags to set or process the returning
|
|
states.
|
|
|
|
In old swig versions, you usually write code as:
|
|
|
|
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
|
|
// success code
|
|
} else {
|
|
//fail code
|
|
}
|
|
|
|
Now you can be more explicit as:
|
|
|
|
int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
|
|
if (SWIG_IsOK(res)) {
|
|
// success code
|
|
} else {
|
|
// fail code
|
|
}
|
|
|
|
that seems to be the same, but now you can also do
|
|
|
|
Type *ptr;
|
|
int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
|
|
if (SWIG_IsOK(res)) {
|
|
// success code
|
|
if (SWIG_IsNewObj(res) {
|
|
...
|
|
delete *ptr;
|
|
} else {
|
|
...
|
|
}
|
|
} else {
|
|
// fail code
|
|
}
|
|
|
|
I.e., now SWIG_ConvertPtr can return new objects and you can
|
|
identify the case and take care of the deallocation. Of course that
|
|
requires also to SWIG_ConvertPtr to return new result values, as
|
|
|
|
int SWIG_ConvertPtr(obj, ptr,...) {
|
|
if (<obj is ok>) {
|
|
if (<need new object>) {
|
|
*ptr = <ptr to new allocated object>;
|
|
return SWIG_NEWOBJ;
|
|
} else {
|
|
*ptr = <ptr to old object>;
|
|
return SWIG_OLDOBJ;
|
|
}
|
|
} else {
|
|
return SWIG_BADOBJ;
|
|
}
|
|
}
|
|
|
|
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
|
|
more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
|
|
swig errors code.
|
|
|
|
Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
|
|
allows to return the 'cast rank', for example, if you have this
|
|
|
|
int food(double)
|
|
int fooi(int);
|
|
|
|
and you call
|
|
|
|
food(1) // cast rank '1' (1 -> 1.0)
|
|
fooi(1) // cast rank '0'
|
|
|
|
just use the SWIG_AddCast()/SWIG_CheckState()
|
|
|
|
|
|
*/
|
|
#define SWIG_OK (0)
|
|
#define SWIG_ERROR (-1)
|
|
#define SWIG_IsOK(r) (r >= 0)
|
|
#define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
|
|
|
|
/* The CastRankLimit says how many bits are used for the cast rank */
|
|
#define SWIG_CASTRANKLIMIT (1 << 8)
|
|
/* The NewMask denotes the object was created (using new/malloc) */
|
|
#define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
|
|
/* The TmpMask is for in/out typemaps that use temporal objects */
|
|
#define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
|
|
/* Simple returning values */
|
|
#define SWIG_BADOBJ (SWIG_ERROR)
|
|
#define SWIG_OLDOBJ (SWIG_OK)
|
|
#define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
|
|
#define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
|
|
/* Check, add and del mask methods */
|
|
#define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
|
|
#define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
|
|
#define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
|
|
#define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
|
|
#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
|
|
#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
|
|
|
|
|
|
/* Cast-Rank Mode */
|
|
#if defined(SWIG_CASTRANK_MODE)
|
|
# ifndef SWIG_TypeRank
|
|
# define SWIG_TypeRank unsigned long
|
|
# endif
|
|
# ifndef SWIG_MAXCASTRANK /* Default cast allowed */
|
|
# define SWIG_MAXCASTRANK (2)
|
|
# endif
|
|
# define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
|
|
# define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
|
|
SWIGINTERNINLINE int SWIG_AddCast(int r) {
|
|
return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
|
|
}
|
|
SWIGINTERNINLINE int SWIG_CheckState(int r) {
|
|
return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
|
|
}
|
|
#else /* no cast-rank mode */
|
|
# define SWIG_AddCast
|
|
# define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef void *(*swig_converter_func)(void *);
|
|
typedef struct swig_type_info *(*swig_dycast_func)(void **);
|
|
|
|
/* Structure to store inforomation on one type */
|
|
typedef struct swig_type_info {
|
|
const char *name; /* mangled name of this type */
|
|
const char *str; /* human readable name of this type */
|
|
swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
|
|
struct swig_cast_info *cast; /* linked list of types that can cast into this type */
|
|
void *clientdata; /* language specific type data */
|
|
int owndata; /* flag if the structure owns the clientdata */
|
|
} swig_type_info;
|
|
|
|
/* Structure to store a type and conversion function used for casting */
|
|
typedef struct swig_cast_info {
|
|
swig_type_info *type; /* pointer to type that is equivalent to this type */
|
|
swig_converter_func converter; /* function to cast the void pointers */
|
|
struct swig_cast_info *next; /* pointer to next cast in linked list */
|
|
struct swig_cast_info *prev; /* pointer to the previous cast */
|
|
} swig_cast_info;
|
|
|
|
/* Structure used to store module information
|
|
* Each module generates one structure like this, and the runtime collects
|
|
* all of these structures and stores them in a circularly linked list.*/
|
|
typedef struct swig_module_info {
|
|
swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
|
|
size_t size; /* Number of types in this module */
|
|
struct swig_module_info *next; /* Pointer to next element in circularly linked list */
|
|
swig_type_info **type_initial; /* Array of initially generated type structures */
|
|
swig_cast_info **cast_initial; /* Array of initially generated casting structures */
|
|
void *clientdata; /* Language specific module data */
|
|
} swig_module_info;
|
|
|
|
/*
|
|
Compare two type names skipping the space characters, therefore
|
|
"char*" == "char *" and "Class<int>" == "Class<int >", etc.
|
|
|
|
Return 0 when the two name types are equivalent, as in
|
|
strncmp, but skipping ' '.
|
|
*/
|
|
SWIGRUNTIME int
|
|
SWIG_TypeNameComp(const char *f1, const char *l1,
|
|
const char *f2, const char *l2) {
|
|
for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
|
|
while ((*f1 == ' ') && (f1 != l1)) ++f1;
|
|
while ((*f2 == ' ') && (f2 != l2)) ++f2;
|
|
if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
|
|
}
|
|
return (l1 - f1) - (l2 - f2);
|
|
}
|
|
|
|
/*
|
|
Check type equivalence in a name list like <name1>|<name2>|...
|
|
Return 0 if not equal, 1 if equal
|
|
*/
|
|
SWIGRUNTIME int
|
|
SWIG_TypeEquiv(const char *nb, const char *tb) {
|
|
int equiv = 0;
|
|
const char* te = tb + strlen(tb);
|
|
const char* ne = nb;
|
|
while (!equiv && *ne) {
|
|
for (nb = ne; *ne; ++ne) {
|
|
if (*ne == '|') break;
|
|
}
|
|
equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
|
|
if (*ne) ++ne;
|
|
}
|
|
return equiv;
|
|
}
|
|
|
|
/*
|
|
Check type equivalence in a name list like <name1>|<name2>|...
|
|
Return 0 if equal, -1 if nb < tb, 1 if nb > tb
|
|
*/
|
|
SWIGRUNTIME int
|
|
SWIG_TypeCompare(const char *nb, const char *tb) {
|
|
int equiv = 0;
|
|
const char* te = tb + strlen(tb);
|
|
const char* ne = nb;
|
|
while (!equiv && *ne) {
|
|
for (nb = ne; *ne; ++ne) {
|
|
if (*ne == '|') break;
|
|
}
|
|
equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
|
|
if (*ne) ++ne;
|
|
}
|
|
return equiv;
|
|
}
|
|
|
|
|
|
/* think of this as a c++ template<> or a scheme macro */
|
|
#define SWIG_TypeCheck_Template(comparison, ty) \
|
|
if (ty) { \
|
|
swig_cast_info *iter = ty->cast; \
|
|
while (iter) { \
|
|
if (comparison) { \
|
|
if (iter == ty->cast) return iter; \
|
|
/* Move iter to the top of the linked list */ \
|
|
iter->prev->next = iter->next; \
|
|
if (iter->next) \
|
|
iter->next->prev = iter->prev; \
|
|
iter->next = ty->cast; \
|
|
iter->prev = 0; \
|
|
if (ty->cast) ty->cast->prev = iter; \
|
|
ty->cast = iter; \
|
|
return iter; \
|
|
} \
|
|
iter = iter->next; \
|
|
} \
|
|
} \
|
|
return 0
|
|
|
|
/*
|
|
Check the typename
|
|
*/
|
|
SWIGRUNTIME swig_cast_info *
|
|
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
|
|
SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
|
|
}
|
|
|
|
/* Same as previous function, except strcmp is replaced with a pointer comparison */
|
|
SWIGRUNTIME swig_cast_info *
|
|
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
|
|
SWIG_TypeCheck_Template(iter->type == from, into);
|
|
}
|
|
|
|
/*
|
|
Cast a pointer up an inheritance hierarchy
|
|
*/
|
|
SWIGRUNTIMEINLINE void *
|
|
SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
|
|
return ((!ty) || (!ty->converter)) ? ptr : (*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;
|
|
}
|
|
|
|
/*
|
|
Return the name associated with this type
|
|
*/
|
|
SWIGRUNTIMEINLINE const char *
|
|
SWIG_TypeName(const swig_type_info *ty) {
|
|
return ty->name;
|
|
}
|
|
|
|
/*
|
|
Return the pretty name associated with this type,
|
|
that is an unmangled type name in a form presentable to the user.
|
|
*/
|
|
SWIGRUNTIME const char *
|
|
SWIG_TypePrettyName(const swig_type_info *type) {
|
|
/* The "str" field contains the equivalent pretty names of the
|
|
type, separated by vertical-bar characters. We choose
|
|
to print the last name, as it is often (?) the most
|
|
specific. */
|
|
if (!type) return NULL;
|
|
if (type->str != NULL) {
|
|
const char *last_name = type->str;
|
|
const char *s;
|
|
for (s = type->str; *s; s++)
|
|
if (*s == '|') last_name = s+1;
|
|
return last_name;
|
|
}
|
|
else
|
|
return type->name;
|
|
}
|
|
|
|
/*
|
|
Set the clientdata field for a type
|
|
*/
|
|
SWIGRUNTIME void
|
|
SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
|
|
swig_cast_info *cast = ti->cast;
|
|
/* if (ti->clientdata == clientdata) return; */
|
|
ti->clientdata = clientdata;
|
|
|
|
while (cast) {
|
|
if (!cast->converter) {
|
|
swig_type_info *tc = cast->type;
|
|
if (!tc->clientdata) {
|
|
SWIG_TypeClientData(tc, clientdata);
|
|
}
|
|
}
|
|
cast = cast->next;
|
|
}
|
|
}
|
|
SWIGRUNTIME void
|
|
SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
|
|
SWIG_TypeClientData(ti, clientdata);
|
|
ti->owndata = 1;
|
|
}
|
|
|
|
/*
|
|
Search for a swig_type_info structure only by mangled name
|
|
Search is a O(log #types)
|
|
|
|
We start searching at module start, and finish searching when start == end.
|
|
Note: if start == end at the beginning of the function, we go all the way around
|
|
the circular list.
|
|
*/
|
|
SWIGRUNTIME swig_type_info *
|
|
SWIG_MangledTypeQueryModule(swig_module_info *start,
|
|
swig_module_info *end,
|
|
const char *name) {
|
|
swig_module_info *iter = start;
|
|
do {
|
|
if (iter->size) {
|
|
register size_t l = 0;
|
|
register size_t r = iter->size - 1;
|
|
do {
|
|
/* since l+r >= 0, we can (>> 1) instead (/ 2) */
|
|
register size_t i = (l + r) >> 1;
|
|
const char *iname = iter->types[i]->name;
|
|
if (iname) {
|
|
register int compare = strcmp(name, iname);
|
|
if (compare == 0) {
|
|
return iter->types[i];
|
|
} else if (compare < 0) {
|
|
if (i) {
|
|
r = i - 1;
|
|
} else {
|
|
break;
|
|
}
|
|
} else if (compare > 0) {
|
|
l = i + 1;
|
|
}
|
|
} else {
|
|
break; /* should never happen */
|
|
}
|
|
} while (l <= r);
|
|
}
|
|
iter = iter->next;
|
|
} while (iter != end);
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
Search for a swig_type_info structure for either a mangled name or a human readable name.
|
|
It first searches the mangled names of the types, which is a O(log #types)
|
|
If a type is not found it then searches the human readable names, which is O(#types).
|
|
|
|
We start searching at module start, and finish searching when start == end.
|
|
Note: if start == end at the beginning of the function, we go all the way around
|
|
the circular list.
|
|
*/
|
|
SWIGRUNTIME swig_type_info *
|
|
SWIG_TypeQueryModule(swig_module_info *start,
|
|
swig_module_info *end,
|
|
const char *name) {
|
|
/* STEP 1: Search the name field using binary search */
|
|
swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
|
|
if (ret) {
|
|
return ret;
|
|
} else {
|
|
/* STEP 2: If the type hasn't been found, do a complete search
|
|
of the str field (the human readable name) */
|
|
swig_module_info *iter = start;
|
|
do {
|
|
register size_t i = 0;
|
|
for (; i < iter->size; ++i) {
|
|
if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
|
|
return iter->types[i];
|
|
}
|
|
iter = iter->next;
|
|
} while (iter != end);
|
|
}
|
|
|
|
/* neither found a match */
|
|
return 0;
|
|
}
|
|
|
|
/*
|
|
Pack binary data into a string
|
|
*/
|
|
SWIGRUNTIME char *
|
|
SWIG_PackData(char *c, void *ptr, size_t sz) {
|
|
static const char hex[17] = "0123456789abcdef";
|
|
register const unsigned char *u = (unsigned char *) ptr;
|
|
register const unsigned char *eu = u + sz;
|
|
for (; u != eu; ++u) {
|
|
register unsigned char uu = *u;
|
|
*(c++) = hex[(uu & 0xf0) >> 4];
|
|
*(c++) = hex[uu & 0xf];
|
|
}
|
|
return c;
|
|
}
|
|
|
|
/*
|
|
Unpack binary data from a string
|
|
*/
|
|
SWIGRUNTIME const char *
|
|
SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
|
|
register unsigned char *u = (unsigned char *) ptr;
|
|
register const unsigned char *eu = u + sz;
|
|
for (; u != eu; ++u) {
|
|
register char d = *(c++);
|
|
register unsigned char uu;
|
|
if ((d >= '0') && (d <= '9'))
|
|
uu = ((d - '0') << 4);
|
|
else if ((d >= 'a') && (d <= 'f'))
|
|
uu = ((d - ('a'-10)) << 4);
|
|
else
|
|
return (char *) 0;
|
|
d = *(c++);
|
|
if ((d >= '0') && (d <= '9'))
|
|
uu |= (d - '0');
|
|
else if ((d >= 'a') && (d <= 'f'))
|
|
uu |= (d - ('a'-10));
|
|
else
|
|
return (char *) 0;
|
|
*u = uu;
|
|
}
|
|
return c;
|
|
}
|
|
|
|
/*
|
|
Pack 'void *' into a string buffer.
|
|
*/
|
|
SWIGRUNTIME char *
|
|
SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
|
|
char *r = buff;
|
|
if ((2*sizeof(void *) + 2) > bsz) return 0;
|
|
*(r++) = '_';
|
|
r = SWIG_PackData(r,&ptr,sizeof(void *));
|
|
if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
|
|
strcpy(r,name);
|
|
return buff;
|
|
}
|
|
|
|
SWIGRUNTIME const char *
|
|
SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
|
|
if (*c != '_') {
|
|
if (strcmp(c,"NULL") == 0) {
|
|
*ptr = (void *) 0;
|
|
return name;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
return SWIG_UnpackData(++c,ptr,sizeof(void *));
|
|
}
|
|
|
|
SWIGRUNTIME char *
|
|
SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
|
|
char *r = buff;
|
|
size_t lname = (name ? strlen(name) : 0);
|
|
if ((2*sz + 2 + lname) > bsz) return 0;
|
|
*(r++) = '_';
|
|
r = SWIG_PackData(r,ptr,sz);
|
|
if (lname) {
|
|
strncpy(r,name,lname+1);
|
|
} else {
|
|
*r = 0;
|
|
}
|
|
return buff;
|
|
}
|
|
|
|
SWIGRUNTIME const char *
|
|
SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
if (*c != '_') {
|
|
if (strcmp(c,"NULL") == 0) {
|
|
memset(ptr,0,sz);
|
|
return name;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
return SWIG_UnpackData(++c,ptr,sz);
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/* Errors in SWIG */
|
|
#define SWIG_UnknownError -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_AttributeError -11
|
|
#define SWIG_MemoryError -12
|
|
#define SWIG_NullReferenceError -13
|
|
|
|
|
|
|
|
/* Python.h has to appear first */
|
|
#include <Python.h>
|
|
|
|
/* Add PyOS_snprintf for old Pythons */
|
|
#if PY_VERSION_HEX < 0x02020000
|
|
# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
|
|
# define PyOS_snprintf _snprintf
|
|
# else
|
|
# define PyOS_snprintf snprintf
|
|
# endif
|
|
#endif
|
|
|
|
/* A crude PyString_FromFormat implementation for old Pythons */
|
|
#if PY_VERSION_HEX < 0x02020000
|
|
|
|
#ifndef SWIG_PYBUFFER_SIZE
|
|
# define SWIG_PYBUFFER_SIZE 1024
|
|
#endif
|
|
|
|
static PyObject *
|
|
PyString_FromFormat(const char *fmt, ...) {
|
|
va_list ap;
|
|
char buf[SWIG_PYBUFFER_SIZE * 2];
|
|
int res;
|
|
va_start(ap, fmt);
|
|
res = vsnprintf(buf, sizeof(buf), fmt, ap);
|
|
va_end(ap);
|
|
return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
|
|
}
|
|
#endif
|
|
|
|
/* Add PyObject_Del for old Pythons */
|
|
#if PY_VERSION_HEX < 0x01060000
|
|
# define PyObject_Del(op) PyMem_DEL((op))
|
|
#endif
|
|
#ifndef PyObject_DEL
|
|
# define PyObject_DEL PyObject_Del
|
|
#endif
|
|
|
|
/* A crude PyExc_StopIteration exception for old Pythons */
|
|
#if PY_VERSION_HEX < 0x02020000
|
|
# ifndef PyExc_StopIteration
|
|
# define PyExc_StopIteration PyExc_RuntimeError
|
|
# endif
|
|
# ifndef PyObject_GenericGetAttr
|
|
# define PyObject_GenericGetAttr 0
|
|
# endif
|
|
#endif
|
|
/* Py_NotImplemented is defined in 2.1 and up. */
|
|
#if PY_VERSION_HEX < 0x02010000
|
|
# ifndef Py_NotImplemented
|
|
# define Py_NotImplemented PyExc_RuntimeError
|
|
# endif
|
|
#endif
|
|
|
|
|
|
/* A crude PyString_AsStringAndSize implementation for old Pythons */
|
|
#if PY_VERSION_HEX < 0x02010000
|
|
# ifndef PyString_AsStringAndSize
|
|
# define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
|
|
# endif
|
|
#endif
|
|
|
|
/* PySequence_Size for old Pythons */
|
|
#if PY_VERSION_HEX < 0x02000000
|
|
# ifndef PySequence_Size
|
|
# define PySequence_Size PySequence_Length
|
|
# endif
|
|
#endif
|
|
|
|
|
|
/* PyBool_FromLong for old Pythons */
|
|
#if PY_VERSION_HEX < 0x02030000
|
|
static
|
|
PyObject *PyBool_FromLong(long ok)
|
|
{
|
|
PyObject *result = ok ? Py_True : Py_False;
|
|
Py_INCREF(result);
|
|
return result;
|
|
}
|
|
#endif
|
|
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* error manipulation
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
SWIGRUNTIME PyObject*
|
|
SWIG_Python_ErrorType(int code) {
|
|
PyObject* type = 0;
|
|
switch(code) {
|
|
case SWIG_MemoryError:
|
|
type = PyExc_MemoryError;
|
|
break;
|
|
case SWIG_IOError:
|
|
type = PyExc_IOError;
|
|
break;
|
|
case SWIG_RuntimeError:
|
|
type = PyExc_RuntimeError;
|
|
break;
|
|
case SWIG_IndexError:
|
|
type = PyExc_IndexError;
|
|
break;
|
|
case SWIG_TypeError:
|
|
type = PyExc_TypeError;
|
|
break;
|
|
case SWIG_DivisionByZero:
|
|
type = PyExc_ZeroDivisionError;
|
|
break;
|
|
case SWIG_OverflowError:
|
|
type = PyExc_OverflowError;
|
|
break;
|
|
case SWIG_SyntaxError:
|
|
type = PyExc_SyntaxError;
|
|
break;
|
|
case SWIG_ValueError:
|
|
type = PyExc_ValueError;
|
|
break;
|
|
case SWIG_SystemError:
|
|
type = PyExc_SystemError;
|
|
break;
|
|
case SWIG_AttributeError:
|
|
type = PyExc_AttributeError;
|
|
break;
|
|
default:
|
|
type = PyExc_RuntimeError;
|
|
}
|
|
return type;
|
|
}
|
|
|
|
|
|
SWIGRUNTIME void
|
|
SWIG_Python_AddErrorMsg(const char* mesg)
|
|
{
|
|
PyObject *type = 0;
|
|
PyObject *value = 0;
|
|
PyObject *traceback = 0;
|
|
|
|
if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
|
|
if (value) {
|
|
PyObject *old_str = PyObject_Str(value);
|
|
PyErr_Clear();
|
|
Py_XINCREF(type);
|
|
PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
|
|
Py_DECREF(old_str);
|
|
Py_DECREF(value);
|
|
} else {
|
|
PyErr_Format(PyExc_RuntimeError, mesg);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
#if defined(SWIG_PYTHON_NO_THREADS)
|
|
# if defined(SWIG_PYTHON_THREADS)
|
|
# undef SWIG_PYTHON_THREADS
|
|
# endif
|
|
#endif
|
|
#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
|
|
# if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
|
|
# if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
|
|
# define SWIG_PYTHON_USE_GIL
|
|
# endif
|
|
# endif
|
|
# if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
|
|
# ifndef SWIG_PYTHON_INITIALIZE_THREADS
|
|
# define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
|
|
# endif
|
|
# ifdef __cplusplus /* C++ code */
|
|
class SWIG_Python_Thread_Block {
|
|
bool status;
|
|
PyGILState_STATE state;
|
|
public:
|
|
void end() { if (status) { PyGILState_Release(state); status = false;} }
|
|
SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
|
|
~SWIG_Python_Thread_Block() { end(); }
|
|
};
|
|
class SWIG_Python_Thread_Allow {
|
|
bool status;
|
|
PyThreadState *save;
|
|
public:
|
|
void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
|
|
SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
|
|
~SWIG_Python_Thread_Allow() { end(); }
|
|
};
|
|
# define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
|
|
# define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
|
|
# define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
|
|
# define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
|
|
# else /* C code */
|
|
# define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
|
|
# define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
|
|
# define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
|
|
# define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
|
|
# endif
|
|
# else /* Old thread way, not implemented, user must provide it */
|
|
# if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
|
|
# define SWIG_PYTHON_INITIALIZE_THREADS
|
|
# endif
|
|
# if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
|
|
# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
|
|
# endif
|
|
# if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
|
|
# define SWIG_PYTHON_THREAD_END_BLOCK
|
|
# endif
|
|
# if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
|
|
# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
|
|
# endif
|
|
# if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
|
|
# define SWIG_PYTHON_THREAD_END_ALLOW
|
|
# endif
|
|
# endif
|
|
#else /* No thread support */
|
|
# define SWIG_PYTHON_INITIALIZE_THREADS
|
|
# define SWIG_PYTHON_THREAD_BEGIN_BLOCK
|
|
# define SWIG_PYTHON_THREAD_END_BLOCK
|
|
# define SWIG_PYTHON_THREAD_BEGIN_ALLOW
|
|
# define SWIG_PYTHON_THREAD_END_ALLOW
|
|
#endif
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* Python API portion that goes into the runtime
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#if 0
|
|
} /* cc-mode */
|
|
#endif
|
|
#endif
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* Constant declarations
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* Constant Types */
|
|
#define SWIG_PY_POINTER 4
|
|
#define SWIG_PY_BINARY 5
|
|
|
|
/* 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 __cplusplus
|
|
#if 0
|
|
{ /* cc-mode */
|
|
#endif
|
|
}
|
|
#endif
|
|
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* See the LICENSE file for information on copyright, usage and redistribution
|
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
|
*
|
|
* pyrun.swg
|
|
*
|
|
* This file contains the runtime support for Python modules
|
|
* and includes code for managing global variables and pointer
|
|
* type checking.
|
|
*
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* Common SWIG API */
|
|
|
|
#if PY_VERSION_HEX < 0x02050000
|
|
typedef int Py_ssize_t;
|
|
#endif
|
|
|
|
/* for raw pointers */
|
|
#define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
|
|
#define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
|
|
#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
|
|
#define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
|
|
#define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
|
|
#define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
|
|
#define swig_owntype int
|
|
|
|
/* for raw packed data */
|
|
#define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
|
|
#define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
|
|
|
|
/* for class or struct pointers */
|
|
#define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
|
|
#define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
|
|
|
|
/* for C or C++ function pointers */
|
|
#define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
|
|
#define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
|
|
|
|
/* for C++ member pointers, ie, member methods */
|
|
#define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
|
|
#define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
|
|
|
|
|
|
/* Runtime API */
|
|
|
|
#define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
|
|
#define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
|
|
#define SWIG_NewClientData(obj) PySwigClientData_New(obj)
|
|
|
|
#define SWIG_SetErrorObj SWIG_Python_SetErrorObj
|
|
#define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
|
|
#define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
|
|
#define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
|
|
#define SWIG_fail goto fail
|
|
|
|
|
|
/* Runtime API implementation */
|
|
|
|
/* Error manipulation */
|
|
|
|
SWIGINTERN void
|
|
SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
|
|
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
|
|
PyErr_SetObject(errtype, obj);
|
|
Py_DECREF(obj);
|
|
SWIG_PYTHON_THREAD_END_BLOCK;
|
|
}
|
|
|
|
SWIGINTERN void
|
|
SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
|
|
SWIG_PYTHON_THREAD_BEGIN_BLOCK;
|
|
PyErr_SetString(errtype, (char *) msg);
|
|
SWIG_PYTHON_THREAD_END_BLOCK;
|
|
}
|
|
|
|
#define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
|
|
|
|
/* Set a constant value */
|
|
|
|
SWIGINTERN void
|
|
SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
|
|
PyDict_SetItemString(d, (char*) name, obj);
|
|
Py_DECREF(obj);
|
|
}
|
|
|
|
/* Append a value to the result obj */
|
|
|
|
SWIGINTERN PyObject*
|
|
SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
|
|
#if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
|
|
if (!result) {
|
|
result = obj;
|
|
} else if (result == Py_None) {
|
|
Py_DECREF(result);
|
|
result = obj;
|
|
} else {
|
|
if (!PyList_Check(result)) {
|
|
PyObject *o2 = result;
|
|
result = PyList_New(1);
|
|
PyList_SetItem(result, 0, o2);
|
|
}
|
|
PyList_Append(result,obj);
|
|
Py_DECREF(obj);
|
|
}
|
|
return result;
|
|
#else
|
|
PyObject* o2;
|
|
PyObject* o3;
|
|
if (!result) {
|
|
result = obj;
|
|
} else if (result == Py_None) {
|
|
Py_DECREF(result);
|
|
result = obj;
|
|
} else {
|
|
if (!PyTuple_Check(result)) {
|
|
o2 = result;
|
|
result = PyTuple_New(1);
|
|
PyTuple_SET_ITEM(result, 0, o2);
|
|
}
|
|
o3 = PyTuple_New(1);
|
|
PyTuple_SET_ITEM(o3, 0, obj);
|
|
o2 = result;
|
|
result = PySequence_Concat(o2, o3);
|
|
Py_DECREF(o2);
|
|
Py_DECREF(o3);
|
|
}
|
|
return result;
|
|
#endif
|
|
}
|
|
|
|
/* Unpack the argument tuple */
|
|
|
|
SWIGINTERN int
|
|
SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
|
|
{
|
|
if (!args) {
|
|
if (!min && !max) {
|
|
return 1;
|
|
} else {
|
|
PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
|
|
name, (min == max ? "" : "at least "), min);
|
|
return 0;
|
|
}
|
|
}
|
|
if (!PyTuple_Check(args)) {
|
|
PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
|
|
return 0;
|
|
} else {
|
|
register int l = PyTuple_GET_SIZE(args);
|
|
if (l < min) {
|
|
PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
|
|
name, (min == max ? "" : "at least "), min, l);
|
|
return 0;
|
|
} else if (l > max) {
|
|
PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
|
|
name, (min == max ? "" : "at most "), max, l);
|
|
return 0;
|
|
} else {
|
|
register int i;
|
|
for (i = 0; i < l; ++i) {
|
|
objs[i] = PyTuple_GET_ITEM(args, i);
|
|
}
|
|
for (; l < max; ++l) {
|
|
objs[l] = 0;
|
|
}
|
|
return i + 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* A functor is a function object with one single object argument */
|
|
#if PY_VERSION_HEX >= 0x02020000
|
|
#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
|
|
#else
|
|
#define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
|
|
#endif
|
|
|
|
/*
|
|
Helper for static pointer initialization for both C and C++ code, for example
|
|
static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
|
|
*/
|
|
#ifdef __cplusplus
|
|
#define SWIG_STATIC_POINTER(var) var
|
|
#else
|
|
#define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
|
|
#endif
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* Pointer declarations
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* Flags for new pointer objects */
|
|
#define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
|
|
#define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
|
|
|
|
#define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#if 0
|
|
} /* cc-mode */
|
|
#endif
|
|
#endif
|
|
|
|
/* How to access Py_None */
|
|
#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
|
|
# ifndef SWIG_PYTHON_NO_BUILD_NONE
|
|
# ifndef SWIG_PYTHON_BUILD_NONE
|
|
# define SWIG_PYTHON_BUILD_NONE
|
|
# endif
|
|
# endif
|
|
#endif
|
|
|
|
#ifdef SWIG_PYTHON_BUILD_NONE
|
|
# ifdef Py_None
|
|
# undef Py_None
|
|
# define Py_None SWIG_Py_None()
|
|
# endif
|
|
SWIGRUNTIMEINLINE PyObject *
|
|
_SWIG_Py_None(void)
|
|
{
|
|
PyObject *none = Py_BuildValue("");
|
|
Py_DECREF(none);
|
|
return none;
|
|
}
|
|
SWIGRUNTIME PyObject *
|
|
SWIG_Py_None(void)
|
|
{
|
|
static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
|
|
return none;
|
|
}
|
|
#endif
|
|
|
|
/* The python void return value */
|
|
|
|
SWIGRUNTIMEINLINE PyObject *
|
|
SWIG_Py_Void(void)
|
|
{
|
|
PyObject *none = Py_None;
|
|
Py_INCREF(none);
|
|
return none;
|
|
}
|
|
|
|
/* PySwigClientData */
|
|
|
|
typedef struct {
|
|
PyObject *klass;
|
|
PyObject *newraw;
|
|
PyObject *newargs;
|
|
PyObject *destroy;
|
|
int delargs;
|
|
int implicitconv;
|
|
} PySwigClientData;
|
|
|
|
SWIGRUNTIMEINLINE int
|
|
SWIG_Python_CheckImplicit(swig_type_info *ty)
|
|
{
|
|
PySwigClientData *data = (PySwigClientData *)ty->clientdata;
|
|
return data ? data->implicitconv : 0;
|
|
}
|
|
|
|
SWIGRUNTIMEINLINE PyObject *
|
|
SWIG_Python_ExceptionType(swig_type_info *desc) {
|
|
PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
|
|
PyObject *klass = data ? data->klass : 0;
|
|
return (klass ? klass : PyExc_RuntimeError);
|
|
}
|
|
|
|
|
|
SWIGRUNTIME PySwigClientData *
|
|
PySwigClientData_New(PyObject* obj)
|
|
{
|
|
if (!obj) {
|
|
return 0;
|
|
} else {
|
|
PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
|
|
/* the klass element */
|
|
data->klass = obj;
|
|
Py_INCREF(data->klass);
|
|
/* the newraw method and newargs arguments used to create a new raw instance */
|
|
if (PyClass_Check(obj)) {
|
|
data->newraw = 0;
|
|
data->newargs = obj;
|
|
Py_INCREF(obj);
|
|
} else {
|
|
#if (PY_VERSION_HEX < 0x02020000)
|
|
data->newraw = 0;
|
|
#else
|
|
data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
|
|
#endif
|
|
if (data->newraw) {
|
|
Py_INCREF(data->newraw);
|
|
data->newargs = PyTuple_New(1);
|
|
PyTuple_SetItem(data->newargs, 0, obj);
|
|
} else {
|
|
data->newargs = obj;
|
|
}
|
|
Py_INCREF(data->newargs);
|
|
}
|
|
/* the destroy method, aka as the C++ delete method */
|
|
data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
|
|
if (PyErr_Occurred()) {
|
|
PyErr_Clear();
|
|
data->destroy = 0;
|
|
}
|
|
if (data->destroy) {
|
|
int flags;
|
|
Py_INCREF(data->destroy);
|
|
flags = PyCFunction_GET_FLAGS(data->destroy);
|
|
#ifdef METH_O
|
|
data->delargs = !(flags & (METH_O));
|
|
#else
|
|
data->delargs = 0;
|
|
#endif
|
|
} else {
|
|
data->delargs = 0;
|
|
}
|
|
data->implicitconv = 0;
|
|
return data;
|
|
}
|
|
}
|
|
|
|
SWIGRUNTIME void
|
|
PySwigClientData_Del(PySwigClientData* data)
|
|
{
|
|
Py_XDECREF(data->newraw);
|
|
Py_XDECREF(data->newargs);
|
|
Py_XDECREF(data->destroy);
|
|
}
|
|
|
|
/* =============== PySwigObject =====================*/
|
|
|
|
typedef struct {
|
|
PyObject_HEAD
|
|
void *ptr;
|
|
swig_type_info *ty;
|
|
int own;
|
|
PyObject *next;
|
|
} PySwigObject;
|
|
|
|
SWIGRUNTIME PyObject *
|
|
PySwigObject_long(PySwigObject *v)
|
|
{
|
|
return PyLong_FromVoidPtr(v->ptr);
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
PySwigObject_format(const char* fmt, PySwigObject *v)
|
|
{
|
|
PyObject *res = NULL;
|
|
PyObject *args = PyTuple_New(1);
|
|
if (args) {
|
|
if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
|
|
PyObject *ofmt = PyString_FromString(fmt);
|
|
if (ofmt) {
|
|
res = PyString_Format(ofmt,args);
|
|
Py_DECREF(ofmt);
|
|
}
|
|
Py_DECREF(args);
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
PySwigObject_oct(PySwigObject *v)
|
|
{
|
|
return PySwigObject_format("%o",v);
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
PySwigObject_hex(PySwigObject *v)
|
|
{
|
|
return PySwigObject_format("%x",v);
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
#ifdef METH_NOARGS
|
|
PySwigObject_repr(PySwigObject *v)
|
|
#else
|
|
PySwigObject_repr(PySwigObject *v, PyObject *args)
|
|
#endif
|
|
{
|
|
const char *name = SWIG_TypePrettyName(v->ty);
|
|
PyObject *hex = PySwigObject_hex(v);
|
|
PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
|
|
Py_DECREF(hex);
|
|
if (v->next) {
|
|
#ifdef METH_NOARGS
|
|
PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
|
|
#else
|
|
PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
|
|
#endif
|
|
PyString_ConcatAndDel(&repr,nrep);
|
|
}
|
|
return repr;
|
|
}
|
|
|
|
SWIGRUNTIME int
|
|
PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
|
|
{
|
|
#ifdef METH_NOARGS
|
|
PyObject *repr = PySwigObject_repr(v);
|
|
#else
|
|
PyObject *repr = PySwigObject_repr(v, NULL);
|
|
#endif
|
|
if (repr) {
|
|
fputs(PyString_AsString(repr), fp);
|
|
Py_DECREF(repr);
|
|
return 0;
|
|
} else {
|
|
return 1;
|
|
}
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
PySwigObject_str(PySwigObject *v)
|
|
{
|
|
char result[SWIG_BUFFER_SIZE];
|
|
return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
|
|
PyString_FromString(result) : 0;
|
|
}
|
|
|
|
SWIGRUNTIME int
|
|
PySwigObject_compare(PySwigObject *v, PySwigObject *w)
|
|
{
|
|
void *i = v->ptr;
|
|
void *j = w->ptr;
|
|
return (i < j) ? -1 : ((i > j) ? 1 : 0);
|
|
}
|
|
|
|
SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
|
|
|
|
SWIGRUNTIME PyTypeObject*
|
|
PySwigObject_type(void) {
|
|
static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
|
|
return type;
|
|
}
|
|
|
|
SWIGRUNTIMEINLINE int
|
|
PySwigObject_Check(PyObject *op) {
|
|
return ((op)->ob_type == PySwigObject_type())
|
|
|| (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
PySwigObject_New(void *ptr, swig_type_info *ty, int own);
|
|
|
|
SWIGRUNTIME void
|
|
PySwigObject_dealloc(PyObject *v)
|
|
{
|
|
PySwigObject *sobj = (PySwigObject *) v;
|
|
PyObject *next = sobj->next;
|
|
if (sobj->own) {
|
|
swig_type_info *ty = sobj->ty;
|
|
PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
|
|
PyObject *destroy = data ? data->destroy : 0;
|
|
if (destroy) {
|
|
/* destroy is always a VARARGS method */
|
|
PyObject *res;
|
|
if (data->delargs) {
|
|
/* we need to create a temporal object to carry the destroy operation */
|
|
PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
|
|
res = SWIG_Python_CallFunctor(destroy, tmp);
|
|
Py_DECREF(tmp);
|
|
} else {
|
|
PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
|
|
PyObject *mself = PyCFunction_GET_SELF(destroy);
|
|
res = ((*meth)(mself, v));
|
|
}
|
|
Py_XDECREF(res);
|
|
} else {
|
|
const char *name = SWIG_TypePrettyName(ty);
|
|
#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
|
|
printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
|
|
#endif
|
|
}
|
|
}
|
|
Py_XDECREF(next);
|
|
PyObject_DEL(v);
|
|
}
|
|
|
|
SWIGRUNTIME PyObject*
|
|
PySwigObject_append(PyObject* v, PyObject* next)
|
|
{
|
|
PySwigObject *sobj = (PySwigObject *) v;
|
|
#ifndef METH_O
|
|
PyObject *tmp = 0;
|
|
if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
|
|
next = tmp;
|
|
#endif
|
|
if (!PySwigObject_Check(next)) {
|
|
return NULL;
|
|
}
|
|
sobj->next = next;
|
|
Py_INCREF(next);
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGRUNTIME PyObject*
|
|
#ifdef METH_NOARGS
|
|
PySwigObject_next(PyObject* v)
|
|
#else
|
|
PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
|
|
#endif
|
|
{
|
|
PySwigObject *sobj = (PySwigObject *) v;
|
|
if (sobj->next) {
|
|
Py_INCREF(sobj->next);
|
|
return sobj->next;
|
|
} else {
|
|
return SWIG_Py_Void();
|
|
}
|
|
}
|
|
|
|
SWIGINTERN PyObject*
|
|
#ifdef METH_NOARGS
|
|
PySwigObject_disown(PyObject *v)
|
|
#else
|
|
PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
|
|
#endif
|
|
{
|
|
PySwigObject *sobj = (PySwigObject *)v;
|
|
sobj->own = 0;
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject*
|
|
#ifdef METH_NOARGS
|
|
PySwigObject_acquire(PyObject *v)
|
|
#else
|
|
PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
|
|
#endif
|
|
{
|
|
PySwigObject *sobj = (PySwigObject *)v;
|
|
sobj->own = SWIG_POINTER_OWN;
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject*
|
|
PySwigObject_own(PyObject *v, PyObject *args)
|
|
{
|
|
PyObject *val = 0;
|
|
#if (PY_VERSION_HEX < 0x02020000)
|
|
if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
|
|
#else
|
|
if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
|
|
#endif
|
|
{
|
|
return NULL;
|
|
}
|
|
else
|
|
{
|
|
PySwigObject *sobj = (PySwigObject *)v;
|
|
PyObject *obj = PyBool_FromLong(sobj->own);
|
|
if (val) {
|
|
#ifdef METH_NOARGS
|
|
if (PyObject_IsTrue(val)) {
|
|
PySwigObject_acquire(v);
|
|
} else {
|
|
PySwigObject_disown(v);
|
|
}
|
|
#else
|
|
if (PyObject_IsTrue(val)) {
|
|
PySwigObject_acquire(v,args);
|
|
} else {
|
|
PySwigObject_disown(v,args);
|
|
}
|
|
#endif
|
|
}
|
|
return obj;
|
|
}
|
|
}
|
|
|
|
#ifdef METH_O
|
|
static PyMethodDef
|
|
swigobject_methods[] = {
|
|
{(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
|
|
{(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
|
|
{(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
|
|
{(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
|
|
{(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
|
|
{(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
|
|
{0, 0, 0, 0}
|
|
};
|
|
#else
|
|
static PyMethodDef
|
|
swigobject_methods[] = {
|
|
{(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
|
|
{(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
|
|
{(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
|
|
{(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
|
|
{(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
|
|
{(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
|
|
{0, 0, 0, 0}
|
|
};
|
|
#endif
|
|
|
|
#if PY_VERSION_HEX < 0x02020000
|
|
SWIGINTERN PyObject *
|
|
PySwigObject_getattr(PySwigObject *sobj,char *name)
|
|
{
|
|
return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
|
|
}
|
|
#endif
|
|
|
|
SWIGRUNTIME PyTypeObject*
|
|
_PySwigObject_type(void) {
|
|
static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
|
|
|
|
static PyNumberMethods PySwigObject_as_number = {
|
|
(binaryfunc)0, /*nb_add*/
|
|
(binaryfunc)0, /*nb_subtract*/
|
|
(binaryfunc)0, /*nb_multiply*/
|
|
(binaryfunc)0, /*nb_divide*/
|
|
(binaryfunc)0, /*nb_remainder*/
|
|
(binaryfunc)0, /*nb_divmod*/
|
|
(ternaryfunc)0,/*nb_power*/
|
|
(unaryfunc)0, /*nb_negative*/
|
|
(unaryfunc)0, /*nb_positive*/
|
|
(unaryfunc)0, /*nb_absolute*/
|
|
(inquiry)0, /*nb_nonzero*/
|
|
0, /*nb_invert*/
|
|
0, /*nb_lshift*/
|
|
0, /*nb_rshift*/
|
|
0, /*nb_and*/
|
|
0, /*nb_xor*/
|
|
0, /*nb_or*/
|
|
(coercion)0, /*nb_coerce*/
|
|
(unaryfunc)PySwigObject_long, /*nb_int*/
|
|
(unaryfunc)PySwigObject_long, /*nb_long*/
|
|
(unaryfunc)0, /*nb_float*/
|
|
(unaryfunc)PySwigObject_oct, /*nb_oct*/
|
|
(unaryfunc)PySwigObject_hex, /*nb_hex*/
|
|
#if PY_VERSION_HEX >= 0x02020000
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
|
|
#elif PY_VERSION_HEX >= 0x02000000
|
|
0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
|
|
#endif
|
|
};
|
|
|
|
static PyTypeObject pyswigobject_type;
|
|
static int type_init = 0;
|
|
if (!type_init) {
|
|
const PyTypeObject tmp
|
|
= {
|
|
PyObject_HEAD_INIT(NULL)
|
|
0, /* ob_size */
|
|
(char *)"PySwigObject", /* tp_name */
|
|
sizeof(PySwigObject), /* tp_basicsize */
|
|
0, /* tp_itemsize */
|
|
(destructor)PySwigObject_dealloc, /* tp_dealloc */
|
|
(printfunc)PySwigObject_print, /* tp_print */
|
|
#if PY_VERSION_HEX < 0x02020000
|
|
(getattrfunc)PySwigObject_getattr, /* tp_getattr */
|
|
#else
|
|
(getattrfunc)0, /* tp_getattr */
|
|
#endif
|
|
(setattrfunc)0, /* tp_setattr */
|
|
(cmpfunc)PySwigObject_compare, /* tp_compare */
|
|
(reprfunc)PySwigObject_repr, /* tp_repr */
|
|
&PySwigObject_as_number, /* tp_as_number */
|
|
0, /* tp_as_sequence */
|
|
0, /* tp_as_mapping */
|
|
(hashfunc)0, /* tp_hash */
|
|
(ternaryfunc)0, /* tp_call */
|
|
(reprfunc)PySwigObject_str, /* tp_str */
|
|
PyObject_GenericGetAttr, /* tp_getattro */
|
|
0, /* tp_setattro */
|
|
0, /* tp_as_buffer */
|
|
Py_TPFLAGS_DEFAULT, /* tp_flags */
|
|
swigobject_doc, /* tp_doc */
|
|
0, /* tp_traverse */
|
|
0, /* tp_clear */
|
|
0, /* tp_richcompare */
|
|
0, /* tp_weaklistoffset */
|
|
#if PY_VERSION_HEX >= 0x02020000
|
|
0, /* tp_iter */
|
|
0, /* tp_iternext */
|
|
swigobject_methods, /* tp_methods */
|
|
0, /* tp_members */
|
|
0, /* tp_getset */
|
|
0, /* tp_base */
|
|
0, /* tp_dict */
|
|
0, /* tp_descr_get */
|
|
0, /* tp_descr_set */
|
|
0, /* tp_dictoffset */
|
|
0, /* tp_init */
|
|
0, /* tp_alloc */
|
|
0, /* tp_new */
|
|
0, /* tp_free */
|
|
0, /* tp_is_gc */
|
|
0, /* tp_bases */
|
|
0, /* tp_mro */
|
|
0, /* tp_cache */
|
|
0, /* tp_subclasses */
|
|
0, /* tp_weaklist */
|
|
#endif
|
|
#if PY_VERSION_HEX >= 0x02030000
|
|
0, /* tp_del */
|
|
#endif
|
|
#ifdef COUNT_ALLOCS
|
|
0,0,0,0 /* tp_alloc -> tp_next */
|
|
#endif
|
|
};
|
|
pyswigobject_type = tmp;
|
|
pyswigobject_type.ob_type = &PyType_Type;
|
|
type_init = 1;
|
|
}
|
|
return &pyswigobject_type;
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
PySwigObject_New(void *ptr, swig_type_info *ty, int own)
|
|
{
|
|
PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
|
|
if (sobj) {
|
|
sobj->ptr = ptr;
|
|
sobj->ty = ty;
|
|
sobj->own = own;
|
|
sobj->next = 0;
|
|
}
|
|
return (PyObject *)sobj;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* Implements a simple Swig Packed type, and use it instead of string
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
typedef struct {
|
|
PyObject_HEAD
|
|
void *pack;
|
|
swig_type_info *ty;
|
|
size_t size;
|
|
} PySwigPacked;
|
|
|
|
SWIGRUNTIME int
|
|
PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
|
|
{
|
|
char result[SWIG_BUFFER_SIZE];
|
|
fputs("<Swig Packed ", fp);
|
|
if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
|
|
fputs("at ", fp);
|
|
fputs(result, fp);
|
|
}
|
|
fputs(v->ty->name,fp);
|
|
fputs(">", fp);
|
|
return 0;
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
PySwigPacked_repr(PySwigPacked *v)
|
|
{
|
|
char result[SWIG_BUFFER_SIZE];
|
|
if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
|
|
return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
|
|
} else {
|
|
return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
|
|
}
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
PySwigPacked_str(PySwigPacked *v)
|
|
{
|
|
char result[SWIG_BUFFER_SIZE];
|
|
if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
|
|
return PyString_FromFormat("%s%s", result, v->ty->name);
|
|
} else {
|
|
return PyString_FromString(v->ty->name);
|
|
}
|
|
}
|
|
|
|
SWIGRUNTIME int
|
|
PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
|
|
{
|
|
size_t i = v->size;
|
|
size_t j = w->size;
|
|
int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
|
|
return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
|
|
}
|
|
|
|
SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
|
|
|
|
SWIGRUNTIME PyTypeObject*
|
|
PySwigPacked_type(void) {
|
|
static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
|
|
return type;
|
|
}
|
|
|
|
SWIGRUNTIMEINLINE int
|
|
PySwigPacked_Check(PyObject *op) {
|
|
return ((op)->ob_type == _PySwigPacked_type())
|
|
|| (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
|
|
}
|
|
|
|
SWIGRUNTIME void
|
|
PySwigPacked_dealloc(PyObject *v)
|
|
{
|
|
if (PySwigPacked_Check(v)) {
|
|
PySwigPacked *sobj = (PySwigPacked *) v;
|
|
free(sobj->pack);
|
|
}
|
|
PyObject_DEL(v);
|
|
}
|
|
|
|
SWIGRUNTIME PyTypeObject*
|
|
_PySwigPacked_type(void) {
|
|
static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
|
|
static PyTypeObject pyswigpacked_type;
|
|
static int type_init = 0;
|
|
if (!type_init) {
|
|
const PyTypeObject tmp
|
|
= {
|
|
PyObject_HEAD_INIT(NULL)
|
|
0, /* ob_size */
|
|
(char *)"PySwigPacked", /* tp_name */
|
|
sizeof(PySwigPacked), /* tp_basicsize */
|
|
0, /* tp_itemsize */
|
|
(destructor)PySwigPacked_dealloc, /* tp_dealloc */
|
|
(printfunc)PySwigPacked_print, /* tp_print */
|
|
(getattrfunc)0, /* tp_getattr */
|
|
(setattrfunc)0, /* tp_setattr */
|
|
(cmpfunc)PySwigPacked_compare, /* tp_compare */
|
|
(reprfunc)PySwigPacked_repr, /* tp_repr */
|
|
0, /* tp_as_number */
|
|
0, /* tp_as_sequence */
|
|
0, /* tp_as_mapping */
|
|
(hashfunc)0, /* tp_hash */
|
|
(ternaryfunc)0, /* tp_call */
|
|
(reprfunc)PySwigPacked_str, /* tp_str */
|
|
PyObject_GenericGetAttr, /* tp_getattro */
|
|
0, /* tp_setattro */
|
|
0, /* tp_as_buffer */
|
|
Py_TPFLAGS_DEFAULT, /* tp_flags */
|
|
swigpacked_doc, /* tp_doc */
|
|
0, /* tp_traverse */
|
|
0, /* tp_clear */
|
|
0, /* tp_richcompare */
|
|
0, /* tp_weaklistoffset */
|
|
#if PY_VERSION_HEX >= 0x02020000
|
|
0, /* tp_iter */
|
|
0, /* tp_iternext */
|
|
0, /* tp_methods */
|
|
0, /* tp_members */
|
|
0, /* tp_getset */
|
|
0, /* tp_base */
|
|
0, /* tp_dict */
|
|
0, /* tp_descr_get */
|
|
0, /* tp_descr_set */
|
|
0, /* tp_dictoffset */
|
|
0, /* tp_init */
|
|
0, /* tp_alloc */
|
|
0, /* tp_new */
|
|
0, /* tp_free */
|
|
0, /* tp_is_gc */
|
|
0, /* tp_bases */
|
|
0, /* tp_mro */
|
|
0, /* tp_cache */
|
|
0, /* tp_subclasses */
|
|
0, /* tp_weaklist */
|
|
#endif
|
|
#if PY_VERSION_HEX >= 0x02030000
|
|
0, /* tp_del */
|
|
#endif
|
|
#ifdef COUNT_ALLOCS
|
|
0,0,0,0 /* tp_alloc -> tp_next */
|
|
#endif
|
|
};
|
|
pyswigpacked_type = tmp;
|
|
pyswigpacked_type.ob_type = &PyType_Type;
|
|
type_init = 1;
|
|
}
|
|
return &pyswigpacked_type;
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
|
|
{
|
|
PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
|
|
if (sobj) {
|
|
void *pack = malloc(size);
|
|
if (pack) {
|
|
memcpy(pack, ptr, size);
|
|
sobj->pack = pack;
|
|
sobj->ty = ty;
|
|
sobj->size = size;
|
|
} else {
|
|
PyObject_DEL((PyObject *) sobj);
|
|
sobj = 0;
|
|
}
|
|
}
|
|
return (PyObject *) sobj;
|
|
}
|
|
|
|
SWIGRUNTIME swig_type_info *
|
|
PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
|
|
{
|
|
if (PySwigPacked_Check(obj)) {
|
|
PySwigPacked *sobj = (PySwigPacked *)obj;
|
|
if (sobj->size != size) return 0;
|
|
memcpy(ptr, sobj->pack, size);
|
|
return sobj->ty;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* pointers/data manipulation
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
SWIGRUNTIMEINLINE PyObject *
|
|
_SWIG_This(void)
|
|
{
|
|
return PyString_FromString("this");
|
|
}
|
|
|
|
SWIGRUNTIME PyObject *
|
|
SWIG_This(void)
|
|
{
|
|
static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
|
|
return swig_this;
|
|
}
|
|
|
|
/* #define SWIG_PYTHON_SLOW_GETSET_THIS */
|
|
|
|
SWIGRUNTIME PySwigObject *
|
|
SWIG_Python_GetSwigThis(PyObject *pyobj)
|
|
{
|
|
if (PySwigObject_Check(pyobj)) {
|
|
return (PySwigObject *) pyobj;
|
|
} else {
|
|
PyObject *obj = 0;
|
|
#if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
|
|
if (PyInstance_Check(pyobj)) {
|
|
obj = _PyInstance_Lookup(pyobj, SWIG_This());
|
|
} else {
|
|
PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
|
|
if (dictptr != NULL) {
|
|
PyObject *dict = *dictptr;
|
|
obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
|
|
} else {
|
|
#ifdef PyWeakref_CheckProxy
|
|
if (PyWeakref_CheckProxy(pyobj)) {
|
|
PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
|
|
return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
|
|
}
|
|
#endif
|
|
obj = PyObject_GetAttr(pyobj,SWIG_This());
|
|
if (obj) {
|
|
Py_DECREF(obj);
|
|
} else {
|
|
if (PyErr_Occurred()) PyErr_Clear();
|
|
return 0;
|
|
}
|
|
}
|
|
}
|
|
#else
|
|
obj = PyObject_GetAttr(pyobj,SWIG_This());
|
|
if (obj) {
|
|
Py_DECREF(obj);
|
|
} else {
|
|
if (PyErr_Occurred()) PyErr_Clear();
|
|
return 0;
|
|
}
|
|
#endif
|
|
if (obj && !PySwigObject_Check(obj)) {
|
|
/* a PyObject is called 'this', try to get the 'real this'
|
|
PySwigObject from it */
|
|
return SWIG_Python_GetSwigThis(obj);
|
|
}
|
|
return (PySwigObject *)obj;
|
|
}
|
|
}
|
|
|
|
/* Acquire a pointer value */
|
|
|
|
SWIGRUNTIME int
|
|
SWIG_Python_AcquirePtr(PyObject *obj, int own) {
|
|
if (own) {
|
|
PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
|
|
if (sobj) {
|
|
int oldown = sobj->own;
|
|
sobj->own = own;
|
|
return oldown;
|
|
}
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
/* Convert a pointer value */
|
|
|
|
SWIGRUNTIME int
|
|
SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
|
|
if (!obj) return SWIG_ERROR;
|
|
if (obj == Py_None) {
|
|
if (ptr) *ptr = 0;
|
|
return SWIG_OK;
|
|
} else {
|
|
PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
|
|
while (sobj) {
|
|
void *vptr = sobj->ptr;
|
|
if (ty) {
|
|
swig_type_info *to = sobj->ty;
|
|
if (to == ty) {
|
|
/* no type cast needed */
|
|
if (ptr) *ptr = vptr;
|
|
break;
|
|
} else {
|
|
swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
|
|
if (!tc) {
|
|
sobj = (PySwigObject *)sobj->next;
|
|
} else {
|
|
if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
|
|
break;
|
|
}
|
|
}
|
|
} else {
|
|
if (ptr) *ptr = vptr;
|
|
break;
|
|
}
|
|
}
|
|
if (sobj) {
|
|
if (own) *own = sobj->own;
|
|
if (flags & SWIG_POINTER_DISOWN) {
|
|
sobj->own = 0;
|
|
}
|
|
return SWIG_OK;
|
|
} else {
|
|
int res = SWIG_ERROR;
|
|
if (flags & SWIG_POINTER_IMPLICIT_CONV) {
|
|
PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
|
|
if (data && !data->implicitconv) {
|
|
PyObject *klass = data->klass;
|
|
if (klass) {
|
|
PyObject *impconv;
|
|
data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
|
|
impconv = SWIG_Python_CallFunctor(klass, obj);
|
|
data->implicitconv = 0;
|
|
if (PyErr_Occurred()) {
|
|
PyErr_Clear();
|
|
impconv = 0;
|
|
}
|
|
if (impconv) {
|
|
PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
|
|
if (iobj) {
|
|
void *vptr;
|
|
res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
|
|
if (SWIG_IsOK(res)) {
|
|
if (ptr) {
|
|
*ptr = vptr;
|
|
/* transfer the ownership to 'ptr' */
|
|
iobj->own = 0;
|
|
res = SWIG_AddCast(res);
|
|
res = SWIG_AddNewMask(res);
|
|
} else {
|
|
res = SWIG_AddCast(res);
|
|
}
|
|
}
|
|
}
|
|
Py_DECREF(impconv);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Convert a function ptr value */
|
|
|
|
SWIGRUNTIME int
|
|
SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
|
|
if (!PyCFunction_Check(obj)) {
|
|
return SWIG_ConvertPtr(obj, ptr, ty, 0);
|
|
} else {
|
|
void *vptr = 0;
|
|
|
|
/* here we get the method pointer for callbacks */
|
|
const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
|
|
const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
|
|
if (desc) {
|
|
desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
|
|
if (!desc) return SWIG_ERROR;
|
|
}
|
|
if (ty) {
|
|
swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
|
|
if (!tc) return SWIG_ERROR;
|
|
*ptr = SWIG_TypeCast(tc,vptr);
|
|
} else {
|
|
*ptr = vptr;
|
|
}
|
|
return SWIG_OK;
|
|
}
|
|
}
|
|
|
|
/* Convert a packed value value */
|
|
|
|
SWIGRUNTIME int
|
|
SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
|
|
swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
|
|
if (!to) return SWIG_ERROR;
|
|
if (ty) {
|
|
if (to != ty) {
|
|
/* check type cast? */
|
|
swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
|
|
if (!tc) return SWIG_ERROR;
|
|
}
|
|
}
|
|
return SWIG_OK;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* Create a new pointer object
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/*
|
|
Create a new instance object, whitout calling __init__, and set the
|
|
'this' attribute.
|
|
*/
|
|
|
|
SWIGRUNTIME PyObject*
|
|
SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
|
|
{
|
|
#if (PY_VERSION_HEX >= 0x02020000)
|
|
PyObject *inst = 0;
|
|
PyObject *newraw = data->newraw;
|
|
if (newraw) {
|
|
inst = PyObject_Call(newraw, data->newargs, NULL);
|
|
if (inst) {
|
|
#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
|
|
PyObject **dictptr = _PyObject_GetDictPtr(inst);
|
|
if (dictptr != NULL) {
|
|
PyObject *dict = *dictptr;
|
|
if (dict == NULL) {
|
|
dict = PyDict_New();
|
|
*dictptr = dict;
|
|
PyDict_SetItem(dict, SWIG_This(), swig_this);
|
|
}
|
|
}
|
|
#else
|
|
PyObject *key = SWIG_This();
|
|
PyObject_SetAttr(inst, key, swig_this);
|
|
#endif
|
|
}
|
|
} else {
|
|
PyObject *dict = PyDict_New();
|
|
PyDict_SetItem(dict, SWIG_This(), swig_this);
|
|
inst = PyInstance_NewRaw(data->newargs, dict);
|
|
Py_DECREF(dict);
|
|
}
|
|
return inst;
|
|
#else
|
|
#if (PY_VERSION_HEX >= 0x02010000)
|
|
PyObject *inst;
|
|
PyObject *dict = PyDict_New();
|
|
PyDict_SetItem(dict, SWIG_This(), swig_this);
|
|
inst = PyInstance_NewRaw(data->newargs, dict);
|
|
Py_DECREF(dict);
|
|
return (PyObject *) inst;
|
|
#else
|
|
PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
|
|
if (inst == NULL) {
|
|
return NULL;
|
|
}
|
|
inst->in_class = (PyClassObject *)data->newargs;
|
|
Py_INCREF(inst->in_class);
|
|
inst->in_dict = PyDict_New();
|
|
if (inst->in_dict == NULL) {
|
|
Py_DECREF(inst);
|
|
return NULL;
|
|
}
|
|
#ifdef Py_TPFLAGS_HAVE_WEAKREFS
|
|
inst->in_weakreflist = NULL;
|
|
#endif
|
|
#ifdef Py_TPFLAGS_GC
|
|
PyObject_GC_Init(inst);
|
|
#endif
|
|
PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
|
|
return (PyObject *) inst;
|
|
#endif
|
|
#endif
|
|
}
|
|
|
|
SWIGRUNTIME void
|
|
SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
|
|
{
|
|
PyObject *dict;
|
|
#if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
|
|
PyObject **dictptr = _PyObject_GetDictPtr(inst);
|
|
if (dictptr != NULL) {
|
|
dict = *dictptr;
|
|
if (dict == NULL) {
|
|
dict = PyDict_New();
|
|
*dictptr = dict;
|
|
}
|
|
PyDict_SetItem(dict, SWIG_This(), swig_this);
|
|
return;
|
|
}
|
|
#endif
|
|
dict = PyObject_GetAttrString(inst, "__dict__");
|
|
PyDict_SetItem(dict, SWIG_This(), swig_this);
|
|
Py_DECREF(dict);
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *
|
|
SWIG_Python_InitShadowInstance(PyObject *args) {
|
|
PyObject *obj[2];
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
|
|
return NULL;
|
|
} else {
|
|
PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
|
|
if (sthis) {
|
|
PySwigObject_append((PyObject*) sthis, obj[1]);
|
|
} else {
|
|
SWIG_Python_SetSwigThis(obj[0], obj[1]);
|
|
}
|
|
return SWIG_Py_Void();
|
|
}
|
|
}
|
|
|
|
/* Create a new pointer object */
|
|
|
|
SWIGRUNTIME PyObject *
|
|
SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
|
|
if (!ptr) {
|
|
return SWIG_Py_Void();
|
|
} else {
|
|
int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
|
|
PyObject *robj = PySwigObject_New(ptr, type, own);
|
|
PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
|
|
if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
|
|
PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
|
|
if (inst) {
|
|
Py_DECREF(robj);
|
|
robj = inst;
|
|
}
|
|
}
|
|
return robj;
|
|
}
|
|
}
|
|
|
|
/* Create a new packed object */
|
|
|
|
SWIGRUNTIMEINLINE PyObject *
|
|
SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
|
|
return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------------*
|
|
* Get type list
|
|
* -----------------------------------------------------------------------------*/
|
|
|
|
#ifdef SWIG_LINK_RUNTIME
|
|
void *SWIG_ReturnGlobalTypeList(void *);
|
|
#endif
|
|
|
|
SWIGRUNTIME swig_module_info *
|
|
SWIG_Python_GetModule(void) {
|
|
static void *type_pointer = (void *)0;
|
|
/* first check if module already created */
|
|
if (!type_pointer) {
|
|
#ifdef SWIG_LINK_RUNTIME
|
|
type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
|
|
#else
|
|
type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
|
|
(char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
|
|
if (PyErr_Occurred()) {
|
|
PyErr_Clear();
|
|
type_pointer = (void *)0;
|
|
}
|
|
#endif
|
|
}
|
|
return (swig_module_info *) type_pointer;
|
|
}
|
|
|
|
#if PY_MAJOR_VERSION < 2
|
|
/* PyModule_AddObject function was introduced in Python 2.0. The following function
|
|
is copied out of Python/modsupport.c in python version 2.3.4 */
|
|
SWIGINTERN int
|
|
PyModule_AddObject(PyObject *m, char *name, PyObject *o)
|
|
{
|
|
PyObject *dict;
|
|
if (!PyModule_Check(m)) {
|
|
PyErr_SetString(PyExc_TypeError,
|
|
"PyModule_AddObject() needs module as first arg");
|
|
return SWIG_ERROR;
|
|
}
|
|
if (!o) {
|
|
PyErr_SetString(PyExc_TypeError,
|
|
"PyModule_AddObject() needs non-NULL value");
|
|
return SWIG_ERROR;
|
|
}
|
|
|
|
dict = PyModule_GetDict(m);
|
|
if (dict == NULL) {
|
|
/* Internal error -- modules must have a dict! */
|
|
PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
|
|
PyModule_GetName(m));
|
|
return SWIG_ERROR;
|
|
}
|
|
if (PyDict_SetItemString(dict, name, o))
|
|
return SWIG_ERROR;
|
|
Py_DECREF(o);
|
|
return SWIG_OK;
|
|
}
|
|
#endif
|
|
|
|
SWIGRUNTIME void
|
|
SWIG_Python_DestroyModule(void *vptr)
|
|
{
|
|
swig_module_info *swig_module = (swig_module_info *) vptr;
|
|
swig_type_info **types = swig_module->types;
|
|
size_t i;
|
|
for (i =0; i < swig_module->size; ++i) {
|
|
swig_type_info *ty = types[i];
|
|
if (ty->owndata) {
|
|
PySwigClientData *data = (PySwigClientData *) ty->clientdata;
|
|
if (data) PySwigClientData_Del(data);
|
|
}
|
|
}
|
|
Py_DECREF(SWIG_This());
|
|
}
|
|
|
|
SWIGRUNTIME void
|
|
SWIG_Python_SetModule(swig_module_info *swig_module) {
|
|
static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
|
|
|
|
PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
|
|
swig_empty_runtime_method_table);
|
|
PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
|
|
if (pointer && module) {
|
|
PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
|
|
} else {
|
|
Py_XDECREF(pointer);
|
|
}
|
|
}
|
|
|
|
/* The python cached type query */
|
|
SWIGRUNTIME PyObject *
|
|
SWIG_Python_TypeCache() {
|
|
static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
|
|
return cache;
|
|
}
|
|
|
|
SWIGRUNTIME swig_type_info *
|
|
SWIG_Python_TypeQuery(const char *type)
|
|
{
|
|
PyObject *cache = SWIG_Python_TypeCache();
|
|
PyObject *key = PyString_FromString(type);
|
|
PyObject *obj = PyDict_GetItem(cache, key);
|
|
swig_type_info *descriptor;
|
|
if (obj) {
|
|
descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
|
|
} else {
|
|
swig_module_info *swig_module = SWIG_Python_GetModule();
|
|
descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
|
|
if (descriptor) {
|
|
obj = PyCObject_FromVoidPtr(descriptor, NULL);
|
|
PyDict_SetItem(cache, key, obj);
|
|
Py_DECREF(obj);
|
|
}
|
|
}
|
|
Py_DECREF(key);
|
|
return descriptor;
|
|
}
|
|
|
|
/*
|
|
For backward compatibility only
|
|
*/
|
|
#define SWIG_POINTER_EXCEPTION 0
|
|
#define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
|
|
#define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
|
|
|
|
SWIGRUNTIME int
|
|
SWIG_Python_AddErrMesg(const char* mesg, int infront)
|
|
{
|
|
if (PyErr_Occurred()) {
|
|
PyObject *type = 0;
|
|
PyObject *value = 0;
|
|
PyObject *traceback = 0;
|
|
PyErr_Fetch(&type, &value, &traceback);
|
|
if (value) {
|
|
PyObject *old_str = PyObject_Str(value);
|
|
Py_XINCREF(type);
|
|
PyErr_Clear();
|
|
if (infront) {
|
|
PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
|
|
} else {
|
|
PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
|
|
}
|
|
Py_DECREF(old_str);
|
|
}
|
|
return 1;
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
SWIGRUNTIME int
|
|
SWIG_Python_ArgFail(int argnum)
|
|
{
|
|
if (PyErr_Occurred()) {
|
|
/* add information about failing argument */
|
|
char mesg[256];
|
|
PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
|
|
return SWIG_Python_AddErrMesg(mesg, 1);
|
|
} else {
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
SWIGRUNTIMEINLINE const char *
|
|
PySwigObject_GetDesc(PyObject *self)
|
|
{
|
|
PySwigObject *v = (PySwigObject *)self;
|
|
swig_type_info *ty = v ? v->ty : 0;
|
|
return ty ? ty->str : (char*)"";
|
|
}
|
|
|
|
SWIGRUNTIME void
|
|
SWIG_Python_TypeError(const char *type, PyObject *obj)
|
|
{
|
|
if (type) {
|
|
#if defined(SWIG_COBJECT_TYPES)
|
|
if (obj && PySwigObject_Check(obj)) {
|
|
const char *otype = (const char *) PySwigObject_GetDesc(obj);
|
|
if (otype) {
|
|
PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
|
|
type, otype);
|
|
return;
|
|
}
|
|
} else
|
|
#endif
|
|
{
|
|
const char *otype = (obj ? obj->ob_type->tp_name : 0);
|
|
if (otype) {
|
|
PyObject *str = PyObject_Str(obj);
|
|
const char *cstr = str ? PyString_AsString(str) : 0;
|
|
if (cstr) {
|
|
PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
|
|
type, otype, cstr);
|
|
} else {
|
|
PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
|
|
type, otype);
|
|
}
|
|
Py_XDECREF(str);
|
|
return;
|
|
}
|
|
}
|
|
PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
|
|
} else {
|
|
PyErr_Format(PyExc_TypeError, "unexpected type is received");
|
|
}
|
|
}
|
|
|
|
|
|
/* Convert a pointer value, signal an exception on a type mismatch */
|
|
SWIGRUNTIME void *
|
|
SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
|
|
void *result;
|
|
if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
|
|
PyErr_Clear();
|
|
if (flags & SWIG_POINTER_EXCEPTION) {
|
|
SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
|
|
SWIG_Python_ArgFail(argnum);
|
|
}
|
|
}
|
|
return result;
|
|
}
|
|
|
|
|
|
#ifdef __cplusplus
|
|
#if 0
|
|
{ /* cc-mode */
|
|
#endif
|
|
}
|
|
#endif
|
|
|
|
|
|
|
|
#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
|
|
|
|
#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
|
|
|
|
|
|
|
|
/* -------- TYPES TABLE (BEGIN) -------- */
|
|
|
|
#define SWIGTYPE_p_buffer swig_types[0]
|
|
#define SWIGTYPE_p_char swig_types[1]
|
|
#define SWIGTYPE_p_form_ops_t swig_types[2]
|
|
#define SWIGTYPE_p_int swig_types[3]
|
|
#define SWIGTYPE_p_long swig_types[4]
|
|
#define SWIGTYPE_p_unsigned_char swig_types[5]
|
|
#define SWIGTYPE_p_unsigned_int swig_types[6]
|
|
#define SWIGTYPE_p_unsigned_long swig_types[7]
|
|
#define SWIGTYPE_p_wxANIHandler swig_types[8]
|
|
#define SWIGTYPE_p_wxAcceleratorEntry swig_types[9]
|
|
#define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
|
|
#define SWIGTYPE_p_wxActivateEvent swig_types[11]
|
|
#define SWIGTYPE_p_wxAppTraits swig_types[12]
|
|
#define SWIGTYPE_p_wxArrayString swig_types[13]
|
|
#define SWIGTYPE_p_wxBMPHandler swig_types[14]
|
|
#define SWIGTYPE_p_wxBitmap swig_types[15]
|
|
#define SWIGTYPE_p_wxBoxSizer swig_types[16]
|
|
#define SWIGTYPE_p_wxButton swig_types[17]
|
|
#define SWIGTYPE_p_wxCURHandler swig_types[18]
|
|
#define SWIGTYPE_p_wxCaret swig_types[19]
|
|
#define SWIGTYPE_p_wxChildFocusEvent swig_types[20]
|
|
#define SWIGTYPE_p_wxClipboardTextEvent swig_types[21]
|
|
#define SWIGTYPE_p_wxCloseEvent swig_types[22]
|
|
#define SWIGTYPE_p_wxColour swig_types[23]
|
|
#define SWIGTYPE_p_wxCommandEvent swig_types[24]
|
|
#define SWIGTYPE_p_wxContextMenuEvent swig_types[25]
|
|
#define SWIGTYPE_p_wxControl swig_types[26]
|
|
#define SWIGTYPE_p_wxControlWithItems swig_types[27]
|
|
#define SWIGTYPE_p_wxCursor swig_types[28]
|
|
#define SWIGTYPE_p_wxDC swig_types[29]
|
|
#define SWIGTYPE_p_wxDateEvent swig_types[30]
|
|
#define SWIGTYPE_p_wxDateTime swig_types[31]
|
|
#define SWIGTYPE_p_wxDisplayChangedEvent swig_types[32]
|
|
#define SWIGTYPE_p_wxDouble swig_types[33]
|
|
#define SWIGTYPE_p_wxDropFilesEvent swig_types[34]
|
|
#define SWIGTYPE_p_wxDuplexMode swig_types[35]
|
|
#define SWIGTYPE_p_wxEraseEvent swig_types[36]
|
|
#define SWIGTYPE_p_wxEvent swig_types[37]
|
|
#define SWIGTYPE_p_wxEventLoop swig_types[38]
|
|
#define SWIGTYPE_p_wxEventLoopActivator swig_types[39]
|
|
#define SWIGTYPE_p_wxEvtHandler swig_types[40]
|
|
#define SWIGTYPE_p_wxFSFile swig_types[41]
|
|
#define SWIGTYPE_p_wxFileSystem swig_types[42]
|
|
#define SWIGTYPE_p_wxFileSystemHandler swig_types[43]
|
|
#define SWIGTYPE_p_wxFlexGridSizer swig_types[44]
|
|
#define SWIGTYPE_p_wxFocusEvent swig_types[45]
|
|
#define SWIGTYPE_p_wxFont swig_types[46]
|
|
#define SWIGTYPE_p_wxFrame swig_types[47]
|
|
#define SWIGTYPE_p_wxGBPosition swig_types[48]
|
|
#define SWIGTYPE_p_wxGBSizerItem swig_types[49]
|
|
#define SWIGTYPE_p_wxGBSpan swig_types[50]
|
|
#define SWIGTYPE_p_wxGIFHandler swig_types[51]
|
|
#define SWIGTYPE_p_wxGridBagSizer swig_types[52]
|
|
#define SWIGTYPE_p_wxGridSizer swig_types[53]
|
|
#define SWIGTYPE_p_wxHelpEvent__Origin swig_types[54]
|
|
#define SWIGTYPE_p_wxICOHandler swig_types[55]
|
|
#define SWIGTYPE_p_wxIconizeEvent swig_types[56]
|
|
#define SWIGTYPE_p_wxIdleEvent swig_types[57]
|
|
#define SWIGTYPE_p_wxImage swig_types[58]
|
|
#define SWIGTYPE_p_wxImageHandler swig_types[59]
|
|
#define SWIGTYPE_p_wxImageHistogram swig_types[60]
|
|
#define SWIGTYPE_p_wxImage_HSVValue swig_types[61]
|
|
#define SWIGTYPE_p_wxImage_RGBValue swig_types[62]
|
|
#define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[63]
|
|
#define SWIGTYPE_p_wxInitDialogEvent swig_types[64]
|
|
#define SWIGTYPE_p_wxInputStream swig_types[65]
|
|
#define SWIGTYPE_p_wxInternetFSHandler swig_types[66]
|
|
#define SWIGTYPE_p_wxItemContainer swig_types[67]
|
|
#define SWIGTYPE_p_wxJPEGHandler swig_types[68]
|
|
#define SWIGTYPE_p_wxKeyEvent swig_types[69]
|
|
#define SWIGTYPE_p_wxLayoutConstraints swig_types[70]
|
|
#define SWIGTYPE_p_wxMaximizeEvent swig_types[71]
|
|
#define SWIGTYPE_p_wxMemoryFSHandler swig_types[72]
|
|
#define SWIGTYPE_p_wxMenu swig_types[73]
|
|
#define SWIGTYPE_p_wxMenuBar swig_types[74]
|
|
#define SWIGTYPE_p_wxMenuBarBase swig_types[75]
|
|
#define SWIGTYPE_p_wxMenuEvent swig_types[76]
|
|
#define SWIGTYPE_p_wxMenuItem swig_types[77]
|
|
#define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[78]
|
|
#define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[79]
|
|
#define SWIGTYPE_p_wxMouseEvent swig_types[80]
|
|
#define SWIGTYPE_p_wxMoveEvent swig_types[81]
|
|
#define SWIGTYPE_p_wxNavigationKeyEvent swig_types[82]
|
|
#define SWIGTYPE_p_wxNcPaintEvent swig_types[83]
|
|
#define SWIGTYPE_p_wxNotifyEvent swig_types[84]
|
|
#define SWIGTYPE_p_wxObject swig_types[85]
|
|
#define SWIGTYPE_p_wxOutputStream swig_types[86]
|
|
#define SWIGTYPE_p_wxPCXHandler swig_types[87]
|
|
#define SWIGTYPE_p_wxPNGHandler swig_types[88]
|
|
#define SWIGTYPE_p_wxPNMHandler swig_types[89]
|
|
#define SWIGTYPE_p_wxPaintEvent swig_types[90]
|
|
#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[91]
|
|
#define SWIGTYPE_p_wxPaperSize swig_types[92]
|
|
#define SWIGTYPE_p_wxPoint swig_types[93]
|
|
#define SWIGTYPE_p_wxPoint2D swig_types[94]
|
|
#define SWIGTYPE_p_wxPropagateOnce swig_types[95]
|
|
#define SWIGTYPE_p_wxPropagationDisabler swig_types[96]
|
|
#define SWIGTYPE_p_wxPyApp swig_types[97]
|
|
#define SWIGTYPE_p_wxPyCommandEvent swig_types[98]
|
|
#define SWIGTYPE_p_wxPyDropTarget swig_types[99]
|
|
#define SWIGTYPE_p_wxPyEvent swig_types[100]
|
|
#define SWIGTYPE_p_wxPyFileSystemHandler swig_types[101]
|
|
#define SWIGTYPE_p_wxPyImageHandler swig_types[102]
|
|
#define SWIGTYPE_p_wxPyInputStream swig_types[103]
|
|
#define SWIGTYPE_p_wxPySizer swig_types[104]
|
|
#define SWIGTYPE_p_wxPyValidator swig_types[105]
|
|
#define SWIGTYPE_p_wxQuantize swig_types[106]
|
|
#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[107]
|
|
#define SWIGTYPE_p_wxRealPoint swig_types[108]
|
|
#define SWIGTYPE_p_wxRect swig_types[109]
|
|
#define SWIGTYPE_p_wxRect2D swig_types[110]
|
|
#define SWIGTYPE_p_wxRegion swig_types[111]
|
|
#define SWIGTYPE_p_wxScrollEvent swig_types[112]
|
|
#define SWIGTYPE_p_wxScrollWinEvent swig_types[113]
|
|
#define SWIGTYPE_p_wxSetCursorEvent swig_types[114]
|
|
#define SWIGTYPE_p_wxShowEvent swig_types[115]
|
|
#define SWIGTYPE_p_wxSize swig_types[116]
|
|
#define SWIGTYPE_p_wxSizeEvent swig_types[117]
|
|
#define SWIGTYPE_p_wxSizer swig_types[118]
|
|
#define SWIGTYPE_p_wxSizerFlags swig_types[119]
|
|
#define SWIGTYPE_p_wxSizerItem swig_types[120]
|
|
#define SWIGTYPE_p_wxStaticBox swig_types[121]
|
|
#define SWIGTYPE_p_wxStaticBoxSizer swig_types[122]
|
|
#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[123]
|
|
#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[124]
|
|
#define SWIGTYPE_p_wxTGAHandler swig_types[125]
|
|
#define SWIGTYPE_p_wxTIFFHandler swig_types[126]
|
|
#define SWIGTYPE_p_wxToolTip swig_types[127]
|
|
#define SWIGTYPE_p_wxUpdateUIEvent swig_types[128]
|
|
#define SWIGTYPE_p_wxValidator swig_types[129]
|
|
#define SWIGTYPE_p_wxVisualAttributes swig_types[130]
|
|
#define SWIGTYPE_p_wxWindow swig_types[131]
|
|
#define SWIGTYPE_p_wxWindowCreateEvent swig_types[132]
|
|
#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[133]
|
|
#define SWIGTYPE_p_wxXPMHandler swig_types[134]
|
|
#define SWIGTYPE_p_wxZipFSHandler swig_types[135]
|
|
static swig_type_info *swig_types[137];
|
|
static swig_module_info swig_module = {swig_types, 136, 0, 0, 0, 0};
|
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
|
|
|
/* -------- TYPES TABLE (END) -------- */
|
|
|
|
#if (PY_VERSION_HEX <= 0x02000000)
|
|
# if !defined(SWIG_PYTHON_CLASSIC)
|
|
# error "This python version requires to use swig with the '-classic' option"
|
|
# endif
|
|
#endif
|
|
#if (PY_VERSION_HEX <= 0x02020000)
|
|
# error "This python version requires to use swig with the '-nomodern' option"
|
|
#endif
|
|
#if (PY_VERSION_HEX <= 0x02020000)
|
|
# error "This python version requires to use swig with the '-nomodernargs' option"
|
|
#endif
|
|
#ifndef METH_O
|
|
# error "This python version requires to use swig with the '-nofastunpack' option"
|
|
#endif
|
|
|
|
/*-----------------------------------------------
|
|
@(target):= _core_.so
|
|
------------------------------------------------*/
|
|
#define SWIG_init init_core_
|
|
|
|
#define SWIG_name "_core_"
|
|
|
|
#define SWIGVERSION 0x010329
|
|
|
|
|
|
#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
|
|
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
|
|
|
|
|
|
#include <stdexcept>
|
|
|
|
|
|
namespace swig {
|
|
class PyObject_ptr {
|
|
protected:
|
|
PyObject *_obj;
|
|
|
|
public:
|
|
PyObject_ptr() :_obj(0)
|
|
{
|
|
}
|
|
|
|
PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
|
|
{
|
|
Py_XINCREF(_obj);
|
|
}
|
|
|
|
PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
|
|
{
|
|
if (initial_ref) Py_XINCREF(_obj);
|
|
}
|
|
|
|
PyObject_ptr & operator=(const PyObject_ptr& item)
|
|
{
|
|
Py_XINCREF(item._obj);
|
|
Py_XDECREF(_obj);
|
|
_obj = item._obj;
|
|
return *this;
|
|
}
|
|
|
|
~PyObject_ptr()
|
|
{
|
|
Py_XDECREF(_obj);
|
|
}
|
|
|
|
operator PyObject *() const
|
|
{
|
|
return _obj;
|
|
}
|
|
|
|
PyObject *operator->() const
|
|
{
|
|
return _obj;
|
|
}
|
|
};
|
|
}
|
|
|
|
|
|
namespace swig {
|
|
struct PyObject_var : PyObject_ptr {
|
|
PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
|
|
|
|
PyObject_var & operator = (PyObject* obj)
|
|
{
|
|
Py_XDECREF(_obj);
|
|
_obj = obj;
|
|
return *this;
|
|
}
|
|
};
|
|
}
|
|
|
|
|
|
#include "wx/wxPython/wxPython_int.h"
|
|
#include "wx/wxPython/pyclasses.h"
|
|
#include "wx/wxPython/twoitem.h"
|
|
|
|
|
|
#ifndef wxPyUSE_EXPORT
|
|
// Helper functions for dealing with SWIG objects and such. These are
|
|
// located here so they know about the SWIG types and functions declared
|
|
// in the wrapper code.
|
|
|
|
#include <wx/hashmap.h>
|
|
WX_DECLARE_STRING_HASH_MAP( swig_type_info*, wxPyTypeInfoHashMap );
|
|
|
|
|
|
// Maintains a hashmap of className to swig_type_info pointers. Given the
|
|
// name of a class either looks up the type info in the cache, or scans the
|
|
// SWIG tables for it.
|
|
extern PyObject* wxPyPtrTypeMap;
|
|
static
|
|
swig_type_info* wxPyFindSwigType(const wxChar* className) {
|
|
|
|
static wxPyTypeInfoHashMap* typeInfoCache = NULL;
|
|
|
|
if (typeInfoCache == NULL)
|
|
typeInfoCache = new wxPyTypeInfoHashMap;
|
|
|
|
wxString name(className);
|
|
swig_type_info* swigType = (*typeInfoCache)[name];
|
|
|
|
if (! swigType) {
|
|
// it wasn't in the cache, so look it up from SWIG
|
|
name.Append(wxT(" *"));
|
|
swigType = SWIG_TypeQuery(name.mb_str());
|
|
|
|
// if it still wasn't found, try looking for a mapped name
|
|
if (!swigType) {
|
|
PyObject* item;
|
|
name = className;
|
|
|
|
if ((item = PyDict_GetItemString(wxPyPtrTypeMap,
|
|
(char*)(const char*)name.mbc_str())) != NULL) {
|
|
name = wxString(PyString_AsString(item), *wxConvCurrent);
|
|
name.Append(wxT(" *"));
|
|
swigType = SWIG_TypeQuery(name.mb_str());
|
|
}
|
|
}
|
|
if (swigType) {
|
|
// and add it to the map if found
|
|
(*typeInfoCache)[className] = swigType;
|
|
}
|
|
}
|
|
return swigType;
|
|
}
|
|
|
|
|
|
// Check if a class name is a type known to SWIG
|
|
bool wxPyCheckSwigType(const wxChar* className) {
|
|
|
|
swig_type_info* swigType = wxPyFindSwigType(className);
|
|
return swigType != NULL;
|
|
}
|
|
|
|
|
|
// Given a pointer to a C++ object and a class name, construct a Python proxy
|
|
// object for it.
|
|
PyObject* wxPyConstructObject(void* ptr,
|
|
const wxChar* className,
|
|
int setThisOwn) {
|
|
|
|
swig_type_info* swigType = wxPyFindSwigType(className);
|
|
wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyConstructObject"));
|
|
|
|
return SWIG_Python_NewPointerObj(ptr, swigType, setThisOwn);
|
|
}
|
|
|
|
|
|
// Extract a pointer to the wrapped C++ object from a Python proxy object.
|
|
// Ensures that the proxy object is of the specified (or derived) type. If
|
|
// not able to perform the conversion then a Python exception is set and the
|
|
// error should be handled properly in the caller. Returns True on success.
|
|
bool wxPyConvertSwigPtr(PyObject* obj, void **ptr,
|
|
const wxChar* className) {
|
|
|
|
swig_type_info* swigType = wxPyFindSwigType(className);
|
|
wxCHECK_MSG(swigType != NULL, false, wxT("Unknown type in wxPyConvertSwigPtr"));
|
|
|
|
return SWIG_Python_ConvertPtr(obj, ptr, swigType, SWIG_POINTER_EXCEPTION) != -1;
|
|
}
|
|
|
|
|
|
|
|
// Make a SWIGified pointer object suitable for a .this attribute
|
|
PyObject* wxPyMakeSwigPtr(void* ptr, const wxChar* className) {
|
|
|
|
PyObject* robj = NULL;
|
|
|
|
swig_type_info* swigType = wxPyFindSwigType(className);
|
|
wxCHECK_MSG(swigType != NULL, NULL, wxT("Unknown type in wxPyMakeSwigPtr"));
|
|
|
|
robj = PySwigObject_New(ptr, swigType, 0);
|
|
return robj;
|
|
}
|
|
|
|
|
|
// Python's PyInstance_Check does not return True for instances of new-style
|
|
// classes. This should get close enough for both new and old classes but I
|
|
// should re-evaluate the need for doing instance checks...
|
|
bool wxPyInstance_Check(PyObject* obj) {
|
|
return PyObject_HasAttrString(obj, "__class__") != 0;
|
|
}
|
|
|
|
|
|
// This one checks if the object is an instance of a SWIG proxy class (it has
|
|
// a .this attribute, and the .this attribute is a PySwigObject.)
|
|
bool wxPySwigInstance_Check(PyObject* obj) {
|
|
static PyObject* this_str = NULL;
|
|
if (this_str == NULL)
|
|
this_str = PyString_FromString("this");
|
|
|
|
PyObject* this_attr = PyObject_GetAttr(obj, this_str);
|
|
if (this_attr) {
|
|
bool retval = (PySwigObject_Check(this_attr) != 0);
|
|
Py_DECREF(this_attr);
|
|
return retval;
|
|
}
|
|
|
|
PyErr_Clear();
|
|
return false;
|
|
}
|
|
|
|
|
|
// Export a C API in a struct. Other modules will be able to load this from
|
|
// the wx._core_ module and will then have safe access to these functions,
|
|
// even if they are located in another shared library.
|
|
static wxPyCoreAPI API = {
|
|
|
|
wxPyCheckSwigType,
|
|
wxPyConstructObject,
|
|
wxPyConvertSwigPtr,
|
|
wxPyMakeSwigPtr,
|
|
|
|
wxPyBeginAllowThreads,
|
|
wxPyEndAllowThreads,
|
|
wxPyBeginBlockThreads,
|
|
wxPyEndBlockThreads,
|
|
|
|
wxPy_ConvertList,
|
|
|
|
wxString_in_helper,
|
|
Py2wxString,
|
|
wx2PyString,
|
|
|
|
byte_LIST_helper,
|
|
int_LIST_helper,
|
|
long_LIST_helper,
|
|
string_LIST_helper,
|
|
wxPoint_LIST_helper,
|
|
wxBitmap_LIST_helper,
|
|
wxString_LIST_helper,
|
|
wxAcceleratorEntry_LIST_helper,
|
|
|
|
wxSize_helper,
|
|
wxPoint_helper,
|
|
wxRealPoint_helper,
|
|
wxRect_helper,
|
|
wxColour_helper,
|
|
wxPoint2D_helper,
|
|
|
|
wxPySimple_typecheck,
|
|
wxColour_typecheck,
|
|
|
|
wxPyCBH_setCallbackInfo,
|
|
wxPyCBH_findCallback,
|
|
wxPyCBH_callCallback,
|
|
wxPyCBH_callCallbackObj,
|
|
wxPyCBH_delete,
|
|
|
|
wxPyMake_wxObject,
|
|
wxPyMake_wxSizer,
|
|
wxPyPtrTypeMap_Add,
|
|
wxPy2int_seq_helper,
|
|
wxPy4int_seq_helper,
|
|
wxArrayString2PyList_helper,
|
|
wxArrayInt2PyList_helper,
|
|
|
|
wxPyClientData_dtor,
|
|
wxPyUserData_dtor,
|
|
wxPyOORClientData_dtor,
|
|
|
|
wxPyCBInputStream_create,
|
|
wxPyCBInputStream_copy,
|
|
|
|
wxPyInstance_Check,
|
|
wxPySwigInstance_Check,
|
|
|
|
wxPyCheckForApp,
|
|
|
|
wxArrayDouble2PyList_helper,
|
|
wxPoint2D_LIST_helper,
|
|
wxRect2D_helper,
|
|
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
#if !WXWIN_COMPATIBILITY_2_4
|
|
#define wxHIDE_READONLY 0
|
|
#endif
|
|
|
|
|
|
#define SWIG_From_long PyInt_FromLong
|
|
|
|
|
|
SWIGINTERNINLINE PyObject *
|
|
SWIG_From_int (int value)
|
|
{
|
|
return SWIG_From_long (value);
|
|
}
|
|
|
|
static const wxString wxPyEmptyString(wxEmptyString);
|
|
SWIGINTERN wxString wxObject_GetClassName(wxObject *self){
|
|
return self->GetClassInfo()->GetClassName();
|
|
}
|
|
SWIGINTERN void wxObject_Destroy(wxObject *self){
|
|
delete self;
|
|
}
|
|
|
|
#ifndef __WXMAC__
|
|
#define wxCURSOR_COPY_ARROW wxCURSOR_ARROW
|
|
#endif
|
|
|
|
|
|
#include <limits.h>
|
|
#ifndef LLONG_MIN
|
|
# define LLONG_MIN LONG_LONG_MIN
|
|
#endif
|
|
#ifndef LLONG_MAX
|
|
# define LLONG_MAX LONG_LONG_MAX
|
|
#endif
|
|
#ifndef ULLONG_MAX
|
|
# define ULLONG_MAX ULONG_LONG_MAX
|
|
#endif
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_long (PyObject* obj, long* val)
|
|
{
|
|
if (PyNumber_Check(obj)) {
|
|
if (val) *val = PyInt_AsLong(obj);
|
|
return SWIG_OK;
|
|
}
|
|
return SWIG_TypeError;
|
|
}
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_int (PyObject * obj, int *val)
|
|
{
|
|
long v;
|
|
int res = SWIG_AsVal_long (obj, &v);
|
|
if (SWIG_IsOK(res)) {
|
|
if ((v < INT_MIN || v > INT_MAX)) {
|
|
return SWIG_OverflowError;
|
|
} else {
|
|
if (val) *val = static_cast< int >(v);
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
|
|
SWIGINTERN bool wxSize___eq__(wxSize *self,PyObject *other){
|
|
wxSize temp, *obj = &temp;
|
|
if ( other == Py_None ) return false;
|
|
if ( ! wxSize_helper(other, &obj) ) {
|
|
PyErr_Clear();
|
|
return false;
|
|
}
|
|
return self->operator==(*obj);
|
|
}
|
|
SWIGINTERN bool wxSize___ne__(wxSize *self,PyObject *other){
|
|
wxSize temp, *obj = &temp;
|
|
if ( other == Py_None ) return true;
|
|
if ( ! wxSize_helper(other, &obj)) {
|
|
PyErr_Clear();
|
|
return true;
|
|
}
|
|
return self->operator!=(*obj);
|
|
}
|
|
|
|
#include <float.h>
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_double (PyObject *obj, double* val)
|
|
{
|
|
if (PyNumber_Check(obj)) {
|
|
if (val) *val = PyFloat_AsDouble(obj);
|
|
return SWIG_OK;
|
|
}
|
|
return SWIG_TypeError;
|
|
}
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_float (PyObject * obj, float *val)
|
|
{
|
|
double v;
|
|
int res = SWIG_AsVal_double (obj, &v);
|
|
if (SWIG_IsOK(res)) {
|
|
if ((v < -FLT_MAX || v > FLT_MAX)) {
|
|
return SWIG_OverflowError;
|
|
} else {
|
|
if (val) *val = static_cast< float >(v);
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
|
|
SWIGINTERN PyObject *wxSize_Get(wxSize *self){
|
|
//wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
PyObject* tup = PyTuple_New(2);
|
|
PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
|
|
PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
|
|
//wxPyEndBlockThreads(blocked);
|
|
return tup;
|
|
}
|
|
|
|
#define SWIG_From_double PyFloat_FromDouble
|
|
|
|
SWIGINTERN bool wxRealPoint___eq__(wxRealPoint *self,PyObject *other){
|
|
wxRealPoint temp, *obj = &temp;
|
|
if ( other == Py_None ) return false;
|
|
if ( ! wxRealPoint_helper(other, &obj) ) {
|
|
PyErr_Clear();
|
|
return false;
|
|
}
|
|
return self->operator==(*obj);
|
|
}
|
|
SWIGINTERN bool wxRealPoint___ne__(wxRealPoint *self,PyObject *other){
|
|
wxRealPoint temp, *obj = &temp;
|
|
if ( other == Py_None ) return true;
|
|
if ( ! wxRealPoint_helper(other, &obj)) {
|
|
PyErr_Clear();
|
|
return true;
|
|
}
|
|
return self->operator!=(*obj);
|
|
}
|
|
SWIGINTERN void wxRealPoint_Set(wxRealPoint *self,double x,double y){
|
|
self->x = x;
|
|
self->y = y;
|
|
}
|
|
SWIGINTERN PyObject *wxRealPoint_Get(wxRealPoint *self){
|
|
//wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
PyObject* tup = PyTuple_New(2);
|
|
PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->x));
|
|
PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->y));
|
|
//PyEndBlockThreads(blocked);
|
|
return tup;
|
|
}
|
|
SWIGINTERN bool wxPoint___eq__(wxPoint *self,PyObject *other){
|
|
wxPoint temp, *obj = &temp;
|
|
if ( other == Py_None ) return false;
|
|
if ( ! wxPoint_helper(other, &obj) ) {
|
|
PyErr_Clear();
|
|
return false;
|
|
}
|
|
return self->operator==(*obj);
|
|
}
|
|
SWIGINTERN bool wxPoint___ne__(wxPoint *self,PyObject *other){
|
|
wxPoint temp, *obj = &temp;
|
|
if ( other == Py_None ) return true;
|
|
if ( ! wxPoint_helper(other, &obj)) {
|
|
PyErr_Clear();
|
|
return true;
|
|
}
|
|
return self->operator!=(*obj);
|
|
}
|
|
SWIGINTERN void wxPoint_Set(wxPoint *self,long x,long y){
|
|
self->x = x;
|
|
self->y = y;
|
|
}
|
|
SWIGINTERN PyObject *wxPoint_Get(wxPoint *self){
|
|
//wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
PyObject* tup = PyTuple_New(2);
|
|
PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
|
|
PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
|
|
//wxPyEndBlockThreads(blocked);
|
|
return tup;
|
|
}
|
|
SWIGINTERN bool wxRect___eq__(wxRect *self,PyObject *other){
|
|
wxRect temp, *obj = &temp;
|
|
if ( other == Py_None ) return false;
|
|
if ( ! wxRect_helper(other, &obj) ) {
|
|
PyErr_Clear();
|
|
return false;
|
|
}
|
|
return self->operator==(*obj);
|
|
}
|
|
SWIGINTERN bool wxRect___ne__(wxRect *self,PyObject *other){
|
|
wxRect temp, *obj = &temp;
|
|
if ( other == Py_None ) return true;
|
|
if ( ! wxRect_helper(other, &obj)) {
|
|
PyErr_Clear();
|
|
return true;
|
|
}
|
|
return self->operator!=(*obj);
|
|
}
|
|
SWIGINTERN void wxRect_Set(wxRect *self,int x=0,int y=0,int width=0,int height=0){
|
|
self->x = x;
|
|
self->y = y;
|
|
self->width = width;
|
|
self->height = height;
|
|
}
|
|
SWIGINTERN PyObject *wxRect_Get(wxRect *self){
|
|
//wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
PyObject* tup = PyTuple_New(4);
|
|
PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
|
|
PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
|
|
PyTuple_SET_ITEM(tup, 2, PyInt_FromLong(self->width));
|
|
PyTuple_SET_ITEM(tup, 3, PyInt_FromLong(self->height));
|
|
//wxPyEndBlockThreads(blocked);
|
|
return tup;
|
|
}
|
|
|
|
PyObject* wxIntersectRect(wxRect* r1, wxRect* r2) {
|
|
wxRegion reg1(*r1);
|
|
wxRegion reg2(*r2);
|
|
wxRect dest(0,0,0,0);
|
|
PyObject* obj;
|
|
|
|
reg1.Intersect(reg2);
|
|
dest = reg1.GetBox();
|
|
|
|
if (dest != wxRect(0,0,0,0)) {
|
|
//wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
wxRect* newRect = new wxRect(dest);
|
|
obj = wxPyConstructObject((void*)newRect, wxT("wxRect"), true);
|
|
//wxPyEndBlockThreads(blocked);
|
|
return obj;
|
|
}
|
|
Py_INCREF(Py_None);
|
|
return Py_None;
|
|
}
|
|
|
|
SWIGINTERN bool wxPoint2D___eq__(wxPoint2D *self,PyObject *other){
|
|
wxPoint2D temp, *obj = &temp;
|
|
if ( other == Py_None ) return false;
|
|
if ( ! wxPoint2D_helper(other, &obj) ) {
|
|
PyErr_Clear();
|
|
return false;
|
|
}
|
|
return self->operator==(*obj);
|
|
}
|
|
SWIGINTERN bool wxPoint2D___ne__(wxPoint2D *self,PyObject *other){
|
|
wxPoint2D temp, *obj = &temp;
|
|
if ( other == Py_None ) return true;
|
|
if ( ! wxPoint2D_helper(other, &obj)) {
|
|
PyErr_Clear();
|
|
return true;
|
|
}
|
|
return self->operator!=(*obj);
|
|
}
|
|
SWIGINTERN void wxPoint2D_Set(wxPoint2D *self,double x=0,double y=0){
|
|
self->m_x = x;
|
|
self->m_y = y;
|
|
}
|
|
SWIGINTERN PyObject *wxPoint2D_Get(wxPoint2D *self){
|
|
//wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
PyObject* tup = PyTuple_New(2);
|
|
PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x));
|
|
PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y));
|
|
//wxPyEndBlockThreads(blocked);
|
|
return tup;
|
|
}
|
|
SWIGINTERN bool wxRect2D___eq__(wxRect2D *self,PyObject *other){
|
|
wxRect2D temp, *obj = &temp;
|
|
if ( other == Py_None ) return false;
|
|
if ( ! wxRect2D_helper(other, &obj) ) {
|
|
PyErr_Clear();
|
|
return false;
|
|
}
|
|
return self->operator==(*obj);
|
|
}
|
|
SWIGINTERN bool wxRect2D___ne__(wxRect2D *self,PyObject *other){
|
|
wxRect2D temp, *obj = &temp;
|
|
if ( other == Py_None ) return true;
|
|
if ( ! wxRect2D_helper(other, &obj)) {
|
|
PyErr_Clear();
|
|
return true;
|
|
}
|
|
return self->operator!=(*obj);
|
|
}
|
|
SWIGINTERN void wxRect2D_Set(wxRect2D *self,wxDouble x=0,wxDouble y=0,wxDouble width=0,wxDouble height=0){
|
|
self->m_x = x;
|
|
self->m_y = y;
|
|
self->m_width = width;
|
|
self->m_height = height;
|
|
}
|
|
SWIGINTERN PyObject *wxRect2D_Get(wxRect2D *self){
|
|
//wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
PyObject* tup = PyTuple_New(4);
|
|
PyTuple_SET_ITEM(tup, 0, PyFloat_FromDouble(self->m_x));
|
|
PyTuple_SET_ITEM(tup, 1, PyFloat_FromDouble(self->m_y));
|
|
PyTuple_SET_ITEM(tup, 2, PyFloat_FromDouble(self->m_width));
|
|
PyTuple_SET_ITEM(tup, 3, PyFloat_FromDouble(self->m_height));
|
|
//wxPyEndBlockThreads(blocked);
|
|
return tup;
|
|
}
|
|
|
|
#include "wx/wxPython/pyistream.h"
|
|
|
|
SWIGINTERN wxPyInputStream *new_wxPyInputStream(PyObject *p){
|
|
wxInputStream* wxis = wxPyCBInputStream::create(p);
|
|
if (wxis)
|
|
return new wxPyInputStream(wxis);
|
|
else
|
|
return NULL;
|
|
}
|
|
|
|
SWIGINTERN swig_type_info*
|
|
SWIG_pchar_descriptor()
|
|
{
|
|
static int init = 0;
|
|
static swig_type_info* info = 0;
|
|
if (!init) {
|
|
info = SWIG_TypeQuery("_p_char");
|
|
init = 1;
|
|
}
|
|
return info;
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE PyObject *
|
|
SWIG_FromCharPtrAndSize(const char* carray, size_t size)
|
|
{
|
|
if (carray) {
|
|
if (size > INT_MAX) {
|
|
swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
|
|
return pchar_descriptor ?
|
|
SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void();
|
|
} else {
|
|
return PyString_FromStringAndSize(carray, static_cast< int >(size));
|
|
}
|
|
} else {
|
|
return SWIG_Py_Void();
|
|
}
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE PyObject *
|
|
SWIG_From_char (char c)
|
|
{
|
|
return SWIG_FromCharPtrAndSize(&c,1);
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE PyObject*
|
|
SWIG_From_unsigned_SS_long (unsigned long value)
|
|
{
|
|
return (value > LONG_MAX) ?
|
|
PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE PyObject *
|
|
SWIG_From_size_t (size_t value)
|
|
{
|
|
return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
|
|
}
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsCharPtrAndSize(PyObject *obj, char** cptr, size_t* psize, int *alloc)
|
|
{
|
|
if (PyString_Check(obj)) {
|
|
char *cstr; Py_ssize_t len;
|
|
PyString_AsStringAndSize(obj, &cstr, &len);
|
|
if (cptr) {
|
|
if (alloc) {
|
|
/*
|
|
In python the user should not be able to modify the inner
|
|
string representation. To warranty that, if you define
|
|
SWIG_PYTHON_SAFE_CSTRINGS, a new/copy of the python string
|
|
buffer is always returned.
|
|
|
|
The default behavior is just to return the pointer value,
|
|
so, be careful.
|
|
*/
|
|
#if defined(SWIG_PYTHON_SAFE_CSTRINGS)
|
|
if (*alloc != SWIG_OLDOBJ)
|
|
#else
|
|
if (*alloc == SWIG_NEWOBJ)
|
|
#endif
|
|
{
|
|
*cptr = reinterpret_cast< char* >(memcpy((new char[len + 1]), cstr, sizeof(char)*(len + 1)));
|
|
*alloc = SWIG_NEWOBJ;
|
|
}
|
|
else {
|
|
*cptr = cstr;
|
|
*alloc = SWIG_OLDOBJ;
|
|
}
|
|
} else {
|
|
*cptr = PyString_AsString(obj);
|
|
}
|
|
}
|
|
if (psize) *psize = len + 1;
|
|
return SWIG_OK;
|
|
} else {
|
|
swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
|
|
if (pchar_descriptor) {
|
|
void* vptr = 0;
|
|
if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
|
|
if (cptr) *cptr = (char *) vptr;
|
|
if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
|
|
if (alloc) *alloc = SWIG_OLDOBJ;
|
|
return SWIG_OK;
|
|
}
|
|
}
|
|
}
|
|
return SWIG_TypeError;
|
|
}
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsCharArray(PyObject * obj, char *val, size_t size)
|
|
{
|
|
char* cptr = 0; size_t csize = 0; int alloc = SWIG_OLDOBJ;
|
|
int res = SWIG_AsCharPtrAndSize(obj, &cptr, &csize, &alloc);
|
|
if (SWIG_IsOK(res)) {
|
|
if ((csize == size + 1) && cptr && !(cptr[csize-1])) --csize;
|
|
if (csize <= size) {
|
|
if (val) {
|
|
if (csize) memcpy(val, cptr, csize*sizeof(char));
|
|
if (csize < size) memset(val + csize, 0, (size - csize)*sizeof(char));
|
|
}
|
|
if (alloc == SWIG_NEWOBJ) {
|
|
delete[] cptr;
|
|
res = SWIG_DelNewMask(res);
|
|
}
|
|
return res;
|
|
}
|
|
if (alloc == SWIG_NEWOBJ) delete[] cptr;
|
|
}
|
|
return SWIG_TypeError;
|
|
}
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_char (PyObject * obj, char *val)
|
|
{
|
|
int res = SWIG_AsCharArray(obj, val, 1);
|
|
if (!SWIG_IsOK(res)) {
|
|
long v;
|
|
res = SWIG_AddCast(SWIG_AsVal_long (obj, &v));
|
|
if (SWIG_IsOK(res)) {
|
|
if ((CHAR_MIN <= v) && (v <= CHAR_MAX)) {
|
|
if (val) *val = static_cast< char >(v);
|
|
} else {
|
|
res = SWIG_OverflowError;
|
|
}
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
|
|
SWIGINTERN void wxOutputStream_write(wxOutputStream *self,PyObject *obj){
|
|
// We use only strings for the streams, not unicode
|
|
PyObject* str = PyObject_Str(obj);
|
|
if (! str) {
|
|
PyErr_SetString(PyExc_TypeError, "Unable to convert to string");
|
|
return;
|
|
}
|
|
self->Write(PyString_AS_STRING(str),
|
|
PyString_GET_SIZE(str));
|
|
Py_DECREF(str);
|
|
}
|
|
|
|
#include "wx/wxPython/pyistream.h"
|
|
|
|
|
|
class wxPyFileSystemHandler : public wxFileSystemHandler
|
|
{
|
|
public:
|
|
wxPyFileSystemHandler() : wxFileSystemHandler() {}
|
|
|
|
DEC_PYCALLBACK_BOOL_STRING_pure(CanOpen);
|
|
DEC_PYCALLBACK_FSF_FSSTRING_pure(OpenFile);
|
|
DEC_PYCALLBACK_STRING_STRINGINT_pure(FindFirst);
|
|
DEC_PYCALLBACK_STRING__pure(FindNext);
|
|
|
|
wxString GetProtocol(const wxString& location) {
|
|
return wxFileSystemHandler::GetProtocol(location);
|
|
}
|
|
|
|
wxString GetLeftLocation(const wxString& location) {
|
|
return wxFileSystemHandler::GetLeftLocation(location);
|
|
}
|
|
|
|
wxString GetAnchor(const wxString& location) {
|
|
return wxFileSystemHandler::GetAnchor(location);
|
|
}
|
|
|
|
wxString GetRightLocation(const wxString& location) {
|
|
return wxFileSystemHandler::GetRightLocation(location);
|
|
}
|
|
|
|
wxString GetMimeTypeFromExt(const wxString& location) {
|
|
return wxFileSystemHandler::GetMimeTypeFromExt(location);
|
|
}
|
|
|
|
PYPRIVATE;
|
|
};
|
|
|
|
|
|
IMP_PYCALLBACK_BOOL_STRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, CanOpen);
|
|
IMP_PYCALLBACK_FSF_FSSTRING_pure(wxPyFileSystemHandler, wxFileSystemHandler, OpenFile);
|
|
IMP_PYCALLBACK_STRING_STRINGINT_pure(wxPyFileSystemHandler, wxFileSystemHandler, FindFirst);
|
|
IMP_PYCALLBACK_STRING__pure(wxPyFileSystemHandler, wxFileSystemHandler, FindNext);
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_bool (PyObject *obj, bool *val)
|
|
{
|
|
if (obj == Py_True) {
|
|
if (val) *val = true;
|
|
return SWIG_OK;
|
|
} else if (obj == Py_False) {
|
|
if (val) *val = false;
|
|
return SWIG_OK;
|
|
} else {
|
|
long v = 0;
|
|
int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
|
|
if (SWIG_IsOK(res) && val) *val = v ? true : false;
|
|
return res;
|
|
}
|
|
}
|
|
|
|
SWIGINTERN wxString wxFileSystem_URLToFileName(wxString const &url){
|
|
wxFileName fname = wxFileSystem::URLToFileName(url);
|
|
return fname.GetFullPath();
|
|
}
|
|
|
|
void __wxMemoryFSHandler_AddFile_wxImage(const wxString& filename,
|
|
wxImage& image,
|
|
long type) {
|
|
wxMemoryFSHandler::AddFile(filename, image, type);
|
|
}
|
|
|
|
void __wxMemoryFSHandler_AddFile_wxBitmap(const wxString& filename,
|
|
const wxBitmap& bitmap,
|
|
long type) {
|
|
wxMemoryFSHandler::AddFile(filename, bitmap, type);
|
|
}
|
|
|
|
void __wxMemoryFSHandler_AddFile_Data(const wxString& filename,
|
|
PyObject* data) {
|
|
if (! PyString_Check(data)) {
|
|
wxPyBLOCK_THREADS(PyErr_SetString(PyExc_TypeError,
|
|
"Expected string object"));
|
|
return;
|
|
}
|
|
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
void* ptr = (void*)PyString_AsString(data);
|
|
size_t size = PyString_Size(data);
|
|
wxPyEndBlockThreads(blocked);
|
|
|
|
wxMemoryFSHandler::AddFile(filename, ptr, size);
|
|
}
|
|
|
|
|
|
#include "wx/wxPython/pyistream.h"
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
|
|
{
|
|
long v = 0;
|
|
if (SWIG_AsVal_long(obj, &v) && v < 0) {
|
|
return SWIG_TypeError;
|
|
}
|
|
else if (val)
|
|
*val = (unsigned long)v;
|
|
return SWIG_OK;
|
|
}
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
|
|
{
|
|
unsigned long v;
|
|
int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
|
|
if (SWIG_IsOK(res)) {
|
|
if ((v > UCHAR_MAX)) {
|
|
return SWIG_OverflowError;
|
|
} else {
|
|
if (val) *val = static_cast< unsigned char >(v);
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
|
|
|
|
SWIGINTERNINLINE PyObject *
|
|
SWIG_From_unsigned_SS_char (unsigned char value)
|
|
{
|
|
return SWIG_From_unsigned_SS_long (value);
|
|
}
|
|
|
|
SWIGINTERN unsigned long wxImageHistogram_GetCount(wxImageHistogram *self,unsigned long key){
|
|
wxImageHistogramEntry e = (*self)[key];
|
|
return e.value;
|
|
}
|
|
SWIGINTERN unsigned long wxImageHistogram_GetCountRGB(wxImageHistogram *self,byte r,byte g,byte b){
|
|
unsigned long key = wxImageHistogram::MakeKey(r, g, b);
|
|
wxImageHistogramEntry e = (*self)[key];
|
|
return e.value;
|
|
}
|
|
SWIGINTERN unsigned long wxImageHistogram_GetCountColour(wxImageHistogram *self,wxColour const &colour){
|
|
unsigned long key = wxImageHistogram::MakeKey(colour.Red(),
|
|
colour.Green(),
|
|
colour.Blue());
|
|
wxImageHistogramEntry e = (*self)[key];
|
|
return e.value;
|
|
}
|
|
|
|
// Pull the nested class out to the top level for SWIG's sake
|
|
#define wxImage_RGBValue wxImage::RGBValue
|
|
#define wxImage_HSVValue wxImage::HSVValue
|
|
|
|
SWIGINTERN wxImage *new_wxImage(int width=0,int height=0,bool clear=true){
|
|
if (width > 0 && height > 0)
|
|
return new wxImage(width, height, clear);
|
|
else
|
|
return new wxImage;
|
|
}
|
|
SWIGINTERN wxImage *new_wxImage(wxBitmap const &bitmap){
|
|
return new wxImage(bitmap.ConvertToImage());
|
|
}
|
|
SWIGINTERN wxImage *new_wxImage(int width,int height,buffer data,int DATASIZE){
|
|
if (DATASIZE != width*height*3) {
|
|
wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
|
|
return NULL;
|
|
}
|
|
|
|
// Copy the source data so the wxImage can clean it up later
|
|
buffer copy = (buffer)malloc(DATASIZE);
|
|
if (copy == NULL) {
|
|
wxPyBLOCK_THREADS(PyErr_NoMemory());
|
|
return NULL;
|
|
}
|
|
memcpy(copy, data, DATASIZE);
|
|
return new wxImage(width, height, copy, false);
|
|
}
|
|
SWIGINTERN wxImage *new_wxImage(int width,int height,buffer data,int DATASIZE,buffer alpha,int ALPHASIZE){
|
|
if (DATASIZE != width*height*3) {
|
|
wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
|
|
return NULL;
|
|
}
|
|
if (ALPHASIZE != width*height) {
|
|
wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
|
|
return NULL;
|
|
}
|
|
|
|
// Copy the source data so the wxImage can clean it up later
|
|
buffer dcopy = (buffer)malloc(DATASIZE);
|
|
if (dcopy == NULL) {
|
|
wxPyBLOCK_THREADS(PyErr_NoMemory());
|
|
return NULL;
|
|
}
|
|
memcpy(dcopy, data, DATASIZE);
|
|
|
|
buffer acopy = (buffer)malloc(ALPHASIZE);
|
|
if (acopy == NULL) {
|
|
wxPyBLOCK_THREADS(PyErr_NoMemory());
|
|
return NULL;
|
|
}
|
|
memcpy(acopy, alpha, ALPHASIZE);
|
|
|
|
return new wxImage(width, height, dcopy, acopy, false);
|
|
}
|
|
SWIGINTERN wxSize wxImage_GetSize(wxImage *self){
|
|
wxSize size(self->GetWidth(), self->GetHeight());
|
|
return size;
|
|
}
|
|
SWIGINTERN PyObject *wxImage_GetData(wxImage *self){
|
|
buffer data = self->GetData();
|
|
int len = self->GetWidth() * self->GetHeight() * 3;
|
|
PyObject* rv;
|
|
wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len));
|
|
return rv;
|
|
}
|
|
SWIGINTERN void wxImage_SetData(wxImage *self,buffer data,int DATASIZE){
|
|
if (DATASIZE != self->GetWidth() * self->GetHeight() * 3) {
|
|
wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
|
|
return;
|
|
}
|
|
buffer copy = (buffer)malloc(DATASIZE);
|
|
if (copy == NULL) {
|
|
wxPyBLOCK_THREADS(PyErr_NoMemory());
|
|
return;
|
|
}
|
|
memcpy(copy, data, DATASIZE);
|
|
self->SetData(copy, false);
|
|
// wxImage takes ownership of copy...
|
|
}
|
|
SWIGINTERN PyObject *wxImage_GetDataBuffer(wxImage *self){
|
|
buffer data = self->GetData();
|
|
int len = self->GetWidth() * self->GetHeight() * 3;
|
|
PyObject* rv;
|
|
wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
|
|
return rv;
|
|
}
|
|
SWIGINTERN void wxImage_SetDataBuffer(wxImage *self,buffer data,int DATASIZE){
|
|
if (DATASIZE != self->GetWidth() * self->GetHeight() * 3) {
|
|
wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
|
|
return;
|
|
}
|
|
self->SetData(data, true);
|
|
}
|
|
SWIGINTERN PyObject *wxImage_GetAlphaData(wxImage *self){
|
|
buffer data = self->GetAlpha();
|
|
if (! data) {
|
|
RETURN_NONE();
|
|
} else {
|
|
int len = self->GetWidth() * self->GetHeight();
|
|
PyObject* rv;
|
|
wxPyBLOCK_THREADS( rv = PyString_FromStringAndSize((char*)data, len) );
|
|
return rv;
|
|
}
|
|
}
|
|
SWIGINTERN void wxImage_SetAlphaData(wxImage *self,buffer alpha,int ALPHASIZE){
|
|
if (ALPHASIZE != self->GetWidth() * self->GetHeight()) {
|
|
wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
|
|
return;
|
|
}
|
|
buffer acopy = (buffer)malloc(ALPHASIZE);
|
|
if (acopy == NULL) {
|
|
wxPyBLOCK_THREADS(PyErr_NoMemory());
|
|
return;
|
|
}
|
|
memcpy(acopy, alpha, ALPHASIZE);
|
|
self->SetAlpha(acopy, false);
|
|
// wxImage takes ownership of acopy...
|
|
}
|
|
SWIGINTERN PyObject *wxImage_GetAlphaBuffer(wxImage *self){
|
|
buffer data = self->GetAlpha();
|
|
int len = self->GetWidth() * self->GetHeight();
|
|
PyObject* rv;
|
|
wxPyBLOCK_THREADS( rv = PyBuffer_FromReadWriteMemory(data, len) );
|
|
return rv;
|
|
}
|
|
SWIGINTERN void wxImage_SetAlphaBuffer(wxImage *self,buffer alpha,int ALPHASIZE){
|
|
if (ALPHASIZE != self->GetWidth() * self->GetHeight()) {
|
|
wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
|
|
return;
|
|
}
|
|
self->SetAlpha(alpha, true);
|
|
}
|
|
SWIGINTERN PyObject *wxImage_GetHandlers(){
|
|
wxList& list = wxImage::GetHandlers();
|
|
return wxPy_ConvertList(&list);
|
|
}
|
|
SWIGINTERN wxBitmap wxImage_ConvertToBitmap(wxImage *self,int depth=-1){
|
|
wxBitmap bitmap(*self, depth);
|
|
return bitmap;
|
|
}
|
|
SWIGINTERN wxBitmap wxImage_ConvertToMonoBitmap(wxImage *self,byte red,byte green,byte blue){
|
|
wxImage mono = self->ConvertToMono( red, green, blue );
|
|
wxBitmap bitmap( mono, 1 );
|
|
return bitmap;
|
|
}
|
|
|
|
wxImage* _ImageFromBuffer(int width, int height,
|
|
buffer data, int DATASIZE,
|
|
buffer alpha=NULL, int ALPHASIZE=0)
|
|
{
|
|
if (DATASIZE != width*height*3) {
|
|
wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
|
|
return NULL;
|
|
}
|
|
if (alpha != NULL) {
|
|
if (ALPHASIZE != width*height) {
|
|
wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
|
|
return NULL;
|
|
}
|
|
return new wxImage(width, height, data, alpha, true);
|
|
}
|
|
return new wxImage(width, height, data, true);
|
|
}
|
|
|
|
static const wxString wxPyIMAGE_OPTION_FILENAME(wxIMAGE_OPTION_FILENAME);
|
|
static const wxString wxPyIMAGE_OPTION_BMP_FORMAT(wxIMAGE_OPTION_BMP_FORMAT);
|
|
static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_X(wxIMAGE_OPTION_CUR_HOTSPOT_X);
|
|
static const wxString wxPyIMAGE_OPTION_CUR_HOTSPOT_Y(wxIMAGE_OPTION_CUR_HOTSPOT_Y);
|
|
static const wxString wxPyIMAGE_OPTION_RESOLUTION(wxIMAGE_OPTION_RESOLUTION);
|
|
static const wxString wxPyIMAGE_OPTION_RESOLUTIONX(wxIMAGE_OPTION_RESOLUTIONX);
|
|
static const wxString wxPyIMAGE_OPTION_RESOLUTIONY(wxIMAGE_OPTION_RESOLUTIONY);
|
|
static const wxString wxPyIMAGE_OPTION_RESOLUTIONUNIT(wxIMAGE_OPTION_RESOLUTIONUNIT);
|
|
static const wxString wxPyIMAGE_OPTION_QUALITY(wxIMAGE_OPTION_QUALITY);
|
|
static const wxString wxPyIMAGE_OPTION_BITSPERSAMPLE(wxIMAGE_OPTION_BITSPERSAMPLE);
|
|
static const wxString wxPyIMAGE_OPTION_SAMPLESPERPIXEL(wxIMAGE_OPTION_SAMPLESPERPIXEL);
|
|
static const wxString wxPyIMAGE_OPTION_COMPRESSION(wxIMAGE_OPTION_COMPRESSION);
|
|
static const wxString wxPyIMAGE_OPTION_IMAGEDESCRIPTOR(wxIMAGE_OPTION_IMAGEDESCRIPTOR);
|
|
static const wxString wxPyIMAGE_OPTION_PNG_FORMAT(wxIMAGE_OPTION_PNG_FORMAT);
|
|
static const wxString wxPyIMAGE_OPTION_PNG_BITDEPTH(wxIMAGE_OPTION_PNG_BITDEPTH);
|
|
|
|
#include <wx/imagtga.h>
|
|
|
|
|
|
#include <wx/quantize.h>
|
|
|
|
SWIGINTERN bool wxQuantize_Quantize(wxImage const &src,wxImage &dest,int desiredNoColours=236,int flags=wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE){
|
|
return wxQuantize::Quantize(src, dest,
|
|
//NULL, // palette
|
|
desiredNoColours,
|
|
NULL, // eightBitData
|
|
flags);
|
|
}
|
|
SWIGINTERN void wxEvtHandler_Connect(wxEvtHandler *self,int id,int lastId,int eventType,PyObject *func){
|
|
if (PyCallable_Check(func)) {
|
|
self->Connect(id, lastId, eventType,
|
|
(wxObjectEventFunction) &wxPyCallback::EventThunker,
|
|
new wxPyCallback(func));
|
|
}
|
|
else if (func == Py_None) {
|
|
self->Disconnect(id, lastId, eventType,
|
|
(wxObjectEventFunction)
|
|
&wxPyCallback::EventThunker);
|
|
}
|
|
else {
|
|
wxPyBLOCK_THREADS(
|
|
PyErr_SetString(PyExc_TypeError, "Expected callable object or None."));
|
|
}
|
|
}
|
|
SWIGINTERN bool wxEvtHandler_Disconnect(wxEvtHandler *self,int id,int lastId=-1,wxEventType eventType=wxEVT_NULL){
|
|
return self->Disconnect(id, lastId, eventType,
|
|
(wxObjectEventFunction)
|
|
&wxPyCallback::EventThunker);
|
|
}
|
|
SWIGINTERN void wxEvtHandler__setOORInfo(wxEvtHandler *self,PyObject *_self,bool incref=true){
|
|
if (_self && _self != Py_None) {
|
|
self->SetClientObject(new wxPyOORClientData(_self, incref));
|
|
}
|
|
else {
|
|
wxPyOORClientData* data = (wxPyOORClientData*)self->GetClientObject();
|
|
if (data) {
|
|
self->SetClientObject(NULL); // This will delete it too
|
|
}
|
|
}
|
|
}
|
|
|
|
#if ! wxUSE_HOTKEY
|
|
#define wxEVT_HOTKEY -9999
|
|
#endif
|
|
|
|
SWIGINTERN PyObject *wxCommandEvent_GetClientData(wxCommandEvent *self){
|
|
wxPyClientData* data = (wxPyClientData*)self->GetClientObject();
|
|
if (data) {
|
|
Py_INCREF(data->m_obj);
|
|
return data->m_obj;
|
|
} else {
|
|
Py_INCREF(Py_None);
|
|
return Py_None;
|
|
}
|
|
}
|
|
SWIGINTERN void wxCommandEvent_SetClientData(wxCommandEvent *self,PyObject *clientData){
|
|
wxPyClientData* data = new wxPyClientData(clientData);
|
|
self->SetClientObject(data);
|
|
}
|
|
SWIGINTERN int wxKeyEvent_GetUnicodeKey(wxKeyEvent *self){
|
|
#if wxUSE_UNICODE
|
|
return self->GetUnicodeKey();
|
|
#else
|
|
return 0;
|
|
#endif
|
|
}
|
|
SWIGINTERN void wxKeyEvent_SetUnicodeKey(wxKeyEvent *self,int uniChar){
|
|
#if wxUSE_UNICODE
|
|
self->m_uniChar = uniChar;
|
|
#endif
|
|
}
|
|
|
|
SWIGINTERNINLINE PyObject *
|
|
SWIG_From_unsigned_SS_int (unsigned int value)
|
|
{
|
|
return SWIG_From_unsigned_SS_long (value);
|
|
}
|
|
|
|
|
|
SWIGINTERN int
|
|
SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
|
|
{
|
|
unsigned long v;
|
|
int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
|
|
if (SWIG_IsOK(res)) {
|
|
if ((v > UINT_MAX)) {
|
|
return SWIG_OverflowError;
|
|
} else {
|
|
if (val) *val = static_cast< unsigned int >(v);
|
|
}
|
|
}
|
|
return res;
|
|
}
|
|
|
|
SWIGINTERN void wxSizeEvent_SetSize(wxSizeEvent *self,wxSize size){
|
|
self->m_size = size;
|
|
}
|
|
SWIGINTERN PyObject *wxDropFilesEvent_GetFiles(wxDropFilesEvent *self){
|
|
int count = self->GetNumberOfFiles();
|
|
wxString* files = self->GetFiles();
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
PyObject* list = PyList_New(count);
|
|
|
|
if (!list) {
|
|
PyErr_SetString(PyExc_MemoryError, "Can't allocate list of files!");
|
|
wxPyEndBlockThreads(blocked);
|
|
return NULL;
|
|
}
|
|
|
|
for (int i=0; i<count; i++) {
|
|
PyList_SetItem(list, i, wx2PyString(files[i]));
|
|
}
|
|
wxPyEndBlockThreads(blocked);
|
|
return list;
|
|
}
|
|
|
|
|
|
SWIGINTERN wxPyApp *new_wxPyApp(){
|
|
wxPythonApp = new wxPyApp();
|
|
return wxPythonApp;
|
|
}
|
|
SWIGINTERN int wxPyApp_GetComCtl32Version(){ wxPyRaiseNotImplemented(); return 0; }
|
|
SWIGINTERN bool wxPyApp_IsDisplayAvailable(){
|
|
return wxPyTestDisplayAvailable();
|
|
}
|
|
|
|
void wxApp_CleanUp() {
|
|
__wxPyCleanup();
|
|
}
|
|
|
|
|
|
wxPyApp* wxPyGetApp() { return (wxPyApp*)wxTheApp; }
|
|
|
|
|
|
|
|
|
|
|
|
SWIGINTERNINLINE PyObject *
|
|
SWIG_FromCharPtr(const char *cptr)
|
|
{
|
|
return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
|
|
}
|
|
|
|
|
|
#if 0 // #ifdef __WXMAC__
|
|
|
|
// A dummy class that raises an exception if used...
|
|
class wxEventLoop
|
|
{
|
|
public:
|
|
wxEventLoop() { wxPyRaiseNotImplemented(); }
|
|
int Run() { return 0; }
|
|
void Exit(int rc = 0) {}
|
|
bool Pending() const { return false; }
|
|
bool Dispatch() { return false; }
|
|
bool IsRunning() const { return false; }
|
|
static wxEventLoop *GetActive() { wxPyRaiseNotImplemented(); return NULL; }
|
|
static void SetActive(wxEventLoop* loop) { wxPyRaiseNotImplemented(); }
|
|
};
|
|
|
|
#else
|
|
|
|
#include <wx/evtloop.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
static const wxString wxPyPanelNameStr(wxPanelNameStr);
|
|
SWIGINTERN wxVisualAttributes *new_wxVisualAttributes(){ return new wxVisualAttributes; }
|
|
SWIGINTERN void delete_wxVisualAttributes(wxVisualAttributes *self){ delete self; }
|
|
SWIGINTERN wxFont wxVisualAttributes__get_font(wxVisualAttributes *self){ return self->font; }
|
|
SWIGINTERN wxColour wxVisualAttributes__get_colFg(wxVisualAttributes *self){ return self->colFg; }
|
|
SWIGINTERN wxColour wxVisualAttributes__get_colBg(wxVisualAttributes *self){ return self->colBg; }
|
|
SWIGINTERN PyObject *wxWindow_GetChildren(wxWindow *self){
|
|
wxWindowList& list = self->GetChildren();
|
|
return wxPy_ConvertList(&list);
|
|
}
|
|
SWIGINTERN wxWindow *wxWindow_GetTopLevelParent(wxWindow *self){
|
|
return wxGetTopLevelParent(self);
|
|
}
|
|
SWIGINTERN void wxWindow_SetDoubleBuffered(wxWindow *self,bool on){}
|
|
SWIGINTERN bool wxWindow_RegisterHotKey(wxWindow *self,int hotkeyId,int modifiers,int keycode){
|
|
#if wxUSE_HOTKEY
|
|
return self->RegisterHotKey(hotkeyId, modifiers, keycode);
|
|
#else
|
|
return false;
|
|
#endif
|
|
}
|
|
SWIGINTERN bool wxWindow_UnregisterHotKey(wxWindow *self,int hotkeyId){
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
SWIGINTERN long wxWindow_GetHandle(wxWindow *self){
|
|
return wxPyGetWinHandle(self);
|
|
}
|
|
SWIGINTERN void wxWindow_AssociateHandle(wxWindow *self,long handle){
|
|
self->AssociateHandle((WXWidget)handle);
|
|
}
|
|
SWIGINTERN void wxWindow_DragAcceptFiles(wxWindow *self,bool accept){}
|
|
|
|
wxWindow* wxFindWindowById( long id, const wxWindow *parent = NULL ) {
|
|
return wxWindow::FindWindowById(id, parent);
|
|
}
|
|
|
|
wxWindow* wxFindWindowByName( const wxString& name,
|
|
const wxWindow *parent = NULL ) {
|
|
return wxWindow::FindWindowByName(name, parent);
|
|
}
|
|
|
|
wxWindow* wxFindWindowByLabel( const wxString& label,
|
|
const wxWindow *parent = NULL ) {
|
|
return wxWindow::FindWindowByLabel(label, parent);
|
|
}
|
|
|
|
|
|
#ifdef __WXMSW__
|
|
#include <wx/msw/private.h> // to get wxGetWindowId
|
|
#endif
|
|
|
|
|
|
wxWindow* wxWindow_FromHWND(wxWindow* parent, unsigned long _hWnd) {
|
|
#ifdef __WXMSW__
|
|
WXHWND hWnd = (WXHWND)_hWnd;
|
|
long id = wxGetWindowId(hWnd);
|
|
wxWindow* win = new wxWindow;
|
|
if (parent)
|
|
parent->AddChild(win);
|
|
win->SetEventHandler(win);
|
|
win->SetHWND(hWnd);
|
|
win->SetId(id);
|
|
win->SubclassWin(hWnd);
|
|
win->AdoptAttributesFromHWND();
|
|
win->SetupColours();
|
|
return win;
|
|
#else
|
|
wxPyRaiseNotImplemented();
|
|
return NULL;
|
|
#endif
|
|
}
|
|
|
|
|
|
PyObject* GetTopLevelWindows() {
|
|
return wxPy_ConvertList(&wxTopLevelWindows);
|
|
}
|
|
|
|
|
|
IMP_PYCALLBACK_BOOL_WXWIN(wxPyValidator, wxValidator, Validate);
|
|
IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferToWindow);
|
|
IMP_PYCALLBACK_BOOL_(wxPyValidator, wxValidator, TransferFromWindow);
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS(wxPyValidator, wxValidator);
|
|
|
|
|
|
SWIGINTERNINLINE int
|
|
SWIG_AsVal_size_t (PyObject * obj, size_t *val)
|
|
{
|
|
unsigned long v;
|
|
int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
|
|
if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
|
|
return res;
|
|
}
|
|
|
|
SWIGINTERN void wxMenu_Destroy(wxMenu *self){ delete self; }
|
|
SWIGINTERN PyObject *wxMenu_GetMenuItems(wxMenu *self){
|
|
wxMenuItemList& list = self->GetMenuItems();
|
|
return wxPy_ConvertList(&list);
|
|
}
|
|
SWIGINTERN void wxMenuItem_SetFont(wxMenuItem *self,wxFont const &font){}
|
|
SWIGINTERN wxFont wxMenuItem_GetFont(wxMenuItem *self){ return wxNullFont; }
|
|
SWIGINTERN void wxMenuItem_SetTextColour(wxMenuItem *self,wxColour const &colText){}
|
|
SWIGINTERN wxColour wxMenuItem_GetTextColour(wxMenuItem *self){ return wxNullColour; }
|
|
SWIGINTERN void wxMenuItem_SetBackgroundColour(wxMenuItem *self,wxColour const &colBack){}
|
|
SWIGINTERN wxColour wxMenuItem_GetBackgroundColour(wxMenuItem *self){ return wxNullColour; }
|
|
SWIGINTERN void wxMenuItem_SetBitmaps(wxMenuItem *self,wxBitmap const &bmpChecked,wxBitmap const &bmpUnchecked=wxNullBitmap){ self->SetBitmap( bmpChecked ); }
|
|
SWIGINTERN void wxMenuItem_SetDisabledBitmap(wxMenuItem *self,wxBitmap const &bmpDisabled){}
|
|
SWIGINTERN wxBitmap const &wxMenuItem_GetDisabledBitmap(wxMenuItem const *self){ return wxNullBitmap; }
|
|
SWIGINTERN void wxMenuItem_SetMarginWidth(wxMenuItem *self,int nWidth){}
|
|
SWIGINTERN int wxMenuItem_GetMarginWidth(wxMenuItem *self){ return 0; }
|
|
SWIGINTERN int wxMenuItem_GetDefaultMarginWidth(){ return 0; }
|
|
SWIGINTERN bool wxMenuItem_IsOwnerDrawn(wxMenuItem *self){ return false; }
|
|
SWIGINTERN void wxMenuItem_SetOwnerDrawn(wxMenuItem *self,bool ownerDrawn=true){}
|
|
SWIGINTERN void wxMenuItem_ResetOwnerDrawn(wxMenuItem *self){}
|
|
static const wxString wxPyControlNameStr(wxControlNameStr);
|
|
SWIGINTERN int wxItemContainer_Append(wxItemContainer *self,wxString const &item,PyObject *clientData=NULL){
|
|
if (clientData) {
|
|
wxPyClientData* data = new wxPyClientData(clientData);
|
|
return self->Append(item, data);
|
|
} else
|
|
return self->Append(item);
|
|
}
|
|
SWIGINTERN int wxItemContainer_Insert(wxItemContainer *self,wxString const &item,int pos,PyObject *clientData=NULL){
|
|
if (clientData) {
|
|
wxPyClientData* data = new wxPyClientData(clientData);
|
|
return self->Insert(item, pos, data);
|
|
} else
|
|
return self->Insert(item, pos);
|
|
}
|
|
SWIGINTERN PyObject *wxItemContainer_GetClientData(wxItemContainer *self,int n){
|
|
wxPyClientData* data = (wxPyClientData*)self->GetClientObject(n);
|
|
if (data) {
|
|
Py_INCREF(data->m_obj);
|
|
return data->m_obj;
|
|
} else {
|
|
Py_INCREF(Py_None);
|
|
return Py_None;
|
|
}
|
|
}
|
|
SWIGINTERN void wxItemContainer_SetClientData(wxItemContainer *self,int n,PyObject *clientData){
|
|
wxPyClientData* data = new wxPyClientData(clientData);
|
|
self->SetClientObject(n, data);
|
|
}
|
|
|
|
|
|
SWIGINTERN wxSizerFlags &wxSizerFlags_Border(wxSizerFlags *self,int direction=wxALL,int borderInPixels=-1){
|
|
if (borderInPixels == -1)
|
|
return self->Border(direction);
|
|
else
|
|
return self->Border(direction, borderInPixels);
|
|
}
|
|
SWIGINTERN wxSizerItem *new_wxSizerItem(wxWindow *window,int proportion,int flag,int border,PyObject *userData=NULL){
|
|
wxPyUserData* data = NULL;
|
|
if ( userData ) {
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
data = new wxPyUserData(userData);
|
|
wxPyEndBlockThreads(blocked);
|
|
}
|
|
return new wxSizerItem(window, proportion, flag, border, data);
|
|
}
|
|
SWIGINTERN wxSizerItem *new_wxSizerItem(int width,int height,int proportion,int flag,int border,PyObject *userData=NULL){
|
|
wxPyUserData* data = NULL;
|
|
if ( userData ) {
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
data = new wxPyUserData(userData);
|
|
wxPyEndBlockThreads(blocked);
|
|
}
|
|
return new wxSizerItem(width, height, proportion, flag, border, data);
|
|
}
|
|
SWIGINTERN wxSizerItem *new_wxSizerItem(wxSizer *sizer,int proportion,int flag,int border,PyObject *userData=NULL){
|
|
wxPyUserData* data = NULL;
|
|
if ( userData ) {
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
data = new wxPyUserData(userData);
|
|
wxPyEndBlockThreads(blocked);
|
|
}
|
|
return new wxSizerItem(sizer, proportion, flag, border, data);
|
|
}
|
|
|
|
SWIGINTERNINLINE PyObject *
|
|
SWIG_From_float (float value)
|
|
{
|
|
return SWIG_From_double (value);
|
|
}
|
|
|
|
SWIGINTERN PyObject *wxSizerItem_GetUserData(wxSizerItem *self){
|
|
wxPyUserData* data = (wxPyUserData*)self->GetUserData();
|
|
if (data) {
|
|
Py_INCREF(data->m_obj);
|
|
return data->m_obj;
|
|
} else {
|
|
Py_INCREF(Py_None);
|
|
return Py_None;
|
|
}
|
|
}
|
|
SWIGINTERN void wxSizerItem_SetUserData(wxSizerItem *self,PyObject *userData){
|
|
wxPyUserData* data = NULL;
|
|
if ( userData ) {
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
data = new wxPyUserData(userData);
|
|
wxPyEndBlockThreads(blocked);
|
|
}
|
|
self->SetUserData(data);
|
|
}
|
|
|
|
// Figure out the type of the sizer item
|
|
|
|
struct wxPySizerItemInfo {
|
|
wxPySizerItemInfo()
|
|
: window(NULL), sizer(NULL), gotSize(false),
|
|
size(wxDefaultSize), gotPos(false), pos(-1)
|
|
{}
|
|
|
|
wxWindow* window;
|
|
wxSizer* sizer;
|
|
bool gotSize;
|
|
wxSize size;
|
|
bool gotPos;
|
|
int pos;
|
|
};
|
|
|
|
static wxPySizerItemInfo wxPySizerItemTypeHelper(PyObject* item, bool checkSize, bool checkIdx ) {
|
|
|
|
wxPySizerItemInfo info;
|
|
wxSize size;
|
|
wxSize* sizePtr = &size;
|
|
|
|
// Find out what the type of the item is
|
|
// try wxWindow
|
|
if ( ! wxPyConvertSwigPtr(item, (void**)&info.window, wxT("wxWindow")) ) {
|
|
PyErr_Clear();
|
|
info.window = NULL;
|
|
|
|
// try wxSizer
|
|
if ( ! wxPyConvertSwigPtr(item, (void**)&info.sizer, wxT("wxSizer")) ) {
|
|
PyErr_Clear();
|
|
info.sizer = NULL;
|
|
|
|
// try wxSize or (w,h)
|
|
if ( checkSize && wxSize_helper(item, &sizePtr)) {
|
|
info.size = *sizePtr;
|
|
info.gotSize = true;
|
|
}
|
|
|
|
// or a single int
|
|
if (checkIdx && PyInt_Check(item)) {
|
|
info.pos = PyInt_AsLong(item);
|
|
info.gotPos = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
if ( !(info.window || info.sizer || (checkSize && info.gotSize) || (checkIdx && info.gotPos)) ) {
|
|
// no expected type, figure out what kind of error message to generate
|
|
if ( !checkSize && !checkIdx )
|
|
PyErr_SetString(PyExc_TypeError, "wx.Window or wx.Sizer expected for item");
|
|
else if ( checkSize && !checkIdx )
|
|
PyErr_SetString(PyExc_TypeError, "wx.Window, wx.Sizer, wx.Size, or (w,h) expected for item");
|
|
else if ( !checkSize && checkIdx)
|
|
PyErr_SetString(PyExc_TypeError, "wx.Window, wx.Sizer or int (position) expected for item");
|
|
else
|
|
// can this one happen?
|
|
PyErr_SetString(PyExc_TypeError, "wx.Window, wx.Sizer, wx.Size, or (w,h) or int (position) expected for item");
|
|
}
|
|
|
|
return info;
|
|
}
|
|
|
|
SWIGINTERN void wxSizer__setOORInfo(wxSizer *self,PyObject *_self){
|
|
if (!self->GetClientObject())
|
|
self->SetClientObject(new wxPyOORClientData(_self));
|
|
}
|
|
SWIGINTERN wxSizerItem *wxSizer_Add(wxSizer *self,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){
|
|
|
|
wxPyUserData* data = NULL;
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
|
|
if ( userData && (info.window || info.sizer || info.gotSize) )
|
|
data = new wxPyUserData(userData);
|
|
if ( info.sizer )
|
|
PyObject_SetAttrString(item,"thisown",Py_False);
|
|
wxPyEndBlockThreads(blocked);
|
|
|
|
// Now call the real Add method if a valid item type was found
|
|
if ( info.window )
|
|
return self->Add(info.window, proportion, flag, border, data);
|
|
else if ( info.sizer )
|
|
return self->Add(info.sizer, proportion, flag, border, data);
|
|
else if (info.gotSize)
|
|
return self->Add(info.size.GetWidth(), info.size.GetHeight(),
|
|
proportion, flag, border, data);
|
|
else
|
|
return NULL;
|
|
}
|
|
SWIGINTERN wxSizerItem *wxSizer_AddF(wxSizer *self,PyObject *item,wxSizerFlags &flags){
|
|
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
|
|
if ( info.sizer )
|
|
PyObject_SetAttrString(item,"thisown",Py_False);
|
|
wxPyEndBlockThreads(blocked);
|
|
|
|
// Now call the real Add method if a valid item type was found
|
|
if ( info.window )
|
|
return self->Add(info.window, flags);
|
|
else if ( info.sizer )
|
|
return self->Add(info.sizer, flags);
|
|
else if (info.gotSize)
|
|
return self->Add(info.size.GetWidth(), info.size.GetHeight(),
|
|
flags.GetProportion(),
|
|
flags.GetFlags(),
|
|
flags.GetBorderInPixels());
|
|
else
|
|
return NULL;
|
|
}
|
|
SWIGINTERN wxSizerItem *wxSizer_Insert(wxSizer *self,int before,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){
|
|
|
|
wxPyUserData* data = NULL;
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
|
|
if ( userData && (info.window || info.sizer || info.gotSize) )
|
|
data = new wxPyUserData(userData);
|
|
if ( info.sizer )
|
|
PyObject_SetAttrString(item,"thisown",Py_False);
|
|
wxPyEndBlockThreads(blocked);
|
|
|
|
// Now call the real Insert method if a valid item type was found
|
|
if ( info.window )
|
|
return self->Insert(before, info.window, proportion, flag, border, data);
|
|
else if ( info.sizer )
|
|
return self->Insert(before, info.sizer, proportion, flag, border, data);
|
|
else if (info.gotSize)
|
|
return self->Insert(before, info.size.GetWidth(), info.size.GetHeight(),
|
|
proportion, flag, border, data);
|
|
else
|
|
return NULL;
|
|
}
|
|
SWIGINTERN wxSizerItem *wxSizer_InsertF(wxSizer *self,int before,PyObject *item,wxSizerFlags &flags){
|
|
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
|
|
if ( info.sizer )
|
|
PyObject_SetAttrString(item,"thisown",Py_False);
|
|
wxPyEndBlockThreads(blocked);
|
|
|
|
// Now call the real Insert method if a valid item type was found
|
|
if ( info.window )
|
|
return self->Insert(before, info.window, flags);
|
|
else if ( info.sizer )
|
|
return self->Insert(before, info.sizer, flags);
|
|
else if (info.gotSize)
|
|
return self->Insert(before, info.size.GetWidth(), info.size.GetHeight(),
|
|
flags.GetProportion(),
|
|
flags.GetFlags(),
|
|
flags.GetBorderInPixels());
|
|
else
|
|
return NULL;
|
|
}
|
|
SWIGINTERN wxSizerItem *wxSizer_Prepend(wxSizer *self,PyObject *item,int proportion=0,int flag=0,int border=0,PyObject *userData=NULL){
|
|
|
|
wxPyUserData* data = NULL;
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
|
|
if ( userData && (info.window || info.sizer || info.gotSize) )
|
|
data = new wxPyUserData(userData);
|
|
if ( info.sizer )
|
|
PyObject_SetAttrString(item,"thisown",Py_False);
|
|
wxPyEndBlockThreads(blocked);
|
|
|
|
// Now call the real Prepend method if a valid item type was found
|
|
if ( info.window )
|
|
return self->Prepend(info.window, proportion, flag, border, data);
|
|
else if ( info.sizer )
|
|
return self->Prepend(info.sizer, proportion, flag, border, data);
|
|
else if (info.gotSize)
|
|
return self->Prepend(info.size.GetWidth(), info.size.GetHeight(),
|
|
proportion, flag, border, data);
|
|
else
|
|
return NULL;
|
|
}
|
|
SWIGINTERN wxSizerItem *wxSizer_PrependF(wxSizer *self,PyObject *item,wxSizerFlags &flags){
|
|
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
|
|
if ( info.sizer )
|
|
PyObject_SetAttrString(item,"thisown",Py_False);
|
|
wxPyEndBlockThreads(blocked);
|
|
|
|
// Now call the real Add method if a valid item type was found
|
|
if ( info.window )
|
|
return self->Prepend(info.window, flags);
|
|
else if ( info.sizer )
|
|
return self->Prepend(info.sizer, flags);
|
|
else if (info.gotSize)
|
|
return self->Prepend(info.size.GetWidth(), info.size.GetHeight(),
|
|
flags.GetProportion(),
|
|
flags.GetFlags(),
|
|
flags.GetBorderInPixels());
|
|
else
|
|
return NULL;
|
|
}
|
|
SWIGINTERN bool wxSizer_Remove(wxSizer *self,PyObject *item){
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
|
|
wxPyEndBlockThreads(blocked);
|
|
if ( info.window )
|
|
return self->Remove(info.window);
|
|
else if ( info.sizer )
|
|
return self->Remove(info.sizer);
|
|
else if ( info.gotPos )
|
|
return self->Remove(info.pos);
|
|
else
|
|
return false;
|
|
}
|
|
SWIGINTERN bool wxSizer_Detach(wxSizer *self,PyObject *item){
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
|
|
wxPyEndBlockThreads(blocked);
|
|
if ( info.window )
|
|
return self->Detach(info.window);
|
|
else if ( info.sizer )
|
|
return self->Detach(info.sizer);
|
|
else if ( info.gotPos )
|
|
return self->Detach(info.pos);
|
|
else
|
|
return false;
|
|
}
|
|
SWIGINTERN wxSizerItem *wxSizer_GetItem(wxSizer *self,PyObject *item,bool recursive=false){
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
|
|
wxPyEndBlockThreads(blocked);
|
|
if ( info.window )
|
|
return self->GetItem(info.window, recursive);
|
|
else if ( info.sizer )
|
|
return self->GetItem(info.sizer, recursive);
|
|
else if ( info.gotPos )
|
|
return self->GetItem(info.pos);
|
|
else
|
|
return NULL;
|
|
}
|
|
SWIGINTERN void wxSizer__SetItemMinSize(wxSizer *self,PyObject *item,wxSize const &size){
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
|
|
wxPyEndBlockThreads(blocked);
|
|
if ( info.window )
|
|
self->SetItemMinSize(info.window, size);
|
|
else if ( info.sizer )
|
|
self->SetItemMinSize(info.sizer, size);
|
|
else if ( info.gotPos )
|
|
self->SetItemMinSize(info.pos, size);
|
|
}
|
|
SWIGINTERN PyObject *wxSizer_GetChildren(wxSizer *self){
|
|
wxSizerItemList& list = self->GetChildren();
|
|
return wxPy_ConvertList(&list);
|
|
}
|
|
SWIGINTERN bool wxSizer_Show(wxSizer *self,PyObject *item,bool show=true,bool recursive=false){
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, true);
|
|
wxPyEndBlockThreads(blocked);
|
|
if ( info.window )
|
|
return self->Show(info.window, show, recursive);
|
|
else if ( info.sizer )
|
|
return self->Show(info.sizer, show, recursive);
|
|
else if ( info.gotPos )
|
|
return self->Show(info.pos, show);
|
|
else
|
|
return false;
|
|
}
|
|
SWIGINTERN bool wxSizer_IsShown(wxSizer *self,PyObject *item){
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, false, false);
|
|
wxPyEndBlockThreads(blocked);
|
|
if ( info.window )
|
|
return self->IsShown(info.window);
|
|
else if ( info.sizer )
|
|
return self->IsShown(info.sizer);
|
|
else if ( info.gotPos )
|
|
return self->IsShown(info.pos);
|
|
else
|
|
return false;
|
|
}
|
|
|
|
// See pyclasses.h
|
|
IMP_PYCALLBACK___pure(wxPySizer, wxSizer, RecalcSizes);
|
|
IMP_PYCALLBACK_wxSize__pure(wxPySizer, wxSizer, CalcMin);
|
|
IMPLEMENT_DYNAMIC_CLASS(wxPySizer, wxSizer);
|
|
|
|
|
|
|
|
|
|
bool wxGBPosition_helper(PyObject* source, wxGBPosition** obj)
|
|
{
|
|
if (source == Py_None) {
|
|
**obj = wxGBPosition(-1,-1);
|
|
return true;
|
|
}
|
|
return wxPyTwoIntItem_helper(source, obj, wxT("wxGBPosition"));
|
|
}
|
|
|
|
bool wxGBSpan_helper(PyObject* source, wxGBSpan** obj)
|
|
{
|
|
if (source == Py_None) {
|
|
**obj = wxGBSpan(-1,-1);
|
|
return true;
|
|
}
|
|
return wxPyTwoIntItem_helper(source, obj, wxT("wxGBSpan"));
|
|
}
|
|
|
|
|
|
SWIGINTERN bool wxGBPosition___eq__(wxGBPosition *self,PyObject *other){
|
|
wxGBPosition temp, *obj = &temp;
|
|
if ( other == Py_None ) return false;
|
|
if ( ! wxGBPosition_helper(other, &obj) ) {
|
|
PyErr_Clear();
|
|
return false;
|
|
}
|
|
return self->operator==(*obj);
|
|
}
|
|
SWIGINTERN bool wxGBPosition___ne__(wxGBPosition *self,PyObject *other){
|
|
wxGBPosition temp, *obj = &temp;
|
|
if ( other == Py_None ) return true;
|
|
if ( ! wxGBPosition_helper(other, &obj)) {
|
|
PyErr_Clear();
|
|
return true;
|
|
}
|
|
return self->operator!=(*obj);
|
|
}
|
|
SWIGINTERN void wxGBPosition_Set(wxGBPosition *self,int row=0,int col=0){
|
|
self->SetRow(row);
|
|
self->SetCol(col);
|
|
}
|
|
SWIGINTERN PyObject *wxGBPosition_Get(wxGBPosition *self){
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
PyObject* tup = PyTuple_New(2);
|
|
PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRow()));
|
|
PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetCol()));
|
|
wxPyEndBlockThreads(blocked);
|
|
return tup;
|
|
}
|
|
SWIGINTERN bool wxGBSpan___eq__(wxGBSpan *self,PyObject *other){
|
|
wxGBSpan temp, *obj = &temp;
|
|
if ( other == Py_None ) return false;
|
|
if ( ! wxGBSpan_helper(other, &obj) ) {
|
|
PyErr_Clear();
|
|
return false;
|
|
}
|
|
return self->operator==(*obj);
|
|
}
|
|
SWIGINTERN bool wxGBSpan___ne__(wxGBSpan *self,PyObject *other){
|
|
wxGBSpan temp, *obj = &temp;
|
|
if ( other == Py_None ) return true;
|
|
if ( ! wxGBSpan_helper(other, &obj)) {
|
|
PyErr_Clear();
|
|
return true;
|
|
}
|
|
return self->operator!=(*obj);
|
|
}
|
|
SWIGINTERN void wxGBSpan_Set(wxGBSpan *self,int rowspan=1,int colspan=1){
|
|
self->SetRowspan(rowspan);
|
|
self->SetColspan(colspan);
|
|
}
|
|
SWIGINTERN PyObject *wxGBSpan_Get(wxGBSpan *self){
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
PyObject* tup = PyTuple_New(2);
|
|
PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->GetRowspan()));
|
|
PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->GetColspan()));
|
|
wxPyEndBlockThreads(blocked);
|
|
return tup;
|
|
}
|
|
SWIGINTERN wxGBSizerItem *new_wxGBSizerItem(wxWindow *window,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){
|
|
wxPyUserData* data = NULL;
|
|
if ( userData ) {
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
data = new wxPyUserData(userData);
|
|
wxPyEndBlockThreads(blocked);
|
|
}
|
|
return new wxGBSizerItem(window, pos, span, flag, border, data);
|
|
}
|
|
SWIGINTERN wxGBSizerItem *new_wxGBSizerItem(wxSizer *sizer,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){
|
|
wxPyUserData* data = NULL;
|
|
if ( userData ) {
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
data = new wxPyUserData(userData);
|
|
wxPyEndBlockThreads(blocked);
|
|
}
|
|
return new wxGBSizerItem(sizer, pos, span, flag, border, data);
|
|
}
|
|
SWIGINTERN wxGBSizerItem *new_wxGBSizerItem(int width,int height,wxGBPosition const &pos,wxGBSpan const &span,int flag,int border,PyObject *userData=NULL){
|
|
wxPyUserData* data = NULL;
|
|
if ( userData ) {
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
data = new wxPyUserData(userData);
|
|
wxPyEndBlockThreads(blocked);
|
|
}
|
|
return new wxGBSizerItem(width, height, pos, span, flag, border, data);
|
|
}
|
|
SWIGINTERN wxGBPosition wxGBSizerItem_GetEndPos(wxGBSizerItem *self){
|
|
int row, col;
|
|
self->GetEndPos(row, col);
|
|
return wxGBPosition(row, col);
|
|
}
|
|
SWIGINTERN wxGBSizerItem *wxGridBagSizer_Add(wxGridBagSizer *self,PyObject *item,wxGBPosition const &pos,wxGBSpan const &span=wxDefaultSpan,int flag=0,int border=0,PyObject *userData=NULL){
|
|
|
|
wxPyUserData* data = NULL;
|
|
wxPyBlock_t blocked = wxPyBeginBlockThreads();
|
|
wxPySizerItemInfo info = wxPySizerItemTypeHelper(item, true, false);
|
|
if ( userData && (info.window || info.sizer || info.gotSize) )
|
|
data = new wxPyUserData(userData);
|
|
if ( info.sizer )
|
|
PyObject_SetAttrString(item,"thisown",Py_False);
|
|
wxPyEndBlockThreads(blocked);
|
|
|
|
// Now call the real Add method if a valid item type was found
|
|
if ( info.window )
|
|
return (wxGBSizerItem*)self->Add(info.window, pos, span, flag, border, data);
|
|
else if ( info.sizer )
|
|
return (wxGBSizerItem*)self->Add(info.sizer, pos, span, flag, border, data);
|
|
else if (info.gotSize)
|
|
return (wxGBSizerItem*)self->Add(info.size.GetWidth(), info.size.GetHeight(),
|
|
pos, span, flag, border, data);
|
|
return NULL;
|
|
}
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
SWIGINTERN int EmptyString_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable EmptyString is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *EmptyString_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
{
|
|
#if wxUSE_UNICODE
|
|
pyobj = PyUnicode_FromWideChar((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
|
|
#else
|
|
pyobj = PyString_FromStringAndSize((&wxPyEmptyString)->c_str(), (&wxPyEmptyString)->Len());
|
|
#endif
|
|
}
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Object_GetClassName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxObject *arg1 = (wxObject *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Object_GetClassName" "', expected argument " "1"" of type '" "wxObject *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxObject * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxObject_GetClassName(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Object_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxObject *arg1 = (wxObject *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Object_Destroy" "', expected argument " "1"" of type '" "wxObject *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxObject * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxObject_Destroy(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Object_IsSameAs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxObject *arg1 = (wxObject *) 0 ;
|
|
wxObject *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "p", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Object_IsSameAs",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Object_IsSameAs" "', expected argument " "1"" of type '" "wxObject const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxObject * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxObject, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Object_IsSameAs" "', expected argument " "2"" of type '" "wxObject const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Object_IsSameAs" "', expected argument " "2"" of type '" "wxObject const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxObject * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxObject const *)arg1)->IsSameAs((wxObject const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Object_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxObject, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_Size_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Size_width_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_width_set" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_width_set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->x = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_width_get" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
result = (int) ((arg1)->x);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Size_height_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_height_set" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_height_set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->y = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_height_get" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
result = (int) ((arg1)->y);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
int arg2 = (int) 0 ;
|
|
wxSize *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "w",(char *) "h", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Size",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Size" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Size" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
result = (wxSize *)new wxSize(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSize, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Size" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
{
|
|
delete arg1;
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "other", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size___eq__" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
result = (bool)wxSize___eq__(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "other", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size___ne__" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
result = (bool)wxSize___ne__(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "sz", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___add__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size___add__" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (arg1)->operator +((wxSize const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "sz", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size___sub__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size___sub__" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (arg1)->operator -((wxSize const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size_IncTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "sz", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_IncTo",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_IncTo" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->IncTo((wxSize const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size_DecTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "sz", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_DecTo",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_DecTo" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->DecTo((wxSize const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size_IncBy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "dx",(char *) "dy", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_IncBy",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_IncBy" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_IncBy" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Size_IncBy" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
(arg1)->IncBy(arg2,arg3);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size_DecBy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "dx",(char *) "dy", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_DecBy",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_DecBy" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_DecBy" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Size_DecBy" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
(arg1)->DecBy(arg2,arg3);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
float arg2 ;
|
|
float arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
float val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "xscale",(char *) "yscale", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_Scale" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_Scale" "', expected argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
ecode3 = SWIG_AsVal_float(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Size_Scale" "', expected argument " "3"" of type '" "float""'");
|
|
}
|
|
arg3 = static_cast< float >(val3);
|
|
{
|
|
(arg1)->Scale(arg2,arg3);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "w",(char *) "h", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Size_Set",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_Set" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_Set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Size_Set" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
(arg1)->Set(arg2,arg3);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "w", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_SetWidth" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_SetWidth" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
(arg1)->SetWidth(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "h", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_SetHeight" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Size_SetHeight" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
(arg1)->SetHeight(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_GetWidth" "', expected argument " "1"" of type '" "wxSize const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
{
|
|
result = (int)((wxSize const *)arg1)->GetWidth();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_GetHeight" "', expected argument " "1"" of type '" "wxSize const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
{
|
|
result = (int)((wxSize const *)arg1)->GetHeight();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size_IsFullySpecified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_IsFullySpecified" "', expected argument " "1"" of type '" "wxSize const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
{
|
|
result = (bool)((wxSize const *)arg1)->IsFullySpecified();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size_SetDefaults(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "size", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Size_SetDefaults",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_SetDefaults" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->SetDefaults((wxSize const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Size_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = (wxSize *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Size_Get" "', expected argument " "1"" of type '" "wxSize *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSize * >(argp1);
|
|
{
|
|
result = (PyObject *)wxSize_Get(arg1);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Size_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxSize, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *Size_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_RealPoint_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRealPoint *arg1 = (wxRealPoint *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"RealPoint_x_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint_x_set" "', expected argument " "1"" of type '" "wxRealPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRealPoint * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RealPoint_x_set" "', expected argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->x = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_RealPoint_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRealPoint *arg1 = (wxRealPoint *) 0 ;
|
|
double result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint_x_get" "', expected argument " "1"" of type '" "wxRealPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRealPoint * >(argp1);
|
|
result = (double) ((arg1)->x);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_RealPoint_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRealPoint *arg1 = (wxRealPoint *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"RealPoint_y_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint_y_set" "', expected argument " "1"" of type '" "wxRealPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRealPoint * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RealPoint_y_set" "', expected argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->y = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_RealPoint_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRealPoint *arg1 = (wxRealPoint *) 0 ;
|
|
double result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint_y_get" "', expected argument " "1"" of type '" "wxRealPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRealPoint * >(argp1);
|
|
result = (double) ((arg1)->y);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_RealPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 = (double) 0.0 ;
|
|
double arg2 = (double) 0.0 ;
|
|
wxRealPoint *result = 0 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_RealPoint",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RealPoint" "', expected argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RealPoint" "', expected argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
}
|
|
{
|
|
result = (wxRealPoint *)new wxRealPoint(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRealPoint, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_RealPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRealPoint *arg1 = (wxRealPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRealPoint, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RealPoint" "', expected argument " "1"" of type '" "wxRealPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRealPoint * >(argp1);
|
|
{
|
|
delete arg1;
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_RealPoint___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRealPoint *arg1 = (wxRealPoint *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "other", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint___eq__" "', expected argument " "1"" of type '" "wxRealPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRealPoint * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
result = (bool)wxRealPoint___eq__(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_RealPoint___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRealPoint *arg1 = (wxRealPoint *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "other", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint___ne__" "', expected argument " "1"" of type '" "wxRealPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRealPoint * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
result = (bool)wxRealPoint___ne__(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_RealPoint___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRealPoint *arg1 = (wxRealPoint *) 0 ;
|
|
wxRealPoint *arg2 = 0 ;
|
|
wxRealPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRealPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___add__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint___add__" "', expected argument " "1"" of type '" "wxRealPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRealPoint * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (arg1)->operator +((wxRealPoint const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxRealPoint(static_cast< const wxRealPoint& >(result))), SWIGTYPE_p_wxRealPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_RealPoint___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRealPoint *arg1 = (wxRealPoint *) 0 ;
|
|
wxRealPoint *arg2 = 0 ;
|
|
wxRealPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRealPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RealPoint___sub__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint___sub__" "', expected argument " "1"" of type '" "wxRealPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRealPoint * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRealPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (arg1)->operator -((wxRealPoint const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxRealPoint(static_cast< const wxRealPoint& >(result))), SWIGTYPE_p_wxRealPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_RealPoint_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRealPoint *arg1 = (wxRealPoint *) 0 ;
|
|
double arg2 ;
|
|
double arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RealPoint_Set",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint_Set" "', expected argument " "1"" of type '" "wxRealPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRealPoint * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RealPoint_Set" "', expected argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RealPoint_Set" "', expected argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
{
|
|
wxRealPoint_Set(arg1,arg2,arg3);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_RealPoint_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRealPoint *arg1 = (wxRealPoint *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRealPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RealPoint_Get" "', expected argument " "1"" of type '" "wxRealPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRealPoint * >(argp1);
|
|
{
|
|
result = (PyObject *)wxRealPoint_Get(arg1);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *RealPoint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxRealPoint, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *RealPoint_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_Point_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint *arg1 = (wxPoint *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Point_x_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point_x_set" "', expected argument " "1"" of type '" "wxPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point_x_set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->x = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint *arg1 = (wxPoint *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point_x_get" "', expected argument " "1"" of type '" "wxPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint * >(argp1);
|
|
result = (int) ((arg1)->x);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint *arg1 = (wxPoint *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Point_y_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point_y_set" "', expected argument " "1"" of type '" "wxPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point_y_set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->y = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint *arg1 = (wxPoint *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point_y_get" "', expected argument " "1"" of type '" "wxPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint * >(argp1);
|
|
result = (int) ((arg1)->y);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_Point(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
int arg2 = (int) 0 ;
|
|
wxPoint *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Point" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Point" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
result = (wxPoint *)new wxPoint(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_Point(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint *arg1 = (wxPoint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Point" "', expected argument " "1"" of type '" "wxPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint * >(argp1);
|
|
{
|
|
delete arg1;
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint *arg1 = (wxPoint *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "other", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point___eq__" "', expected argument " "1"" of type '" "wxPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
result = (bool)wxPoint___eq__(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint *arg1 = (wxPoint *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "other", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point___ne__" "', expected argument " "1"" of type '" "wxPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
result = (bool)wxPoint___ne__(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint *arg1 = (wxPoint *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___add__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point___add__" "', expected argument " "1"" of type '" "wxPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (arg1)->operator +((wxPoint const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point___sub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint *arg1 = (wxPoint *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___sub__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point___sub__" "', expected argument " "1"" of type '" "wxPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (arg1)->operator -((wxPoint const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint *arg1 = (wxPoint *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
wxPoint *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___iadd__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point___iadd__" "', expected argument " "1"" of type '" "wxPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
{
|
|
wxPoint &_result_ref = (arg1)->operator +=((wxPoint const &)*arg2);
|
|
result = (wxPoint *) &_result_ref;
|
|
}
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint *arg1 = (wxPoint *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
wxPoint *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point___isub__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point___isub__" "', expected argument " "1"" of type '" "wxPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
{
|
|
wxPoint &_result_ref = (arg1)->operator -=((wxPoint const &)*arg2);
|
|
result = (wxPoint *) &_result_ref;
|
|
}
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint *arg1 = (wxPoint *) 0 ;
|
|
long arg2 ;
|
|
long arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
long val2 ;
|
|
int ecode2 = 0 ;
|
|
long val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Point_Set",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point_Set" "', expected argument " "1"" of type '" "wxPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint * >(argp1);
|
|
ecode2 = SWIG_AsVal_long(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point_Set" "', expected argument " "2"" of type '" "long""'");
|
|
}
|
|
arg2 = static_cast< long >(val2);
|
|
ecode3 = SWIG_AsVal_long(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Point_Set" "', expected argument " "3"" of type '" "long""'");
|
|
}
|
|
arg3 = static_cast< long >(val3);
|
|
{
|
|
wxPoint_Set(arg1,arg2,arg3);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint *arg1 = (wxPoint *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point_Get" "', expected argument " "1"" of type '" "wxPoint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint * >(argp1);
|
|
{
|
|
result = (PyObject *)wxPoint_Get(arg1);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Point_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxPoint, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *Point_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_Rect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
int arg2 = (int) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
int arg4 = (int) 0 ;
|
|
wxRect *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Rect" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Rect" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Rect" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Rect" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
result = (wxRect *)new wxRect(arg1,arg2,arg3,arg4);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_RectPP(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint *arg1 = 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
wxRect *result = 0 ;
|
|
wxPoint temp1 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "topLeft",(char *) "bottomRight", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPP",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = &temp1;
|
|
if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
|
|
}
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxPoint const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_RectPS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint *arg1 = 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
wxRect *result = 0 ;
|
|
wxPoint temp1 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "pos",(char *) "size", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RectPS",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = &temp1;
|
|
if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
|
|
}
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (wxRect *)new wxRect((wxPoint const &)*arg1,(wxSize const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_RectS(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSize *arg1 = 0 ;
|
|
wxRect *result = 0 ;
|
|
wxSize temp1 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "size", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RectS",kwnames,&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = &temp1;
|
|
if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (wxRect *)new wxRect((wxSize const &)*arg1);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_Rect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Rect" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
delete arg1;
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetX" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
result = (int)((wxRect const *)arg1)->GetX();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_SetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetX",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetX" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetX" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
(arg1)->SetX(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetY" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
result = (int)(arg1)->GetY();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_SetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetY",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetY" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetY" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
(arg1)->SetY(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetWidth" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
result = (int)((wxRect const *)arg1)->GetWidth();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "w", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetWidth" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetWidth" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
(arg1)->SetWidth(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetHeight" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
result = (int)((wxRect const *)arg1)->GetHeight();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "h", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetHeight" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetHeight" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
(arg1)->SetHeight(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetPosition" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
result = ((wxRect const *)arg1)->GetPosition();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "p", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetPosition" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->SetPosition((wxPoint const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetSize" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
result = ((wxRect const *)arg1)->GetSize();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "s", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetSize" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->SetSize((wxSize const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_IsEmpty" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
result = (bool)((wxRect const *)arg1)->IsEmpty();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_GetTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetTopLeft" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
result = ((wxRect const *)arg1)->GetTopLeft();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_SetTopLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "p", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopLeft",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetTopLeft" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->SetTopLeft((wxPoint const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_GetBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetBottomRight" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
result = ((wxRect const *)arg1)->GetBottomRight();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_SetBottomRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "p", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomRight",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetBottomRight" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->SetBottomRight((wxPoint const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_GetTopRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetTopRight" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
result = ((wxRect const *)arg1)->GetTopRight();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_SetTopRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "p", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTopRight",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetTopRight" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->SetTopRight((wxPoint const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_GetBottomLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetBottomLeft" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
result = ((wxRect const *)arg1)->GetBottomLeft();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_SetBottomLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "p", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottomLeft",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetBottomLeft" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->SetBottomLeft((wxPoint const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_GetLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetLeft" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
result = (int)((wxRect const *)arg1)->GetLeft();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_GetTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetTop" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
result = (int)((wxRect const *)arg1)->GetTop();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_GetBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetBottom" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
result = (int)((wxRect const *)arg1)->GetBottom();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_GetRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_GetRight" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
result = (int)((wxRect const *)arg1)->GetRight();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_SetLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "left", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetLeft",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetLeft" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetLeft" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
(arg1)->SetLeft(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_SetRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "right", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetRight",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetRight" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetRight" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
(arg1)->SetRight(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_SetTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "top", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetTop",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetTop" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetTop" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
(arg1)->SetTop(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_SetBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "bottom", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_SetBottom",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_SetBottom" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_SetBottom" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
(arg1)->SetBottom(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_Inflate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
wxRect result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "dx",(char *) "dy", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Inflate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Inflate" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_Inflate" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect_Inflate" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
result = (arg1)->Inflate(arg2,arg3);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_Deflate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
wxRect *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "dx",(char *) "dy", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_Deflate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Deflate" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_Deflate" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect_Deflate" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
{
|
|
wxRect &_result_ref = (arg1)->Deflate(arg2,arg3);
|
|
result = (wxRect *) &_result_ref;
|
|
}
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_OffsetXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "dx",(char *) "dy", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_OffsetXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_OffsetXY" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_OffsetXY" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect_OffsetXY" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
(arg1)->Offset(arg2,arg3);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Offset",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Offset" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->Offset((wxPoint const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxRect *arg2 = 0 ;
|
|
wxRect result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersect",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Intersect" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (arg1)->Intersect((wxRect const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxRect *arg2 = 0 ;
|
|
wxRect result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Union",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Union" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (arg1)->Union((wxRect const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect___add__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxRect *arg2 = 0 ;
|
|
wxRect result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___add__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect___add__" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = ((wxRect const *)arg1)->operator +((wxRect const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxRect *arg2 = 0 ;
|
|
wxRect *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___iadd__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect___iadd__" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
{
|
|
wxRect &_result_ref = (arg1)->operator +=((wxRect const &)*arg2);
|
|
result = (wxRect *) &_result_ref;
|
|
}
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "other", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect___eq__" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
result = (bool)wxRect___eq__(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "other", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect___ne__" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
result = (bool)wxRect___ne__(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_ContainsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect_ContainsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_ContainsXY" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_ContainsXY" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect_ContainsXY" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
result = (bool)((wxRect const *)arg1)->Contains(arg2,arg3);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Contains",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Contains" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (bool)((wxRect const *)arg1)->Contains((wxPoint const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxRect *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_ContainsRect" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (bool)((wxRect const *)arg1)->Contains((wxRect const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_Intersects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxRect *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect_Intersects",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Intersects" "', expected argument " "1"" of type '" "wxRect const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (bool)((wxRect const *)arg1)->Intersects((wxRect const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_CenterIn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxRect *arg2 = 0 ;
|
|
int arg3 = (int) wxBOTH ;
|
|
wxRect result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect temp2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "r",(char *) "dir", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Rect_CenterIn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_CenterIn" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect_CenterIn" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
result = (arg1)->CenterIn((wxRect const &)*arg2,arg3);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Rect_x_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_x_set" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_x_set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->x = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_x_get" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
result = (int) ((arg1)->x);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Rect_y_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_y_set" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_y_set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->y = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_y_get" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
result = (int) ((arg1)->y);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Rect_width_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_width_set" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_width_set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->width = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_width_get" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
result = (int) ((arg1)->width);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Rect_height_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_height_set" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_height_set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->height = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_height_get" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
result = (int) ((arg1)->height);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
int arg2 = (int) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
int arg4 = (int) 0 ;
|
|
int arg5 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Set" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect_Set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect_Set" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Rect_Set" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Rect_Set" "', expected argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
{
|
|
wxRect_Set(arg1,arg2,arg3,arg4,arg5);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect_Get" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
{
|
|
result = (PyObject *)wxRect_Get(arg1);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Rect_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxRect, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *Rect_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect *arg1 = (wxRect *) 0 ;
|
|
wxRect *arg2 = (wxRect *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "r1",(char *) "r2", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IntersectRect" "', expected argument " "1"" of type '" "wxRect *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IntersectRect" "', expected argument " "2"" of type '" "wxRect *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxRect * >(argp2);
|
|
{
|
|
if (!wxPyCheckForApp()) SWIG_fail;
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)wxIntersectRect(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_Point2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 = (double) 0.0 ;
|
|
double arg2 = (double) 0.0 ;
|
|
wxPoint2D *result = 0 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Point2D",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Point2D" "', expected argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Point2D" "', expected argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
}
|
|
{
|
|
result = (wxPoint2D *)new wxPoint2D(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_Point2DCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = 0 ;
|
|
wxPoint2D *result = 0 ;
|
|
wxPoint2D temp1 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DCopy",kwnames,&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = &temp1;
|
|
if ( ! wxPoint2D_helper(obj0, &arg1)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (wxPoint2D *)new wxPoint2D((wxPoint2D const &)*arg1);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_Point2DFromPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint *arg1 = 0 ;
|
|
wxPoint2D *result = 0 ;
|
|
wxPoint temp1 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Point2DFromPoint",kwnames,&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = &temp1;
|
|
if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (wxPoint2D *)new wxPoint2D((wxPoint const &)*arg1);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_Point2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Point2D" "', expected argument " "1"" of type '" "wxPoint2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
{
|
|
delete arg1;
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D_GetFloor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
int *arg3 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int temp2 ;
|
|
int res2 = SWIG_TMPOBJ ;
|
|
int temp3 ;
|
|
int res3 = SWIG_TMPOBJ ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
arg2 = &temp2;
|
|
arg3 = &temp3;
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetFloor" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
{
|
|
((wxPoint2D const *)arg1)->GetFloor(arg2,arg3);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsTmpObj(res2)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D_GetRounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
int *arg3 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int temp2 ;
|
|
int res2 = SWIG_TMPOBJ ;
|
|
int temp3 ;
|
|
int res3 = SWIG_TMPOBJ ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
arg2 = &temp2;
|
|
arg3 = &temp3;
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetRounded" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
{
|
|
((wxPoint2D const *)arg1)->GetRounded(arg2,arg3);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsTmpObj(res2)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D_GetVectorLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
double result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetVectorLength" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
{
|
|
result = (double)((wxPoint2D const *)arg1)->GetVectorLength();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D_GetVectorAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
double result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetVectorAngle" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
{
|
|
result = (double)((wxPoint2D const *)arg1)->GetVectorAngle();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D_SetVectorLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "length", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorLength",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_SetVectorLength" "', expected argument " "1"" of type '" "wxPoint2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point2D_SetVectorLength" "', expected argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
(arg1)->SetVectorLength(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D_SetVectorAngle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "degrees", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_SetVectorAngle",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_SetVectorAngle" "', expected argument " "1"" of type '" "wxPoint2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point2D_SetVectorAngle" "', expected argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
(arg1)->SetVectorAngle(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D_GetDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
double result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistance",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetDistance" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (double)((wxPoint2D const *)arg1)->GetDistance((wxPoint2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D_GetDistanceSquare(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
double result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDistanceSquare",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetDistanceSquare" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (double)((wxPoint2D const *)arg1)->GetDistanceSquare((wxPoint2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D_GetDotProduct(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
double result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "vec", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetDotProduct",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetDotProduct" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (double)((wxPoint2D const *)arg1)->GetDotProduct((wxPoint2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D_GetCrossProduct(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
double result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "vec", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D_GetCrossProduct",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_GetCrossProduct" "', expected argument " "1"" of type '" "wxPoint2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (double)((wxPoint2D const *)arg1)->GetCrossProduct((wxPoint2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D___neg__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
wxPoint2D result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___neg__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
{
|
|
result = (arg1)->operator -();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D___iadd__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
wxPoint2D *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___iadd__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___iadd__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
{
|
|
wxPoint2D &_result_ref = (arg1)->operator +=((wxPoint2D const &)*arg2);
|
|
result = (wxPoint2D *) &_result_ref;
|
|
}
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D___isub__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
wxPoint2D *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___isub__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___isub__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
{
|
|
wxPoint2D &_result_ref = (arg1)->operator -=((wxPoint2D const &)*arg2);
|
|
result = (wxPoint2D *) &_result_ref;
|
|
}
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D___imul__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
wxPoint2D *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___imul__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___imul__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
{
|
|
wxPoint2D &_result_ref = (arg1)->operator *=((wxPoint2D const &)*arg2);
|
|
result = (wxPoint2D *) &_result_ref;
|
|
}
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D___idiv__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
wxPoint2D *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___idiv__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___idiv__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
{
|
|
wxPoint2D &_result_ref = (arg1)->operator /=((wxPoint2D const &)*arg2);
|
|
result = (wxPoint2D *) &_result_ref;
|
|
}
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "other", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___eq__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
result = (bool)wxPoint2D___eq__(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "other", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Point2D___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D___ne__" "', expected argument " "1"" of type '" "wxPoint2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
result = (bool)wxPoint2D___ne__(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Point2D_x_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_x_set" "', expected argument " "1"" of type '" "wxPoint2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point2D_x_set" "', expected argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->m_x = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
double result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_x_get" "', expected argument " "1"" of type '" "wxPoint2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
result = (double) ((arg1)->m_x);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Point2D_y_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_y_set" "', expected argument " "1"" of type '" "wxPoint2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point2D_y_set" "', expected argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->m_y = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
double result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_y_get" "', expected argument " "1"" of type '" "wxPoint2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
result = (double) ((arg1)->m_y);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
double arg2 = (double) 0 ;
|
|
double arg3 = (double) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Point2D_Set",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_Set" "', expected argument " "1"" of type '" "wxPoint2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Point2D_Set" "', expected argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Point2D_Set" "', expected argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
}
|
|
{
|
|
wxPoint2D_Set(arg1,arg2,arg3);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Point2D_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint2D *arg1 = (wxPoint2D *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPoint2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Point2D_Get" "', expected argument " "1"" of type '" "wxPoint2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPoint2D * >(argp1);
|
|
{
|
|
result = (PyObject *)wxPoint2D_Get(arg1);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Point2D_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxPoint2D, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *Point2D_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_Rect2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxDouble arg1 = (wxDouble) 0.0 ;
|
|
wxDouble arg2 = (wxDouble) 0.0 ;
|
|
wxDouble arg3 = (wxDouble) 0.0 ;
|
|
wxDouble arg4 = (wxDouble) 0.0 ;
|
|
wxRect2D *result = 0 ;
|
|
void *argp1 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
void *argp3 ;
|
|
int res3 = 0 ;
|
|
void *argp4 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Rect2D",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
if (obj0) {
|
|
{
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Rect2D" "', expected argument " "1"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp1) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Rect2D" "', expected argument " "1"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp1);
|
|
arg1 = *temp;
|
|
if (SWIG_IsNewObj(res1)) delete temp;
|
|
}
|
|
}
|
|
}
|
|
if (obj1) {
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Rect2D" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Rect2D" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
}
|
|
if (obj2) {
|
|
{
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Rect2D" "', expected argument " "3"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp3) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Rect2D" "', expected argument " "3"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp3);
|
|
arg3 = *temp;
|
|
if (SWIG_IsNewObj(res3)) delete temp;
|
|
}
|
|
}
|
|
}
|
|
if (obj3) {
|
|
{
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Rect2D" "', expected argument " "4"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp4) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Rect2D" "', expected argument " "4"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp4);
|
|
arg4 = *temp;
|
|
if (SWIG_IsNewObj(res4)) delete temp;
|
|
}
|
|
}
|
|
}
|
|
{
|
|
result = (wxRect2D *)new wxRect2D(arg1,arg2,arg3,arg4);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect2D, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_Rect2D(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Rect2D" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
delete arg1;
|
|
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetPosition" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
result = (arg1)->GetPosition();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetSize" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
result = (arg1)->GetSize();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_GetLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetLeft" "', expected argument " "1"" of type '" "wxRect2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
result = ((wxRect2D const *)arg1)->GetLeft();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_SetLeft(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "n", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetLeft",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetLeft" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_SetLeft" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_SetLeft" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
(arg1)->SetLeft(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_MoveLeftTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "n", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveLeftTo",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveLeftTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_MoveLeftTo" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_MoveLeftTo" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
(arg1)->MoveLeftTo(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_GetTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetTop" "', expected argument " "1"" of type '" "wxRect2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
result = ((wxRect2D const *)arg1)->GetTop();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_SetTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "n", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetTop",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetTop" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_SetTop" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_SetTop" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
(arg1)->SetTop(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_MoveTopTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "n", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveTopTo",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveTopTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_MoveTopTo" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_MoveTopTo" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
(arg1)->MoveTopTo(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_GetBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetBottom" "', expected argument " "1"" of type '" "wxRect2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
result = ((wxRect2D const *)arg1)->GetBottom();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_SetBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "n", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetBottom",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetBottom" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_SetBottom" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_SetBottom" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
(arg1)->SetBottom(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_MoveBottomTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "n", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveBottomTo",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveBottomTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_MoveBottomTo" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_MoveBottomTo" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
(arg1)->MoveBottomTo(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_GetRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetRight" "', expected argument " "1"" of type '" "wxRect2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
result = ((wxRect2D const *)arg1)->GetRight();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_SetRight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "n", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetRight",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetRight" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_SetRight" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_SetRight" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
(arg1)->SetRight(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_MoveRightTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "n", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveRightTo",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveRightTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_MoveRightTo" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_MoveRightTo" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
(arg1)->MoveRightTo(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_GetLeftTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetLeftTop" "', expected argument " "1"" of type '" "wxRect2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
result = ((wxRect2D const *)arg1)->GetLeftTop();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_SetLeftTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetLeftTop",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetLeftTop" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->SetLeftTop((wxPoint2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_MoveLeftTopTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveLeftTopTo",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveLeftTopTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->MoveLeftTopTo((wxPoint2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_GetLeftBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetLeftBottom" "', expected argument " "1"" of type '" "wxRect2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
result = ((wxRect2D const *)arg1)->GetLeftBottom();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_SetLeftBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetLeftBottom",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetLeftBottom" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->SetLeftBottom((wxPoint2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_MoveLeftBottomTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveLeftBottomTo",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveLeftBottomTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->MoveLeftBottomTo((wxPoint2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_GetRightTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetRightTop" "', expected argument " "1"" of type '" "wxRect2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
result = ((wxRect2D const *)arg1)->GetRightTop();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_SetRightTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetRightTop",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetRightTop" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->SetRightTop((wxPoint2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_MoveRightTopTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveRightTopTo",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveRightTopTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->MoveRightTopTo((wxPoint2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_GetRightBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetRightBottom" "', expected argument " "1"" of type '" "wxRect2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
result = ((wxRect2D const *)arg1)->GetRightBottom();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_SetRightBottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetRightBottom",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetRightBottom" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->SetRightBottom((wxPoint2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_MoveRightBottomTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveRightBottomTo",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveRightBottomTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->MoveRightBottomTo((wxPoint2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_GetCentre(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetCentre" "', expected argument " "1"" of type '" "wxRect2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
result = ((wxRect2D const *)arg1)->GetCentre();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_SetCentre(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_SetCentre",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_SetCentre" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->SetCentre((wxPoint2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_MoveCentreTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_MoveCentreTo",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_MoveCentreTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->MoveCentreTo((wxPoint2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_GetOutcode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
wxOutCode result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_GetOutcode",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_GetOutcode" "', expected argument " "1"" of type '" "wxRect2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (wxOutCode)((wxRect2D const *)arg1)->GetOutcode((wxPoint2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_Contains",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Contains" "', expected argument " "1"" of type '" "wxRect2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (bool)((wxRect2D const *)arg1)->Contains((wxPoint2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxRect2D *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_ContainsRect" "', expected argument " "1"" of type '" "wxRect2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (bool)((wxRect2D const *)arg1)->Contains((wxRect2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_IsEmpty" "', expected argument " "1"" of type '" "wxRect2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
result = (bool)((wxRect2D const *)arg1)->IsEmpty();
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_HaveEqualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxRect2D *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_HaveEqualSize",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_HaveEqualSize" "', expected argument " "1"" of type '" "wxRect2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (bool)((wxRect2D const *)arg1)->HaveEqualSize((wxRect2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_Inset__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble arg2 ;
|
|
wxDouble arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
void *argp3 ;
|
|
int res3 = 0 ;
|
|
|
|
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Inset" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_Inset" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Inset" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Rect2D_Inset" "', expected argument " "3"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp3) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Inset" "', expected argument " "3"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp3);
|
|
arg3 = *temp;
|
|
if (SWIG_IsNewObj(res3)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
(arg1)->Inset(arg2,arg3);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_Inset__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble arg2 ;
|
|
wxDouble arg3 ;
|
|
wxDouble arg4 ;
|
|
wxDouble arg5 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
void *argp3 ;
|
|
int res3 = 0 ;
|
|
void *argp4 ;
|
|
int res4 = 0 ;
|
|
void *argp5 ;
|
|
int res5 = 0 ;
|
|
|
|
if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Inset" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_Inset" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Inset" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Rect2D_Inset" "', expected argument " "3"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp3) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Inset" "', expected argument " "3"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp3);
|
|
arg3 = *temp;
|
|
if (SWIG_IsNewObj(res3)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Rect2D_Inset" "', expected argument " "4"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp4) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Inset" "', expected argument " "4"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp4);
|
|
arg4 = *temp;
|
|
if (SWIG_IsNewObj(res4)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
res5 = SWIG_ConvertPtr(swig_obj[4], &argp5, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Rect2D_Inset" "', expected argument " "5"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp5) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Inset" "', expected argument " "5"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp5);
|
|
arg5 = *temp;
|
|
if (SWIG_IsNewObj(res5)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
(arg1)->Inset(arg2,arg3,arg4,arg5);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_Inset(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[6];
|
|
|
|
if (!(argc = SWIG_Python_UnpackTuple(args,"Rect2D_Inset",0,5,argv))) SWIG_fail;
|
|
--argc;
|
|
if (argc == 3) {
|
|
return _wrap_Rect2D_Inset__SWIG_0(self, argc, argv);
|
|
}
|
|
if (argc == 5) {
|
|
return _wrap_Rect2D_Inset__SWIG_1(self, argc, argv);
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'Rect2D_Inset'");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxPoint2D *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_Offset",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Offset" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->Offset((wxPoint2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_ConstrainTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxRect2D *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_ConstrainTo",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_ConstrainTo" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->ConstrainTo((wxRect2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_Interpolate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
wxPoint2D result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "widthfactor",(char *) "heightfactor", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Rect2D_Interpolate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Interpolate" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect2D_Interpolate" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect2D_Interpolate" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
result = (arg1)->Interpolate(arg2,arg3);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxRect2D *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "otherRect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_Intersect",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Intersect" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->Intersect((wxRect2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_CreateIntersection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxRect2D *arg2 = 0 ;
|
|
wxRect2D result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "otherRect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_CreateIntersection",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_CreateIntersection" "', expected argument " "1"" of type '" "wxRect2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = ((wxRect2D const *)arg1)->CreateIntersection((wxRect2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_Intersects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxRect2D *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_Intersects",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Intersects" "', expected argument " "1"" of type '" "wxRect2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = (bool)((wxRect2D const *)arg1)->Intersects((wxRect2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxRect2D *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "otherRect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_Union",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Union" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
(arg1)->Union((wxRect2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_CreateUnion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxRect2D *arg2 = 0 ;
|
|
wxRect2D result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect2D temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "otherRect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D_CreateUnion",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_CreateUnion" "', expected argument " "1"" of type '" "wxRect2D const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect2D_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
result = ((wxRect2D const *)arg1)->CreateUnion((wxRect2D const &)*arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_Scale__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Scale" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
(arg1)->Scale(arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_Scale__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
|
|
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Scale" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Rect2D_Scale" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Rect2D_Scale" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
(arg1)->Scale(arg2,arg3);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_Scale(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[4];
|
|
|
|
if (!(argc = SWIG_Python_UnpackTuple(args,"Rect2D_Scale",0,3,argv))) SWIG_fail;
|
|
--argc;
|
|
if (argc == 2) {
|
|
return _wrap_Rect2D_Scale__SWIG_0(self, argc, argv);
|
|
}
|
|
if (argc == 3) {
|
|
return _wrap_Rect2D_Scale__SWIG_1(self, argc, argv);
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'Rect2D_Scale'");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "other", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D___eq__" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
result = (bool)wxRect2D___eq__(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "other", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Rect2D___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D___ne__" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
result = (bool)wxRect2D___ne__(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Rect2D_x_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_x_set" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_x_set" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_x_set" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
if (arg1) (arg1)->m_x = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_x_get" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
result = ((arg1)->m_x);
|
|
resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Rect2D_y_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_y_set" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_y_set" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_y_set" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
if (arg1) (arg1)->m_y = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_y_get" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
result = ((arg1)->m_y);
|
|
resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Rect2D_width_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_width_set" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_width_set" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_width_set" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
if (arg1) (arg1)->m_width = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_width_get" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
result = ((arg1)->m_width);
|
|
resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_height_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Rect2D_height_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_height_set" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_height_set" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_height_set" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
if (arg1) (arg1)->m_height = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_height_get" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
result = ((arg1)->m_height);
|
|
resultobj = SWIG_NewPointerObj((new wxDouble(static_cast< const wxDouble& >(result))), SWIGTYPE_p_wxDouble, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
wxDouble arg2 = (wxDouble) 0 ;
|
|
wxDouble arg3 = (wxDouble) 0 ;
|
|
wxDouble arg4 = (wxDouble) 0 ;
|
|
wxDouble arg5 = (wxDouble) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
void *argp3 ;
|
|
int res3 = 0 ;
|
|
void *argp4 ;
|
|
int res4 = 0 ;
|
|
void *argp5 ;
|
|
int res5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:Rect2D_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Set" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
if (obj1) {
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Rect2D_Set" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Set" "', expected argument " "2"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
}
|
|
if (obj2) {
|
|
{
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Rect2D_Set" "', expected argument " "3"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp3) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Set" "', expected argument " "3"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp3);
|
|
arg3 = *temp;
|
|
if (SWIG_IsNewObj(res3)) delete temp;
|
|
}
|
|
}
|
|
}
|
|
if (obj3) {
|
|
{
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Rect2D_Set" "', expected argument " "4"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp4) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Set" "', expected argument " "4"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp4);
|
|
arg4 = *temp;
|
|
if (SWIG_IsNewObj(res4)) delete temp;
|
|
}
|
|
}
|
|
}
|
|
if (obj4) {
|
|
{
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxDouble, 0 | 0);
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Rect2D_Set" "', expected argument " "5"" of type '" "wxDouble""'");
|
|
}
|
|
if (!argp5) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Rect2D_Set" "', expected argument " "5"" of type '" "wxDouble""'");
|
|
} else {
|
|
wxDouble * temp = reinterpret_cast< wxDouble * >(argp5);
|
|
arg5 = *temp;
|
|
if (SWIG_IsNewObj(res5)) delete temp;
|
|
}
|
|
}
|
|
}
|
|
{
|
|
wxRect2D_Set(arg1,arg2,arg3,arg4,arg5);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Rect2D_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxRect2D *arg1 = (wxRect2D *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRect2D, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rect2D_Get" "', expected argument " "1"" of type '" "wxRect2D *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxRect2D * >(argp1);
|
|
{
|
|
result = (PyObject *)wxRect2D_Get(arg1);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Rect2D_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxRect2D, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *Rect2D_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN int DefaultPosition_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable DefaultPosition is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *DefaultPosition_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxDefaultPosition), SWIGTYPE_p_wxPoint, 0 );
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN int DefaultSize_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable DefaultSize is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *DefaultSize_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxDefaultSize), SWIGTYPE_p_wxSize, 0 );
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_InputStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
PyObject *arg1 = (PyObject *) 0 ;
|
|
wxPyInputStream *result = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "p", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_InputStream",kwnames,&obj0)) SWIG_fail;
|
|
arg1 = obj0;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxPyInputStream *)new_wxPyInputStream(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_InputStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InputStream" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_InputStream_close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_close" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->close();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_InputStream_flush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_flush" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->flush();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_InputStream_eof(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_eof" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->eof();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_InputStream_read(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
|
|
int arg2 = (int) -1 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "size", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_read",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_read" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InputStream_read" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)(arg1)->read(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_InputStream_readline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
|
|
int arg2 = (int) -1 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "size", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readline",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_readline" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InputStream_readline" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)(arg1)->readline(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_InputStream_readlines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
|
|
int arg2 = (int) -1 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "sizehint", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:InputStream_readlines",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_readlines" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InputStream_readlines" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)(arg1)->readlines(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_InputStream_seek(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
|
|
int arg2 ;
|
|
int arg3 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "offset",(char *) "whence", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_seek",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_seek" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InputStream_seek" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InputStream_seek" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->seek(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_InputStream_tell(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_tell" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->tell();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_InputStream_Peek(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
|
|
char result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_Peek" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (char)(arg1)->Peek();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_char(static_cast< char >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_InputStream_GetC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
|
|
char result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_GetC" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (char)(arg1)->GetC();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_char(static_cast< char >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_InputStream_LastRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
|
|
size_t result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_LastRead" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (size_t)(arg1)->LastRead();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_InputStream_CanRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_CanRead" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->CanRead();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_InputStream_Eof(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_Eof" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Eof();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_InputStream_Ungetch(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
|
|
char arg2 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
char val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "c", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InputStream_Ungetch",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_Ungetch" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
|
|
ecode2 = SWIG_AsVal_char(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InputStream_Ungetch" "', expected argument " "2"" of type '" "char""'");
|
|
}
|
|
arg2 = static_cast< char >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Ungetch(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_InputStream_SeekI(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
|
|
long arg2 ;
|
|
wxSeekMode arg3 = (wxSeekMode) wxFromStart ;
|
|
long result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
long val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos",(char *) "mode", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:InputStream_SeekI",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_SeekI" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
|
|
ecode2 = SWIG_AsVal_long(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "InputStream_SeekI" "', expected argument " "2"" of type '" "long""'");
|
|
}
|
|
arg2 = static_cast< long >(val2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "InputStream_SeekI" "', expected argument " "3"" of type '" "wxSeekMode""'");
|
|
}
|
|
arg3 = static_cast< wxSeekMode >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (long)(arg1)->SeekI(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_long(static_cast< long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_InputStream_TellI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyInputStream *arg1 = (wxPyInputStream *) 0 ;
|
|
long result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyInputStream, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputStream_TellI" "', expected argument " "1"" of type '" "wxPyInputStream *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyInputStream * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (long)(arg1)->TellI();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_long(static_cast< long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *InputStream_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxPyInputStream, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *InputStream_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_OutputStream_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxOutputStream *arg1 = (wxOutputStream *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "obj", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:OutputStream_write",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxOutputStream, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputStream_write" "', expected argument " "1"" of type '" "wxOutputStream *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxOutputStream * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxOutputStream_write(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_OutputStream_LastWrite(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxOutputStream *arg1 = (wxOutputStream *) 0 ;
|
|
size_t result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOutputStream, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputStream_LastWrite" "', expected argument " "1"" of type '" "wxOutputStream const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxOutputStream * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (size_t)((wxOutputStream const *)arg1)->LastWrite();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *OutputStream_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxOutputStream, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_FSFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxInputStream *arg1 = (wxInputStream *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
wxString *arg3 = 0 ;
|
|
wxString *arg4 = 0 ;
|
|
wxDateTime arg5 ;
|
|
wxFSFile *result = 0 ;
|
|
wxPyInputStream *temp1 ;
|
|
bool temp2 = false ;
|
|
bool temp3 = false ;
|
|
bool temp4 = false ;
|
|
void *argp5 ;
|
|
int res5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "stream",(char *) "loc",(char *) "mimetype",(char *) "anchor",(char *) "modif", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:new_FSFile",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
{
|
|
if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
|
|
arg1 = wxPyCBInputStream_copy((wxPyCBInputStream*)temp1->m_wxis);
|
|
} else {
|
|
PyErr_Clear(); // clear the failure of the wxPyConvert above
|
|
arg1 = wxPyCBInputStream_create(obj0, true);
|
|
if (arg1 == NULL) {
|
|
PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
|
|
SWIG_fail;
|
|
}
|
|
}
|
|
}
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
{
|
|
arg4 = wxString_in_helper(obj3);
|
|
if (arg4 == NULL) SWIG_fail;
|
|
temp4 = true;
|
|
}
|
|
{
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxDateTime, 0 | 0);
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "new_FSFile" "', expected argument " "5"" of type '" "wxDateTime""'");
|
|
}
|
|
if (!argp5) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FSFile" "', expected argument " "5"" of type '" "wxDateTime""'");
|
|
} else {
|
|
wxDateTime * temp = reinterpret_cast< wxDateTime * >(argp5);
|
|
arg5 = *temp;
|
|
if (SWIG_IsNewObj(res5)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxFSFile *)new wxFSFile(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFSFile, SWIG_POINTER_NEW | 0 );
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_FSFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxFSFile *arg1 = (wxFSFile *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FSFile" "', expected argument " "1"" of type '" "wxFSFile *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFSFile * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FSFile_GetStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxFSFile *arg1 = (wxFSFile *) 0 ;
|
|
wxInputStream *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FSFile_GetStream" "', expected argument " "1"" of type '" "wxFSFile *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFSFile * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxInputStream *)(arg1)->GetStream();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
wxPyInputStream * _ptr = NULL;
|
|
|
|
if (result) {
|
|
_ptr = new wxPyInputStream(result);
|
|
}
|
|
resultobj = wxPyConstructObject(_ptr, wxT("wxPyInputStream"), 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FSFile_DetachStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxFSFile *arg1 = (wxFSFile *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FSFile_DetachStream" "', expected argument " "1"" of type '" "wxFSFile *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFSFile * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->DetachStream();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FSFile_GetMimeType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxFSFile *arg1 = (wxFSFile *) 0 ;
|
|
wxString *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FSFile_GetMimeType" "', expected argument " "1"" of type '" "wxFSFile *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFSFile * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxString const &_result_ref = (arg1)->GetMimeType();
|
|
result = (wxString *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FSFile_GetLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxFSFile *arg1 = (wxFSFile *) 0 ;
|
|
wxString *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FSFile_GetLocation" "', expected argument " "1"" of type '" "wxFSFile *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFSFile * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxString const &_result_ref = (arg1)->GetLocation();
|
|
result = (wxString *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FSFile_GetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxFSFile *arg1 = (wxFSFile *) 0 ;
|
|
wxString *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FSFile_GetAnchor" "', expected argument " "1"" of type '" "wxFSFile *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFSFile * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxString const &_result_ref = (arg1)->GetAnchor();
|
|
result = (wxString *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FSFile_GetModificationTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxFSFile *arg1 = (wxFSFile *) 0 ;
|
|
wxDateTime result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFSFile, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FSFile_GetModificationTime" "', expected argument " "1"" of type '" "wxFSFile *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFSFile * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetModificationTime();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *FSFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxFSFile, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *FSFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_CPPFileSystemHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileSystemHandler, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CPPFileSystemHandler" "', expected argument " "1"" of type '" "wxFileSystemHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFileSystemHandler * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CPPFileSystemHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxFileSystemHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_FileSystemHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyFileSystemHandler *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_FileSystemHandler",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxPyFileSystemHandler *)new wxPyFileSystemHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFileSystemHandler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystemHandler__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
PyObject *arg3 = (PyObject *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "self",(char *) "_class", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
|
|
arg2 = obj1;
|
|
arg3 = obj2;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->_setCallbackInfo(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystemHandler_CanOpen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "location", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_CanOpen",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_CanOpen" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystemHandler_OpenFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
|
|
wxFileSystem *arg2 = 0 ;
|
|
wxString *arg3 = 0 ;
|
|
wxFSFile *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
bool temp3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "fs",(char *) "location", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:FileSystemHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_OpenFile" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFileSystem, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FileSystemHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "FileSystemHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxFileSystem * >(argp2);
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystemHandler_FindFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
int arg3 = (int) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "spec",(char *) "flags", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystemHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_FindFirst" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileSystemHandler_FindFirst" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystemHandler_FindNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_FindNext" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->FindNext();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystemHandler_GetProtocol(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "location", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetProtocol",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_GetProtocol" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetProtocol((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystemHandler_GetLeftLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "location", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetLeftLocation",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_GetLeftLocation" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetLeftLocation((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystemHandler_GetAnchor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "location", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetAnchor",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_GetAnchor" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetAnchor((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystemHandler_GetRightLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "location", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetRightLocation",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_GetRightLocation" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetRightLocation((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystemHandler_GetMimeTypeFromExt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyFileSystemHandler *arg1 = (wxPyFileSystemHandler *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "location", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystemHandler_GetMimeTypeFromExt",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFileSystemHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystemHandler_GetMimeTypeFromExt" "', expected argument " "1"" of type '" "wxPyFileSystemHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyFileSystemHandler * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetMimeTypeFromExt((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *FileSystemHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFileSystemHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *FileSystemHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_FileSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxFileSystem *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_FileSystem",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxFileSystem *)new wxFileSystem();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileSystem, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_FileSystem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxFileSystem *arg1 = (wxFileSystem *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileSystem, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FileSystem" "', expected argument " "1"" of type '" "wxFileSystem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFileSystem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystem_ChangePathTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxFileSystem *arg1 = (wxFileSystem *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
bool arg3 = (bool) false ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
bool val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "location",(char *) "is_dir", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_ChangePathTo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileSystem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_ChangePathTo" "', expected argument " "1"" of type '" "wxFileSystem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFileSystem * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_bool(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileSystem_ChangePathTo" "', expected argument " "3"" of type '" "bool""'");
|
|
}
|
|
arg3 = static_cast< bool >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->ChangePathTo((wxString const &)*arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystem_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxFileSystem *arg1 = (wxFileSystem *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileSystem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_GetPath" "', expected argument " "1"" of type '" "wxFileSystem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFileSystem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetPath();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystem_OpenFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxFileSystem *arg1 = (wxFileSystem *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
wxFSFile *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "location", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FileSystem_OpenFile",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileSystem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_OpenFile" "', expected argument " "1"" of type '" "wxFileSystem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFileSystem * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxFSFile *)(arg1)->OpenFile((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystem_FindFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxFileSystem *arg1 = (wxFileSystem *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
int arg3 = (int) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "spec",(char *) "flags", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FileSystem_FindFirst",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileSystem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_FindFirst" "', expected argument " "1"" of type '" "wxFileSystem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFileSystem * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FileSystem_FindFirst" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystem_FindNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxFileSystem *arg1 = (wxFileSystem *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFileSystem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_FindNext" "', expected argument " "1"" of type '" "wxFileSystem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFileSystem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->FindNext();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystem_AddHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "handler", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_AddHandler",kwnames,&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxFileSystemHandler, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_AddHandler" "', expected argument " "1"" of type '" "wxFileSystemHandler *""'");
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxFileSystem::AddHandler(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystem_RemoveHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxFileSystemHandler *arg1 = (wxFileSystemHandler *) 0 ;
|
|
wxFileSystemHandler *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "handler", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_RemoveHandler",kwnames,&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFileSystemHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FileSystem_RemoveHandler" "', expected argument " "1"" of type '" "wxFileSystemHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFileSystemHandler * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxFileSystemHandler *)wxFileSystem::RemoveHandler(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFileSystemHandler, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystem_CleanUpHandlers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"FileSystem_CleanUpHandlers",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxFileSystem::CleanUpHandlers();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystem_FileNameToURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxString *arg1 = 0 ;
|
|
wxString result;
|
|
bool temp1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "filename", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_FileNameToURL",kwnames,&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = wxString_in_helper(obj0);
|
|
if (arg1 == NULL) SWIG_fail;
|
|
temp1 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxFileSystem::FileNameToURL((wxString const &)*arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FileSystem_URLToFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxString *arg1 = 0 ;
|
|
wxString result;
|
|
bool temp1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "url", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FileSystem_URLToFileName",kwnames,&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = wxString_in_helper(obj0);
|
|
if (arg1 == NULL) SWIG_fail;
|
|
temp1 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxFileSystem_URLToFileName((wxString const &)*arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *FileSystem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxFileSystem, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *FileSystem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_InternetFSHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxInternetFSHandler *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_InternetFSHandler",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxInternetFSHandler *)new wxInternetFSHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxInternetFSHandler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_InternetFSHandler_CanOpen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "location", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:InternetFSHandler_CanOpen",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxInternetFSHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InternetFSHandler_CanOpen" "', expected argument " "1"" of type '" "wxInternetFSHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxInternetFSHandler * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_InternetFSHandler_OpenFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxInternetFSHandler *arg1 = (wxInternetFSHandler *) 0 ;
|
|
wxFileSystem *arg2 = 0 ;
|
|
wxString *arg3 = 0 ;
|
|
wxFSFile *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
bool temp3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "fs",(char *) "location", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:InternetFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxInternetFSHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InternetFSHandler_OpenFile" "', expected argument " "1"" of type '" "wxInternetFSHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxInternetFSHandler * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFileSystem, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InternetFSHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "InternetFSHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxFileSystem * >(argp2);
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *InternetFSHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxInternetFSHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *InternetFSHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_ZipFSHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxZipFSHandler *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_ZipFSHandler",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxZipFSHandler *)new wxZipFSHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxZipFSHandler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ZipFSHandler_CanOpen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "location", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ZipFSHandler_CanOpen",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxZipFSHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZipFSHandler_CanOpen" "', expected argument " "1"" of type '" "wxZipFSHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxZipFSHandler * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ZipFSHandler_OpenFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
|
|
wxFileSystem *arg2 = 0 ;
|
|
wxString *arg3 = 0 ;
|
|
wxFSFile *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
bool temp3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "fs",(char *) "location", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ZipFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxZipFSHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZipFSHandler_OpenFile" "', expected argument " "1"" of type '" "wxZipFSHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxZipFSHandler * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFileSystem, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ZipFSHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ZipFSHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxFileSystem * >(argp2);
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ZipFSHandler_FindFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
int arg3 = (int) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "spec",(char *) "flags", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ZipFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxZipFSHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZipFSHandler_FindFirst" "', expected argument " "1"" of type '" "wxZipFSHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxZipFSHandler * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ZipFSHandler_FindFirst" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ZipFSHandler_FindNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxZipFSHandler *arg1 = (wxZipFSHandler *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxZipFSHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ZipFSHandler_FindNext" "', expected argument " "1"" of type '" "wxZipFSHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxZipFSHandler * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->FindNext();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *ZipFSHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxZipFSHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *ZipFSHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap___wxMemoryFSHandler_AddFile_wxImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxString *arg1 = 0 ;
|
|
wxImage *arg2 = 0 ;
|
|
long arg3 ;
|
|
bool temp1 = false ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
long val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "filename",(char *) "image",(char *) "type", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = wxString_in_helper(obj0);
|
|
if (arg1 == NULL) SWIG_fail;
|
|
temp1 = true;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__wxMemoryFSHandler_AddFile_wxImage" "', expected argument " "2"" of type '" "wxImage &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__wxMemoryFSHandler_AddFile_wxImage" "', expected argument " "2"" of type '" "wxImage &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxImage * >(argp2);
|
|
ecode3 = SWIG_AsVal_long(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "__wxMemoryFSHandler_AddFile_wxImage" "', expected argument " "3"" of type '" "long""'");
|
|
}
|
|
arg3 = static_cast< long >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
__wxMemoryFSHandler_AddFile_wxImage((wxString const &)*arg1,*arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap___wxMemoryFSHandler_AddFile_wxBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxString *arg1 = 0 ;
|
|
wxBitmap *arg2 = 0 ;
|
|
long arg3 ;
|
|
bool temp1 = false ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
long val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "filename",(char *) "bitmap",(char *) "type", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:__wxMemoryFSHandler_AddFile_wxBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = wxString_in_helper(obj0);
|
|
if (arg1 == NULL) SWIG_fail;
|
|
temp1 = true;
|
|
}
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "__wxMemoryFSHandler_AddFile_wxBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "__wxMemoryFSHandler_AddFile_wxBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxBitmap * >(argp2);
|
|
ecode3 = SWIG_AsVal_long(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "__wxMemoryFSHandler_AddFile_wxBitmap" "', expected argument " "3"" of type '" "long""'");
|
|
}
|
|
arg3 = static_cast< long >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
__wxMemoryFSHandler_AddFile_wxBitmap((wxString const &)*arg1,(wxBitmap const &)*arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap___wxMemoryFSHandler_AddFile_Data(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxString *arg1 = 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool temp1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "filename",(char *) "data", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:__wxMemoryFSHandler_AddFile_Data",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = wxString_in_helper(obj0);
|
|
if (arg1 == NULL) SWIG_fail;
|
|
temp1 = true;
|
|
}
|
|
arg2 = obj1;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
__wxMemoryFSHandler_AddFile_Data((wxString const &)*arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_MemoryFSHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMemoryFSHandler *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_MemoryFSHandler",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMemoryFSHandler *)new wxMemoryFSHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryFSHandler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MemoryFSHandler_RemoveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxString *arg1 = 0 ;
|
|
bool temp1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "filename", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MemoryFSHandler_RemoveFile",kwnames,&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = wxString_in_helper(obj0);
|
|
if (arg1 == NULL) SWIG_fail;
|
|
temp1 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxMemoryFSHandler::RemoveFile((wxString const &)*arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MemoryFSHandler_CanOpen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "location", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryFSHandler_CanOpen",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryFSHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryFSHandler_CanOpen" "', expected argument " "1"" of type '" "wxMemoryFSHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMemoryFSHandler * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->CanOpen((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MemoryFSHandler_OpenFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
|
|
wxFileSystem *arg2 = 0 ;
|
|
wxString *arg3 = 0 ;
|
|
wxFSFile *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
bool temp3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "fs",(char *) "location", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MemoryFSHandler_OpenFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryFSHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryFSHandler_OpenFile" "', expected argument " "1"" of type '" "wxMemoryFSHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMemoryFSHandler * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFileSystem, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryFSHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryFSHandler_OpenFile" "', expected argument " "2"" of type '" "wxFileSystem &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxFileSystem * >(argp2);
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxFSFile *)(arg1)->OpenFile(*arg2,(wxString const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MemoryFSHandler_FindFirst(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
int arg3 = (int) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "spec",(char *) "flags", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MemoryFSHandler_FindFirst",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryFSHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryFSHandler_FindFirst" "', expected argument " "1"" of type '" "wxMemoryFSHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMemoryFSHandler * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MemoryFSHandler_FindFirst" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->FindFirst((wxString const &)*arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MemoryFSHandler_FindNext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMemoryFSHandler *arg1 = (wxMemoryFSHandler *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMemoryFSHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryFSHandler_FindNext" "', expected argument " "1"" of type '" "wxMemoryFSHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMemoryFSHandler * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->FindNext();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *MemoryFSHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryFSHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *MemoryFSHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_ImageHandler_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImageHandler *arg1 = (wxImageHandler *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_GetName" "', expected argument " "1"" of type '" "wxImageHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImageHandler * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetName();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ImageHandler_GetExtension(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImageHandler *arg1 = (wxImageHandler *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_GetExtension" "', expected argument " "1"" of type '" "wxImageHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImageHandler * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetExtension();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ImageHandler_GetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImageHandler *arg1 = (wxImageHandler *) 0 ;
|
|
long result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_GetType" "', expected argument " "1"" of type '" "wxImageHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImageHandler * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (long)(arg1)->GetType();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_long(static_cast< long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ImageHandler_GetMimeType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImageHandler *arg1 = (wxImageHandler *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_GetMimeType" "', expected argument " "1"" of type '" "wxImageHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImageHandler * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetMimeType();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ImageHandler_CanRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImageHandler *arg1 = (wxImageHandler *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "name", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanRead",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_CanRead" "', expected argument " "1"" of type '" "wxImageHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImageHandler * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->CanRead((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ImageHandler_CanReadStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImageHandler *arg1 = (wxImageHandler *) 0 ;
|
|
wxInputStream *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPyInputStream *temp2 ;
|
|
bool created2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "stream", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_CanReadStream",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_CanReadStream" "', expected argument " "1"" of type '" "wxImageHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImageHandler * >(argp1);
|
|
{
|
|
if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
|
|
arg2 = temp2->m_wxis;
|
|
created2 = false;
|
|
} else {
|
|
PyErr_Clear(); // clear the failure of the wxPyConvert above
|
|
arg2 = wxPyCBInputStream_create(obj1, false);
|
|
if (arg2 == NULL) {
|
|
PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
|
|
SWIG_fail;
|
|
}
|
|
created2 = true;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->CanRead(*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (created2) delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (created2) delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ImageHandler_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImageHandler *arg1 = (wxImageHandler *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "name", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetName",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_SetName" "', expected argument " "1"" of type '" "wxImageHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImageHandler * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetName((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ImageHandler_SetExtension(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImageHandler *arg1 = (wxImageHandler *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "extension", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetExtension",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_SetExtension" "', expected argument " "1"" of type '" "wxImageHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImageHandler * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetExtension((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ImageHandler_SetType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImageHandler *arg1 = (wxImageHandler *) 0 ;
|
|
long arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
long val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "type", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetType",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_SetType" "', expected argument " "1"" of type '" "wxImageHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImageHandler * >(argp1);
|
|
ecode2 = SWIG_AsVal_long(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageHandler_SetType" "', expected argument " "2"" of type '" "long""'");
|
|
}
|
|
arg2 = static_cast< long >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetType(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ImageHandler_SetMimeType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImageHandler *arg1 = (wxImageHandler *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "mimetype", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHandler_SetMimeType",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHandler_SetMimeType" "', expected argument " "1"" of type '" "wxImageHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImageHandler * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetMimeType((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *ImageHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxImageHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_PyImageHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyImageHandler *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_PyImageHandler",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxPyImageHandler *)new wxPyImageHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyImageHandler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyImageHandler__SetSelf(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyImageHandler *arg1 = (wxPyImageHandler *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "self", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyImageHandler__SetSelf",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyImageHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyImageHandler__SetSelf" "', expected argument " "1"" of type '" "wxPyImageHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyImageHandler * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->_SetSelf(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *PyImageHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxPyImageHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *PyImageHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_ImageHistogram(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImageHistogram *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_ImageHistogram",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxImageHistogram *)new wxImageHistogram();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageHistogram, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ImageHistogram_MakeKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
byte arg1 ;
|
|
byte arg2 ;
|
|
byte arg3 ;
|
|
unsigned long result;
|
|
unsigned char val1 ;
|
|
int ecode1 = 0 ;
|
|
unsigned char val2 ;
|
|
int ecode2 = 0 ;
|
|
unsigned char val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "r",(char *) "g",(char *) "b", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageHistogram_MakeKey",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ImageHistogram_MakeKey" "', expected argument " "1"" of type '" "byte""'");
|
|
}
|
|
arg1 = static_cast< byte >(val1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageHistogram_MakeKey" "', expected argument " "2"" of type '" "byte""'");
|
|
}
|
|
arg2 = static_cast< byte >(val2);
|
|
ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ImageHistogram_MakeKey" "', expected argument " "3"" of type '" "byte""'");
|
|
}
|
|
arg3 = static_cast< byte >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (unsigned long)wxImageHistogram::MakeKey(arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ImageHistogram_FindFirstUnusedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
|
|
byte *arg2 = (byte *) 0 ;
|
|
byte *arg3 = (byte *) 0 ;
|
|
byte *arg4 = (byte *) 0 ;
|
|
byte arg5 = (byte) 1 ;
|
|
byte arg6 = (byte) 0 ;
|
|
byte arg7 = (byte) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
byte temp2 ;
|
|
int res2 = SWIG_TMPOBJ ;
|
|
byte temp3 ;
|
|
int res3 = SWIG_TMPOBJ ;
|
|
byte temp4 ;
|
|
int res4 = SWIG_TMPOBJ ;
|
|
unsigned char val5 ;
|
|
int ecode5 = 0 ;
|
|
unsigned char val6 ;
|
|
int ecode6 = 0 ;
|
|
unsigned char val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
|
|
};
|
|
|
|
arg2 = &temp2;
|
|
arg3 = &temp3;
|
|
arg4 = &temp4;
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:ImageHistogram_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHistogram_FindFirstUnusedColour" "', expected argument " "1"" of type '" "wxImageHistogram const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImageHistogram * >(argp1);
|
|
if (obj1) {
|
|
ecode5 = SWIG_AsVal_unsigned_SS_char(obj1, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageHistogram_FindFirstUnusedColour" "', expected argument " "5"" of type '" "byte""'");
|
|
}
|
|
arg5 = static_cast< byte >(val5);
|
|
}
|
|
if (obj2) {
|
|
ecode6 = SWIG_AsVal_unsigned_SS_char(obj2, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageHistogram_FindFirstUnusedColour" "', expected argument " "6"" of type '" "byte""'");
|
|
}
|
|
arg6 = static_cast< byte >(val6);
|
|
}
|
|
if (obj3) {
|
|
ecode7 = SWIG_AsVal_unsigned_SS_char(obj3, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageHistogram_FindFirstUnusedColour" "', expected argument " "7"" of type '" "byte""'");
|
|
}
|
|
arg7 = static_cast< byte >(val7);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxImageHistogram const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
if (SWIG_IsTmpObj(res2)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg2)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res4)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ImageHistogram_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
|
|
unsigned long arg2 ;
|
|
unsigned long result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "key", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHistogram_GetCount",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHistogram_GetCount" "', expected argument " "1"" of type '" "wxImageHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImageHistogram * >(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageHistogram_GetCount" "', expected argument " "2"" of type '" "unsigned long""'");
|
|
}
|
|
arg2 = static_cast< unsigned long >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (unsigned long)wxImageHistogram_GetCount(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ImageHistogram_GetCountRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
|
|
byte arg2 ;
|
|
byte arg3 ;
|
|
byte arg4 ;
|
|
unsigned long result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned char val2 ;
|
|
int ecode2 = 0 ;
|
|
unsigned char val3 ;
|
|
int ecode3 = 0 ;
|
|
unsigned char val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ImageHistogram_GetCountRGB",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHistogram_GetCountRGB" "', expected argument " "1"" of type '" "wxImageHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImageHistogram * >(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageHistogram_GetCountRGB" "', expected argument " "2"" of type '" "byte""'");
|
|
}
|
|
arg2 = static_cast< byte >(val2);
|
|
ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ImageHistogram_GetCountRGB" "', expected argument " "3"" of type '" "byte""'");
|
|
}
|
|
arg3 = static_cast< byte >(val3);
|
|
ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageHistogram_GetCountRGB" "', expected argument " "4"" of type '" "byte""'");
|
|
}
|
|
arg4 = static_cast< byte >(val4);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (unsigned long)wxImageHistogram_GetCountRGB(arg1,arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ImageHistogram_GetCountColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImageHistogram *arg1 = (wxImageHistogram *) 0 ;
|
|
wxColour *arg2 = 0 ;
|
|
unsigned long result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxColour temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "colour", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageHistogram_GetCountColour",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHistogram, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageHistogram_GetCountColour" "', expected argument " "1"" of type '" "wxImageHistogram *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImageHistogram * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (unsigned long)wxImageHistogram_GetCountColour(arg1,(wxColour const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *ImageHistogram_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxImageHistogram, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *ImageHistogram_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_Image_RGBValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
byte arg1 = (byte) 0 ;
|
|
byte arg2 = (byte) 0 ;
|
|
byte arg3 = (byte) 0 ;
|
|
wxImage_RGBValue *result = 0 ;
|
|
unsigned char val1 ;
|
|
int ecode1 = 0 ;
|
|
unsigned char val2 ;
|
|
int ecode2 = 0 ;
|
|
unsigned char val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "r",(char *) "g",(char *) "b", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Image_RGBValue",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Image_RGBValue" "', expected argument " "1"" of type '" "byte""'");
|
|
}
|
|
arg1 = static_cast< byte >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Image_RGBValue" "', expected argument " "2"" of type '" "byte""'");
|
|
}
|
|
arg2 = static_cast< byte >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Image_RGBValue" "', expected argument " "3"" of type '" "byte""'");
|
|
}
|
|
arg3 = static_cast< byte >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxImage_RGBValue *)new wxImage_RGBValue(arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage_RGBValue, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_RGBValue_red_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage_RGBValue *arg1 = (wxImage_RGBValue *) 0 ;
|
|
byte arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned char val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Image_RGBValue_red_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_RGBValue, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBValue_red_set" "', expected argument " "1"" of type '" "wxImage_RGBValue *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage_RGBValue * >(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_RGBValue_red_set" "', expected argument " "2"" of type '" "byte""'");
|
|
}
|
|
arg2 = static_cast< byte >(val2);
|
|
if (arg1) (arg1)->red = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_RGBValue_red_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage_RGBValue *arg1 = (wxImage_RGBValue *) 0 ;
|
|
byte result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_RGBValue, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBValue_red_get" "', expected argument " "1"" of type '" "wxImage_RGBValue *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage_RGBValue * >(argp1);
|
|
result = (byte) ((arg1)->red);
|
|
resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_RGBValue_green_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage_RGBValue *arg1 = (wxImage_RGBValue *) 0 ;
|
|
byte arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned char val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Image_RGBValue_green_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_RGBValue, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBValue_green_set" "', expected argument " "1"" of type '" "wxImage_RGBValue *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage_RGBValue * >(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_RGBValue_green_set" "', expected argument " "2"" of type '" "byte""'");
|
|
}
|
|
arg2 = static_cast< byte >(val2);
|
|
if (arg1) (arg1)->green = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_RGBValue_green_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage_RGBValue *arg1 = (wxImage_RGBValue *) 0 ;
|
|
byte result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_RGBValue, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBValue_green_get" "', expected argument " "1"" of type '" "wxImage_RGBValue *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage_RGBValue * >(argp1);
|
|
result = (byte) ((arg1)->green);
|
|
resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_RGBValue_blue_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage_RGBValue *arg1 = (wxImage_RGBValue *) 0 ;
|
|
byte arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned char val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Image_RGBValue_blue_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_RGBValue, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBValue_blue_set" "', expected argument " "1"" of type '" "wxImage_RGBValue *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage_RGBValue * >(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_char(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_RGBValue_blue_set" "', expected argument " "2"" of type '" "byte""'");
|
|
}
|
|
arg2 = static_cast< byte >(val2);
|
|
if (arg1) (arg1)->blue = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_RGBValue_blue_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage_RGBValue *arg1 = (wxImage_RGBValue *) 0 ;
|
|
byte result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_RGBValue, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBValue_blue_get" "', expected argument " "1"" of type '" "wxImage_RGBValue *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage_RGBValue * >(argp1);
|
|
result = (byte) ((arg1)->blue);
|
|
resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Image_RGBValue_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxImage_RGBValue, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *Image_RGBValue_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_Image_HSVValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
double arg1 = (double) 0.0 ;
|
|
double arg2 = (double) 0.0 ;
|
|
double arg3 = (double) 0.0 ;
|
|
wxImage_HSVValue *result = 0 ;
|
|
double val1 ;
|
|
int ecode1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "h",(char *) "s",(char *) "v", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Image_HSVValue",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_double(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Image_HSVValue" "', expected argument " "1"" of type '" "double""'");
|
|
}
|
|
arg1 = static_cast< double >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Image_HSVValue" "', expected argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Image_HSVValue" "', expected argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxImage_HSVValue *)new wxImage_HSVValue(arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage_HSVValue, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_HSVValue_hue_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage_HSVValue *arg1 = (wxImage_HSVValue *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Image_HSVValue_hue_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_HSVValue, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVValue_hue_set" "', expected argument " "1"" of type '" "wxImage_HSVValue *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage_HSVValue * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_HSVValue_hue_set" "', expected argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->hue = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_HSVValue_hue_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage_HSVValue *arg1 = (wxImage_HSVValue *) 0 ;
|
|
double result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_HSVValue, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVValue_hue_get" "', expected argument " "1"" of type '" "wxImage_HSVValue *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage_HSVValue * >(argp1);
|
|
result = (double) ((arg1)->hue);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_HSVValue_saturation_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage_HSVValue *arg1 = (wxImage_HSVValue *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Image_HSVValue_saturation_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_HSVValue, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVValue_saturation_set" "', expected argument " "1"" of type '" "wxImage_HSVValue *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage_HSVValue * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_HSVValue_saturation_set" "', expected argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->saturation = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_HSVValue_saturation_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage_HSVValue *arg1 = (wxImage_HSVValue *) 0 ;
|
|
double result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_HSVValue, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVValue_saturation_get" "', expected argument " "1"" of type '" "wxImage_HSVValue *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage_HSVValue * >(argp1);
|
|
result = (double) ((arg1)->saturation);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_HSVValue_value_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage_HSVValue *arg1 = (wxImage_HSVValue *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Image_HSVValue_value_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_HSVValue, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVValue_value_set" "', expected argument " "1"" of type '" "wxImage_HSVValue *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage_HSVValue * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_HSVValue_value_set" "', expected argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
if (arg1) (arg1)->value = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_HSVValue_value_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage_HSVValue *arg1 = (wxImage_HSVValue *) 0 ;
|
|
double result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage_HSVValue, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVValue_value_get" "', expected argument " "1"" of type '" "wxImage_HSVValue *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage_HSVValue * >(argp1);
|
|
result = (double) ((arg1)->value);
|
|
resultobj = SWIG_From_double(static_cast< double >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Image_HSVValue_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxImage_HSVValue, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *Image_HSVValue_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_Image(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxString *arg1 = 0 ;
|
|
long arg2 = (long) wxBITMAP_TYPE_ANY ;
|
|
int arg3 = (int) -1 ;
|
|
wxImage *result = 0 ;
|
|
bool temp1 = false ;
|
|
long val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "name",(char *) "type",(char *) "index", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Image",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = wxString_in_helper(obj0);
|
|
if (arg1 == NULL) SWIG_fail;
|
|
temp1 = true;
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_long(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Image" "', expected argument " "2"" of type '" "long""'");
|
|
}
|
|
arg2 = static_cast< long >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Image" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxImage *)new wxImage((wxString const &)*arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_NEW | 0 );
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_Image(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Image" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_ImageFromMime(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxString *arg1 = 0 ;
|
|
wxString *arg2 = 0 ;
|
|
int arg3 = (int) -1 ;
|
|
wxImage *result = 0 ;
|
|
bool temp1 = false ;
|
|
bool temp2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "name",(char *) "mimetype",(char *) "index", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromMime",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
arg1 = wxString_in_helper(obj0);
|
|
if (arg1 == NULL) SWIG_fail;
|
|
temp1 = true;
|
|
}
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageFromMime" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxImage *)new wxImage((wxString const &)*arg1,(wxString const &)*arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_ImageFromStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxInputStream *arg1 = 0 ;
|
|
long arg2 = (long) wxBITMAP_TYPE_ANY ;
|
|
int arg3 = (int) -1 ;
|
|
wxImage *result = 0 ;
|
|
wxPyInputStream *temp1 ;
|
|
bool created1 ;
|
|
long val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "stream",(char *) "type",(char *) "index", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_ImageFromStream",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
|
|
arg1 = temp1->m_wxis;
|
|
created1 = false;
|
|
} else {
|
|
PyErr_Clear(); // clear the failure of the wxPyConvert above
|
|
arg1 = wxPyCBInputStream_create(obj0, false);
|
|
if (arg1 == NULL) {
|
|
PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
|
|
SWIG_fail;
|
|
}
|
|
created1 = true;
|
|
}
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_long(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageFromStream" "', expected argument " "2"" of type '" "long""'");
|
|
}
|
|
arg2 = static_cast< long >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageFromStream" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxImage *)new wxImage(*arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if (created1) delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (created1) delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_ImageFromStreamMime(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxInputStream *arg1 = 0 ;
|
|
wxString *arg2 = 0 ;
|
|
int arg3 = (int) -1 ;
|
|
wxImage *result = 0 ;
|
|
wxPyInputStream *temp1 ;
|
|
bool created1 ;
|
|
bool temp2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "stream",(char *) "mimetype",(char *) "index", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_ImageFromStreamMime",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
{
|
|
if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
|
|
arg1 = temp1->m_wxis;
|
|
created1 = false;
|
|
} else {
|
|
PyErr_Clear(); // clear the failure of the wxPyConvert above
|
|
arg1 = wxPyCBInputStream_create(obj0, false);
|
|
if (arg1 == NULL) {
|
|
PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
|
|
SWIG_fail;
|
|
}
|
|
created1 = true;
|
|
}
|
|
}
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageFromStreamMime" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxImage *)new wxImage(*arg1,(wxString const &)*arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if (created1) delete arg1;
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (created1) delete arg1;
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_EmptyImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
int arg2 = (int) 0 ;
|
|
bool arg3 = (bool) true ;
|
|
wxImage *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "width",(char *) "height",(char *) "clear", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_EmptyImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyImage" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyImage" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_bool(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyImage" "', expected argument " "3"" of type '" "bool""'");
|
|
}
|
|
arg3 = static_cast< bool >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxImage *)new_wxImage(arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_ImageFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxBitmap *arg1 = 0 ;
|
|
wxImage *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "bitmap", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ImageFromBitmap",kwnames,&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ImageFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
|
|
}
|
|
if (!argp1) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ImageFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxBitmap * >(argp1);
|
|
{
|
|
if (!wxPyCheckForApp()) SWIG_fail;
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxImage *)new_wxImage((wxBitmap const &)*arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_ImageFromData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
buffer arg3 ;
|
|
int arg4 ;
|
|
wxImage *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
Py_ssize_t temp3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "width",(char *) "height",(char *) "data", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_ImageFromData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageFromData" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageFromData" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
|
|
arg4 = (int)temp3;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxImage *)new_wxImage(arg1,arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_ImageFromDataWithAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
buffer arg3 ;
|
|
int arg4 ;
|
|
buffer arg5 ;
|
|
int arg6 ;
|
|
wxImage *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
Py_ssize_t temp3 ;
|
|
Py_ssize_t temp5 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_ImageFromDataWithAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageFromDataWithAlpha" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageFromDataWithAlpha" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
|
|
arg4 = (int)temp3;
|
|
}
|
|
{
|
|
if (obj3 != Py_None) {
|
|
if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
|
|
arg6 = (int)temp5;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxImage *)new_wxImage(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
bool arg4 = (bool) true ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
bool val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "width",(char *) "height",(char *) "clear", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_Create",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Create" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Create" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_Create" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_bool(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Create" "', expected argument " "4"" of type '" "bool""'");
|
|
}
|
|
arg4 = static_cast< bool >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Create(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Destroy" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Destroy();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 = (int) wxIMAGE_QUALITY_NORMAL ;
|
|
SwigValueWrapper<wxImage > result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "width",(char *) "height",(char *) "quality", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_Scale",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Scale" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Scale" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_Scale" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Scale" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->Scale(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_ResampleBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
SwigValueWrapper<wxImage > result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "width",(char *) "height", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ResampleBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ResampleBox" "', expected argument " "1"" of type '" "wxImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ResampleBox" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ResampleBox" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxImage const *)arg1)->ResampleBox(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_ResampleBicubic(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
SwigValueWrapper<wxImage > result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "width",(char *) "height", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ResampleBicubic",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ResampleBicubic" "', expected argument " "1"" of type '" "wxImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ResampleBicubic" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ResampleBicubic" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxImage const *)arg1)->ResampleBicubic(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_Blur(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int arg2 ;
|
|
SwigValueWrapper<wxImage > result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "radius", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_Blur",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Blur" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Blur" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->Blur(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_BlurHorizontal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int arg2 ;
|
|
SwigValueWrapper<wxImage > result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "radius", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_BlurHorizontal",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_BlurHorizontal" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_BlurHorizontal" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->BlurHorizontal(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_BlurVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int arg2 ;
|
|
SwigValueWrapper<wxImage > result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "radius", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_BlurVertical",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_BlurVertical" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_BlurVertical" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->BlurVertical(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_ShrinkBy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
SwigValueWrapper<wxImage > result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "xFactor",(char *) "yFactor", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_ShrinkBy",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ShrinkBy" "', expected argument " "1"" of type '" "wxImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ShrinkBy" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ShrinkBy" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxImage const *)arg1)->ShrinkBy(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_Rescale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 = (int) wxIMAGE_QUALITY_NORMAL ;
|
|
wxImage *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "width",(char *) "height",(char *) "quality", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_Rescale",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Rescale" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Rescale" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_Rescale" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Rescale" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxImage &_result_ref = (arg1)->Rescale(arg2,arg3,arg4);
|
|
result = (wxImage *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_Resize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
wxPoint *arg3 = 0 ;
|
|
int arg4 = (int) -1 ;
|
|
int arg5 = (int) -1 ;
|
|
int arg6 = (int) -1 ;
|
|
wxImage *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
wxPoint temp3 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "size",(char *) "pos",(char *) "r",(char *) "g",(char *) "b", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:Image_Resize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Resize" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Resize" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_Resize" "', expected argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Image_Resize" "', expected argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxImage &_result_ref = (arg1)->Resize((wxSize const &)*arg2,(wxPoint const &)*arg3,arg4,arg5,arg6);
|
|
result = (wxImage *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImage, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
byte arg4 ;
|
|
byte arg5 ;
|
|
byte arg6 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
unsigned char val4 ;
|
|
int ecode4 = 0 ;
|
|
unsigned char val5 ;
|
|
int ecode5 = 0 ;
|
|
unsigned char val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "g",(char *) "b", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Image_SetRGB",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetRGB" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_SetRGB" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SetRGB" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_SetRGB" "', expected argument " "4"" of type '" "byte""'");
|
|
}
|
|
arg4 = static_cast< byte >(val4);
|
|
ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_SetRGB" "', expected argument " "5"" of type '" "byte""'");
|
|
}
|
|
arg5 = static_cast< byte >(val5);
|
|
ecode6 = SWIG_AsVal_unsigned_SS_char(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Image_SetRGB" "', expected argument " "6"" of type '" "byte""'");
|
|
}
|
|
arg6 = static_cast< byte >(val6);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetRGB(arg2,arg3,arg4,arg5,arg6);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_SetRGBRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxRect *arg2 = 0 ;
|
|
byte arg3 ;
|
|
byte arg4 ;
|
|
byte arg5 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect temp2 ;
|
|
unsigned char val3 ;
|
|
int ecode3 = 0 ;
|
|
unsigned char val4 ;
|
|
int ecode4 = 0 ;
|
|
unsigned char val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rect",(char *) "r",(char *) "g",(char *) "b", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetRGBRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetRGBRect" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SetRGBRect" "', expected argument " "3"" of type '" "byte""'");
|
|
}
|
|
arg3 = static_cast< byte >(val3);
|
|
ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_SetRGBRect" "', expected argument " "4"" of type '" "byte""'");
|
|
}
|
|
arg4 = static_cast< byte >(val4);
|
|
ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_SetRGBRect" "', expected argument " "5"" of type '" "byte""'");
|
|
}
|
|
arg5 = static_cast< byte >(val5);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetRGB((wxRect const &)*arg2,arg3,arg4,arg5);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetRed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
byte result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetRed",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetRed" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_GetRed" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_GetRed" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (byte)(arg1)->GetRed(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetGreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
byte result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetGreen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetGreen" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_GetGreen" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_GetGreen" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (byte)(arg1)->GetGreen(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetBlue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
byte result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetBlue",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetBlue" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_GetBlue" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_GetBlue" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (byte)(arg1)->GetBlue(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_SetAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
byte arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
unsigned char val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y",(char *) "alpha", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetAlpha" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_SetAlpha" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SetAlpha" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_SetAlpha" "', expected argument " "4"" of type '" "byte""'");
|
|
}
|
|
arg4 = static_cast< byte >(val4);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetAlpha(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
byte result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_GetAlpha",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetAlpha" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_GetAlpha" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_GetAlpha" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (byte)(arg1)->GetAlpha(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_HasAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HasAlpha" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->HasAlpha();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_InitAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_InitAlpha" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->InitAlpha();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_IsTransparent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
byte arg4 = (byte) wxIMAGE_ALPHA_THRESHOLD ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
unsigned char val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y",(char *) "threshold", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_IsTransparent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_IsTransparent" "', expected argument " "1"" of type '" "wxImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_IsTransparent" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_IsTransparent" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_IsTransparent" "', expected argument " "4"" of type '" "byte""'");
|
|
}
|
|
arg4 = static_cast< byte >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxImage const *)arg1)->IsTransparent(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_FindFirstUnusedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
byte *arg2 = (byte *) 0 ;
|
|
byte *arg3 = (byte *) 0 ;
|
|
byte *arg4 = (byte *) 0 ;
|
|
byte arg5 = (byte) 0 ;
|
|
byte arg6 = (byte) 0 ;
|
|
byte arg7 = (byte) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
byte temp2 ;
|
|
int res2 = SWIG_TMPOBJ ;
|
|
byte temp3 ;
|
|
int res3 = SWIG_TMPOBJ ;
|
|
byte temp4 ;
|
|
int res4 = SWIG_TMPOBJ ;
|
|
unsigned char val5 ;
|
|
int ecode5 = 0 ;
|
|
unsigned char val6 ;
|
|
int ecode6 = 0 ;
|
|
unsigned char val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "startR",(char *) "startG",(char *) "startB", NULL
|
|
};
|
|
|
|
arg2 = &temp2;
|
|
arg3 = &temp3;
|
|
arg4 = &temp4;
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_FindFirstUnusedColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_FindFirstUnusedColour" "', expected argument " "1"" of type '" "wxImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
if (obj1) {
|
|
ecode5 = SWIG_AsVal_unsigned_SS_char(obj1, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_FindFirstUnusedColour" "', expected argument " "5"" of type '" "byte""'");
|
|
}
|
|
arg5 = static_cast< byte >(val5);
|
|
}
|
|
if (obj2) {
|
|
ecode6 = SWIG_AsVal_unsigned_SS_char(obj2, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Image_FindFirstUnusedColour" "', expected argument " "6"" of type '" "byte""'");
|
|
}
|
|
arg6 = static_cast< byte >(val6);
|
|
}
|
|
if (obj3) {
|
|
ecode7 = SWIG_AsVal_unsigned_SS_char(obj3, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Image_FindFirstUnusedColour" "', expected argument " "7"" of type '" "byte""'");
|
|
}
|
|
arg7 = static_cast< byte >(val7);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxImage const *)arg1)->FindFirstUnusedColour(arg2,arg3,arg4,arg5,arg6,arg7);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
if (SWIG_IsTmpObj(res2)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg2)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res4)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_ConvertAlphaToMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
byte arg2 = (byte) wxIMAGE_ALPHA_THRESHOLD ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned char val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "threshold", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertAlphaToMask",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ConvertAlphaToMask" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ConvertAlphaToMask" "', expected argument " "2"" of type '" "byte""'");
|
|
}
|
|
arg2 = static_cast< byte >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->ConvertAlphaToMask(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_ConvertColourToAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
byte arg2 ;
|
|
byte arg3 ;
|
|
byte arg4 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned char val2 ;
|
|
int ecode2 = 0 ;
|
|
unsigned char val3 ;
|
|
int ecode3 = 0 ;
|
|
unsigned char val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertColourToAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ConvertColourToAlpha" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ConvertColourToAlpha" "', expected argument " "2"" of type '" "byte""'");
|
|
}
|
|
arg2 = static_cast< byte >(val2);
|
|
ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ConvertColourToAlpha" "', expected argument " "3"" of type '" "byte""'");
|
|
}
|
|
arg3 = static_cast< byte >(val3);
|
|
ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_ConvertColourToAlpha" "', expected argument " "4"" of type '" "byte""'");
|
|
}
|
|
arg4 = static_cast< byte >(val4);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->ConvertColourToAlpha(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_SetMaskFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxImage *arg2 = 0 ;
|
|
byte arg3 ;
|
|
byte arg4 ;
|
|
byte arg5 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
unsigned char val3 ;
|
|
int ecode3 = 0 ;
|
|
unsigned char val4 ;
|
|
int ecode4 = 0 ;
|
|
unsigned char val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "mask",(char *) "mr",(char *) "mg",(char *) "mb", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Image_SetMaskFromImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetMaskFromImage" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Image_SetMaskFromImage" "', expected argument " "2"" of type '" "wxImage const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Image_SetMaskFromImage" "', expected argument " "2"" of type '" "wxImage const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxImage * >(argp2);
|
|
ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SetMaskFromImage" "', expected argument " "3"" of type '" "byte""'");
|
|
}
|
|
arg3 = static_cast< byte >(val3);
|
|
ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_SetMaskFromImage" "', expected argument " "4"" of type '" "byte""'");
|
|
}
|
|
arg4 = static_cast< byte >(val4);
|
|
ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_SetMaskFromImage" "', expected argument " "5"" of type '" "byte""'");
|
|
}
|
|
arg5 = static_cast< byte >(val5);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SetMaskFromImage((wxImage const &)*arg2,arg3,arg4,arg5);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_CanRead(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxString *arg1 = 0 ;
|
|
bool result;
|
|
bool temp1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "filename", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanRead",kwnames,&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = wxString_in_helper(obj0);
|
|
if (arg1 == NULL) SWIG_fail;
|
|
temp1 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxImage::CanRead((wxString const &)*arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxString *arg1 = 0 ;
|
|
long arg2 = (long) wxBITMAP_TYPE_ANY ;
|
|
int result;
|
|
bool temp1 = false ;
|
|
long val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "filename",(char *) "type", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_GetImageCount",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = wxString_in_helper(obj0);
|
|
if (arg1 == NULL) SWIG_fail;
|
|
temp1 = true;
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_long(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_GetImageCount" "', expected argument " "2"" of type '" "long""'");
|
|
}
|
|
arg2 = static_cast< long >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)wxImage::GetImageCount((wxString const &)*arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
long arg3 = (long) wxBITMAP_TYPE_ANY ;
|
|
int arg4 = (int) -1 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
long val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "name",(char *) "type",(char *) "index", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_LoadFile" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_long(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_LoadFile" "', expected argument " "3"" of type '" "long""'");
|
|
}
|
|
arg3 = static_cast< long >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_LoadFile" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_LoadMimeFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
wxString *arg3 = 0 ;
|
|
int arg4 = (int) -1 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
bool temp3 = false ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "name",(char *) "mimetype",(char *) "index", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_LoadMimeFile" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_LoadMimeFile" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxString const &)*arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
int arg3 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "name",(char *) "type", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SaveFile" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SaveFile" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_SaveMimeFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
wxString *arg3 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
bool temp3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "name",(char *) "mimetype", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SaveMimeFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SaveMimeFile" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxString const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_CanReadStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxInputStream *arg1 = 0 ;
|
|
bool result;
|
|
wxPyInputStream *temp1 ;
|
|
bool created1 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "stream", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_CanReadStream",kwnames,&obj0)) SWIG_fail;
|
|
{
|
|
if (wxPyConvertSwigPtr(obj0, (void **)&temp1, wxT("wxPyInputStream"))) {
|
|
arg1 = temp1->m_wxis;
|
|
created1 = false;
|
|
} else {
|
|
PyErr_Clear(); // clear the failure of the wxPyConvert above
|
|
arg1 = wxPyCBInputStream_create(obj0, false);
|
|
if (arg1 == NULL) {
|
|
PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
|
|
SWIG_fail;
|
|
}
|
|
created1 = true;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxImage::CanRead(*arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (created1) delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (created1) delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_LoadStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxInputStream *arg2 = 0 ;
|
|
long arg3 = (long) wxBITMAP_TYPE_ANY ;
|
|
int arg4 = (int) -1 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPyInputStream *temp2 ;
|
|
bool created2 ;
|
|
long val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "stream",(char *) "type",(char *) "index", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Image_LoadStream",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_LoadStream" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
|
|
arg2 = temp2->m_wxis;
|
|
created2 = false;
|
|
} else {
|
|
PyErr_Clear(); // clear the failure of the wxPyConvert above
|
|
arg2 = wxPyCBInputStream_create(obj1, false);
|
|
if (arg2 == NULL) {
|
|
PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
|
|
SWIG_fail;
|
|
}
|
|
created2 = true;
|
|
}
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_long(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_LoadStream" "', expected argument " "3"" of type '" "long""'");
|
|
}
|
|
arg3 = static_cast< long >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_LoadStream" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->LoadFile(*arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (created2) delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (created2) delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_LoadMimeStream(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxInputStream *arg2 = 0 ;
|
|
wxString *arg3 = 0 ;
|
|
int arg4 = (int) -1 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPyInputStream *temp2 ;
|
|
bool created2 ;
|
|
bool temp3 = false ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "stream",(char *) "mimetype",(char *) "index", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Image_LoadMimeStream",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_LoadMimeStream" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
if (wxPyConvertSwigPtr(obj1, (void **)&temp2, wxT("wxPyInputStream"))) {
|
|
arg2 = temp2->m_wxis;
|
|
created2 = false;
|
|
} else {
|
|
PyErr_Clear(); // clear the failure of the wxPyConvert above
|
|
arg2 = wxPyCBInputStream_create(obj1, false);
|
|
if (arg2 == NULL) {
|
|
PyErr_SetString(PyExc_TypeError, "Expected wx.InputStream or Python file-like object.");
|
|
SWIG_fail;
|
|
}
|
|
created2 = true;
|
|
}
|
|
}
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_LoadMimeStream" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->LoadFile(*arg2,(wxString const &)*arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (created2) delete arg2;
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (created2) delete arg2;
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_IsOk" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->IsOk();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetWidth" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->GetWidth();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetHeight" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->GetHeight();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetSize" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxImage_GetSize(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetSubImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxRect *arg2 = 0 ;
|
|
SwigValueWrapper<wxImage > result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetSubImage",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetSubImage" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetSubImage((wxRect const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_Size(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
wxPoint *arg3 = 0 ;
|
|
int arg4 = (int) -1 ;
|
|
int arg5 = (int) -1 ;
|
|
int arg6 = (int) -1 ;
|
|
SwigValueWrapper<wxImage > result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
wxPoint temp3 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "size",(char *) "pos",(char *) "r",(char *) "g",(char *) "b", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:Image_Size",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Size" "', expected argument " "1"" of type '" "wxImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Size" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_Size" "', expected argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Image_Size" "', expected argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxImage const *)arg1)->Size((wxSize const &)*arg2,(wxPoint const &)*arg3,arg4,arg5,arg6);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
SwigValueWrapper<wxImage > result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Copy" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->Copy();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxImage *arg2 = 0 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "image",(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_Paste",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Paste" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Image_Paste" "', expected argument " "2"" of type '" "wxImage const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Image_Paste" "', expected argument " "2"" of type '" "wxImage const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxImage * >(argp2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_Paste" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Paste" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Paste((wxImage const &)*arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetData" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)wxImage_GetData(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
buffer arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
Py_ssize_t temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "data", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetData" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
|
|
arg3 = (int)temp2;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxImage_SetData(arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetDataBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetDataBuffer" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)wxImage_GetDataBuffer(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_SetDataBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
buffer arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
Py_ssize_t temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "data", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetDataBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetDataBuffer" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
|
|
arg3 = (int)temp2;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxImage_SetDataBuffer(arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetAlphaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetAlphaData" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)wxImage_GetAlphaData(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_SetAlphaData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
buffer arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
Py_ssize_t temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "alpha", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaData",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetAlphaData" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
if (obj1 != Py_None) {
|
|
if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
|
|
arg3 = (int)temp2;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxImage_SetAlphaData(arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetAlphaBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetAlphaBuffer" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)wxImage_GetAlphaBuffer(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_SetAlphaBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
buffer arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
Py_ssize_t temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "alpha", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_SetAlphaBuffer",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetAlphaBuffer" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
if (obj1 != Py_None) {
|
|
if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail;
|
|
arg3 = (int)temp2;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxImage_SetAlphaBuffer(arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
byte arg2 ;
|
|
byte arg3 ;
|
|
byte arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned char val2 ;
|
|
int ecode2 = 0 ;
|
|
unsigned char val3 ;
|
|
int ecode3 = 0 ;
|
|
unsigned char val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_SetMaskColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetMaskColour" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_SetMaskColour" "', expected argument " "2"" of type '" "byte""'");
|
|
}
|
|
arg2 = static_cast< byte >(val2);
|
|
ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SetMaskColour" "', expected argument " "3"" of type '" "byte""'");
|
|
}
|
|
arg3 = static_cast< byte >(val3);
|
|
ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_SetMaskColour" "', expected argument " "4"" of type '" "byte""'");
|
|
}
|
|
arg4 = static_cast< byte >(val4);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetMaskColour(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetOrFindMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
byte *arg2 = (byte *) 0 ;
|
|
byte *arg3 = (byte *) 0 ;
|
|
byte *arg4 = (byte *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
byte temp2 ;
|
|
int res2 = SWIG_TMPOBJ ;
|
|
byte temp3 ;
|
|
int res3 = SWIG_TMPOBJ ;
|
|
byte temp4 ;
|
|
int res4 = SWIG_TMPOBJ ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
arg2 = &temp2;
|
|
arg3 = &temp3;
|
|
arg4 = &temp4;
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetOrFindMaskColour" "', expected argument " "1"" of type '" "wxImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
((wxImage const *)arg1)->GetOrFindMaskColour(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsTmpObj(res2)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg2)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_unsigned_char, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res4)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetMaskRed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
byte result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetMaskRed" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (byte)(arg1)->GetMaskRed();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetMaskGreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
byte result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetMaskGreen" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (byte)(arg1)->GetMaskGreen();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetMaskBlue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
byte result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetMaskBlue" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (byte)(arg1)->GetMaskBlue();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
bool arg2 = (bool) true ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "mask", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetMask" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_SetMask" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetMask(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_HasMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HasMask" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->HasMask();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
double arg2 ;
|
|
wxPoint *arg3 = 0 ;
|
|
bool arg4 = (bool) true ;
|
|
wxPoint *arg5 = (wxPoint *) NULL ;
|
|
SwigValueWrapper<wxImage > result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
wxPoint temp3 ;
|
|
bool val4 ;
|
|
int ecode4 = 0 ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "angle",(char *) "centre_of_rotation",(char *) "interpolating",(char *) "offset_after_rotation", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Image_Rotate",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Rotate" "', expected argument " "1"" of type '" "wxImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Rotate" "', expected argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_bool(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Rotate" "', expected argument " "4"" of type '" "bool""'");
|
|
}
|
|
arg4 = static_cast< bool >(val4);
|
|
}
|
|
if (obj4) {
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxPoint, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Image_Rotate" "', expected argument " "5"" of type '" "wxPoint *""'");
|
|
}
|
|
arg5 = reinterpret_cast< wxPoint * >(argp5);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxImage const *)arg1)->Rotate(arg2,(wxPoint const &)*arg3,arg4,arg5);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_Rotate90(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
bool arg2 = (bool) true ;
|
|
SwigValueWrapper<wxImage > result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "clockwise", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Rotate90",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Rotate90" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Rotate90" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->Rotate90(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_Mirror(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
bool arg2 = (bool) true ;
|
|
SwigValueWrapper<wxImage > result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "horizontally", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_Mirror",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Mirror" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Mirror" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->Mirror(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
byte arg2 ;
|
|
byte arg3 ;
|
|
byte arg4 ;
|
|
byte arg5 ;
|
|
byte arg6 ;
|
|
byte arg7 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned char val2 ;
|
|
int ecode2 = 0 ;
|
|
unsigned char val3 ;
|
|
int ecode3 = 0 ;
|
|
unsigned char val4 ;
|
|
int ecode4 = 0 ;
|
|
unsigned char val5 ;
|
|
int ecode5 = 0 ;
|
|
unsigned char val6 ;
|
|
int ecode6 = 0 ;
|
|
unsigned char val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "r1",(char *) "g1",(char *) "b1",(char *) "r2",(char *) "g2",(char *) "b2", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:Image_Replace",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_Replace" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_Replace" "', expected argument " "2"" of type '" "byte""'");
|
|
}
|
|
arg2 = static_cast< byte >(val2);
|
|
ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_Replace" "', expected argument " "3"" of type '" "byte""'");
|
|
}
|
|
arg3 = static_cast< byte >(val3);
|
|
ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_Replace" "', expected argument " "4"" of type '" "byte""'");
|
|
}
|
|
arg4 = static_cast< byte >(val4);
|
|
ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Image_Replace" "', expected argument " "5"" of type '" "byte""'");
|
|
}
|
|
arg5 = static_cast< byte >(val5);
|
|
ecode6 = SWIG_AsVal_unsigned_SS_char(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Image_Replace" "', expected argument " "6"" of type '" "byte""'");
|
|
}
|
|
arg6 = static_cast< byte >(val6);
|
|
ecode7 = SWIG_AsVal_unsigned_SS_char(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Image_Replace" "', expected argument " "7"" of type '" "byte""'");
|
|
}
|
|
arg7 = static_cast< byte >(val7);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Replace(arg2,arg3,arg4,arg5,arg6,arg7);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_ConvertToGreyscale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
double arg2 = (double) 0.299 ;
|
|
double arg3 = (double) 0.587 ;
|
|
double arg4 = (double) 0.114 ;
|
|
SwigValueWrapper<wxImage > result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
double val3 ;
|
|
int ecode3 = 0 ;
|
|
double val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "lr",(char *) "lg",(char *) "lb", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOO:Image_ConvertToGreyscale",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ConvertToGreyscale" "', expected argument " "1"" of type '" "wxImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ConvertToGreyscale" "', expected argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_double(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ConvertToGreyscale" "', expected argument " "3"" of type '" "double""'");
|
|
}
|
|
arg3 = static_cast< double >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_double(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_ConvertToGreyscale" "', expected argument " "4"" of type '" "double""'");
|
|
}
|
|
arg4 = static_cast< double >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxImage const *)arg1)->ConvertToGreyscale(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_ConvertToMono(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
byte arg2 ;
|
|
byte arg3 ;
|
|
byte arg4 ;
|
|
SwigValueWrapper<wxImage > result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned char val2 ;
|
|
int ecode2 = 0 ;
|
|
unsigned char val3 ;
|
|
int ecode3 = 0 ;
|
|
unsigned char val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "r",(char *) "g",(char *) "b", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMono",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ConvertToMono" "', expected argument " "1"" of type '" "wxImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ConvertToMono" "', expected argument " "2"" of type '" "byte""'");
|
|
}
|
|
arg2 = static_cast< byte >(val2);
|
|
ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ConvertToMono" "', expected argument " "3"" of type '" "byte""'");
|
|
}
|
|
arg3 = static_cast< byte >(val3);
|
|
ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_ConvertToMono" "', expected argument " "4"" of type '" "byte""'");
|
|
}
|
|
arg4 = static_cast< byte >(val4);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxImage const *)arg1)->ConvertToMono(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_SetOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
wxString *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
bool temp3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "name",(char *) "value", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOption",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetOption" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetOption((wxString const &)*arg2,(wxString const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_SetOptionInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "name",(char *) "value", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Image_SetOptionInt",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_SetOptionInt" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_SetOptionInt" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetOption((wxString const &)*arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "name", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOption",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetOption" "', expected argument " "1"" of type '" "wxImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxImage const *)arg1)->GetOption((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetOptionInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "name", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_GetOptionInt",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_GetOptionInt" "', expected argument " "1"" of type '" "wxImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxImage const *)arg1)->GetOptionInt((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_HasOption(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "name", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_HasOption",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HasOption" "', expected argument " "1"" of type '" "wxImage const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxImage const *)arg1)->HasOption((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_CountColours(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
unsigned long arg2 = (unsigned long) (unsigned long) -1 ;
|
|
unsigned long result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "stopafter", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_CountColours",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_CountColours" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_CountColours" "', expected argument " "2"" of type '" "unsigned long""'");
|
|
}
|
|
arg2 = static_cast< unsigned long >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (unsigned long)(arg1)->CountColours(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_ComputeHistogram(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
wxImageHistogram *arg2 = 0 ;
|
|
unsigned long result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "h", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_ComputeHistogram",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ComputeHistogram" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImageHistogram, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Image_ComputeHistogram" "', expected argument " "2"" of type '" "wxImageHistogram &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Image_ComputeHistogram" "', expected argument " "2"" of type '" "wxImageHistogram &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxImageHistogram * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (unsigned long)(arg1)->ComputeHistogram(*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_AddHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImageHandler *arg1 = (wxImageHandler *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "handler", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_AddHandler",kwnames,&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_AddHandler" "', expected argument " "1"" of type '" "wxImageHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImageHandler * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxImage::AddHandler(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_InsertHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImageHandler *arg1 = (wxImageHandler *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "handler", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_InsertHandler",kwnames,&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_InsertHandler" "', expected argument " "1"" of type '" "wxImageHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImageHandler * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxImage::InsertHandler(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_RemoveHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxString *arg1 = 0 ;
|
|
bool result;
|
|
bool temp1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "name", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RemoveHandler",kwnames,&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = wxString_in_helper(obj0);
|
|
if (arg1 == NULL) SWIG_fail;
|
|
temp1 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxImage::RemoveHandler((wxString const &)*arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetHandlers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
PyObject *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Image_GetHandlers",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)wxImage_GetHandlers();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_GetImageExtWildcard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxString result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Image_GetImageExtWildcard",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxImage::GetImageExtWildcard();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
int arg2 = (int) -1 ;
|
|
wxBitmap result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "depth", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Image_ConvertToBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ConvertToBitmap" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ConvertToBitmap" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
if (!wxPyCheckForApp()) SWIG_fail;
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxImage_ConvertToBitmap(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_ConvertToMonoBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
byte arg2 ;
|
|
byte arg3 ;
|
|
byte arg4 ;
|
|
wxBitmap result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned char val2 ;
|
|
int ecode2 = 0 ;
|
|
unsigned char val3 ;
|
|
int ecode3 = 0 ;
|
|
unsigned char val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Image_ConvertToMonoBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_ConvertToMonoBitmap" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_ConvertToMonoBitmap" "', expected argument " "2"" of type '" "byte""'");
|
|
}
|
|
arg2 = static_cast< byte >(val2);
|
|
ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Image_ConvertToMonoBitmap" "', expected argument " "3"" of type '" "byte""'");
|
|
}
|
|
arg3 = static_cast< byte >(val3);
|
|
ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Image_ConvertToMonoBitmap" "', expected argument " "4"" of type '" "byte""'");
|
|
}
|
|
arg4 = static_cast< byte >(val4);
|
|
{
|
|
if (!wxPyCheckForApp()) SWIG_fail;
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxImage_ConvertToMonoBitmap(arg1,arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_RotateHue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = (wxImage *) 0 ;
|
|
double arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
double val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "angle", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Image_RotateHue",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImage, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RotateHue" "', expected argument " "1"" of type '" "wxImage *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
ecode2 = SWIG_AsVal_double(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Image_RotateHue" "', expected argument " "2"" of type '" "double""'");
|
|
}
|
|
arg2 = static_cast< double >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->RotateHue(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_RGBtoHSV(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage_RGBValue arg1 ;
|
|
wxImage_HSVValue result;
|
|
void *argp1 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "rgb", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_RGBtoHSV",kwnames,&obj0)) SWIG_fail;
|
|
{
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage_RGBValue, 0 | 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_RGBtoHSV" "', expected argument " "1"" of type '" "wxImage_RGBValue""'");
|
|
}
|
|
if (!argp1) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Image_RGBtoHSV" "', expected argument " "1"" of type '" "wxImage_RGBValue""'");
|
|
} else {
|
|
wxImage_RGBValue * temp = reinterpret_cast< wxImage_RGBValue * >(argp1);
|
|
arg1 = *temp;
|
|
if (SWIG_IsNewObj(res1)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxImage::RGBtoHSV(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxImage_HSVValue(static_cast< const wxImage_HSVValue& >(result))), SWIGTYPE_p_wxImage_HSVValue, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Image_HSVtoRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage_HSVValue arg1 ;
|
|
wxImage_RGBValue result;
|
|
void *argp1 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "hsv", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Image_HSVtoRGB",kwnames,&obj0)) SWIG_fail;
|
|
{
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage_HSVValue, 0 | 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Image_HSVtoRGB" "', expected argument " "1"" of type '" "wxImage_HSVValue""'");
|
|
}
|
|
if (!argp1) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Image_HSVtoRGB" "', expected argument " "1"" of type '" "wxImage_HSVValue""'");
|
|
} else {
|
|
wxImage_HSVValue * temp = reinterpret_cast< wxImage_HSVValue * >(argp1);
|
|
arg1 = *temp;
|
|
if (SWIG_IsNewObj(res1)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxImage::HSVtoRGB(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxImage_RGBValue(static_cast< const wxImage_RGBValue& >(result))), SWIGTYPE_p_wxImage_RGBValue, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Image_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxImage, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *Image_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap__ImageFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
buffer arg3 ;
|
|
int arg4 ;
|
|
buffer arg5 = (buffer) NULL ;
|
|
int arg6 = (int) 0 ;
|
|
wxImage *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
Py_ssize_t temp3 ;
|
|
Py_ssize_t temp5 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:_ImageFromBuffer",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_ImageFromBuffer" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_ImageFromBuffer" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
|
|
arg4 = (int)temp3;
|
|
}
|
|
if (obj3) {
|
|
{
|
|
if (obj3 != Py_None) {
|
|
if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
|
|
arg6 = (int)temp5;
|
|
}
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxImage *)_ImageFromBuffer(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, SWIG_POINTER_OWN);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN int NullImage_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable NullImage is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *NullImage_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullImage), SWIGTYPE_p_wxImage, 0 );
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN int IMAGE_OPTION_FILENAME_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_FILENAME is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IMAGE_OPTION_FILENAME_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
{
|
|
#if wxUSE_UNICODE
|
|
pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_FILENAME)->c_str(), (&wxPyIMAGE_OPTION_FILENAME)->Len());
|
|
#else
|
|
pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_FILENAME)->c_str(), (&wxPyIMAGE_OPTION_FILENAME)->Len());
|
|
#endif
|
|
}
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN int IMAGE_OPTION_BMP_FORMAT_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_BMP_FORMAT is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IMAGE_OPTION_BMP_FORMAT_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
{
|
|
#if wxUSE_UNICODE
|
|
pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
|
|
#else
|
|
pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BMP_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_BMP_FORMAT)->Len());
|
|
#endif
|
|
}
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN int IMAGE_OPTION_CUR_HOTSPOT_X_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_X is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IMAGE_OPTION_CUR_HOTSPOT_X_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
{
|
|
#if wxUSE_UNICODE
|
|
pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
|
|
#else
|
|
pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_X)->Len());
|
|
#endif
|
|
}
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN int IMAGE_OPTION_CUR_HOTSPOT_Y_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_CUR_HOTSPOT_Y is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IMAGE_OPTION_CUR_HOTSPOT_Y_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
{
|
|
#if wxUSE_UNICODE
|
|
pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
|
|
#else
|
|
pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->c_str(), (&wxPyIMAGE_OPTION_CUR_HOTSPOT_Y)->Len());
|
|
#endif
|
|
}
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN int IMAGE_OPTION_RESOLUTION_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_RESOLUTION is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IMAGE_OPTION_RESOLUTION_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
{
|
|
#if wxUSE_UNICODE
|
|
pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
|
|
#else
|
|
pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTION)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTION)->Len());
|
|
#endif
|
|
}
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN int IMAGE_OPTION_RESOLUTIONX_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_RESOLUTIONX is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IMAGE_OPTION_RESOLUTIONX_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
{
|
|
#if wxUSE_UNICODE
|
|
pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONX)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONX)->Len());
|
|
#else
|
|
pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONX)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONX)->Len());
|
|
#endif
|
|
}
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN int IMAGE_OPTION_RESOLUTIONY_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_RESOLUTIONY is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IMAGE_OPTION_RESOLUTIONY_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
{
|
|
#if wxUSE_UNICODE
|
|
pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONY)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONY)->Len());
|
|
#else
|
|
pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONY)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONY)->Len());
|
|
#endif
|
|
}
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN int IMAGE_OPTION_RESOLUTIONUNIT_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_RESOLUTIONUNIT is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IMAGE_OPTION_RESOLUTIONUNIT_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
{
|
|
#if wxUSE_UNICODE
|
|
pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
|
|
#else
|
|
pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->c_str(), (&wxPyIMAGE_OPTION_RESOLUTIONUNIT)->Len());
|
|
#endif
|
|
}
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN int IMAGE_OPTION_QUALITY_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_QUALITY is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IMAGE_OPTION_QUALITY_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
{
|
|
#if wxUSE_UNICODE
|
|
pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_QUALITY)->c_str(), (&wxPyIMAGE_OPTION_QUALITY)->Len());
|
|
#else
|
|
pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_QUALITY)->c_str(), (&wxPyIMAGE_OPTION_QUALITY)->Len());
|
|
#endif
|
|
}
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN int IMAGE_OPTION_BITSPERSAMPLE_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_BITSPERSAMPLE is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IMAGE_OPTION_BITSPERSAMPLE_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
{
|
|
#if wxUSE_UNICODE
|
|
pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_BITSPERSAMPLE)->c_str(), (&wxPyIMAGE_OPTION_BITSPERSAMPLE)->Len());
|
|
#else
|
|
pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_BITSPERSAMPLE)->c_str(), (&wxPyIMAGE_OPTION_BITSPERSAMPLE)->Len());
|
|
#endif
|
|
}
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN int IMAGE_OPTION_SAMPLESPERPIXEL_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_SAMPLESPERPIXEL is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IMAGE_OPTION_SAMPLESPERPIXEL_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
{
|
|
#if wxUSE_UNICODE
|
|
pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->c_str(), (&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->Len());
|
|
#else
|
|
pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->c_str(), (&wxPyIMAGE_OPTION_SAMPLESPERPIXEL)->Len());
|
|
#endif
|
|
}
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN int IMAGE_OPTION_COMPRESSION_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_COMPRESSION is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IMAGE_OPTION_COMPRESSION_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
{
|
|
#if wxUSE_UNICODE
|
|
pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_COMPRESSION)->c_str(), (&wxPyIMAGE_OPTION_COMPRESSION)->Len());
|
|
#else
|
|
pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_COMPRESSION)->c_str(), (&wxPyIMAGE_OPTION_COMPRESSION)->Len());
|
|
#endif
|
|
}
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN int IMAGE_OPTION_IMAGEDESCRIPTOR_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_IMAGEDESCRIPTOR is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IMAGE_OPTION_IMAGEDESCRIPTOR_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
{
|
|
#if wxUSE_UNICODE
|
|
pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->c_str(), (&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->Len());
|
|
#else
|
|
pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->c_str(), (&wxPyIMAGE_OPTION_IMAGEDESCRIPTOR)->Len());
|
|
#endif
|
|
}
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN int IMAGE_OPTION_PNG_FORMAT_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_PNG_FORMAT is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IMAGE_OPTION_PNG_FORMAT_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
{
|
|
#if wxUSE_UNICODE
|
|
pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_PNG_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_PNG_FORMAT)->Len());
|
|
#else
|
|
pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_PNG_FORMAT)->c_str(), (&wxPyIMAGE_OPTION_PNG_FORMAT)->Len());
|
|
#endif
|
|
}
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN int IMAGE_OPTION_PNG_BITDEPTH_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable IMAGE_OPTION_PNG_BITDEPTH is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IMAGE_OPTION_PNG_BITDEPTH_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
{
|
|
#if wxUSE_UNICODE
|
|
pyobj = PyUnicode_FromWideChar((&wxPyIMAGE_OPTION_PNG_BITDEPTH)->c_str(), (&wxPyIMAGE_OPTION_PNG_BITDEPTH)->Len());
|
|
#else
|
|
pyobj = PyString_FromStringAndSize((&wxPyIMAGE_OPTION_PNG_BITDEPTH)->c_str(), (&wxPyIMAGE_OPTION_PNG_BITDEPTH)->Len());
|
|
#endif
|
|
}
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_BMPHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxBMPHandler *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_BMPHandler",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxBMPHandler *)new wxBMPHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBMPHandler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *BMPHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxBMPHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *BMPHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_ICOHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxICOHandler *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_ICOHandler",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxICOHandler *)new wxICOHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxICOHandler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *ICOHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxICOHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *ICOHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CURHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxCURHandler *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_CURHandler",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxCURHandler *)new wxCURHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCURHandler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CURHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxCURHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *CURHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_ANIHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxANIHandler *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_ANIHandler",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxANIHandler *)new wxANIHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxANIHandler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *ANIHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxANIHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *ANIHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_PNGHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPNGHandler *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_PNGHandler",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxPNGHandler *)new wxPNGHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPNGHandler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *PNGHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxPNGHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *PNGHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_GIFHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGIFHandler *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_GIFHandler",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxGIFHandler *)new wxGIFHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGIFHandler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *GIFHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxGIFHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *GIFHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_PCXHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPCXHandler *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_PCXHandler",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxPCXHandler *)new wxPCXHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPCXHandler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *PCXHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxPCXHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *PCXHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_JPEGHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxJPEGHandler *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_JPEGHandler",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxJPEGHandler *)new wxJPEGHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxJPEGHandler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *JPEGHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxJPEGHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *JPEGHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_PNMHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPNMHandler *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_PNMHandler",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxPNMHandler *)new wxPNMHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPNMHandler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *PNMHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxPNMHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *PNMHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_XPMHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxXPMHandler *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_XPMHandler",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxXPMHandler *)new wxXPMHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxXPMHandler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *XPMHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxXPMHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *XPMHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_TIFFHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxTIFFHandler *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_TIFFHandler",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxTIFFHandler *)new wxTIFFHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTIFFHandler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *TIFFHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxTIFFHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *TIFFHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_TGAHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxTGAHandler *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_TGAHandler",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxTGAHandler *)new wxTGAHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTGAHandler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *TGAHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxTGAHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *TGAHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_Quantize_Quantize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxImage *arg1 = 0 ;
|
|
wxImage *arg2 = 0 ;
|
|
int arg3 = (int) 236 ;
|
|
int arg4 = (int) wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "src",(char *) "dest",(char *) "desiredNoColours",(char *) "flags", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Quantize_Quantize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Quantize_Quantize" "', expected argument " "1"" of type '" "wxImage const &""'");
|
|
}
|
|
if (!argp1) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Quantize_Quantize" "', expected argument " "1"" of type '" "wxImage const &""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxImage * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxImage, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Quantize_Quantize" "', expected argument " "2"" of type '" "wxImage &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Quantize_Quantize" "', expected argument " "2"" of type '" "wxImage &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxImage * >(argp2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Quantize_Quantize" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Quantize_Quantize" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxQuantize_Quantize((wxImage const &)*arg1,*arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Quantize_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxQuantize, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_EvtHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEvtHandler *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_EvtHandler",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxEvtHandler *)new wxEvtHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEvtHandler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EvtHandler_GetNextHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
|
|
wxEvtHandler *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_GetNextHandler" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxEvtHandler *)(arg1)->GetNextHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EvtHandler_GetPreviousHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
|
|
wxEvtHandler *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_GetPreviousHandler" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxEvtHandler *)(arg1)->GetPreviousHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EvtHandler_SetNextHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
|
|
wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "handler", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetNextHandler",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_SetNextHandler" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EvtHandler_SetNextHandler" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetNextHandler(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EvtHandler_SetPreviousHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
|
|
wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "handler", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetPreviousHandler",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_SetPreviousHandler" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EvtHandler_SetPreviousHandler" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetPreviousHandler(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EvtHandler_GetEvtHandlerEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_GetEvtHandlerEnabled" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->GetEvtHandlerEnabled();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EvtHandler_SetEvtHandlerEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "enabled", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_SetEvtHandlerEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_SetEvtHandlerEnabled" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EvtHandler_SetEvtHandlerEnabled" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetEvtHandlerEnabled(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EvtHandler_ProcessEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
|
|
wxEvent *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "event", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_ProcessEvent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_ProcessEvent" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxEvent, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EvtHandler_ProcessEvent" "', expected argument " "2"" of type '" "wxEvent &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "EvtHandler_ProcessEvent" "', expected argument " "2"" of type '" "wxEvent &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxEvent * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->ProcessEvent(*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EvtHandler_AddPendingEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
|
|
wxEvent *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "event", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EvtHandler_AddPendingEvent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_AddPendingEvent" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxEvent, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "EvtHandler_AddPendingEvent" "', expected argument " "2"" of type '" "wxEvent &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "EvtHandler_AddPendingEvent" "', expected argument " "2"" of type '" "wxEvent &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxEvent * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->AddPendingEvent(*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EvtHandler_ProcessPendingEvents(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_ProcessPendingEvents" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->ProcessPendingEvents();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EvtHandler_Connect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
PyObject *arg5 = (PyObject *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType",(char *) "func", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:EvtHandler_Connect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_Connect" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EvtHandler_Connect" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EvtHandler_Connect" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EvtHandler_Connect" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
arg5 = obj4;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxEvtHandler_Connect(arg1,arg2,arg3,arg4,arg5);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EvtHandler_Disconnect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
|
|
int arg2 ;
|
|
int arg3 = (int) -1 ;
|
|
wxEventType arg4 = (wxEventType) wxEVT_NULL ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id",(char *) "lastId",(char *) "eventType", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:EvtHandler_Disconnect",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler_Disconnect" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EvtHandler_Disconnect" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EvtHandler_Disconnect" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EvtHandler_Disconnect" "', expected argument " "4"" of type '" "wxEventType""'");
|
|
}
|
|
arg4 = static_cast< wxEventType >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxEvtHandler_Disconnect(arg1,arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EvtHandler__setOORInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool arg3 = (bool) true ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "_self",(char *) "incref", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:EvtHandler__setOORInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EvtHandler__setOORInfo" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
|
|
arg2 = obj1;
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_bool(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EvtHandler__setOORInfo" "', expected argument " "3"" of type '" "bool""'");
|
|
}
|
|
arg3 = static_cast< bool >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxEvtHandler__setOORInfo(arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *EvtHandler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxEvtHandler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *EvtHandler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_NewEventType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEventType result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"NewEventType",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxEventType)wxNewEventType();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_Event(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEvent *arg1 = (wxEvent *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Event" "', expected argument " "1"" of type '" "wxEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Event_SetEventType(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEvent *arg1 = (wxEvent *) 0 ;
|
|
wxEventType arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "typ", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventType",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_SetEventType" "', expected argument " "1"" of type '" "wxEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Event_SetEventType" "', expected argument " "2"" of type '" "wxEventType""'");
|
|
}
|
|
arg2 = static_cast< wxEventType >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetEventType(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Event_GetEventType(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEvent *arg1 = (wxEvent *) 0 ;
|
|
wxEventType result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_GetEventType" "', expected argument " "1"" of type '" "wxEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxEventType)((wxEvent const *)arg1)->GetEventType();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Event_GetEventObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEvent *arg1 = (wxEvent *) 0 ;
|
|
wxObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_GetEventObject" "', expected argument " "1"" of type '" "wxEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxObject *)((wxEvent const *)arg1)->GetEventObject();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Event_SetEventObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEvent *arg1 = (wxEvent *) 0 ;
|
|
wxObject *arg2 = (wxObject *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "obj", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetEventObject",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_SetEventObject" "', expected argument " "1"" of type '" "wxEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvent * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxObject, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Event_SetEventObject" "', expected argument " "2"" of type '" "wxObject *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxObject * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetEventObject(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Event_GetTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEvent *arg1 = (wxEvent *) 0 ;
|
|
long result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_GetTimestamp" "', expected argument " "1"" of type '" "wxEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (long)((wxEvent const *)arg1)->GetTimestamp();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_long(static_cast< long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Event_SetTimestamp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEvent *arg1 = (wxEvent *) 0 ;
|
|
long arg2 = (long) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
long val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "ts", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_SetTimestamp",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_SetTimestamp" "', expected argument " "1"" of type '" "wxEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvent * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_long(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Event_SetTimestamp" "', expected argument " "2"" of type '" "long""'");
|
|
}
|
|
arg2 = static_cast< long >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetTimestamp(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Event_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEvent *arg1 = (wxEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_GetId" "', expected argument " "1"" of type '" "wxEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxEvent const *)arg1)->GetId();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Event_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEvent *arg1 = (wxEvent *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "Id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_SetId" "', expected argument " "1"" of type '" "wxEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Event_SetId" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetId(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Event_IsCommandEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEvent *arg1 = (wxEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_IsCommandEvent" "', expected argument " "1"" of type '" "wxEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxEvent const *)arg1)->IsCommandEvent();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Event_Skip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEvent *arg1 = (wxEvent *) 0 ;
|
|
bool arg2 = (bool) true ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "skip", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Event_Skip",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_Skip" "', expected argument " "1"" of type '" "wxEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvent * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Event_Skip" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Skip(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Event_GetSkipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEvent *arg1 = (wxEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_GetSkipped" "', expected argument " "1"" of type '" "wxEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxEvent const *)arg1)->GetSkipped();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Event_ShouldPropagate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEvent *arg1 = (wxEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_ShouldPropagate" "', expected argument " "1"" of type '" "wxEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxEvent const *)arg1)->ShouldPropagate();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Event_StopPropagation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEvent *arg1 = (wxEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_StopPropagation" "', expected argument " "1"" of type '" "wxEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->StopPropagation();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Event_ResumePropagation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEvent *arg1 = (wxEvent *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "propagationLevel", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Event_ResumePropagation",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_ResumePropagation" "', expected argument " "1"" of type '" "wxEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Event_ResumePropagation" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->ResumePropagation(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Event_Clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEvent *arg1 = (wxEvent *) 0 ;
|
|
wxEvent *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Event_Clone" "', expected argument " "1"" of type '" "wxEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxEvent *)(arg1)->Clone();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEvent, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Event_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_PropagationDisabler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEvent *arg1 = 0 ;
|
|
wxPropagationDisabler *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "event", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagationDisabler",kwnames,&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxEvent, 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PropagationDisabler" "', expected argument " "1"" of type '" "wxEvent &""'");
|
|
}
|
|
if (!argp1) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PropagationDisabler" "', expected argument " "1"" of type '" "wxEvent &""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxPropagationDisabler *)new wxPropagationDisabler(*arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPropagationDisabler, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_PropagationDisabler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPropagationDisabler *arg1 = (wxPropagationDisabler *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPropagationDisabler, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PropagationDisabler" "', expected argument " "1"" of type '" "wxPropagationDisabler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPropagationDisabler * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *PropagationDisabler_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxPropagationDisabler, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *PropagationDisabler_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_PropagateOnce(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEvent *arg1 = 0 ;
|
|
wxPropagateOnce *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "event", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PropagateOnce",kwnames,&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxEvent, 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PropagateOnce" "', expected argument " "1"" of type '" "wxEvent &""'");
|
|
}
|
|
if (!argp1) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PropagateOnce" "', expected argument " "1"" of type '" "wxEvent &""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxPropagateOnce *)new wxPropagateOnce(*arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPropagateOnce, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_PropagateOnce(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPropagateOnce *arg1 = (wxPropagateOnce *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPropagateOnce, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PropagateOnce" "', expected argument " "1"" of type '" "wxPropagateOnce *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPropagateOnce * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *PropagateOnce_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxPropagateOnce, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *PropagateOnce_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CommandEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEventType arg1 = (wxEventType) wxEVT_NULL ;
|
|
int arg2 = (int) 0 ;
|
|
wxCommandEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "commandType",(char *) "winid", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CommandEvent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CommandEvent" "', expected argument " "1"" of type '" "wxEventType""'");
|
|
}
|
|
arg1 = static_cast< wxEventType >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CommandEvent" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxCommandEvent *)new wxCommandEvent(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCommandEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CommandEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_GetSelection" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxCommandEvent const *)arg1)->GetSelection();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CommandEvent_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "s", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetString",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_SetString" "', expected argument " "1"" of type '" "wxCommandEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetString((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CommandEvent_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_GetString" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxCommandEvent const *)arg1)->GetString();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CommandEvent_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_IsChecked" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxCommandEvent const *)arg1)->IsChecked();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CommandEvent_IsSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_IsSelection" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxCommandEvent const *)arg1)->IsSelection();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CommandEvent_SetExtraLong(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
|
|
long arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
long val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "extraLong", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetExtraLong",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_SetExtraLong" "', expected argument " "1"" of type '" "wxCommandEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_long(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CommandEvent_SetExtraLong" "', expected argument " "2"" of type '" "long""'");
|
|
}
|
|
arg2 = static_cast< long >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetExtraLong(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CommandEvent_GetExtraLong(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
|
|
long result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_GetExtraLong" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (long)((wxCommandEvent const *)arg1)->GetExtraLong();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_long(static_cast< long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CommandEvent_SetInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "i", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetInt",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_SetInt" "', expected argument " "1"" of type '" "wxCommandEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CommandEvent_SetInt" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetInt(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CommandEvent_GetInt(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_GetInt" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxCommandEvent const *)arg1)->GetInt();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CommandEvent_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_GetClientData" "', expected argument " "1"" of type '" "wxCommandEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)wxCommandEvent_GetClientData(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CommandEvent_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "clientData", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CommandEvent_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_SetClientData" "', expected argument " "1"" of type '" "wxCommandEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxCommandEvent_SetClientData(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CommandEvent_Clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxCommandEvent *arg1 = (wxCommandEvent *) 0 ;
|
|
wxEvent *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCommandEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CommandEvent_Clone" "', expected argument " "1"" of type '" "wxCommandEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxCommandEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxEvent *)((wxCommandEvent const *)arg1)->Clone();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEvent, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CommandEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxCommandEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *CommandEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_NotifyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEventType arg1 = (wxEventType) wxEVT_NULL ;
|
|
int arg2 = (int) 0 ;
|
|
wxNotifyEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "commandType",(char *) "winid", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_NotifyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotifyEvent" "', expected argument " "1"" of type '" "wxEventType""'");
|
|
}
|
|
arg1 = static_cast< wxEventType >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotifyEvent" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxNotifyEvent *)new wxNotifyEvent(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotifyEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_NotifyEvent_Veto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotifyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NotifyEvent_Veto" "', expected argument " "1"" of type '" "wxNotifyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxNotifyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Veto();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_NotifyEvent_Allow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotifyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NotifyEvent_Allow" "', expected argument " "1"" of type '" "wxNotifyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxNotifyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Allow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_NotifyEvent_IsAllowed(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxNotifyEvent *arg1 = (wxNotifyEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotifyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NotifyEvent_IsAllowed" "', expected argument " "1"" of type '" "wxNotifyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxNotifyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->IsAllowed();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *NotifyEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxNotifyEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *NotifyEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_ScrollEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEventType arg1 = (wxEventType) wxEVT_NULL ;
|
|
int arg2 = (int) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
int arg4 = (int) 0 ;
|
|
wxScrollEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "commandType",(char *) "winid",(char *) "pos",(char *) "orient", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ScrollEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ScrollEvent" "', expected argument " "1"" of type '" "wxEventType""'");
|
|
}
|
|
arg1 = static_cast< wxEventType >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollEvent" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ScrollEvent" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ScrollEvent" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxScrollEvent *)new wxScrollEvent(arg1,arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ScrollEvent_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollEvent_GetOrientation" "', expected argument " "1"" of type '" "wxScrollEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxScrollEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxScrollEvent const *)arg1)->GetOrientation();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ScrollEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollEvent_GetPosition" "', expected argument " "1"" of type '" "wxScrollEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxScrollEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxScrollEvent const *)arg1)->GetPosition();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ScrollEvent_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "orient", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollEvent_SetOrientation" "', expected argument " "1"" of type '" "wxScrollEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxScrollEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollEvent_SetOrientation" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetOrientation(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ScrollEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxScrollEvent *arg1 = (wxScrollEvent *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollEvent_SetPosition" "', expected argument " "1"" of type '" "wxScrollEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxScrollEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetPosition(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *ScrollEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *ScrollEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_ScrollWinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEventType arg1 = (wxEventType) wxEVT_NULL ;
|
|
int arg2 = (int) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
wxScrollWinEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "commandType",(char *) "pos",(char *) "orient", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ScrollWinEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ScrollWinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
|
|
}
|
|
arg1 = static_cast< wxEventType >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollWinEvent" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ScrollWinEvent" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxScrollWinEvent *)new wxScrollWinEvent(arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollWinEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ScrollWinEvent_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollWinEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollWinEvent_GetOrientation" "', expected argument " "1"" of type '" "wxScrollWinEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxScrollWinEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxScrollWinEvent const *)arg1)->GetOrientation();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ScrollWinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollWinEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollWinEvent_GetPosition" "', expected argument " "1"" of type '" "wxScrollWinEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxScrollWinEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxScrollWinEvent const *)arg1)->GetPosition();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ScrollWinEvent_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "orient", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollWinEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollWinEvent_SetOrientation" "', expected argument " "1"" of type '" "wxScrollWinEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxScrollWinEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollWinEvent_SetOrientation" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetOrientation(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ScrollWinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxScrollWinEvent *arg1 = (wxScrollWinEvent *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollWinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollWinEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollWinEvent_SetPosition" "', expected argument " "1"" of type '" "wxScrollWinEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxScrollWinEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollWinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetPosition(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *ScrollWinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollWinEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *ScrollWinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_MouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEventType arg1 = (wxEventType) wxEVT_NULL ;
|
|
wxMouseEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "mouseType", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseEvent",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MouseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
|
|
}
|
|
arg1 = static_cast< wxEventType >(val1);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMouseEvent *)new wxMouseEvent(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_IsButton" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->IsButton();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_ButtonDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int arg2 = (int) wxMOUSE_BTN_ANY ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "but", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDown",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_ButtonDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_ButtonDown" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->ButtonDown(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_ButtonDClick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int arg2 = (int) wxMOUSE_BTN_ANY ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "but", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonDClick",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_ButtonDClick" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_ButtonDClick" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->ButtonDClick(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_ButtonUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int arg2 = (int) wxMOUSE_BTN_ANY ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "but", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MouseEvent_ButtonUp",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_ButtonUp" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_ButtonUp" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->ButtonUp(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_Button(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int arg2 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "button", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_Button",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_Button" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_Button" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->Button(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_ButtonIsDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int arg2 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "but", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_ButtonIsDown",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_ButtonIsDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_ButtonIsDown" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->ButtonIsDown(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_GetButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetButton" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxMouseEvent const *)arg1)->GetButton();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_ControlDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_ControlDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->ControlDown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_MetaDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_MetaDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->MetaDown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_AltDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_AltDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->AltDown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_ShiftDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_ShiftDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->ShiftDown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_CmdDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_CmdDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->CmdDown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_LeftDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_LeftDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->LeftDown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_MiddleDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_MiddleDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->MiddleDown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_RightDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_RightDown" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->RightDown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_LeftUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_LeftUp" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->LeftUp();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_MiddleUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_MiddleUp" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->MiddleUp();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_RightUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_RightUp" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->RightUp();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_LeftDClick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_LeftDClick" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->LeftDClick();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_MiddleDClick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_MiddleDClick" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->MiddleDClick();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_RightDClick(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_RightDClick" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->RightDClick();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_LeftIsDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_LeftIsDown" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->LeftIsDown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_MiddleIsDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_MiddleIsDown" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->MiddleIsDown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_RightIsDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_RightIsDown" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->RightIsDown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_Dragging(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_Dragging" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->Dragging();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_Moving(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_Moving" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->Moving();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_Entering(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_Entering" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->Entering();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_Leaving(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_Leaving" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->Leaving();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetPosition" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetPosition();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_GetPositionTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
long *arg2 = (long *) 0 ;
|
|
long *arg3 = (long *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
long temp2 ;
|
|
int res2 = SWIG_TMPOBJ ;
|
|
long temp3 ;
|
|
int res3 = SWIG_TMPOBJ ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
arg2 = &temp2;
|
|
arg3 = &temp3;
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetPositionTuple" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->GetPosition(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsTmpObj(res2)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_GetLogicalPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
wxDC *arg2 = 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "dc", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MouseEvent_GetLogicalPosition",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetLogicalPosition" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MouseEvent_GetLogicalPosition" "', expected argument " "2"" of type '" "wxDC const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MouseEvent_GetLogicalPosition" "', expected argument " "2"" of type '" "wxDC const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxDC * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxMouseEvent const *)arg1)->GetLogicalPosition((wxDC const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetX" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxMouseEvent const *)arg1)->GetX();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetY" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxMouseEvent const *)arg1)->GetY();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_GetWheelRotation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetWheelRotation" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxMouseEvent const *)arg1)->GetWheelRotation();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_GetWheelDelta(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetWheelDelta" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxMouseEvent const *)arg1)->GetWheelDelta();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_GetLinesPerAction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_GetLinesPerAction" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxMouseEvent const *)arg1)->GetLinesPerAction();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_IsPageScroll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_IsPageScroll" "', expected argument " "1"" of type '" "wxMouseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMouseEvent const *)arg1)->IsPageScroll();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_x_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_x_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_x_set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->m_x = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_x_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
result = (int) ((arg1)->m_x);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_y_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_y_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_y_set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->m_y = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_y_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
result = (int) ((arg1)->m_y);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_leftDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_leftDown_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_leftDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_leftDown_set" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
if (arg1) (arg1)->m_leftDown = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_leftDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_leftDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
result = (bool) ((arg1)->m_leftDown);
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_middleDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_middleDown_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_middleDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_middleDown_set" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
if (arg1) (arg1)->m_middleDown = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_middleDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_middleDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
result = (bool) ((arg1)->m_middleDown);
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_rightDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_rightDown_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_rightDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_rightDown_set" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
if (arg1) (arg1)->m_rightDown = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_rightDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_rightDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
result = (bool) ((arg1)->m_rightDown);
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_controlDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_controlDown_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_controlDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_controlDown_set" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
if (arg1) (arg1)->m_controlDown = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_controlDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_controlDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
result = (bool) ((arg1)->m_controlDown);
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_shiftDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_shiftDown_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_shiftDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_shiftDown_set" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
if (arg1) (arg1)->m_shiftDown = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_shiftDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_shiftDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
result = (bool) ((arg1)->m_shiftDown);
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_altDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_altDown_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_altDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_altDown_set" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
if (arg1) (arg1)->m_altDown = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_altDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_altDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
result = (bool) ((arg1)->m_altDown);
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_metaDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_metaDown_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_metaDown_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_metaDown_set" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
if (arg1) (arg1)->m_metaDown = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_metaDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_metaDown_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
result = (bool) ((arg1)->m_metaDown);
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_wheelRotation_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_wheelRotation_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_wheelRotation_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_wheelRotation_set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->m_wheelRotation = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_wheelRotation_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_wheelRotation_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
result = (int) ((arg1)->m_wheelRotation);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_wheelDelta_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_wheelDelta_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_wheelDelta_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_wheelDelta_set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->m_wheelDelta = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_wheelDelta_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_wheelDelta_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
result = (int) ((arg1)->m_wheelDelta);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_linesPerAction_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"MouseEvent_m_linesPerAction_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_linesPerAction_set" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MouseEvent_m_linesPerAction_set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->m_linesPerAction = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseEvent_m_linesPerAction_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseEvent *arg1 = (wxMouseEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseEvent_m_linesPerAction_get" "', expected argument " "1"" of type '" "wxMouseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseEvent * >(argp1);
|
|
result = (int) ((arg1)->m_linesPerAction);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *MouseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxMouseEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *MouseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_SetCursorEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
int arg2 = (int) 0 ;
|
|
wxSetCursorEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SetCursorEvent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SetCursorEvent" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SetCursorEvent" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSetCursorEvent *)new wxSetCursorEvent(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSetCursorEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SetCursorEvent_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSetCursorEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetCursorEvent_GetX" "', expected argument " "1"" of type '" "wxSetCursorEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSetCursorEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxSetCursorEvent const *)arg1)->GetX();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SetCursorEvent_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSetCursorEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetCursorEvent_GetY" "', expected argument " "1"" of type '" "wxSetCursorEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSetCursorEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxSetCursorEvent const *)arg1)->GetY();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SetCursorEvent_SetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
|
|
wxCursor *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "cursor", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SetCursorEvent_SetCursor",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSetCursorEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetCursorEvent_SetCursor" "', expected argument " "1"" of type '" "wxSetCursorEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSetCursorEvent * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SetCursorEvent_SetCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SetCursorEvent_SetCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxCursor * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetCursor((wxCursor const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SetCursorEvent_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
|
|
wxCursor *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSetCursorEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetCursorEvent_GetCursor" "', expected argument " "1"" of type '" "wxSetCursorEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSetCursorEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxCursor const &_result_ref = ((wxSetCursorEvent const *)arg1)->GetCursor();
|
|
result = (wxCursor *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
wxCursor* resultptr = new wxCursor(*result);
|
|
resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxCursor, 1);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SetCursorEvent_HasCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSetCursorEvent *arg1 = (wxSetCursorEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSetCursorEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetCursorEvent_HasCursor" "', expected argument " "1"" of type '" "wxSetCursorEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSetCursorEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxSetCursorEvent const *)arg1)->HasCursor();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *SetCursorEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxSetCursorEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *SetCursorEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_KeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEventType arg1 = (wxEventType) wxEVT_NULL ;
|
|
wxKeyEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "eventType", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_KeyEvent",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_KeyEvent" "', expected argument " "1"" of type '" "wxEventType""'");
|
|
}
|
|
arg1 = static_cast< wxEventType >(val1);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxKeyEvent *)new wxKeyEvent(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_GetModifiers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetModifiers" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxKeyEvent const *)arg1)->GetModifiers();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_ControlDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_ControlDown" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxKeyEvent const *)arg1)->ControlDown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_MetaDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_MetaDown" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxKeyEvent const *)arg1)->MetaDown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_AltDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_AltDown" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxKeyEvent const *)arg1)->AltDown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_ShiftDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_ShiftDown" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxKeyEvent const *)arg1)->ShiftDown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_CmdDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_CmdDown" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxKeyEvent const *)arg1)->CmdDown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_HasModifiers(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_HasModifiers" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxKeyEvent const *)arg1)->HasModifiers();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxKeyEvent const *)arg1)->GetKeyCode();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_GetUnicodeKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetUnicodeKey" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)wxKeyEvent_GetUnicodeKey(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_SetUnicodeKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "uniChar", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:KeyEvent_SetUnicodeKey",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_SetUnicodeKey" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_SetUnicodeKey" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxKeyEvent_SetUnicodeKey(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_GetRawKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
unsigned int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetRawKeyCode" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyCode();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_GetRawKeyFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
unsigned int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetRawKeyFlags" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (unsigned int)((wxKeyEvent const *)arg1)->GetRawKeyFlags();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetPosition" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetPosition();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_GetPositionTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
long *arg2 = (long *) 0 ;
|
|
long *arg3 = (long *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
long temp2 ;
|
|
int res2 = SWIG_TMPOBJ ;
|
|
long temp3 ;
|
|
int res3 = SWIG_TMPOBJ ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
arg2 = &temp2;
|
|
arg3 = &temp3;
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetPositionTuple" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->GetPosition(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsTmpObj(res2)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetX" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxKeyEvent const *)arg1)->GetX();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_GetY" "', expected argument " "1"" of type '" "wxKeyEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxKeyEvent const *)arg1)->GetY();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_x_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_x_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_x_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_x_set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->m_x = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_x_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_x_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
result = (int) ((arg1)->m_x);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_y_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_y_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_y_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_y_set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (arg1) (arg1)->m_y = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_y_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_y_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
result = (int) ((arg1)->m_y);
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_keyCode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
long arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
long val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_keyCode_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_keyCode_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_keyCode_set" "', expected argument " "2"" of type '" "long""'");
|
|
}
|
|
arg2 = static_cast< long >(val2);
|
|
if (arg1) (arg1)->m_keyCode = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_keyCode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
long result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_keyCode_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
result = (long) ((arg1)->m_keyCode);
|
|
resultobj = SWIG_From_long(static_cast< long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_controlDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_controlDown_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_controlDown_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_controlDown_set" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
if (arg1) (arg1)->m_controlDown = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_controlDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_controlDown_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
result = (bool) ((arg1)->m_controlDown);
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_shiftDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_shiftDown_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_shiftDown_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_shiftDown_set" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
if (arg1) (arg1)->m_shiftDown = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_shiftDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_shiftDown_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
result = (bool) ((arg1)->m_shiftDown);
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_altDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_altDown_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_altDown_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_altDown_set" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
if (arg1) (arg1)->m_altDown = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_altDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_altDown_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
result = (bool) ((arg1)->m_altDown);
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_metaDown_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_metaDown_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_metaDown_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_metaDown_set" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
if (arg1) (arg1)->m_metaDown = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_metaDown_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_metaDown_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
result = (bool) ((arg1)->m_metaDown);
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_scanCode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_scanCode_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_scanCode_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_scanCode_set" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
if (arg1) (arg1)->m_scanCode = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_scanCode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_scanCode_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
result = (bool) ((arg1)->m_scanCode);
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_rawCode_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
unsigned int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_rawCode_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_rawCode_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_rawCode_set" "', expected argument " "2"" of type '" "unsigned int""'");
|
|
}
|
|
arg2 = static_cast< unsigned int >(val2);
|
|
if (arg1) (arg1)->m_rawCode = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_rawCode_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
unsigned int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_rawCode_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
result = (unsigned int) ((arg1)->m_rawCode);
|
|
resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_rawFlags_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
unsigned int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"KeyEvent_m_rawFlags_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_rawFlags_set" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "KeyEvent_m_rawFlags_set" "', expected argument " "2"" of type '" "unsigned int""'");
|
|
}
|
|
arg2 = static_cast< unsigned int >(val2);
|
|
if (arg1) (arg1)->m_rawFlags = arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_KeyEvent_m_rawFlags_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxKeyEvent *arg1 = (wxKeyEvent *) 0 ;
|
|
unsigned int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "KeyEvent_m_rawFlags_get" "', expected argument " "1"" of type '" "wxKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxKeyEvent * >(argp1);
|
|
result = (unsigned int) ((arg1)->m_rawFlags);
|
|
resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *KeyEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxKeyEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *KeyEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_SizeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSize const &arg1_defvalue = wxDefaultSize ;
|
|
wxSize *arg1 = (wxSize *) &arg1_defvalue ;
|
|
int arg2 = (int) 0 ;
|
|
wxSizeEvent *result = 0 ;
|
|
wxSize temp1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "sz",(char *) "winid", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SizeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
{
|
|
arg1 = &temp1;
|
|
if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
|
|
}
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SizeEvent" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizeEvent *)new wxSizeEvent((wxSize const &)*arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizeEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizeEvent_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_GetSize" "', expected argument " "1"" of type '" "wxSizeEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxSizeEvent const *)arg1)->GetSize();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizeEvent_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
|
|
wxRect result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_GetRect" "', expected argument " "1"" of type '" "wxSizeEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxSizeEvent const *)arg1)->GetRect();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizeEvent_SetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
|
|
wxRect arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetRect",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_SetRect" "', expected argument " "1"" of type '" "wxSizeEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRect, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizeEvent_SetRect" "', expected argument " "2"" of type '" "wxRect""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SizeEvent_SetRect" "', expected argument " "2"" of type '" "wxRect""'");
|
|
} else {
|
|
wxRect * temp = reinterpret_cast< wxRect * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetRect(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizeEvent_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
|
|
wxSize arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "size", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizeEvent_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_SetSize" "', expected argument " "1"" of type '" "wxSizeEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
|
|
{
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxSize, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizeEvent_SetSize" "', expected argument " "2"" of type '" "wxSize""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "SizeEvent_SetSize" "', expected argument " "2"" of type '" "wxSize""'");
|
|
} else {
|
|
wxSize * temp = reinterpret_cast< wxSize * >(argp2);
|
|
arg2 = *temp;
|
|
if (SWIG_IsNewObj(res2)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxSizeEvent_SetSize(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizeEvent_m_size_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
|
|
wxSize *arg2 = (wxSize *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"SizeEvent_m_size_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_m_size_set" "', expected argument " "1"" of type '" "wxSizeEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxSize, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizeEvent_m_size_set" "', expected argument " "2"" of type '" "wxSize *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxSize * >(argp2);
|
|
if (arg1) (arg1)->m_size = *arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizeEvent_m_size_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
|
|
wxSize *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_m_size_get" "', expected argument " "1"" of type '" "wxSizeEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
|
|
result = (wxSize *)& ((arg1)->m_size);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSize, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizeEvent_m_rect_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
|
|
wxRect *arg2 = (wxRect *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject *swig_obj[2] ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"SizeEvent_m_rect_set",2,2,swig_obj)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_m_rect_set" "', expected argument " "1"" of type '" "wxSizeEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizeEvent_m_rect_set" "', expected argument " "2"" of type '" "wxRect *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxRect * >(argp2);
|
|
if (arg1) (arg1)->m_rect = *arg2;
|
|
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizeEvent_m_rect_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizeEvent *arg1 = (wxSizeEvent *) 0 ;
|
|
wxRect *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizeEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizeEvent_m_rect_get" "', expected argument " "1"" of type '" "wxSizeEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizeEvent * >(argp1);
|
|
result = (wxRect *)& ((arg1)->m_rect);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRect, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *SizeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxSizeEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *SizeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_MoveEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPoint const &arg1_defvalue = wxDefaultPosition ;
|
|
wxPoint *arg1 = (wxPoint *) &arg1_defvalue ;
|
|
int arg2 = (int) 0 ;
|
|
wxMoveEvent *result = 0 ;
|
|
wxPoint temp1 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "pos",(char *) "winid", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MoveEvent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
{
|
|
arg1 = &temp1;
|
|
if ( ! wxPoint_helper(obj0, &arg1)) SWIG_fail;
|
|
}
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MoveEvent" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMoveEvent *)new wxMoveEvent((wxPoint const &)*arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMoveEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MoveEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMoveEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveEvent_GetPosition" "', expected argument " "1"" of type '" "wxMoveEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMoveEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxMoveEvent const *)arg1)->GetPosition();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MoveEvent_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
|
|
wxRect result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMoveEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveEvent_GetRect" "', expected argument " "1"" of type '" "wxMoveEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMoveEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxMoveEvent const *)arg1)->GetRect();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MoveEvent_SetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
|
|
wxRect *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetRect",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMoveEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveEvent_SetRect" "', expected argument " "1"" of type '" "wxMoveEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMoveEvent * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetRect((wxRect const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MoveEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMoveEvent *arg1 = (wxMoveEvent *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MoveEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMoveEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MoveEvent_SetPosition" "', expected argument " "1"" of type '" "wxMoveEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMoveEvent * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetPosition((wxPoint const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *MoveEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxMoveEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *MoveEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_PaintEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
wxPaintEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "Id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaintEvent",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PaintEvent" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxPaintEvent *)new wxPaintEvent(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *PaintEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *PaintEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_NcPaintEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
wxNcPaintEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "winid", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_NcPaintEvent",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NcPaintEvent" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxNcPaintEvent *)new wxNcPaintEvent(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNcPaintEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *NcPaintEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxNcPaintEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *NcPaintEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_EraseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
wxDC *arg2 = (wxDC *) NULL ;
|
|
wxEraseEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "Id",(char *) "dc", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_EraseEvent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EraseEvent" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_EraseEvent" "', expected argument " "2"" of type '" "wxDC *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxDC * >(argp2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxEraseEvent *)new wxEraseEvent(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEraseEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EraseEvent_GetDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEraseEvent *arg1 = (wxEraseEvent *) 0 ;
|
|
wxDC *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEraseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EraseEvent_GetDC" "', expected argument " "1"" of type '" "wxEraseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEraseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxDC *)((wxEraseEvent const *)arg1)->GetDC();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *EraseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxEraseEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *EraseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_FocusEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEventType arg1 = (wxEventType) wxEVT_NULL ;
|
|
int arg2 = (int) 0 ;
|
|
wxFocusEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "type",(char *) "winid", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_FocusEvent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FocusEvent" "', expected argument " "1"" of type '" "wxEventType""'");
|
|
}
|
|
arg1 = static_cast< wxEventType >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FocusEvent" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxFocusEvent *)new wxFocusEvent(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFocusEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FocusEvent_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFocusEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FocusEvent_GetWindow" "', expected argument " "1"" of type '" "wxFocusEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFocusEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)((wxFocusEvent const *)arg1)->GetWindow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FocusEvent_SetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxFocusEvent *arg1 = (wxFocusEvent *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "win", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FocusEvent_SetWindow",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFocusEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FocusEvent_SetWindow" "', expected argument " "1"" of type '" "wxFocusEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFocusEvent * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FocusEvent_SetWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetWindow(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *FocusEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxFocusEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *FocusEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_ChildFocusEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) NULL ;
|
|
wxChildFocusEvent *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "win", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_ChildFocusEvent",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ChildFocusEvent" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxChildFocusEvent *)new wxChildFocusEvent(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChildFocusEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ChildFocusEvent_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxChildFocusEvent *arg1 = (wxChildFocusEvent *) 0 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChildFocusEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChildFocusEvent_GetWindow" "', expected argument " "1"" of type '" "wxChildFocusEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxChildFocusEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)((wxChildFocusEvent const *)arg1)->GetWindow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *ChildFocusEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxChildFocusEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *ChildFocusEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_ActivateEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEventType arg1 = (wxEventType) wxEVT_NULL ;
|
|
bool arg2 = (bool) true ;
|
|
int arg3 = (int) 0 ;
|
|
wxActivateEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "type",(char *) "active",(char *) "Id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ActivateEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ActivateEvent" "', expected argument " "1"" of type '" "wxEventType""'");
|
|
}
|
|
arg1 = static_cast< wxEventType >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ActivateEvent" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ActivateEvent" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxActivateEvent *)new wxActivateEvent(arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxActivateEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ActivateEvent_GetActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxActivateEvent *arg1 = (wxActivateEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxActivateEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ActivateEvent_GetActive" "', expected argument " "1"" of type '" "wxActivateEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxActivateEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxActivateEvent const *)arg1)->GetActive();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *ActivateEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxActivateEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *ActivateEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_InitDialogEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
wxInitDialogEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "Id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_InitDialogEvent",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_InitDialogEvent" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxInitDialogEvent *)new wxInitDialogEvent(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxInitDialogEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *InitDialogEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxInitDialogEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *InitDialogEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_MenuEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEventType arg1 = (wxEventType) wxEVT_NULL ;
|
|
int arg2 = (int) 0 ;
|
|
wxMenu *arg3 = (wxMenu *) NULL ;
|
|
wxMenuEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "type",(char *) "winid",(char *) "menu", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_MenuEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MenuEvent" "', expected argument " "1"" of type '" "wxEventType""'");
|
|
}
|
|
arg1 = static_cast< wxEventType >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MenuEvent" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_MenuEvent" "', expected argument " "3"" of type '" "wxMenu *""'");
|
|
}
|
|
arg3 = reinterpret_cast< wxMenu * >(argp3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuEvent *)new wxMenuEvent(arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMenuEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuEvent_GetMenuId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuEvent_GetMenuId" "', expected argument " "1"" of type '" "wxMenuEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxMenuEvent const *)arg1)->GetMenuId();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuEvent_IsPopup(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuEvent_IsPopup" "', expected argument " "1"" of type '" "wxMenuEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMenuEvent const *)arg1)->IsPopup();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuEvent_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuEvent *arg1 = (wxMenuEvent *) 0 ;
|
|
wxMenu *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuEvent_GetMenu" "', expected argument " "1"" of type '" "wxMenuEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenu *)((wxMenuEvent const *)arg1)->GetMenu();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *MenuEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxMenuEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *MenuEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_CloseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEventType arg1 = (wxEventType) wxEVT_NULL ;
|
|
int arg2 = (int) 0 ;
|
|
wxCloseEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "type",(char *) "winid", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_CloseEvent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CloseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
|
|
}
|
|
arg1 = static_cast< wxEventType >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CloseEvent" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxCloseEvent *)new wxCloseEvent(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCloseEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CloseEvent_SetLoggingOff(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "logOff", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetLoggingOff",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCloseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CloseEvent_SetLoggingOff" "', expected argument " "1"" of type '" "wxCloseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxCloseEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CloseEvent_SetLoggingOff" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetLoggingOff(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CloseEvent_GetLoggingOff(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCloseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CloseEvent_GetLoggingOff" "', expected argument " "1"" of type '" "wxCloseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxCloseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxCloseEvent const *)arg1)->GetLoggingOff();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CloseEvent_Veto(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
|
|
bool arg2 = (bool) true ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "veto", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:CloseEvent_Veto",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCloseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CloseEvent_Veto" "', expected argument " "1"" of type '" "wxCloseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxCloseEvent * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CloseEvent_Veto" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Veto(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CloseEvent_GetVeto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCloseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CloseEvent_GetVeto" "', expected argument " "1"" of type '" "wxCloseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxCloseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxCloseEvent const *)arg1)->GetVeto();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CloseEvent_SetCanVeto(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "canVeto", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CloseEvent_SetCanVeto",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCloseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CloseEvent_SetCanVeto" "', expected argument " "1"" of type '" "wxCloseEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxCloseEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CloseEvent_SetCanVeto" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetCanVeto(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_CloseEvent_CanVeto(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxCloseEvent *arg1 = (wxCloseEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCloseEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CloseEvent_CanVeto" "', expected argument " "1"" of type '" "wxCloseEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxCloseEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxCloseEvent const *)arg1)->CanVeto();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *CloseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxCloseEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *CloseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_ShowEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
bool arg2 = (bool) false ;
|
|
wxShowEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "winid",(char *) "show", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ShowEvent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ShowEvent" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ShowEvent" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxShowEvent *)new wxShowEvent(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxShowEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ShowEvent_SetShow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxShowEvent *arg1 = (wxShowEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "show", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ShowEvent_SetShow",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxShowEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShowEvent_SetShow" "', expected argument " "1"" of type '" "wxShowEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxShowEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ShowEvent_SetShow" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetShow(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ShowEvent_GetShow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxShowEvent *arg1 = (wxShowEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxShowEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ShowEvent_GetShow" "', expected argument " "1"" of type '" "wxShowEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxShowEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxShowEvent const *)arg1)->GetShow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *ShowEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxShowEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *ShowEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_IconizeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
bool arg2 = (bool) true ;
|
|
wxIconizeEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "id",(char *) "iconized", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconizeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_IconizeEvent" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconizeEvent" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxIconizeEvent *)new wxIconizeEvent(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconizeEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IconizeEvent_Iconized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxIconizeEvent *arg1 = (wxIconizeEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconizeEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconizeEvent_Iconized" "', expected argument " "1"" of type '" "wxIconizeEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIconizeEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Iconized();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IconizeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxIconizeEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *IconizeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_MaximizeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
wxMaximizeEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MaximizeEvent",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MaximizeEvent" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMaximizeEvent *)new wxMaximizeEvent(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMaximizeEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *MaximizeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxMaximizeEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *MaximizeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_DropFilesEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDropFilesEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropFilesEvent_GetPosition" "', expected argument " "1"" of type '" "wxDropFilesEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxDropFilesEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetPosition();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_DropFilesEvent_GetNumberOfFiles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDropFilesEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropFilesEvent_GetNumberOfFiles" "', expected argument " "1"" of type '" "wxDropFilesEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxDropFilesEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->GetNumberOfFiles();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_DropFilesEvent_GetFiles(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxDropFilesEvent *arg1 = (wxDropFilesEvent *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDropFilesEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DropFilesEvent_GetFiles" "', expected argument " "1"" of type '" "wxDropFilesEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxDropFilesEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)wxDropFilesEvent_GetFiles(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *DropFilesEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxDropFilesEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_UpdateUIEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
wxUpdateUIEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "commandId", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_UpdateUIEvent",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_UpdateUIEvent" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxUpdateUIEvent *)new wxUpdateUIEvent(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxUpdateUIEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetChecked" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxUpdateUIEvent const *)arg1)->GetChecked();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetEnabled" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxUpdateUIEvent const *)arg1)->GetEnabled();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetShown" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxUpdateUIEvent const *)arg1)->GetShown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetText" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxUpdateUIEvent const *)arg1)->GetText();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetSetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetSetText" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetText();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetSetChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetSetChecked" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetChecked();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetSetEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetSetEnabled" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetEnabled();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetSetShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_GetSetShown" "', expected argument " "1"" of type '" "wxUpdateUIEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxUpdateUIEvent const *)arg1)->GetSetShown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_UpdateUIEvent_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "check", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Check",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_Check" "', expected argument " "1"" of type '" "wxUpdateUIEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UpdateUIEvent_Check" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Check(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_UpdateUIEvent_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "enable", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_Enable" "', expected argument " "1"" of type '" "wxUpdateUIEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UpdateUIEvent_Enable" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Enable(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_UpdateUIEvent_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "show", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_Show",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_Show" "', expected argument " "1"" of type '" "wxUpdateUIEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UpdateUIEvent_Show" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Show(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_UpdateUIEvent_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxUpdateUIEvent *arg1 = (wxUpdateUIEvent *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "text", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:UpdateUIEvent_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxUpdateUIEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_SetText" "', expected argument " "1"" of type '" "wxUpdateUIEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxUpdateUIEvent * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetText((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_UpdateUIEvent_SetUpdateInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
long arg1 ;
|
|
long val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "updateInterval", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetUpdateInterval",kwnames,&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_long(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "UpdateUIEvent_SetUpdateInterval" "', expected argument " "1"" of type '" "long""'");
|
|
}
|
|
arg1 = static_cast< long >(val1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxUpdateUIEvent::SetUpdateInterval(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetUpdateInterval(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
long result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"UpdateUIEvent_GetUpdateInterval",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (long)wxUpdateUIEvent::GetUpdateInterval();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_long(static_cast< long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_UpdateUIEvent_CanUpdate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "win", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_CanUpdate",kwnames,&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UpdateUIEvent_CanUpdate" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxUpdateUIEvent::CanUpdate(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_UpdateUIEvent_ResetUpdateTime(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"UpdateUIEvent_ResetUpdateTime",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxUpdateUIEvent::ResetUpdateTime();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_UpdateUIEvent_SetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxUpdateUIMode arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "mode", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:UpdateUIEvent_SetMode",kwnames,&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "UpdateUIEvent_SetMode" "', expected argument " "1"" of type '" "wxUpdateUIMode""'");
|
|
}
|
|
arg1 = static_cast< wxUpdateUIMode >(val1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxUpdateUIEvent::SetMode(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_UpdateUIEvent_GetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxUpdateUIMode result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"UpdateUIEvent_GetMode",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxUpdateUIMode)wxUpdateUIEvent::GetMode();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *UpdateUIEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxUpdateUIEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *UpdateUIEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_SysColourChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSysColourChangedEvent *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_SysColourChangedEvent",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSysColourChangedEvent *)new wxSysColourChangedEvent();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSysColourChangedEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *SysColourChangedEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxSysColourChangedEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *SysColourChangedEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_MouseCaptureChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) NULL ;
|
|
wxMouseCaptureChangedEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "winid",(char *) "gainedCapture", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_MouseCaptureChangedEvent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MouseCaptureChangedEvent" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_MouseCaptureChangedEvent" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMouseCaptureChangedEvent *)new wxMouseCaptureChangedEvent(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseCaptureChangedEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MouseCaptureChangedEvent_GetCapturedWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMouseCaptureChangedEvent *arg1 = (wxMouseCaptureChangedEvent *) 0 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMouseCaptureChangedEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MouseCaptureChangedEvent_GetCapturedWindow" "', expected argument " "1"" of type '" "wxMouseCaptureChangedEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMouseCaptureChangedEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)((wxMouseCaptureChangedEvent const *)arg1)->GetCapturedWindow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *MouseCaptureChangedEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxMouseCaptureChangedEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *MouseCaptureChangedEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_MouseCaptureLostEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
wxMouseCaptureLostEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "winid", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MouseCaptureLostEvent",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MouseCaptureLostEvent" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMouseCaptureLostEvent *)new wxMouseCaptureLostEvent(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseCaptureLostEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *MouseCaptureLostEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxMouseCaptureLostEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *MouseCaptureLostEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_DisplayChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxDisplayChangedEvent *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_DisplayChangedEvent",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxDisplayChangedEvent *)new wxDisplayChangedEvent();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDisplayChangedEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *DisplayChangedEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxDisplayChangedEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *DisplayChangedEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_PaletteChangedEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
wxPaletteChangedEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_PaletteChangedEvent",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PaletteChangedEvent" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxPaletteChangedEvent *)new wxPaletteChangedEvent(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaletteChangedEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PaletteChangedEvent_SetChangedWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "win", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PaletteChangedEvent_SetChangedWindow",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPaletteChangedEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PaletteChangedEvent_SetChangedWindow" "', expected argument " "1"" of type '" "wxPaletteChangedEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPaletteChangedEvent * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PaletteChangedEvent_SetChangedWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetChangedWindow(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PaletteChangedEvent_GetChangedWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPaletteChangedEvent *arg1 = (wxPaletteChangedEvent *) 0 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPaletteChangedEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PaletteChangedEvent_GetChangedWindow" "', expected argument " "1"" of type '" "wxPaletteChangedEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPaletteChangedEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)(arg1)->GetChangedWindow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *PaletteChangedEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxPaletteChangedEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *PaletteChangedEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_QueryNewPaletteEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
wxQueryNewPaletteEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "winid", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_QueryNewPaletteEvent",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QueryNewPaletteEvent" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxQueryNewPaletteEvent *)new wxQueryNewPaletteEvent(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxQueryNewPaletteEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_QueryNewPaletteEvent_SetPaletteRealized(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "realized", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:QueryNewPaletteEvent_SetPaletteRealized",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxQueryNewPaletteEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryNewPaletteEvent_SetPaletteRealized" "', expected argument " "1"" of type '" "wxQueryNewPaletteEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxQueryNewPaletteEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QueryNewPaletteEvent_SetPaletteRealized" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetPaletteRealized(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_QueryNewPaletteEvent_GetPaletteRealized(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxQueryNewPaletteEvent *arg1 = (wxQueryNewPaletteEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxQueryNewPaletteEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QueryNewPaletteEvent_GetPaletteRealized" "', expected argument " "1"" of type '" "wxQueryNewPaletteEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxQueryNewPaletteEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxQueryNewPaletteEvent const *)arg1)->GetPaletteRealized();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *QueryNewPaletteEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxQueryNewPaletteEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *QueryNewPaletteEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_NavigationKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxNavigationKeyEvent *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_NavigationKeyEvent",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxNavigationKeyEvent *)new wxNavigationKeyEvent();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNavigationKeyEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_NavigationKeyEvent_GetDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_GetDirection" "', expected argument " "1"" of type '" "wxNavigationKeyEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxNavigationKeyEvent const *)arg1)->GetDirection();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_NavigationKeyEvent_SetDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "forward", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetDirection",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_SetDirection" "', expected argument " "1"" of type '" "wxNavigationKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NavigationKeyEvent_SetDirection" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetDirection(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_NavigationKeyEvent_IsWindowChange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_IsWindowChange" "', expected argument " "1"" of type '" "wxNavigationKeyEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxNavigationKeyEvent const *)arg1)->IsWindowChange();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_NavigationKeyEvent_SetWindowChange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "ischange", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetWindowChange",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_SetWindowChange" "', expected argument " "1"" of type '" "wxNavigationKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NavigationKeyEvent_SetWindowChange" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetWindowChange(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_NavigationKeyEvent_IsFromTab(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_IsFromTab" "', expected argument " "1"" of type '" "wxNavigationKeyEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxNavigationKeyEvent const *)arg1)->IsFromTab();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_NavigationKeyEvent_SetFromTab(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "bIs", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFromTab",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_SetFromTab" "', expected argument " "1"" of type '" "wxNavigationKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NavigationKeyEvent_SetFromTab" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetFromTab(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_NavigationKeyEvent_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
|
|
long arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
long val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "flags", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_SetFlags" "', expected argument " "1"" of type '" "wxNavigationKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
|
|
ecode2 = SWIG_AsVal_long(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NavigationKeyEvent_SetFlags" "', expected argument " "2"" of type '" "long""'");
|
|
}
|
|
arg2 = static_cast< long >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetFlags(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_NavigationKeyEvent_GetCurrentFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_GetCurrentFocus" "', expected argument " "1"" of type '" "wxNavigationKeyEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)((wxNavigationKeyEvent const *)arg1)->GetCurrentFocus();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_NavigationKeyEvent_SetCurrentFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxNavigationKeyEvent *arg1 = (wxNavigationKeyEvent *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "win", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NavigationKeyEvent_SetCurrentFocus",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNavigationKeyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NavigationKeyEvent_SetCurrentFocus" "', expected argument " "1"" of type '" "wxNavigationKeyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxNavigationKeyEvent * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NavigationKeyEvent_SetCurrentFocus" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetCurrentFocus(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *NavigationKeyEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxNavigationKeyEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *NavigationKeyEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_WindowCreateEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) NULL ;
|
|
wxWindowCreateEvent *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "win", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowCreateEvent",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowCreateEvent" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindowCreateEvent *)new wxWindowCreateEvent(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowCreateEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_WindowCreateEvent_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindowCreateEvent *arg1 = (wxWindowCreateEvent *) 0 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindowCreateEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WindowCreateEvent_GetWindow" "', expected argument " "1"" of type '" "wxWindowCreateEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindowCreateEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)((wxWindowCreateEvent const *)arg1)->GetWindow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *WindowCreateEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowCreateEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *WindowCreateEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_WindowDestroyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) NULL ;
|
|
wxWindowDestroyEvent *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "win", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_WindowDestroyEvent",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDestroyEvent" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindowDestroyEvent *)new wxWindowDestroyEvent(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDestroyEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_WindowDestroyEvent_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindowDestroyEvent *arg1 = (wxWindowDestroyEvent *) 0 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindowDestroyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "WindowDestroyEvent_GetWindow" "', expected argument " "1"" of type '" "wxWindowDestroyEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindowDestroyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)((wxWindowDestroyEvent const *)arg1)->GetWindow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *WindowDestroyEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDestroyEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *WindowDestroyEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_ContextMenuEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEventType arg1 = (wxEventType) wxEVT_NULL ;
|
|
int arg2 = (int) 0 ;
|
|
wxPoint const &arg3_defvalue = wxDefaultPosition ;
|
|
wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
|
|
wxContextMenuEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
wxPoint temp3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "type",(char *) "winid",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ContextMenuEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ContextMenuEvent" "', expected argument " "1"" of type '" "wxEventType""'");
|
|
}
|
|
arg1 = static_cast< wxEventType >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextMenuEvent" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxContextMenuEvent *)new wxContextMenuEvent(arg1,arg2,(wxPoint const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextMenuEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ContextMenuEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
|
|
wxPoint *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextMenuEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextMenuEvent_GetPosition" "', expected argument " "1"" of type '" "wxContextMenuEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxContextMenuEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxPoint const &_result_ref = ((wxContextMenuEvent const *)arg1)->GetPosition();
|
|
result = (wxPoint *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ContextMenuEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxContextMenuEvent *arg1 = (wxContextMenuEvent *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ContextMenuEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextMenuEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextMenuEvent_SetPosition" "', expected argument " "1"" of type '" "wxContextMenuEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxContextMenuEvent * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetPosition((wxPoint const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *ContextMenuEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxContextMenuEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *ContextMenuEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_IdleEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxIdleEvent *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_IdleEvent",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxIdleEvent *)new wxIdleEvent();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIdleEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IdleEvent_RequestMore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
|
|
bool arg2 = (bool) true ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "needMore", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:IdleEvent_RequestMore",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIdleEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IdleEvent_RequestMore" "', expected argument " "1"" of type '" "wxIdleEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIdleEvent * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IdleEvent_RequestMore" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->RequestMore(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IdleEvent_MoreRequested(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxIdleEvent *arg1 = (wxIdleEvent *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIdleEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IdleEvent_MoreRequested" "', expected argument " "1"" of type '" "wxIdleEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIdleEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxIdleEvent const *)arg1)->MoreRequested();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IdleEvent_SetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxIdleMode arg1 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "mode", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_SetMode",kwnames,&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "IdleEvent_SetMode" "', expected argument " "1"" of type '" "wxIdleMode""'");
|
|
}
|
|
arg1 = static_cast< wxIdleMode >(val1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxIdleEvent::SetMode(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IdleEvent_GetMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxIdleMode result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"IdleEvent_GetMode",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxIdleMode)wxIdleEvent::GetMode();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IdleEvent_CanSend(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "win", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IdleEvent_CanSend",kwnames,&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IdleEvent_CanSend" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxIdleEvent::CanSend(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IdleEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxIdleEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *IdleEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_ClipboardTextEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEventType arg1 = (wxEventType) wxEVT_NULL ;
|
|
int arg2 = (int) 0 ;
|
|
wxClipboardTextEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "type",(char *) "winid", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ClipboardTextEvent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ClipboardTextEvent" "', expected argument " "1"" of type '" "wxEventType""'");
|
|
}
|
|
arg1 = static_cast< wxEventType >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ClipboardTextEvent" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxClipboardTextEvent *)new wxClipboardTextEvent(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClipboardTextEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *ClipboardTextEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxClipboardTextEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *ClipboardTextEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_PyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
wxEventType arg2 = (wxEventType) wxEVT_NULL ;
|
|
wxPyEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "winid",(char *) "eventType", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyEvent" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyEvent" "', expected argument " "2"" of type '" "wxEventType""'");
|
|
}
|
|
arg2 = static_cast< wxEventType >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxPyEvent *)new wxPyEvent(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_PyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyEvent *arg1 = (wxPyEvent *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyEvent, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyEvent" "', expected argument " "1"" of type '" "wxPyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyEvent__SetSelf(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyEvent *arg1 = (wxPyEvent *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "self", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyEvent__SetSelf",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyEvent__SetSelf" "', expected argument " "1"" of type '" "wxPyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyEvent * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetSelf(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyEvent__GetSelf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyEvent *arg1 = (wxPyEvent *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyEvent__GetSelf" "', expected argument " "1"" of type '" "wxPyEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)(arg1)->GetSelf();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *PyEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxPyEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *PyEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_PyCommandEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEventType arg1 = (wxEventType) wxEVT_NULL ;
|
|
int arg2 = (int) 0 ;
|
|
wxPyCommandEvent *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "eventType",(char *) "id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyCommandEvent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyCommandEvent" "', expected argument " "1"" of type '" "wxEventType""'");
|
|
}
|
|
arg1 = static_cast< wxEventType >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyCommandEvent" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxPyCommandEvent *)new wxPyCommandEvent(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyCommandEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_PyCommandEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyCommandEvent, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyCommandEvent" "', expected argument " "1"" of type '" "wxPyCommandEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyCommandEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyCommandEvent__SetSelf(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "self", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyCommandEvent__SetSelf",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyCommandEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyCommandEvent__SetSelf" "', expected argument " "1"" of type '" "wxPyCommandEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyCommandEvent * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetSelf(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyCommandEvent__GetSelf(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyCommandEvent *arg1 = (wxPyCommandEvent *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyCommandEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyCommandEvent__GetSelf" "', expected argument " "1"" of type '" "wxPyCommandEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyCommandEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)(arg1)->GetSelf();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *PyCommandEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxPyCommandEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *PyCommandEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_DateEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxDateTime *arg2 = 0 ;
|
|
wxEventType arg3 ;
|
|
wxDateEvent *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "win",(char *) "dt",(char *) "type", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_DateEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DateEvent" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DateEvent" "', expected argument " "2"" of type '" "wxDateTime const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DateEvent" "', expected argument " "2"" of type '" "wxDateTime const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxDateTime * >(argp2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DateEvent" "', expected argument " "3"" of type '" "wxEventType""'");
|
|
}
|
|
arg3 = static_cast< wxEventType >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxDateEvent *)new wxDateEvent(arg1,(wxDateTime const &)*arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateEvent, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_DateEvent_GetDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxDateEvent *arg1 = (wxDateEvent *) 0 ;
|
|
wxDateTime *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDateEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateEvent_GetDate" "', expected argument " "1"" of type '" "wxDateEvent const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxDateEvent * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxDateTime const &_result_ref = ((wxDateEvent const *)arg1)->GetDate();
|
|
result = (wxDateTime *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDateTime, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_DateEvent_SetDate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxDateEvent *arg1 = (wxDateEvent *) 0 ;
|
|
wxDateTime *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "date", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DateEvent_SetDate",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDateEvent, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DateEvent_SetDate" "', expected argument " "1"" of type '" "wxDateEvent *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxDateEvent * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DateEvent_SetDate" "', expected argument " "2"" of type '" "wxDateTime const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DateEvent_SetDate" "', expected argument " "2"" of type '" "wxDateTime const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxDateTime * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetDate((wxDateTime const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *DateEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxDateEvent, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *DateEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_PyApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_PyApp",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxPyApp *)new_wxPyApp();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyApp, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_PyApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyApp" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
PyObject *arg3 = (PyObject *) 0 ;
|
|
bool arg4 = (bool) false ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyApp__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
arg2 = obj1;
|
|
arg3 = obj2;
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_bool(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyApp__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
|
|
}
|
|
arg4 = static_cast< bool >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->_setCallbackInfo(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_GetAppName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetAppName" "', expected argument " "1"" of type '" "wxPyApp const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxPyApp const *)arg1)->GetAppName();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_SetAppName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "name", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAppName",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetAppName" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetAppName((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_GetClassName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetClassName" "', expected argument " "1"" of type '" "wxPyApp const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxPyApp const *)arg1)->GetClassName();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_SetClassName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "name", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetClassName",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetClassName" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetClassName((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_GetVendorName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
wxString *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetVendorName" "', expected argument " "1"" of type '" "wxPyApp const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxString const &_result_ref = ((wxPyApp const *)arg1)->GetVendorName();
|
|
result = (wxString *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_SetVendorName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "name", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetVendorName",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetVendorName" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetVendorName((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_GetTraits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
wxAppTraits *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetTraits" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxAppTraits *)(arg1)->GetTraits();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAppTraits, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_ProcessPendingEvents(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_ProcessPendingEvents" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->ProcessPendingEvents();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_Yield(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
bool arg2 = (bool) false ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "onlyIfNeeded", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:PyApp_Yield",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_Yield" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyApp_Yield" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Yield(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_WakeUpIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_WakeUpIdle" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->WakeUpIdle();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_IsMainLoopRunning(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
bool result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"PyApp_IsMainLoopRunning",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxPyApp::IsMainLoopRunning();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_MainLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_MainLoop" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->MainLoop();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_Exit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_Exit" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Exit();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
wxLayoutDirection result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetLayoutDirection" "', expected argument " "1"" of type '" "wxPyApp const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxLayoutDirection)((wxPyApp const *)arg1)->GetLayoutDirection();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_ExitMainLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_ExitMainLoop" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->ExitMainLoop();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_Pending(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_Pending" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Pending();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_Dispatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_Dispatch" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Dispatch();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_ProcessIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_ProcessIdle" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->ProcessIdle();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_SendIdleEvents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
wxIdleEvent *arg3 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "win",(char *) "event", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyApp_SendIdleEvents",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SendIdleEvents" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyApp_SendIdleEvents" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxIdleEvent, 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyApp_SendIdleEvents" "', expected argument " "3"" of type '" "wxIdleEvent &""'");
|
|
}
|
|
if (!argp3) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PyApp_SendIdleEvents" "', expected argument " "3"" of type '" "wxIdleEvent &""'");
|
|
}
|
|
arg3 = reinterpret_cast< wxIdleEvent * >(argp3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SendIdleEvents(arg2,*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_IsActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_IsActive" "', expected argument " "1"" of type '" "wxPyApp const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxPyApp const *)arg1)->IsActive();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_SetTopWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "win", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetTopWindow",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetTopWindow" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyApp_SetTopWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetTopWindow(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_GetTopWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetTopWindow" "', expected argument " "1"" of type '" "wxPyApp const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)((wxPyApp const *)arg1)->GetTopWindow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_SetExitOnFrameDelete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "flag", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetExitOnFrameDelete",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetExitOnFrameDelete" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyApp_SetExitOnFrameDelete" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetExitOnFrameDelete(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_GetExitOnFrameDelete(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetExitOnFrameDelete" "', expected argument " "1"" of type '" "wxPyApp const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxPyApp const *)arg1)->GetExitOnFrameDelete();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_SetUseBestVisual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
bool arg2 ;
|
|
bool arg3 = (bool) false ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
bool val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "flag",(char *) "forceTrueColour", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyApp_SetUseBestVisual",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetUseBestVisual" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyApp_SetUseBestVisual" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_bool(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyApp_SetUseBestVisual" "', expected argument " "3"" of type '" "bool""'");
|
|
}
|
|
arg3 = static_cast< bool >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetUseBestVisual(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_GetUseBestVisual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetUseBestVisual" "', expected argument " "1"" of type '" "wxPyApp const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxPyApp const *)arg1)->GetUseBestVisual();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_SetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "mode", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetPrintMode",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetPrintMode" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyApp_SetPrintMode" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetPrintMode(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_GetPrintMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetPrintMode" "', expected argument " "1"" of type '" "wxPyApp const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxPyApp const *)arg1)->GetPrintMode();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_SetAssertMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "mode", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyApp_SetAssertMode",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_SetAssertMode" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyApp_SetAssertMode" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetAssertMode(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_GetAssertMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp_GetAssertMode" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->GetAssertMode();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_GetMacSupportPCMenuShortcuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
bool result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"PyApp_GetMacSupportPCMenuShortcuts",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxPyApp::GetMacSupportPCMenuShortcuts();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_GetMacAboutMenuItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
long result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"PyApp_GetMacAboutMenuItemId",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (long)wxPyApp::GetMacAboutMenuItemId();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_long(static_cast< long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_GetMacPreferencesMenuItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
long result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"PyApp_GetMacPreferencesMenuItemId",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (long)wxPyApp::GetMacPreferencesMenuItemId();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_long(static_cast< long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_GetMacExitMenuItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
long result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"PyApp_GetMacExitMenuItemId",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (long)wxPyApp::GetMacExitMenuItemId();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_long(static_cast< long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_GetMacHelpMenuTitleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxString result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"PyApp_GetMacHelpMenuTitleName",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxPyApp::GetMacHelpMenuTitleName();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_SetMacSupportPCMenuShortcuts(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
bool arg1 ;
|
|
bool val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "val", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacSupportPCMenuShortcuts",kwnames,&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_bool(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PyApp_SetMacSupportPCMenuShortcuts" "', expected argument " "1"" of type '" "bool""'");
|
|
}
|
|
arg1 = static_cast< bool >(val1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxPyApp::SetMacSupportPCMenuShortcuts(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_SetMacAboutMenuItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
long arg1 ;
|
|
long val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "val", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacAboutMenuItemId",kwnames,&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_long(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PyApp_SetMacAboutMenuItemId" "', expected argument " "1"" of type '" "long""'");
|
|
}
|
|
arg1 = static_cast< long >(val1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxPyApp::SetMacAboutMenuItemId(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_SetMacPreferencesMenuItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
long arg1 ;
|
|
long val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "val", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacPreferencesMenuItemId",kwnames,&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_long(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PyApp_SetMacPreferencesMenuItemId" "', expected argument " "1"" of type '" "long""'");
|
|
}
|
|
arg1 = static_cast< long >(val1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxPyApp::SetMacPreferencesMenuItemId(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_SetMacExitMenuItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
long arg1 ;
|
|
long val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "val", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacExitMenuItemId",kwnames,&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_long(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PyApp_SetMacExitMenuItemId" "', expected argument " "1"" of type '" "long""'");
|
|
}
|
|
arg1 = static_cast< long >(val1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxPyApp::SetMacExitMenuItemId(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_SetMacHelpMenuTitleName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxString *arg1 = 0 ;
|
|
bool temp1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "val", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyApp_SetMacHelpMenuTitleName",kwnames,&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = wxString_in_helper(obj0);
|
|
if (arg1 == NULL) SWIG_fail;
|
|
temp1 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxPyApp::SetMacHelpMenuTitleName((wxString const &)*arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp__BootstrapApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *arg1 = (wxPyApp *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyApp, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyApp__BootstrapApp" "', expected argument " "1"" of type '" "wxPyApp *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyApp * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->_BootstrapApp();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_GetComCtl32Version(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"PyApp_GetComCtl32Version",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)wxPyApp_GetComCtl32Version();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyApp_IsDisplayAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
bool result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"PyApp_IsDisplayAvailable",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxPyApp_IsDisplayAvailable();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *PyApp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxPyApp, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *PyApp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_Exit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Exit",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxExit();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Yield(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
bool result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Yield",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxYield();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_YieldIfNeeded(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
bool result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"YieldIfNeeded",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxYieldIfNeeded();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SafeYield(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) NULL ;
|
|
bool arg2 = (bool) false ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "win",(char *) "onlyIfNeeded", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:SafeYield",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SafeYield" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SafeYield" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxSafeYield(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_WakeUpIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"WakeUpIdle",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxWakeUpIdle();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PostEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEvtHandler *arg1 = (wxEvtHandler *) 0 ;
|
|
wxEvent *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "dest",(char *) "event", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostEvent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostEvent" "', expected argument " "1"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEvtHandler * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxEvent, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostEvent" "', expected argument " "2"" of type '" "wxEvent &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostEvent" "', expected argument " "2"" of type '" "wxEvent &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxEvent * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxPostEvent(arg1,*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_App_CleanUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"App_CleanUp",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxApp_CleanUp();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GetApp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyApp *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"GetApp",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxPyApp *)wxPyGetApp();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SetDefaultPyEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
char *arg1 = (char *) 0 ;
|
|
int res1 ;
|
|
char *buf1 = 0 ;
|
|
int alloc1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "encoding", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SetDefaultPyEncoding",kwnames,&obj0)) SWIG_fail;
|
|
res1 = SWIG_AsCharPtrAndSize(obj0, &buf1, NULL, &alloc1);
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SetDefaultPyEncoding" "', expected argument " "1"" of type '" "char const *""'");
|
|
}
|
|
arg1 = buf1;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxSetDefaultPyEncoding((char const *)arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return resultobj;
|
|
fail:
|
|
if (alloc1 == SWIG_NEWOBJ) delete[] buf1;
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GetDefaultPyEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
char *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"GetDefaultPyEncoding",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (char *)wxGetDefaultPyEncoding();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_FromCharPtr(result);
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_EventLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEventLoop *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_EventLoop",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxEventLoop *)new wxEventLoop();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEventLoop, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_EventLoop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEventLoop *arg1 = (wxEventLoop *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEventLoop, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EventLoop" "', expected argument " "1"" of type '" "wxEventLoop *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEventLoop * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EventLoop_Run(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEventLoop *arg1 = (wxEventLoop *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventLoop_Run" "', expected argument " "1"" of type '" "wxEventLoop *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEventLoop * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->Run();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EventLoop_Exit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEventLoop *arg1 = (wxEventLoop *) 0 ;
|
|
int arg2 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rc", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EventLoop_Exit",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventLoop_Exit" "', expected argument " "1"" of type '" "wxEventLoop *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEventLoop * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EventLoop_Exit" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Exit(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EventLoop_Pending(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEventLoop *arg1 = (wxEventLoop *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventLoop_Pending" "', expected argument " "1"" of type '" "wxEventLoop const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEventLoop * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxEventLoop const *)arg1)->Pending();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EventLoop_Dispatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEventLoop *arg1 = (wxEventLoop *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventLoop_Dispatch" "', expected argument " "1"" of type '" "wxEventLoop *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEventLoop * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Dispatch();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EventLoop_IsRunning(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEventLoop *arg1 = (wxEventLoop *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventLoop_IsRunning" "', expected argument " "1"" of type '" "wxEventLoop const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEventLoop * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxEventLoop const *)arg1)->IsRunning();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EventLoop_GetActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEventLoop *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"EventLoop_GetActive",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxEventLoop *)wxEventLoop::GetActive();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEventLoop, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_EventLoop_SetActive(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEventLoop *arg1 = (wxEventLoop *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "loop", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EventLoop_SetActive",kwnames,&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EventLoop_SetActive" "', expected argument " "1"" of type '" "wxEventLoop *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEventLoop * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxEventLoop::SetActive(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *EventLoop_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxEventLoop, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *EventLoop_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_EventLoopActivator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxEventLoop *arg1 = (wxEventLoop *) 0 ;
|
|
wxEventLoopActivator *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "evtLoop", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_EventLoopActivator",kwnames,&obj0)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEventLoop, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_EventLoopActivator" "', expected argument " "1"" of type '" "wxEventLoop *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEventLoop * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxEventLoopActivator *)new wxEventLoopActivator(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEventLoopActivator, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_EventLoopActivator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxEventLoopActivator *arg1 = (wxEventLoopActivator *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEventLoopActivator, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EventLoopActivator" "', expected argument " "1"" of type '" "wxEventLoopActivator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxEventLoopActivator * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *EventLoopActivator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxEventLoopActivator, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *EventLoopActivator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_AcceleratorEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
int arg2 = (int) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
wxAcceleratorEntry *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "flags",(char *) "keyCode",(char *) "cmdID", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_AcceleratorEntry",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_AcceleratorEntry" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_AcceleratorEntry" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_AcceleratorEntry" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxAcceleratorEntry *)new wxAcceleratorEntry(arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_AcceleratorEntry(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AcceleratorEntry" "', expected argument " "1"" of type '" "wxAcceleratorEntry *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_AcceleratorEntry_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "flags",(char *) "keyCode",(char *) "cmd", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AcceleratorEntry_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_Set" "', expected argument " "1"" of type '" "wxAcceleratorEntry *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AcceleratorEntry_Set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AcceleratorEntry_Set" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AcceleratorEntry_Set" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Set(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_AcceleratorEntry_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxString *arg1 = 0 ;
|
|
wxAcceleratorEntry *result = 0 ;
|
|
bool temp1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "str", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AcceleratorEntry_Create",kwnames,&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = wxString_in_helper(obj0);
|
|
if (arg1 == NULL) SWIG_fail;
|
|
temp1 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxAcceleratorEntry *)wxAcceleratorEntry::Create((wxString const &)*arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAcceleratorEntry, SWIG_POINTER_OWN | 0 );
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_AcceleratorEntry_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_GetFlags" "', expected argument " "1"" of type '" "wxAcceleratorEntry *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->GetFlags();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_AcceleratorEntry_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_GetKeyCode" "', expected argument " "1"" of type '" "wxAcceleratorEntry *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->GetKeyCode();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_AcceleratorEntry_GetCommand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_GetCommand" "', expected argument " "1"" of type '" "wxAcceleratorEntry *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->GetCommand();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_AcceleratorEntry_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_IsOk" "', expected argument " "1"" of type '" "wxAcceleratorEntry const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxAcceleratorEntry const *)arg1)->IsOk();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_AcceleratorEntry_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_ToString" "', expected argument " "1"" of type '" "wxAcceleratorEntry const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxAcceleratorEntry const *)arg1)->ToString();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_AcceleratorEntry_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxAcceleratorEntry *arg1 = (wxAcceleratorEntry *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "str", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AcceleratorEntry_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorEntry_FromString" "', expected argument " "1"" of type '" "wxAcceleratorEntry *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxAcceleratorEntry * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->FromString((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *AcceleratorEntry_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxAcceleratorEntry, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *AcceleratorEntry_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_AcceleratorTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
|
|
wxAcceleratorTable *result = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "n", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AcceleratorTable",kwnames,&obj0)) SWIG_fail;
|
|
{
|
|
arg2 = wxAcceleratorEntry_LIST_helper(obj0);
|
|
if (arg2) arg1 = PyList_Size(obj0);
|
|
else arg1 = 0;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxAcceleratorTable *)new wxAcceleratorTable(arg1,(wxAcceleratorEntry const *)arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAcceleratorTable, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_AcceleratorTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorTable, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AcceleratorTable" "', expected argument " "1"" of type '" "wxAcceleratorTable *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxAcceleratorTable * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_AcceleratorTable_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxAcceleratorTable *arg1 = (wxAcceleratorTable *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAcceleratorTable, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AcceleratorTable_IsOk" "', expected argument " "1"" of type '" "wxAcceleratorTable const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxAcceleratorTable * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxAcceleratorTable const *)arg1)->IsOk();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *AcceleratorTable_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxAcceleratorTable, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *AcceleratorTable_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN int NullAcceleratorTable_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable NullAcceleratorTable is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *NullAcceleratorTable_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullAcceleratorTable), SWIGTYPE_p_wxAcceleratorTable, 0 );
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GetAccelFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxString *arg1 = 0 ;
|
|
wxAcceleratorEntry *result = 0 ;
|
|
bool temp1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "label", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetAccelFromString",kwnames,&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = wxString_in_helper(obj0);
|
|
if (arg1 == NULL) SWIG_fail;
|
|
temp1 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxAcceleratorEntry *)wxGetAccelFromString((wxString const &)*arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN int PanelNameStr_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable PanelNameStr is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *PanelNameStr_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
{
|
|
#if wxUSE_UNICODE
|
|
pyobj = PyUnicode_FromWideChar((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
|
|
#else
|
|
pyobj = PyString_FromStringAndSize((&wxPyPanelNameStr)->c_str(), (&wxPyPanelNameStr)->Len());
|
|
#endif
|
|
}
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_VisualAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxVisualAttributes *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_VisualAttributes",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxVisualAttributes *)new_wxVisualAttributes();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_VisualAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VisualAttributes" "', expected argument " "1"" of type '" "wxVisualAttributes *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxVisualAttributes * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete_wxVisualAttributes(arg1);
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_VisualAttributes__get_font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
|
|
wxFont result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVisualAttributes, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VisualAttributes__get_font" "', expected argument " "1"" of type '" "wxVisualAttributes *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxVisualAttributes * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxVisualAttributes__get_font(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_VisualAttributes__get_colFg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
|
|
wxColour result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVisualAttributes, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VisualAttributes__get_colFg" "', expected argument " "1"" of type '" "wxVisualAttributes *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxVisualAttributes * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxVisualAttributes__get_colFg(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_VisualAttributes__get_colBg(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxVisualAttributes *arg1 = (wxVisualAttributes *) 0 ;
|
|
wxColour result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxVisualAttributes, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VisualAttributes__get_colBg" "', expected argument " "1"" of type '" "wxVisualAttributes *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxVisualAttributes * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxVisualAttributes__get_colBg(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *VisualAttributes_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxVisualAttributes, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *VisualAttributes_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_Window(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 = (int) (int)-1 ;
|
|
wxPoint const &arg3_defvalue = wxDefaultPosition ;
|
|
wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
|
|
wxSize const &arg4_defvalue = wxDefaultSize ;
|
|
wxSize *arg4 = (wxSize *) &arg4_defvalue ;
|
|
long arg5 = (long) 0 ;
|
|
wxString const &arg6_defvalue = wxPyPanelNameStr ;
|
|
wxString *arg6 = (wxString *) &arg6_defvalue ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
wxPoint temp3 ;
|
|
wxSize temp4 ;
|
|
long val5 ;
|
|
int ecode5 = 0 ;
|
|
bool temp6 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Window",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Window" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Window" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
|
|
}
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = &temp4;
|
|
if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
|
|
}
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_long(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Window" "', expected argument " "5"" of type '" "long""'");
|
|
}
|
|
arg5 = static_cast< long >(val5);
|
|
}
|
|
if (obj5) {
|
|
{
|
|
arg6 = wxString_in_helper(obj5);
|
|
if (arg6 == NULL) SWIG_fail;
|
|
temp6 = true;
|
|
}
|
|
}
|
|
{
|
|
if (!wxPyCheckForApp()) SWIG_fail;
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)new wxWindow(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindow, SWIG_POINTER_NEW | 0 );
|
|
{
|
|
if (temp6)
|
|
delete arg6;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp6)
|
|
delete arg6;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_PreWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_PreWindow",0,0,0)) SWIG_fail;
|
|
{
|
|
if (!wxPyCheckForApp()) SWIG_fail;
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)new wxWindow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindow, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
int arg3 = (int) (int)-1 ;
|
|
wxPoint const &arg4_defvalue = wxDefaultPosition ;
|
|
wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
|
|
wxSize const &arg5_defvalue = wxDefaultSize ;
|
|
wxSize *arg5 = (wxSize *) &arg5_defvalue ;
|
|
long arg6 = (long) 0 ;
|
|
wxString const &arg7_defvalue = wxPyPanelNameStr ;
|
|
wxString *arg7 = (wxString *) &arg7_defvalue ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
wxPoint temp4 ;
|
|
wxSize temp5 ;
|
|
long val6 ;
|
|
int ecode6 = 0 ;
|
|
bool temp7 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Window_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_Create" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = &temp4;
|
|
if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
|
|
}
|
|
}
|
|
if (obj4) {
|
|
{
|
|
arg5 = &temp5;
|
|
if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
|
|
}
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_long(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Window_Create" "', expected argument " "6"" of type '" "long""'");
|
|
}
|
|
arg6 = static_cast< long >(val6);
|
|
}
|
|
if (obj6) {
|
|
{
|
|
arg7 = wxString_in_helper(obj6);
|
|
if (arg7 == NULL) SWIG_fail;
|
|
temp7 = true;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (temp7)
|
|
delete arg7;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp7)
|
|
delete arg7;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool arg2 = (bool) false ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "force", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Close",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Close" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_Close" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Close(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Destroy" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Destroy();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_DestroyChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_DestroyChildren" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->DestroyChildren();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_IsBeingDeleted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsBeingDeleted" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->IsBeingDeleted();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "label", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetLabel" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetLabel((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetLabel" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetLabel();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "name", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetName",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetName" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetName((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetName" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetName();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetWindowVariant(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxWindowVariant arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "variant", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowVariant",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetWindowVariant" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetWindowVariant" "', expected argument " "2"" of type '" "wxWindowVariant""'");
|
|
}
|
|
arg2 = static_cast< wxWindowVariant >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetWindowVariant(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetWindowVariant(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxWindowVariant result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetWindowVariant" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindowVariant)((wxWindow const *)arg1)->GetWindowVariant();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "winid", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetId" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetId" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetId(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetId" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxWindow const *)arg1)->GetId();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_NewControlId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Window_NewControlId",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)wxWindow::NewControlId();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_NextControlId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int result;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "winid", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_NextControlId",kwnames,&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Window_NextControlId" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)wxWindow::NextControlId(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_PrevControlId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int result;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "winid", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Window_PrevControlId",kwnames,&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Window_PrevControlId" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)wxWindow::PrevControlId(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxLayoutDirection result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetLayoutDirection" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxLayoutDirection)((wxWindow const *)arg1)->GetLayoutDirection();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxLayoutDirection arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "dir", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetLayoutDirection" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
|
|
}
|
|
arg2 = static_cast< wxLayoutDirection >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetLayoutDirection(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_AdjustForLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "width",(char *) "widthTotal", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_AdjustForLayoutDirection",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_AdjustForLayoutDirection" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_AdjustForLayoutDirection" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_AdjustForLayoutDirection" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_AdjustForLayoutDirection" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxWindow const *)arg1)->AdjustForLayoutDirection(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "size", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetSize" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetSize((wxSize const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetDimensions(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
int arg5 ;
|
|
int arg6 = (int) wxSIZE_AUTO ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetDimensions",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetDimensions" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetDimensions" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetDimensions" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_SetDimensions" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Window_SetDimensions" "', expected argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Window_SetDimensions" "', expected argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetSize(arg2,arg3,arg4,arg5,arg6);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxRect *arg2 = 0 ;
|
|
int arg3 = (int) wxSIZE_AUTO ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect temp2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rect",(char *) "sizeFlags", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetRect" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetRect" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetSize((wxRect const &)*arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetSizeWH(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "width",(char *) "height", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetSizeWH",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetSizeWH" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetSizeWH" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetSizeWH" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetSize(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
int arg3 = (int) wxSIZE_USE_EXISTING ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt",(char *) "flags", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_Move",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Move" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_Move" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Move((wxPoint const &)*arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_MoveXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 = (int) wxSIZE_USE_EXISTING ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y",(char *) "flags", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_MoveXY",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_MoveXY" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_MoveXY" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_MoveXY" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_MoveXY" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Move(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetInitialSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize const &arg2_defvalue = wxDefaultSize ;
|
|
wxSize *arg2 = (wxSize *) &arg2_defvalue ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "size", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_SetInitialSize",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetInitialSize" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
if (obj1) {
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetInitialSize((wxSize const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Raise(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Raise" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Raise();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Lower(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Lower" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Lower();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "size", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientSize",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetClientSize" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetClientSize((wxSize const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetClientSizeWH(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "width",(char *) "height", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetClientSizeWH",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetClientSizeWH" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetClientSizeWH" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetClientSizeWH" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetClientSize(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetClientRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxRect *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetClientRect",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetClientRect" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetClientSize((wxRect const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetPosition" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetPosition();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetPositionTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
int *arg3 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int temp2 ;
|
|
int res2 = SWIG_TMPOBJ ;
|
|
int temp3 ;
|
|
int res3 = SWIG_TMPOBJ ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
arg2 = &temp2;
|
|
arg3 = &temp3;
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetPositionTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
((wxWindow const *)arg1)->GetPosition(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsTmpObj(res2)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetScreenPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScreenPosition" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetScreenPosition();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetScreenPositionTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
int *arg3 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int temp2 ;
|
|
int res2 = SWIG_TMPOBJ ;
|
|
int temp3 ;
|
|
int res3 = SWIG_TMPOBJ ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
arg2 = &temp2;
|
|
arg3 = &temp3;
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScreenPositionTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
((wxWindow const *)arg1)->GetScreenPosition(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsTmpObj(res2)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetScreenRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxRect result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScreenRect" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetScreenRect();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetSize();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
int *arg3 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int temp2 ;
|
|
int res2 = SWIG_TMPOBJ ;
|
|
int temp3 ;
|
|
int res3 = SWIG_TMPOBJ ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
arg2 = &temp2;
|
|
arg3 = &temp3;
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetSizeTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
((wxWindow const *)arg1)->GetSize(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsTmpObj(res2)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxRect result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetRect" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetRect();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetClientSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetClientSize();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetClientSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
int *arg3 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int temp2 ;
|
|
int res2 = SWIG_TMPOBJ ;
|
|
int temp3 ;
|
|
int res3 = SWIG_TMPOBJ ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
arg2 = &temp2;
|
|
arg3 = &temp3;
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetClientSizeTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
((wxWindow const *)arg1)->GetClientSize(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsTmpObj(res2)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetClientAreaOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetClientAreaOrigin" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetClientAreaOrigin();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetClientRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxRect result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetClientRect" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetClientRect();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBestSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetBestSize();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetBestSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
int *arg3 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int temp2 ;
|
|
int res2 = SWIG_TMPOBJ ;
|
|
int temp3 ;
|
|
int res3 = SWIG_TMPOBJ ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
arg2 = &temp2;
|
|
arg3 = &temp3;
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBestSizeTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
((wxWindow const *)arg1)->GetBestSize(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsTmpObj(res2)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_InvalidateBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_InvalidateBestSize" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->InvalidateBestSize();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_CacheBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "size", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_CacheBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_CacheBestSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
((wxWindow const *)arg1)->CacheBestSize((wxSize const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetEffectiveMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetEffectiveMinSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetEffectiveMinSize();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Center(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 = (int) wxBOTH ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "direction", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Center",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Center" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_Center" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Center(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_CenterOnParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 = (int) wxBOTH ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "dir", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_CenterOnParent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_CenterOnParent" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_CenterOnParent" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->CenterOnParent(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Fit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Fit" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Fit();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_FitInside(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_FitInside" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->FitInside();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetSizeHints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 = (int) -1 ;
|
|
int arg5 = (int) -1 ;
|
|
int arg6 = (int) -1 ;
|
|
int arg7 = (int) -1 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
int val7 ;
|
|
int ecode7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH",(char *) "incW",(char *) "incH", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Window_SetSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetSizeHints" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetSizeHints" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetSizeHints" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_SetSizeHints" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Window_SetSizeHints" "', expected argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Window_SetSizeHints" "', expected argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
if (obj6) {
|
|
ecode7 = SWIG_AsVal_int(obj6, &val7);
|
|
if (!SWIG_IsOK(ecode7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Window_SetSizeHints" "', expected argument " "7"" of type '" "int""'");
|
|
}
|
|
arg7 = static_cast< int >(val7);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetSizeHints(arg2,arg3,arg4,arg5,arg6,arg7);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetSizeHintsSz(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
wxSize const &arg3_defvalue = wxDefaultSize ;
|
|
wxSize *arg3 = (wxSize *) &arg3_defvalue ;
|
|
wxSize const &arg4_defvalue = wxDefaultSize ;
|
|
wxSize *arg4 = (wxSize *) &arg4_defvalue ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
wxSize temp3 ;
|
|
wxSize temp4 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "minSize",(char *) "maxSize",(char *) "incSize", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_SetSizeHintsSz",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetSizeHintsSz" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
if (obj2) {
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
|
|
}
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = &temp4;
|
|
if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3,(wxSize const &)*arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetVirtualSizeHints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 = (int) -1 ;
|
|
int arg5 = (int) -1 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "minW",(char *) "minH",(char *) "maxW",(char *) "maxH", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_SetVirtualSizeHints",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetVirtualSizeHints" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetVirtualSizeHints" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetVirtualSizeHints" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_SetVirtualSizeHints" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Window_SetVirtualSizeHints" "', expected argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetVirtualSizeHints(arg2,arg3,arg4,arg5);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetVirtualSizeHintsSz(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
wxSize const &arg3_defvalue = wxDefaultSize ;
|
|
wxSize *arg3 = (wxSize *) &arg3_defvalue ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
wxSize temp3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "minSize",(char *) "maxSize", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetVirtualSizeHintsSz",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetVirtualSizeHintsSz" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
if (obj2) {
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetVirtualSizeHints((wxSize const &)*arg2,(wxSize const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetMaxSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetMaxSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetMaxSize();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetMinSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetMinSize();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "minSize", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMinSize",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetMinSize" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetMinSize((wxSize const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetMaxSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "maxSize", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetMaxSize",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetMaxSize" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetMaxSize((wxSize const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetMinWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetMinWidth" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxWindow const *)arg1)->GetMinWidth();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetMinHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetMinHeight" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxWindow const *)arg1)->GetMinHeight();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetMaxWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetMaxWidth" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxWindow const *)arg1)->GetMaxWidth();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetMaxHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetMaxHeight" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxWindow const *)arg1)->GetMaxHeight();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "size", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetVirtualSize",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetVirtualSize" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetVirtualSize((wxSize const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetVirtualSizeWH(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "w",(char *) "h", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_SetVirtualSizeWH",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetVirtualSizeWH" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetVirtualSizeWH" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetVirtualSizeWH" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetVirtualSize(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetVirtualSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetVirtualSize();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetVirtualSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
int *arg3 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int temp2 ;
|
|
int res2 = SWIG_TMPOBJ ;
|
|
int temp3 ;
|
|
int res3 = SWIG_TMPOBJ ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
arg2 = &temp2;
|
|
arg3 = &temp3;
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetVirtualSizeTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
((wxWindow const *)arg1)->GetVirtualSize(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsTmpObj(res2)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetWindowBorderSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetWindowBorderSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetWindowBorderSize();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetBestVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBestVirtualSize" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetBestVirtualSize();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool arg2 = (bool) true ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "show", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Show",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Show" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_Show" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Show(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Hide" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Hide();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool arg2 = (bool) true ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "enable", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Enable" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_Enable" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Enable(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Disable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Disable" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Disable();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_IsShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsShown" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->IsShown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsEnabled" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->IsEnabled();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_IsShownOnScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsShownOnScreen" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->IsShownOnScreen();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetWindowStyleFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
long arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
long val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "style", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetWindowStyleFlag",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetWindowStyleFlag" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_long(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetWindowStyleFlag" "', expected argument " "2"" of type '" "long""'");
|
|
}
|
|
arg2 = static_cast< long >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetWindowStyleFlag(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetWindowStyleFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
long result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetWindowStyleFlag" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (long)((wxWindow const *)arg1)->GetWindowStyleFlag();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_long(static_cast< long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "flag", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HasFlag" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_HasFlag" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->HasFlag(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_IsRetained(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsRetained" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->IsRetained();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_ToggleWindowStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "flag", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ToggleWindowStyle",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ToggleWindowStyle" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_ToggleWindowStyle" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->ToggleWindowStyle(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetExtraStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
long arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
long val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "exStyle", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetExtraStyle",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetExtraStyle" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_long(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetExtraStyle" "', expected argument " "2"" of type '" "long""'");
|
|
}
|
|
arg2 = static_cast< long >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetExtraStyle(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetExtraStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
long result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetExtraStyle" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (long)((wxWindow const *)arg1)->GetExtraStyle();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_long(static_cast< long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_MakeModal(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool arg2 = (bool) true ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "modal", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_MakeModal",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_MakeModal" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_MakeModal" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->MakeModal(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetThemeEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "enableTheme", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetThemeEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetThemeEnabled" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetThemeEnabled" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetThemeEnabled(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetThemeEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetThemeEnabled" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->GetThemeEnabled();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetFocus" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetFocus();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetFocusFromKbd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetFocusFromKbd" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetFocusFromKbd();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_FindFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Window_FindFocus",0,0,0)) SWIG_fail;
|
|
{
|
|
if (!wxPyCheckForApp()) SWIG_fail;
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)wxWindow::FindFocus();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_AcceptsFocus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_AcceptsFocus" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->AcceptsFocus();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_AcceptsFocusFromKeyboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_AcceptsFocusFromKeyboard" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->AcceptsFocusFromKeyboard();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Navigate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 = (int) wxNavigationKeyEvent::IsForward ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "flags", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_Navigate",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Navigate" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_Navigate" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Navigate(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_MoveAfterInTabOrder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "win", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveAfterInTabOrder",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_MoveAfterInTabOrder" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_MoveAfterInTabOrder" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->MoveAfterInTabOrder(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_MoveBeforeInTabOrder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "win", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_MoveBeforeInTabOrder",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_MoveBeforeInTabOrder" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_MoveBeforeInTabOrder" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->MoveBeforeInTabOrder(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetChildren" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)wxWindow_GetChildren(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetParent" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)((wxWindow const *)arg1)->GetParent();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetGrandParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetGrandParent" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)((wxWindow const *)arg1)->GetGrandParent();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetTopLevelParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetTopLevelParent" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)wxWindow_GetTopLevelParent(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_IsTopLevel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsTopLevel" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->IsTopLevel();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Reparent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "newParent", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_Reparent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Reparent" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_Reparent" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Reparent(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_AddChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "child", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AddChild",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_AddChild" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_AddChild" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->AddChild(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_RemoveChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "child", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveChild",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_RemoveChild" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_RemoveChild" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->RemoveChild(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetDoubleBuffered(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "on", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDoubleBuffered",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetDoubleBuffered" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetDoubleBuffered" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxWindow_SetDoubleBuffered(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_FindWindowById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
long arg2 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
long val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "winid", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowById",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_FindWindowById" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_long(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_FindWindowById" "', expected argument " "2"" of type '" "long""'");
|
|
}
|
|
arg2 = static_cast< long >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)(arg1)->FindWindow(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_FindWindowByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "name", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FindWindowByName",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_FindWindowByName" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)(arg1)->FindWindow((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxEvtHandler *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetEventHandler" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxEvtHandler *)((wxWindow const *)arg1)->GetEventHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "handler", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetEventHandler",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetEventHandler" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetEventHandler" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetEventHandler(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_PushEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "handler", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PushEventHandler",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PushEventHandler" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_PushEventHandler" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->PushEventHandler(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_PopEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool arg2 = (bool) false ;
|
|
wxEvtHandler *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "deleteHandler", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_PopEventHandler",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PopEventHandler" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_PopEventHandler" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxEvtHandler *)(arg1)->PopEventHandler(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_RemoveEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "handler", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_RemoveEventHandler",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_RemoveEventHandler" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_RemoveEventHandler" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->RemoveEventHandler(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetValidator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxValidator *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "validator", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetValidator",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetValidator" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxValidator, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetValidator" "', expected argument " "2"" of type '" "wxValidator const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_SetValidator" "', expected argument " "2"" of type '" "wxValidator const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxValidator * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetValidator((wxValidator const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetValidator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxValidator *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetValidator" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxValidator *)(arg1)->GetValidator();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Validate(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Validate" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Validate();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_TransferDataToWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_TransferDataToWindow" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->TransferDataToWindow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_TransferDataFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_TransferDataFromWindow" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->TransferDataFromWindow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_InitDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_InitDialog" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->InitDialog();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetAcceleratorTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxAcceleratorTable *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "accel", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAcceleratorTable",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetAcceleratorTable" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAcceleratorTable, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetAcceleratorTable" "', expected argument " "2"" of type '" "wxAcceleratorTable const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_SetAcceleratorTable" "', expected argument " "2"" of type '" "wxAcceleratorTable const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxAcceleratorTable * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetAcceleratorTable((wxAcceleratorTable const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetAcceleratorTable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxAcceleratorTable *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetAcceleratorTable" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxAcceleratorTable *)(arg1)->GetAcceleratorTable();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAcceleratorTable, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_RegisterHotKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "hotkeyId",(char *) "modifiers",(char *) "keycode", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Window_RegisterHotKey",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_RegisterHotKey" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_RegisterHotKey" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_RegisterHotKey" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_RegisterHotKey" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxWindow_RegisterHotKey(arg1,arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_UnregisterHotKey(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "hotkeyId", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_UnregisterHotKey",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_UnregisterHotKey" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_UnregisterHotKey" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxWindow_UnregisterHotKey(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_ConvertDialogPointToPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogPointToPixels",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ConvertDialogPointToPixels" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_ConvertDialogSizeToPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "sz", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertDialogSizeToPixels",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ConvertDialogSizeToPixels" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_DLG_PNT(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_PNT",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_DLG_PNT" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->ConvertDialogToPixels((wxPoint const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_DLG_SZE(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "sz", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DLG_SZE",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_DLG_SZE" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->ConvertDialogToPixels((wxSize const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_ConvertPixelPointToDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelPointToDialog",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ConvertPixelPointToDialog" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->ConvertPixelsToDialog((wxPoint const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_ConvertPixelSizeToDialog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "sz", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ConvertPixelSizeToDialog",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ConvertPixelSizeToDialog" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->ConvertPixelsToDialog((wxSize const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_WarpPointer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_WarpPointer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_WarpPointer" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_WarpPointer" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_WarpPointer" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->WarpPointer(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_CaptureMouse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_CaptureMouse" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->CaptureMouse();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_ReleaseMouse(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ReleaseMouse" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->ReleaseMouse();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetCapture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Window_GetCapture",0,0,0)) SWIG_fail;
|
|
{
|
|
if (!wxPyCheckForApp()) SWIG_fail;
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)wxWindow::GetCapture();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_HasCapture(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HasCapture" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->HasCapture();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Refresh(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool arg2 = (bool) true ;
|
|
wxRect *arg3 = (wxRect *) NULL ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "eraseBackground",(char *) "rect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Window_Refresh",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Refresh" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_Refresh" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
if (obj2) {
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Window_Refresh" "', expected argument " "3"" of type '" "wxRect const *""'");
|
|
}
|
|
arg3 = reinterpret_cast< wxRect * >(argp3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Refresh(arg2,(wxRect const *)arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_RefreshRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxRect *arg2 = 0 ;
|
|
bool arg3 = (bool) true ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect temp2 ;
|
|
bool val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rect",(char *) "eraseBackground", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_RefreshRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_RefreshRect" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_bool(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_RefreshRect" "', expected argument " "3"" of type '" "bool""'");
|
|
}
|
|
arg3 = static_cast< bool >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->RefreshRect((wxRect const &)*arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Update(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Update" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Update();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_ClearBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ClearBackground" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->ClearBackground();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Freeze(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Freeze" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Freeze();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_IsFrozen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsFrozen" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->IsFrozen();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Thaw(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Thaw" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Thaw();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_PrepareDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxDC *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "dc", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_PrepareDC",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PrepareDC" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_PrepareDC" "', expected argument " "2"" of type '" "wxDC &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_PrepareDC" "', expected argument " "2"" of type '" "wxDC &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxDC * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->PrepareDC(*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_IsDoubleBuffered(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsDoubleBuffered" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->IsDoubleBuffered();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetUpdateRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxRegion *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetUpdateRegion" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxRegion &_result_ref = (arg1)->GetUpdateRegion();
|
|
result = (wxRegion *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetUpdateClientRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxRect result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetUpdateClientRect" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetUpdateClientRect();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_IsExposed(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 = (int) 1 ;
|
|
int arg5 = (int) 1 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Window_IsExposed",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsExposed" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_IsExposed" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_IsExposed" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_IsExposed" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Window_IsExposed" "', expected argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->IsExposed(arg2,arg3,arg4,arg5);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_IsExposedPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedPoint",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsExposedPoint" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->IsExposed((wxPoint const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_IsExposedRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxRect *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxRect temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_IsExposedRect",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_IsExposedRect" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->IsExposed((wxRect const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
SwigValueWrapper<wxVisualAttributes > result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetDefaultAttributes();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
|
|
SwigValueWrapper<wxVisualAttributes > result;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "variant", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Window_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Window_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
|
|
}
|
|
arg1 = static_cast< wxWindowVariant >(val1);
|
|
}
|
|
{
|
|
if (!wxPyCheckForApp()) SWIG_fail;
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxWindow::GetClassDefaultAttributes(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxColour *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxColour temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "colour", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetBackgroundColour" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetOwnBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxColour *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxColour temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "colour", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetOwnBackgroundColour" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetOwnBackgroundColour((wxColour const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxColour *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxColour temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "colour", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetForegroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetForegroundColour" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetOwnForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxColour *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxColour temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "colour", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnForegroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetOwnForegroundColour" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetOwnForegroundColour((wxColour const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxColour result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBackgroundColour" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetBackgroundColour();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxColour result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetForegroundColour" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetForegroundColour();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_InheritsBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_InheritsBackgroundColour" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->InheritsBackgroundColour();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_UseBgCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_UseBgCol" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->UseBgCol();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetBackgroundStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxBackgroundStyle arg2 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "style", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetBackgroundStyle",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetBackgroundStyle" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetBackgroundStyle" "', expected argument " "2"" of type '" "wxBackgroundStyle""'");
|
|
}
|
|
arg2 = static_cast< wxBackgroundStyle >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SetBackgroundStyle(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetBackgroundStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxBackgroundStyle result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBackgroundStyle" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxBackgroundStyle)((wxWindow const *)arg1)->GetBackgroundStyle();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_HasTransparentBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HasTransparentBackground" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->HasTransparentBackground();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxCursor *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "cursor", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCursor",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetCursor" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_SetCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxCursor * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SetCursor((wxCursor const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxCursor result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetCursor" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetCursor();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxCursor(static_cast< const wxCursor& >(result))), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxFont *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "font", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetFont" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxFont * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SetFont((wxFont const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetOwnFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxFont *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "font", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetOwnFont",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetOwnFont" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetOwnFont" "', expected argument " "2"" of type '" "wxFont const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_SetOwnFont" "', expected argument " "2"" of type '" "wxFont const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxFont * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetOwnFont((wxFont const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxFont result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetFont" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetFont();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxCaret *arg2 = (wxCaret *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "caret", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetCaret",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetCaret" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxCaret, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetCaret" "', expected argument " "2"" of type '" "wxCaret *""'");
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetCaret(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetCaret(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxCaret *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetCaret" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxCaret *)((wxWindow const *)arg1)->GetCaret();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCaret, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetCharHeight" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxWindow const *)arg1)->GetCharHeight();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetCharWidth" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxWindow const *)arg1)->GetCharWidth();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
int *arg3 = (int *) 0 ;
|
|
int *arg4 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
int temp3 ;
|
|
int res3 = SWIG_TMPOBJ ;
|
|
int temp4 ;
|
|
int res4 = SWIG_TMPOBJ ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "string", NULL
|
|
};
|
|
|
|
arg3 = &temp3;
|
|
arg4 = &temp4;
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetTextExtent" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res4)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
int *arg3 = (int *) 0 ;
|
|
int *arg4 = (int *) 0 ;
|
|
int *arg5 = (int *) 0 ;
|
|
int *arg6 = (int *) 0 ;
|
|
wxFont *arg7 = (wxFont *) NULL ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
int temp3 ;
|
|
int res3 = SWIG_TMPOBJ ;
|
|
int temp4 ;
|
|
int res4 = SWIG_TMPOBJ ;
|
|
int temp5 ;
|
|
int res5 = SWIG_TMPOBJ ;
|
|
int temp6 ;
|
|
int res6 = SWIG_TMPOBJ ;
|
|
void *argp7 = 0 ;
|
|
int res7 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "string",(char *) "font", NULL
|
|
};
|
|
|
|
arg3 = &temp3;
|
|
arg4 = &temp4;
|
|
arg5 = &temp5;
|
|
arg6 = &temp6;
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetFullTextExtent" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
if (obj2) {
|
|
res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
|
|
if (!SWIG_IsOK(res7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Window_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont const *""'");
|
|
}
|
|
arg7 = reinterpret_cast< wxFont * >(argp7);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,(wxFont const *)arg7);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res4)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res5)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res6)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_ClientToScreenXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
int *arg3 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int temp2 ;
|
|
int res2 = 0 ;
|
|
int temp3 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ClientToScreenXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ClientToScreenXY" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_int,0))))) {
|
|
int val;
|
|
int ecode = SWIG_AsVal_int(obj1, &val);
|
|
if (!SWIG_IsOK(ecode)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "Window_ClientToScreenXY" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
temp2 = static_cast< int >(val);
|
|
arg2 = &temp2;
|
|
res2 = SWIG_AddTmpMask(ecode);
|
|
}
|
|
if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_int,0))))) {
|
|
int val;
|
|
int ecode = SWIG_AsVal_int(obj2, &val);
|
|
if (!SWIG_IsOK(ecode)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "Window_ClientToScreenXY" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
temp3 = static_cast< int >(val);
|
|
arg3 = &temp3;
|
|
res3 = SWIG_AddTmpMask(ecode);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
((wxWindow const *)arg1)->ClientToScreen(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsTmpObj(res2)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_ScreenToClientXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int *arg2 = (int *) 0 ;
|
|
int *arg3 = (int *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int temp2 ;
|
|
int res2 = 0 ;
|
|
int temp3 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_ScreenToClientXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ScreenToClientXY" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_int,0))))) {
|
|
int val;
|
|
int ecode = SWIG_AsVal_int(obj1, &val);
|
|
if (!SWIG_IsOK(ecode)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "Window_ScreenToClientXY" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
temp2 = static_cast< int >(val);
|
|
arg2 = &temp2;
|
|
res2 = SWIG_AddTmpMask(ecode);
|
|
}
|
|
if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_int,0))))) {
|
|
int val;
|
|
int ecode = SWIG_AsVal_int(obj2, &val);
|
|
if (!SWIG_IsOK(ecode)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "Window_ScreenToClientXY" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
temp3 = static_cast< int >(val);
|
|
arg3 = &temp3;
|
|
res3 = SWIG_AddTmpMask(ecode);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
((wxWindow const *)arg1)->ScreenToClient(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
if (SWIG_IsTmpObj(res2)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_ClientToScreen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ClientToScreen",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ClientToScreen" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->ClientToScreen((wxPoint const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_ScreenToClient(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScreenToClient",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ScreenToClient" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->ScreenToClient((wxPoint const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_HitTestXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
wxHitTest result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_HitTestXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HitTestXY" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_HitTestXY" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_HitTestXY" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxHitTest)((wxWindow const *)arg1)->HitTest(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
wxHitTest result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HitTest" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxHitTest)((wxWindow const *)arg1)->HitTest((wxPoint const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetBorder__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
long arg2 ;
|
|
wxBorder result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
long val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBorder" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_GetBorder" "', expected argument " "2"" of type '" "long""'");
|
|
}
|
|
arg2 = static_cast< long >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxBorder)((wxWindow const *)arg1)->GetBorder(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetBorder__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxBorder result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
|
|
if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetBorder" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxBorder)((wxWindow const *)arg1)->GetBorder();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetBorder(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
|
|
if (!(argc = SWIG_Python_UnpackTuple(args,"Window_GetBorder",0,2,argv))) SWIG_fail;
|
|
--argc;
|
|
if (argc == 1) {
|
|
return _wrap_Window_GetBorder__SWIG_1(self, argc, argv);
|
|
}
|
|
if (argc == 2) {
|
|
return _wrap_Window_GetBorder__SWIG_0(self, argc, argv);
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'Window_GetBorder'");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_UpdateWindowUI(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
long arg2 = (long) wxUPDATE_UI_NONE ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
long val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "flags", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Window_UpdateWindowUI",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_UpdateWindowUI" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_long(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_UpdateWindowUI" "', expected argument " "2"" of type '" "long""'");
|
|
}
|
|
arg2 = static_cast< long >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->UpdateWindowUI(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_PopupMenuXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxMenu *arg2 = (wxMenu *) 0 ;
|
|
int arg3 = (int) -1 ;
|
|
int arg4 = (int) -1 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "menu",(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Window_PopupMenuXY",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PopupMenuXY" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_PopupMenuXY" "', expected argument " "2"" of type '" "wxMenu *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxMenu * >(argp2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_PopupMenuXY" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_PopupMenuXY" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->PopupMenu(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_PopupMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxMenu *arg2 = (wxMenu *) 0 ;
|
|
wxPoint const &arg3_defvalue = wxDefaultPosition ;
|
|
wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
wxPoint temp3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "menu",(char *) "pos", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_PopupMenu",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PopupMenu" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_PopupMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxMenu * >(argp2);
|
|
if (obj2) {
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->PopupMenu(arg2,(wxPoint const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_HasMultiplePages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HasMultiplePages" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->HasMultiplePages();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
long result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetHandle" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (long)wxWindow_GetHandle(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_long(static_cast< long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_AssociateHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
long arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
long val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "handle", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_AssociateHandle",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_AssociateHandle" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_long(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_AssociateHandle" "', expected argument " "2"" of type '" "long""'");
|
|
}
|
|
arg2 = static_cast< long >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxWindow_AssociateHandle(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_DissociateHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_DissociateHandle" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->DissociateHandle();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_HasScrollbar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "orient", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_HasScrollbar",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_HasScrollbar" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_HasScrollbar" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->HasScrollbar(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetScrollbar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
int arg5 ;
|
|
bool arg6 = (bool) true ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
bool val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "orientation",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "refresh", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Window_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetScrollbar" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetScrollbar" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetScrollbar" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_SetScrollbar" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Window_SetScrollbar" "', expected argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_bool(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Window_SetScrollbar" "', expected argument " "6"" of type '" "bool""'");
|
|
}
|
|
arg6 = static_cast< bool >(val6);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetScrollPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
bool arg4 = (bool) true ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
bool val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "orientation",(char *) "pos",(char *) "refresh", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_SetScrollPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetScrollPos" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetScrollPos" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetScrollPos" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_bool(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Window_SetScrollPos" "', expected argument " "4"" of type '" "bool""'");
|
|
}
|
|
arg4 = static_cast< bool >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetScrollPos(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetScrollPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "orientation", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollPos",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScrollPos" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_GetScrollPos" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxWindow const *)arg1)->GetScrollPos(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetScrollThumb(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "orientation", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollThumb",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScrollThumb" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_GetScrollThumb" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxWindow const *)arg1)->GetScrollThumb(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetScrollRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "orientation", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_GetScrollRange",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScrollRange" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_GetScrollRange" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxWindow const *)arg1)->GetScrollRange(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_ScrollWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
wxRect *arg4 = (wxRect *) NULL ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "dx",(char *) "dy",(char *) "rect", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Window_ScrollWindow",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ScrollWindow" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_ScrollWindow" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_ScrollWindow" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxRect, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Window_ScrollWindow" "', expected argument " "4"" of type '" "wxRect const *""'");
|
|
}
|
|
arg4 = reinterpret_cast< wxRect * >(argp4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->ScrollWindow(arg2,arg3,(wxRect const *)arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_ScrollLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "lines", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollLines",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ScrollLines" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_ScrollLines" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->ScrollLines(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_ScrollPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pages", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_ScrollPages",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ScrollPages" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_ScrollPages" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->ScrollPages(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_LineUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_LineUp" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->LineUp();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_LineDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_LineDown" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->LineDown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_PageUp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PageUp" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->PageUp();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_PageDown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_PageDown" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->PageDown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "text", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpText",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetHelpText" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetHelpText((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetHelpTextForId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "text", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetHelpTextForId",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetHelpTextForId" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetHelpTextForId((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetHelpTextAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
wxHelpEvent::Origin arg3 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
void *argp3 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt",(char *) "origin", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Window_GetHelpTextAtPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetHelpTextAtPoint" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxHelpEvent__Origin, 0 | 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Window_GetHelpTextAtPoint" "', expected argument " "3"" of type '" "wxHelpEvent::Origin""'");
|
|
}
|
|
if (!argp3) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Window_GetHelpTextAtPoint" "', expected argument " "3"" of type '" "wxHelpEvent::Origin""'");
|
|
} else {
|
|
wxHelpEvent::Origin * temp = reinterpret_cast< wxHelpEvent::Origin * >(argp3);
|
|
arg3 = *temp;
|
|
if (SWIG_IsNewObj(res3)) delete temp;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetHelpTextAtPoint((wxPoint const &)*arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetHelpText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetHelpText" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxWindow const *)arg1)->GetHelpText();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetToolTipString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "tip", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTipString",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetToolTipString" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetToolTip((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxToolTip *arg2 = (wxToolTip *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "tip", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetToolTip" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxToolTip, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetToolTip" "', expected argument " "2"" of type '" "wxToolTip *""'");
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetToolTip(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxToolTip *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetToolTip" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxToolTip *)((wxWindow const *)arg1)->GetToolTip();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetDropTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxPyDropTarget *arg2 = (wxPyDropTarget *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "dropTarget", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetDropTarget",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetDropTarget" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxPyDropTarget, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetDropTarget" "', expected argument " "2"" of type '" "wxPyDropTarget *""'");
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetDropTarget(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetDropTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxPyDropTarget *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetDropTarget" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxPyDropTarget *)((wxWindow const *)arg1)->GetDropTarget();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyDropTarget, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_DragAcceptFiles(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "accept", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_DragAcceptFiles",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_DragAcceptFiles" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_DragAcceptFiles" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxWindow_DragAcceptFiles(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetConstraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "constraints", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetConstraints",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetConstraints" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetConstraints" "', expected argument " "2"" of type '" "wxLayoutConstraints *""'");
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetConstraints(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetConstraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxLayoutConstraints *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetConstraints" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxLayoutConstraints *)((wxWindow const *)arg1)->GetConstraints();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetAutoLayout(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "autoLayout", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetAutoLayout",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetAutoLayout" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetAutoLayout" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetAutoLayout(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetAutoLayout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetAutoLayout" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->GetAutoLayout();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_Layout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_Layout" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Layout();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSizer *arg2 = (wxSizer *) 0 ;
|
|
bool arg3 = (bool) true ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 = 0 ;
|
|
bool val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetSizer" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxSizer, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetSizer" "', expected argument " "2"" of type '" "wxSizer *""'");
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_bool(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetSizer" "', expected argument " "3"" of type '" "bool""'");
|
|
}
|
|
arg3 = static_cast< bool >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetSizer(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetSizerAndFit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSizer *arg2 = (wxSizer *) 0 ;
|
|
bool arg3 = (bool) true ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 = 0 ;
|
|
bool val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "sizer",(char *) "deleteOld", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Window_SetSizerAndFit",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetSizerAndFit" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxSizer, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetSizerAndFit" "', expected argument " "2"" of type '" "wxSizer *""'");
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_bool(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Window_SetSizerAndFit" "', expected argument " "3"" of type '" "bool""'");
|
|
}
|
|
arg3 = static_cast< bool >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetSizerAndFit(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSizer *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetSizer" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizer *)((wxWindow const *)arg1)->GetSizer();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetContainingSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSizer *arg2 = (wxSizer *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "sizer", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetContainingSizer",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetContainingSizer" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Window_SetContainingSizer" "', expected argument " "2"" of type '" "wxSizer *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxSizer * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetContainingSizer(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_GetContainingSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxSizer *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetContainingSizer" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizer *)((wxWindow const *)arg1)->GetContainingSizer();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_InheritAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_InheritAttributes" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->InheritAttributes();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_ShouldInheritColours(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_ShouldInheritColours" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxWindow const *)arg1)->ShouldInheritColours();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_CanSetTransparent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_CanSetTransparent" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->CanSetTransparent();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_SetTransparent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
byte arg2 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned char val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "alpha", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_SetTransparent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_SetTransparent" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_SetTransparent" "', expected argument " "2"" of type '" "byte""'");
|
|
}
|
|
arg2 = static_cast< byte >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SetTransparent(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Window_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxWindow, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *Window_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_FindWindowById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
long arg1 ;
|
|
wxWindow *arg2 = (wxWindow *) NULL ;
|
|
wxWindow *result = 0 ;
|
|
long val1 ;
|
|
int ecode1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "id",(char *) "parent", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowById",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_long(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FindWindowById" "', expected argument " "1"" of type '" "long""'");
|
|
}
|
|
arg1 = static_cast< long >(val1);
|
|
if (obj1) {
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindWindowById" "', expected argument " "2"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
}
|
|
{
|
|
if (!wxPyCheckForApp()) SWIG_fail;
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)wxFindWindowById(arg1,(wxWindow const *)arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FindWindowByName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxString *arg1 = 0 ;
|
|
wxWindow *arg2 = (wxWindow *) NULL ;
|
|
wxWindow *result = 0 ;
|
|
bool temp1 = false ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "name",(char *) "parent", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByName",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = wxString_in_helper(obj0);
|
|
if (arg1 == NULL) SWIG_fail;
|
|
temp1 = true;
|
|
}
|
|
if (obj1) {
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindWindowByName" "', expected argument " "2"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
}
|
|
{
|
|
if (!wxPyCheckForApp()) SWIG_fail;
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)wxFindWindowByName((wxString const &)*arg1,(wxWindow const *)arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FindWindowByLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxString *arg1 = 0 ;
|
|
wxWindow *arg2 = (wxWindow *) NULL ;
|
|
wxWindow *result = 0 ;
|
|
bool temp1 = false ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "label",(char *) "parent", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FindWindowByLabel",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
{
|
|
arg1 = wxString_in_helper(obj0);
|
|
if (arg1 == NULL) SWIG_fail;
|
|
temp1 = true;
|
|
}
|
|
if (obj1) {
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FindWindowByLabel" "', expected argument " "2"" of type '" "wxWindow const *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
}
|
|
{
|
|
if (!wxPyCheckForApp()) SWIG_fail;
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)wxFindWindowByLabel((wxString const &)*arg1,(wxWindow const *)arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Window_FromHWND(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
unsigned long arg2 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
unsigned long val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "parent",(char *) "_hWnd", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Window_FromHWND",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_FromHWND" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Window_FromHWND" "', expected argument " "2"" of type '" "unsigned long""'");
|
|
}
|
|
arg2 = static_cast< unsigned long >(val2);
|
|
{
|
|
if (!wxPyCheckForApp()) SWIG_fail;
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)wxWindow_FromHWND(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GetTopLevelWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
PyObject *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"GetTopLevelWindows",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)GetTopLevelWindows();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_Validator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxValidator *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_Validator",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxValidator *)new wxValidator();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxValidator, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Validator_Clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxValidator *arg1 = (wxValidator *) 0 ;
|
|
wxValidator *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxValidator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Validator_Clone" "', expected argument " "1"" of type '" "wxValidator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxValidator * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxValidator *)(arg1)->Clone();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Validator_Validate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxValidator *arg1 = (wxValidator *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "parent", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_Validate",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxValidator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Validator_Validate" "', expected argument " "1"" of type '" "wxValidator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxValidator * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Validator_Validate" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Validate(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Validator_TransferToWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxValidator *arg1 = (wxValidator *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxValidator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Validator_TransferToWindow" "', expected argument " "1"" of type '" "wxValidator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxValidator * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->TransferToWindow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Validator_TransferFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxValidator *arg1 = (wxValidator *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxValidator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Validator_TransferFromWindow" "', expected argument " "1"" of type '" "wxValidator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxValidator * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->TransferFromWindow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Validator_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxValidator *arg1 = (wxValidator *) 0 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxValidator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Validator_GetWindow" "', expected argument " "1"" of type '" "wxValidator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxValidator * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)(arg1)->GetWindow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Validator_SetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxValidator *arg1 = (wxValidator *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "window", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Validator_SetWindow",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxValidator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Validator_SetWindow" "', expected argument " "1"" of type '" "wxValidator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxValidator * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Validator_SetWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetWindow(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Validator_IsSilent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
bool result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"Validator_IsSilent",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxValidator::IsSilent();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Validator_SetBellOnError(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) true ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "doIt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Validator_SetBellOnError",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Validator_SetBellOnError" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxValidator::SetBellOnError(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Validator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxValidator, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *Validator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_PyValidator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPyValidator *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_PyValidator",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxPyValidator *)new wxPyValidator();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyValidator, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PyValidator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPyValidator *arg1 = (wxPyValidator *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
PyObject *arg3 = (PyObject *) 0 ;
|
|
int arg4 = (int) 1 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PyValidator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyValidator, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyValidator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyValidator *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPyValidator * >(argp1);
|
|
arg2 = obj1;
|
|
arg3 = obj2;
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyValidator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->_setCallbackInfo(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *PyValidator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxPyValidator, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *PyValidator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN int DefaultValidator_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable DefaultValidator is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *DefaultValidator_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxDefaultValidator), SWIGTYPE_p_wxValidator, 0 );
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_Menu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxString const &arg1_defvalue = wxPyEmptyString ;
|
|
wxString *arg1 = (wxString *) &arg1_defvalue ;
|
|
long arg2 = (long) 0 ;
|
|
wxMenu *result = 0 ;
|
|
bool temp1 = false ;
|
|
long val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "title",(char *) "style", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Menu",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
{
|
|
arg1 = wxString_in_helper(obj0);
|
|
if (arg1 == NULL) SWIG_fail;
|
|
temp1 = true;
|
|
}
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_long(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Menu" "', expected argument " "2"" of type '" "long""'");
|
|
}
|
|
arg2 = static_cast< long >(val2);
|
|
}
|
|
{
|
|
if (!wxPyCheckForApp()) SWIG_fail;
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenu *)new wxMenu((wxString const &)*arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMenu, SWIG_POINTER_NEW | 0 );
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
wxString const &arg3_defvalue = wxPyEmptyString ;
|
|
wxString *arg3 = (wxString *) &arg3_defvalue ;
|
|
wxString const &arg4_defvalue = wxPyEmptyString ;
|
|
wxString *arg4 = (wxString *) &arg4_defvalue ;
|
|
wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool temp3 = false ;
|
|
bool temp4 = false ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:Menu_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Append" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Append" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (obj2) {
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = wxString_in_helper(obj3);
|
|
if (arg4 == NULL) SWIG_fail;
|
|
temp4 = true;
|
|
}
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Menu_Append" "', expected argument " "5"" of type '" "wxItemKind""'");
|
|
}
|
|
arg5 = static_cast< wxItemKind >(val5);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_AppendSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendSeparator" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->AppendSeparator();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_AppendCheckItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
wxString *arg3 = 0 ;
|
|
wxString const &arg4_defvalue = wxPyEmptyString ;
|
|
wxString *arg4 = (wxString *) &arg4_defvalue ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool temp3 = false ;
|
|
bool temp4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendCheckItem" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_AppendCheckItem" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = wxString_in_helper(obj3);
|
|
if (arg4 == NULL) SWIG_fail;
|
|
temp4 = true;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->AppendCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_AppendRadioItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
wxString *arg3 = 0 ;
|
|
wxString const &arg4_defvalue = wxPyEmptyString ;
|
|
wxString *arg4 = (wxString *) &arg4_defvalue ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool temp3 = false ;
|
|
bool temp4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendRadioItem" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_AppendRadioItem" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = wxString_in_helper(obj3);
|
|
if (arg4 == NULL) SWIG_fail;
|
|
temp4 = true;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->AppendRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_AppendMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
wxString *arg3 = 0 ;
|
|
wxMenu *arg4 = (wxMenu *) 0 ;
|
|
wxString const &arg5_defvalue = wxPyEmptyString ;
|
|
wxString *arg5 = (wxString *) &arg5_defvalue ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool temp3 = false ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
bool temp5 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_AppendMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendMenu" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_AppendMenu" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Menu_AppendMenu" "', expected argument " "4"" of type '" "wxMenu *""'");
|
|
}
|
|
arg4 = reinterpret_cast< wxMenu * >(argp4);
|
|
if (obj4) {
|
|
{
|
|
arg5 = wxString_in_helper(obj4);
|
|
if (arg5 == NULL) SWIG_fail;
|
|
temp5 = true;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->Append(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp5)
|
|
delete arg5;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp5)
|
|
delete arg5;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_AppendSubMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxMenu *arg2 = (wxMenu *) 0 ;
|
|
wxString *arg3 = 0 ;
|
|
wxString const &arg4_defvalue = wxPyEmptyString ;
|
|
wxString *arg4 = (wxString *) &arg4_defvalue ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
bool temp3 = false ;
|
|
bool temp4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "submenu",(char *) "text",(char *) "help", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_AppendSubMenu",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendSubMenu" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_AppendSubMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxMenu * >(argp2);
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = wxString_in_helper(obj3);
|
|
if (arg4 == NULL) SWIG_fail;
|
|
temp4 = true;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->AppendSubMenu(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxMenuItem *arg2 = (wxMenuItem *) 0 ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_AppendItem",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_AppendItem" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMenuItem, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_AppendItem" "', expected argument " "2"" of type '" "wxMenuItem *""'");
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->Append(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
size_t arg2 ;
|
|
wxMenuItem *arg3 = (wxMenuItem *) 0 ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos",(char *) "item", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_InsertItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_InsertItem" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_InsertItem" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxMenuItem, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Menu_InsertItem" "', expected argument " "3"" of type '" "wxMenuItem *""'");
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->Insert(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxMenuItem *arg2 = (wxMenuItem *) 0 ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_PrependItem",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_PrependItem" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMenuItem, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_PrependItem" "', expected argument " "2"" of type '" "wxMenuItem *""'");
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->Prepend(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_Break(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Break" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Break();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
size_t arg2 ;
|
|
int arg3 ;
|
|
wxString const &arg4_defvalue = wxPyEmptyString ;
|
|
wxString *arg4 = (wxString *) &arg4_defvalue ;
|
|
wxString const &arg5_defvalue = wxPyEmptyString ;
|
|
wxString *arg5 = (wxString *) &arg5_defvalue ;
|
|
wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
bool temp4 = false ;
|
|
bool temp5 = false ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:Menu_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Insert" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Insert" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Menu_Insert" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
{
|
|
arg4 = wxString_in_helper(obj3);
|
|
if (arg4 == NULL) SWIG_fail;
|
|
temp4 = true;
|
|
}
|
|
}
|
|
if (obj4) {
|
|
{
|
|
arg5 = wxString_in_helper(obj4);
|
|
if (arg5 == NULL) SWIG_fail;
|
|
temp5 = true;
|
|
}
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Menu_Insert" "', expected argument " "6"" of type '" "wxItemKind""'");
|
|
}
|
|
arg6 = static_cast< wxItemKind >(val6);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,arg6);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
{
|
|
if (temp5)
|
|
delete arg5;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
{
|
|
if (temp5)
|
|
delete arg5;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
size_t arg2 ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_InsertSeparator" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->InsertSeparator(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_InsertCheckItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
size_t arg2 ;
|
|
int arg3 ;
|
|
wxString *arg4 = 0 ;
|
|
wxString const &arg5_defvalue = wxPyEmptyString ;
|
|
wxString *arg5 = (wxString *) &arg5_defvalue ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
bool temp4 = false ;
|
|
bool temp5 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_InsertCheckItem" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_InsertCheckItem" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Menu_InsertCheckItem" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
arg4 = wxString_in_helper(obj3);
|
|
if (arg4 == NULL) SWIG_fail;
|
|
temp4 = true;
|
|
}
|
|
if (obj4) {
|
|
{
|
|
arg5 = wxString_in_helper(obj4);
|
|
if (arg5 == NULL) SWIG_fail;
|
|
temp5 = true;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->InsertCheckItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
{
|
|
if (temp5)
|
|
delete arg5;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
{
|
|
if (temp5)
|
|
delete arg5;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_InsertRadioItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
size_t arg2 ;
|
|
int arg3 ;
|
|
wxString *arg4 = 0 ;
|
|
wxString const &arg5_defvalue = wxPyEmptyString ;
|
|
wxString *arg5 = (wxString *) &arg5_defvalue ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
bool temp4 = false ;
|
|
bool temp5 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "help", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_InsertRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_InsertRadioItem" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_InsertRadioItem" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Menu_InsertRadioItem" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
arg4 = wxString_in_helper(obj3);
|
|
if (arg4 == NULL) SWIG_fail;
|
|
temp4 = true;
|
|
}
|
|
if (obj4) {
|
|
{
|
|
arg5 = wxString_in_helper(obj4);
|
|
if (arg5 == NULL) SWIG_fail;
|
|
temp5 = true;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->InsertRadioItem(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
{
|
|
if (temp5)
|
|
delete arg5;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
{
|
|
if (temp5)
|
|
delete arg5;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_InsertMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
size_t arg2 ;
|
|
int arg3 ;
|
|
wxString *arg4 = 0 ;
|
|
wxMenu *arg5 = (wxMenu *) 0 ;
|
|
wxString const &arg6_defvalue = wxPyEmptyString ;
|
|
wxString *arg6 = (wxString *) &arg6_defvalue ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
bool temp4 = false ;
|
|
void *argp5 = 0 ;
|
|
int res5 = 0 ;
|
|
bool temp6 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:Menu_InsertMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_InsertMenu" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_InsertMenu" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Menu_InsertMenu" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
arg4 = wxString_in_helper(obj3);
|
|
if (arg4 == NULL) SWIG_fail;
|
|
temp4 = true;
|
|
}
|
|
res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Menu_InsertMenu" "', expected argument " "5"" of type '" "wxMenu *""'");
|
|
}
|
|
arg5 = reinterpret_cast< wxMenu * >(argp5);
|
|
if (obj5) {
|
|
{
|
|
arg6 = wxString_in_helper(obj5);
|
|
if (arg6 == NULL) SWIG_fail;
|
|
temp6 = true;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4,arg5,(wxString const &)*arg6);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
{
|
|
if (temp6)
|
|
delete arg6;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
{
|
|
if (temp6)
|
|
delete arg6;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_Prepend(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
wxString const &arg3_defvalue = wxPyEmptyString ;
|
|
wxString *arg3 = (wxString *) &arg3_defvalue ;
|
|
wxString const &arg4_defvalue = wxPyEmptyString ;
|
|
wxString *arg4 = (wxString *) &arg4_defvalue ;
|
|
wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool temp3 = false ;
|
|
bool temp4 = false ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id",(char *) "text",(char *) "help",(char *) "kind", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:Menu_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Prepend" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Prepend" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
if (obj2) {
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = wxString_in_helper(obj3);
|
|
if (arg4 == NULL) SWIG_fail;
|
|
temp4 = true;
|
|
}
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Menu_Prepend" "', expected argument " "5"" of type '" "wxItemKind""'");
|
|
}
|
|
arg5 = static_cast< wxItemKind >(val5);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_PrependSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_PrependSeparator" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->PrependSeparator();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_PrependCheckItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
wxString *arg3 = 0 ;
|
|
wxString const &arg4_defvalue = wxPyEmptyString ;
|
|
wxString *arg4 = (wxString *) &arg4_defvalue ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool temp3 = false ;
|
|
bool temp4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependCheckItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_PrependCheckItem" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_PrependCheckItem" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = wxString_in_helper(obj3);
|
|
if (arg4 == NULL) SWIG_fail;
|
|
temp4 = true;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->PrependCheckItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_PrependRadioItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
wxString *arg3 = 0 ;
|
|
wxString const &arg4_defvalue = wxPyEmptyString ;
|
|
wxString *arg4 = (wxString *) &arg4_defvalue ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool temp3 = false ;
|
|
bool temp4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id",(char *) "text",(char *) "help", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Menu_PrependRadioItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_PrependRadioItem" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_PrependRadioItem" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = wxString_in_helper(obj3);
|
|
if (arg4 == NULL) SWIG_fail;
|
|
temp4 = true;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->PrependRadioItem(arg2,(wxString const &)*arg3,(wxString const &)*arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_PrependMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
wxString *arg3 = 0 ;
|
|
wxMenu *arg4 = (wxMenu *) 0 ;
|
|
wxString const &arg5_defvalue = wxPyEmptyString ;
|
|
wxString *arg5 = (wxString *) &arg5_defvalue ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool temp3 = false ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
bool temp5 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id",(char *) "text",(char *) "submenu",(char *) "help", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Menu_PrependMenu",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_PrependMenu" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_PrependMenu" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Menu_PrependMenu" "', expected argument " "4"" of type '" "wxMenu *""'");
|
|
}
|
|
arg4 = reinterpret_cast< wxMenu * >(argp4);
|
|
if (obj4) {
|
|
{
|
|
arg5 = wxString_in_helper(obj4);
|
|
if (arg5 == NULL) SWIG_fail;
|
|
temp5 = true;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->Prepend(arg2,(wxString const &)*arg3,arg4,(wxString const &)*arg5);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp5)
|
|
delete arg5;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp5)
|
|
delete arg5;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Remove" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Remove" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->Remove(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_RemoveItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxMenuItem *arg2 = (wxMenuItem *) 0 ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_RemoveItem",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_RemoveItem" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_RemoveItem" "', expected argument " "2"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxMenuItem * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)(arg1)->Remove(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Delete" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Delete" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Delete(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxMenuItem *arg2 = (wxMenuItem *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_DeleteItem" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_DeleteItem" "', expected argument " "2"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxMenuItem * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Delete(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Destroy" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxMenu_Destroy(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_DestroyId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyId",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_DestroyId" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_DestroyId" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Destroy(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_DestroyItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxMenuItem *arg2 = (wxMenuItem *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_DestroyItem",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_DestroyItem" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_DestroyItem" "', expected argument " "2"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxMenuItem * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Destroy(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_GetMenuItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
size_t result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetMenuItemCount" "', expected argument " "1"" of type '" "wxMenu const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (size_t)((wxMenu const *)arg1)->GetMenuItemCount();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_GetMenuItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetMenuItems" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)wxMenu_GetMenuItems(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItem",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_FindItem" "', expected argument " "1"" of type '" "wxMenu const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxMenu const *)arg1)->FindItem((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_FindItemById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemById",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_FindItemById" "', expected argument " "1"" of type '" "wxMenu const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_FindItemById" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)((wxMenu const *)arg1)->FindItem(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_FindItemByPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
size_t arg2 ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "position", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_FindItemByPosition",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_FindItemByPosition" "', expected argument " "1"" of type '" "wxMenu const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_FindItemByPosition" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)((wxMenu const *)arg1)->FindItemByPosition(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
bool arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id",(char *) "enable", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Enable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Enable" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Enable" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_bool(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Menu_Enable" "', expected argument " "3"" of type '" "bool""'");
|
|
}
|
|
arg3 = static_cast< bool >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Enable(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_IsEnabled" "', expected argument " "1"" of type '" "wxMenu const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_IsEnabled" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMenu const *)arg1)->IsEnabled(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
bool arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id",(char *) "check", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Check" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_Check" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_bool(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Menu_Check" "', expected argument " "3"" of type '" "bool""'");
|
|
}
|
|
arg3 = static_cast< bool >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Check(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_IsChecked" "', expected argument " "1"" of type '" "wxMenu const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_IsChecked" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMenu const *)arg1)->IsChecked(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
wxString *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool temp3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id",(char *) "label", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_SetLabel" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_SetLabel" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetLabel(arg2,(wxString const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetLabel" "', expected argument " "1"" of type '" "wxMenu const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_GetLabel" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxMenu const *)arg1)->GetLabel(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_SetHelpString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
wxString *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool temp3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id",(char *) "helpString", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Menu_SetHelpString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_SetHelpString" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_SetHelpString" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetHelpString(arg2,(wxString const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_GetHelpString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
int arg2 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_GetHelpString",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetHelpString" "', expected argument " "1"" of type '" "wxMenu const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Menu_GetHelpString" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxMenu const *)arg1)->GetHelpString(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_SetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "title", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetTitle",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_SetTitle" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetTitle((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_GetTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetTitle" "', expected argument " "1"" of type '" "wxMenu const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxMenu const *)arg1)->GetTitle();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_SetEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxEvtHandler *arg2 = (wxEvtHandler *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "handler", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetEventHandler",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_SetEventHandler" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_SetEventHandler" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetEventHandler(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_GetEventHandler(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxEvtHandler *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetEventHandler" "', expected argument " "1"" of type '" "wxMenu const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxEvtHandler *)((wxMenu const *)arg1)->GetEventHandler();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_SetInvokingWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "win", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetInvokingWindow",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_SetInvokingWindow" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_SetInvokingWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetInvokingWindow(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_GetInvokingWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetInvokingWindow" "', expected argument " "1"" of type '" "wxMenu const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)((wxMenu const *)arg1)->GetInvokingWindow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
long result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetStyle" "', expected argument " "1"" of type '" "wxMenu const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (long)((wxMenu const *)arg1)->GetStyle();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_long(static_cast< long >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_UpdateUI(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxEvtHandler *arg2 = (wxEvtHandler *) NULL ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "source", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Menu_UpdateUI",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_UpdateUI" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
if (obj1) {
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxEvtHandler, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_UpdateUI" "', expected argument " "2"" of type '" "wxEvtHandler *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxEvtHandler * >(argp2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->UpdateUI(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_GetMenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxMenuBar *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetMenuBar" "', expected argument " "1"" of type '" "wxMenu const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuBar *)((wxMenu const *)arg1)->GetMenuBar();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxMenuBarBase *arg2 = (wxMenuBarBase *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "menubar", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Attach" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenuBarBase, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_Attach" "', expected argument " "2"" of type '" "wxMenuBarBase *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxMenuBarBase * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Attach(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_Detach" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Detach();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_IsAttached(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_IsAttached" "', expected argument " "1"" of type '" "wxMenu const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMenu const *)arg1)->IsAttached();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_SetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxMenu *arg2 = (wxMenu *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "parent", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Menu_SetParent",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_SetParent" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Menu_SetParent" "', expected argument " "2"" of type '" "wxMenu *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxMenu * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetParent(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Menu_GetParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) 0 ;
|
|
wxMenu *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Menu_GetParent" "', expected argument " "1"" of type '" "wxMenu const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenu *)((wxMenu const *)arg1)->GetParent();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Menu_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxMenu, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *Menu_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_MenuBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
long arg1 = (long) 0 ;
|
|
wxMenuBar *result = 0 ;
|
|
long val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "style", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MenuBar",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_long(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_MenuBar" "', expected argument " "1"" of type '" "long""'");
|
|
}
|
|
arg1 = static_cast< long >(val1);
|
|
}
|
|
{
|
|
if (!wxPyCheckForApp()) SWIG_fail;
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuBar *)new wxMenuBar(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMenuBar, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
wxMenu *arg2 = (wxMenu *) 0 ;
|
|
wxString *arg3 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
bool temp3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "menu",(char *) "title", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Append",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Append" "', expected argument " "1"" of type '" "wxMenuBar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuBar_Append" "', expected argument " "2"" of type '" "wxMenu *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxMenu * >(argp2);
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Append(arg2,(wxString const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
size_t arg2 ;
|
|
wxMenu *arg3 = (wxMenu *) 0 ;
|
|
wxString *arg4 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
bool temp4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Insert" "', expected argument " "1"" of type '" "wxMenuBar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_Insert" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MenuBar_Insert" "', expected argument " "3"" of type '" "wxMenu *""'");
|
|
}
|
|
arg3 = reinterpret_cast< wxMenu * >(argp3);
|
|
{
|
|
arg4 = wxString_in_helper(obj3);
|
|
if (arg4 == NULL) SWIG_fail;
|
|
temp4 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Insert(arg2,arg3,(wxString const &)*arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_GetMenuCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
size_t result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_GetMenuCount" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (size_t)((wxMenuBar const *)arg1)->GetMenuCount();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
size_t arg2 ;
|
|
wxMenu *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_GetMenu" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_GetMenu" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenu *)((wxMenuBar const *)arg1)->GetMenu(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
size_t arg2 ;
|
|
wxMenu *arg3 = (wxMenu *) 0 ;
|
|
wxString *arg4 = 0 ;
|
|
wxMenu *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
bool temp4 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos",(char *) "menu",(char *) "title", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:MenuBar_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Replace" "', expected argument " "1"" of type '" "wxMenuBar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_Replace" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MenuBar_Replace" "', expected argument " "3"" of type '" "wxMenu *""'");
|
|
}
|
|
arg3 = reinterpret_cast< wxMenu * >(argp3);
|
|
{
|
|
arg4 = wxString_in_helper(obj3);
|
|
if (arg4 == NULL) SWIG_fail;
|
|
temp4 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenu *)(arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
size_t arg2 ;
|
|
wxMenu *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Remove" "', expected argument " "1"" of type '" "wxMenuBar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_Remove" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenu *)(arg1)->Remove(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_EnableTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
size_t arg2 ;
|
|
bool arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
bool val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos",(char *) "enable", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_EnableTop",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_EnableTop" "', expected argument " "1"" of type '" "wxMenuBar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_EnableTop" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
ecode3 = SWIG_AsVal_bool(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MenuBar_EnableTop" "', expected argument " "3"" of type '" "bool""'");
|
|
}
|
|
arg3 = static_cast< bool >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->EnableTop(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_IsEnabledTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
size_t arg2 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabledTop",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_IsEnabledTop" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_IsEnabledTop" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMenuBar const *)arg1)->IsEnabledTop(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_SetLabelTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
size_t arg2 ;
|
|
wxString *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
bool temp3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos",(char *) "label", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabelTop",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_SetLabelTop" "', expected argument " "1"" of type '" "wxMenuBar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_SetLabelTop" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetLabelTop(arg2,(wxString const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_GetLabelTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
size_t arg2 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabelTop",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_GetLabelTop" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_GetLabelTop" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxMenuBar const *)arg1)->GetLabelTop(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_FindMenuItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
wxString *arg3 = 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
bool temp3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "menu",(char *) "item", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_FindMenuItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_FindMenuItem" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxMenuBar const *)arg1)->FindMenuItem((wxString const &)*arg2,(wxString const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_FindItemById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
int arg2 ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindItemById",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_FindItemById" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_FindItemById" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)((wxMenuBar const *)arg1)->FindItem(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_FindMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "title", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_FindMenu",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_FindMenu" "', expected argument " "1"" of type '" "wxMenuBar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->FindMenu((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
int arg2 ;
|
|
bool arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id",(char *) "enable", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Enable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Enable" "', expected argument " "1"" of type '" "wxMenuBar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_Enable" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_bool(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MenuBar_Enable" "', expected argument " "3"" of type '" "bool""'");
|
|
}
|
|
arg3 = static_cast< bool >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Enable(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
int arg2 ;
|
|
bool arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id",(char *) "check", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Check" "', expected argument " "1"" of type '" "wxMenuBar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_Check" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_bool(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MenuBar_Check" "', expected argument " "3"" of type '" "bool""'");
|
|
}
|
|
arg3 = static_cast< bool >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Check(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
int arg2 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_IsChecked" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_IsChecked" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMenuBar const *)arg1)->IsChecked(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
int arg2 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_IsEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_IsEnabled" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_IsEnabled" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMenuBar const *)arg1)->IsEnabled(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
int arg2 ;
|
|
wxString *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool temp3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id",(char *) "label", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetLabel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_SetLabel" "', expected argument " "1"" of type '" "wxMenuBar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_SetLabel" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetLabel(arg2,(wxString const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
int arg2 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_GetLabel" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_GetLabel" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxMenuBar const *)arg1)->GetLabel(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_SetHelpString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
int arg2 ;
|
|
wxString *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool temp3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id",(char *) "helpString", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:MenuBar_SetHelpString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_SetHelpString" "', expected argument " "1"" of type '" "wxMenuBar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_SetHelpString" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetHelpString(arg2,(wxString const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_GetHelpString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
int arg2 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_GetHelpString",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_GetHelpString" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuBar_GetHelpString" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxMenuBar const *)arg1)->GetHelpString(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_GetFrame(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
wxFrame *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_GetFrame" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxFrame *)((wxMenuBar const *)arg1)->GetFrame();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_IsAttached(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_IsAttached" "', expected argument " "1"" of type '" "wxMenuBar const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMenuBar const *)arg1)->IsAttached();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
wxFrame *arg2 = (wxFrame *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "frame", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuBar_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Attach" "', expected argument " "1"" of type '" "wxMenuBar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFrame, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuBar_Attach" "', expected argument " "2"" of type '" "wxFrame *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxFrame * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Attach(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_Detach" "', expected argument " "1"" of type '" "wxMenuBar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Detach();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_UpdateMenus(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuBar *arg1 = (wxMenuBar *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuBar, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuBar_UpdateMenus" "', expected argument " "1"" of type '" "wxMenuBar *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuBar * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->UpdateMenus();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_SetAutoWindowMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
bool arg1 ;
|
|
bool val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "enable", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuBar_SetAutoWindowMenu",kwnames,&obj0)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_bool(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "MenuBar_SetAutoWindowMenu" "', expected argument " "1"" of type '" "bool""'");
|
|
}
|
|
arg1 = static_cast< bool >(val1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxMenuBar::SetAutoWindowMenu(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuBar_GetAutoWindowMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
bool result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"MenuBar_GetAutoWindowMenu",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxMenuBar::GetAutoWindowMenu();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *MenuBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxMenuBar, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *MenuBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_MenuItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenu *arg1 = (wxMenu *) NULL ;
|
|
int arg2 = (int) wxID_SEPARATOR ;
|
|
wxString const &arg3_defvalue = wxPyEmptyString ;
|
|
wxString *arg3 = (wxString *) &arg3_defvalue ;
|
|
wxString const &arg4_defvalue = wxPyEmptyString ;
|
|
wxString *arg4 = (wxString *) &arg4_defvalue ;
|
|
wxItemKind arg5 = (wxItemKind) wxITEM_NORMAL ;
|
|
wxMenu *arg6 = (wxMenu *) NULL ;
|
|
wxMenuItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool temp3 = false ;
|
|
bool temp4 = false ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
void *argp6 = 0 ;
|
|
int res6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "parentMenu",(char *) "id",(char *) "text",(char *) "help",(char *) "kind",(char *) "subMenu", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOOOO:new_MenuItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
if (obj0) {
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MenuItem" "', expected argument " "1"" of type '" "wxMenu *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenu * >(argp1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MenuItem" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = wxString_in_helper(obj3);
|
|
if (arg4 == NULL) SWIG_fail;
|
|
temp4 = true;
|
|
}
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_MenuItem" "', expected argument " "5"" of type '" "wxItemKind""'");
|
|
}
|
|
arg5 = static_cast< wxItemKind >(val5);
|
|
}
|
|
if (obj5) {
|
|
res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_MenuItem" "', expected argument " "6"" of type '" "wxMenu *""'");
|
|
}
|
|
arg6 = reinterpret_cast< wxMenu * >(argp6);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenuItem *)new wxMenuItem(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMenuItem, SWIG_POINTER_NEW | 0 );
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
{
|
|
if (temp4)
|
|
delete arg4;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_MenuItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MenuItem" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_GetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxMenu *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetMenu" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenu *)((wxMenuItem const *)arg1)->GetMenu();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_SetMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxMenu *arg2 = (wxMenu *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "menu", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMenu",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetMenu" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxMenu * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetMenu(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "id", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetId" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_SetId" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetId(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetId" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxMenuItem const *)arg1)->GetId();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_IsSeparator" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMenuItem const *)arg1)->IsSeparator();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "str", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetText" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetText((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetLabel" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxMenuItem const *)arg1)->GetLabel();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxString *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetText" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetText();
|
|
result = (wxString *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_GetLabelFromText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxString *arg1 = 0 ;
|
|
wxString result;
|
|
bool temp1 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "text", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MenuItem_GetLabelFromText",kwnames,&obj0)) SWIG_fail;
|
|
{
|
|
arg1 = wxString_in_helper(obj0);
|
|
if (arg1 == NULL) SWIG_fail;
|
|
temp1 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxMenuItem::GetLabelFromText((wxString const &)*arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp1)
|
|
delete arg1;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxItemKind result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetKind" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxItemKind)((wxMenuItem const *)arg1)->GetKind();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_SetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxItemKind arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "kind", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetKind",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetKind" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_SetKind" "', expected argument " "2"" of type '" "wxItemKind""'");
|
|
}
|
|
arg2 = static_cast< wxItemKind >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetKind(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_SetCheckable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "checkable", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetCheckable",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetCheckable" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_SetCheckable" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetCheckable(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_IsCheckable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_IsCheckable" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMenuItem const *)arg1)->IsCheckable();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_IsSubMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_IsSubMenu" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMenuItem const *)arg1)->IsSubMenu();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_SetSubMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxMenu *arg2 = (wxMenu *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "menu", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetSubMenu",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetSubMenu" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxMenu, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetSubMenu" "', expected argument " "2"" of type '" "wxMenu *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxMenu * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetSubMenu(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_GetSubMenu(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxMenu *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetSubMenu" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxMenu *)((wxMenuItem const *)arg1)->GetSubMenu();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
bool arg2 = (bool) true ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "enable", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_Enable" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_Enable" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Enable(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_IsEnabled" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMenuItem const *)arg1)->IsEnabled();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
bool arg2 = (bool) true ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "check", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_Check",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_Check" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_Check" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Check(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_IsChecked" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxMenuItem const *)arg1)->IsChecked();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_Toggle" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Toggle();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_SetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "str", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetHelp" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetHelp((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxString *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetHelp" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxString const &_result_ref = ((wxMenuItem const *)arg1)->GetHelp();
|
|
result = (wxString *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_GetAccel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxAcceleratorEntry *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetAccel" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxAcceleratorEntry *)((wxMenuItem const *)arg1)->GetAccel();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_SetAccel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxAcceleratorEntry *arg2 = (wxAcceleratorEntry *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "accel", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetAccel",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetAccel" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxAcceleratorEntry, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetAccel" "', expected argument " "2"" of type '" "wxAcceleratorEntry *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxAcceleratorEntry * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetAccel(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxBitmap *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "bitmap", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetBitmap" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MenuItem_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxBitmap * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetBitmap((wxBitmap const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxBitmap *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetBitmap" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxBitmap const &_result_ref = (arg1)->GetBitmap();
|
|
result = (wxBitmap *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
wxBitmap* resultptr = new wxBitmap(*result);
|
|
resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxFont *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "font", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetFont" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MenuItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxFont * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxMenuItem_SetFont(arg1,(wxFont const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxFont result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetFont" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxMenuItem_GetFont(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxColour *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxColour temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "colText", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetTextColour" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxMenuItem_SetTextColour(arg1,(wxColour const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxColour result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetTextColour" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxMenuItem_GetTextColour(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxColour *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxColour temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "colBack", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxMenuItem_SetBackgroundColour(arg1,(wxColour const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxColour result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxMenuItem_GetBackgroundColour(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_SetBitmaps(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxBitmap *arg2 = 0 ;
|
|
wxBitmap const &arg3_defvalue = wxNullBitmap ;
|
|
wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "bmpChecked",(char *) "bmpUnchecked", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:MenuItem_SetBitmaps",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetBitmaps" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetBitmaps" "', expected argument " "2"" of type '" "wxBitmap const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MenuItem_SetBitmaps" "', expected argument " "2"" of type '" "wxBitmap const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxBitmap * >(argp2);
|
|
if (obj2) {
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "MenuItem_SetBitmaps" "', expected argument " "3"" of type '" "wxBitmap const &""'");
|
|
}
|
|
if (!argp3) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MenuItem_SetBitmaps" "', expected argument " "3"" of type '" "wxBitmap const &""'");
|
|
}
|
|
arg3 = reinterpret_cast< wxBitmap * >(argp3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxMenuItem_SetBitmaps(arg1,(wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxBitmap *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "bmpDisabled", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MenuItem_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MenuItem_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxBitmap * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxMenuItem_SetDisabledBitmap(arg1,(wxBitmap const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
wxBitmap *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxMenuItem const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxBitmap const &_result_ref = wxMenuItem_GetDisabledBitmap((wxMenuItem const *)arg1);
|
|
result = (wxBitmap *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
wxBitmap* resultptr = new wxBitmap(*result);
|
|
resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_SetMarginWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "nWidth", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MenuItem_SetMarginWidth",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetMarginWidth" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_SetMarginWidth" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxMenuItem_SetMarginWidth(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_GetMarginWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_GetMarginWidth" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)wxMenuItem_GetMarginWidth(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_GetDefaultMarginWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"MenuItem_GetDefaultMarginWidth",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)wxMenuItem_GetDefaultMarginWidth();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_IsOwnerDrawn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_IsOwnerDrawn" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxMenuItem_IsOwnerDrawn(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_SetOwnerDrawn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
bool arg2 = (bool) true ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "ownerDrawn", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:MenuItem_SetOwnerDrawn",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_SetOwnerDrawn" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MenuItem_SetOwnerDrawn" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxMenuItem_SetOwnerDrawn(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_MenuItem_ResetOwnerDrawn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxMenuItem *arg1 = (wxMenuItem *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMenuItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MenuItem_ResetOwnerDrawn" "', expected argument " "1"" of type '" "wxMenuItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxMenuItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxMenuItem_ResetOwnerDrawn(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *MenuItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxMenuItem, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *MenuItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN int ControlNameStr_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable ControlNameStr is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *ControlNameStr_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
{
|
|
#if wxUSE_UNICODE
|
|
pyobj = PyUnicode_FromWideChar((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
|
|
#else
|
|
pyobj = PyString_FromStringAndSize((&wxPyControlNameStr)->c_str(), (&wxPyControlNameStr)->Len());
|
|
#endif
|
|
}
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_Control(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 = (int) -1 ;
|
|
wxPoint const &arg3_defvalue = wxDefaultPosition ;
|
|
wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
|
|
wxSize const &arg4_defvalue = wxDefaultSize ;
|
|
wxSize *arg4 = (wxSize *) &arg4_defvalue ;
|
|
long arg5 = (long) 0 ;
|
|
wxValidator const &arg6_defvalue = wxDefaultValidator ;
|
|
wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
|
|
wxString const &arg7_defvalue = wxPyControlNameStr ;
|
|
wxString *arg7 = (wxString *) &arg7_defvalue ;
|
|
wxControl *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
wxPoint temp3 ;
|
|
wxSize temp4 ;
|
|
long val5 ;
|
|
int ecode5 = 0 ;
|
|
void *argp6 = 0 ;
|
|
int res6 = 0 ;
|
|
bool temp7 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_Control",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Control" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Control" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
|
|
}
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = &temp4;
|
|
if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
|
|
}
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_long(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Control" "', expected argument " "5"" of type '" "long""'");
|
|
}
|
|
arg5 = static_cast< long >(val5);
|
|
}
|
|
if (obj5) {
|
|
res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
|
|
if (!SWIG_IsOK(res6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_Control" "', expected argument " "6"" of type '" "wxValidator const &""'");
|
|
}
|
|
if (!argp6) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Control" "', expected argument " "6"" of type '" "wxValidator const &""'");
|
|
}
|
|
arg6 = reinterpret_cast< wxValidator * >(argp6);
|
|
}
|
|
if (obj6) {
|
|
{
|
|
arg7 = wxString_in_helper(obj6);
|
|
if (arg7 == NULL) SWIG_fail;
|
|
temp7 = true;
|
|
}
|
|
}
|
|
{
|
|
if (!wxPyCheckForApp()) SWIG_fail;
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxControl *)new wxControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxControl, SWIG_POINTER_NEW | 0 );
|
|
{
|
|
if (temp7)
|
|
delete arg7;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp7)
|
|
delete arg7;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_PreControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxControl *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_PreControl",0,0,0)) SWIG_fail;
|
|
{
|
|
if (!wxPyCheckForApp()) SWIG_fail;
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxControl *)new wxControl();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxControl, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Control_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxControl *arg1 = (wxControl *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
int arg3 = (int) -1 ;
|
|
wxPoint const &arg4_defvalue = wxDefaultPosition ;
|
|
wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
|
|
wxSize const &arg5_defvalue = wxDefaultSize ;
|
|
wxSize *arg5 = (wxSize *) &arg5_defvalue ;
|
|
long arg6 = (long) 0 ;
|
|
wxValidator const &arg7_defvalue = wxDefaultValidator ;
|
|
wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
|
|
wxString const &arg8_defvalue = wxPyControlNameStr ;
|
|
wxString *arg8 = (wxString *) &arg8_defvalue ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
wxPoint temp4 ;
|
|
wxSize temp5 ;
|
|
long val6 ;
|
|
int ecode6 = 0 ;
|
|
void *argp7 = 0 ;
|
|
int res7 = 0 ;
|
|
bool temp8 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
PyObject * obj7 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:Control_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxControl, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Control_Create" "', expected argument " "1"" of type '" "wxControl *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxControl * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Control_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Control_Create" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = &temp4;
|
|
if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
|
|
}
|
|
}
|
|
if (obj4) {
|
|
{
|
|
arg5 = &temp5;
|
|
if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
|
|
}
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_long(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Control_Create" "', expected argument " "6"" of type '" "long""'");
|
|
}
|
|
arg6 = static_cast< long >(val6);
|
|
}
|
|
if (obj6) {
|
|
res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
|
|
if (!SWIG_IsOK(res7)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "Control_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
|
|
}
|
|
if (!argp7) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Control_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
|
|
}
|
|
arg7 = reinterpret_cast< wxValidator * >(argp7);
|
|
}
|
|
if (obj7) {
|
|
{
|
|
arg8 = wxString_in_helper(obj7);
|
|
if (arg8 == NULL) SWIG_fail;
|
|
temp8 = true;
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (temp8)
|
|
delete arg8;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp8)
|
|
delete arg8;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Control_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxControl *arg1 = (wxControl *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxControl, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Control_GetAlignment" "', expected argument " "1"" of type '" "wxControl const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxControl * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxControl const *)arg1)->GetAlignment();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Control_GetLabelText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxControl *arg1 = (wxControl *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxControl, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Control_GetLabelText" "', expected argument " "1"" of type '" "wxControl const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxControl * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxControl const *)arg1)->GetLabelText();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Control_Command(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxControl *arg1 = (wxControl *) 0 ;
|
|
wxCommandEvent *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "event", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Control_Command",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxControl, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Control_Command" "', expected argument " "1"" of type '" "wxControl *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxControl * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCommandEvent, 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Control_Command" "', expected argument " "2"" of type '" "wxCommandEvent &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Control_Command" "', expected argument " "2"" of type '" "wxCommandEvent &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxCommandEvent * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Command(*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Control_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
|
|
SwigValueWrapper<wxVisualAttributes > result;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "variant", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Control_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Control_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
|
|
}
|
|
arg1 = static_cast< wxWindowVariant >(val1);
|
|
}
|
|
{
|
|
if (!wxPyCheckForApp()) SWIG_fail;
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxControl::GetClassDefaultAttributes(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Control_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxControl, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *Control_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_ItemContainer_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
PyObject *arg3 = (PyObject *) NULL ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item",(char *) "clientData", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ItemContainer_Append",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_Append" "', expected argument " "1"" of type '" "wxItemContainer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
if (obj2) {
|
|
arg3 = obj2;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)wxItemContainer_Append(arg1,(wxString const &)*arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ItemContainer_AppendItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
|
wxArrayString *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "strings", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_AppendItems",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_AppendItems" "', expected argument " "1"" of type '" "wxItemContainer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
|
{
|
|
if (! PySequence_Check(obj1)) {
|
|
PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
|
|
SWIG_fail;
|
|
}
|
|
arg2 = new wxArrayString;
|
|
temp2 = true;
|
|
int i, len=PySequence_Length(obj1);
|
|
for (i=0; i<len; i++) {
|
|
PyObject* item = PySequence_GetItem(obj1, i);
|
|
wxString* s = wxString_in_helper(item);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
arg2->Add(*s);
|
|
delete s;
|
|
Py_DECREF(item);
|
|
}
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Append((wxArrayString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp2) delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2) delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ItemContainer_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
int arg3 ;
|
|
PyObject *arg4 = (PyObject *) NULL ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ItemContainer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_Insert" "', expected argument " "1"" of type '" "wxItemContainer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ItemContainer_Insert" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
if (obj3) {
|
|
arg4 = obj3;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)wxItemContainer_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ItemContainer_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_Clear" "', expected argument " "1"" of type '" "wxItemContainer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Clear();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ItemContainer_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "n", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_Delete" "', expected argument " "1"" of type '" "wxItemContainer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_Delete" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Delete(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ItemContainer_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
|
int arg2 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "n", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_GetClientData" "', expected argument " "1"" of type '" "wxItemContainer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_GetClientData" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)wxItemContainer_GetClientData(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ItemContainer_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
|
int arg2 ;
|
|
PyObject *arg3 = (PyObject *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "n",(char *) "clientData", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_SetClientData" "', expected argument " "1"" of type '" "wxItemContainer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_SetClientData" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
arg3 = obj2;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxItemContainer_SetClientData(arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ItemContainer_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_GetCount" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxItemContainer const *)arg1)->GetCount();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ItemContainer_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_IsEmpty" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxItemContainer const *)arg1)->IsEmpty();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ItemContainer_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
|
int arg2 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "n", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_GetString" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_GetString" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxItemContainer const *)arg1)->GetString(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ItemContainer_GetStrings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
|
wxArrayString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_GetStrings" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxItemContainer const *)arg1)->GetStrings();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxArrayString2PyList_helper(result);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ItemContainer_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
|
int arg2 ;
|
|
wxString *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
bool temp3 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "n",(char *) "s", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ItemContainer_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_SetString" "', expected argument " "1"" of type '" "wxItemContainer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_SetString" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
arg3 = wxString_in_helper(obj2);
|
|
if (arg3 == NULL) SWIG_fail;
|
|
temp3 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetString(arg2,(wxString const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp3)
|
|
delete arg3;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ItemContainer_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "s", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_FindString" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxItemContainer const *)arg1)->FindString((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ItemContainer_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "n", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_SetSelection" "', expected argument " "1"" of type '" "wxItemContainer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_SetSelection" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetSelection(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ItemContainer_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_GetSelection" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxItemContainer const *)arg1)->GetSelection();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ItemContainer_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
|
wxString *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool temp2 = false ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "s", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_SetStringSelection" "', expected argument " "1"" of type '" "wxItemContainer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
|
{
|
|
arg2 = wxString_in_helper(obj1);
|
|
if (arg2 == NULL) SWIG_fail;
|
|
temp2 = true;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
{
|
|
if (temp2)
|
|
delete arg2;
|
|
}
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ItemContainer_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
|
wxString result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_GetStringSelection" "', expected argument " "1"" of type '" "wxItemContainer const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxItemContainer const *)arg1)->GetStringSelection();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
#if wxUSE_UNICODE
|
|
resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
|
|
#else
|
|
resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
|
|
#endif
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_ItemContainer_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "n", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ItemContainer_Select",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxItemContainer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ItemContainer_Select" "', expected argument " "1"" of type '" "wxItemContainer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ItemContainer_Select" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Select(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *ItemContainer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxItemContainer, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *ControlWithItems_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxControlWithItems, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_SizerFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
wxSizerFlags *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "proportion", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_SizerFlags",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SizerFlags" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizerFlags *)new wxSizerFlags(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerFlags, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_SizerFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerFlags, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SizerFlags" "', expected argument " "1"" of type '" "wxSizerFlags *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_Proportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
int arg2 ;
|
|
wxSizerFlags *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "proportion", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerFlags_Proportion",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_Proportion" "', expected argument " "1"" of type '" "wxSizerFlags *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerFlags_Proportion" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxSizerFlags &_result_ref = (arg1)->Proportion(arg2);
|
|
result = (wxSizerFlags *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = obj0; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_Align(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
int arg2 ;
|
|
wxSizerFlags *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "alignment", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerFlags_Align",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_Align" "', expected argument " "1"" of type '" "wxSizerFlags *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerFlags_Align" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxSizerFlags &_result_ref = (arg1)->Align(arg2);
|
|
result = (wxSizerFlags *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = obj0; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
wxSizerFlags *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_Expand" "', expected argument " "1"" of type '" "wxSizerFlags *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxSizerFlags &_result_ref = (arg1)->Expand();
|
|
result = (wxSizerFlags *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = swig_obj[0]; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_Centre(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
wxSizerFlags *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_Centre" "', expected argument " "1"" of type '" "wxSizerFlags *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxSizerFlags &_result_ref = (arg1)->Centre();
|
|
result = (wxSizerFlags *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = swig_obj[0]; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_Center(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
wxSizerFlags *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_Center" "', expected argument " "1"" of type '" "wxSizerFlags *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxSizerFlags &_result_ref = (arg1)->Center();
|
|
result = (wxSizerFlags *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = swig_obj[0]; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_Left(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
wxSizerFlags *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_Left" "', expected argument " "1"" of type '" "wxSizerFlags *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxSizerFlags &_result_ref = (arg1)->Left();
|
|
result = (wxSizerFlags *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = swig_obj[0]; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_Right(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
wxSizerFlags *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_Right" "', expected argument " "1"" of type '" "wxSizerFlags *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxSizerFlags &_result_ref = (arg1)->Right();
|
|
result = (wxSizerFlags *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = swig_obj[0]; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_Top(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
wxSizerFlags *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_Top" "', expected argument " "1"" of type '" "wxSizerFlags *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxSizerFlags &_result_ref = (arg1)->Top();
|
|
result = (wxSizerFlags *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = swig_obj[0]; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_Bottom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
wxSizerFlags *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_Bottom" "', expected argument " "1"" of type '" "wxSizerFlags *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxSizerFlags &_result_ref = (arg1)->Bottom();
|
|
result = (wxSizerFlags *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = swig_obj[0]; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_Shaped(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
wxSizerFlags *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_Shaped" "', expected argument " "1"" of type '" "wxSizerFlags *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxSizerFlags &_result_ref = (arg1)->Shaped();
|
|
result = (wxSizerFlags *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = swig_obj[0]; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_FixedMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
wxSizerFlags *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_FixedMinSize" "', expected argument " "1"" of type '" "wxSizerFlags *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxSizerFlags &_result_ref = (arg1)->FixedMinSize();
|
|
result = (wxSizerFlags *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = swig_obj[0]; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_Border(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
int arg2 = (int) wxALL ;
|
|
int arg3 = (int) -1 ;
|
|
wxSizerFlags *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "direction",(char *) "borderInPixels", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:SizerFlags_Border",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_Border" "', expected argument " "1"" of type '" "wxSizerFlags *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerFlags_Border" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SizerFlags_Border" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxSizerFlags &_result_ref = wxSizerFlags_Border(arg1,arg2,arg3);
|
|
result = (wxSizerFlags *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = obj0; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_DoubleBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
int arg2 = (int) wxALL ;
|
|
wxSizerFlags *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "direction", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SizerFlags_DoubleBorder",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_DoubleBorder" "', expected argument " "1"" of type '" "wxSizerFlags *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerFlags_DoubleBorder" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxSizerFlags &_result_ref = (arg1)->DoubleBorder(arg2);
|
|
result = (wxSizerFlags *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = obj0; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_TripleBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
int arg2 = (int) wxALL ;
|
|
wxSizerFlags *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "direction", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:SizerFlags_TripleBorder",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_TripleBorder" "', expected argument " "1"" of type '" "wxSizerFlags *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerFlags_TripleBorder" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxSizerFlags &_result_ref = (arg1)->TripleBorder(arg2);
|
|
result = (wxSizerFlags *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = obj0; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_HorzBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
wxSizerFlags *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_HorzBorder" "', expected argument " "1"" of type '" "wxSizerFlags *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxSizerFlags &_result_ref = (arg1)->HorzBorder();
|
|
result = (wxSizerFlags *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = swig_obj[0]; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_DoubleHorzBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
wxSizerFlags *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_DoubleHorzBorder" "', expected argument " "1"" of type '" "wxSizerFlags *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxSizerFlags &_result_ref = (arg1)->DoubleHorzBorder();
|
|
result = (wxSizerFlags *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = swig_obj[0]; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_GetDefaultBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
int result;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"SizerFlags_GetDefaultBorder",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)wxSizerFlags::GetDefaultBorder();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_GetProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_GetProportion" "', expected argument " "1"" of type '" "wxSizerFlags const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxSizerFlags const *)arg1)->GetProportion();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_GetFlags" "', expected argument " "1"" of type '" "wxSizerFlags const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxSizerFlags const *)arg1)->GetFlags();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerFlags_GetBorderInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerFlags *arg1 = (wxSizerFlags *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerFlags, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerFlags_GetBorderInPixels" "', expected argument " "1"" of type '" "wxSizerFlags const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerFlags * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxSizerFlags const *)arg1)->GetBorderInPixels();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *SizerFlags_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxSizerFlags, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *SizerFlags_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_SizerItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_SizerItem",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizerItem *)new wxSizerItem();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_SizerItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SizerItem" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_SizerItemWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
PyObject *arg5 = (PyObject *) NULL ;
|
|
wxSizerItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "window",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SizerItemWindow" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SizerItemWindow" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SizerItemWindow" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SizerItemWindow" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
if (obj4) {
|
|
arg5 = obj4;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_SizerItemSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
int arg5 ;
|
|
PyObject *arg6 = (PyObject *) NULL ;
|
|
wxSizerItem *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "width",(char *) "height",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_SizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SizerItemSpacer" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SizerItemSpacer" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SizerItemSpacer" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SizerItemSpacer" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SizerItemSpacer" "', expected argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
if (obj5) {
|
|
arg6 = obj5;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_SizerItemSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
PyObject *arg5 = (PyObject *) NULL ;
|
|
wxSizerItem *result = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "sizer",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:new_SizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxSizer, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SizerItemSizer" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SizerItemSizer" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SizerItemSizer" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_SizerItemSizer" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
if (obj4) {
|
|
arg5 = obj4;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizerItem *)new_wxSizerItem(arg1,arg2,arg3,arg4,arg5);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_DeleteWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_DeleteWindows" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->DeleteWindows();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_DetachSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_DetachSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->DetachSizer();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSize" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetSize();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_CalcMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_CalcMin" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->CalcMin();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_SetDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
wxSize *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
wxSize temp3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos",(char *) "size", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetDimension",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetDimension" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetDimension((wxPoint const &)*arg2,(wxSize const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_GetMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetMinSize" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetMinSize();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_GetMinSizeWithBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetMinSizeWithBorder" "', expected argument " "1"" of type '" "wxSizerItem const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxSizerItem const *)arg1)->GetMinSizeWithBorder();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_SetInitSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetInitSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetInitSize" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_SetInitSize" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SizerItem_SetInitSize" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetInitSize(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_SetRatioWH(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "width",(char *) "height", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SizerItem_SetRatioWH",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetRatioWH" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_SetRatioWH" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SizerItem_SetRatioWH" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetRatio(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_SetRatioSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "size", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatioSize",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetRatioSize" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetRatio((wxSize const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_SetRatio(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
float arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
float val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "ratio", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetRatio",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetRatio" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
ecode2 = SWIG_AsVal_float(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_SetRatio" "', expected argument " "2"" of type '" "float""'");
|
|
}
|
|
arg2 = static_cast< float >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetRatio(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_GetRatio(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
float result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetRatio" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (float)(arg1)->GetRatio();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_float(static_cast< float >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
wxRect result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetRect" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetRect();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_IsWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_IsWindow" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->IsWindow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_IsSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_IsSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->IsSizer();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_IsSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_IsSpacer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->IsSpacer();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_SetProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "proportion", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetProportion",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetProportion" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_SetProportion" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetProportion(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_GetProportion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetProportion" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->GetProportion();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_SetFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "flag", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetFlag",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetFlag" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_SetFlag" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetFlag(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_GetFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetFlag" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->GetFlag();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_SetBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "border", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetBorder",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetBorder" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_SetBorder" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetBorder(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_GetBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetBorder" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->GetBorder();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_GetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetWindow" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)(arg1)->GetWindow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_SetWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "window", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetWindow",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetWindow" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizerItem_SetWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetWindow(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_GetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
wxSizer *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizer *)(arg1)->GetSizer();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_SetSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
wxSizer *arg2 = (wxSizer *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "sizer", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSizer",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetSizer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxSizer, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SizerItem_SetSizer" "', expected argument " "2"" of type '" "wxSizer *""'");
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetSizer(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_GetSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetSpacer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetSpacer();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_SetSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "size", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetSpacer",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetSpacer" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetSpacer((wxSize const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "show", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_Show",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_Show" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SizerItem_Show" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Show(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_IsShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_IsShown" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->IsShown();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetPosition" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetPosition();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_GetUserData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_GetUserData" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)wxSizerItem_GetUserData(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_SizerItem_SetUserData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizerItem *arg1 = (wxSizerItem *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "userData", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SizerItem_SetUserData",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SizerItem_SetUserData" "', expected argument " "1"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizerItem * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxSizerItem_SetUserData(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *SizerItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxSizerItem, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *SizerItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_Sizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Sizer" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer__setOORInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "_self", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer__setOORInfo",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer__setOORInfo" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxSizer__setOORInfo(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
int arg4 = (int) 0 ;
|
|
int arg5 = (int) 0 ;
|
|
PyObject *arg6 = (PyObject *) NULL ;
|
|
wxSizerItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Add" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
arg2 = obj1;
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Sizer_Add" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer_Add" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Sizer_Add" "', expected argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
arg6 = obj5;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizerItem *)wxSizer_Add(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_AddF(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
wxSizerFlags *arg3 = 0 ;
|
|
wxSizerItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item",(char *) "flags", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_AddF",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_AddF" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
arg2 = obj1;
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxSizerFlags, 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Sizer_AddF" "', expected argument " "3"" of type '" "wxSizerFlags &""'");
|
|
}
|
|
if (!argp3) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Sizer_AddF" "', expected argument " "3"" of type '" "wxSizerFlags &""'");
|
|
}
|
|
arg3 = reinterpret_cast< wxSizerFlags * >(argp3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizerItem *)wxSizer_AddF(arg1,arg2,*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
int arg2 ;
|
|
PyObject *arg3 = (PyObject *) 0 ;
|
|
int arg4 = (int) 0 ;
|
|
int arg5 = (int) 0 ;
|
|
int arg6 = (int) 0 ;
|
|
PyObject *arg7 = (PyObject *) NULL ;
|
|
wxSizerItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "before",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Sizer_Insert",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Insert" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer_Insert" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
arg3 = obj2;
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer_Insert" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Sizer_Insert" "', expected argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Sizer_Insert" "', expected argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
if (obj6) {
|
|
arg7 = obj6;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizerItem *)wxSizer_Insert(arg1,arg2,arg3,arg4,arg5,arg6,arg7);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_InsertF(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
int arg2 ;
|
|
PyObject *arg3 = (PyObject *) 0 ;
|
|
wxSizerFlags *arg4 = 0 ;
|
|
wxSizerItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "before",(char *) "item",(char *) "flags", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Sizer_InsertF",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_InsertF" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer_InsertF" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
arg3 = obj2;
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxSizerFlags, 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Sizer_InsertF" "', expected argument " "4"" of type '" "wxSizerFlags &""'");
|
|
}
|
|
if (!argp4) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Sizer_InsertF" "', expected argument " "4"" of type '" "wxSizerFlags &""'");
|
|
}
|
|
arg4 = reinterpret_cast< wxSizerFlags * >(argp4);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizerItem *)wxSizer_InsertF(arg1,arg2,arg3,*arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_Prepend(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
int arg4 = (int) 0 ;
|
|
int arg5 = (int) 0 ;
|
|
PyObject *arg6 = (PyObject *) NULL ;
|
|
wxSizerItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item",(char *) "proportion",(char *) "flag",(char *) "border",(char *) "userData", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Sizer_Prepend",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Prepend" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
arg2 = obj1;
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Sizer_Prepend" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer_Prepend" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Sizer_Prepend" "', expected argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
arg6 = obj5;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizerItem *)wxSizer_Prepend(arg1,arg2,arg3,arg4,arg5,arg6);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_PrependF(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
wxSizerFlags *arg3 = 0 ;
|
|
wxSizerItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item",(char *) "flags", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_PrependF",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_PrependF" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
arg2 = obj1;
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxSizerFlags, 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Sizer_PrependF" "', expected argument " "3"" of type '" "wxSizerFlags &""'");
|
|
}
|
|
if (!argp3) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Sizer_PrependF" "', expected argument " "3"" of type '" "wxSizerFlags &""'");
|
|
}
|
|
arg3 = reinterpret_cast< wxSizerFlags * >(argp3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizerItem *)wxSizer_PrependF(arg1,arg2,*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Remove" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxSizer_Remove(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Detach",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Detach" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxSizer_Detach(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool arg3 = (bool) false ;
|
|
wxSizerItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item",(char *) "recursive", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Sizer_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_GetItem" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
arg2 = obj1;
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_bool(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Sizer_GetItem" "', expected argument " "3"" of type '" "bool""'");
|
|
}
|
|
arg3 = static_cast< bool >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizerItem *)wxSizer_GetItem(arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer__SetItemMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
wxSize *arg3 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item",(char *) "size", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__SetItemMinSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer__SetItemMinSize" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxSizer__SetItemMinSize(arg1,arg2,(wxSize const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer__ReplaceWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
wxWindow *arg3 = (wxWindow *) 0 ;
|
|
bool arg4 = (bool) false ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
bool val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "oldwin",(char *) "newwin",(char *) "recursive", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Sizer__ReplaceWin",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer__ReplaceWin" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer__ReplaceWin" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Sizer__ReplaceWin" "', expected argument " "3"" of type '" "wxWindow *""'");
|
|
}
|
|
arg3 = reinterpret_cast< wxWindow * >(argp3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_bool(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer__ReplaceWin" "', expected argument " "4"" of type '" "bool""'");
|
|
}
|
|
arg4 = static_cast< bool >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Replace(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer__ReplaceSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
wxSizer *arg2 = (wxSizer *) 0 ;
|
|
wxSizer *arg3 = (wxSizer *) 0 ;
|
|
bool arg4 = (bool) false ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
bool val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "oldsz",(char *) "newsz",(char *) "recursive", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Sizer__ReplaceSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer__ReplaceSizer" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer__ReplaceSizer" "', expected argument " "2"" of type '" "wxSizer *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxSizer * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Sizer__ReplaceSizer" "', expected argument " "3"" of type '" "wxSizer *""'");
|
|
}
|
|
arg3 = reinterpret_cast< wxSizer * >(argp3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_bool(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer__ReplaceSizer" "', expected argument " "4"" of type '" "bool""'");
|
|
}
|
|
arg4 = static_cast< bool >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Replace(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer__ReplaceItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
size_t arg2 ;
|
|
wxSizerItem *arg3 = (wxSizerItem *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "index",(char *) "newitem", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer__ReplaceItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer__ReplaceItem" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer__ReplaceItem" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Sizer__ReplaceItem" "', expected argument " "3"" of type '" "wxSizerItem *""'");
|
|
}
|
|
arg3 = reinterpret_cast< wxSizerItem * >(argp3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Replace(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_SetContainingWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "window", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetContainingWindow",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_SetContainingWindow" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_SetContainingWindow" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetContainingWindow(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_GetContainingWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_GetContainingWindow" "', expected argument " "1"" of type '" "wxSizer const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)((wxSizer const *)arg1)->GetContainingWindow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_AddItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
wxSizerItem *arg2 = (wxSizerItem *) 0 ;
|
|
wxSizerItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_AddItem",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_AddItem" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_AddItem" "', expected argument " "2"" of type '" "wxSizerItem *""'");
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizerItem *)(arg1)->Add(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
size_t arg2 ;
|
|
wxSizerItem *arg3 = (wxSizerItem *) 0 ;
|
|
wxSizerItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "index",(char *) "item", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Sizer_InsertItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_InsertItem" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer_InsertItem" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Sizer_InsertItem" "', expected argument " "3"" of type '" "wxSizerItem *""'");
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizerItem *)(arg1)->Insert(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
wxSizerItem *arg2 = (wxSizerItem *) 0 ;
|
|
wxSizerItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_PrependItem",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_PrependItem" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxSizerItem, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_PrependItem" "', expected argument " "2"" of type '" "wxSizerItem *""'");
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxSizerItem *)(arg1)->Prepend(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSizerItem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_SetDimension(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
int arg4 ;
|
|
int arg5 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Sizer_SetDimension",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_SetDimension" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer_SetDimension" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Sizer_SetDimension" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer_SetDimension" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Sizer_SetDimension" "', expected argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetDimension(arg2,arg3,arg4,arg5);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_SetMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "size", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetMinSize",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_SetMinSize" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetMinSize((wxSize const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_GetSize" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetSize();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
wxPoint result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_GetPosition" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetPosition();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_GetMinSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_GetMinSize" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetMinSize();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_RecalcSizes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_RecalcSizes" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->RecalcSizes();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_CalcMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_CalcMin" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->CalcMin();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_Layout(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Layout" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Layout();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_Fit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "window", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_Fit",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Fit" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_Fit" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->Fit(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_FitInside(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "window", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_FitInside",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_FitInside" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_FitInside" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->FitInside(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_SetSizeHints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "window", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetSizeHints",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_SetSizeHints" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_SetSizeHints" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetSizeHints(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_SetVirtualSizeHints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "window", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_SetVirtualSizeHints",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_SetVirtualSizeHints" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Sizer_SetVirtualSizeHints" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetVirtualSizeHints(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
bool arg2 = (bool) false ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "deleteWindows", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Sizer_Clear",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Clear" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer_Clear" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Clear(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_DeleteWindows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_DeleteWindows" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->DeleteWindows();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_GetChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_GetChildren" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)wxSizer_GetChildren(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool arg3 = (bool) true ;
|
|
bool arg4 = (bool) false ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val3 ;
|
|
int ecode3 = 0 ;
|
|
bool val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item",(char *) "show",(char *) "recursive", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Sizer_Show",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_Show" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
arg2 = obj1;
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_bool(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Sizer_Show" "', expected argument " "3"" of type '" "bool""'");
|
|
}
|
|
arg3 = static_cast< bool >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_bool(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Sizer_Show" "', expected argument " "4"" of type '" "bool""'");
|
|
}
|
|
arg4 = static_cast< bool >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxSizer_Show(arg1,arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_IsShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_IsShown",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_IsShown" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)wxSizer_IsShown(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_Sizer_ShowItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "show", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Sizer_ShowItems",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Sizer_ShowItems" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Sizer_ShowItems" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->ShowItems(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *Sizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxSizer, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_PySizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxPySizer *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_PySizer",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxPySizer *)new wxPySizer();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPySizer, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_PySizer__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxPySizer *arg1 = (wxPySizer *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
PyObject *arg3 = (PyObject *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "self",(char *) "_class", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PySizer__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPySizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PySizer__setCallbackInfo" "', expected argument " "1"" of type '" "wxPySizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxPySizer * >(argp1);
|
|
arg2 = obj1;
|
|
arg3 = obj2;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->_setCallbackInfo(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *PySizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxPySizer, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *PySizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_BoxSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) wxHORIZONTAL ;
|
|
wxBoxSizer *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "orient", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_BoxSizer",kwnames,&obj0)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BoxSizer" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxBoxSizer *)new wxBoxSizer(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBoxSizer, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_BoxSizer_GetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBoxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoxSizer_GetOrientation" "', expected argument " "1"" of type '" "wxBoxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxBoxSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->GetOrientation();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_BoxSizer_SetOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxBoxSizer *arg1 = (wxBoxSizer *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "orient", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BoxSizer_SetOrientation",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBoxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BoxSizer_SetOrientation" "', expected argument " "1"" of type '" "wxBoxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxBoxSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BoxSizer_SetOrientation" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetOrientation(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *BoxSizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxBoxSizer, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *BoxSizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_StaticBoxSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxStaticBox *arg1 = (wxStaticBox *) 0 ;
|
|
int arg2 = (int) wxHORIZONTAL ;
|
|
wxStaticBoxSizer *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "box",(char *) "orient", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_StaticBoxSizer",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBoxSizer" "', expected argument " "1"" of type '" "wxStaticBox *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxStaticBox * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBoxSizer" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxStaticBoxSizer *)new wxStaticBoxSizer(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBoxSizer, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_StaticBoxSizer_GetStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxStaticBoxSizer *arg1 = (wxStaticBoxSizer *) 0 ;
|
|
wxStaticBox *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBoxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBoxSizer_GetStaticBox" "', expected argument " "1"" of type '" "wxStaticBoxSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxStaticBoxSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxStaticBox *)(arg1)->GetStaticBox();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *StaticBoxSizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBoxSizer, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *StaticBoxSizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_GridSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 1 ;
|
|
int arg2 = (int) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
int arg4 = (int) 0 ;
|
|
wxGridSizer *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_GridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GridSizer" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GridSizer" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_GridSizer" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GridSizer" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxGridSizer *)new wxGridSizer(arg1,arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGridSizer, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridSizer_SetCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGridSizer *arg1 = (wxGridSizer *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "cols", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetCols",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_SetCols" "', expected argument " "1"" of type '" "wxGridSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridSizer_SetCols" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetCols(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridSizer_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGridSizer *arg1 = (wxGridSizer *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rows", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_SetRows" "', expected argument " "1"" of type '" "wxGridSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridSizer_SetRows" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetRows(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridSizer_SetVGap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGridSizer *arg1 = (wxGridSizer *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "gap", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetVGap",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_SetVGap" "', expected argument " "1"" of type '" "wxGridSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridSizer_SetVGap" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetVGap(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridSizer_SetHGap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGridSizer *arg1 = (wxGridSizer *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "gap", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridSizer_SetHGap",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_SetHGap" "', expected argument " "1"" of type '" "wxGridSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridSizer_SetHGap" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetHGap(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridSizer_GetCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGridSizer *arg1 = (wxGridSizer *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_GetCols" "', expected argument " "1"" of type '" "wxGridSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->GetCols();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridSizer_GetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGridSizer *arg1 = (wxGridSizer *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_GetRows" "', expected argument " "1"" of type '" "wxGridSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->GetRows();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridSizer_GetVGap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGridSizer *arg1 = (wxGridSizer *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_GetVGap" "', expected argument " "1"" of type '" "wxGridSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->GetVGap();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridSizer_GetHGap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGridSizer *arg1 = (wxGridSizer *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridSizer_GetHGap" "', expected argument " "1"" of type '" "wxGridSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->GetHGap();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *GridSizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxGridSizer, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *GridSizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_FlexGridSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 1 ;
|
|
int arg2 = (int) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
int arg4 = (int) 0 ;
|
|
wxFlexGridSizer *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "rows",(char *) "cols",(char *) "vgap",(char *) "hgap", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_FlexGridSizer",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FlexGridSizer" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FlexGridSizer" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FlexGridSizer" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FlexGridSizer" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxFlexGridSizer *)new wxFlexGridSizer(arg1,arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFlexGridSizer, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FlexGridSizer_AddGrowableRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
|
|
size_t arg2 ;
|
|
int arg3 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "idx",(char *) "proportion", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableRow",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_AddGrowableRow" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FlexGridSizer_AddGrowableRow" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FlexGridSizer_AddGrowableRow" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->AddGrowableRow(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FlexGridSizer_RemoveGrowableRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
|
|
size_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "idx", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableRow",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_RemoveGrowableRow" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FlexGridSizer_RemoveGrowableRow" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->RemoveGrowableRow(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FlexGridSizer_AddGrowableCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
|
|
size_t arg2 ;
|
|
int arg3 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "idx",(char *) "proportion", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FlexGridSizer_AddGrowableCol",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_AddGrowableCol" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FlexGridSizer_AddGrowableCol" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FlexGridSizer_AddGrowableCol" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->AddGrowableCol(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FlexGridSizer_RemoveGrowableCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
|
|
size_t arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "idx", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_RemoveGrowableCol",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_RemoveGrowableCol" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FlexGridSizer_RemoveGrowableCol" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->RemoveGrowableCol(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FlexGridSizer_SetFlexibleDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "direction", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetFlexibleDirection",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_SetFlexibleDirection" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FlexGridSizer_SetFlexibleDirection" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetFlexibleDirection(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FlexGridSizer_GetFlexibleDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_GetFlexibleDirection" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->GetFlexibleDirection();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FlexGridSizer_SetNonFlexibleGrowMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
|
|
wxFlexSizerGrowMode arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "mode", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FlexGridSizer_SetNonFlexibleGrowMode",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_SetNonFlexibleGrowMode" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FlexGridSizer_SetNonFlexibleGrowMode" "', expected argument " "2"" of type '" "wxFlexSizerGrowMode""'");
|
|
}
|
|
arg2 = static_cast< wxFlexSizerGrowMode >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetNonFlexibleGrowMode(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FlexGridSizer_GetNonFlexibleGrowMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
|
|
wxFlexSizerGrowMode result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_GetNonFlexibleGrowMode" "', expected argument " "1"" of type '" "wxFlexGridSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxFlexSizerGrowMode)(arg1)->GetNonFlexibleGrowMode();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FlexGridSizer_GetRowHeights(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
|
|
wxArrayInt *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_GetRowHeights" "', expected argument " "1"" of type '" "wxFlexGridSizer const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetRowHeights();
|
|
result = (wxArrayInt *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxArrayInt2PyList_helper(*result);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_FlexGridSizer_GetColWidths(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxFlexGridSizer *arg1 = (wxFlexGridSizer *) 0 ;
|
|
wxArrayInt *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFlexGridSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FlexGridSizer_GetColWidths" "', expected argument " "1"" of type '" "wxFlexGridSizer const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxFlexGridSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
{
|
|
wxArrayInt const &_result_ref = ((wxFlexGridSizer const *)arg1)->GetColWidths();
|
|
result = (wxArrayInt *) &_result_ref;
|
|
}
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxArrayInt2PyList_helper(*result);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *FlexGridSizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxFlexGridSizer, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *FlexGridSizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_StdDialogButtonSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxStdDialogButtonSizer *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_StdDialogButtonSizer",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxStdDialogButtonSizer *)new wxStdDialogButtonSizer();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_AddButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
|
wxButton *arg2 = (wxButton *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "button", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_AddButton",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_AddButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxButton, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StdDialogButtonSizer_AddButton" "', expected argument " "2"" of type '" "wxButton *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxButton * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->AddButton(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_Realize" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Realize();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_SetAffirmativeButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
|
wxButton *arg2 = (wxButton *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "button", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetAffirmativeButton",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_SetAffirmativeButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxButton, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StdDialogButtonSizer_SetAffirmativeButton" "', expected argument " "2"" of type '" "wxButton *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxButton * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetAffirmativeButton(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_SetNegativeButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
|
wxButton *arg2 = (wxButton *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "button", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetNegativeButton",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_SetNegativeButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxButton, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StdDialogButtonSizer_SetNegativeButton" "', expected argument " "2"" of type '" "wxButton *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxButton * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetNegativeButton(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_SetCancelButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
|
wxButton *arg2 = (wxButton *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "button", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StdDialogButtonSizer_SetCancelButton",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_SetCancelButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxButton, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StdDialogButtonSizer_SetCancelButton" "', expected argument " "2"" of type '" "wxButton *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxButton * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetCancelButton(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_GetAffirmativeButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
|
wxButton *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_GetAffirmativeButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetAffirmativeButton();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_GetApplyButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
|
wxButton *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_GetApplyButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetApplyButton();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_GetNegativeButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
|
wxButton *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_GetNegativeButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetNegativeButton();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_GetCancelButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
|
wxButton *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_GetCancelButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetCancelButton();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_StdDialogButtonSizer_GetHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxStdDialogButtonSizer *arg1 = (wxStdDialogButtonSizer *) 0 ;
|
|
wxButton *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStdDialogButtonSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StdDialogButtonSizer_GetHelpButton" "', expected argument " "1"" of type '" "wxStdDialogButtonSizer const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxStdDialogButtonSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxButton *)((wxStdDialogButtonSizer const *)arg1)->GetHelpButton();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, (bool)0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *StdDialogButtonSizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxStdDialogButtonSizer, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *StdDialogButtonSizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_GBPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
int arg2 = (int) 0 ;
|
|
wxGBPosition *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "row",(char *) "col", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBPosition",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GBPosition" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GBPosition" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxGBPosition *)new wxGBPosition(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBPosition, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_GBPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGBPosition *arg1 = (wxGBPosition *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBPosition, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GBPosition" "', expected argument " "1"" of type '" "wxGBPosition *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBPosition * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBPosition_GetRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGBPosition *arg1 = (wxGBPosition *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition_GetRow" "', expected argument " "1"" of type '" "wxGBPosition const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBPosition * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxGBPosition const *)arg1)->GetRow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBPosition_GetCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGBPosition *arg1 = (wxGBPosition *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition_GetCol" "', expected argument " "1"" of type '" "wxGBPosition const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBPosition * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxGBPosition const *)arg1)->GetCol();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBPosition_SetRow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGBPosition *arg1 = (wxGBPosition *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "row", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetRow",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition_SetRow" "', expected argument " "1"" of type '" "wxGBPosition *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBPosition * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GBPosition_SetRow" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetRow(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBPosition_SetCol(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGBPosition *arg1 = (wxGBPosition *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "col", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition_SetCol",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition_SetCol" "', expected argument " "1"" of type '" "wxGBPosition *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBPosition * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GBPosition_SetCol" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetCol(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBPosition___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGBPosition *arg1 = (wxGBPosition *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "other", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition___eq__" "', expected argument " "1"" of type '" "wxGBPosition *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBPosition * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
result = (bool)wxGBPosition___eq__(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBPosition___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGBPosition *arg1 = (wxGBPosition *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "other", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBPosition___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition___ne__" "', expected argument " "1"" of type '" "wxGBPosition *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBPosition * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
result = (bool)wxGBPosition___ne__(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBPosition_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGBPosition *arg1 = (wxGBPosition *) 0 ;
|
|
int arg2 = (int) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "row",(char *) "col", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBPosition_Set",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition_Set" "', expected argument " "1"" of type '" "wxGBPosition *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBPosition * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GBPosition_Set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GBPosition_Set" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxGBPosition_Set(arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBPosition_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGBPosition *arg1 = (wxGBPosition *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBPosition, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBPosition_Get" "', expected argument " "1"" of type '" "wxGBPosition *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBPosition * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)wxGBPosition_Get(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *GBPosition_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxGBPosition, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *GBPosition_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_GBSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 1 ;
|
|
int arg2 = (int) 1 ;
|
|
wxGBSpan *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "rowspan",(char *) "colspan", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GBSpan",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GBSpan" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GBSpan" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxGBSpan *)new wxGBSpan(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSpan, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_GBSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSpan *arg1 = (wxGBSpan *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSpan, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GBSpan" "', expected argument " "1"" of type '" "wxGBSpan *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSpan * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBSpan_GetRowspan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSpan *arg1 = (wxGBSpan *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan_GetRowspan" "', expected argument " "1"" of type '" "wxGBSpan const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSpan * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxGBSpan const *)arg1)->GetRowspan();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBSpan_GetColspan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSpan *arg1 = (wxGBSpan *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan_GetColspan" "', expected argument " "1"" of type '" "wxGBSpan const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSpan * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxGBSpan const *)arg1)->GetColspan();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBSpan_SetRowspan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSpan *arg1 = (wxGBSpan *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rowspan", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetRowspan",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan_SetRowspan" "', expected argument " "1"" of type '" "wxGBSpan *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSpan * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GBSpan_SetRowspan" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetRowspan(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBSpan_SetColspan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSpan *arg1 = (wxGBSpan *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "colspan", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan_SetColspan",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan_SetColspan" "', expected argument " "1"" of type '" "wxGBSpan *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSpan * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GBSpan_SetColspan" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetColspan(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBSpan___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSpan *arg1 = (wxGBSpan *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "other", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan___eq__" "', expected argument " "1"" of type '" "wxGBSpan *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSpan * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
result = (bool)wxGBSpan___eq__(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBSpan___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSpan *arg1 = (wxGBSpan *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "other", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSpan___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan___ne__" "', expected argument " "1"" of type '" "wxGBSpan *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSpan * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
result = (bool)wxGBSpan___ne__(arg1,arg2);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBSpan_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSpan *arg1 = (wxGBSpan *) 0 ;
|
|
int arg2 = (int) 1 ;
|
|
int arg3 = (int) 1 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rowspan",(char *) "colspan", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:GBSpan_Set",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan_Set" "', expected argument " "1"" of type '" "wxGBSpan *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSpan * >(argp1);
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GBSpan_Set" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GBSpan_Set" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
wxGBSpan_Set(arg1,arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBSpan_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSpan *arg1 = (wxGBSpan *) 0 ;
|
|
PyObject *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSpan, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSpan_Get" "', expected argument " "1"" of type '" "wxGBSpan *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSpan * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (PyObject *)wxGBSpan_Get(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = result;
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *GBSpan_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxGBSpan, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *GBSpan_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN int DefaultSpan_set(PyObject *) {
|
|
SWIG_Error(SWIG_AttributeError,"Variable DefaultSpan is read-only.");
|
|
return 1;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *DefaultSpan_get(void) {
|
|
PyObject *pyobj = 0;
|
|
|
|
pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxDefaultSpan), SWIGTYPE_p_wxGBSpan, 0 );
|
|
return pyobj;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_GBSizerItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSizerItem *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_GBSizerItem",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxGBSizerItem *)new wxGBSizerItem();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_GBSizerItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GBSizerItem" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_GBSizerItemWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
|
wxGBPosition *arg2 = 0 ;
|
|
wxGBSpan *arg3 = 0 ;
|
|
int arg4 ;
|
|
int arg5 ;
|
|
PyObject *arg6 = (PyObject *) NULL ;
|
|
wxGBSizerItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxGBPosition temp2 ;
|
|
wxGBSpan temp3 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "window",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GBSizerItemWindow" "', expected argument " "1"" of type '" "wxWindow *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
|
|
}
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GBSizerItemWindow" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GBSizerItemWindow" "', expected argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
if (obj5) {
|
|
arg6 = obj5;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_GBSizerItemSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxSizer *arg1 = (wxSizer *) 0 ;
|
|
wxGBPosition *arg2 = 0 ;
|
|
wxGBSpan *arg3 = 0 ;
|
|
int arg4 ;
|
|
int arg5 ;
|
|
PyObject *arg6 = (PyObject *) NULL ;
|
|
wxGBSizerItem *result = 0 ;
|
|
int res1 = 0 ;
|
|
wxGBPosition temp2 ;
|
|
wxGBSpan temp3 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "sizer",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:new_GBSizerItemSizer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxSizer, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GBSizerItemSizer" "', expected argument " "1"" of type '" "wxSizer *""'");
|
|
}
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
|
|
}
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_GBSizerItemSizer" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GBSizerItemSizer" "', expected argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
if (obj5) {
|
|
arg6 = obj5;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,(wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4,arg5,arg6);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_GBSizerItemSpacer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 ;
|
|
int arg2 ;
|
|
wxGBPosition *arg3 = 0 ;
|
|
wxGBSpan *arg4 = 0 ;
|
|
int arg5 ;
|
|
int arg6 ;
|
|
PyObject *arg7 = (PyObject *) NULL ;
|
|
wxGBSizerItem *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
wxGBPosition temp3 ;
|
|
wxGBSpan temp4 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "width",(char *) "height",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:new_GBSizerItemSpacer",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GBSizerItemSpacer" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GBSizerItemSpacer" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
|
|
}
|
|
{
|
|
arg4 = &temp4;
|
|
if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
|
|
}
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_GBSizerItemSpacer" "', expected argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GBSizerItemSpacer" "', expected argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
if (obj6) {
|
|
arg7 = obj6;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxGBSizerItem *)new_wxGBSizerItem(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBSizerItem_GetPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
|
|
wxGBPosition result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_GetPos" "', expected argument " "1"" of type '" "wxGBSizerItem const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxGBSizerItem const *)arg1)->GetPos();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxGBPosition(static_cast< const wxGBPosition& >(result))), SWIGTYPE_p_wxGBPosition, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBSizerItem_GetSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
|
|
wxGBSpan result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_GetSpan" "', expected argument " "1"" of type '" "wxGBSizerItem const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxGBSizerItem const *)arg1)->GetSpan();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxGBSpan(static_cast< const wxGBSpan& >(result))), SWIGTYPE_p_wxGBSpan, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBSizerItem_SetPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
|
|
wxGBPosition *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxGBPosition temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetPos",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_SetPos" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SetPos((wxGBPosition const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBSizerItem_SetSpan(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
|
|
wxGBSpan *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxGBSpan temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "span", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetSpan",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_SetSpan" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxGBSpan_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SetSpan((wxGBSpan const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBSizerItem_Intersects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
|
|
wxGBSizerItem *arg2 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "other", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_Intersects",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_Intersects" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGBSizerItem, 0 | 0);
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GBSizerItem_Intersects" "', expected argument " "2"" of type '" "wxGBSizerItem const &""'");
|
|
}
|
|
if (!argp2) {
|
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GBSizerItem_Intersects" "', expected argument " "2"" of type '" "wxGBSizerItem const &""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxGBSizerItem * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Intersects((wxGBSizerItem const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBSizerItem_IntersectsPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
|
|
wxGBPosition *arg2 = 0 ;
|
|
wxGBSpan *arg3 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxGBPosition temp2 ;
|
|
wxGBSpan temp3 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos",(char *) "span", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GBSizerItem_IntersectsPos",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_IntersectsPos" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->Intersects((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBSizerItem_GetEndPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
|
|
wxGBPosition result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_GetEndPos" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = wxGBSizerItem_GetEndPos(arg1);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxGBPosition(static_cast< const wxGBPosition& >(result))), SWIGTYPE_p_wxGBPosition, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBSizerItem_GetGBSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
|
|
wxGridBagSizer *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_GetGBSizer" "', expected argument " "1"" of type '" "wxGBSizerItem const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxGridBagSizer *)((wxGBSizerItem const *)arg1)->GetGBSizer();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GBSizerItem_SetGBSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGBSizerItem *arg1 = (wxGBSizerItem *) 0 ;
|
|
wxGridBagSizer *arg2 = (wxGridBagSizer *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "sizer", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GBSizerItem_SetGBSizer",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GBSizerItem_SetGBSizer" "', expected argument " "1"" of type '" "wxGBSizerItem *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGBSizerItem * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GBSizerItem_SetGBSizer" "', expected argument " "2"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxGridBagSizer * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetGBSizer(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *GBSizerItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxGBSizerItem, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *GBSizerItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_new_GridBagSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
int arg1 = (int) 0 ;
|
|
int arg2 = (int) 0 ;
|
|
wxGridBagSizer *result = 0 ;
|
|
int val1 ;
|
|
int ecode1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "vgap",(char *) "hgap", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_GridBagSizer",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
if (obj0) {
|
|
ecode1 = SWIG_AsVal_int(obj0, &val1);
|
|
if (!SWIG_IsOK(ecode1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_GridBagSizer" "', expected argument " "1"" of type '" "int""'");
|
|
}
|
|
arg1 = static_cast< int >(val1);
|
|
}
|
|
if (obj1) {
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GridBagSizer" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxGridBagSizer *)new wxGridBagSizer(arg1,arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGridBagSizer, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
PyObject *arg2 = (PyObject *) 0 ;
|
|
wxGBPosition *arg3 = 0 ;
|
|
wxGBSpan const &arg4_defvalue = wxDefaultSpan ;
|
|
wxGBSpan *arg4 = (wxGBSpan *) &arg4_defvalue ;
|
|
int arg5 = (int) 0 ;
|
|
int arg6 = (int) 0 ;
|
|
PyObject *arg7 = (PyObject *) NULL ;
|
|
wxGBSizerItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxGBPosition temp3 ;
|
|
wxGBSpan temp4 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
PyObject * obj6 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item",(char *) "pos",(char *) "span",(char *) "flag",(char *) "border",(char *) "userData", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:GridBagSizer_Add",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_Add" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
arg2 = obj1;
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxGBPosition_helper(obj2, &arg3)) SWIG_fail;
|
|
}
|
|
if (obj3) {
|
|
{
|
|
arg4 = &temp4;
|
|
if ( ! wxGBSpan_helper(obj3, &arg4)) SWIG_fail;
|
|
}
|
|
}
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GridBagSizer_Add" "', expected argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GridBagSizer_Add" "', expected argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
if (obj6) {
|
|
arg7 = obj6;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxGBSizerItem *)wxGridBagSizer_Add(arg1,arg2,(wxGBPosition const &)*arg3,(wxGBSpan const &)*arg4,arg5,arg6,arg7);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_AddItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
|
|
wxGBSizerItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_AddItem",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_AddItem" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxGBSizerItem, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_AddItem" "', expected argument " "2"" of type '" "wxGBSizerItem *""'");
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxGBSizerItem *)(arg1)->Add(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_GetCellSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
int arg2 ;
|
|
int arg3 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "row",(char *) "col", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GridBagSizer_GetCellSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetCellSize" "', expected argument " "1"" of type '" "wxGridBagSizer const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridBagSizer_GetCellSize" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GridBagSizer_GetCellSize" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxGridBagSizer const *)arg1)->GetCellSize(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_GetEmptyCellSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
wxSize result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetEmptyCellSize" "', expected argument " "1"" of type '" "wxGridBagSizer const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = ((wxGridBagSizer const *)arg1)->GetEmptyCellSize();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_SetEmptyCellSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
wxSize *arg2 = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxSize temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "sz", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_SetEmptyCellSize",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetEmptyCellSize" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetEmptyCellSize((wxSize const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
wxGBPosition result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetItemPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_GetItemPosition" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetItemPosition(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxGBPosition(static_cast< const wxGBPosition& >(result))), SWIGTYPE_p_wxGBPosition, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
wxSizer *arg2 = (wxSizer *) 0 ;
|
|
wxGBPosition result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetItemPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_GetItemPosition" "', expected argument " "2"" of type '" "wxSizer *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxSizer * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetItemPosition(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxGBPosition(static_cast< const wxGBPosition& >(result))), SWIGTYPE_p_wxGBPosition, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemPosition__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
size_t arg2 ;
|
|
wxGBPosition result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetItemPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridBagSizer_GetItemPosition" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetItemPosition(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxGBPosition(static_cast< const wxGBPosition& >(result))), SWIGTYPE_p_wxGBPosition, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemPosition(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
|
|
if (!(argc = SWIG_Python_UnpackTuple(args,"GridBagSizer_GetItemPosition",0,2,argv))) SWIG_fail;
|
|
--argc;
|
|
if (argc == 2) {
|
|
int _v = 0;
|
|
{
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxWindow, 0);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (!_v) goto check_1;
|
|
return _wrap_GridBagSizer_GetItemPosition__SWIG_0(self, argc, argv);
|
|
}
|
|
check_1:
|
|
|
|
if (argc == 2) {
|
|
int _v = 0;
|
|
{
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxSizer, 0);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (!_v) goto check_2;
|
|
return _wrap_GridBagSizer_GetItemPosition__SWIG_1(self, argc, argv);
|
|
}
|
|
check_2:
|
|
|
|
if (argc == 2) {
|
|
return _wrap_GridBagSizer_GetItemPosition__SWIG_2(self, argc, argv);
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_GetItemPosition'");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
wxGBPosition *arg3 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
wxGBPosition temp3 ;
|
|
|
|
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetItemPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_SetItemPosition" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxGBPosition_helper(swig_obj[2], &arg3)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
wxSizer *arg2 = (wxSizer *) 0 ;
|
|
wxGBPosition *arg3 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
wxGBPosition temp3 ;
|
|
|
|
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetItemPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_SetItemPosition" "', expected argument " "2"" of type '" "wxSizer *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxSizer * >(argp2);
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxGBPosition_helper(swig_obj[2], &arg3)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemPosition__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
size_t arg2 ;
|
|
wxGBPosition *arg3 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
wxGBPosition temp3 ;
|
|
|
|
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetItemPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridBagSizer_SetItemPosition" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxGBPosition_helper(swig_obj[2], &arg3)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SetItemPosition(arg2,(wxGBPosition const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemPosition(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[4];
|
|
|
|
if (!(argc = SWIG_Python_UnpackTuple(args,"GridBagSizer_SetItemPosition",0,3,argv))) SWIG_fail;
|
|
--argc;
|
|
if (argc == 3) {
|
|
int _v = 0;
|
|
{
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxWindow, 0);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (!_v) goto check_1;
|
|
return _wrap_GridBagSizer_SetItemPosition__SWIG_0(self, argc, argv);
|
|
}
|
|
check_1:
|
|
|
|
if (argc == 3) {
|
|
int _v = 0;
|
|
{
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxSizer, 0);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (!_v) goto check_2;
|
|
return _wrap_GridBagSizer_SetItemPosition__SWIG_1(self, argc, argv);
|
|
}
|
|
check_2:
|
|
|
|
if (argc == 3) {
|
|
return _wrap_GridBagSizer_SetItemPosition__SWIG_2(self, argc, argv);
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_SetItemPosition'");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
wxGBSpan result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetItemSpan" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_GetItemSpan" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetItemSpan(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxGBSpan(static_cast< const wxGBSpan& >(result))), SWIGTYPE_p_wxGBSpan, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
wxSizer *arg2 = (wxSizer *) 0 ;
|
|
wxGBSpan result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetItemSpan" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_GetItemSpan" "', expected argument " "2"" of type '" "wxSizer *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxSizer * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetItemSpan(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxGBSpan(static_cast< const wxGBSpan& >(result))), SWIGTYPE_p_wxGBSpan, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemSpan__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
size_t arg2 ;
|
|
wxGBSpan result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
|
|
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_GetItemSpan" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridBagSizer_GetItemSpan" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (arg1)->GetItemSpan(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj((new wxGBSpan(static_cast< const wxGBSpan& >(result))), SWIGTYPE_p_wxGBSpan, SWIG_POINTER_OWN | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_GetItemSpan(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
|
|
if (!(argc = SWIG_Python_UnpackTuple(args,"GridBagSizer_GetItemSpan",0,2,argv))) SWIG_fail;
|
|
--argc;
|
|
if (argc == 2) {
|
|
int _v = 0;
|
|
{
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxWindow, 0);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (!_v) goto check_1;
|
|
return _wrap_GridBagSizer_GetItemSpan__SWIG_0(self, argc, argv);
|
|
}
|
|
check_1:
|
|
|
|
if (argc == 2) {
|
|
int _v = 0;
|
|
{
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxSizer, 0);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (!_v) goto check_2;
|
|
return _wrap_GridBagSizer_GetItemSpan__SWIG_1(self, argc, argv);
|
|
}
|
|
check_2:
|
|
|
|
if (argc == 2) {
|
|
return _wrap_GridBagSizer_GetItemSpan__SWIG_2(self, argc, argv);
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_GetItemSpan'");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
wxGBSpan *arg3 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
wxGBSpan temp3 ;
|
|
|
|
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetItemSpan" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_SetItemSpan" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxGBSpan_helper(swig_obj[2], &arg3)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
wxSizer *arg2 = (wxSizer *) 0 ;
|
|
wxGBSpan *arg3 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
wxGBSpan temp3 ;
|
|
|
|
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetItemSpan" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_SetItemSpan" "', expected argument " "2"" of type '" "wxSizer *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxSizer * >(argp2);
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxGBSpan_helper(swig_obj[2], &arg3)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemSpan__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
size_t arg2 ;
|
|
wxGBSpan *arg3 = 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
size_t val2 ;
|
|
int ecode2 = 0 ;
|
|
wxGBSpan temp3 ;
|
|
|
|
if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_SetItemSpan" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GridBagSizer_SetItemSpan" "', expected argument " "2"" of type '" "size_t""'");
|
|
}
|
|
arg2 = static_cast< size_t >(val2);
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxGBSpan_helper(swig_obj[2], &arg3)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SetItemSpan(arg2,(wxGBSpan const &)*arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_SetItemSpan(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[4];
|
|
|
|
if (!(argc = SWIG_Python_UnpackTuple(args,"GridBagSizer_SetItemSpan",0,3,argv))) SWIG_fail;
|
|
--argc;
|
|
if (argc == 3) {
|
|
int _v = 0;
|
|
{
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxWindow, 0);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (!_v) goto check_1;
|
|
return _wrap_GridBagSizer_SetItemSpan__SWIG_0(self, argc, argv);
|
|
}
|
|
check_1:
|
|
|
|
if (argc == 3) {
|
|
int _v = 0;
|
|
{
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxSizer, 0);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (!_v) goto check_2;
|
|
return _wrap_GridBagSizer_SetItemSpan__SWIG_1(self, argc, argv);
|
|
}
|
|
check_2:
|
|
|
|
if (argc == 3) {
|
|
return _wrap_GridBagSizer_SetItemSpan__SWIG_2(self, argc, argv);
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_SetItemSpan'");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_FindItem__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
wxGBSizerItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_FindItem" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_FindItem" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_FindItem__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
wxSizer *arg2 = (wxSizer *) 0 ;
|
|
wxGBSizerItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
|
|
if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_FindItem" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_FindItem" "', expected argument " "2"" of type '" "wxSizer *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxSizer * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxGBSizerItem *)(arg1)->FindItem(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_FindItem(PyObject *self, PyObject *args) {
|
|
int argc;
|
|
PyObject *argv[3];
|
|
|
|
if (!(argc = SWIG_Python_UnpackTuple(args,"GridBagSizer_FindItem",0,2,argv))) SWIG_fail;
|
|
--argc;
|
|
if (argc == 2) {
|
|
int _v = 0;
|
|
{
|
|
void *vptr = 0;
|
|
int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxWindow, 0);
|
|
_v = SWIG_CheckState(res);
|
|
}
|
|
if (!_v) goto check_1;
|
|
return _wrap_GridBagSizer_FindItem__SWIG_0(self, argc, argv);
|
|
}
|
|
check_1:
|
|
|
|
if (argc == 2) {
|
|
return _wrap_GridBagSizer_FindItem__SWIG_1(self, argc, argv);
|
|
}
|
|
|
|
fail:
|
|
SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GridBagSizer_FindItem'");
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_FindItemAtPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
wxGBPosition *arg2 = 0 ;
|
|
wxGBSizerItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxGBPosition temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPosition",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_FindItemAtPosition" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxGBSizerItem *)(arg1)->FindItemAtPosition((wxGBPosition const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_FindItemAtPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
wxPoint *arg2 = 0 ;
|
|
wxGBSizerItem *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxPoint temp2 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pt", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GridBagSizer_FindItemAtPoint",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_FindItemAtPoint" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxGBSizerItem *)(arg1)->FindItemAtPoint((wxPoint const &)*arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_CheckForIntersection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
wxGBSizerItem *arg2 = (wxGBSizerItem *) 0 ;
|
|
wxGBSizerItem *arg3 = (wxGBSizerItem *) NULL ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "item",(char *) "excludeItem", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GridBagSizer_CheckForIntersection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_CheckForIntersection" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GridBagSizer_CheckForIntersection" "', expected argument " "2"" of type '" "wxGBSizerItem *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxGBSizerItem * >(argp2);
|
|
if (obj2) {
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GridBagSizer_CheckForIntersection" "', expected argument " "3"" of type '" "wxGBSizerItem *""'");
|
|
}
|
|
arg3 = reinterpret_cast< wxGBSizerItem * >(argp3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->CheckForIntersection(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_GridBagSizer_CheckForIntersectionPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxGridBagSizer *arg1 = (wxGridBagSizer *) 0 ;
|
|
wxGBPosition *arg2 = 0 ;
|
|
wxGBSpan *arg3 = 0 ;
|
|
wxGBSizerItem *arg4 = (wxGBSizerItem *) NULL ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
wxGBPosition temp2 ;
|
|
wxGBSpan temp3 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "pos",(char *) "span",(char *) "excludeItem", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GridBagSizer_CheckForIntersectionPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGridBagSizer, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GridBagSizer_CheckForIntersectionPos" "', expected argument " "1"" of type '" "wxGridBagSizer *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxGridBagSizer * >(argp1);
|
|
{
|
|
arg2 = &temp2;
|
|
if ( ! wxGBPosition_helper(obj1, &arg2)) SWIG_fail;
|
|
}
|
|
{
|
|
arg3 = &temp3;
|
|
if ( ! wxGBSpan_helper(obj2, &arg3)) SWIG_fail;
|
|
}
|
|
if (obj3) {
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxGBSizerItem, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GridBagSizer_CheckForIntersectionPos" "', expected argument " "4"" of type '" "wxGBSizerItem *""'");
|
|
}
|
|
arg4 = reinterpret_cast< wxGBSizerItem * >(argp4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->CheckForIntersection((wxGBPosition const &)*arg2,(wxGBSpan const &)*arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *GridBagSizer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxGridBagSizer, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *GridBagSizer_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
wxRelationship arg2 ;
|
|
wxWindow *arg3 = (wxWindow *) 0 ;
|
|
wxEdge arg4 ;
|
|
int arg5 = (int) 0 ;
|
|
int arg6 = (int) wxLAYOUT_DEFAULT_MARGIN ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
int val5 ;
|
|
int ecode5 = 0 ;
|
|
int val6 ;
|
|
int ecode6 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
PyObject * obj4 = 0 ;
|
|
PyObject * obj5 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "rel",(char *) "otherW",(char *) "otherE",(char *) "val",(char *) "marg", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:IndividualLayoutConstraint_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_Set" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_Set" "', expected argument " "2"" of type '" "wxRelationship""'");
|
|
}
|
|
arg2 = static_cast< wxRelationship >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IndividualLayoutConstraint_Set" "', expected argument " "3"" of type '" "wxWindow *""'");
|
|
}
|
|
arg3 = reinterpret_cast< wxWindow * >(argp3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IndividualLayoutConstraint_Set" "', expected argument " "4"" of type '" "wxEdge""'");
|
|
}
|
|
arg4 = static_cast< wxEdge >(val4);
|
|
if (obj4) {
|
|
ecode5 = SWIG_AsVal_int(obj4, &val5);
|
|
if (!SWIG_IsOK(ecode5)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "IndividualLayoutConstraint_Set" "', expected argument " "5"" of type '" "int""'");
|
|
}
|
|
arg5 = static_cast< int >(val5);
|
|
}
|
|
if (obj5) {
|
|
ecode6 = SWIG_AsVal_int(obj5, &val6);
|
|
if (!SWIG_IsOK(ecode6)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "IndividualLayoutConstraint_Set" "', expected argument " "6"" of type '" "int""'");
|
|
}
|
|
arg6 = static_cast< int >(val6);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Set(arg2,arg3,arg4,arg5,arg6);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_LeftOf(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "sibling",(char *) "marg", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_LeftOf",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_LeftOf" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_LeftOf" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IndividualLayoutConstraint_LeftOf" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->LeftOf(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_RightOf(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "sibling",(char *) "marg", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_RightOf",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_RightOf" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_RightOf" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IndividualLayoutConstraint_RightOf" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->RightOf(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_Above(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "sibling",(char *) "marg", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Above",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_Above" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_Above" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IndividualLayoutConstraint_Above" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Above(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_Below(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
int arg3 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "sibling",(char *) "marg", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:IndividualLayoutConstraint_Below",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_Below" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_Below" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
if (obj2) {
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IndividualLayoutConstraint_Below" "', expected argument " "3"" of type '" "int""'");
|
|
}
|
|
arg3 = static_cast< int >(val3);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Below(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SameAs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
wxEdge arg3 ;
|
|
int arg4 = (int) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "otherW",(char *) "edge",(char *) "marg", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:IndividualLayoutConstraint_SameAs",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SameAs" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_SameAs" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IndividualLayoutConstraint_SameAs" "', expected argument " "3"" of type '" "wxEdge""'");
|
|
}
|
|
arg3 = static_cast< wxEdge >(val3);
|
|
if (obj3) {
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IndividualLayoutConstraint_SameAs" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
}
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SameAs(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_PercentOf(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
wxEdge arg3 ;
|
|
int arg4 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int val3 ;
|
|
int ecode3 = 0 ;
|
|
int val4 ;
|
|
int ecode4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "otherW",(char *) "wh",(char *) "per", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_PercentOf",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_PercentOf" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_PercentOf" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
ecode3 = SWIG_AsVal_int(obj2, &val3);
|
|
if (!SWIG_IsOK(ecode3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IndividualLayoutConstraint_PercentOf" "', expected argument " "3"" of type '" "wxEdge""'");
|
|
}
|
|
arg3 = static_cast< wxEdge >(val3);
|
|
ecode4 = SWIG_AsVal_int(obj3, &val4);
|
|
if (!SWIG_IsOK(ecode4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "IndividualLayoutConstraint_PercentOf" "', expected argument " "4"" of type '" "int""'");
|
|
}
|
|
arg4 = static_cast< int >(val4);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->PercentOf(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_Absolute(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "val", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_Absolute",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_Absolute" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_Absolute" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Absolute(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_Unconstrained(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_Unconstrained" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->Unconstrained();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_AsIs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_AsIs" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->AsIs();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetOtherWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
wxWindow *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetOtherWindow" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxWindow *)(arg1)->GetOtherWindow();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = wxPyMake_wxObject(result, 0);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetMyEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
wxEdge result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetMyEdge" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxEdge)((wxIndividualLayoutConstraint const *)arg1)->GetMyEdge();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
wxEdge arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "which", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetEdge",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SetEdge" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_SetEdge" "', expected argument " "2"" of type '" "wxEdge""'");
|
|
}
|
|
arg2 = static_cast< wxEdge >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetEdge(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "v", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SetValue" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_SetValue" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetValue(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetMargin" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)(arg1)->GetMargin();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SetMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
int arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "m", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetMargin",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SetMargin" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_SetMargin" "', expected argument " "2"" of type '" "int""'");
|
|
}
|
|
arg2 = static_cast< int >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetMargin(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetValue" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetValue();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetPercent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetPercent" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetPercent();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetOtherEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetOtherEdge" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetOtherEdge();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetDone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetDone" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxIndividualLayoutConstraint const *)arg1)->GetDone();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SetDone(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
bool arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
bool val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "d", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetDone",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SetDone" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
ecode2 = SWIG_AsVal_bool(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_SetDone" "', expected argument " "2"" of type '" "bool""'");
|
|
}
|
|
arg2 = static_cast< bool >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetDone(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetRelationship(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
wxRelationship result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetRelationship" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxRelationship)(arg1)->GetRelationship();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SetRelationship(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
wxRelationship arg2 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "r", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_SetRelationship",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SetRelationship" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_SetRelationship" "', expected argument " "2"" of type '" "wxRelationship""'");
|
|
}
|
|
arg2 = static_cast< wxRelationship >(val2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
(arg1)->SetRelationship(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_ResetIfWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "otherW", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IndividualLayoutConstraint_ResetIfWin",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_ResetIfWin" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_ResetIfWin" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->ResetIfWin(arg2);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_SatisfyConstraint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
wxLayoutConstraints *arg2 = (wxLayoutConstraints *) 0 ;
|
|
wxWindow *arg3 = (wxWindow *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "constraints",(char *) "win", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IndividualLayoutConstraint_SatisfyConstraint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_SatisfyConstraint" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IndividualLayoutConstraint_SatisfyConstraint" "', expected argument " "2"" of type '" "wxLayoutConstraints *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxLayoutConstraints * >(argp2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IndividualLayoutConstraint_SatisfyConstraint" "', expected argument " "3"" of type '" "wxWindow *""'");
|
|
}
|
|
arg3 = reinterpret_cast< wxWindow * >(argp3);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SatisfyConstraint(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_IndividualLayoutConstraint_GetEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxIndividualLayoutConstraint *arg1 = (wxIndividualLayoutConstraint *) 0 ;
|
|
wxEdge arg2 ;
|
|
wxWindow *arg3 = (wxWindow *) 0 ;
|
|
wxWindow *arg4 = (wxWindow *) 0 ;
|
|
int result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
int val2 ;
|
|
int ecode2 = 0 ;
|
|
void *argp3 = 0 ;
|
|
int res3 = 0 ;
|
|
void *argp4 = 0 ;
|
|
int res4 = 0 ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
PyObject * obj2 = 0 ;
|
|
PyObject * obj3 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "which",(char *) "thisWin",(char *) "other", NULL
|
|
};
|
|
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:IndividualLayoutConstraint_GetEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IndividualLayoutConstraint_GetEdge" "', expected argument " "1"" of type '" "wxIndividualLayoutConstraint const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxIndividualLayoutConstraint * >(argp1);
|
|
ecode2 = SWIG_AsVal_int(obj1, &val2);
|
|
if (!SWIG_IsOK(ecode2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IndividualLayoutConstraint_GetEdge" "', expected argument " "2"" of type '" "wxEdge""'");
|
|
}
|
|
arg2 = static_cast< wxEdge >(val2);
|
|
res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res3)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "IndividualLayoutConstraint_GetEdge" "', expected argument " "3"" of type '" "wxWindow *""'");
|
|
}
|
|
arg3 = reinterpret_cast< wxWindow * >(argp3);
|
|
res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res4)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "IndividualLayoutConstraint_GetEdge" "', expected argument " "4"" of type '" "wxWindow *""'");
|
|
}
|
|
arg4 = reinterpret_cast< wxWindow * >(argp4);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (int)((wxIndividualLayoutConstraint const *)arg1)->GetEdge(arg2,arg3,arg4);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_From_int(static_cast< int >(result));
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *IndividualLayoutConstraint_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxIndividualLayoutConstraint, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *_wrap_LayoutConstraints_left_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
|
|
wxIndividualLayoutConstraint *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_left_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
|
|
result = (wxIndividualLayoutConstraint *)& ((arg1)->left);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_LayoutConstraints_top_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
|
|
wxIndividualLayoutConstraint *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_top_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
|
|
result = (wxIndividualLayoutConstraint *)& ((arg1)->top);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_LayoutConstraints_right_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
|
|
wxIndividualLayoutConstraint *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_right_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
|
|
result = (wxIndividualLayoutConstraint *)& ((arg1)->right);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_LayoutConstraints_bottom_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
|
|
wxIndividualLayoutConstraint *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_bottom_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
|
|
result = (wxIndividualLayoutConstraint *)& ((arg1)->bottom);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_LayoutConstraints_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
|
|
wxIndividualLayoutConstraint *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_width_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
|
|
result = (wxIndividualLayoutConstraint *)& ((arg1)->width);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_LayoutConstraints_height_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
|
|
wxIndividualLayoutConstraint *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_height_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
|
|
result = (wxIndividualLayoutConstraint *)& ((arg1)->height);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_LayoutConstraints_centreX_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
|
|
wxIndividualLayoutConstraint *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_centreX_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
|
|
result = (wxIndividualLayoutConstraint *)& ((arg1)->centreX);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_LayoutConstraints_centreY_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
|
|
wxIndividualLayoutConstraint *result = 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_centreY_get" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
|
|
result = (wxIndividualLayoutConstraint *)& ((arg1)->centreY);
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIndividualLayoutConstraint, 0 | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_new_LayoutConstraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxLayoutConstraints *result = 0 ;
|
|
|
|
if (!SWIG_Python_UnpackTuple(args,"new_LayoutConstraints",0,0,0)) SWIG_fail;
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (wxLayoutConstraints *)new wxLayoutConstraints();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_NEW | 0 );
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_delete_LayoutConstraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, SWIG_POINTER_DISOWN | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LayoutConstraints" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
delete arg1;
|
|
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
resultobj = SWIG_Py_Void();
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_LayoutConstraints_SatisfyConstraints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
|
|
wxWindow *arg2 = (wxWindow *) 0 ;
|
|
int *arg3 = (int *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
void *argp2 = 0 ;
|
|
int res2 = 0 ;
|
|
int temp3 ;
|
|
int res3 = SWIG_TMPOBJ ;
|
|
PyObject * obj0 = 0 ;
|
|
PyObject * obj1 = 0 ;
|
|
char * kwnames[] = {
|
|
(char *) "self",(char *) "win", NULL
|
|
};
|
|
|
|
arg3 = &temp3;
|
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LayoutConstraints_SatisfyConstraints",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_SatisfyConstraints" "', expected argument " "1"" of type '" "wxLayoutConstraints *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
|
|
res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
|
|
if (!SWIG_IsOK(res2)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "LayoutConstraints_SatisfyConstraints" "', expected argument " "2"" of type '" "wxWindow *""'");
|
|
}
|
|
arg2 = reinterpret_cast< wxWindow * >(argp2);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)(arg1)->SatisfyConstraints(arg2,arg3);
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
if (SWIG_IsTmpObj(res3)) {
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
|
|
} else {
|
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *_wrap_LayoutConstraints_AreSatisfied(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *resultobj = 0;
|
|
wxLayoutConstraints *arg1 = (wxLayoutConstraints *) 0 ;
|
|
bool result;
|
|
void *argp1 = 0 ;
|
|
int res1 = 0 ;
|
|
PyObject *swig_obj[1] ;
|
|
|
|
if (!args) SWIG_fail;
|
|
swig_obj[0] = args;
|
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLayoutConstraints, 0 | 0 );
|
|
if (!SWIG_IsOK(res1)) {
|
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LayoutConstraints_AreSatisfied" "', expected argument " "1"" of type '" "wxLayoutConstraints const *""'");
|
|
}
|
|
arg1 = reinterpret_cast< wxLayoutConstraints * >(argp1);
|
|
{
|
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
result = (bool)((wxLayoutConstraints const *)arg1)->AreSatisfied();
|
|
wxPyEndAllowThreads(__tstate);
|
|
if (PyErr_Occurred()) SWIG_fail;
|
|
}
|
|
{
|
|
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
|
|
}
|
|
return resultobj;
|
|
fail:
|
|
return NULL;
|
|
}
|
|
|
|
|
|
SWIGINTERN PyObject *LayoutConstraints_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
SWIG_TypeNewClientData(SWIGTYPE_p_wxLayoutConstraints, SWIG_NewClientData(obj));
|
|
return SWIG_Py_Void();
|
|
}
|
|
|
|
SWIGINTERN PyObject *LayoutConstraints_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
return SWIG_Python_InitShadowInstance(args);
|
|
}
|
|
|
|
static PyMethodDef SwigMethods[] = {
|
|
{ (char *)"_wxPySetDictionary", __wxPySetDictionary, METH_VARARGS, NULL},
|
|
{ (char *)"Object_GetClassName", (PyCFunction)_wrap_Object_GetClassName, METH_O, NULL},
|
|
{ (char *)"Object_Destroy", (PyCFunction)_wrap_Object_Destroy, METH_O, NULL},
|
|
{ (char *)"Object_IsSameAs", (PyCFunction) _wrap_Object_IsSameAs, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Object_swigregister", Object_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"Size_width_set", _wrap_Size_width_set, METH_VARARGS, NULL},
|
|
{ (char *)"Size_width_get", (PyCFunction)_wrap_Size_width_get, METH_O, NULL},
|
|
{ (char *)"Size_height_set", _wrap_Size_height_set, METH_VARARGS, NULL},
|
|
{ (char *)"Size_height_get", (PyCFunction)_wrap_Size_height_get, METH_O, NULL},
|
|
{ (char *)"new_Size", (PyCFunction) _wrap_new_Size, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_Size", (PyCFunction)_wrap_delete_Size, METH_O, NULL},
|
|
{ (char *)"Size___eq__", (PyCFunction) _wrap_Size___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Size___ne__", (PyCFunction) _wrap_Size___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Size___add__", (PyCFunction) _wrap_Size___add__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Size___sub__", (PyCFunction) _wrap_Size___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Size_IncTo", (PyCFunction) _wrap_Size_IncTo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Size_DecTo", (PyCFunction) _wrap_Size_DecTo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Size_IncBy", (PyCFunction) _wrap_Size_IncBy, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Size_DecBy", (PyCFunction) _wrap_Size_DecBy, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Size_Scale", (PyCFunction) _wrap_Size_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Size_Set", (PyCFunction) _wrap_Size_Set, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Size_SetWidth", (PyCFunction) _wrap_Size_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Size_SetHeight", (PyCFunction) _wrap_Size_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Size_GetWidth", (PyCFunction)_wrap_Size_GetWidth, METH_O, NULL},
|
|
{ (char *)"Size_GetHeight", (PyCFunction)_wrap_Size_GetHeight, METH_O, NULL},
|
|
{ (char *)"Size_IsFullySpecified", (PyCFunction)_wrap_Size_IsFullySpecified, METH_O, NULL},
|
|
{ (char *)"Size_SetDefaults", (PyCFunction) _wrap_Size_SetDefaults, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Size_Get", (PyCFunction)_wrap_Size_Get, METH_O, NULL},
|
|
{ (char *)"Size_swigregister", Size_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"Size_swiginit", Size_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"RealPoint_x_set", _wrap_RealPoint_x_set, METH_VARARGS, NULL},
|
|
{ (char *)"RealPoint_x_get", (PyCFunction)_wrap_RealPoint_x_get, METH_O, NULL},
|
|
{ (char *)"RealPoint_y_set", _wrap_RealPoint_y_set, METH_VARARGS, NULL},
|
|
{ (char *)"RealPoint_y_get", (PyCFunction)_wrap_RealPoint_y_get, METH_O, NULL},
|
|
{ (char *)"new_RealPoint", (PyCFunction) _wrap_new_RealPoint, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_RealPoint", (PyCFunction)_wrap_delete_RealPoint, METH_O, NULL},
|
|
{ (char *)"RealPoint___eq__", (PyCFunction) _wrap_RealPoint___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"RealPoint___ne__", (PyCFunction) _wrap_RealPoint___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"RealPoint___add__", (PyCFunction) _wrap_RealPoint___add__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"RealPoint___sub__", (PyCFunction) _wrap_RealPoint___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"RealPoint_Set", (PyCFunction) _wrap_RealPoint_Set, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"RealPoint_Get", (PyCFunction)_wrap_RealPoint_Get, METH_O, NULL},
|
|
{ (char *)"RealPoint_swigregister", RealPoint_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"RealPoint_swiginit", RealPoint_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"Point_x_set", _wrap_Point_x_set, METH_VARARGS, NULL},
|
|
{ (char *)"Point_x_get", (PyCFunction)_wrap_Point_x_get, METH_O, NULL},
|
|
{ (char *)"Point_y_set", _wrap_Point_y_set, METH_VARARGS, NULL},
|
|
{ (char *)"Point_y_get", (PyCFunction)_wrap_Point_y_get, METH_O, NULL},
|
|
{ (char *)"new_Point", (PyCFunction) _wrap_new_Point, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_Point", (PyCFunction)_wrap_delete_Point, METH_O, NULL},
|
|
{ (char *)"Point___eq__", (PyCFunction) _wrap_Point___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point___ne__", (PyCFunction) _wrap_Point___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point___add__", (PyCFunction) _wrap_Point___add__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point___sub__", (PyCFunction) _wrap_Point___sub__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point___iadd__", (PyCFunction) _wrap_Point___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point___isub__", (PyCFunction) _wrap_Point___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point_Set", (PyCFunction) _wrap_Point_Set, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point_Get", (PyCFunction)_wrap_Point_Get, METH_O, NULL},
|
|
{ (char *)"Point_swigregister", Point_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"Point_swiginit", Point_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_Rect", (PyCFunction) _wrap_new_Rect, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_RectPP", (PyCFunction) _wrap_new_RectPP, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_RectPS", (PyCFunction) _wrap_new_RectPS, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_RectS", (PyCFunction) _wrap_new_RectS, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_Rect", (PyCFunction)_wrap_delete_Rect, METH_O, NULL},
|
|
{ (char *)"Rect_GetX", (PyCFunction)_wrap_Rect_GetX, METH_O, NULL},
|
|
{ (char *)"Rect_SetX", (PyCFunction) _wrap_Rect_SetX, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_GetY", (PyCFunction)_wrap_Rect_GetY, METH_O, NULL},
|
|
{ (char *)"Rect_SetY", (PyCFunction) _wrap_Rect_SetY, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_GetWidth", (PyCFunction)_wrap_Rect_GetWidth, METH_O, NULL},
|
|
{ (char *)"Rect_SetWidth", (PyCFunction) _wrap_Rect_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_GetHeight", (PyCFunction)_wrap_Rect_GetHeight, METH_O, NULL},
|
|
{ (char *)"Rect_SetHeight", (PyCFunction) _wrap_Rect_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_GetPosition", (PyCFunction)_wrap_Rect_GetPosition, METH_O, NULL},
|
|
{ (char *)"Rect_SetPosition", (PyCFunction) _wrap_Rect_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_GetSize", (PyCFunction)_wrap_Rect_GetSize, METH_O, NULL},
|
|
{ (char *)"Rect_SetSize", (PyCFunction) _wrap_Rect_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_IsEmpty", (PyCFunction)_wrap_Rect_IsEmpty, METH_O, NULL},
|
|
{ (char *)"Rect_GetTopLeft", (PyCFunction)_wrap_Rect_GetTopLeft, METH_O, NULL},
|
|
{ (char *)"Rect_SetTopLeft", (PyCFunction) _wrap_Rect_SetTopLeft, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_GetBottomRight", (PyCFunction)_wrap_Rect_GetBottomRight, METH_O, NULL},
|
|
{ (char *)"Rect_SetBottomRight", (PyCFunction) _wrap_Rect_SetBottomRight, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_GetTopRight", (PyCFunction)_wrap_Rect_GetTopRight, METH_O, NULL},
|
|
{ (char *)"Rect_SetTopRight", (PyCFunction) _wrap_Rect_SetTopRight, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_GetBottomLeft", (PyCFunction)_wrap_Rect_GetBottomLeft, METH_O, NULL},
|
|
{ (char *)"Rect_SetBottomLeft", (PyCFunction) _wrap_Rect_SetBottomLeft, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_GetLeft", (PyCFunction)_wrap_Rect_GetLeft, METH_O, NULL},
|
|
{ (char *)"Rect_GetTop", (PyCFunction)_wrap_Rect_GetTop, METH_O, NULL},
|
|
{ (char *)"Rect_GetBottom", (PyCFunction)_wrap_Rect_GetBottom, METH_O, NULL},
|
|
{ (char *)"Rect_GetRight", (PyCFunction)_wrap_Rect_GetRight, METH_O, NULL},
|
|
{ (char *)"Rect_SetLeft", (PyCFunction) _wrap_Rect_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_SetRight", (PyCFunction) _wrap_Rect_SetRight, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_SetTop", (PyCFunction) _wrap_Rect_SetTop, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_SetBottom", (PyCFunction) _wrap_Rect_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_Inflate", (PyCFunction) _wrap_Rect_Inflate, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_Deflate", (PyCFunction) _wrap_Rect_Deflate, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_OffsetXY", (PyCFunction) _wrap_Rect_OffsetXY, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_Offset", (PyCFunction) _wrap_Rect_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_Intersect", (PyCFunction) _wrap_Rect_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_Union", (PyCFunction) _wrap_Rect_Union, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect___add__", (PyCFunction) _wrap_Rect___add__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect___iadd__", (PyCFunction) _wrap_Rect___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect___eq__", (PyCFunction) _wrap_Rect___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect___ne__", (PyCFunction) _wrap_Rect___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_ContainsXY", (PyCFunction) _wrap_Rect_ContainsXY, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_Contains", (PyCFunction) _wrap_Rect_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_ContainsRect", (PyCFunction) _wrap_Rect_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_Intersects", (PyCFunction) _wrap_Rect_Intersects, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_CenterIn", (PyCFunction) _wrap_Rect_CenterIn, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_x_set", _wrap_Rect_x_set, METH_VARARGS, NULL},
|
|
{ (char *)"Rect_x_get", (PyCFunction)_wrap_Rect_x_get, METH_O, NULL},
|
|
{ (char *)"Rect_y_set", _wrap_Rect_y_set, METH_VARARGS, NULL},
|
|
{ (char *)"Rect_y_get", (PyCFunction)_wrap_Rect_y_get, METH_O, NULL},
|
|
{ (char *)"Rect_width_set", _wrap_Rect_width_set, METH_VARARGS, NULL},
|
|
{ (char *)"Rect_width_get", (PyCFunction)_wrap_Rect_width_get, METH_O, NULL},
|
|
{ (char *)"Rect_height_set", _wrap_Rect_height_set, METH_VARARGS, NULL},
|
|
{ (char *)"Rect_height_get", (PyCFunction)_wrap_Rect_height_get, METH_O, NULL},
|
|
{ (char *)"Rect_Set", (PyCFunction) _wrap_Rect_Set, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect_Get", (PyCFunction)_wrap_Rect_Get, METH_O, NULL},
|
|
{ (char *)"Rect_swigregister", Rect_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"Rect_swiginit", Rect_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"IntersectRect", (PyCFunction) _wrap_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_Point2D", (PyCFunction) _wrap_new_Point2D, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_Point2DCopy", (PyCFunction) _wrap_new_Point2DCopy, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_Point2DFromPoint", (PyCFunction) _wrap_new_Point2DFromPoint, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_Point2D", (PyCFunction)_wrap_delete_Point2D, METH_O, NULL},
|
|
{ (char *)"Point2D_GetFloor", (PyCFunction)_wrap_Point2D_GetFloor, METH_O, NULL},
|
|
{ (char *)"Point2D_GetRounded", (PyCFunction)_wrap_Point2D_GetRounded, METH_O, NULL},
|
|
{ (char *)"Point2D_GetVectorLength", (PyCFunction)_wrap_Point2D_GetVectorLength, METH_O, NULL},
|
|
{ (char *)"Point2D_GetVectorAngle", (PyCFunction)_wrap_Point2D_GetVectorAngle, METH_O, NULL},
|
|
{ (char *)"Point2D_SetVectorLength", (PyCFunction) _wrap_Point2D_SetVectorLength, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point2D_SetVectorAngle", (PyCFunction) _wrap_Point2D_SetVectorAngle, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point2D_GetDistance", (PyCFunction) _wrap_Point2D_GetDistance, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point2D_GetDistanceSquare", (PyCFunction) _wrap_Point2D_GetDistanceSquare, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point2D_GetDotProduct", (PyCFunction) _wrap_Point2D_GetDotProduct, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point2D_GetCrossProduct", (PyCFunction) _wrap_Point2D_GetCrossProduct, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point2D___neg__", (PyCFunction)_wrap_Point2D___neg__, METH_O, NULL},
|
|
{ (char *)"Point2D___iadd__", (PyCFunction) _wrap_Point2D___iadd__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point2D___isub__", (PyCFunction) _wrap_Point2D___isub__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point2D___imul__", (PyCFunction) _wrap_Point2D___imul__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point2D___idiv__", (PyCFunction) _wrap_Point2D___idiv__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point2D___eq__", (PyCFunction) _wrap_Point2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point2D___ne__", (PyCFunction) _wrap_Point2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point2D_x_set", _wrap_Point2D_x_set, METH_VARARGS, NULL},
|
|
{ (char *)"Point2D_x_get", (PyCFunction)_wrap_Point2D_x_get, METH_O, NULL},
|
|
{ (char *)"Point2D_y_set", _wrap_Point2D_y_set, METH_VARARGS, NULL},
|
|
{ (char *)"Point2D_y_get", (PyCFunction)_wrap_Point2D_y_get, METH_O, NULL},
|
|
{ (char *)"Point2D_Set", (PyCFunction) _wrap_Point2D_Set, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Point2D_Get", (PyCFunction)_wrap_Point2D_Get, METH_O, NULL},
|
|
{ (char *)"Point2D_swigregister", Point2D_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"Point2D_swiginit", Point2D_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_Rect2D", (PyCFunction) _wrap_new_Rect2D, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_Rect2D", (PyCFunction)_wrap_delete_Rect2D, METH_O, NULL},
|
|
{ (char *)"Rect2D_GetPosition", (PyCFunction)_wrap_Rect2D_GetPosition, METH_O, NULL},
|
|
{ (char *)"Rect2D_GetSize", (PyCFunction)_wrap_Rect2D_GetSize, METH_O, NULL},
|
|
{ (char *)"Rect2D_GetLeft", (PyCFunction)_wrap_Rect2D_GetLeft, METH_O, NULL},
|
|
{ (char *)"Rect2D_SetLeft", (PyCFunction) _wrap_Rect2D_SetLeft, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_MoveLeftTo", (PyCFunction) _wrap_Rect2D_MoveLeftTo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_GetTop", (PyCFunction)_wrap_Rect2D_GetTop, METH_O, NULL},
|
|
{ (char *)"Rect2D_SetTop", (PyCFunction) _wrap_Rect2D_SetTop, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_MoveTopTo", (PyCFunction) _wrap_Rect2D_MoveTopTo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_GetBottom", (PyCFunction)_wrap_Rect2D_GetBottom, METH_O, NULL},
|
|
{ (char *)"Rect2D_SetBottom", (PyCFunction) _wrap_Rect2D_SetBottom, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_MoveBottomTo", (PyCFunction) _wrap_Rect2D_MoveBottomTo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_GetRight", (PyCFunction)_wrap_Rect2D_GetRight, METH_O, NULL},
|
|
{ (char *)"Rect2D_SetRight", (PyCFunction) _wrap_Rect2D_SetRight, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_MoveRightTo", (PyCFunction) _wrap_Rect2D_MoveRightTo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_GetLeftTop", (PyCFunction)_wrap_Rect2D_GetLeftTop, METH_O, NULL},
|
|
{ (char *)"Rect2D_SetLeftTop", (PyCFunction) _wrap_Rect2D_SetLeftTop, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_MoveLeftTopTo", (PyCFunction) _wrap_Rect2D_MoveLeftTopTo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_GetLeftBottom", (PyCFunction)_wrap_Rect2D_GetLeftBottom, METH_O, NULL},
|
|
{ (char *)"Rect2D_SetLeftBottom", (PyCFunction) _wrap_Rect2D_SetLeftBottom, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_MoveLeftBottomTo", (PyCFunction) _wrap_Rect2D_MoveLeftBottomTo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_GetRightTop", (PyCFunction)_wrap_Rect2D_GetRightTop, METH_O, NULL},
|
|
{ (char *)"Rect2D_SetRightTop", (PyCFunction) _wrap_Rect2D_SetRightTop, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_MoveRightTopTo", (PyCFunction) _wrap_Rect2D_MoveRightTopTo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_GetRightBottom", (PyCFunction)_wrap_Rect2D_GetRightBottom, METH_O, NULL},
|
|
{ (char *)"Rect2D_SetRightBottom", (PyCFunction) _wrap_Rect2D_SetRightBottom, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_MoveRightBottomTo", (PyCFunction) _wrap_Rect2D_MoveRightBottomTo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_GetCentre", (PyCFunction)_wrap_Rect2D_GetCentre, METH_O, NULL},
|
|
{ (char *)"Rect2D_SetCentre", (PyCFunction) _wrap_Rect2D_SetCentre, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_MoveCentreTo", (PyCFunction) _wrap_Rect2D_MoveCentreTo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_GetOutcode", (PyCFunction) _wrap_Rect2D_GetOutcode, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_Contains", (PyCFunction) _wrap_Rect2D_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_ContainsRect", (PyCFunction) _wrap_Rect2D_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_IsEmpty", (PyCFunction)_wrap_Rect2D_IsEmpty, METH_O, NULL},
|
|
{ (char *)"Rect2D_HaveEqualSize", (PyCFunction) _wrap_Rect2D_HaveEqualSize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_Inset", _wrap_Rect2D_Inset, METH_VARARGS, NULL},
|
|
{ (char *)"Rect2D_Offset", (PyCFunction) _wrap_Rect2D_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_ConstrainTo", (PyCFunction) _wrap_Rect2D_ConstrainTo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_Interpolate", (PyCFunction) _wrap_Rect2D_Interpolate, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_Intersect", (PyCFunction) _wrap_Rect2D_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_CreateIntersection", (PyCFunction) _wrap_Rect2D_CreateIntersection, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_Intersects", (PyCFunction) _wrap_Rect2D_Intersects, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_Union", (PyCFunction) _wrap_Rect2D_Union, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_CreateUnion", (PyCFunction) _wrap_Rect2D_CreateUnion, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_Scale", _wrap_Rect2D_Scale, METH_VARARGS, NULL},
|
|
{ (char *)"Rect2D___eq__", (PyCFunction) _wrap_Rect2D___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D___ne__", (PyCFunction) _wrap_Rect2D___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_x_set", _wrap_Rect2D_x_set, METH_VARARGS, NULL},
|
|
{ (char *)"Rect2D_x_get", (PyCFunction)_wrap_Rect2D_x_get, METH_O, NULL},
|
|
{ (char *)"Rect2D_y_set", _wrap_Rect2D_y_set, METH_VARARGS, NULL},
|
|
{ (char *)"Rect2D_y_get", (PyCFunction)_wrap_Rect2D_y_get, METH_O, NULL},
|
|
{ (char *)"Rect2D_width_set", _wrap_Rect2D_width_set, METH_VARARGS, NULL},
|
|
{ (char *)"Rect2D_width_get", (PyCFunction)_wrap_Rect2D_width_get, METH_O, NULL},
|
|
{ (char *)"Rect2D_height_set", _wrap_Rect2D_height_set, METH_VARARGS, NULL},
|
|
{ (char *)"Rect2D_height_get", (PyCFunction)_wrap_Rect2D_height_get, METH_O, NULL},
|
|
{ (char *)"Rect2D_Set", (PyCFunction) _wrap_Rect2D_Set, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Rect2D_Get", (PyCFunction)_wrap_Rect2D_Get, METH_O, NULL},
|
|
{ (char *)"Rect2D_swigregister", Rect2D_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"Rect2D_swiginit", Rect2D_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_InputStream", (PyCFunction) _wrap_new_InputStream, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_InputStream", (PyCFunction)_wrap_delete_InputStream, METH_O, NULL},
|
|
{ (char *)"InputStream_close", (PyCFunction)_wrap_InputStream_close, METH_O, NULL},
|
|
{ (char *)"InputStream_flush", (PyCFunction)_wrap_InputStream_flush, METH_O, NULL},
|
|
{ (char *)"InputStream_eof", (PyCFunction)_wrap_InputStream_eof, METH_O, NULL},
|
|
{ (char *)"InputStream_read", (PyCFunction) _wrap_InputStream_read, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"InputStream_readline", (PyCFunction) _wrap_InputStream_readline, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"InputStream_readlines", (PyCFunction) _wrap_InputStream_readlines, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"InputStream_seek", (PyCFunction) _wrap_InputStream_seek, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"InputStream_tell", (PyCFunction)_wrap_InputStream_tell, METH_O, NULL},
|
|
{ (char *)"InputStream_Peek", (PyCFunction)_wrap_InputStream_Peek, METH_O, NULL},
|
|
{ (char *)"InputStream_GetC", (PyCFunction)_wrap_InputStream_GetC, METH_O, NULL},
|
|
{ (char *)"InputStream_LastRead", (PyCFunction)_wrap_InputStream_LastRead, METH_O, NULL},
|
|
{ (char *)"InputStream_CanRead", (PyCFunction)_wrap_InputStream_CanRead, METH_O, NULL},
|
|
{ (char *)"InputStream_Eof", (PyCFunction)_wrap_InputStream_Eof, METH_O, NULL},
|
|
{ (char *)"InputStream_Ungetch", (PyCFunction) _wrap_InputStream_Ungetch, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"InputStream_SeekI", (PyCFunction) _wrap_InputStream_SeekI, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"InputStream_TellI", (PyCFunction)_wrap_InputStream_TellI, METH_O, NULL},
|
|
{ (char *)"InputStream_swigregister", InputStream_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"InputStream_swiginit", InputStream_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"OutputStream_write", (PyCFunction) _wrap_OutputStream_write, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"OutputStream_LastWrite", (PyCFunction)_wrap_OutputStream_LastWrite, METH_O, NULL},
|
|
{ (char *)"OutputStream_swigregister", OutputStream_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"new_FSFile", (PyCFunction) _wrap_new_FSFile, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_FSFile", (PyCFunction)_wrap_delete_FSFile, METH_O, NULL},
|
|
{ (char *)"FSFile_GetStream", (PyCFunction)_wrap_FSFile_GetStream, METH_O, NULL},
|
|
{ (char *)"FSFile_DetachStream", (PyCFunction)_wrap_FSFile_DetachStream, METH_O, NULL},
|
|
{ (char *)"FSFile_GetMimeType", (PyCFunction)_wrap_FSFile_GetMimeType, METH_O, NULL},
|
|
{ (char *)"FSFile_GetLocation", (PyCFunction)_wrap_FSFile_GetLocation, METH_O, NULL},
|
|
{ (char *)"FSFile_GetAnchor", (PyCFunction)_wrap_FSFile_GetAnchor, METH_O, NULL},
|
|
{ (char *)"FSFile_GetModificationTime", (PyCFunction)_wrap_FSFile_GetModificationTime, METH_O, NULL},
|
|
{ (char *)"FSFile_swigregister", FSFile_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"FSFile_swiginit", FSFile_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"delete_CPPFileSystemHandler", (PyCFunction)_wrap_delete_CPPFileSystemHandler, METH_O, NULL},
|
|
{ (char *)"CPPFileSystemHandler_swigregister", CPPFileSystemHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"new_FileSystemHandler", (PyCFunction)_wrap_new_FileSystemHandler, METH_NOARGS, NULL},
|
|
{ (char *)"FileSystemHandler__setCallbackInfo", (PyCFunction) _wrap_FileSystemHandler__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FileSystemHandler_CanOpen", (PyCFunction) _wrap_FileSystemHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FileSystemHandler_OpenFile", (PyCFunction) _wrap_FileSystemHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FileSystemHandler_FindFirst", (PyCFunction) _wrap_FileSystemHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FileSystemHandler_FindNext", (PyCFunction)_wrap_FileSystemHandler_FindNext, METH_O, NULL},
|
|
{ (char *)"FileSystemHandler_GetProtocol", (PyCFunction) _wrap_FileSystemHandler_GetProtocol, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FileSystemHandler_GetLeftLocation", (PyCFunction) _wrap_FileSystemHandler_GetLeftLocation, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FileSystemHandler_GetAnchor", (PyCFunction) _wrap_FileSystemHandler_GetAnchor, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FileSystemHandler_GetRightLocation", (PyCFunction) _wrap_FileSystemHandler_GetRightLocation, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FileSystemHandler_GetMimeTypeFromExt", (PyCFunction) _wrap_FileSystemHandler_GetMimeTypeFromExt, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FileSystemHandler_swigregister", FileSystemHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"FileSystemHandler_swiginit", FileSystemHandler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_FileSystem", (PyCFunction)_wrap_new_FileSystem, METH_NOARGS, NULL},
|
|
{ (char *)"delete_FileSystem", (PyCFunction)_wrap_delete_FileSystem, METH_O, NULL},
|
|
{ (char *)"FileSystem_ChangePathTo", (PyCFunction) _wrap_FileSystem_ChangePathTo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FileSystem_GetPath", (PyCFunction)_wrap_FileSystem_GetPath, METH_O, NULL},
|
|
{ (char *)"FileSystem_OpenFile", (PyCFunction) _wrap_FileSystem_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FileSystem_FindFirst", (PyCFunction) _wrap_FileSystem_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FileSystem_FindNext", (PyCFunction)_wrap_FileSystem_FindNext, METH_O, NULL},
|
|
{ (char *)"FileSystem_AddHandler", (PyCFunction) _wrap_FileSystem_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FileSystem_RemoveHandler", (PyCFunction) _wrap_FileSystem_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FileSystem_CleanUpHandlers", (PyCFunction)_wrap_FileSystem_CleanUpHandlers, METH_NOARGS, NULL},
|
|
{ (char *)"FileSystem_FileNameToURL", (PyCFunction) _wrap_FileSystem_FileNameToURL, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FileSystem_URLToFileName", (PyCFunction) _wrap_FileSystem_URLToFileName, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FileSystem_swigregister", FileSystem_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"FileSystem_swiginit", FileSystem_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_InternetFSHandler", (PyCFunction)_wrap_new_InternetFSHandler, METH_NOARGS, NULL},
|
|
{ (char *)"InternetFSHandler_CanOpen", (PyCFunction) _wrap_InternetFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"InternetFSHandler_OpenFile", (PyCFunction) _wrap_InternetFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"InternetFSHandler_swigregister", InternetFSHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"InternetFSHandler_swiginit", InternetFSHandler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_ZipFSHandler", (PyCFunction)_wrap_new_ZipFSHandler, METH_NOARGS, NULL},
|
|
{ (char *)"ZipFSHandler_CanOpen", (PyCFunction) _wrap_ZipFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ZipFSHandler_OpenFile", (PyCFunction) _wrap_ZipFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ZipFSHandler_FindFirst", (PyCFunction) _wrap_ZipFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ZipFSHandler_FindNext", (PyCFunction)_wrap_ZipFSHandler_FindNext, METH_O, NULL},
|
|
{ (char *)"ZipFSHandler_swigregister", ZipFSHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"ZipFSHandler_swiginit", ZipFSHandler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"__wxMemoryFSHandler_AddFile_wxImage", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxImage, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"__wxMemoryFSHandler_AddFile_wxBitmap", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_wxBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"__wxMemoryFSHandler_AddFile_Data", (PyCFunction) _wrap___wxMemoryFSHandler_AddFile_Data, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_MemoryFSHandler", (PyCFunction)_wrap_new_MemoryFSHandler, METH_NOARGS, NULL},
|
|
{ (char *)"MemoryFSHandler_RemoveFile", (PyCFunction) _wrap_MemoryFSHandler_RemoveFile, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MemoryFSHandler_CanOpen", (PyCFunction) _wrap_MemoryFSHandler_CanOpen, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MemoryFSHandler_OpenFile", (PyCFunction) _wrap_MemoryFSHandler_OpenFile, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MemoryFSHandler_FindFirst", (PyCFunction) _wrap_MemoryFSHandler_FindFirst, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MemoryFSHandler_FindNext", (PyCFunction)_wrap_MemoryFSHandler_FindNext, METH_O, NULL},
|
|
{ (char *)"MemoryFSHandler_swigregister", MemoryFSHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"MemoryFSHandler_swiginit", MemoryFSHandler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"ImageHandler_GetName", (PyCFunction)_wrap_ImageHandler_GetName, METH_O, NULL},
|
|
{ (char *)"ImageHandler_GetExtension", (PyCFunction)_wrap_ImageHandler_GetExtension, METH_O, NULL},
|
|
{ (char *)"ImageHandler_GetType", (PyCFunction)_wrap_ImageHandler_GetType, METH_O, NULL},
|
|
{ (char *)"ImageHandler_GetMimeType", (PyCFunction)_wrap_ImageHandler_GetMimeType, METH_O, NULL},
|
|
{ (char *)"ImageHandler_CanRead", (PyCFunction) _wrap_ImageHandler_CanRead, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ImageHandler_CanReadStream", (PyCFunction) _wrap_ImageHandler_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ImageHandler_SetName", (PyCFunction) _wrap_ImageHandler_SetName, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ImageHandler_SetExtension", (PyCFunction) _wrap_ImageHandler_SetExtension, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ImageHandler_SetType", (PyCFunction) _wrap_ImageHandler_SetType, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ImageHandler_SetMimeType", (PyCFunction) _wrap_ImageHandler_SetMimeType, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ImageHandler_swigregister", ImageHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"new_PyImageHandler", (PyCFunction)_wrap_new_PyImageHandler, METH_NOARGS, NULL},
|
|
{ (char *)"PyImageHandler__SetSelf", (PyCFunction) _wrap_PyImageHandler__SetSelf, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyImageHandler_swigregister", PyImageHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"PyImageHandler_swiginit", PyImageHandler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_ImageHistogram", (PyCFunction)_wrap_new_ImageHistogram, METH_NOARGS, NULL},
|
|
{ (char *)"ImageHistogram_MakeKey", (PyCFunction) _wrap_ImageHistogram_MakeKey, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ImageHistogram_FindFirstUnusedColour", (PyCFunction) _wrap_ImageHistogram_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ImageHistogram_GetCount", (PyCFunction) _wrap_ImageHistogram_GetCount, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ImageHistogram_GetCountRGB", (PyCFunction) _wrap_ImageHistogram_GetCountRGB, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ImageHistogram_GetCountColour", (PyCFunction) _wrap_ImageHistogram_GetCountColour, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ImageHistogram_swigregister", ImageHistogram_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"ImageHistogram_swiginit", ImageHistogram_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_Image_RGBValue", (PyCFunction) _wrap_new_Image_RGBValue, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_RGBValue_red_set", _wrap_Image_RGBValue_red_set, METH_VARARGS, NULL},
|
|
{ (char *)"Image_RGBValue_red_get", (PyCFunction)_wrap_Image_RGBValue_red_get, METH_O, NULL},
|
|
{ (char *)"Image_RGBValue_green_set", _wrap_Image_RGBValue_green_set, METH_VARARGS, NULL},
|
|
{ (char *)"Image_RGBValue_green_get", (PyCFunction)_wrap_Image_RGBValue_green_get, METH_O, NULL},
|
|
{ (char *)"Image_RGBValue_blue_set", _wrap_Image_RGBValue_blue_set, METH_VARARGS, NULL},
|
|
{ (char *)"Image_RGBValue_blue_get", (PyCFunction)_wrap_Image_RGBValue_blue_get, METH_O, NULL},
|
|
{ (char *)"Image_RGBValue_swigregister", Image_RGBValue_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"Image_RGBValue_swiginit", Image_RGBValue_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_Image_HSVValue", (PyCFunction) _wrap_new_Image_HSVValue, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_HSVValue_hue_set", _wrap_Image_HSVValue_hue_set, METH_VARARGS, NULL},
|
|
{ (char *)"Image_HSVValue_hue_get", (PyCFunction)_wrap_Image_HSVValue_hue_get, METH_O, NULL},
|
|
{ (char *)"Image_HSVValue_saturation_set", _wrap_Image_HSVValue_saturation_set, METH_VARARGS, NULL},
|
|
{ (char *)"Image_HSVValue_saturation_get", (PyCFunction)_wrap_Image_HSVValue_saturation_get, METH_O, NULL},
|
|
{ (char *)"Image_HSVValue_value_set", _wrap_Image_HSVValue_value_set, METH_VARARGS, NULL},
|
|
{ (char *)"Image_HSVValue_value_get", (PyCFunction)_wrap_Image_HSVValue_value_get, METH_O, NULL},
|
|
{ (char *)"Image_HSVValue_swigregister", Image_HSVValue_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"Image_HSVValue_swiginit", Image_HSVValue_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_Image", (PyCFunction) _wrap_new_Image, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_Image", (PyCFunction)_wrap_delete_Image, METH_O, NULL},
|
|
{ (char *)"new_ImageFromMime", (PyCFunction) _wrap_new_ImageFromMime, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_ImageFromStream", (PyCFunction) _wrap_new_ImageFromStream, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_ImageFromStreamMime", (PyCFunction) _wrap_new_ImageFromStreamMime, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_EmptyImage", (PyCFunction) _wrap_new_EmptyImage, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_ImageFromBitmap", (PyCFunction) _wrap_new_ImageFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_ImageFromData", (PyCFunction) _wrap_new_ImageFromData, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_ImageFromDataWithAlpha", (PyCFunction) _wrap_new_ImageFromDataWithAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_Create", (PyCFunction) _wrap_Image_Create, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_Destroy", (PyCFunction)_wrap_Image_Destroy, METH_O, NULL},
|
|
{ (char *)"Image_Scale", (PyCFunction) _wrap_Image_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_ResampleBox", (PyCFunction) _wrap_Image_ResampleBox, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_ResampleBicubic", (PyCFunction) _wrap_Image_ResampleBicubic, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_Blur", (PyCFunction) _wrap_Image_Blur, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_BlurHorizontal", (PyCFunction) _wrap_Image_BlurHorizontal, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_BlurVertical", (PyCFunction) _wrap_Image_BlurVertical, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_ShrinkBy", (PyCFunction) _wrap_Image_ShrinkBy, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_Rescale", (PyCFunction) _wrap_Image_Rescale, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_Resize", (PyCFunction) _wrap_Image_Resize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_SetRGB", (PyCFunction) _wrap_Image_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_SetRGBRect", (PyCFunction) _wrap_Image_SetRGBRect, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_GetRed", (PyCFunction) _wrap_Image_GetRed, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_GetGreen", (PyCFunction) _wrap_Image_GetGreen, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_GetBlue", (PyCFunction) _wrap_Image_GetBlue, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_SetAlpha", (PyCFunction) _wrap_Image_SetAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_GetAlpha", (PyCFunction) _wrap_Image_GetAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_HasAlpha", (PyCFunction)_wrap_Image_HasAlpha, METH_O, NULL},
|
|
{ (char *)"Image_InitAlpha", (PyCFunction)_wrap_Image_InitAlpha, METH_O, NULL},
|
|
{ (char *)"Image_IsTransparent", (PyCFunction) _wrap_Image_IsTransparent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_FindFirstUnusedColour", (PyCFunction) _wrap_Image_FindFirstUnusedColour, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_ConvertAlphaToMask", (PyCFunction) _wrap_Image_ConvertAlphaToMask, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_ConvertColourToAlpha", (PyCFunction) _wrap_Image_ConvertColourToAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_SetMaskFromImage", (PyCFunction) _wrap_Image_SetMaskFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_CanRead", (PyCFunction) _wrap_Image_CanRead, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_GetImageCount", (PyCFunction) _wrap_Image_GetImageCount, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_LoadFile", (PyCFunction) _wrap_Image_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_LoadMimeFile", (PyCFunction) _wrap_Image_LoadMimeFile, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_SaveFile", (PyCFunction) _wrap_Image_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_SaveMimeFile", (PyCFunction) _wrap_Image_SaveMimeFile, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_CanReadStream", (PyCFunction) _wrap_Image_CanReadStream, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_LoadStream", (PyCFunction) _wrap_Image_LoadStream, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_LoadMimeStream", (PyCFunction) _wrap_Image_LoadMimeStream, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_IsOk", (PyCFunction)_wrap_Image_IsOk, METH_O, NULL},
|
|
{ (char *)"Image_GetWidth", (PyCFunction)_wrap_Image_GetWidth, METH_O, NULL},
|
|
{ (char *)"Image_GetHeight", (PyCFunction)_wrap_Image_GetHeight, METH_O, NULL},
|
|
{ (char *)"Image_GetSize", (PyCFunction)_wrap_Image_GetSize, METH_O, NULL},
|
|
{ (char *)"Image_GetSubImage", (PyCFunction) _wrap_Image_GetSubImage, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_Size", (PyCFunction) _wrap_Image_Size, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_Copy", (PyCFunction)_wrap_Image_Copy, METH_O, NULL},
|
|
{ (char *)"Image_Paste", (PyCFunction) _wrap_Image_Paste, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_GetData", (PyCFunction)_wrap_Image_GetData, METH_O, NULL},
|
|
{ (char *)"Image_SetData", (PyCFunction) _wrap_Image_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_GetDataBuffer", (PyCFunction)_wrap_Image_GetDataBuffer, METH_O, NULL},
|
|
{ (char *)"Image_SetDataBuffer", (PyCFunction) _wrap_Image_SetDataBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_GetAlphaData", (PyCFunction)_wrap_Image_GetAlphaData, METH_O, NULL},
|
|
{ (char *)"Image_SetAlphaData", (PyCFunction) _wrap_Image_SetAlphaData, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_GetAlphaBuffer", (PyCFunction)_wrap_Image_GetAlphaBuffer, METH_O, NULL},
|
|
{ (char *)"Image_SetAlphaBuffer", (PyCFunction) _wrap_Image_SetAlphaBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_SetMaskColour", (PyCFunction) _wrap_Image_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_GetOrFindMaskColour", (PyCFunction)_wrap_Image_GetOrFindMaskColour, METH_O, NULL},
|
|
{ (char *)"Image_GetMaskRed", (PyCFunction)_wrap_Image_GetMaskRed, METH_O, NULL},
|
|
{ (char *)"Image_GetMaskGreen", (PyCFunction)_wrap_Image_GetMaskGreen, METH_O, NULL},
|
|
{ (char *)"Image_GetMaskBlue", (PyCFunction)_wrap_Image_GetMaskBlue, METH_O, NULL},
|
|
{ (char *)"Image_SetMask", (PyCFunction) _wrap_Image_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_HasMask", (PyCFunction)_wrap_Image_HasMask, METH_O, NULL},
|
|
{ (char *)"Image_Rotate", (PyCFunction) _wrap_Image_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_Rotate90", (PyCFunction) _wrap_Image_Rotate90, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_Mirror", (PyCFunction) _wrap_Image_Mirror, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_Replace", (PyCFunction) _wrap_Image_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_ConvertToGreyscale", (PyCFunction) _wrap_Image_ConvertToGreyscale, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_ConvertToMono", (PyCFunction) _wrap_Image_ConvertToMono, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_SetOption", (PyCFunction) _wrap_Image_SetOption, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_SetOptionInt", (PyCFunction) _wrap_Image_SetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_GetOption", (PyCFunction) _wrap_Image_GetOption, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_GetOptionInt", (PyCFunction) _wrap_Image_GetOptionInt, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_HasOption", (PyCFunction) _wrap_Image_HasOption, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_CountColours", (PyCFunction) _wrap_Image_CountColours, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_ComputeHistogram", (PyCFunction) _wrap_Image_ComputeHistogram, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_AddHandler", (PyCFunction) _wrap_Image_AddHandler, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_InsertHandler", (PyCFunction) _wrap_Image_InsertHandler, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_RemoveHandler", (PyCFunction) _wrap_Image_RemoveHandler, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_GetHandlers", (PyCFunction)_wrap_Image_GetHandlers, METH_NOARGS, NULL},
|
|
{ (char *)"Image_GetImageExtWildcard", (PyCFunction)_wrap_Image_GetImageExtWildcard, METH_NOARGS, NULL},
|
|
{ (char *)"Image_ConvertToBitmap", (PyCFunction) _wrap_Image_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_ConvertToMonoBitmap", (PyCFunction) _wrap_Image_ConvertToMonoBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_RotateHue", (PyCFunction) _wrap_Image_RotateHue, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_RGBtoHSV", (PyCFunction) _wrap_Image_RGBtoHSV, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_HSVtoRGB", (PyCFunction) _wrap_Image_HSVtoRGB, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Image_swigregister", Image_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"Image_swiginit", Image_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"_ImageFromBuffer", (PyCFunction) _wrap__ImageFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_BMPHandler", (PyCFunction)_wrap_new_BMPHandler, METH_NOARGS, NULL},
|
|
{ (char *)"BMPHandler_swigregister", BMPHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"BMPHandler_swiginit", BMPHandler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_ICOHandler", (PyCFunction)_wrap_new_ICOHandler, METH_NOARGS, NULL},
|
|
{ (char *)"ICOHandler_swigregister", ICOHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"ICOHandler_swiginit", ICOHandler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_CURHandler", (PyCFunction)_wrap_new_CURHandler, METH_NOARGS, NULL},
|
|
{ (char *)"CURHandler_swigregister", CURHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CURHandler_swiginit", CURHandler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_ANIHandler", (PyCFunction)_wrap_new_ANIHandler, METH_NOARGS, NULL},
|
|
{ (char *)"ANIHandler_swigregister", ANIHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"ANIHandler_swiginit", ANIHandler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_PNGHandler", (PyCFunction)_wrap_new_PNGHandler, METH_NOARGS, NULL},
|
|
{ (char *)"PNGHandler_swigregister", PNGHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"PNGHandler_swiginit", PNGHandler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_GIFHandler", (PyCFunction)_wrap_new_GIFHandler, METH_NOARGS, NULL},
|
|
{ (char *)"GIFHandler_swigregister", GIFHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"GIFHandler_swiginit", GIFHandler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_PCXHandler", (PyCFunction)_wrap_new_PCXHandler, METH_NOARGS, NULL},
|
|
{ (char *)"PCXHandler_swigregister", PCXHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"PCXHandler_swiginit", PCXHandler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_JPEGHandler", (PyCFunction)_wrap_new_JPEGHandler, METH_NOARGS, NULL},
|
|
{ (char *)"JPEGHandler_swigregister", JPEGHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"JPEGHandler_swiginit", JPEGHandler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_PNMHandler", (PyCFunction)_wrap_new_PNMHandler, METH_NOARGS, NULL},
|
|
{ (char *)"PNMHandler_swigregister", PNMHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"PNMHandler_swiginit", PNMHandler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_XPMHandler", (PyCFunction)_wrap_new_XPMHandler, METH_NOARGS, NULL},
|
|
{ (char *)"XPMHandler_swigregister", XPMHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"XPMHandler_swiginit", XPMHandler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_TIFFHandler", (PyCFunction)_wrap_new_TIFFHandler, METH_NOARGS, NULL},
|
|
{ (char *)"TIFFHandler_swigregister", TIFFHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"TIFFHandler_swiginit", TIFFHandler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_TGAHandler", (PyCFunction)_wrap_new_TGAHandler, METH_NOARGS, NULL},
|
|
{ (char *)"TGAHandler_swigregister", TGAHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"TGAHandler_swiginit", TGAHandler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"Quantize_Quantize", (PyCFunction) _wrap_Quantize_Quantize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Quantize_swigregister", Quantize_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"new_EvtHandler", (PyCFunction)_wrap_new_EvtHandler, METH_NOARGS, NULL},
|
|
{ (char *)"EvtHandler_GetNextHandler", (PyCFunction)_wrap_EvtHandler_GetNextHandler, METH_O, NULL},
|
|
{ (char *)"EvtHandler_GetPreviousHandler", (PyCFunction)_wrap_EvtHandler_GetPreviousHandler, METH_O, NULL},
|
|
{ (char *)"EvtHandler_SetNextHandler", (PyCFunction) _wrap_EvtHandler_SetNextHandler, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"EvtHandler_SetPreviousHandler", (PyCFunction) _wrap_EvtHandler_SetPreviousHandler, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"EvtHandler_GetEvtHandlerEnabled", (PyCFunction)_wrap_EvtHandler_GetEvtHandlerEnabled, METH_O, NULL},
|
|
{ (char *)"EvtHandler_SetEvtHandlerEnabled", (PyCFunction) _wrap_EvtHandler_SetEvtHandlerEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"EvtHandler_ProcessEvent", (PyCFunction) _wrap_EvtHandler_ProcessEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"EvtHandler_AddPendingEvent", (PyCFunction) _wrap_EvtHandler_AddPendingEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"EvtHandler_ProcessPendingEvents", (PyCFunction)_wrap_EvtHandler_ProcessPendingEvents, METH_O, NULL},
|
|
{ (char *)"EvtHandler_Connect", (PyCFunction) _wrap_EvtHandler_Connect, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"EvtHandler_Disconnect", (PyCFunction) _wrap_EvtHandler_Disconnect, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"EvtHandler__setOORInfo", (PyCFunction) _wrap_EvtHandler__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"EvtHandler_swigregister", EvtHandler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"EvtHandler_swiginit", EvtHandler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"NewEventType", (PyCFunction)_wrap_NewEventType, METH_NOARGS, NULL},
|
|
{ (char *)"delete_Event", (PyCFunction)_wrap_delete_Event, METH_O, NULL},
|
|
{ (char *)"Event_SetEventType", (PyCFunction) _wrap_Event_SetEventType, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Event_GetEventType", (PyCFunction)_wrap_Event_GetEventType, METH_O, NULL},
|
|
{ (char *)"Event_GetEventObject", (PyCFunction)_wrap_Event_GetEventObject, METH_O, NULL},
|
|
{ (char *)"Event_SetEventObject", (PyCFunction) _wrap_Event_SetEventObject, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Event_GetTimestamp", (PyCFunction)_wrap_Event_GetTimestamp, METH_O, NULL},
|
|
{ (char *)"Event_SetTimestamp", (PyCFunction) _wrap_Event_SetTimestamp, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Event_GetId", (PyCFunction)_wrap_Event_GetId, METH_O, NULL},
|
|
{ (char *)"Event_SetId", (PyCFunction) _wrap_Event_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Event_IsCommandEvent", (PyCFunction)_wrap_Event_IsCommandEvent, METH_O, NULL},
|
|
{ (char *)"Event_Skip", (PyCFunction) _wrap_Event_Skip, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Event_GetSkipped", (PyCFunction)_wrap_Event_GetSkipped, METH_O, NULL},
|
|
{ (char *)"Event_ShouldPropagate", (PyCFunction)_wrap_Event_ShouldPropagate, METH_O, NULL},
|
|
{ (char *)"Event_StopPropagation", (PyCFunction)_wrap_Event_StopPropagation, METH_O, NULL},
|
|
{ (char *)"Event_ResumePropagation", (PyCFunction) _wrap_Event_ResumePropagation, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Event_Clone", (PyCFunction)_wrap_Event_Clone, METH_O, NULL},
|
|
{ (char *)"Event_swigregister", Event_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"new_PropagationDisabler", (PyCFunction) _wrap_new_PropagationDisabler, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_PropagationDisabler", (PyCFunction)_wrap_delete_PropagationDisabler, METH_O, NULL},
|
|
{ (char *)"PropagationDisabler_swigregister", PropagationDisabler_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"PropagationDisabler_swiginit", PropagationDisabler_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_PropagateOnce", (PyCFunction) _wrap_new_PropagateOnce, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_PropagateOnce", (PyCFunction)_wrap_delete_PropagateOnce, METH_O, NULL},
|
|
{ (char *)"PropagateOnce_swigregister", PropagateOnce_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"PropagateOnce_swiginit", PropagateOnce_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_CommandEvent", (PyCFunction) _wrap_new_CommandEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"CommandEvent_GetSelection", (PyCFunction)_wrap_CommandEvent_GetSelection, METH_O, NULL},
|
|
{ (char *)"CommandEvent_SetString", (PyCFunction) _wrap_CommandEvent_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"CommandEvent_GetString", (PyCFunction)_wrap_CommandEvent_GetString, METH_O, NULL},
|
|
{ (char *)"CommandEvent_IsChecked", (PyCFunction)_wrap_CommandEvent_IsChecked, METH_O, NULL},
|
|
{ (char *)"CommandEvent_IsSelection", (PyCFunction)_wrap_CommandEvent_IsSelection, METH_O, NULL},
|
|
{ (char *)"CommandEvent_SetExtraLong", (PyCFunction) _wrap_CommandEvent_SetExtraLong, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"CommandEvent_GetExtraLong", (PyCFunction)_wrap_CommandEvent_GetExtraLong, METH_O, NULL},
|
|
{ (char *)"CommandEvent_SetInt", (PyCFunction) _wrap_CommandEvent_SetInt, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"CommandEvent_GetInt", (PyCFunction)_wrap_CommandEvent_GetInt, METH_O, NULL},
|
|
{ (char *)"CommandEvent_GetClientData", (PyCFunction)_wrap_CommandEvent_GetClientData, METH_O, NULL},
|
|
{ (char *)"CommandEvent_SetClientData", (PyCFunction) _wrap_CommandEvent_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"CommandEvent_Clone", (PyCFunction)_wrap_CommandEvent_Clone, METH_O, NULL},
|
|
{ (char *)"CommandEvent_swigregister", CommandEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CommandEvent_swiginit", CommandEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_NotifyEvent", (PyCFunction) _wrap_new_NotifyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"NotifyEvent_Veto", (PyCFunction)_wrap_NotifyEvent_Veto, METH_O, NULL},
|
|
{ (char *)"NotifyEvent_Allow", (PyCFunction)_wrap_NotifyEvent_Allow, METH_O, NULL},
|
|
{ (char *)"NotifyEvent_IsAllowed", (PyCFunction)_wrap_NotifyEvent_IsAllowed, METH_O, NULL},
|
|
{ (char *)"NotifyEvent_swigregister", NotifyEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"NotifyEvent_swiginit", NotifyEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_ScrollEvent", (PyCFunction) _wrap_new_ScrollEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ScrollEvent_GetOrientation", (PyCFunction)_wrap_ScrollEvent_GetOrientation, METH_O, NULL},
|
|
{ (char *)"ScrollEvent_GetPosition", (PyCFunction)_wrap_ScrollEvent_GetPosition, METH_O, NULL},
|
|
{ (char *)"ScrollEvent_SetOrientation", (PyCFunction) _wrap_ScrollEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ScrollEvent_SetPosition", (PyCFunction) _wrap_ScrollEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ScrollEvent_swigregister", ScrollEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"ScrollEvent_swiginit", ScrollEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_ScrollWinEvent", (PyCFunction) _wrap_new_ScrollWinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ScrollWinEvent_GetOrientation", (PyCFunction)_wrap_ScrollWinEvent_GetOrientation, METH_O, NULL},
|
|
{ (char *)"ScrollWinEvent_GetPosition", (PyCFunction)_wrap_ScrollWinEvent_GetPosition, METH_O, NULL},
|
|
{ (char *)"ScrollWinEvent_SetOrientation", (PyCFunction) _wrap_ScrollWinEvent_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ScrollWinEvent_SetPosition", (PyCFunction) _wrap_ScrollWinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ScrollWinEvent_swigregister", ScrollWinEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"ScrollWinEvent_swiginit", ScrollWinEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_MouseEvent", (PyCFunction) _wrap_new_MouseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MouseEvent_IsButton", (PyCFunction)_wrap_MouseEvent_IsButton, METH_O, NULL},
|
|
{ (char *)"MouseEvent_ButtonDown", (PyCFunction) _wrap_MouseEvent_ButtonDown, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MouseEvent_ButtonDClick", (PyCFunction) _wrap_MouseEvent_ButtonDClick, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MouseEvent_ButtonUp", (PyCFunction) _wrap_MouseEvent_ButtonUp, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MouseEvent_Button", (PyCFunction) _wrap_MouseEvent_Button, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MouseEvent_ButtonIsDown", (PyCFunction) _wrap_MouseEvent_ButtonIsDown, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MouseEvent_GetButton", (PyCFunction)_wrap_MouseEvent_GetButton, METH_O, NULL},
|
|
{ (char *)"MouseEvent_ControlDown", (PyCFunction)_wrap_MouseEvent_ControlDown, METH_O, NULL},
|
|
{ (char *)"MouseEvent_MetaDown", (PyCFunction)_wrap_MouseEvent_MetaDown, METH_O, NULL},
|
|
{ (char *)"MouseEvent_AltDown", (PyCFunction)_wrap_MouseEvent_AltDown, METH_O, NULL},
|
|
{ (char *)"MouseEvent_ShiftDown", (PyCFunction)_wrap_MouseEvent_ShiftDown, METH_O, NULL},
|
|
{ (char *)"MouseEvent_CmdDown", (PyCFunction)_wrap_MouseEvent_CmdDown, METH_O, NULL},
|
|
{ (char *)"MouseEvent_LeftDown", (PyCFunction)_wrap_MouseEvent_LeftDown, METH_O, NULL},
|
|
{ (char *)"MouseEvent_MiddleDown", (PyCFunction)_wrap_MouseEvent_MiddleDown, METH_O, NULL},
|
|
{ (char *)"MouseEvent_RightDown", (PyCFunction)_wrap_MouseEvent_RightDown, METH_O, NULL},
|
|
{ (char *)"MouseEvent_LeftUp", (PyCFunction)_wrap_MouseEvent_LeftUp, METH_O, NULL},
|
|
{ (char *)"MouseEvent_MiddleUp", (PyCFunction)_wrap_MouseEvent_MiddleUp, METH_O, NULL},
|
|
{ (char *)"MouseEvent_RightUp", (PyCFunction)_wrap_MouseEvent_RightUp, METH_O, NULL},
|
|
{ (char *)"MouseEvent_LeftDClick", (PyCFunction)_wrap_MouseEvent_LeftDClick, METH_O, NULL},
|
|
{ (char *)"MouseEvent_MiddleDClick", (PyCFunction)_wrap_MouseEvent_MiddleDClick, METH_O, NULL},
|
|
{ (char *)"MouseEvent_RightDClick", (PyCFunction)_wrap_MouseEvent_RightDClick, METH_O, NULL},
|
|
{ (char *)"MouseEvent_LeftIsDown", (PyCFunction)_wrap_MouseEvent_LeftIsDown, METH_O, NULL},
|
|
{ (char *)"MouseEvent_MiddleIsDown", (PyCFunction)_wrap_MouseEvent_MiddleIsDown, METH_O, NULL},
|
|
{ (char *)"MouseEvent_RightIsDown", (PyCFunction)_wrap_MouseEvent_RightIsDown, METH_O, NULL},
|
|
{ (char *)"MouseEvent_Dragging", (PyCFunction)_wrap_MouseEvent_Dragging, METH_O, NULL},
|
|
{ (char *)"MouseEvent_Moving", (PyCFunction)_wrap_MouseEvent_Moving, METH_O, NULL},
|
|
{ (char *)"MouseEvent_Entering", (PyCFunction)_wrap_MouseEvent_Entering, METH_O, NULL},
|
|
{ (char *)"MouseEvent_Leaving", (PyCFunction)_wrap_MouseEvent_Leaving, METH_O, NULL},
|
|
{ (char *)"MouseEvent_GetPosition", (PyCFunction)_wrap_MouseEvent_GetPosition, METH_O, NULL},
|
|
{ (char *)"MouseEvent_GetPositionTuple", (PyCFunction)_wrap_MouseEvent_GetPositionTuple, METH_O, NULL},
|
|
{ (char *)"MouseEvent_GetLogicalPosition", (PyCFunction) _wrap_MouseEvent_GetLogicalPosition, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MouseEvent_GetX", (PyCFunction)_wrap_MouseEvent_GetX, METH_O, NULL},
|
|
{ (char *)"MouseEvent_GetY", (PyCFunction)_wrap_MouseEvent_GetY, METH_O, NULL},
|
|
{ (char *)"MouseEvent_GetWheelRotation", (PyCFunction)_wrap_MouseEvent_GetWheelRotation, METH_O, NULL},
|
|
{ (char *)"MouseEvent_GetWheelDelta", (PyCFunction)_wrap_MouseEvent_GetWheelDelta, METH_O, NULL},
|
|
{ (char *)"MouseEvent_GetLinesPerAction", (PyCFunction)_wrap_MouseEvent_GetLinesPerAction, METH_O, NULL},
|
|
{ (char *)"MouseEvent_IsPageScroll", (PyCFunction)_wrap_MouseEvent_IsPageScroll, METH_O, NULL},
|
|
{ (char *)"MouseEvent_m_x_set", _wrap_MouseEvent_m_x_set, METH_VARARGS, NULL},
|
|
{ (char *)"MouseEvent_m_x_get", (PyCFunction)_wrap_MouseEvent_m_x_get, METH_O, NULL},
|
|
{ (char *)"MouseEvent_m_y_set", _wrap_MouseEvent_m_y_set, METH_VARARGS, NULL},
|
|
{ (char *)"MouseEvent_m_y_get", (PyCFunction)_wrap_MouseEvent_m_y_get, METH_O, NULL},
|
|
{ (char *)"MouseEvent_m_leftDown_set", _wrap_MouseEvent_m_leftDown_set, METH_VARARGS, NULL},
|
|
{ (char *)"MouseEvent_m_leftDown_get", (PyCFunction)_wrap_MouseEvent_m_leftDown_get, METH_O, NULL},
|
|
{ (char *)"MouseEvent_m_middleDown_set", _wrap_MouseEvent_m_middleDown_set, METH_VARARGS, NULL},
|
|
{ (char *)"MouseEvent_m_middleDown_get", (PyCFunction)_wrap_MouseEvent_m_middleDown_get, METH_O, NULL},
|
|
{ (char *)"MouseEvent_m_rightDown_set", _wrap_MouseEvent_m_rightDown_set, METH_VARARGS, NULL},
|
|
{ (char *)"MouseEvent_m_rightDown_get", (PyCFunction)_wrap_MouseEvent_m_rightDown_get, METH_O, NULL},
|
|
{ (char *)"MouseEvent_m_controlDown_set", _wrap_MouseEvent_m_controlDown_set, METH_VARARGS, NULL},
|
|
{ (char *)"MouseEvent_m_controlDown_get", (PyCFunction)_wrap_MouseEvent_m_controlDown_get, METH_O, NULL},
|
|
{ (char *)"MouseEvent_m_shiftDown_set", _wrap_MouseEvent_m_shiftDown_set, METH_VARARGS, NULL},
|
|
{ (char *)"MouseEvent_m_shiftDown_get", (PyCFunction)_wrap_MouseEvent_m_shiftDown_get, METH_O, NULL},
|
|
{ (char *)"MouseEvent_m_altDown_set", _wrap_MouseEvent_m_altDown_set, METH_VARARGS, NULL},
|
|
{ (char *)"MouseEvent_m_altDown_get", (PyCFunction)_wrap_MouseEvent_m_altDown_get, METH_O, NULL},
|
|
{ (char *)"MouseEvent_m_metaDown_set", _wrap_MouseEvent_m_metaDown_set, METH_VARARGS, NULL},
|
|
{ (char *)"MouseEvent_m_metaDown_get", (PyCFunction)_wrap_MouseEvent_m_metaDown_get, METH_O, NULL},
|
|
{ (char *)"MouseEvent_m_wheelRotation_set", _wrap_MouseEvent_m_wheelRotation_set, METH_VARARGS, NULL},
|
|
{ (char *)"MouseEvent_m_wheelRotation_get", (PyCFunction)_wrap_MouseEvent_m_wheelRotation_get, METH_O, NULL},
|
|
{ (char *)"MouseEvent_m_wheelDelta_set", _wrap_MouseEvent_m_wheelDelta_set, METH_VARARGS, NULL},
|
|
{ (char *)"MouseEvent_m_wheelDelta_get", (PyCFunction)_wrap_MouseEvent_m_wheelDelta_get, METH_O, NULL},
|
|
{ (char *)"MouseEvent_m_linesPerAction_set", _wrap_MouseEvent_m_linesPerAction_set, METH_VARARGS, NULL},
|
|
{ (char *)"MouseEvent_m_linesPerAction_get", (PyCFunction)_wrap_MouseEvent_m_linesPerAction_get, METH_O, NULL},
|
|
{ (char *)"MouseEvent_swigregister", MouseEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"MouseEvent_swiginit", MouseEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_SetCursorEvent", (PyCFunction) _wrap_new_SetCursorEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SetCursorEvent_GetX", (PyCFunction)_wrap_SetCursorEvent_GetX, METH_O, NULL},
|
|
{ (char *)"SetCursorEvent_GetY", (PyCFunction)_wrap_SetCursorEvent_GetY, METH_O, NULL},
|
|
{ (char *)"SetCursorEvent_SetCursor", (PyCFunction) _wrap_SetCursorEvent_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SetCursorEvent_GetCursor", (PyCFunction)_wrap_SetCursorEvent_GetCursor, METH_O, NULL},
|
|
{ (char *)"SetCursorEvent_HasCursor", (PyCFunction)_wrap_SetCursorEvent_HasCursor, METH_O, NULL},
|
|
{ (char *)"SetCursorEvent_swigregister", SetCursorEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"SetCursorEvent_swiginit", SetCursorEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_KeyEvent", (PyCFunction) _wrap_new_KeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"KeyEvent_GetModifiers", (PyCFunction)_wrap_KeyEvent_GetModifiers, METH_O, NULL},
|
|
{ (char *)"KeyEvent_ControlDown", (PyCFunction)_wrap_KeyEvent_ControlDown, METH_O, NULL},
|
|
{ (char *)"KeyEvent_MetaDown", (PyCFunction)_wrap_KeyEvent_MetaDown, METH_O, NULL},
|
|
{ (char *)"KeyEvent_AltDown", (PyCFunction)_wrap_KeyEvent_AltDown, METH_O, NULL},
|
|
{ (char *)"KeyEvent_ShiftDown", (PyCFunction)_wrap_KeyEvent_ShiftDown, METH_O, NULL},
|
|
{ (char *)"KeyEvent_CmdDown", (PyCFunction)_wrap_KeyEvent_CmdDown, METH_O, NULL},
|
|
{ (char *)"KeyEvent_HasModifiers", (PyCFunction)_wrap_KeyEvent_HasModifiers, METH_O, NULL},
|
|
{ (char *)"KeyEvent_GetKeyCode", (PyCFunction)_wrap_KeyEvent_GetKeyCode, METH_O, NULL},
|
|
{ (char *)"KeyEvent_GetUnicodeKey", (PyCFunction)_wrap_KeyEvent_GetUnicodeKey, METH_O, NULL},
|
|
{ (char *)"KeyEvent_SetUnicodeKey", (PyCFunction) _wrap_KeyEvent_SetUnicodeKey, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"KeyEvent_GetRawKeyCode", (PyCFunction)_wrap_KeyEvent_GetRawKeyCode, METH_O, NULL},
|
|
{ (char *)"KeyEvent_GetRawKeyFlags", (PyCFunction)_wrap_KeyEvent_GetRawKeyFlags, METH_O, NULL},
|
|
{ (char *)"KeyEvent_GetPosition", (PyCFunction)_wrap_KeyEvent_GetPosition, METH_O, NULL},
|
|
{ (char *)"KeyEvent_GetPositionTuple", (PyCFunction)_wrap_KeyEvent_GetPositionTuple, METH_O, NULL},
|
|
{ (char *)"KeyEvent_GetX", (PyCFunction)_wrap_KeyEvent_GetX, METH_O, NULL},
|
|
{ (char *)"KeyEvent_GetY", (PyCFunction)_wrap_KeyEvent_GetY, METH_O, NULL},
|
|
{ (char *)"KeyEvent_m_x_set", _wrap_KeyEvent_m_x_set, METH_VARARGS, NULL},
|
|
{ (char *)"KeyEvent_m_x_get", (PyCFunction)_wrap_KeyEvent_m_x_get, METH_O, NULL},
|
|
{ (char *)"KeyEvent_m_y_set", _wrap_KeyEvent_m_y_set, METH_VARARGS, NULL},
|
|
{ (char *)"KeyEvent_m_y_get", (PyCFunction)_wrap_KeyEvent_m_y_get, METH_O, NULL},
|
|
{ (char *)"KeyEvent_m_keyCode_set", _wrap_KeyEvent_m_keyCode_set, METH_VARARGS, NULL},
|
|
{ (char *)"KeyEvent_m_keyCode_get", (PyCFunction)_wrap_KeyEvent_m_keyCode_get, METH_O, NULL},
|
|
{ (char *)"KeyEvent_m_controlDown_set", _wrap_KeyEvent_m_controlDown_set, METH_VARARGS, NULL},
|
|
{ (char *)"KeyEvent_m_controlDown_get", (PyCFunction)_wrap_KeyEvent_m_controlDown_get, METH_O, NULL},
|
|
{ (char *)"KeyEvent_m_shiftDown_set", _wrap_KeyEvent_m_shiftDown_set, METH_VARARGS, NULL},
|
|
{ (char *)"KeyEvent_m_shiftDown_get", (PyCFunction)_wrap_KeyEvent_m_shiftDown_get, METH_O, NULL},
|
|
{ (char *)"KeyEvent_m_altDown_set", _wrap_KeyEvent_m_altDown_set, METH_VARARGS, NULL},
|
|
{ (char *)"KeyEvent_m_altDown_get", (PyCFunction)_wrap_KeyEvent_m_altDown_get, METH_O, NULL},
|
|
{ (char *)"KeyEvent_m_metaDown_set", _wrap_KeyEvent_m_metaDown_set, METH_VARARGS, NULL},
|
|
{ (char *)"KeyEvent_m_metaDown_get", (PyCFunction)_wrap_KeyEvent_m_metaDown_get, METH_O, NULL},
|
|
{ (char *)"KeyEvent_m_scanCode_set", _wrap_KeyEvent_m_scanCode_set, METH_VARARGS, NULL},
|
|
{ (char *)"KeyEvent_m_scanCode_get", (PyCFunction)_wrap_KeyEvent_m_scanCode_get, METH_O, NULL},
|
|
{ (char *)"KeyEvent_m_rawCode_set", _wrap_KeyEvent_m_rawCode_set, METH_VARARGS, NULL},
|
|
{ (char *)"KeyEvent_m_rawCode_get", (PyCFunction)_wrap_KeyEvent_m_rawCode_get, METH_O, NULL},
|
|
{ (char *)"KeyEvent_m_rawFlags_set", _wrap_KeyEvent_m_rawFlags_set, METH_VARARGS, NULL},
|
|
{ (char *)"KeyEvent_m_rawFlags_get", (PyCFunction)_wrap_KeyEvent_m_rawFlags_get, METH_O, NULL},
|
|
{ (char *)"KeyEvent_swigregister", KeyEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"KeyEvent_swiginit", KeyEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_SizeEvent", (PyCFunction) _wrap_new_SizeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizeEvent_GetSize", (PyCFunction)_wrap_SizeEvent_GetSize, METH_O, NULL},
|
|
{ (char *)"SizeEvent_GetRect", (PyCFunction)_wrap_SizeEvent_GetRect, METH_O, NULL},
|
|
{ (char *)"SizeEvent_SetRect", (PyCFunction) _wrap_SizeEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizeEvent_SetSize", (PyCFunction) _wrap_SizeEvent_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizeEvent_m_size_set", _wrap_SizeEvent_m_size_set, METH_VARARGS, NULL},
|
|
{ (char *)"SizeEvent_m_size_get", (PyCFunction)_wrap_SizeEvent_m_size_get, METH_O, NULL},
|
|
{ (char *)"SizeEvent_m_rect_set", _wrap_SizeEvent_m_rect_set, METH_VARARGS, NULL},
|
|
{ (char *)"SizeEvent_m_rect_get", (PyCFunction)_wrap_SizeEvent_m_rect_get, METH_O, NULL},
|
|
{ (char *)"SizeEvent_swigregister", SizeEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"SizeEvent_swiginit", SizeEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_MoveEvent", (PyCFunction) _wrap_new_MoveEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MoveEvent_GetPosition", (PyCFunction)_wrap_MoveEvent_GetPosition, METH_O, NULL},
|
|
{ (char *)"MoveEvent_GetRect", (PyCFunction)_wrap_MoveEvent_GetRect, METH_O, NULL},
|
|
{ (char *)"MoveEvent_SetRect", (PyCFunction) _wrap_MoveEvent_SetRect, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MoveEvent_SetPosition", (PyCFunction) _wrap_MoveEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MoveEvent_swigregister", MoveEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"MoveEvent_swiginit", MoveEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_PaintEvent", (PyCFunction) _wrap_new_PaintEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PaintEvent_swigregister", PaintEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"PaintEvent_swiginit", PaintEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_NcPaintEvent", (PyCFunction) _wrap_new_NcPaintEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"NcPaintEvent_swigregister", NcPaintEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"NcPaintEvent_swiginit", NcPaintEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_EraseEvent", (PyCFunction) _wrap_new_EraseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"EraseEvent_GetDC", (PyCFunction)_wrap_EraseEvent_GetDC, METH_O, NULL},
|
|
{ (char *)"EraseEvent_swigregister", EraseEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"EraseEvent_swiginit", EraseEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_FocusEvent", (PyCFunction) _wrap_new_FocusEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FocusEvent_GetWindow", (PyCFunction)_wrap_FocusEvent_GetWindow, METH_O, NULL},
|
|
{ (char *)"FocusEvent_SetWindow", (PyCFunction) _wrap_FocusEvent_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FocusEvent_swigregister", FocusEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"FocusEvent_swiginit", FocusEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_ChildFocusEvent", (PyCFunction) _wrap_new_ChildFocusEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ChildFocusEvent_GetWindow", (PyCFunction)_wrap_ChildFocusEvent_GetWindow, METH_O, NULL},
|
|
{ (char *)"ChildFocusEvent_swigregister", ChildFocusEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"ChildFocusEvent_swiginit", ChildFocusEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_ActivateEvent", (PyCFunction) _wrap_new_ActivateEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ActivateEvent_GetActive", (PyCFunction)_wrap_ActivateEvent_GetActive, METH_O, NULL},
|
|
{ (char *)"ActivateEvent_swigregister", ActivateEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"ActivateEvent_swiginit", ActivateEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_InitDialogEvent", (PyCFunction) _wrap_new_InitDialogEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"InitDialogEvent_swigregister", InitDialogEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"InitDialogEvent_swiginit", InitDialogEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_MenuEvent", (PyCFunction) _wrap_new_MenuEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuEvent_GetMenuId", (PyCFunction)_wrap_MenuEvent_GetMenuId, METH_O, NULL},
|
|
{ (char *)"MenuEvent_IsPopup", (PyCFunction)_wrap_MenuEvent_IsPopup, METH_O, NULL},
|
|
{ (char *)"MenuEvent_GetMenu", (PyCFunction)_wrap_MenuEvent_GetMenu, METH_O, NULL},
|
|
{ (char *)"MenuEvent_swigregister", MenuEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"MenuEvent_swiginit", MenuEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_CloseEvent", (PyCFunction) _wrap_new_CloseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"CloseEvent_SetLoggingOff", (PyCFunction) _wrap_CloseEvent_SetLoggingOff, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"CloseEvent_GetLoggingOff", (PyCFunction)_wrap_CloseEvent_GetLoggingOff, METH_O, NULL},
|
|
{ (char *)"CloseEvent_Veto", (PyCFunction) _wrap_CloseEvent_Veto, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"CloseEvent_GetVeto", (PyCFunction)_wrap_CloseEvent_GetVeto, METH_O, NULL},
|
|
{ (char *)"CloseEvent_SetCanVeto", (PyCFunction) _wrap_CloseEvent_SetCanVeto, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"CloseEvent_CanVeto", (PyCFunction)_wrap_CloseEvent_CanVeto, METH_O, NULL},
|
|
{ (char *)"CloseEvent_swigregister", CloseEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"CloseEvent_swiginit", CloseEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_ShowEvent", (PyCFunction) _wrap_new_ShowEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ShowEvent_SetShow", (PyCFunction) _wrap_ShowEvent_SetShow, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ShowEvent_GetShow", (PyCFunction)_wrap_ShowEvent_GetShow, METH_O, NULL},
|
|
{ (char *)"ShowEvent_swigregister", ShowEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"ShowEvent_swiginit", ShowEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_IconizeEvent", (PyCFunction) _wrap_new_IconizeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IconizeEvent_Iconized", (PyCFunction)_wrap_IconizeEvent_Iconized, METH_O, NULL},
|
|
{ (char *)"IconizeEvent_swigregister", IconizeEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"IconizeEvent_swiginit", IconizeEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_MaximizeEvent", (PyCFunction) _wrap_new_MaximizeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MaximizeEvent_swigregister", MaximizeEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"MaximizeEvent_swiginit", MaximizeEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"DropFilesEvent_GetPosition", (PyCFunction)_wrap_DropFilesEvent_GetPosition, METH_O, NULL},
|
|
{ (char *)"DropFilesEvent_GetNumberOfFiles", (PyCFunction)_wrap_DropFilesEvent_GetNumberOfFiles, METH_O, NULL},
|
|
{ (char *)"DropFilesEvent_GetFiles", (PyCFunction)_wrap_DropFilesEvent_GetFiles, METH_O, NULL},
|
|
{ (char *)"DropFilesEvent_swigregister", DropFilesEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"new_UpdateUIEvent", (PyCFunction) _wrap_new_UpdateUIEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"UpdateUIEvent_GetChecked", (PyCFunction)_wrap_UpdateUIEvent_GetChecked, METH_O, NULL},
|
|
{ (char *)"UpdateUIEvent_GetEnabled", (PyCFunction)_wrap_UpdateUIEvent_GetEnabled, METH_O, NULL},
|
|
{ (char *)"UpdateUIEvent_GetShown", (PyCFunction)_wrap_UpdateUIEvent_GetShown, METH_O, NULL},
|
|
{ (char *)"UpdateUIEvent_GetText", (PyCFunction)_wrap_UpdateUIEvent_GetText, METH_O, NULL},
|
|
{ (char *)"UpdateUIEvent_GetSetText", (PyCFunction)_wrap_UpdateUIEvent_GetSetText, METH_O, NULL},
|
|
{ (char *)"UpdateUIEvent_GetSetChecked", (PyCFunction)_wrap_UpdateUIEvent_GetSetChecked, METH_O, NULL},
|
|
{ (char *)"UpdateUIEvent_GetSetEnabled", (PyCFunction)_wrap_UpdateUIEvent_GetSetEnabled, METH_O, NULL},
|
|
{ (char *)"UpdateUIEvent_GetSetShown", (PyCFunction)_wrap_UpdateUIEvent_GetSetShown, METH_O, NULL},
|
|
{ (char *)"UpdateUIEvent_Check", (PyCFunction) _wrap_UpdateUIEvent_Check, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"UpdateUIEvent_Enable", (PyCFunction) _wrap_UpdateUIEvent_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"UpdateUIEvent_Show", (PyCFunction) _wrap_UpdateUIEvent_Show, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"UpdateUIEvent_SetText", (PyCFunction) _wrap_UpdateUIEvent_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"UpdateUIEvent_SetUpdateInterval", (PyCFunction) _wrap_UpdateUIEvent_SetUpdateInterval, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"UpdateUIEvent_GetUpdateInterval", (PyCFunction)_wrap_UpdateUIEvent_GetUpdateInterval, METH_NOARGS, NULL},
|
|
{ (char *)"UpdateUIEvent_CanUpdate", (PyCFunction) _wrap_UpdateUIEvent_CanUpdate, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"UpdateUIEvent_ResetUpdateTime", (PyCFunction)_wrap_UpdateUIEvent_ResetUpdateTime, METH_NOARGS, NULL},
|
|
{ (char *)"UpdateUIEvent_SetMode", (PyCFunction) _wrap_UpdateUIEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"UpdateUIEvent_GetMode", (PyCFunction)_wrap_UpdateUIEvent_GetMode, METH_NOARGS, NULL},
|
|
{ (char *)"UpdateUIEvent_swigregister", UpdateUIEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"UpdateUIEvent_swiginit", UpdateUIEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_SysColourChangedEvent", (PyCFunction)_wrap_new_SysColourChangedEvent, METH_NOARGS, NULL},
|
|
{ (char *)"SysColourChangedEvent_swigregister", SysColourChangedEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"SysColourChangedEvent_swiginit", SysColourChangedEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_MouseCaptureChangedEvent", (PyCFunction) _wrap_new_MouseCaptureChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MouseCaptureChangedEvent_GetCapturedWindow", (PyCFunction)_wrap_MouseCaptureChangedEvent_GetCapturedWindow, METH_O, NULL},
|
|
{ (char *)"MouseCaptureChangedEvent_swigregister", MouseCaptureChangedEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"MouseCaptureChangedEvent_swiginit", MouseCaptureChangedEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_MouseCaptureLostEvent", (PyCFunction) _wrap_new_MouseCaptureLostEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MouseCaptureLostEvent_swigregister", MouseCaptureLostEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"MouseCaptureLostEvent_swiginit", MouseCaptureLostEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_DisplayChangedEvent", (PyCFunction)_wrap_new_DisplayChangedEvent, METH_NOARGS, NULL},
|
|
{ (char *)"DisplayChangedEvent_swigregister", DisplayChangedEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"DisplayChangedEvent_swiginit", DisplayChangedEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_PaletteChangedEvent", (PyCFunction) _wrap_new_PaletteChangedEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PaletteChangedEvent_SetChangedWindow", (PyCFunction) _wrap_PaletteChangedEvent_SetChangedWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PaletteChangedEvent_GetChangedWindow", (PyCFunction)_wrap_PaletteChangedEvent_GetChangedWindow, METH_O, NULL},
|
|
{ (char *)"PaletteChangedEvent_swigregister", PaletteChangedEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"PaletteChangedEvent_swiginit", PaletteChangedEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_QueryNewPaletteEvent", (PyCFunction) _wrap_new_QueryNewPaletteEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"QueryNewPaletteEvent_SetPaletteRealized", (PyCFunction) _wrap_QueryNewPaletteEvent_SetPaletteRealized, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"QueryNewPaletteEvent_GetPaletteRealized", (PyCFunction)_wrap_QueryNewPaletteEvent_GetPaletteRealized, METH_O, NULL},
|
|
{ (char *)"QueryNewPaletteEvent_swigregister", QueryNewPaletteEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"QueryNewPaletteEvent_swiginit", QueryNewPaletteEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_NavigationKeyEvent", (PyCFunction)_wrap_new_NavigationKeyEvent, METH_NOARGS, NULL},
|
|
{ (char *)"NavigationKeyEvent_GetDirection", (PyCFunction)_wrap_NavigationKeyEvent_GetDirection, METH_O, NULL},
|
|
{ (char *)"NavigationKeyEvent_SetDirection", (PyCFunction) _wrap_NavigationKeyEvent_SetDirection, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"NavigationKeyEvent_IsWindowChange", (PyCFunction)_wrap_NavigationKeyEvent_IsWindowChange, METH_O, NULL},
|
|
{ (char *)"NavigationKeyEvent_SetWindowChange", (PyCFunction) _wrap_NavigationKeyEvent_SetWindowChange, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"NavigationKeyEvent_IsFromTab", (PyCFunction)_wrap_NavigationKeyEvent_IsFromTab, METH_O, NULL},
|
|
{ (char *)"NavigationKeyEvent_SetFromTab", (PyCFunction) _wrap_NavigationKeyEvent_SetFromTab, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"NavigationKeyEvent_SetFlags", (PyCFunction) _wrap_NavigationKeyEvent_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"NavigationKeyEvent_GetCurrentFocus", (PyCFunction)_wrap_NavigationKeyEvent_GetCurrentFocus, METH_O, NULL},
|
|
{ (char *)"NavigationKeyEvent_SetCurrentFocus", (PyCFunction) _wrap_NavigationKeyEvent_SetCurrentFocus, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"NavigationKeyEvent_swigregister", NavigationKeyEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"NavigationKeyEvent_swiginit", NavigationKeyEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_WindowCreateEvent", (PyCFunction) _wrap_new_WindowCreateEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"WindowCreateEvent_GetWindow", (PyCFunction)_wrap_WindowCreateEvent_GetWindow, METH_O, NULL},
|
|
{ (char *)"WindowCreateEvent_swigregister", WindowCreateEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"WindowCreateEvent_swiginit", WindowCreateEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_WindowDestroyEvent", (PyCFunction) _wrap_new_WindowDestroyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"WindowDestroyEvent_GetWindow", (PyCFunction)_wrap_WindowDestroyEvent_GetWindow, METH_O, NULL},
|
|
{ (char *)"WindowDestroyEvent_swigregister", WindowDestroyEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"WindowDestroyEvent_swiginit", WindowDestroyEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_ContextMenuEvent", (PyCFunction) _wrap_new_ContextMenuEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ContextMenuEvent_GetPosition", (PyCFunction)_wrap_ContextMenuEvent_GetPosition, METH_O, NULL},
|
|
{ (char *)"ContextMenuEvent_SetPosition", (PyCFunction) _wrap_ContextMenuEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ContextMenuEvent_swigregister", ContextMenuEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"ContextMenuEvent_swiginit", ContextMenuEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_IdleEvent", (PyCFunction)_wrap_new_IdleEvent, METH_NOARGS, NULL},
|
|
{ (char *)"IdleEvent_RequestMore", (PyCFunction) _wrap_IdleEvent_RequestMore, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IdleEvent_MoreRequested", (PyCFunction)_wrap_IdleEvent_MoreRequested, METH_O, NULL},
|
|
{ (char *)"IdleEvent_SetMode", (PyCFunction) _wrap_IdleEvent_SetMode, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IdleEvent_GetMode", (PyCFunction)_wrap_IdleEvent_GetMode, METH_NOARGS, NULL},
|
|
{ (char *)"IdleEvent_CanSend", (PyCFunction) _wrap_IdleEvent_CanSend, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IdleEvent_swigregister", IdleEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"IdleEvent_swiginit", IdleEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_ClipboardTextEvent", (PyCFunction) _wrap_new_ClipboardTextEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ClipboardTextEvent_swigregister", ClipboardTextEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"ClipboardTextEvent_swiginit", ClipboardTextEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_PyEvent", (PyCFunction) _wrap_new_PyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_PyEvent", (PyCFunction)_wrap_delete_PyEvent, METH_O, NULL},
|
|
{ (char *)"PyEvent__SetSelf", (PyCFunction) _wrap_PyEvent__SetSelf, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyEvent__GetSelf", (PyCFunction)_wrap_PyEvent__GetSelf, METH_O, NULL},
|
|
{ (char *)"PyEvent_swigregister", PyEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"PyEvent_swiginit", PyEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_PyCommandEvent", (PyCFunction) _wrap_new_PyCommandEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_PyCommandEvent", (PyCFunction)_wrap_delete_PyCommandEvent, METH_O, NULL},
|
|
{ (char *)"PyCommandEvent__SetSelf", (PyCFunction) _wrap_PyCommandEvent__SetSelf, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyCommandEvent__GetSelf", (PyCFunction)_wrap_PyCommandEvent__GetSelf, METH_O, NULL},
|
|
{ (char *)"PyCommandEvent_swigregister", PyCommandEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"PyCommandEvent_swiginit", PyCommandEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_DateEvent", (PyCFunction) _wrap_new_DateEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"DateEvent_GetDate", (PyCFunction)_wrap_DateEvent_GetDate, METH_O, NULL},
|
|
{ (char *)"DateEvent_SetDate", (PyCFunction) _wrap_DateEvent_SetDate, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"DateEvent_swigregister", DateEvent_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"DateEvent_swiginit", DateEvent_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_PyApp", (PyCFunction)_wrap_new_PyApp, METH_NOARGS, NULL},
|
|
{ (char *)"delete_PyApp", (PyCFunction)_wrap_delete_PyApp, METH_O, NULL},
|
|
{ (char *)"PyApp__setCallbackInfo", (PyCFunction) _wrap_PyApp__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyApp_GetAppName", (PyCFunction)_wrap_PyApp_GetAppName, METH_O, NULL},
|
|
{ (char *)"PyApp_SetAppName", (PyCFunction) _wrap_PyApp_SetAppName, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyApp_GetClassName", (PyCFunction)_wrap_PyApp_GetClassName, METH_O, NULL},
|
|
{ (char *)"PyApp_SetClassName", (PyCFunction) _wrap_PyApp_SetClassName, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyApp_GetVendorName", (PyCFunction)_wrap_PyApp_GetVendorName, METH_O, NULL},
|
|
{ (char *)"PyApp_SetVendorName", (PyCFunction) _wrap_PyApp_SetVendorName, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyApp_GetTraits", (PyCFunction)_wrap_PyApp_GetTraits, METH_O, NULL},
|
|
{ (char *)"PyApp_ProcessPendingEvents", (PyCFunction)_wrap_PyApp_ProcessPendingEvents, METH_O, NULL},
|
|
{ (char *)"PyApp_Yield", (PyCFunction) _wrap_PyApp_Yield, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyApp_WakeUpIdle", (PyCFunction)_wrap_PyApp_WakeUpIdle, METH_O, NULL},
|
|
{ (char *)"PyApp_IsMainLoopRunning", (PyCFunction)_wrap_PyApp_IsMainLoopRunning, METH_NOARGS, NULL},
|
|
{ (char *)"PyApp_MainLoop", (PyCFunction)_wrap_PyApp_MainLoop, METH_O, NULL},
|
|
{ (char *)"PyApp_Exit", (PyCFunction)_wrap_PyApp_Exit, METH_O, NULL},
|
|
{ (char *)"PyApp_GetLayoutDirection", (PyCFunction)_wrap_PyApp_GetLayoutDirection, METH_O, NULL},
|
|
{ (char *)"PyApp_ExitMainLoop", (PyCFunction)_wrap_PyApp_ExitMainLoop, METH_O, NULL},
|
|
{ (char *)"PyApp_Pending", (PyCFunction)_wrap_PyApp_Pending, METH_O, NULL},
|
|
{ (char *)"PyApp_Dispatch", (PyCFunction)_wrap_PyApp_Dispatch, METH_O, NULL},
|
|
{ (char *)"PyApp_ProcessIdle", (PyCFunction)_wrap_PyApp_ProcessIdle, METH_O, NULL},
|
|
{ (char *)"PyApp_SendIdleEvents", (PyCFunction) _wrap_PyApp_SendIdleEvents, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyApp_IsActive", (PyCFunction)_wrap_PyApp_IsActive, METH_O, NULL},
|
|
{ (char *)"PyApp_SetTopWindow", (PyCFunction) _wrap_PyApp_SetTopWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyApp_GetTopWindow", (PyCFunction)_wrap_PyApp_GetTopWindow, METH_O, NULL},
|
|
{ (char *)"PyApp_SetExitOnFrameDelete", (PyCFunction) _wrap_PyApp_SetExitOnFrameDelete, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyApp_GetExitOnFrameDelete", (PyCFunction)_wrap_PyApp_GetExitOnFrameDelete, METH_O, NULL},
|
|
{ (char *)"PyApp_SetUseBestVisual", (PyCFunction) _wrap_PyApp_SetUseBestVisual, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyApp_GetUseBestVisual", (PyCFunction)_wrap_PyApp_GetUseBestVisual, METH_O, NULL},
|
|
{ (char *)"PyApp_SetPrintMode", (PyCFunction) _wrap_PyApp_SetPrintMode, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyApp_GetPrintMode", (PyCFunction)_wrap_PyApp_GetPrintMode, METH_O, NULL},
|
|
{ (char *)"PyApp_SetAssertMode", (PyCFunction) _wrap_PyApp_SetAssertMode, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyApp_GetAssertMode", (PyCFunction)_wrap_PyApp_GetAssertMode, METH_O, NULL},
|
|
{ (char *)"PyApp_GetMacSupportPCMenuShortcuts", (PyCFunction)_wrap_PyApp_GetMacSupportPCMenuShortcuts, METH_NOARGS, NULL},
|
|
{ (char *)"PyApp_GetMacAboutMenuItemId", (PyCFunction)_wrap_PyApp_GetMacAboutMenuItemId, METH_NOARGS, NULL},
|
|
{ (char *)"PyApp_GetMacPreferencesMenuItemId", (PyCFunction)_wrap_PyApp_GetMacPreferencesMenuItemId, METH_NOARGS, NULL},
|
|
{ (char *)"PyApp_GetMacExitMenuItemId", (PyCFunction)_wrap_PyApp_GetMacExitMenuItemId, METH_NOARGS, NULL},
|
|
{ (char *)"PyApp_GetMacHelpMenuTitleName", (PyCFunction)_wrap_PyApp_GetMacHelpMenuTitleName, METH_NOARGS, NULL},
|
|
{ (char *)"PyApp_SetMacSupportPCMenuShortcuts", (PyCFunction) _wrap_PyApp_SetMacSupportPCMenuShortcuts, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyApp_SetMacAboutMenuItemId", (PyCFunction) _wrap_PyApp_SetMacAboutMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyApp_SetMacPreferencesMenuItemId", (PyCFunction) _wrap_PyApp_SetMacPreferencesMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyApp_SetMacExitMenuItemId", (PyCFunction) _wrap_PyApp_SetMacExitMenuItemId, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyApp_SetMacHelpMenuTitleName", (PyCFunction) _wrap_PyApp_SetMacHelpMenuTitleName, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyApp__BootstrapApp", (PyCFunction)_wrap_PyApp__BootstrapApp, METH_O, NULL},
|
|
{ (char *)"PyApp_GetComCtl32Version", (PyCFunction)_wrap_PyApp_GetComCtl32Version, METH_NOARGS, NULL},
|
|
{ (char *)"PyApp_IsDisplayAvailable", (PyCFunction)_wrap_PyApp_IsDisplayAvailable, METH_NOARGS, NULL},
|
|
{ (char *)"PyApp_swigregister", PyApp_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"PyApp_swiginit", PyApp_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"Exit", (PyCFunction)_wrap_Exit, METH_NOARGS, NULL},
|
|
{ (char *)"Yield", (PyCFunction)_wrap_Yield, METH_NOARGS, NULL},
|
|
{ (char *)"YieldIfNeeded", (PyCFunction)_wrap_YieldIfNeeded, METH_NOARGS, NULL},
|
|
{ (char *)"SafeYield", (PyCFunction) _wrap_SafeYield, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"WakeUpIdle", (PyCFunction)_wrap_WakeUpIdle, METH_NOARGS, NULL},
|
|
{ (char *)"PostEvent", (PyCFunction) _wrap_PostEvent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"App_CleanUp", (PyCFunction)_wrap_App_CleanUp, METH_NOARGS, NULL},
|
|
{ (char *)"GetApp", (PyCFunction)_wrap_GetApp, METH_NOARGS, NULL},
|
|
{ (char *)"SetDefaultPyEncoding", (PyCFunction) _wrap_SetDefaultPyEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GetDefaultPyEncoding", (PyCFunction)_wrap_GetDefaultPyEncoding, METH_NOARGS, NULL},
|
|
{ (char *)"new_EventLoop", (PyCFunction)_wrap_new_EventLoop, METH_NOARGS, NULL},
|
|
{ (char *)"delete_EventLoop", (PyCFunction)_wrap_delete_EventLoop, METH_O, NULL},
|
|
{ (char *)"EventLoop_Run", (PyCFunction)_wrap_EventLoop_Run, METH_O, NULL},
|
|
{ (char *)"EventLoop_Exit", (PyCFunction) _wrap_EventLoop_Exit, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"EventLoop_Pending", (PyCFunction)_wrap_EventLoop_Pending, METH_O, NULL},
|
|
{ (char *)"EventLoop_Dispatch", (PyCFunction)_wrap_EventLoop_Dispatch, METH_O, NULL},
|
|
{ (char *)"EventLoop_IsRunning", (PyCFunction)_wrap_EventLoop_IsRunning, METH_O, NULL},
|
|
{ (char *)"EventLoop_GetActive", (PyCFunction)_wrap_EventLoop_GetActive, METH_NOARGS, NULL},
|
|
{ (char *)"EventLoop_SetActive", (PyCFunction) _wrap_EventLoop_SetActive, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"EventLoop_swigregister", EventLoop_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"EventLoop_swiginit", EventLoop_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_EventLoopActivator", (PyCFunction) _wrap_new_EventLoopActivator, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_EventLoopActivator", (PyCFunction)_wrap_delete_EventLoopActivator, METH_O, NULL},
|
|
{ (char *)"EventLoopActivator_swigregister", EventLoopActivator_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"EventLoopActivator_swiginit", EventLoopActivator_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_AcceleratorEntry", (PyCFunction) _wrap_new_AcceleratorEntry, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_AcceleratorEntry", (PyCFunction)_wrap_delete_AcceleratorEntry, METH_O, NULL},
|
|
{ (char *)"AcceleratorEntry_Set", (PyCFunction) _wrap_AcceleratorEntry_Set, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"AcceleratorEntry_Create", (PyCFunction) _wrap_AcceleratorEntry_Create, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"AcceleratorEntry_GetFlags", (PyCFunction)_wrap_AcceleratorEntry_GetFlags, METH_O, NULL},
|
|
{ (char *)"AcceleratorEntry_GetKeyCode", (PyCFunction)_wrap_AcceleratorEntry_GetKeyCode, METH_O, NULL},
|
|
{ (char *)"AcceleratorEntry_GetCommand", (PyCFunction)_wrap_AcceleratorEntry_GetCommand, METH_O, NULL},
|
|
{ (char *)"AcceleratorEntry_IsOk", (PyCFunction)_wrap_AcceleratorEntry_IsOk, METH_O, NULL},
|
|
{ (char *)"AcceleratorEntry_ToString", (PyCFunction)_wrap_AcceleratorEntry_ToString, METH_O, NULL},
|
|
{ (char *)"AcceleratorEntry_FromString", (PyCFunction) _wrap_AcceleratorEntry_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"AcceleratorEntry_swigregister", AcceleratorEntry_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"AcceleratorEntry_swiginit", AcceleratorEntry_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_AcceleratorTable", (PyCFunction) _wrap_new_AcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_AcceleratorTable", (PyCFunction)_wrap_delete_AcceleratorTable, METH_O, NULL},
|
|
{ (char *)"AcceleratorTable_IsOk", (PyCFunction)_wrap_AcceleratorTable_IsOk, METH_O, NULL},
|
|
{ (char *)"AcceleratorTable_swigregister", AcceleratorTable_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"AcceleratorTable_swiginit", AcceleratorTable_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"GetAccelFromString", (PyCFunction) _wrap_GetAccelFromString, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_VisualAttributes", (PyCFunction)_wrap_new_VisualAttributes, METH_NOARGS, NULL},
|
|
{ (char *)"delete_VisualAttributes", (PyCFunction)_wrap_delete_VisualAttributes, METH_O, NULL},
|
|
{ (char *)"VisualAttributes__get_font", (PyCFunction)_wrap_VisualAttributes__get_font, METH_O, NULL},
|
|
{ (char *)"VisualAttributes__get_colFg", (PyCFunction)_wrap_VisualAttributes__get_colFg, METH_O, NULL},
|
|
{ (char *)"VisualAttributes__get_colBg", (PyCFunction)_wrap_VisualAttributes__get_colBg, METH_O, NULL},
|
|
{ (char *)"VisualAttributes_swigregister", VisualAttributes_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"VisualAttributes_swiginit", VisualAttributes_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_Window", (PyCFunction) _wrap_new_Window, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_PreWindow", (PyCFunction)_wrap_new_PreWindow, METH_NOARGS, NULL},
|
|
{ (char *)"Window_Create", (PyCFunction) _wrap_Window_Create, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_Close", (PyCFunction) _wrap_Window_Close, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_Destroy", (PyCFunction)_wrap_Window_Destroy, METH_O, NULL},
|
|
{ (char *)"Window_DestroyChildren", (PyCFunction)_wrap_Window_DestroyChildren, METH_O, NULL},
|
|
{ (char *)"Window_IsBeingDeleted", (PyCFunction)_wrap_Window_IsBeingDeleted, METH_O, NULL},
|
|
{ (char *)"Window_SetLabel", (PyCFunction) _wrap_Window_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetLabel", (PyCFunction)_wrap_Window_GetLabel, METH_O, NULL},
|
|
{ (char *)"Window_SetName", (PyCFunction) _wrap_Window_SetName, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetName", (PyCFunction)_wrap_Window_GetName, METH_O, NULL},
|
|
{ (char *)"Window_SetWindowVariant", (PyCFunction) _wrap_Window_SetWindowVariant, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetWindowVariant", (PyCFunction)_wrap_Window_GetWindowVariant, METH_O, NULL},
|
|
{ (char *)"Window_SetId", (PyCFunction) _wrap_Window_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetId", (PyCFunction)_wrap_Window_GetId, METH_O, NULL},
|
|
{ (char *)"Window_NewControlId", (PyCFunction)_wrap_Window_NewControlId, METH_NOARGS, NULL},
|
|
{ (char *)"Window_NextControlId", (PyCFunction) _wrap_Window_NextControlId, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_PrevControlId", (PyCFunction) _wrap_Window_PrevControlId, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetLayoutDirection", (PyCFunction)_wrap_Window_GetLayoutDirection, METH_O, NULL},
|
|
{ (char *)"Window_SetLayoutDirection", (PyCFunction) _wrap_Window_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_AdjustForLayoutDirection", (PyCFunction) _wrap_Window_AdjustForLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetSize", (PyCFunction) _wrap_Window_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetDimensions", (PyCFunction) _wrap_Window_SetDimensions, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetRect", (PyCFunction) _wrap_Window_SetRect, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetSizeWH", (PyCFunction) _wrap_Window_SetSizeWH, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_Move", (PyCFunction) _wrap_Window_Move, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_MoveXY", (PyCFunction) _wrap_Window_MoveXY, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetInitialSize", (PyCFunction) _wrap_Window_SetInitialSize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_Raise", (PyCFunction)_wrap_Window_Raise, METH_O, NULL},
|
|
{ (char *)"Window_Lower", (PyCFunction)_wrap_Window_Lower, METH_O, NULL},
|
|
{ (char *)"Window_SetClientSize", (PyCFunction) _wrap_Window_SetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetClientSizeWH", (PyCFunction) _wrap_Window_SetClientSizeWH, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetPosition", (PyCFunction)_wrap_Window_GetPosition, METH_O, NULL},
|
|
{ (char *)"Window_GetPositionTuple", (PyCFunction)_wrap_Window_GetPositionTuple, METH_O, NULL},
|
|
{ (char *)"Window_GetScreenPosition", (PyCFunction)_wrap_Window_GetScreenPosition, METH_O, NULL},
|
|
{ (char *)"Window_GetScreenPositionTuple", (PyCFunction)_wrap_Window_GetScreenPositionTuple, METH_O, NULL},
|
|
{ (char *)"Window_GetScreenRect", (PyCFunction)_wrap_Window_GetScreenRect, METH_O, NULL},
|
|
{ (char *)"Window_GetSize", (PyCFunction)_wrap_Window_GetSize, METH_O, NULL},
|
|
{ (char *)"Window_GetSizeTuple", (PyCFunction)_wrap_Window_GetSizeTuple, METH_O, NULL},
|
|
{ (char *)"Window_GetRect", (PyCFunction)_wrap_Window_GetRect, METH_O, NULL},
|
|
{ (char *)"Window_GetClientSize", (PyCFunction)_wrap_Window_GetClientSize, METH_O, NULL},
|
|
{ (char *)"Window_GetClientSizeTuple", (PyCFunction)_wrap_Window_GetClientSizeTuple, METH_O, NULL},
|
|
{ (char *)"Window_GetClientAreaOrigin", (PyCFunction)_wrap_Window_GetClientAreaOrigin, METH_O, NULL},
|
|
{ (char *)"Window_GetClientRect", (PyCFunction)_wrap_Window_GetClientRect, METH_O, NULL},
|
|
{ (char *)"Window_GetBestSize", (PyCFunction)_wrap_Window_GetBestSize, METH_O, NULL},
|
|
{ (char *)"Window_GetBestSizeTuple", (PyCFunction)_wrap_Window_GetBestSizeTuple, METH_O, NULL},
|
|
{ (char *)"Window_InvalidateBestSize", (PyCFunction)_wrap_Window_InvalidateBestSize, METH_O, NULL},
|
|
{ (char *)"Window_CacheBestSize", (PyCFunction) _wrap_Window_CacheBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetEffectiveMinSize", (PyCFunction)_wrap_Window_GetEffectiveMinSize, METH_O, NULL},
|
|
{ (char *)"Window_Center", (PyCFunction) _wrap_Window_Center, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_CenterOnParent", (PyCFunction) _wrap_Window_CenterOnParent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_Fit", (PyCFunction)_wrap_Window_Fit, METH_O, NULL},
|
|
{ (char *)"Window_FitInside", (PyCFunction)_wrap_Window_FitInside, METH_O, NULL},
|
|
{ (char *)"Window_SetSizeHints", (PyCFunction) _wrap_Window_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetSizeHintsSz", (PyCFunction) _wrap_Window_SetSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetVirtualSizeHints", (PyCFunction) _wrap_Window_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetVirtualSizeHintsSz", (PyCFunction) _wrap_Window_SetVirtualSizeHintsSz, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetMaxSize", (PyCFunction)_wrap_Window_GetMaxSize, METH_O, NULL},
|
|
{ (char *)"Window_GetMinSize", (PyCFunction)_wrap_Window_GetMinSize, METH_O, NULL},
|
|
{ (char *)"Window_SetMinSize", (PyCFunction) _wrap_Window_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetMaxSize", (PyCFunction) _wrap_Window_SetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetMinWidth", (PyCFunction)_wrap_Window_GetMinWidth, METH_O, NULL},
|
|
{ (char *)"Window_GetMinHeight", (PyCFunction)_wrap_Window_GetMinHeight, METH_O, NULL},
|
|
{ (char *)"Window_GetMaxWidth", (PyCFunction)_wrap_Window_GetMaxWidth, METH_O, NULL},
|
|
{ (char *)"Window_GetMaxHeight", (PyCFunction)_wrap_Window_GetMaxHeight, METH_O, NULL},
|
|
{ (char *)"Window_SetVirtualSize", (PyCFunction) _wrap_Window_SetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetVirtualSizeWH", (PyCFunction) _wrap_Window_SetVirtualSizeWH, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetVirtualSize", (PyCFunction)_wrap_Window_GetVirtualSize, METH_O, NULL},
|
|
{ (char *)"Window_GetVirtualSizeTuple", (PyCFunction)_wrap_Window_GetVirtualSizeTuple, METH_O, NULL},
|
|
{ (char *)"Window_GetWindowBorderSize", (PyCFunction)_wrap_Window_GetWindowBorderSize, METH_O, NULL},
|
|
{ (char *)"Window_GetBestVirtualSize", (PyCFunction)_wrap_Window_GetBestVirtualSize, METH_O, NULL},
|
|
{ (char *)"Window_Show", (PyCFunction) _wrap_Window_Show, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_Hide", (PyCFunction)_wrap_Window_Hide, METH_O, NULL},
|
|
{ (char *)"Window_Enable", (PyCFunction) _wrap_Window_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_Disable", (PyCFunction)_wrap_Window_Disable, METH_O, NULL},
|
|
{ (char *)"Window_IsShown", (PyCFunction)_wrap_Window_IsShown, METH_O, NULL},
|
|
{ (char *)"Window_IsEnabled", (PyCFunction)_wrap_Window_IsEnabled, METH_O, NULL},
|
|
{ (char *)"Window_IsShownOnScreen", (PyCFunction)_wrap_Window_IsShownOnScreen, METH_O, NULL},
|
|
{ (char *)"Window_SetWindowStyleFlag", (PyCFunction) _wrap_Window_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetWindowStyleFlag", (PyCFunction)_wrap_Window_GetWindowStyleFlag, METH_O, NULL},
|
|
{ (char *)"Window_HasFlag", (PyCFunction) _wrap_Window_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_IsRetained", (PyCFunction)_wrap_Window_IsRetained, METH_O, NULL},
|
|
{ (char *)"Window_ToggleWindowStyle", (PyCFunction) _wrap_Window_ToggleWindowStyle, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetExtraStyle", (PyCFunction) _wrap_Window_SetExtraStyle, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetExtraStyle", (PyCFunction)_wrap_Window_GetExtraStyle, METH_O, NULL},
|
|
{ (char *)"Window_MakeModal", (PyCFunction) _wrap_Window_MakeModal, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetThemeEnabled", (PyCFunction) _wrap_Window_SetThemeEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetThemeEnabled", (PyCFunction)_wrap_Window_GetThemeEnabled, METH_O, NULL},
|
|
{ (char *)"Window_SetFocus", (PyCFunction)_wrap_Window_SetFocus, METH_O, NULL},
|
|
{ (char *)"Window_SetFocusFromKbd", (PyCFunction)_wrap_Window_SetFocusFromKbd, METH_O, NULL},
|
|
{ (char *)"Window_FindFocus", (PyCFunction)_wrap_Window_FindFocus, METH_NOARGS, NULL},
|
|
{ (char *)"Window_AcceptsFocus", (PyCFunction)_wrap_Window_AcceptsFocus, METH_O, NULL},
|
|
{ (char *)"Window_AcceptsFocusFromKeyboard", (PyCFunction)_wrap_Window_AcceptsFocusFromKeyboard, METH_O, NULL},
|
|
{ (char *)"Window_Navigate", (PyCFunction) _wrap_Window_Navigate, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_MoveAfterInTabOrder", (PyCFunction) _wrap_Window_MoveAfterInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_MoveBeforeInTabOrder", (PyCFunction) _wrap_Window_MoveBeforeInTabOrder, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetChildren", (PyCFunction)_wrap_Window_GetChildren, METH_O, NULL},
|
|
{ (char *)"Window_GetParent", (PyCFunction)_wrap_Window_GetParent, METH_O, NULL},
|
|
{ (char *)"Window_GetGrandParent", (PyCFunction)_wrap_Window_GetGrandParent, METH_O, NULL},
|
|
{ (char *)"Window_GetTopLevelParent", (PyCFunction)_wrap_Window_GetTopLevelParent, METH_O, NULL},
|
|
{ (char *)"Window_IsTopLevel", (PyCFunction)_wrap_Window_IsTopLevel, METH_O, NULL},
|
|
{ (char *)"Window_Reparent", (PyCFunction) _wrap_Window_Reparent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_AddChild", (PyCFunction) _wrap_Window_AddChild, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_RemoveChild", (PyCFunction) _wrap_Window_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetDoubleBuffered", (PyCFunction) _wrap_Window_SetDoubleBuffered, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_FindWindowById", (PyCFunction) _wrap_Window_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_FindWindowByName", (PyCFunction) _wrap_Window_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetEventHandler", (PyCFunction)_wrap_Window_GetEventHandler, METH_O, NULL},
|
|
{ (char *)"Window_SetEventHandler", (PyCFunction) _wrap_Window_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_PushEventHandler", (PyCFunction) _wrap_Window_PushEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_PopEventHandler", (PyCFunction) _wrap_Window_PopEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_RemoveEventHandler", (PyCFunction) _wrap_Window_RemoveEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetValidator", (PyCFunction) _wrap_Window_SetValidator, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetValidator", (PyCFunction)_wrap_Window_GetValidator, METH_O, NULL},
|
|
{ (char *)"Window_Validate", (PyCFunction)_wrap_Window_Validate, METH_O, NULL},
|
|
{ (char *)"Window_TransferDataToWindow", (PyCFunction)_wrap_Window_TransferDataToWindow, METH_O, NULL},
|
|
{ (char *)"Window_TransferDataFromWindow", (PyCFunction)_wrap_Window_TransferDataFromWindow, METH_O, NULL},
|
|
{ (char *)"Window_InitDialog", (PyCFunction)_wrap_Window_InitDialog, METH_O, NULL},
|
|
{ (char *)"Window_SetAcceleratorTable", (PyCFunction) _wrap_Window_SetAcceleratorTable, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetAcceleratorTable", (PyCFunction)_wrap_Window_GetAcceleratorTable, METH_O, NULL},
|
|
{ (char *)"Window_RegisterHotKey", (PyCFunction) _wrap_Window_RegisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_UnregisterHotKey", (PyCFunction) _wrap_Window_UnregisterHotKey, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_ConvertDialogPointToPixels", (PyCFunction) _wrap_Window_ConvertDialogPointToPixels, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_ConvertDialogSizeToPixels", (PyCFunction) _wrap_Window_ConvertDialogSizeToPixels, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_DLG_PNT", (PyCFunction) _wrap_Window_DLG_PNT, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_DLG_SZE", (PyCFunction) _wrap_Window_DLG_SZE, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_ConvertPixelPointToDialog", (PyCFunction) _wrap_Window_ConvertPixelPointToDialog, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_ConvertPixelSizeToDialog", (PyCFunction) _wrap_Window_ConvertPixelSizeToDialog, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_WarpPointer", (PyCFunction) _wrap_Window_WarpPointer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_CaptureMouse", (PyCFunction)_wrap_Window_CaptureMouse, METH_O, NULL},
|
|
{ (char *)"Window_ReleaseMouse", (PyCFunction)_wrap_Window_ReleaseMouse, METH_O, NULL},
|
|
{ (char *)"Window_GetCapture", (PyCFunction)_wrap_Window_GetCapture, METH_NOARGS, NULL},
|
|
{ (char *)"Window_HasCapture", (PyCFunction)_wrap_Window_HasCapture, METH_O, NULL},
|
|
{ (char *)"Window_Refresh", (PyCFunction) _wrap_Window_Refresh, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_RefreshRect", (PyCFunction) _wrap_Window_RefreshRect, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_Update", (PyCFunction)_wrap_Window_Update, METH_O, NULL},
|
|
{ (char *)"Window_ClearBackground", (PyCFunction)_wrap_Window_ClearBackground, METH_O, NULL},
|
|
{ (char *)"Window_Freeze", (PyCFunction)_wrap_Window_Freeze, METH_O, NULL},
|
|
{ (char *)"Window_IsFrozen", (PyCFunction)_wrap_Window_IsFrozen, METH_O, NULL},
|
|
{ (char *)"Window_Thaw", (PyCFunction)_wrap_Window_Thaw, METH_O, NULL},
|
|
{ (char *)"Window_PrepareDC", (PyCFunction) _wrap_Window_PrepareDC, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_IsDoubleBuffered", (PyCFunction)_wrap_Window_IsDoubleBuffered, METH_O, NULL},
|
|
{ (char *)"Window_GetUpdateRegion", (PyCFunction)_wrap_Window_GetUpdateRegion, METH_O, NULL},
|
|
{ (char *)"Window_GetUpdateClientRect", (PyCFunction)_wrap_Window_GetUpdateClientRect, METH_O, NULL},
|
|
{ (char *)"Window_IsExposed", (PyCFunction) _wrap_Window_IsExposed, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_IsExposedPoint", (PyCFunction) _wrap_Window_IsExposedPoint, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_IsExposedRect", (PyCFunction) _wrap_Window_IsExposedRect, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetDefaultAttributes", (PyCFunction)_wrap_Window_GetDefaultAttributes, METH_O, NULL},
|
|
{ (char *)"Window_GetClassDefaultAttributes", (PyCFunction) _wrap_Window_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetBackgroundColour", (PyCFunction) _wrap_Window_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetOwnBackgroundColour", (PyCFunction) _wrap_Window_SetOwnBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetForegroundColour", (PyCFunction) _wrap_Window_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetOwnForegroundColour", (PyCFunction) _wrap_Window_SetOwnForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetBackgroundColour", (PyCFunction)_wrap_Window_GetBackgroundColour, METH_O, NULL},
|
|
{ (char *)"Window_GetForegroundColour", (PyCFunction)_wrap_Window_GetForegroundColour, METH_O, NULL},
|
|
{ (char *)"Window_InheritsBackgroundColour", (PyCFunction)_wrap_Window_InheritsBackgroundColour, METH_O, NULL},
|
|
{ (char *)"Window_UseBgCol", (PyCFunction)_wrap_Window_UseBgCol, METH_O, NULL},
|
|
{ (char *)"Window_SetBackgroundStyle", (PyCFunction) _wrap_Window_SetBackgroundStyle, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetBackgroundStyle", (PyCFunction)_wrap_Window_GetBackgroundStyle, METH_O, NULL},
|
|
{ (char *)"Window_HasTransparentBackground", (PyCFunction)_wrap_Window_HasTransparentBackground, METH_O, NULL},
|
|
{ (char *)"Window_SetCursor", (PyCFunction) _wrap_Window_SetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetCursor", (PyCFunction)_wrap_Window_GetCursor, METH_O, NULL},
|
|
{ (char *)"Window_SetFont", (PyCFunction) _wrap_Window_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetOwnFont", (PyCFunction) _wrap_Window_SetOwnFont, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetFont", (PyCFunction)_wrap_Window_GetFont, METH_O, NULL},
|
|
{ (char *)"Window_SetCaret", (PyCFunction) _wrap_Window_SetCaret, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetCaret", (PyCFunction)_wrap_Window_GetCaret, METH_O, NULL},
|
|
{ (char *)"Window_GetCharHeight", (PyCFunction)_wrap_Window_GetCharHeight, METH_O, NULL},
|
|
{ (char *)"Window_GetCharWidth", (PyCFunction)_wrap_Window_GetCharWidth, METH_O, NULL},
|
|
{ (char *)"Window_GetTextExtent", (PyCFunction) _wrap_Window_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetFullTextExtent", (PyCFunction) _wrap_Window_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_ClientToScreenXY", (PyCFunction) _wrap_Window_ClientToScreenXY, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_ScreenToClientXY", (PyCFunction) _wrap_Window_ScreenToClientXY, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_ClientToScreen", (PyCFunction) _wrap_Window_ClientToScreen, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_ScreenToClient", (PyCFunction) _wrap_Window_ScreenToClient, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_HitTestXY", (PyCFunction) _wrap_Window_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_HitTest", (PyCFunction) _wrap_Window_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetBorder", _wrap_Window_GetBorder, METH_VARARGS, NULL},
|
|
{ (char *)"Window_UpdateWindowUI", (PyCFunction) _wrap_Window_UpdateWindowUI, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_PopupMenuXY", (PyCFunction) _wrap_Window_PopupMenuXY, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_PopupMenu", (PyCFunction) _wrap_Window_PopupMenu, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_HasMultiplePages", (PyCFunction)_wrap_Window_HasMultiplePages, METH_O, NULL},
|
|
{ (char *)"Window_GetHandle", (PyCFunction)_wrap_Window_GetHandle, METH_O, NULL},
|
|
{ (char *)"Window_AssociateHandle", (PyCFunction) _wrap_Window_AssociateHandle, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_DissociateHandle", (PyCFunction)_wrap_Window_DissociateHandle, METH_O, NULL},
|
|
{ (char *)"Window_HasScrollbar", (PyCFunction) _wrap_Window_HasScrollbar, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetScrollbar", (PyCFunction) _wrap_Window_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetScrollPos", (PyCFunction) _wrap_Window_SetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetScrollPos", (PyCFunction) _wrap_Window_GetScrollPos, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetScrollThumb", (PyCFunction) _wrap_Window_GetScrollThumb, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetScrollRange", (PyCFunction) _wrap_Window_GetScrollRange, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_ScrollWindow", (PyCFunction) _wrap_Window_ScrollWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_ScrollLines", (PyCFunction) _wrap_Window_ScrollLines, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_ScrollPages", (PyCFunction) _wrap_Window_ScrollPages, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_LineUp", (PyCFunction)_wrap_Window_LineUp, METH_O, NULL},
|
|
{ (char *)"Window_LineDown", (PyCFunction)_wrap_Window_LineDown, METH_O, NULL},
|
|
{ (char *)"Window_PageUp", (PyCFunction)_wrap_Window_PageUp, METH_O, NULL},
|
|
{ (char *)"Window_PageDown", (PyCFunction)_wrap_Window_PageDown, METH_O, NULL},
|
|
{ (char *)"Window_SetHelpText", (PyCFunction) _wrap_Window_SetHelpText, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetHelpTextForId", (PyCFunction) _wrap_Window_SetHelpTextForId, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetHelpTextAtPoint", (PyCFunction) _wrap_Window_GetHelpTextAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetHelpText", (PyCFunction)_wrap_Window_GetHelpText, METH_O, NULL},
|
|
{ (char *)"Window_SetToolTipString", (PyCFunction) _wrap_Window_SetToolTipString, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetToolTip", (PyCFunction) _wrap_Window_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetToolTip", (PyCFunction)_wrap_Window_GetToolTip, METH_O, NULL},
|
|
{ (char *)"Window_SetDropTarget", (PyCFunction) _wrap_Window_SetDropTarget, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetDropTarget", (PyCFunction)_wrap_Window_GetDropTarget, METH_O, NULL},
|
|
{ (char *)"Window_DragAcceptFiles", (PyCFunction) _wrap_Window_DragAcceptFiles, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetConstraints", (PyCFunction) _wrap_Window_SetConstraints, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetConstraints", (PyCFunction)_wrap_Window_GetConstraints, METH_O, NULL},
|
|
{ (char *)"Window_SetAutoLayout", (PyCFunction) _wrap_Window_SetAutoLayout, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetAutoLayout", (PyCFunction)_wrap_Window_GetAutoLayout, METH_O, NULL},
|
|
{ (char *)"Window_Layout", (PyCFunction)_wrap_Window_Layout, METH_O, NULL},
|
|
{ (char *)"Window_SetSizer", (PyCFunction) _wrap_Window_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_SetSizerAndFit", (PyCFunction) _wrap_Window_SetSizerAndFit, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetSizer", (PyCFunction)_wrap_Window_GetSizer, METH_O, NULL},
|
|
{ (char *)"Window_SetContainingSizer", (PyCFunction) _wrap_Window_SetContainingSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_GetContainingSizer", (PyCFunction)_wrap_Window_GetContainingSizer, METH_O, NULL},
|
|
{ (char *)"Window_InheritAttributes", (PyCFunction)_wrap_Window_InheritAttributes, METH_O, NULL},
|
|
{ (char *)"Window_ShouldInheritColours", (PyCFunction)_wrap_Window_ShouldInheritColours, METH_O, NULL},
|
|
{ (char *)"Window_CanSetTransparent", (PyCFunction)_wrap_Window_CanSetTransparent, METH_O, NULL},
|
|
{ (char *)"Window_SetTransparent", (PyCFunction) _wrap_Window_SetTransparent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_swigregister", Window_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"Window_swiginit", Window_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"FindWindowById", (PyCFunction) _wrap_FindWindowById, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FindWindowByName", (PyCFunction) _wrap_FindWindowByName, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FindWindowByLabel", (PyCFunction) _wrap_FindWindowByLabel, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Window_FromHWND", (PyCFunction) _wrap_Window_FromHWND, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GetTopLevelWindows", (PyCFunction)_wrap_GetTopLevelWindows, METH_NOARGS, NULL},
|
|
{ (char *)"new_Validator", (PyCFunction)_wrap_new_Validator, METH_NOARGS, NULL},
|
|
{ (char *)"Validator_Clone", (PyCFunction)_wrap_Validator_Clone, METH_O, NULL},
|
|
{ (char *)"Validator_Validate", (PyCFunction) _wrap_Validator_Validate, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Validator_TransferToWindow", (PyCFunction)_wrap_Validator_TransferToWindow, METH_O, NULL},
|
|
{ (char *)"Validator_TransferFromWindow", (PyCFunction)_wrap_Validator_TransferFromWindow, METH_O, NULL},
|
|
{ (char *)"Validator_GetWindow", (PyCFunction)_wrap_Validator_GetWindow, METH_O, NULL},
|
|
{ (char *)"Validator_SetWindow", (PyCFunction) _wrap_Validator_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Validator_IsSilent", (PyCFunction)_wrap_Validator_IsSilent, METH_NOARGS, NULL},
|
|
{ (char *)"Validator_SetBellOnError", (PyCFunction) _wrap_Validator_SetBellOnError, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Validator_swigregister", Validator_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"Validator_swiginit", Validator_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_PyValidator", (PyCFunction)_wrap_new_PyValidator, METH_NOARGS, NULL},
|
|
{ (char *)"PyValidator__setCallbackInfo", (PyCFunction) _wrap_PyValidator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PyValidator_swigregister", PyValidator_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"PyValidator_swiginit", PyValidator_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_Menu", (PyCFunction) _wrap_new_Menu, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_Append", (PyCFunction) _wrap_Menu_Append, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_AppendSeparator", (PyCFunction)_wrap_Menu_AppendSeparator, METH_O, NULL},
|
|
{ (char *)"Menu_AppendCheckItem", (PyCFunction) _wrap_Menu_AppendCheckItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_AppendRadioItem", (PyCFunction) _wrap_Menu_AppendRadioItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_AppendMenu", (PyCFunction) _wrap_Menu_AppendMenu, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_AppendSubMenu", (PyCFunction) _wrap_Menu_AppendSubMenu, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_AppendItem", (PyCFunction) _wrap_Menu_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_InsertItem", (PyCFunction) _wrap_Menu_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_PrependItem", (PyCFunction) _wrap_Menu_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_Break", (PyCFunction)_wrap_Menu_Break, METH_O, NULL},
|
|
{ (char *)"Menu_Insert", (PyCFunction) _wrap_Menu_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_InsertSeparator", (PyCFunction) _wrap_Menu_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_InsertCheckItem", (PyCFunction) _wrap_Menu_InsertCheckItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_InsertRadioItem", (PyCFunction) _wrap_Menu_InsertRadioItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_InsertMenu", (PyCFunction) _wrap_Menu_InsertMenu, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_Prepend", (PyCFunction) _wrap_Menu_Prepend, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_PrependSeparator", (PyCFunction)_wrap_Menu_PrependSeparator, METH_O, NULL},
|
|
{ (char *)"Menu_PrependCheckItem", (PyCFunction) _wrap_Menu_PrependCheckItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_PrependRadioItem", (PyCFunction) _wrap_Menu_PrependRadioItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_PrependMenu", (PyCFunction) _wrap_Menu_PrependMenu, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_Remove", (PyCFunction) _wrap_Menu_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_RemoveItem", (PyCFunction) _wrap_Menu_RemoveItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_Delete", (PyCFunction) _wrap_Menu_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_DeleteItem", (PyCFunction) _wrap_Menu_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_Destroy", (PyCFunction)_wrap_Menu_Destroy, METH_O, NULL},
|
|
{ (char *)"Menu_DestroyId", (PyCFunction) _wrap_Menu_DestroyId, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_DestroyItem", (PyCFunction) _wrap_Menu_DestroyItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_GetMenuItemCount", (PyCFunction)_wrap_Menu_GetMenuItemCount, METH_O, NULL},
|
|
{ (char *)"Menu_GetMenuItems", (PyCFunction)_wrap_Menu_GetMenuItems, METH_O, NULL},
|
|
{ (char *)"Menu_FindItem", (PyCFunction) _wrap_Menu_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_FindItemById", (PyCFunction) _wrap_Menu_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_FindItemByPosition", (PyCFunction) _wrap_Menu_FindItemByPosition, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_Enable", (PyCFunction) _wrap_Menu_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_IsEnabled", (PyCFunction) _wrap_Menu_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_Check", (PyCFunction) _wrap_Menu_Check, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_IsChecked", (PyCFunction) _wrap_Menu_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_SetLabel", (PyCFunction) _wrap_Menu_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_GetLabel", (PyCFunction) _wrap_Menu_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_SetHelpString", (PyCFunction) _wrap_Menu_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_GetHelpString", (PyCFunction) _wrap_Menu_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_SetTitle", (PyCFunction) _wrap_Menu_SetTitle, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_GetTitle", (PyCFunction)_wrap_Menu_GetTitle, METH_O, NULL},
|
|
{ (char *)"Menu_SetEventHandler", (PyCFunction) _wrap_Menu_SetEventHandler, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_GetEventHandler", (PyCFunction)_wrap_Menu_GetEventHandler, METH_O, NULL},
|
|
{ (char *)"Menu_SetInvokingWindow", (PyCFunction) _wrap_Menu_SetInvokingWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_GetInvokingWindow", (PyCFunction)_wrap_Menu_GetInvokingWindow, METH_O, NULL},
|
|
{ (char *)"Menu_GetStyle", (PyCFunction)_wrap_Menu_GetStyle, METH_O, NULL},
|
|
{ (char *)"Menu_UpdateUI", (PyCFunction) _wrap_Menu_UpdateUI, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_GetMenuBar", (PyCFunction)_wrap_Menu_GetMenuBar, METH_O, NULL},
|
|
{ (char *)"Menu_Attach", (PyCFunction) _wrap_Menu_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_Detach", (PyCFunction)_wrap_Menu_Detach, METH_O, NULL},
|
|
{ (char *)"Menu_IsAttached", (PyCFunction)_wrap_Menu_IsAttached, METH_O, NULL},
|
|
{ (char *)"Menu_SetParent", (PyCFunction) _wrap_Menu_SetParent, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Menu_GetParent", (PyCFunction)_wrap_Menu_GetParent, METH_O, NULL},
|
|
{ (char *)"Menu_swigregister", Menu_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"Menu_swiginit", Menu_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_MenuBar", (PyCFunction) _wrap_new_MenuBar, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_Append", (PyCFunction) _wrap_MenuBar_Append, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_Insert", (PyCFunction) _wrap_MenuBar_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_GetMenuCount", (PyCFunction)_wrap_MenuBar_GetMenuCount, METH_O, NULL},
|
|
{ (char *)"MenuBar_GetMenu", (PyCFunction) _wrap_MenuBar_GetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_Replace", (PyCFunction) _wrap_MenuBar_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_Remove", (PyCFunction) _wrap_MenuBar_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_EnableTop", (PyCFunction) _wrap_MenuBar_EnableTop, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_IsEnabledTop", (PyCFunction) _wrap_MenuBar_IsEnabledTop, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_SetLabelTop", (PyCFunction) _wrap_MenuBar_SetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_GetLabelTop", (PyCFunction) _wrap_MenuBar_GetLabelTop, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_FindMenuItem", (PyCFunction) _wrap_MenuBar_FindMenuItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_FindItemById", (PyCFunction) _wrap_MenuBar_FindItemById, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_FindMenu", (PyCFunction) _wrap_MenuBar_FindMenu, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_Enable", (PyCFunction) _wrap_MenuBar_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_Check", (PyCFunction) _wrap_MenuBar_Check, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_IsChecked", (PyCFunction) _wrap_MenuBar_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_IsEnabled", (PyCFunction) _wrap_MenuBar_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_SetLabel", (PyCFunction) _wrap_MenuBar_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_GetLabel", (PyCFunction) _wrap_MenuBar_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_SetHelpString", (PyCFunction) _wrap_MenuBar_SetHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_GetHelpString", (PyCFunction) _wrap_MenuBar_GetHelpString, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_GetFrame", (PyCFunction)_wrap_MenuBar_GetFrame, METH_O, NULL},
|
|
{ (char *)"MenuBar_IsAttached", (PyCFunction)_wrap_MenuBar_IsAttached, METH_O, NULL},
|
|
{ (char *)"MenuBar_Attach", (PyCFunction) _wrap_MenuBar_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_Detach", (PyCFunction)_wrap_MenuBar_Detach, METH_O, NULL},
|
|
{ (char *)"MenuBar_UpdateMenus", (PyCFunction)_wrap_MenuBar_UpdateMenus, METH_O, NULL},
|
|
{ (char *)"MenuBar_SetAutoWindowMenu", (PyCFunction) _wrap_MenuBar_SetAutoWindowMenu, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuBar_GetAutoWindowMenu", (PyCFunction)_wrap_MenuBar_GetAutoWindowMenu, METH_NOARGS, NULL},
|
|
{ (char *)"MenuBar_swigregister", MenuBar_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"MenuBar_swiginit", MenuBar_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_MenuItem", (PyCFunction) _wrap_new_MenuItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_MenuItem", (PyCFunction)_wrap_delete_MenuItem, METH_O, NULL},
|
|
{ (char *)"MenuItem_GetMenu", (PyCFunction)_wrap_MenuItem_GetMenu, METH_O, NULL},
|
|
{ (char *)"MenuItem_SetMenu", (PyCFunction) _wrap_MenuItem_SetMenu, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_SetId", (PyCFunction) _wrap_MenuItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_GetId", (PyCFunction)_wrap_MenuItem_GetId, METH_O, NULL},
|
|
{ (char *)"MenuItem_IsSeparator", (PyCFunction)_wrap_MenuItem_IsSeparator, METH_O, NULL},
|
|
{ (char *)"MenuItem_SetText", (PyCFunction) _wrap_MenuItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_GetLabel", (PyCFunction)_wrap_MenuItem_GetLabel, METH_O, NULL},
|
|
{ (char *)"MenuItem_GetText", (PyCFunction)_wrap_MenuItem_GetText, METH_O, NULL},
|
|
{ (char *)"MenuItem_GetLabelFromText", (PyCFunction) _wrap_MenuItem_GetLabelFromText, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_GetKind", (PyCFunction)_wrap_MenuItem_GetKind, METH_O, NULL},
|
|
{ (char *)"MenuItem_SetKind", (PyCFunction) _wrap_MenuItem_SetKind, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_SetCheckable", (PyCFunction) _wrap_MenuItem_SetCheckable, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_IsCheckable", (PyCFunction)_wrap_MenuItem_IsCheckable, METH_O, NULL},
|
|
{ (char *)"MenuItem_IsSubMenu", (PyCFunction)_wrap_MenuItem_IsSubMenu, METH_O, NULL},
|
|
{ (char *)"MenuItem_SetSubMenu", (PyCFunction) _wrap_MenuItem_SetSubMenu, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_GetSubMenu", (PyCFunction)_wrap_MenuItem_GetSubMenu, METH_O, NULL},
|
|
{ (char *)"MenuItem_Enable", (PyCFunction) _wrap_MenuItem_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_IsEnabled", (PyCFunction)_wrap_MenuItem_IsEnabled, METH_O, NULL},
|
|
{ (char *)"MenuItem_Check", (PyCFunction) _wrap_MenuItem_Check, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_IsChecked", (PyCFunction)_wrap_MenuItem_IsChecked, METH_O, NULL},
|
|
{ (char *)"MenuItem_Toggle", (PyCFunction)_wrap_MenuItem_Toggle, METH_O, NULL},
|
|
{ (char *)"MenuItem_SetHelp", (PyCFunction) _wrap_MenuItem_SetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_GetHelp", (PyCFunction)_wrap_MenuItem_GetHelp, METH_O, NULL},
|
|
{ (char *)"MenuItem_GetAccel", (PyCFunction)_wrap_MenuItem_GetAccel, METH_O, NULL},
|
|
{ (char *)"MenuItem_SetAccel", (PyCFunction) _wrap_MenuItem_SetAccel, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_SetBitmap", (PyCFunction) _wrap_MenuItem_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_GetBitmap", (PyCFunction)_wrap_MenuItem_GetBitmap, METH_O, NULL},
|
|
{ (char *)"MenuItem_SetFont", (PyCFunction) _wrap_MenuItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_GetFont", (PyCFunction)_wrap_MenuItem_GetFont, METH_O, NULL},
|
|
{ (char *)"MenuItem_SetTextColour", (PyCFunction) _wrap_MenuItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_GetTextColour", (PyCFunction)_wrap_MenuItem_GetTextColour, METH_O, NULL},
|
|
{ (char *)"MenuItem_SetBackgroundColour", (PyCFunction) _wrap_MenuItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_GetBackgroundColour", (PyCFunction)_wrap_MenuItem_GetBackgroundColour, METH_O, NULL},
|
|
{ (char *)"MenuItem_SetBitmaps", (PyCFunction) _wrap_MenuItem_SetBitmaps, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_SetDisabledBitmap", (PyCFunction) _wrap_MenuItem_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_GetDisabledBitmap", (PyCFunction)_wrap_MenuItem_GetDisabledBitmap, METH_O, NULL},
|
|
{ (char *)"MenuItem_SetMarginWidth", (PyCFunction) _wrap_MenuItem_SetMarginWidth, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_GetMarginWidth", (PyCFunction)_wrap_MenuItem_GetMarginWidth, METH_O, NULL},
|
|
{ (char *)"MenuItem_GetDefaultMarginWidth", (PyCFunction)_wrap_MenuItem_GetDefaultMarginWidth, METH_NOARGS, NULL},
|
|
{ (char *)"MenuItem_IsOwnerDrawn", (PyCFunction)_wrap_MenuItem_IsOwnerDrawn, METH_O, NULL},
|
|
{ (char *)"MenuItem_SetOwnerDrawn", (PyCFunction) _wrap_MenuItem_SetOwnerDrawn, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"MenuItem_ResetOwnerDrawn", (PyCFunction)_wrap_MenuItem_ResetOwnerDrawn, METH_O, NULL},
|
|
{ (char *)"MenuItem_swigregister", MenuItem_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"MenuItem_swiginit", MenuItem_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_Control", (PyCFunction) _wrap_new_Control, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_PreControl", (PyCFunction)_wrap_new_PreControl, METH_NOARGS, NULL},
|
|
{ (char *)"Control_Create", (PyCFunction) _wrap_Control_Create, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Control_GetAlignment", (PyCFunction)_wrap_Control_GetAlignment, METH_O, NULL},
|
|
{ (char *)"Control_GetLabelText", (PyCFunction)_wrap_Control_GetLabelText, METH_O, NULL},
|
|
{ (char *)"Control_Command", (PyCFunction) _wrap_Control_Command, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Control_GetClassDefaultAttributes", (PyCFunction) _wrap_Control_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Control_swigregister", Control_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"Control_swiginit", Control_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"ItemContainer_Append", (PyCFunction) _wrap_ItemContainer_Append, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ItemContainer_AppendItems", (PyCFunction) _wrap_ItemContainer_AppendItems, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ItemContainer_Insert", (PyCFunction) _wrap_ItemContainer_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ItemContainer_Clear", (PyCFunction)_wrap_ItemContainer_Clear, METH_O, NULL},
|
|
{ (char *)"ItemContainer_Delete", (PyCFunction) _wrap_ItemContainer_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ItemContainer_GetClientData", (PyCFunction) _wrap_ItemContainer_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ItemContainer_SetClientData", (PyCFunction) _wrap_ItemContainer_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ItemContainer_GetCount", (PyCFunction)_wrap_ItemContainer_GetCount, METH_O, NULL},
|
|
{ (char *)"ItemContainer_IsEmpty", (PyCFunction)_wrap_ItemContainer_IsEmpty, METH_O, NULL},
|
|
{ (char *)"ItemContainer_GetString", (PyCFunction) _wrap_ItemContainer_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ItemContainer_GetStrings", (PyCFunction)_wrap_ItemContainer_GetStrings, METH_O, NULL},
|
|
{ (char *)"ItemContainer_SetString", (PyCFunction) _wrap_ItemContainer_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ItemContainer_FindString", (PyCFunction) _wrap_ItemContainer_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ItemContainer_SetSelection", (PyCFunction) _wrap_ItemContainer_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ItemContainer_GetSelection", (PyCFunction)_wrap_ItemContainer_GetSelection, METH_O, NULL},
|
|
{ (char *)"ItemContainer_SetStringSelection", (PyCFunction) _wrap_ItemContainer_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ItemContainer_GetStringSelection", (PyCFunction)_wrap_ItemContainer_GetStringSelection, METH_O, NULL},
|
|
{ (char *)"ItemContainer_Select", (PyCFunction) _wrap_ItemContainer_Select, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"ItemContainer_swigregister", ItemContainer_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"ControlWithItems_swigregister", ControlWithItems_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"new_SizerFlags", (PyCFunction) _wrap_new_SizerFlags, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_SizerFlags", (PyCFunction)_wrap_delete_SizerFlags, METH_O, NULL},
|
|
{ (char *)"SizerFlags_Proportion", (PyCFunction) _wrap_SizerFlags_Proportion, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerFlags_Align", (PyCFunction) _wrap_SizerFlags_Align, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerFlags_Expand", (PyCFunction)_wrap_SizerFlags_Expand, METH_O, NULL},
|
|
{ (char *)"SizerFlags_Centre", (PyCFunction)_wrap_SizerFlags_Centre, METH_O, NULL},
|
|
{ (char *)"SizerFlags_Center", (PyCFunction)_wrap_SizerFlags_Center, METH_O, NULL},
|
|
{ (char *)"SizerFlags_Left", (PyCFunction)_wrap_SizerFlags_Left, METH_O, NULL},
|
|
{ (char *)"SizerFlags_Right", (PyCFunction)_wrap_SizerFlags_Right, METH_O, NULL},
|
|
{ (char *)"SizerFlags_Top", (PyCFunction)_wrap_SizerFlags_Top, METH_O, NULL},
|
|
{ (char *)"SizerFlags_Bottom", (PyCFunction)_wrap_SizerFlags_Bottom, METH_O, NULL},
|
|
{ (char *)"SizerFlags_Shaped", (PyCFunction)_wrap_SizerFlags_Shaped, METH_O, NULL},
|
|
{ (char *)"SizerFlags_FixedMinSize", (PyCFunction)_wrap_SizerFlags_FixedMinSize, METH_O, NULL},
|
|
{ (char *)"SizerFlags_Border", (PyCFunction) _wrap_SizerFlags_Border, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerFlags_DoubleBorder", (PyCFunction) _wrap_SizerFlags_DoubleBorder, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerFlags_TripleBorder", (PyCFunction) _wrap_SizerFlags_TripleBorder, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerFlags_HorzBorder", (PyCFunction)_wrap_SizerFlags_HorzBorder, METH_O, NULL},
|
|
{ (char *)"SizerFlags_DoubleHorzBorder", (PyCFunction)_wrap_SizerFlags_DoubleHorzBorder, METH_O, NULL},
|
|
{ (char *)"SizerFlags_GetDefaultBorder", (PyCFunction)_wrap_SizerFlags_GetDefaultBorder, METH_NOARGS, NULL},
|
|
{ (char *)"SizerFlags_GetProportion", (PyCFunction)_wrap_SizerFlags_GetProportion, METH_O, NULL},
|
|
{ (char *)"SizerFlags_GetFlags", (PyCFunction)_wrap_SizerFlags_GetFlags, METH_O, NULL},
|
|
{ (char *)"SizerFlags_GetBorderInPixels", (PyCFunction)_wrap_SizerFlags_GetBorderInPixels, METH_O, NULL},
|
|
{ (char *)"SizerFlags_swigregister", SizerFlags_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"SizerFlags_swiginit", SizerFlags_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_SizerItem", (PyCFunction)_wrap_new_SizerItem, METH_NOARGS, NULL},
|
|
{ (char *)"delete_SizerItem", (PyCFunction)_wrap_delete_SizerItem, METH_O, NULL},
|
|
{ (char *)"new_SizerItemWindow", (PyCFunction) _wrap_new_SizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_SizerItemSpacer", (PyCFunction) _wrap_new_SizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_SizerItemSizer", (PyCFunction) _wrap_new_SizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerItem_DeleteWindows", (PyCFunction)_wrap_SizerItem_DeleteWindows, METH_O, NULL},
|
|
{ (char *)"SizerItem_DetachSizer", (PyCFunction)_wrap_SizerItem_DetachSizer, METH_O, NULL},
|
|
{ (char *)"SizerItem_GetSize", (PyCFunction)_wrap_SizerItem_GetSize, METH_O, NULL},
|
|
{ (char *)"SizerItem_CalcMin", (PyCFunction)_wrap_SizerItem_CalcMin, METH_O, NULL},
|
|
{ (char *)"SizerItem_SetDimension", (PyCFunction) _wrap_SizerItem_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerItem_GetMinSize", (PyCFunction)_wrap_SizerItem_GetMinSize, METH_O, NULL},
|
|
{ (char *)"SizerItem_GetMinSizeWithBorder", (PyCFunction)_wrap_SizerItem_GetMinSizeWithBorder, METH_O, NULL},
|
|
{ (char *)"SizerItem_SetInitSize", (PyCFunction) _wrap_SizerItem_SetInitSize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerItem_SetRatioWH", (PyCFunction) _wrap_SizerItem_SetRatioWH, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerItem_SetRatioSize", (PyCFunction) _wrap_SizerItem_SetRatioSize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerItem_SetRatio", (PyCFunction) _wrap_SizerItem_SetRatio, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerItem_GetRatio", (PyCFunction)_wrap_SizerItem_GetRatio, METH_O, NULL},
|
|
{ (char *)"SizerItem_GetRect", (PyCFunction)_wrap_SizerItem_GetRect, METH_O, NULL},
|
|
{ (char *)"SizerItem_IsWindow", (PyCFunction)_wrap_SizerItem_IsWindow, METH_O, NULL},
|
|
{ (char *)"SizerItem_IsSizer", (PyCFunction)_wrap_SizerItem_IsSizer, METH_O, NULL},
|
|
{ (char *)"SizerItem_IsSpacer", (PyCFunction)_wrap_SizerItem_IsSpacer, METH_O, NULL},
|
|
{ (char *)"SizerItem_SetProportion", (PyCFunction) _wrap_SizerItem_SetProportion, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerItem_GetProportion", (PyCFunction)_wrap_SizerItem_GetProportion, METH_O, NULL},
|
|
{ (char *)"SizerItem_SetFlag", (PyCFunction) _wrap_SizerItem_SetFlag, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerItem_GetFlag", (PyCFunction)_wrap_SizerItem_GetFlag, METH_O, NULL},
|
|
{ (char *)"SizerItem_SetBorder", (PyCFunction) _wrap_SizerItem_SetBorder, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerItem_GetBorder", (PyCFunction)_wrap_SizerItem_GetBorder, METH_O, NULL},
|
|
{ (char *)"SizerItem_GetWindow", (PyCFunction)_wrap_SizerItem_GetWindow, METH_O, NULL},
|
|
{ (char *)"SizerItem_SetWindow", (PyCFunction) _wrap_SizerItem_SetWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerItem_GetSizer", (PyCFunction)_wrap_SizerItem_GetSizer, METH_O, NULL},
|
|
{ (char *)"SizerItem_SetSizer", (PyCFunction) _wrap_SizerItem_SetSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerItem_GetSpacer", (PyCFunction)_wrap_SizerItem_GetSpacer, METH_O, NULL},
|
|
{ (char *)"SizerItem_SetSpacer", (PyCFunction) _wrap_SizerItem_SetSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerItem_Show", (PyCFunction) _wrap_SizerItem_Show, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerItem_IsShown", (PyCFunction)_wrap_SizerItem_IsShown, METH_O, NULL},
|
|
{ (char *)"SizerItem_GetPosition", (PyCFunction)_wrap_SizerItem_GetPosition, METH_O, NULL},
|
|
{ (char *)"SizerItem_GetUserData", (PyCFunction)_wrap_SizerItem_GetUserData, METH_O, NULL},
|
|
{ (char *)"SizerItem_SetUserData", (PyCFunction) _wrap_SizerItem_SetUserData, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"SizerItem_swigregister", SizerItem_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"SizerItem_swiginit", SizerItem_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"delete_Sizer", (PyCFunction)_wrap_delete_Sizer, METH_O, NULL},
|
|
{ (char *)"Sizer__setOORInfo", (PyCFunction) _wrap_Sizer__setOORInfo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_Add", (PyCFunction) _wrap_Sizer_Add, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_AddF", (PyCFunction) _wrap_Sizer_AddF, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_Insert", (PyCFunction) _wrap_Sizer_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_InsertF", (PyCFunction) _wrap_Sizer_InsertF, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_Prepend", (PyCFunction) _wrap_Sizer_Prepend, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_PrependF", (PyCFunction) _wrap_Sizer_PrependF, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_Remove", (PyCFunction) _wrap_Sizer_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_Detach", (PyCFunction) _wrap_Sizer_Detach, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_GetItem", (PyCFunction) _wrap_Sizer_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer__SetItemMinSize", (PyCFunction) _wrap_Sizer__SetItemMinSize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer__ReplaceWin", (PyCFunction) _wrap_Sizer__ReplaceWin, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer__ReplaceSizer", (PyCFunction) _wrap_Sizer__ReplaceSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer__ReplaceItem", (PyCFunction) _wrap_Sizer__ReplaceItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_SetContainingWindow", (PyCFunction) _wrap_Sizer_SetContainingWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_GetContainingWindow", (PyCFunction)_wrap_Sizer_GetContainingWindow, METH_O, NULL},
|
|
{ (char *)"Sizer_AddItem", (PyCFunction) _wrap_Sizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_InsertItem", (PyCFunction) _wrap_Sizer_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_PrependItem", (PyCFunction) _wrap_Sizer_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_SetDimension", (PyCFunction) _wrap_Sizer_SetDimension, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_SetMinSize", (PyCFunction) _wrap_Sizer_SetMinSize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_GetSize", (PyCFunction)_wrap_Sizer_GetSize, METH_O, NULL},
|
|
{ (char *)"Sizer_GetPosition", (PyCFunction)_wrap_Sizer_GetPosition, METH_O, NULL},
|
|
{ (char *)"Sizer_GetMinSize", (PyCFunction)_wrap_Sizer_GetMinSize, METH_O, NULL},
|
|
{ (char *)"Sizer_RecalcSizes", (PyCFunction)_wrap_Sizer_RecalcSizes, METH_O, NULL},
|
|
{ (char *)"Sizer_CalcMin", (PyCFunction)_wrap_Sizer_CalcMin, METH_O, NULL},
|
|
{ (char *)"Sizer_Layout", (PyCFunction)_wrap_Sizer_Layout, METH_O, NULL},
|
|
{ (char *)"Sizer_Fit", (PyCFunction) _wrap_Sizer_Fit, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_FitInside", (PyCFunction) _wrap_Sizer_FitInside, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_SetSizeHints", (PyCFunction) _wrap_Sizer_SetSizeHints, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_SetVirtualSizeHints", (PyCFunction) _wrap_Sizer_SetVirtualSizeHints, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_Clear", (PyCFunction) _wrap_Sizer_Clear, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_DeleteWindows", (PyCFunction)_wrap_Sizer_DeleteWindows, METH_O, NULL},
|
|
{ (char *)"Sizer_GetChildren", (PyCFunction)_wrap_Sizer_GetChildren, METH_O, NULL},
|
|
{ (char *)"Sizer_Show", (PyCFunction) _wrap_Sizer_Show, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_IsShown", (PyCFunction) _wrap_Sizer_IsShown, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_ShowItems", (PyCFunction) _wrap_Sizer_ShowItems, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"Sizer_swigregister", Sizer_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"new_PySizer", (PyCFunction)_wrap_new_PySizer, METH_NOARGS, NULL},
|
|
{ (char *)"PySizer__setCallbackInfo", (PyCFunction) _wrap_PySizer__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"PySizer_swigregister", PySizer_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"PySizer_swiginit", PySizer_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_BoxSizer", (PyCFunction) _wrap_new_BoxSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"BoxSizer_GetOrientation", (PyCFunction)_wrap_BoxSizer_GetOrientation, METH_O, NULL},
|
|
{ (char *)"BoxSizer_SetOrientation", (PyCFunction) _wrap_BoxSizer_SetOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"BoxSizer_swigregister", BoxSizer_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"BoxSizer_swiginit", BoxSizer_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_StaticBoxSizer", (PyCFunction) _wrap_new_StaticBoxSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"StaticBoxSizer_GetStaticBox", (PyCFunction)_wrap_StaticBoxSizer_GetStaticBox, METH_O, NULL},
|
|
{ (char *)"StaticBoxSizer_swigregister", StaticBoxSizer_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"StaticBoxSizer_swiginit", StaticBoxSizer_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_GridSizer", (PyCFunction) _wrap_new_GridSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GridSizer_SetCols", (PyCFunction) _wrap_GridSizer_SetCols, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GridSizer_SetRows", (PyCFunction) _wrap_GridSizer_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GridSizer_SetVGap", (PyCFunction) _wrap_GridSizer_SetVGap, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GridSizer_SetHGap", (PyCFunction) _wrap_GridSizer_SetHGap, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GridSizer_GetCols", (PyCFunction)_wrap_GridSizer_GetCols, METH_O, NULL},
|
|
{ (char *)"GridSizer_GetRows", (PyCFunction)_wrap_GridSizer_GetRows, METH_O, NULL},
|
|
{ (char *)"GridSizer_GetVGap", (PyCFunction)_wrap_GridSizer_GetVGap, METH_O, NULL},
|
|
{ (char *)"GridSizer_GetHGap", (PyCFunction)_wrap_GridSizer_GetHGap, METH_O, NULL},
|
|
{ (char *)"GridSizer_swigregister", GridSizer_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"GridSizer_swiginit", GridSizer_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_FlexGridSizer", (PyCFunction) _wrap_new_FlexGridSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FlexGridSizer_AddGrowableRow", (PyCFunction) _wrap_FlexGridSizer_AddGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FlexGridSizer_RemoveGrowableRow", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableRow, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FlexGridSizer_AddGrowableCol", (PyCFunction) _wrap_FlexGridSizer_AddGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FlexGridSizer_RemoveGrowableCol", (PyCFunction) _wrap_FlexGridSizer_RemoveGrowableCol, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FlexGridSizer_SetFlexibleDirection", (PyCFunction) _wrap_FlexGridSizer_SetFlexibleDirection, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FlexGridSizer_GetFlexibleDirection", (PyCFunction)_wrap_FlexGridSizer_GetFlexibleDirection, METH_O, NULL},
|
|
{ (char *)"FlexGridSizer_SetNonFlexibleGrowMode", (PyCFunction) _wrap_FlexGridSizer_SetNonFlexibleGrowMode, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"FlexGridSizer_GetNonFlexibleGrowMode", (PyCFunction)_wrap_FlexGridSizer_GetNonFlexibleGrowMode, METH_O, NULL},
|
|
{ (char *)"FlexGridSizer_GetRowHeights", (PyCFunction)_wrap_FlexGridSizer_GetRowHeights, METH_O, NULL},
|
|
{ (char *)"FlexGridSizer_GetColWidths", (PyCFunction)_wrap_FlexGridSizer_GetColWidths, METH_O, NULL},
|
|
{ (char *)"FlexGridSizer_swigregister", FlexGridSizer_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"FlexGridSizer_swiginit", FlexGridSizer_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_StdDialogButtonSizer", (PyCFunction)_wrap_new_StdDialogButtonSizer, METH_NOARGS, NULL},
|
|
{ (char *)"StdDialogButtonSizer_AddButton", (PyCFunction) _wrap_StdDialogButtonSizer_AddButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"StdDialogButtonSizer_Realize", (PyCFunction)_wrap_StdDialogButtonSizer_Realize, METH_O, NULL},
|
|
{ (char *)"StdDialogButtonSizer_SetAffirmativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetAffirmativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"StdDialogButtonSizer_SetNegativeButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetNegativeButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"StdDialogButtonSizer_SetCancelButton", (PyCFunction) _wrap_StdDialogButtonSizer_SetCancelButton, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"StdDialogButtonSizer_GetAffirmativeButton", (PyCFunction)_wrap_StdDialogButtonSizer_GetAffirmativeButton, METH_O, NULL},
|
|
{ (char *)"StdDialogButtonSizer_GetApplyButton", (PyCFunction)_wrap_StdDialogButtonSizer_GetApplyButton, METH_O, NULL},
|
|
{ (char *)"StdDialogButtonSizer_GetNegativeButton", (PyCFunction)_wrap_StdDialogButtonSizer_GetNegativeButton, METH_O, NULL},
|
|
{ (char *)"StdDialogButtonSizer_GetCancelButton", (PyCFunction)_wrap_StdDialogButtonSizer_GetCancelButton, METH_O, NULL},
|
|
{ (char *)"StdDialogButtonSizer_GetHelpButton", (PyCFunction)_wrap_StdDialogButtonSizer_GetHelpButton, METH_O, NULL},
|
|
{ (char *)"StdDialogButtonSizer_swigregister", StdDialogButtonSizer_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"StdDialogButtonSizer_swiginit", StdDialogButtonSizer_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_GBPosition", (PyCFunction) _wrap_new_GBPosition, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_GBPosition", (PyCFunction)_wrap_delete_GBPosition, METH_O, NULL},
|
|
{ (char *)"GBPosition_GetRow", (PyCFunction)_wrap_GBPosition_GetRow, METH_O, NULL},
|
|
{ (char *)"GBPosition_GetCol", (PyCFunction)_wrap_GBPosition_GetCol, METH_O, NULL},
|
|
{ (char *)"GBPosition_SetRow", (PyCFunction) _wrap_GBPosition_SetRow, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GBPosition_SetCol", (PyCFunction) _wrap_GBPosition_SetCol, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GBPosition___eq__", (PyCFunction) _wrap_GBPosition___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GBPosition___ne__", (PyCFunction) _wrap_GBPosition___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GBPosition_Set", (PyCFunction) _wrap_GBPosition_Set, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GBPosition_Get", (PyCFunction)_wrap_GBPosition_Get, METH_O, NULL},
|
|
{ (char *)"GBPosition_swigregister", GBPosition_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"GBPosition_swiginit", GBPosition_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_GBSpan", (PyCFunction) _wrap_new_GBSpan, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"delete_GBSpan", (PyCFunction)_wrap_delete_GBSpan, METH_O, NULL},
|
|
{ (char *)"GBSpan_GetRowspan", (PyCFunction)_wrap_GBSpan_GetRowspan, METH_O, NULL},
|
|
{ (char *)"GBSpan_GetColspan", (PyCFunction)_wrap_GBSpan_GetColspan, METH_O, NULL},
|
|
{ (char *)"GBSpan_SetRowspan", (PyCFunction) _wrap_GBSpan_SetRowspan, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GBSpan_SetColspan", (PyCFunction) _wrap_GBSpan_SetColspan, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GBSpan___eq__", (PyCFunction) _wrap_GBSpan___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GBSpan___ne__", (PyCFunction) _wrap_GBSpan___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GBSpan_Set", (PyCFunction) _wrap_GBSpan_Set, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GBSpan_Get", (PyCFunction)_wrap_GBSpan_Get, METH_O, NULL},
|
|
{ (char *)"GBSpan_swigregister", GBSpan_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"GBSpan_swiginit", GBSpan_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_GBSizerItem", (PyCFunction)_wrap_new_GBSizerItem, METH_NOARGS, NULL},
|
|
{ (char *)"delete_GBSizerItem", (PyCFunction)_wrap_delete_GBSizerItem, METH_O, NULL},
|
|
{ (char *)"new_GBSizerItemWindow", (PyCFunction) _wrap_new_GBSizerItemWindow, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_GBSizerItemSizer", (PyCFunction) _wrap_new_GBSizerItemSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"new_GBSizerItemSpacer", (PyCFunction) _wrap_new_GBSizerItemSpacer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GBSizerItem_GetPos", (PyCFunction)_wrap_GBSizerItem_GetPos, METH_O, NULL},
|
|
{ (char *)"GBSizerItem_GetSpan", (PyCFunction)_wrap_GBSizerItem_GetSpan, METH_O, NULL},
|
|
{ (char *)"GBSizerItem_SetPos", (PyCFunction) _wrap_GBSizerItem_SetPos, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GBSizerItem_SetSpan", (PyCFunction) _wrap_GBSizerItem_SetSpan, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GBSizerItem_Intersects", (PyCFunction) _wrap_GBSizerItem_Intersects, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GBSizerItem_IntersectsPos", (PyCFunction) _wrap_GBSizerItem_IntersectsPos, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GBSizerItem_GetEndPos", (PyCFunction)_wrap_GBSizerItem_GetEndPos, METH_O, NULL},
|
|
{ (char *)"GBSizerItem_GetGBSizer", (PyCFunction)_wrap_GBSizerItem_GetGBSizer, METH_O, NULL},
|
|
{ (char *)"GBSizerItem_SetGBSizer", (PyCFunction) _wrap_GBSizerItem_SetGBSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GBSizerItem_swigregister", GBSizerItem_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"GBSizerItem_swiginit", GBSizerItem_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"new_GridBagSizer", (PyCFunction) _wrap_new_GridBagSizer, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GridBagSizer_Add", (PyCFunction) _wrap_GridBagSizer_Add, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GridBagSizer_AddItem", (PyCFunction) _wrap_GridBagSizer_AddItem, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GridBagSizer_GetCellSize", (PyCFunction) _wrap_GridBagSizer_GetCellSize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GridBagSizer_GetEmptyCellSize", (PyCFunction)_wrap_GridBagSizer_GetEmptyCellSize, METH_O, NULL},
|
|
{ (char *)"GridBagSizer_SetEmptyCellSize", (PyCFunction) _wrap_GridBagSizer_SetEmptyCellSize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GridBagSizer_GetItemPosition", _wrap_GridBagSizer_GetItemPosition, METH_VARARGS, NULL},
|
|
{ (char *)"GridBagSizer_SetItemPosition", _wrap_GridBagSizer_SetItemPosition, METH_VARARGS, NULL},
|
|
{ (char *)"GridBagSizer_GetItemSpan", _wrap_GridBagSizer_GetItemSpan, METH_VARARGS, NULL},
|
|
{ (char *)"GridBagSizer_SetItemSpan", _wrap_GridBagSizer_SetItemSpan, METH_VARARGS, NULL},
|
|
{ (char *)"GridBagSizer_FindItem", _wrap_GridBagSizer_FindItem, METH_VARARGS, NULL},
|
|
{ (char *)"GridBagSizer_FindItemAtPosition", (PyCFunction) _wrap_GridBagSizer_FindItemAtPosition, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GridBagSizer_FindItemAtPoint", (PyCFunction) _wrap_GridBagSizer_FindItemAtPoint, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GridBagSizer_CheckForIntersection", (PyCFunction) _wrap_GridBagSizer_CheckForIntersection, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GridBagSizer_CheckForIntersectionPos", (PyCFunction) _wrap_GridBagSizer_CheckForIntersectionPos, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GridBagSizer_swigregister", GridBagSizer_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"GridBagSizer_swiginit", GridBagSizer_swiginit, METH_VARARGS, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_Set", (PyCFunction) _wrap_IndividualLayoutConstraint_Set, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_LeftOf", (PyCFunction) _wrap_IndividualLayoutConstraint_LeftOf, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_RightOf", (PyCFunction) _wrap_IndividualLayoutConstraint_RightOf, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_Above", (PyCFunction) _wrap_IndividualLayoutConstraint_Above, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_Below", (PyCFunction) _wrap_IndividualLayoutConstraint_Below, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_SameAs", (PyCFunction) _wrap_IndividualLayoutConstraint_SameAs, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_PercentOf", (PyCFunction) _wrap_IndividualLayoutConstraint_PercentOf, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_Absolute", (PyCFunction) _wrap_IndividualLayoutConstraint_Absolute, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_Unconstrained", (PyCFunction)_wrap_IndividualLayoutConstraint_Unconstrained, METH_O, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_AsIs", (PyCFunction)_wrap_IndividualLayoutConstraint_AsIs, METH_O, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_GetOtherWindow", (PyCFunction)_wrap_IndividualLayoutConstraint_GetOtherWindow, METH_O, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_GetMyEdge", (PyCFunction)_wrap_IndividualLayoutConstraint_GetMyEdge, METH_O, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_SetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_SetEdge, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_SetValue", (PyCFunction) _wrap_IndividualLayoutConstraint_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_GetMargin", (PyCFunction)_wrap_IndividualLayoutConstraint_GetMargin, METH_O, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_SetMargin", (PyCFunction) _wrap_IndividualLayoutConstraint_SetMargin, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_GetValue", (PyCFunction)_wrap_IndividualLayoutConstraint_GetValue, METH_O, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_GetPercent", (PyCFunction)_wrap_IndividualLayoutConstraint_GetPercent, METH_O, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_GetOtherEdge", (PyCFunction)_wrap_IndividualLayoutConstraint_GetOtherEdge, METH_O, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_GetDone", (PyCFunction)_wrap_IndividualLayoutConstraint_GetDone, METH_O, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_SetDone", (PyCFunction) _wrap_IndividualLayoutConstraint_SetDone, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_GetRelationship", (PyCFunction)_wrap_IndividualLayoutConstraint_GetRelationship, METH_O, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_SetRelationship", (PyCFunction) _wrap_IndividualLayoutConstraint_SetRelationship, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_ResetIfWin", (PyCFunction) _wrap_IndividualLayoutConstraint_ResetIfWin, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_SatisfyConstraint", (PyCFunction) _wrap_IndividualLayoutConstraint_SatisfyConstraint, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_GetEdge", (PyCFunction) _wrap_IndividualLayoutConstraint_GetEdge, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"IndividualLayoutConstraint_swigregister", IndividualLayoutConstraint_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"LayoutConstraints_left_get", (PyCFunction)_wrap_LayoutConstraints_left_get, METH_O, NULL},
|
|
{ (char *)"LayoutConstraints_top_get", (PyCFunction)_wrap_LayoutConstraints_top_get, METH_O, NULL},
|
|
{ (char *)"LayoutConstraints_right_get", (PyCFunction)_wrap_LayoutConstraints_right_get, METH_O, NULL},
|
|
{ (char *)"LayoutConstraints_bottom_get", (PyCFunction)_wrap_LayoutConstraints_bottom_get, METH_O, NULL},
|
|
{ (char *)"LayoutConstraints_width_get", (PyCFunction)_wrap_LayoutConstraints_width_get, METH_O, NULL},
|
|
{ (char *)"LayoutConstraints_height_get", (PyCFunction)_wrap_LayoutConstraints_height_get, METH_O, NULL},
|
|
{ (char *)"LayoutConstraints_centreX_get", (PyCFunction)_wrap_LayoutConstraints_centreX_get, METH_O, NULL},
|
|
{ (char *)"LayoutConstraints_centreY_get", (PyCFunction)_wrap_LayoutConstraints_centreY_get, METH_O, NULL},
|
|
{ (char *)"new_LayoutConstraints", (PyCFunction)_wrap_new_LayoutConstraints, METH_NOARGS, NULL},
|
|
{ (char *)"delete_LayoutConstraints", (PyCFunction)_wrap_delete_LayoutConstraints, METH_O, NULL},
|
|
{ (char *)"LayoutConstraints_SatisfyConstraints", (PyCFunction) _wrap_LayoutConstraints_SatisfyConstraints, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"LayoutConstraints_AreSatisfied", (PyCFunction)_wrap_LayoutConstraints_AreSatisfied, METH_O, NULL},
|
|
{ (char *)"LayoutConstraints_swigregister", LayoutConstraints_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"LayoutConstraints_swiginit", LayoutConstraints_swiginit, METH_VARARGS, NULL},
|
|
{ NULL, NULL, 0, NULL }
|
|
};
|
|
|
|
|
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
|
|
|
|
static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
|
|
}
|
|
static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxMenuEvent *) x));
|
|
}
|
|
static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxCloseEvent *) x));
|
|
}
|
|
static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxMouseEvent *) x));
|
|
}
|
|
static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxEraseEvent *) x));
|
|
}
|
|
static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
|
|
}
|
|
static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
|
|
}
|
|
static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
|
|
}
|
|
static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
|
|
}
|
|
static void *_p_wxMouseCaptureLostEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxMouseCaptureLostEvent *) x));
|
|
}
|
|
static void *_p_wxPyEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxPyEvent *) x));
|
|
}
|
|
static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxIdleEvent *) x));
|
|
}
|
|
static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
|
|
}
|
|
static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
|
|
}
|
|
static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
|
|
}
|
|
static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxIconizeEvent *) x));
|
|
}
|
|
static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxActivateEvent *) x));
|
|
}
|
|
static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxSizeEvent *) x));
|
|
}
|
|
static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxMoveEvent *) x));
|
|
}
|
|
static void *_p_wxDateEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
|
|
}
|
|
static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxPaintEvent *) x));
|
|
}
|
|
static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
|
|
}
|
|
static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
|
|
}
|
|
static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
|
|
}
|
|
static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
|
|
}
|
|
static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
|
|
}
|
|
static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
|
|
}
|
|
static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
|
|
}
|
|
static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
|
|
}
|
|
static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxFocusEvent *) x));
|
|
}
|
|
static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
|
|
}
|
|
static void *_p_wxShowEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxShowEvent *) x));
|
|
}
|
|
static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxCommandEvent *) x));
|
|
}
|
|
static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
|
|
}
|
|
static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
|
|
}
|
|
static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
|
|
}
|
|
static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxKeyEvent *) x));
|
|
}
|
|
static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
|
|
return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
|
|
}
|
|
static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
|
|
return (void *)((wxValidator *) ((wxPyValidator *) x));
|
|
}
|
|
static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) ((wxLayoutConstraints *) x));
|
|
}
|
|
static void *_p_wxSizerItemTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) ((wxSizerItem *) x));
|
|
}
|
|
static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
|
|
}
|
|
static void *_p_wxScrollEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
|
|
}
|
|
static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
|
|
}
|
|
static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
|
|
}
|
|
static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
|
|
}
|
|
static void *_p_wxSizerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) ((wxSizer *) x));
|
|
}
|
|
static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
|
|
}
|
|
static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
|
|
}
|
|
static void *_p_wxEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) ((wxEvent *) x));
|
|
}
|
|
static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
|
|
}
|
|
static void *_p_wxGridSizerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
|
|
}
|
|
static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
|
|
}
|
|
static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
|
|
}
|
|
static void *_p_wxPaintEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
|
|
}
|
|
static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
|
|
}
|
|
static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
|
|
}
|
|
static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
|
|
}
|
|
static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
|
|
}
|
|
static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
|
|
}
|
|
static void *_p_wxControlTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
|
|
}
|
|
static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
|
|
}
|
|
static void *_p_wxFSFileTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) ((wxFSFile *) x));
|
|
}
|
|
static void *_p_wxPySizerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
|
|
}
|
|
static void *_p_wxPyEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
|
|
}
|
|
static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
|
|
}
|
|
static void *_p_wxShowEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
|
|
}
|
|
static void *_p_wxMenuItemTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) ((wxMenuItem *) x));
|
|
}
|
|
static void *_p_wxDateEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
|
|
}
|
|
static void *_p_wxIdleEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
|
|
}
|
|
static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
|
|
}
|
|
static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
|
|
}
|
|
static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
|
|
}
|
|
static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
|
|
}
|
|
static void *_p_wxSizeEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
|
|
}
|
|
static void *_p_wxMoveEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
|
|
}
|
|
static void *_p_wxActivateEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
|
|
}
|
|
static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
|
|
}
|
|
static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
|
|
}
|
|
static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
|
|
}
|
|
static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
|
|
}
|
|
static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
|
|
}
|
|
static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
|
|
}
|
|
static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
|
|
}
|
|
static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
|
|
}
|
|
static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
|
|
}
|
|
static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
|
|
}
|
|
static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) ((wxImageHandler *) x));
|
|
}
|
|
static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
|
|
}
|
|
static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
|
|
}
|
|
static void *_p_wxTGAHandlerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x));
|
|
}
|
|
static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) ((wxEvtHandler *) x));
|
|
}
|
|
static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
|
|
}
|
|
static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) ((wxAcceleratorTable *) x));
|
|
}
|
|
static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
|
|
}
|
|
static void *_p_wxImageTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) ((wxImage *) x));
|
|
}
|
|
static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
|
|
}
|
|
static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
|
|
}
|
|
static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
|
|
}
|
|
static void *_p_wxKeyEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
|
|
}
|
|
static void *_p_wxWindowTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
|
|
}
|
|
static void *_p_wxMenuTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
|
|
}
|
|
static void *_p_wxMenuBarTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
|
|
}
|
|
static void *_p_wxFileSystemTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) ((wxFileSystem *) x));
|
|
}
|
|
static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
|
|
}
|
|
static void *_p_wxMenuEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
|
|
}
|
|
static void *_p_wxPyAppTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
|
|
}
|
|
static void *_p_wxCloseEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
|
|
}
|
|
static void *_p_wxMouseEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
|
|
}
|
|
static void *_p_wxEraseEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
|
|
}
|
|
static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
|
|
}
|
|
static void *_p_wxCommandEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
|
|
}
|
|
static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
|
|
}
|
|
static void *_p_wxFocusEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
|
|
}
|
|
static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
|
|
}
|
|
static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
|
|
}
|
|
static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
|
|
}
|
|
static void *_p_wxValidatorTo_p_wxObject(void *x) {
|
|
return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
|
|
}
|
|
static void *_p_wxGridBagSizerTo_p_wxFlexGridSizer(void *x) {
|
|
return (void *)((wxFlexGridSizer *) ((wxGridBagSizer *) x));
|
|
}
|
|
static void *_p_wxGridBagSizerTo_p_wxGridSizer(void *x) {
|
|
return (void *)((wxGridSizer *) (wxFlexGridSizer *) ((wxGridBagSizer *) x));
|
|
}
|
|
static void *_p_wxFlexGridSizerTo_p_wxGridSizer(void *x) {
|
|
return (void *)((wxGridSizer *) ((wxFlexGridSizer *) x));
|
|
}
|
|
static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
|
|
return (void *)((wxControl *) ((wxControlWithItems *) x));
|
|
}
|
|
static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
|
|
return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
|
|
}
|
|
static void *_p_wxStaticBoxSizerTo_p_wxBoxSizer(void *x) {
|
|
return (void *)((wxBoxSizer *) ((wxStaticBoxSizer *) x));
|
|
}
|
|
static void *_p_wxStdDialogButtonSizerTo_p_wxBoxSizer(void *x) {
|
|
return (void *)((wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
|
|
}
|
|
static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
|
|
return (void *)((wxSizer *) ((wxBoxSizer *) x));
|
|
}
|
|
static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
|
|
return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
|
|
}
|
|
static void *_p_wxStdDialogButtonSizerTo_p_wxSizer(void *x) {
|
|
return (void *)((wxSizer *) (wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
|
|
}
|
|
static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
|
|
return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
|
|
}
|
|
static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
|
|
return (void *)((wxSizer *) ((wxGridSizer *) x));
|
|
}
|
|
static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
|
|
return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
|
|
}
|
|
static void *_p_wxPySizerTo_p_wxSizer(void *x) {
|
|
return (void *)((wxSizer *) ((wxPySizer *) x));
|
|
}
|
|
static void *_p_wxGBSizerItemTo_p_wxSizerItem(void *x) {
|
|
return (void *)((wxSizerItem *) ((wxGBSizerItem *) x));
|
|
}
|
|
static void *_p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler(void *x) {
|
|
return (void *)((wxFileSystemHandler *) ((wxPyFileSystemHandler *) x));
|
|
}
|
|
static void *_p_wxInternetFSHandlerTo_p_wxFileSystemHandler(void *x) {
|
|
return (void *)((wxFileSystemHandler *) ((wxInternetFSHandler *) x));
|
|
}
|
|
static void *_p_wxZipFSHandlerTo_p_wxFileSystemHandler(void *x) {
|
|
return (void *)((wxFileSystemHandler *) ((wxZipFSHandler *) x));
|
|
}
|
|
static void *_p_wxMemoryFSHandlerTo_p_wxFileSystemHandler(void *x) {
|
|
return (void *)((wxFileSystemHandler *) ((wxMemoryFSHandler *) x));
|
|
}
|
|
static void *_p_wxPyImageHandlerTo_p_wxImageHandler(void *x) {
|
|
return (void *)((wxImageHandler *) ((wxPyImageHandler *) x));
|
|
}
|
|
static void *_p_wxBMPHandlerTo_p_wxImageHandler(void *x) {
|
|
return (void *)((wxImageHandler *) ((wxBMPHandler *) x));
|
|
}
|
|
static void *_p_wxICOHandlerTo_p_wxImageHandler(void *x) {
|
|
return (void *)((wxImageHandler *) (wxBMPHandler *) ((wxICOHandler *) x));
|
|
}
|
|
static void *_p_wxCURHandlerTo_p_wxImageHandler(void *x) {
|
|
return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
|
|
}
|
|
static void *_p_wxANIHandlerTo_p_wxImageHandler(void *x) {
|
|
return (void *)((wxImageHandler *) (wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
|
|
}
|
|
static void *_p_wxPNGHandlerTo_p_wxImageHandler(void *x) {
|
|
return (void *)((wxImageHandler *) ((wxPNGHandler *) x));
|
|
}
|
|
static void *_p_wxGIFHandlerTo_p_wxImageHandler(void *x) {
|
|
return (void *)((wxImageHandler *) ((wxGIFHandler *) x));
|
|
}
|
|
static void *_p_wxPCXHandlerTo_p_wxImageHandler(void *x) {
|
|
return (void *)((wxImageHandler *) ((wxPCXHandler *) x));
|
|
}
|
|
static void *_p_wxJPEGHandlerTo_p_wxImageHandler(void *x) {
|
|
return (void *)((wxImageHandler *) ((wxJPEGHandler *) x));
|
|
}
|
|
static void *_p_wxPNMHandlerTo_p_wxImageHandler(void *x) {
|
|
return (void *)((wxImageHandler *) ((wxPNMHandler *) x));
|
|
}
|
|
static void *_p_wxXPMHandlerTo_p_wxImageHandler(void *x) {
|
|
return (void *)((wxImageHandler *) ((wxXPMHandler *) x));
|
|
}
|
|
static void *_p_wxTIFFHandlerTo_p_wxImageHandler(void *x) {
|
|
return (void *)((wxImageHandler *) ((wxTIFFHandler *) x));
|
|
}
|
|
static void *_p_wxTGAHandlerTo_p_wxImageHandler(void *x) {
|
|
return (void *)((wxImageHandler *) ((wxTGAHandler *) x));
|
|
}
|
|
static void *_p_wxICOHandlerTo_p_wxBMPHandler(void *x) {
|
|
return (void *)((wxBMPHandler *) ((wxICOHandler *) x));
|
|
}
|
|
static void *_p_wxCURHandlerTo_p_wxBMPHandler(void *x) {
|
|
return (void *)((wxBMPHandler *) (wxICOHandler *) ((wxCURHandler *) x));
|
|
}
|
|
static void *_p_wxANIHandlerTo_p_wxBMPHandler(void *x) {
|
|
return (void *)((wxBMPHandler *) (wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
|
|
}
|
|
static void *_p_wxCURHandlerTo_p_wxICOHandler(void *x) {
|
|
return (void *)((wxICOHandler *) ((wxCURHandler *) x));
|
|
}
|
|
static void *_p_wxANIHandlerTo_p_wxICOHandler(void *x) {
|
|
return (void *)((wxICOHandler *) (wxCURHandler *) ((wxANIHandler *) x));
|
|
}
|
|
static void *_p_wxANIHandlerTo_p_wxCURHandler(void *x) {
|
|
return (void *)((wxCURHandler *) ((wxANIHandler *) x));
|
|
}
|
|
static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
|
|
return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
|
|
}
|
|
static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
|
|
return (void *)((wxEvtHandler *) ((wxWindow *) x));
|
|
}
|
|
static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
|
|
return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
|
|
}
|
|
static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
|
|
return (void *)((wxEvtHandler *) ((wxPyApp *) x));
|
|
}
|
|
static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
|
|
return (void *)((wxEvtHandler *) ((wxValidator *) x));
|
|
}
|
|
static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
|
|
return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
|
|
}
|
|
static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
|
|
return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
|
|
}
|
|
static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
|
|
return (void *)((wxEvtHandler *) ((wxMenu *) x));
|
|
}
|
|
static void *_p_wxControlTo_p_wxWindow(void *x) {
|
|
return (void *)((wxWindow *) ((wxControl *) x));
|
|
}
|
|
static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
|
|
return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
|
|
}
|
|
static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
|
|
return (void *)((wxWindow *) ((wxMenuBar *) x));
|
|
}
|
|
static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
|
|
return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
|
|
}
|
|
static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
|
|
return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
|
|
}
|
|
static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
|
|
return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
|
|
}
|
|
static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
|
|
return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
|
|
}
|
|
static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
|
|
return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
|
|
}
|
|
static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
|
|
return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
|
|
}
|
|
static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
|
|
return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
|
|
}
|
|
static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
|
|
return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
|
|
}
|
|
static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
|
|
return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
|
|
}
|
|
static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
|
|
return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
|
|
}
|
|
static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_form_ops_t = {"_p_form_ops_t", "enum form_ops_t *|form_ops_t *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", "wxANIHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxAcceleratorEntry = {"_p_wxAcceleratorEntry", "wxAcceleratorEntry *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", "wxAcceleratorTable *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", "wxActivateEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxAppTraits = {"_p_wxAppTraits", "wxAppTraits *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", "wxBMPHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", "wxBoxSizer *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", "wxCURHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxCaret = {"_p_wxCaret", "wxCaret *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", "wxChildFocusEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", "wxClipboardTextEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", "wxCloseEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", "wxContextMenuEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", "wxDateEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", "wxDisplayChangedEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxDouble = {"_p_wxDouble", "wxDouble *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", "wxDropFilesEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", "wxEraseEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxEventLoop = {"_p_wxEventLoop", "wxEventLoop *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxEventLoopActivator = {"_p_wxEventLoopActivator", "wxEventLoopActivator *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", "wxFSFile *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", "wxFileSystem *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxFileSystemHandler = {"_p_wxFileSystemHandler", "wxFileSystemHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", "wxFlexGridSizer *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", "wxFocusEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxFrame = {"_p_wxFrame", "wxFrame *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxGBPosition = {"_p_wxGBPosition", "wxGBPosition *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", "wxGBSizerItem *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxGBSpan = {"_p_wxGBSpan", "wxGBSpan *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", "wxGIFHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", "wxGridBagSizer *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", "wxGridSizer *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxHelpEvent__Origin = {"_p_wxHelpEvent__Origin", "wxHelpEvent::Origin *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", "wxICOHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", "wxIconizeEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", "wxIdleEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", "wxImageHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxImageHistogram = {"_p_wxImageHistogram", "wxImageHistogram *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxImage_HSVValue = {"_p_wxImage_HSVValue", "wxImage_HSVValue *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxImage_RGBValue = {"_p_wxImage_RGBValue", "wxImage_RGBValue *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", "wxIndividualLayoutConstraint *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", "wxInitDialogEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxInputStream = {"_p_wxInputStream", "wxInputStream *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxInternetFSHandler = {"_p_wxInternetFSHandler", "wxInternetFSHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", "wxJPEGHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", "wxLayoutConstraints *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", "wxMaximizeEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxMemoryFSHandler = {"_p_wxMemoryFSHandler", "wxMemoryFSHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", "wxMenu *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", "wxMenuBar *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxMenuBarBase = {"_p_wxMenuBarBase", "wxMenuBarBase *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", "wxMenuEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", "wxMenuItem *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", "wxMouseCaptureChangedEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", "wxMouseCaptureLostEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", "wxMoveEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", "wxNavigationKeyEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", "wxNcPaintEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxOutputStream = {"_p_wxOutputStream", "wxOutputStream *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", "wxPCXHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", "wxPNGHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", "wxPNMHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", "wxPaintEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", "wxPaletteChangedEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPropagateOnce = {"_p_wxPropagateOnce", "wxPropagateOnce *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPropagationDisabler = {"_p_wxPropagationDisabler", "wxPropagationDisabler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", "wxPyApp *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", "wxPyCommandEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPyDropTarget = {"_p_wxPyDropTarget", "wxPyDropTarget *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", "wxPyEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPyFileSystemHandler = {"_p_wxPyFileSystemHandler", "wxPyFileSystemHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", "wxPyImageHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPyInputStream = {"_p_wxPyInputStream", "wxPyInputStream *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", "wxPySizer *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", "wxPyValidator *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxQuantize = {"_p_wxQuantize", "wxQuantize *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", "wxQueryNewPaletteEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxRealPoint = {"_p_wxRealPoint", "wxRealPoint *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", "wxScrollEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", "wxScrollWinEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", "wxSetCursorEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", "wxShowEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", "wxSizeEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", "wxSizer *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxSizerFlags = {"_p_wxSizerFlags", "wxSizerFlags *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", "wxSizerItem *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", "wxStaticBoxSizer *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", "wxStdDialogButtonSizer *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", "wxSysColourChangedEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", "wxTGAHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", "wxTIFFHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxToolTip = {"_p_wxToolTip", "wxToolTip *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", "wxUpdateUIEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", "wxWindowCreateEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", "wxWindowDestroyEvent *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", "wxXPMHandler *", 0, 0, (void*)0, 0};
|
|
static swig_type_info _swigt__p_wxZipFSHandler = {"_p_wxZipFSHandler", "wxZipFSHandler *", 0, 0, (void*)0, 0};
|
|
|
|
static swig_type_info *swig_type_initial[] = {
|
|
&_swigt__p_buffer,
|
|
&_swigt__p_char,
|
|
&_swigt__p_form_ops_t,
|
|
&_swigt__p_int,
|
|
&_swigt__p_long,
|
|
&_swigt__p_unsigned_char,
|
|
&_swigt__p_unsigned_int,
|
|
&_swigt__p_unsigned_long,
|
|
&_swigt__p_wxANIHandler,
|
|
&_swigt__p_wxAcceleratorEntry,
|
|
&_swigt__p_wxAcceleratorTable,
|
|
&_swigt__p_wxActivateEvent,
|
|
&_swigt__p_wxAppTraits,
|
|
&_swigt__p_wxArrayString,
|
|
&_swigt__p_wxBMPHandler,
|
|
&_swigt__p_wxBitmap,
|
|
&_swigt__p_wxBoxSizer,
|
|
&_swigt__p_wxButton,
|
|
&_swigt__p_wxCURHandler,
|
|
&_swigt__p_wxCaret,
|
|
&_swigt__p_wxChildFocusEvent,
|
|
&_swigt__p_wxClipboardTextEvent,
|
|
&_swigt__p_wxCloseEvent,
|
|
&_swigt__p_wxColour,
|
|
&_swigt__p_wxCommandEvent,
|
|
&_swigt__p_wxContextMenuEvent,
|
|
&_swigt__p_wxControl,
|
|
&_swigt__p_wxControlWithItems,
|
|
&_swigt__p_wxCursor,
|
|
&_swigt__p_wxDC,
|
|
&_swigt__p_wxDateEvent,
|
|
&_swigt__p_wxDateTime,
|
|
&_swigt__p_wxDisplayChangedEvent,
|
|
&_swigt__p_wxDouble,
|
|
&_swigt__p_wxDropFilesEvent,
|
|
&_swigt__p_wxDuplexMode,
|
|
&_swigt__p_wxEraseEvent,
|
|
&_swigt__p_wxEvent,
|
|
&_swigt__p_wxEventLoop,
|
|
&_swigt__p_wxEventLoopActivator,
|
|
&_swigt__p_wxEvtHandler,
|
|
&_swigt__p_wxFSFile,
|
|
&_swigt__p_wxFileSystem,
|
|
&_swigt__p_wxFileSystemHandler,
|
|
&_swigt__p_wxFlexGridSizer,
|
|
&_swigt__p_wxFocusEvent,
|
|
&_swigt__p_wxFont,
|
|
&_swigt__p_wxFrame,
|
|
&_swigt__p_wxGBPosition,
|
|
&_swigt__p_wxGBSizerItem,
|
|
&_swigt__p_wxGBSpan,
|
|
&_swigt__p_wxGIFHandler,
|
|
&_swigt__p_wxGridBagSizer,
|
|
&_swigt__p_wxGridSizer,
|
|
&_swigt__p_wxHelpEvent__Origin,
|
|
&_swigt__p_wxICOHandler,
|
|
&_swigt__p_wxIconizeEvent,
|
|
&_swigt__p_wxIdleEvent,
|
|
&_swigt__p_wxImage,
|
|
&_swigt__p_wxImageHandler,
|
|
&_swigt__p_wxImageHistogram,
|
|
&_swigt__p_wxImage_HSVValue,
|
|
&_swigt__p_wxImage_RGBValue,
|
|
&_swigt__p_wxIndividualLayoutConstraint,
|
|
&_swigt__p_wxInitDialogEvent,
|
|
&_swigt__p_wxInputStream,
|
|
&_swigt__p_wxInternetFSHandler,
|
|
&_swigt__p_wxItemContainer,
|
|
&_swigt__p_wxJPEGHandler,
|
|
&_swigt__p_wxKeyEvent,
|
|
&_swigt__p_wxLayoutConstraints,
|
|
&_swigt__p_wxMaximizeEvent,
|
|
&_swigt__p_wxMemoryFSHandler,
|
|
&_swigt__p_wxMenu,
|
|
&_swigt__p_wxMenuBar,
|
|
&_swigt__p_wxMenuBarBase,
|
|
&_swigt__p_wxMenuEvent,
|
|
&_swigt__p_wxMenuItem,
|
|
&_swigt__p_wxMouseCaptureChangedEvent,
|
|
&_swigt__p_wxMouseCaptureLostEvent,
|
|
&_swigt__p_wxMouseEvent,
|
|
&_swigt__p_wxMoveEvent,
|
|
&_swigt__p_wxNavigationKeyEvent,
|
|
&_swigt__p_wxNcPaintEvent,
|
|
&_swigt__p_wxNotifyEvent,
|
|
&_swigt__p_wxObject,
|
|
&_swigt__p_wxOutputStream,
|
|
&_swigt__p_wxPCXHandler,
|
|
&_swigt__p_wxPNGHandler,
|
|
&_swigt__p_wxPNMHandler,
|
|
&_swigt__p_wxPaintEvent,
|
|
&_swigt__p_wxPaletteChangedEvent,
|
|
&_swigt__p_wxPaperSize,
|
|
&_swigt__p_wxPoint,
|
|
&_swigt__p_wxPoint2D,
|
|
&_swigt__p_wxPropagateOnce,
|
|
&_swigt__p_wxPropagationDisabler,
|
|
&_swigt__p_wxPyApp,
|
|
&_swigt__p_wxPyCommandEvent,
|
|
&_swigt__p_wxPyDropTarget,
|
|
&_swigt__p_wxPyEvent,
|
|
&_swigt__p_wxPyFileSystemHandler,
|
|
&_swigt__p_wxPyImageHandler,
|
|
&_swigt__p_wxPyInputStream,
|
|
&_swigt__p_wxPySizer,
|
|
&_swigt__p_wxPyValidator,
|
|
&_swigt__p_wxQuantize,
|
|
&_swigt__p_wxQueryNewPaletteEvent,
|
|
&_swigt__p_wxRealPoint,
|
|
&_swigt__p_wxRect,
|
|
&_swigt__p_wxRect2D,
|
|
&_swigt__p_wxRegion,
|
|
&_swigt__p_wxScrollEvent,
|
|
&_swigt__p_wxScrollWinEvent,
|
|
&_swigt__p_wxSetCursorEvent,
|
|
&_swigt__p_wxShowEvent,
|
|
&_swigt__p_wxSize,
|
|
&_swigt__p_wxSizeEvent,
|
|
&_swigt__p_wxSizer,
|
|
&_swigt__p_wxSizerFlags,
|
|
&_swigt__p_wxSizerItem,
|
|
&_swigt__p_wxStaticBox,
|
|
&_swigt__p_wxStaticBoxSizer,
|
|
&_swigt__p_wxStdDialogButtonSizer,
|
|
&_swigt__p_wxSysColourChangedEvent,
|
|
&_swigt__p_wxTGAHandler,
|
|
&_swigt__p_wxTIFFHandler,
|
|
&_swigt__p_wxToolTip,
|
|
&_swigt__p_wxUpdateUIEvent,
|
|
&_swigt__p_wxValidator,
|
|
&_swigt__p_wxVisualAttributes,
|
|
&_swigt__p_wxWindow,
|
|
&_swigt__p_wxWindowCreateEvent,
|
|
&_swigt__p_wxWindowDestroyEvent,
|
|
&_swigt__p_wxXPMHandler,
|
|
&_swigt__p_wxZipFSHandler,
|
|
};
|
|
|
|
static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxANIHandler[] = { {&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxAcceleratorEntry[] = { {&_swigt__p_wxAcceleratorEntry, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxAcceleratorTable[] = { {&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxActivateEvent[] = { {&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxAppTraits[] = { {&_swigt__p_wxAppTraits, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxBMPHandler[] = { {&_swigt__p_wxBMPHandler, 0, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxBMPHandler, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxBMPHandler, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxBMPHandler, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxBoxSizer[] = { {&_swigt__p_wxBoxSizer, 0, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxBoxSizer, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxBoxSizer, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxButton[] = { {&_swigt__p_wxButton, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxCURHandler[] = { {&_swigt__p_wxCURHandler, 0, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxCURHandler, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxCaret[] = { {&_swigt__p_wxCaret, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxChildFocusEvent[] = { {&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxClipboardTextEvent[] = { {&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxCloseEvent[] = { {&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxCommandEvent[] = { {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxCommandEvent, 0, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxContextMenuEvent[] = { {&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxControl[] = { {&_swigt__p_wxControl, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxControl, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxDateEvent[] = { {&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = { {&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxDouble[] = { {&_swigt__p_wxDouble, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxDropFilesEvent[] = { {&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxEraseEvent[] = { {&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxEvent[] = { {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxEvent, 0, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxEvent, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxEvent, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxEventLoop[] = { {&_swigt__p_wxEventLoop, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxEventLoopActivator[] = { {&_swigt__p_wxEventLoopActivator, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxEvtHandler[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxEvtHandler, 0, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxEvtHandler, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxFSFile[] = { {&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxFileSystem[] = { {&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxFileSystemHandler[] = { {&_swigt__p_wxFileSystemHandler, 0, 0, 0}, {&_swigt__p_wxPyFileSystemHandler, _p_wxPyFileSystemHandlerTo_p_wxFileSystemHandler, 0, 0}, {&_swigt__p_wxInternetFSHandler, _p_wxInternetFSHandlerTo_p_wxFileSystemHandler, 0, 0}, {&_swigt__p_wxZipFSHandler, _p_wxZipFSHandlerTo_p_wxFileSystemHandler, 0, 0}, {&_swigt__p_wxMemoryFSHandler, _p_wxMemoryFSHandlerTo_p_wxFileSystemHandler, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxFlexGridSizer[] = { {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxFlexGridSizer, 0, 0}, {&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxFocusEvent[] = { {&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxFrame[] = { {&_swigt__p_wxFrame, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxGBPosition[] = { {&_swigt__p_wxGBPosition, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxGBSizerItem[] = { {&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxGBSpan[] = { {&_swigt__p_wxGBSpan, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxGIFHandler[] = { {&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxGridBagSizer[] = { {&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxGridSizer[] = { {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxGridSizer, 0, 0}, {&_swigt__p_wxGridSizer, 0, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxGridSizer, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxHelpEvent__Origin[] = { {&_swigt__p_wxHelpEvent__Origin, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxICOHandler[] = { {&_swigt__p_wxICOHandler, 0, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxICOHandler, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxICOHandler, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxIconizeEvent[] = { {&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxIdleEvent[] = { {&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxImageHandler[] = { {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxImageHandler, 0, 0}, {&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxImageHistogram[] = { {&_swigt__p_wxImageHistogram, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxImage_HSVValue[] = { {&_swigt__p_wxImage_HSVValue, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxImage_RGBValue[] = { {&_swigt__p_wxImage_RGBValue, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = { {&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxInitDialogEvent[] = { {&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxInputStream[] = { {&_swigt__p_wxInputStream, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxInternetFSHandler[] = { {&_swigt__p_wxInternetFSHandler, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxItemContainer[] = { {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0}, {&_swigt__p_wxItemContainer, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxJPEGHandler[] = { {&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxLayoutConstraints[] = { {&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxMaximizeEvent[] = { {&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxMemoryFSHandler[] = { {&_swigt__p_wxMemoryFSHandler, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxMenu[] = { {&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxMenuBar[] = { {&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxMenuBarBase[] = { {&_swigt__p_wxMenuBarBase, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxMenuEvent[] = { {&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxMenuItem[] = { {&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = { {&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = { {&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxMoveEvent[] = { {&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = { {&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxNcPaintEvent[] = { {&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxNotifyEvent[] = { {&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxOutputStream[] = { {&_swigt__p_wxOutputStream, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPCXHandler[] = { {&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPNGHandler[] = { {&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPNMHandler[] = { {&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPaintEvent[] = { {&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = { {&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPropagateOnce[] = { {&_swigt__p_wxPropagateOnce, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPropagationDisabler[] = { {&_swigt__p_wxPropagationDisabler, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPyApp[] = { {&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPyCommandEvent[] = { {&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPyDropTarget[] = { {&_swigt__p_wxPyDropTarget, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPyEvent[] = { {&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPyFileSystemHandler[] = { {&_swigt__p_wxPyFileSystemHandler, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPyImageHandler[] = { {&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPyInputStream[] = { {&_swigt__p_wxPyInputStream, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPySizer[] = { {&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxPyValidator[] = { {&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxQuantize[] = { {&_swigt__p_wxQuantize, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = { {&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxRealPoint[] = { {&_swigt__p_wxRealPoint, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxScrollEvent[] = { {&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxScrollWinEvent[] = { {&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxSetCursorEvent[] = { {&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxShowEvent[] = { {&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxSizeEvent[] = { {&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxSizer[] = { {&_swigt__p_wxSizer, 0, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxSizer, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxSizer, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxSizer, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxSizer, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxSizer, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxSizer, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxSizerFlags[] = { {&_swigt__p_wxSizerFlags, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxSizerItem[] = { {&_swigt__p_wxSizerItem, 0, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxSizerItem, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxStaticBoxSizer[] = { {&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = { {&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = { {&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxTGAHandler[] = { {&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxTIFFHandler[] = { {&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxToolTip[] = { {&_swigt__p_wxToolTip, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxUpdateUIEvent[] = { {&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxValidator[] = { {&_swigt__p_wxValidator, 0, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxValidator, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxWindow[] = { {&_swigt__p_wxControl, _p_wxControlTo_p_wxWindow, 0, 0}, {&_swigt__p_wxWindow, 0, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxWindow, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxWindow, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxWindowCreateEvent[] = { {&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = { {&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxXPMHandler[] = { {&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
|
|
static swig_cast_info _swigc__p_wxZipFSHandler[] = { {&_swigt__p_wxZipFSHandler, 0, 0, 0},{0, 0, 0, 0}};
|
|
|
|
static swig_cast_info *swig_cast_initial[] = {
|
|
_swigc__p_buffer,
|
|
_swigc__p_char,
|
|
_swigc__p_form_ops_t,
|
|
_swigc__p_int,
|
|
_swigc__p_long,
|
|
_swigc__p_unsigned_char,
|
|
_swigc__p_unsigned_int,
|
|
_swigc__p_unsigned_long,
|
|
_swigc__p_wxANIHandler,
|
|
_swigc__p_wxAcceleratorEntry,
|
|
_swigc__p_wxAcceleratorTable,
|
|
_swigc__p_wxActivateEvent,
|
|
_swigc__p_wxAppTraits,
|
|
_swigc__p_wxArrayString,
|
|
_swigc__p_wxBMPHandler,
|
|
_swigc__p_wxBitmap,
|
|
_swigc__p_wxBoxSizer,
|
|
_swigc__p_wxButton,
|
|
_swigc__p_wxCURHandler,
|
|
_swigc__p_wxCaret,
|
|
_swigc__p_wxChildFocusEvent,
|
|
_swigc__p_wxClipboardTextEvent,
|
|
_swigc__p_wxCloseEvent,
|
|
_swigc__p_wxColour,
|
|
_swigc__p_wxCommandEvent,
|
|
_swigc__p_wxContextMenuEvent,
|
|
_swigc__p_wxControl,
|
|
_swigc__p_wxControlWithItems,
|
|
_swigc__p_wxCursor,
|
|
_swigc__p_wxDC,
|
|
_swigc__p_wxDateEvent,
|
|
_swigc__p_wxDateTime,
|
|
_swigc__p_wxDisplayChangedEvent,
|
|
_swigc__p_wxDouble,
|
|
_swigc__p_wxDropFilesEvent,
|
|
_swigc__p_wxDuplexMode,
|
|
_swigc__p_wxEraseEvent,
|
|
_swigc__p_wxEvent,
|
|
_swigc__p_wxEventLoop,
|
|
_swigc__p_wxEventLoopActivator,
|
|
_swigc__p_wxEvtHandler,
|
|
_swigc__p_wxFSFile,
|
|
_swigc__p_wxFileSystem,
|
|
_swigc__p_wxFileSystemHandler,
|
|
_swigc__p_wxFlexGridSizer,
|
|
_swigc__p_wxFocusEvent,
|
|
_swigc__p_wxFont,
|
|
_swigc__p_wxFrame,
|
|
_swigc__p_wxGBPosition,
|
|
_swigc__p_wxGBSizerItem,
|
|
_swigc__p_wxGBSpan,
|
|
_swigc__p_wxGIFHandler,
|
|
_swigc__p_wxGridBagSizer,
|
|
_swigc__p_wxGridSizer,
|
|
_swigc__p_wxHelpEvent__Origin,
|
|
_swigc__p_wxICOHandler,
|
|
_swigc__p_wxIconizeEvent,
|
|
_swigc__p_wxIdleEvent,
|
|
_swigc__p_wxImage,
|
|
_swigc__p_wxImageHandler,
|
|
_swigc__p_wxImageHistogram,
|
|
_swigc__p_wxImage_HSVValue,
|
|
_swigc__p_wxImage_RGBValue,
|
|
_swigc__p_wxIndividualLayoutConstraint,
|
|
_swigc__p_wxInitDialogEvent,
|
|
_swigc__p_wxInputStream,
|
|
_swigc__p_wxInternetFSHandler,
|
|
_swigc__p_wxItemContainer,
|
|
_swigc__p_wxJPEGHandler,
|
|
_swigc__p_wxKeyEvent,
|
|
_swigc__p_wxLayoutConstraints,
|
|
_swigc__p_wxMaximizeEvent,
|
|
_swigc__p_wxMemoryFSHandler,
|
|
_swigc__p_wxMenu,
|
|
_swigc__p_wxMenuBar,
|
|
_swigc__p_wxMenuBarBase,
|
|
_swigc__p_wxMenuEvent,
|
|
_swigc__p_wxMenuItem,
|
|
_swigc__p_wxMouseCaptureChangedEvent,
|
|
_swigc__p_wxMouseCaptureLostEvent,
|
|
_swigc__p_wxMouseEvent,
|
|
_swigc__p_wxMoveEvent,
|
|
_swigc__p_wxNavigationKeyEvent,
|
|
_swigc__p_wxNcPaintEvent,
|
|
_swigc__p_wxNotifyEvent,
|
|
_swigc__p_wxObject,
|
|
_swigc__p_wxOutputStream,
|
|
_swigc__p_wxPCXHandler,
|
|
_swigc__p_wxPNGHandler,
|
|
_swigc__p_wxPNMHandler,
|
|
_swigc__p_wxPaintEvent,
|
|
_swigc__p_wxPaletteChangedEvent,
|
|
_swigc__p_wxPaperSize,
|
|
_swigc__p_wxPoint,
|
|
_swigc__p_wxPoint2D,
|
|
_swigc__p_wxPropagateOnce,
|
|
_swigc__p_wxPropagationDisabler,
|
|
_swigc__p_wxPyApp,
|
|
_swigc__p_wxPyCommandEvent,
|
|
_swigc__p_wxPyDropTarget,
|
|
_swigc__p_wxPyEvent,
|
|
_swigc__p_wxPyFileSystemHandler,
|
|
_swigc__p_wxPyImageHandler,
|
|
_swigc__p_wxPyInputStream,
|
|
_swigc__p_wxPySizer,
|
|
_swigc__p_wxPyValidator,
|
|
_swigc__p_wxQuantize,
|
|
_swigc__p_wxQueryNewPaletteEvent,
|
|
_swigc__p_wxRealPoint,
|
|
_swigc__p_wxRect,
|
|
_swigc__p_wxRect2D,
|
|
_swigc__p_wxRegion,
|
|
_swigc__p_wxScrollEvent,
|
|
_swigc__p_wxScrollWinEvent,
|
|
_swigc__p_wxSetCursorEvent,
|
|
_swigc__p_wxShowEvent,
|
|
_swigc__p_wxSize,
|
|
_swigc__p_wxSizeEvent,
|
|
_swigc__p_wxSizer,
|
|
_swigc__p_wxSizerFlags,
|
|
_swigc__p_wxSizerItem,
|
|
_swigc__p_wxStaticBox,
|
|
_swigc__p_wxStaticBoxSizer,
|
|
_swigc__p_wxStdDialogButtonSizer,
|
|
_swigc__p_wxSysColourChangedEvent,
|
|
_swigc__p_wxTGAHandler,
|
|
_swigc__p_wxTIFFHandler,
|
|
_swigc__p_wxToolTip,
|
|
_swigc__p_wxUpdateUIEvent,
|
|
_swigc__p_wxValidator,
|
|
_swigc__p_wxVisualAttributes,
|
|
_swigc__p_wxWindow,
|
|
_swigc__p_wxWindowCreateEvent,
|
|
_swigc__p_wxWindowDestroyEvent,
|
|
_swigc__p_wxXPMHandler,
|
|
_swigc__p_wxZipFSHandler,
|
|
};
|
|
|
|
|
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
|
|
|
|
static swig_const_info swig_const_table[] = {
|
|
{0, 0, 0, 0.0, 0, 0}};
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
/* -----------------------------------------------------------------------------
|
|
* Type initialization:
|
|
* This problem is tough by the requirement that no dynamic
|
|
* memory is used. Also, since swig_type_info structures store pointers to
|
|
* swig_cast_info structures and swig_cast_info structures store pointers back
|
|
* to swig_type_info structures, we need some lookup code at initialization.
|
|
* The idea is that swig generates all the structures that are needed.
|
|
* The runtime then collects these partially filled structures.
|
|
* The SWIG_InitializeModule function takes these initial arrays out of
|
|
* swig_module, and does all the lookup, filling in the swig_module.types
|
|
* array with the correct data and linking the correct swig_cast_info
|
|
* structures together.
|
|
*
|
|
* The generated swig_type_info structures are assigned staticly to an initial
|
|
* array. We just loop though that array, and handle each type individually.
|
|
* First we lookup if this type has been already loaded, and if so, use the
|
|
* loaded structure instead of the generated one. Then we have to fill in the
|
|
* cast linked list. The cast data is initially stored in something like a
|
|
* two-dimensional array. Each row corresponds to a type (there are the same
|
|
* number of rows as there are in the swig_type_initial array). Each entry in
|
|
* a column is one of the swig_cast_info structures for that type.
|
|
* The cast_initial array is actually an array of arrays, because each row has
|
|
* a variable number of columns. So to actually build the cast linked list,
|
|
* we find the array of casts associated with the type, and loop through it
|
|
* adding the casts to the list. The one last trick we need to do is making
|
|
* sure the type pointer in the swig_cast_info struct is correct.
|
|
*
|
|
* First off, we lookup the cast->type name to see if it is already loaded.
|
|
* There are three cases to handle:
|
|
* 1) If the cast->type has already been loaded AND the type we are adding
|
|
* casting info to has not been loaded (it is in this module), THEN we
|
|
* replace the cast->type pointer with the type pointer that has already
|
|
* been loaded.
|
|
* 2) If BOTH types (the one we are adding casting info to, and the
|
|
* cast->type) are loaded, THEN the cast info has already been loaded by
|
|
* the previous module so we just ignore it.
|
|
* 3) Finally, if cast->type has not already been loaded, then we add that
|
|
* swig_cast_info to the linked list (because the cast->type) pointer will
|
|
* be correct.
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#if 0
|
|
} /* c-mode */
|
|
#endif
|
|
#endif
|
|
|
|
#if 0
|
|
#define SWIGRUNTIME_DEBUG
|
|
#endif
|
|
|
|
SWIGRUNTIME void
|
|
SWIG_InitializeModule(void *clientdata) {
|
|
size_t i;
|
|
swig_module_info *module_head;
|
|
static int init_run = 0;
|
|
|
|
clientdata = clientdata;
|
|
|
|
if (init_run) return;
|
|
init_run = 1;
|
|
|
|
/* Initialize the swig_module */
|
|
swig_module.type_initial = swig_type_initial;
|
|
swig_module.cast_initial = swig_cast_initial;
|
|
|
|
/* Try and load any already created modules */
|
|
module_head = SWIG_GetModule(clientdata);
|
|
if (module_head) {
|
|
swig_module.next = module_head->next;
|
|
module_head->next = &swig_module;
|
|
} else {
|
|
/* This is the first module loaded */
|
|
swig_module.next = &swig_module;
|
|
SWIG_SetModule(clientdata, &swig_module);
|
|
}
|
|
|
|
/* Now work on filling in swig_module.types */
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: size %d\n", swig_module.size);
|
|
#endif
|
|
for (i = 0; i < swig_module.size; ++i) {
|
|
swig_type_info *type = 0;
|
|
swig_type_info *ret;
|
|
swig_cast_info *cast;
|
|
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
|
|
#endif
|
|
|
|
/* if there is another module already loaded */
|
|
if (swig_module.next != &swig_module) {
|
|
type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
|
|
}
|
|
if (type) {
|
|
/* Overwrite clientdata field */
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: found type %s\n", type->name);
|
|
#endif
|
|
if (swig_module.type_initial[i]->clientdata) {
|
|
type->clientdata = swig_module.type_initial[i]->clientdata;
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
|
|
#endif
|
|
}
|
|
} else {
|
|
type = swig_module.type_initial[i];
|
|
}
|
|
|
|
/* Insert casting types */
|
|
cast = swig_module.cast_initial[i];
|
|
while (cast->type) {
|
|
/* Don't need to add information already in the list */
|
|
ret = 0;
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
|
|
#endif
|
|
if (swig_module.next != &swig_module) {
|
|
ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
|
|
#endif
|
|
}
|
|
if (ret) {
|
|
if (type == swig_module.type_initial[i]) {
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
|
|
#endif
|
|
cast->type = ret;
|
|
ret = 0;
|
|
} else {
|
|
/* Check for casting already in the list */
|
|
swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
|
|
#endif
|
|
if (!ocast) ret = 0;
|
|
}
|
|
}
|
|
|
|
if (!ret) {
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
|
|
#endif
|
|
if (type->cast) {
|
|
type->cast->prev = cast;
|
|
cast->next = type->cast;
|
|
}
|
|
type->cast = cast;
|
|
}
|
|
cast++;
|
|
}
|
|
/* Set entry in modules->types array equal to the type */
|
|
swig_module.types[i] = type;
|
|
}
|
|
swig_module.types[i] = 0;
|
|
|
|
#ifdef SWIGRUNTIME_DEBUG
|
|
printf("**** SWIG_InitializeModule: Cast List ******\n");
|
|
for (i = 0; i < swig_module.size; ++i) {
|
|
int j = 0;
|
|
swig_cast_info *cast = swig_module.cast_initial[i];
|
|
printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
|
|
while (cast->type) {
|
|
printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
|
|
cast++;
|
|
++j;
|
|
}
|
|
printf("---- Total casts: %d\n",j);
|
|
}
|
|
printf("**** SWIG_InitializeModule: Cast List ******\n");
|
|
#endif
|
|
}
|
|
|
|
/* This function will propagate the clientdata field of type to
|
|
* any new swig_type_info structures that have been added into the list
|
|
* of equivalent types. It is like calling
|
|
* SWIG_TypeClientData(type, clientdata) a second time.
|
|
*/
|
|
SWIGRUNTIME void
|
|
SWIG_PropagateClientData(void) {
|
|
size_t i;
|
|
swig_cast_info *equiv;
|
|
static int init_run = 0;
|
|
|
|
if (init_run) return;
|
|
init_run = 1;
|
|
|
|
for (i = 0; i < swig_module.size; i++) {
|
|
if (swig_module.types[i]->clientdata) {
|
|
equiv = swig_module.types[i]->cast;
|
|
while (equiv) {
|
|
if (!equiv->converter) {
|
|
if (equiv->type && !equiv->type->clientdata)
|
|
SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
|
|
}
|
|
equiv = equiv->next;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
#if 0
|
|
{
|
|
/* c-mode */
|
|
#endif
|
|
}
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Python-specific SWIG API */
|
|
#define SWIG_newvarlink() SWIG_Python_newvarlink()
|
|
#define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
|
|
#define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* 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;
|
|
|
|
SWIGINTERN PyObject *
|
|
swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
|
|
return PyString_FromString("<Swig global variables>");
|
|
}
|
|
|
|
SWIGINTERN PyObject *
|
|
swig_varlink_str(swig_varlinkobject *v) {
|
|
PyObject *str = PyString_FromString("(");
|
|
swig_globalvar *var;
|
|
for (var = v->vars; var; var=var->next) {
|
|
PyString_ConcatAndDel(&str,PyString_FromString(var->name));
|
|
if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
|
|
}
|
|
PyString_ConcatAndDel(&str,PyString_FromString(")"));
|
|
return str;
|
|
}
|
|
|
|
SWIGINTERN int
|
|
swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
|
|
PyObject *str = swig_varlink_str(v);
|
|
fprintf(fp,"Swig global variables ");
|
|
fprintf(fp,"%s\n", PyString_AsString(str));
|
|
Py_DECREF(str);
|
|
return 0;
|
|
}
|
|
|
|
SWIGINTERN void
|
|
swig_varlink_dealloc(swig_varlinkobject *v) {
|
|
swig_globalvar *var = v->vars;
|
|
while (var) {
|
|
swig_globalvar *n = var->next;
|
|
free(var->name);
|
|
free(var);
|
|
var = n;
|
|
}
|
|
}
|
|
|
|
SWIGINTERN PyObject *
|
|
swig_varlink_getattr(swig_varlinkobject *v, char *n) {
|
|
PyObject *res = NULL;
|
|
swig_globalvar *var = v->vars;
|
|
while (var) {
|
|
if (strcmp(var->name,n) == 0) {
|
|
res = (*var->get_attr)();
|
|
break;
|
|
}
|
|
var = var->next;
|
|
}
|
|
if (res == NULL && !PyErr_Occurred()) {
|
|
PyErr_SetString(PyExc_NameError,"Unknown C global variable");
|
|
}
|
|
return res;
|
|
}
|
|
|
|
SWIGINTERN int
|
|
swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
|
|
int res = 1;
|
|
swig_globalvar *var = v->vars;
|
|
while (var) {
|
|
if (strcmp(var->name,n) == 0) {
|
|
res = (*var->set_attr)(p);
|
|
break;
|
|
}
|
|
var = var->next;
|
|
}
|
|
if (res == 1 && !PyErr_Occurred()) {
|
|
PyErr_SetString(PyExc_NameError,"Unknown C global variable");
|
|
}
|
|
return res;
|
|
}
|
|
|
|
SWIGINTERN PyTypeObject*
|
|
swig_varlink_type(void) {
|
|
static char varlink__doc__[] = "Swig var link object";
|
|
static PyTypeObject varlink_type;
|
|
static int type_init = 0;
|
|
if (!type_init) {
|
|
const PyTypeObject tmp
|
|
= {
|
|
PyObject_HEAD_INIT(NULL)
|
|
0, /* Number of items in variable part (ob_size) */
|
|
(char *)"swigvarlink", /* Type name (tp_name) */
|
|
sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
|
|
0, /* Itemsize (tp_itemsize) */
|
|
(destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
|
|
(printfunc) swig_varlink_print, /* Print (tp_print) */
|
|
(getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
|
|
(setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
|
|
0, /* tp_compare */
|
|
(reprfunc) swig_varlink_repr, /* tp_repr */
|
|
0, /* tp_as_number */
|
|
0, /* tp_as_sequence */
|
|
0, /* tp_as_mapping */
|
|
0, /* tp_hash */
|
|
0, /* tp_call */
|
|
(reprfunc)swig_varlink_str, /* tp_str */
|
|
0, /* tp_getattro */
|
|
0, /* tp_setattro */
|
|
0, /* tp_as_buffer */
|
|
0, /* tp_flags */
|
|
varlink__doc__, /* tp_doc */
|
|
0, /* tp_traverse */
|
|
0, /* tp_clear */
|
|
0, /* tp_richcompare */
|
|
0, /* tp_weaklistoffset */
|
|
#if PY_VERSION_HEX >= 0x02020000
|
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
|
|
#endif
|
|
#if PY_VERSION_HEX >= 0x02030000
|
|
0, /* tp_del */
|
|
#endif
|
|
#ifdef COUNT_ALLOCS
|
|
0,0,0,0 /* tp_alloc -> tp_next */
|
|
#endif
|
|
};
|
|
varlink_type = tmp;
|
|
varlink_type.ob_type = &PyType_Type;
|
|
type_init = 1;
|
|
}
|
|
return &varlink_type;
|
|
}
|
|
|
|
/* Create a variable linking object for use later */
|
|
SWIGINTERN PyObject *
|
|
SWIG_Python_newvarlink(void) {
|
|
swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
|
|
if (result) {
|
|
result->vars = 0;
|
|
}
|
|
return ((PyObject*) result);
|
|
}
|
|
|
|
SWIGINTERN void
|
|
SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
|
|
swig_varlinkobject *v = (swig_varlinkobject *) p;
|
|
swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
|
|
if (gv) {
|
|
size_t size = strlen(name)+1;
|
|
gv->name = (char *)malloc(size);
|
|
if (gv->name) {
|
|
strncpy(gv->name,name,size);
|
|
gv->get_attr = get_attr;
|
|
gv->set_attr = set_attr;
|
|
gv->next = v->vars;
|
|
}
|
|
}
|
|
v->vars = gv;
|
|
}
|
|
|
|
SWIGINTERN PyObject *
|
|
SWIG_globals() {
|
|
static PyObject *_SWIG_globals = 0;
|
|
if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
|
|
return _SWIG_globals;
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------------
|
|
* constants/methods manipulation
|
|
* ----------------------------------------------------------------------------- */
|
|
|
|
/* Install Constants */
|
|
SWIGINTERN void
|
|
SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
|
|
PyObject *obj = 0;
|
|
size_t i;
|
|
for (i = 0; constants[i].type; ++i) {
|
|
switch(constants[i].type) {
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* -----------------------------------------------------------------------------*/
|
|
/* Fix SwigMethods to carry the callback ptrs when needed */
|
|
/* -----------------------------------------------------------------------------*/
|
|
|
|
SWIGINTERN void
|
|
SWIG_Python_FixMethods(PyMethodDef *methods,
|
|
swig_const_info *const_table,
|
|
swig_type_info **types,
|
|
swig_type_info **types_initial) {
|
|
size_t i;
|
|
for (i = 0; methods[i].ml_name; ++i) {
|
|
const char *c = methods[i].ml_doc;
|
|
if (c && (c = strstr(c, "swig_ptr: "))) {
|
|
int j;
|
|
swig_const_info *ci = 0;
|
|
const char *name = c + 10;
|
|
for (j = 0; const_table[j].type; ++j) {
|
|
if (strncmp(const_table[j].name, name,
|
|
strlen(const_table[j].name)) == 0) {
|
|
ci = &(const_table[j]);
|
|
break;
|
|
}
|
|
}
|
|
if (ci) {
|
|
size_t shift = (ci->ptype) - types;
|
|
swig_type_info *ty = types_initial[shift];
|
|
size_t ldoc = (c - methods[i].ml_doc);
|
|
size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
|
|
char *ndoc = (char*)malloc(ldoc + lptr + 10);
|
|
if (ndoc) {
|
|
char *buff = ndoc;
|
|
void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
|
|
if (ptr) {
|
|
strncpy(buff, methods[i].ml_doc, ldoc);
|
|
buff += ldoc;
|
|
strncpy(buff, "swig_ptr: ", 10);
|
|
buff += 10;
|
|
SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
|
|
methods[i].ml_doc = ndoc;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
/* -----------------------------------------------------------------------------*
|
|
* Partial Init method
|
|
* -----------------------------------------------------------------------------*/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
#endif
|
|
SWIGEXPORT void SWIG_init(void) {
|
|
PyObject *m, *d;
|
|
|
|
/* Fix SwigMethods to carry the callback ptrs when needed */
|
|
SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
|
|
|
|
m = Py_InitModule((char *) SWIG_name, SwigMethods);
|
|
d = PyModule_GetDict(m);
|
|
|
|
SWIG_InitializeModule(0);
|
|
SWIG_InstallConstants(d,swig_const_table);
|
|
|
|
|
|
|
|
#ifndef wxPyUSE_EXPORT
|
|
// Make our API structure a CObject so other modules can import it
|
|
// from this module.
|
|
PyObject* cobj = PyCObject_FromVoidPtr(&API, NULL);
|
|
PyDict_SetItemString(d,"_wxPyCoreAPI", cobj);
|
|
Py_XDECREF(cobj);
|
|
#endif
|
|
|
|
SWIG_Python_SetConstant(d, "NOT_FOUND",SWIG_From_int(static_cast< int >(wxNOT_FOUND)));
|
|
SWIG_Python_SetConstant(d, "VSCROLL",SWIG_From_int(static_cast< int >(wxVSCROLL)));
|
|
SWIG_Python_SetConstant(d, "HSCROLL",SWIG_From_int(static_cast< int >(wxHSCROLL)));
|
|
SWIG_Python_SetConstant(d, "CAPTION",SWIG_From_int(static_cast< int >(wxCAPTION)));
|
|
SWIG_Python_SetConstant(d, "DOUBLE_BORDER",SWIG_From_int(static_cast< int >(wxDOUBLE_BORDER)));
|
|
SWIG_Python_SetConstant(d, "SUNKEN_BORDER",SWIG_From_int(static_cast< int >(wxSUNKEN_BORDER)));
|
|
SWIG_Python_SetConstant(d, "RAISED_BORDER",SWIG_From_int(static_cast< int >(wxRAISED_BORDER)));
|
|
SWIG_Python_SetConstant(d, "BORDER",SWIG_From_int(static_cast< int >(wxBORDER)));
|
|
SWIG_Python_SetConstant(d, "SIMPLE_BORDER",SWIG_From_int(static_cast< int >(wxSIMPLE_BORDER)));
|
|
SWIG_Python_SetConstant(d, "STATIC_BORDER",SWIG_From_int(static_cast< int >(wxSTATIC_BORDER)));
|
|
SWIG_Python_SetConstant(d, "TRANSPARENT_WINDOW",SWIG_From_int(static_cast< int >(wxTRANSPARENT_WINDOW)));
|
|
SWIG_Python_SetConstant(d, "NO_BORDER",SWIG_From_int(static_cast< int >(wxNO_BORDER)));
|
|
SWIG_Python_SetConstant(d, "DEFAULT_CONTROL_BORDER",SWIG_From_int(static_cast< int >(wxDEFAULT_CONTROL_BORDER)));
|
|
SWIG_Python_SetConstant(d, "DEFAULT_STATUSBAR_STYLE",SWIG_From_int(static_cast< int >(wxDEFAULT_STATUSBAR_STYLE)));
|
|
SWIG_Python_SetConstant(d, "TAB_TRAVERSAL",SWIG_From_int(static_cast< int >(wxTAB_TRAVERSAL)));
|
|
SWIG_Python_SetConstant(d, "WANTS_CHARS",SWIG_From_int(static_cast< int >(wxWANTS_CHARS)));
|
|
SWIG_Python_SetConstant(d, "POPUP_WINDOW",SWIG_From_int(static_cast< int >(wxPOPUP_WINDOW)));
|
|
SWIG_Python_SetConstant(d, "CENTER_FRAME",SWIG_From_int(static_cast< int >(wxCENTER_FRAME)));
|
|
SWIG_Python_SetConstant(d, "CENTRE_ON_SCREEN",SWIG_From_int(static_cast< int >(wxCENTRE_ON_SCREEN)));
|
|
SWIG_Python_SetConstant(d, "CENTER_ON_SCREEN",SWIG_From_int(static_cast< int >(wxCENTER_ON_SCREEN)));
|
|
SWIG_Python_SetConstant(d, "CLIP_CHILDREN",SWIG_From_int(static_cast< int >(wxCLIP_CHILDREN)));
|
|
SWIG_Python_SetConstant(d, "CLIP_SIBLINGS",SWIG_From_int(static_cast< int >(wxCLIP_SIBLINGS)));
|
|
SWIG_Python_SetConstant(d, "WINDOW_STYLE_MASK",SWIG_From_int(static_cast< int >(wxWINDOW_STYLE_MASK)));
|
|
SWIG_Python_SetConstant(d, "ALWAYS_SHOW_SB",SWIG_From_int(static_cast< int >(wxALWAYS_SHOW_SB)));
|
|
SWIG_Python_SetConstant(d, "RETAINED",SWIG_From_int(static_cast< int >(wxRETAINED)));
|
|
SWIG_Python_SetConstant(d, "BACKINGSTORE",SWIG_From_int(static_cast< int >(wxBACKINGSTORE)));
|
|
SWIG_Python_SetConstant(d, "COLOURED",SWIG_From_int(static_cast< int >(wxCOLOURED)));
|
|
SWIG_Python_SetConstant(d, "FIXED_LENGTH",SWIG_From_int(static_cast< int >(wxFIXED_LENGTH)));
|
|
SWIG_Python_SetConstant(d, "LB_NEEDED_SB",SWIG_From_int(static_cast< int >(wxLB_NEEDED_SB)));
|
|
SWIG_Python_SetConstant(d, "LB_ALWAYS_SB",SWIG_From_int(static_cast< int >(wxLB_ALWAYS_SB)));
|
|
SWIG_Python_SetConstant(d, "LB_SORT",SWIG_From_int(static_cast< int >(wxLB_SORT)));
|
|
SWIG_Python_SetConstant(d, "LB_SINGLE",SWIG_From_int(static_cast< int >(wxLB_SINGLE)));
|
|
SWIG_Python_SetConstant(d, "LB_MULTIPLE",SWIG_From_int(static_cast< int >(wxLB_MULTIPLE)));
|
|
SWIG_Python_SetConstant(d, "LB_EXTENDED",SWIG_From_int(static_cast< int >(wxLB_EXTENDED)));
|
|
SWIG_Python_SetConstant(d, "LB_OWNERDRAW",SWIG_From_int(static_cast< int >(wxLB_OWNERDRAW)));
|
|
SWIG_Python_SetConstant(d, "LB_HSCROLL",SWIG_From_int(static_cast< int >(wxLB_HSCROLL)));
|
|
SWIG_Python_SetConstant(d, "PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxPROCESS_ENTER)));
|
|
SWIG_Python_SetConstant(d, "PASSWORD",SWIG_From_int(static_cast< int >(wxPASSWORD)));
|
|
SWIG_Python_SetConstant(d, "CB_SIMPLE",SWIG_From_int(static_cast< int >(wxCB_SIMPLE)));
|
|
SWIG_Python_SetConstant(d, "CB_DROPDOWN",SWIG_From_int(static_cast< int >(wxCB_DROPDOWN)));
|
|
SWIG_Python_SetConstant(d, "CB_SORT",SWIG_From_int(static_cast< int >(wxCB_SORT)));
|
|
SWIG_Python_SetConstant(d, "CB_READONLY",SWIG_From_int(static_cast< int >(wxCB_READONLY)));
|
|
SWIG_Python_SetConstant(d, "RA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxRA_HORIZONTAL)));
|
|
SWIG_Python_SetConstant(d, "RA_VERTICAL",SWIG_From_int(static_cast< int >(wxRA_VERTICAL)));
|
|
SWIG_Python_SetConstant(d, "RA_SPECIFY_ROWS",SWIG_From_int(static_cast< int >(wxRA_SPECIFY_ROWS)));
|
|
SWIG_Python_SetConstant(d, "RA_SPECIFY_COLS",SWIG_From_int(static_cast< int >(wxRA_SPECIFY_COLS)));
|
|
SWIG_Python_SetConstant(d, "RA_USE_CHECKBOX",SWIG_From_int(static_cast< int >(wxRA_USE_CHECKBOX)));
|
|
SWIG_Python_SetConstant(d, "RB_GROUP",SWIG_From_int(static_cast< int >(wxRB_GROUP)));
|
|
SWIG_Python_SetConstant(d, "RB_SINGLE",SWIG_From_int(static_cast< int >(wxRB_SINGLE)));
|
|
SWIG_Python_SetConstant(d, "SB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSB_HORIZONTAL)));
|
|
SWIG_Python_SetConstant(d, "SB_VERTICAL",SWIG_From_int(static_cast< int >(wxSB_VERTICAL)));
|
|
SWIG_Python_SetConstant(d, "RB_USE_CHECKBOX",SWIG_From_int(static_cast< int >(wxRB_USE_CHECKBOX)));
|
|
SWIG_Python_SetConstant(d, "ST_SIZEGRIP",SWIG_From_int(static_cast< int >(wxST_SIZEGRIP)));
|
|
SWIG_Python_SetConstant(d, "ST_NO_AUTORESIZE",SWIG_From_int(static_cast< int >(wxST_NO_AUTORESIZE)));
|
|
SWIG_Python_SetConstant(d, "ST_DOTS_MIDDLE",SWIG_From_int(static_cast< int >(wxST_DOTS_MIDDLE)));
|
|
SWIG_Python_SetConstant(d, "ST_DOTS_END",SWIG_From_int(static_cast< int >(wxST_DOTS_END)));
|
|
SWIG_Python_SetConstant(d, "FLOOD_SURFACE",SWIG_From_int(static_cast< int >(wxFLOOD_SURFACE)));
|
|
SWIG_Python_SetConstant(d, "FLOOD_BORDER",SWIG_From_int(static_cast< int >(wxFLOOD_BORDER)));
|
|
SWIG_Python_SetConstant(d, "ODDEVEN_RULE",SWIG_From_int(static_cast< int >(wxODDEVEN_RULE)));
|
|
SWIG_Python_SetConstant(d, "WINDING_RULE",SWIG_From_int(static_cast< int >(wxWINDING_RULE)));
|
|
SWIG_Python_SetConstant(d, "TOOL_TOP",SWIG_From_int(static_cast< int >(wxTOOL_TOP)));
|
|
SWIG_Python_SetConstant(d, "TOOL_BOTTOM",SWIG_From_int(static_cast< int >(wxTOOL_BOTTOM)));
|
|
SWIG_Python_SetConstant(d, "TOOL_LEFT",SWIG_From_int(static_cast< int >(wxTOOL_LEFT)));
|
|
SWIG_Python_SetConstant(d, "TOOL_RIGHT",SWIG_From_int(static_cast< int >(wxTOOL_RIGHT)));
|
|
SWIG_Python_SetConstant(d, "OK",SWIG_From_int(static_cast< int >(wxOK)));
|
|
SWIG_Python_SetConstant(d, "YES_NO",SWIG_From_int(static_cast< int >(wxYES_NO)));
|
|
SWIG_Python_SetConstant(d, "CANCEL",SWIG_From_int(static_cast< int >(wxCANCEL)));
|
|
SWIG_Python_SetConstant(d, "YES",SWIG_From_int(static_cast< int >(wxYES)));
|
|
SWIG_Python_SetConstant(d, "NO",SWIG_From_int(static_cast< int >(wxNO)));
|
|
SWIG_Python_SetConstant(d, "NO_DEFAULT",SWIG_From_int(static_cast< int >(wxNO_DEFAULT)));
|
|
SWIG_Python_SetConstant(d, "YES_DEFAULT",SWIG_From_int(static_cast< int >(wxYES_DEFAULT)));
|
|
SWIG_Python_SetConstant(d, "ICON_EXCLAMATION",SWIG_From_int(static_cast< int >(wxICON_EXCLAMATION)));
|
|
SWIG_Python_SetConstant(d, "ICON_HAND",SWIG_From_int(static_cast< int >(wxICON_HAND)));
|
|
SWIG_Python_SetConstant(d, "ICON_QUESTION",SWIG_From_int(static_cast< int >(wxICON_QUESTION)));
|
|
SWIG_Python_SetConstant(d, "ICON_INFORMATION",SWIG_From_int(static_cast< int >(wxICON_INFORMATION)));
|
|
SWIG_Python_SetConstant(d, "ICON_STOP",SWIG_From_int(static_cast< int >(wxICON_STOP)));
|
|
SWIG_Python_SetConstant(d, "ICON_ASTERISK",SWIG_From_int(static_cast< int >(wxICON_ASTERISK)));
|
|
SWIG_Python_SetConstant(d, "ICON_MASK",SWIG_From_int(static_cast< int >(wxICON_MASK)));
|
|
SWIG_Python_SetConstant(d, "ICON_WARNING",SWIG_From_int(static_cast< int >(wxICON_WARNING)));
|
|
SWIG_Python_SetConstant(d, "ICON_ERROR",SWIG_From_int(static_cast< int >(wxICON_ERROR)));
|
|
SWIG_Python_SetConstant(d, "FORWARD",SWIG_From_int(static_cast< int >(wxFORWARD)));
|
|
SWIG_Python_SetConstant(d, "BACKWARD",SWIG_From_int(static_cast< int >(wxBACKWARD)));
|
|
SWIG_Python_SetConstant(d, "RESET",SWIG_From_int(static_cast< int >(wxRESET)));
|
|
SWIG_Python_SetConstant(d, "HELP",SWIG_From_int(static_cast< int >(wxHELP)));
|
|
SWIG_Python_SetConstant(d, "MORE",SWIG_From_int(static_cast< int >(wxMORE)));
|
|
SWIG_Python_SetConstant(d, "SETUP",SWIG_From_int(static_cast< int >(wxSETUP)));
|
|
SWIG_Python_SetConstant(d, "SIZE_AUTO_WIDTH",SWIG_From_int(static_cast< int >(wxSIZE_AUTO_WIDTH)));
|
|
SWIG_Python_SetConstant(d, "SIZE_AUTO_HEIGHT",SWIG_From_int(static_cast< int >(wxSIZE_AUTO_HEIGHT)));
|
|
SWIG_Python_SetConstant(d, "SIZE_AUTO",SWIG_From_int(static_cast< int >(wxSIZE_AUTO)));
|
|
SWIG_Python_SetConstant(d, "SIZE_USE_EXISTING",SWIG_From_int(static_cast< int >(wxSIZE_USE_EXISTING)));
|
|
SWIG_Python_SetConstant(d, "SIZE_ALLOW_MINUS_ONE",SWIG_From_int(static_cast< int >(wxSIZE_ALLOW_MINUS_ONE)));
|
|
SWIG_Python_SetConstant(d, "SIZE_FORCE",SWIG_From_int(static_cast< int >(wxSIZE_FORCE)));
|
|
SWIG_Python_SetConstant(d, "PORTRAIT",SWIG_From_int(static_cast< int >(wxPORTRAIT)));
|
|
SWIG_Python_SetConstant(d, "LANDSCAPE",SWIG_From_int(static_cast< int >(wxLANDSCAPE)));
|
|
SWIG_Python_SetConstant(d, "PRINT_QUALITY_HIGH",SWIG_From_int(static_cast< int >(wxPRINT_QUALITY_HIGH)));
|
|
SWIG_Python_SetConstant(d, "PRINT_QUALITY_MEDIUM",SWIG_From_int(static_cast< int >(wxPRINT_QUALITY_MEDIUM)));
|
|
SWIG_Python_SetConstant(d, "PRINT_QUALITY_LOW",SWIG_From_int(static_cast< int >(wxPRINT_QUALITY_LOW)));
|
|
SWIG_Python_SetConstant(d, "PRINT_QUALITY_DRAFT",SWIG_From_int(static_cast< int >(wxPRINT_QUALITY_DRAFT)));
|
|
SWIG_Python_SetConstant(d, "ID_ANY",SWIG_From_int(static_cast< int >(wxID_ANY)));
|
|
SWIG_Python_SetConstant(d, "ID_SEPARATOR",SWIG_From_int(static_cast< int >(wxID_SEPARATOR)));
|
|
SWIG_Python_SetConstant(d, "ID_NONE",SWIG_From_int(static_cast< int >(wxID_NONE)));
|
|
SWIG_Python_SetConstant(d, "ID_LOWEST",SWIG_From_int(static_cast< int >(wxID_LOWEST)));
|
|
SWIG_Python_SetConstant(d, "ID_OPEN",SWIG_From_int(static_cast< int >(wxID_OPEN)));
|
|
SWIG_Python_SetConstant(d, "ID_CLOSE",SWIG_From_int(static_cast< int >(wxID_CLOSE)));
|
|
SWIG_Python_SetConstant(d, "ID_NEW",SWIG_From_int(static_cast< int >(wxID_NEW)));
|
|
SWIG_Python_SetConstant(d, "ID_SAVE",SWIG_From_int(static_cast< int >(wxID_SAVE)));
|
|
SWIG_Python_SetConstant(d, "ID_SAVEAS",SWIG_From_int(static_cast< int >(wxID_SAVEAS)));
|
|
SWIG_Python_SetConstant(d, "ID_REVERT",SWIG_From_int(static_cast< int >(wxID_REVERT)));
|
|
SWIG_Python_SetConstant(d, "ID_EXIT",SWIG_From_int(static_cast< int >(wxID_EXIT)));
|
|
SWIG_Python_SetConstant(d, "ID_UNDO",SWIG_From_int(static_cast< int >(wxID_UNDO)));
|
|
SWIG_Python_SetConstant(d, "ID_REDO",SWIG_From_int(static_cast< int >(wxID_REDO)));
|
|
SWIG_Python_SetConstant(d, "ID_HELP",SWIG_From_int(static_cast< int >(wxID_HELP)));
|
|
SWIG_Python_SetConstant(d, "ID_PRINT",SWIG_From_int(static_cast< int >(wxID_PRINT)));
|
|
SWIG_Python_SetConstant(d, "ID_PRINT_SETUP",SWIG_From_int(static_cast< int >(wxID_PRINT_SETUP)));
|
|
SWIG_Python_SetConstant(d, "ID_PAGE_SETUP",SWIG_From_int(static_cast< int >(wxID_PAGE_SETUP)));
|
|
SWIG_Python_SetConstant(d, "ID_PREVIEW",SWIG_From_int(static_cast< int >(wxID_PREVIEW)));
|
|
SWIG_Python_SetConstant(d, "ID_ABOUT",SWIG_From_int(static_cast< int >(wxID_ABOUT)));
|
|
SWIG_Python_SetConstant(d, "ID_HELP_CONTENTS",SWIG_From_int(static_cast< int >(wxID_HELP_CONTENTS)));
|
|
SWIG_Python_SetConstant(d, "ID_HELP_COMMANDS",SWIG_From_int(static_cast< int >(wxID_HELP_COMMANDS)));
|
|
SWIG_Python_SetConstant(d, "ID_HELP_PROCEDURES",SWIG_From_int(static_cast< int >(wxID_HELP_PROCEDURES)));
|
|
SWIG_Python_SetConstant(d, "ID_HELP_CONTEXT",SWIG_From_int(static_cast< int >(wxID_HELP_CONTEXT)));
|
|
SWIG_Python_SetConstant(d, "ID_HELP_INDEX",SWIG_From_int(static_cast< int >(wxID_HELP_INDEX)));
|
|
SWIG_Python_SetConstant(d, "ID_HELP_SEARCH",SWIG_From_int(static_cast< int >(wxID_HELP_SEARCH)));
|
|
SWIG_Python_SetConstant(d, "ID_CLOSE_ALL",SWIG_From_int(static_cast< int >(wxID_CLOSE_ALL)));
|
|
SWIG_Python_SetConstant(d, "ID_PREFERENCES",SWIG_From_int(static_cast< int >(wxID_PREFERENCES)));
|
|
SWIG_Python_SetConstant(d, "ID_EDIT",SWIG_From_int(static_cast< int >(wxID_EDIT)));
|
|
SWIG_Python_SetConstant(d, "ID_CUT",SWIG_From_int(static_cast< int >(wxID_CUT)));
|
|
SWIG_Python_SetConstant(d, "ID_COPY",SWIG_From_int(static_cast< int >(wxID_COPY)));
|
|
SWIG_Python_SetConstant(d, "ID_PASTE",SWIG_From_int(static_cast< int >(wxID_PASTE)));
|
|
SWIG_Python_SetConstant(d, "ID_CLEAR",SWIG_From_int(static_cast< int >(wxID_CLEAR)));
|
|
SWIG_Python_SetConstant(d, "ID_FIND",SWIG_From_int(static_cast< int >(wxID_FIND)));
|
|
SWIG_Python_SetConstant(d, "ID_DUPLICATE",SWIG_From_int(static_cast< int >(wxID_DUPLICATE)));
|
|
SWIG_Python_SetConstant(d, "ID_SELECTALL",SWIG_From_int(static_cast< int >(wxID_SELECTALL)));
|
|
SWIG_Python_SetConstant(d, "ID_DELETE",SWIG_From_int(static_cast< int >(wxID_DELETE)));
|
|
SWIG_Python_SetConstant(d, "ID_REPLACE",SWIG_From_int(static_cast< int >(wxID_REPLACE)));
|
|
SWIG_Python_SetConstant(d, "ID_REPLACE_ALL",SWIG_From_int(static_cast< int >(wxID_REPLACE_ALL)));
|
|
SWIG_Python_SetConstant(d, "ID_PROPERTIES",SWIG_From_int(static_cast< int >(wxID_PROPERTIES)));
|
|
SWIG_Python_SetConstant(d, "ID_VIEW_DETAILS",SWIG_From_int(static_cast< int >(wxID_VIEW_DETAILS)));
|
|
SWIG_Python_SetConstant(d, "ID_VIEW_LARGEICONS",SWIG_From_int(static_cast< int >(wxID_VIEW_LARGEICONS)));
|
|
SWIG_Python_SetConstant(d, "ID_VIEW_SMALLICONS",SWIG_From_int(static_cast< int >(wxID_VIEW_SMALLICONS)));
|
|
SWIG_Python_SetConstant(d, "ID_VIEW_LIST",SWIG_From_int(static_cast< int >(wxID_VIEW_LIST)));
|
|
SWIG_Python_SetConstant(d, "ID_VIEW_SORTDATE",SWIG_From_int(static_cast< int >(wxID_VIEW_SORTDATE)));
|
|
SWIG_Python_SetConstant(d, "ID_VIEW_SORTNAME",SWIG_From_int(static_cast< int >(wxID_VIEW_SORTNAME)));
|
|
SWIG_Python_SetConstant(d, "ID_VIEW_SORTSIZE",SWIG_From_int(static_cast< int >(wxID_VIEW_SORTSIZE)));
|
|
SWIG_Python_SetConstant(d, "ID_VIEW_SORTTYPE",SWIG_From_int(static_cast< int >(wxID_VIEW_SORTTYPE)));
|
|
SWIG_Python_SetConstant(d, "ID_FILE",SWIG_From_int(static_cast< int >(wxID_FILE)));
|
|
SWIG_Python_SetConstant(d, "ID_FILE1",SWIG_From_int(static_cast< int >(wxID_FILE1)));
|
|
SWIG_Python_SetConstant(d, "ID_FILE2",SWIG_From_int(static_cast< int >(wxID_FILE2)));
|
|
SWIG_Python_SetConstant(d, "ID_FILE3",SWIG_From_int(static_cast< int >(wxID_FILE3)));
|
|
SWIG_Python_SetConstant(d, "ID_FILE4",SWIG_From_int(static_cast< int >(wxID_FILE4)));
|
|
SWIG_Python_SetConstant(d, "ID_FILE5",SWIG_From_int(static_cast< int >(wxID_FILE5)));
|
|
SWIG_Python_SetConstant(d, "ID_FILE6",SWIG_From_int(static_cast< int >(wxID_FILE6)));
|
|
SWIG_Python_SetConstant(d, "ID_FILE7",SWIG_From_int(static_cast< int >(wxID_FILE7)));
|
|
SWIG_Python_SetConstant(d, "ID_FILE8",SWIG_From_int(static_cast< int >(wxID_FILE8)));
|
|
SWIG_Python_SetConstant(d, "ID_FILE9",SWIG_From_int(static_cast< int >(wxID_FILE9)));
|
|
SWIG_Python_SetConstant(d, "ID_OK",SWIG_From_int(static_cast< int >(wxID_OK)));
|
|
SWIG_Python_SetConstant(d, "ID_CANCEL",SWIG_From_int(static_cast< int >(wxID_CANCEL)));
|
|
SWIG_Python_SetConstant(d, "ID_APPLY",SWIG_From_int(static_cast< int >(wxID_APPLY)));
|
|
SWIG_Python_SetConstant(d, "ID_YES",SWIG_From_int(static_cast< int >(wxID_YES)));
|
|
SWIG_Python_SetConstant(d, "ID_NO",SWIG_From_int(static_cast< int >(wxID_NO)));
|
|
SWIG_Python_SetConstant(d, "ID_STATIC",SWIG_From_int(static_cast< int >(wxID_STATIC)));
|
|
SWIG_Python_SetConstant(d, "ID_FORWARD",SWIG_From_int(static_cast< int >(wxID_FORWARD)));
|
|
SWIG_Python_SetConstant(d, "ID_BACKWARD",SWIG_From_int(static_cast< int >(wxID_BACKWARD)));
|
|
SWIG_Python_SetConstant(d, "ID_DEFAULT",SWIG_From_int(static_cast< int >(wxID_DEFAULT)));
|
|
SWIG_Python_SetConstant(d, "ID_MORE",SWIG_From_int(static_cast< int >(wxID_MORE)));
|
|
SWIG_Python_SetConstant(d, "ID_SETUP",SWIG_From_int(static_cast< int >(wxID_SETUP)));
|
|
SWIG_Python_SetConstant(d, "ID_RESET",SWIG_From_int(static_cast< int >(wxID_RESET)));
|
|
SWIG_Python_SetConstant(d, "ID_CONTEXT_HELP",SWIG_From_int(static_cast< int >(wxID_CONTEXT_HELP)));
|
|
SWIG_Python_SetConstant(d, "ID_YESTOALL",SWIG_From_int(static_cast< int >(wxID_YESTOALL)));
|
|
SWIG_Python_SetConstant(d, "ID_NOTOALL",SWIG_From_int(static_cast< int >(wxID_NOTOALL)));
|
|
SWIG_Python_SetConstant(d, "ID_ABORT",SWIG_From_int(static_cast< int >(wxID_ABORT)));
|
|
SWIG_Python_SetConstant(d, "ID_RETRY",SWIG_From_int(static_cast< int >(wxID_RETRY)));
|
|
SWIG_Python_SetConstant(d, "ID_IGNORE",SWIG_From_int(static_cast< int >(wxID_IGNORE)));
|
|
SWIG_Python_SetConstant(d, "ID_ADD",SWIG_From_int(static_cast< int >(wxID_ADD)));
|
|
SWIG_Python_SetConstant(d, "ID_REMOVE",SWIG_From_int(static_cast< int >(wxID_REMOVE)));
|
|
SWIG_Python_SetConstant(d, "ID_UP",SWIG_From_int(static_cast< int >(wxID_UP)));
|
|
SWIG_Python_SetConstant(d, "ID_DOWN",SWIG_From_int(static_cast< int >(wxID_DOWN)));
|
|
SWIG_Python_SetConstant(d, "ID_HOME",SWIG_From_int(static_cast< int >(wxID_HOME)));
|
|
SWIG_Python_SetConstant(d, "ID_REFRESH",SWIG_From_int(static_cast< int >(wxID_REFRESH)));
|
|
SWIG_Python_SetConstant(d, "ID_STOP",SWIG_From_int(static_cast< int >(wxID_STOP)));
|
|
SWIG_Python_SetConstant(d, "ID_INDEX",SWIG_From_int(static_cast< int >(wxID_INDEX)));
|
|
SWIG_Python_SetConstant(d, "ID_BOLD",SWIG_From_int(static_cast< int >(wxID_BOLD)));
|
|
SWIG_Python_SetConstant(d, "ID_ITALIC",SWIG_From_int(static_cast< int >(wxID_ITALIC)));
|
|
SWIG_Python_SetConstant(d, "ID_JUSTIFY_CENTER",SWIG_From_int(static_cast< int >(wxID_JUSTIFY_CENTER)));
|
|
SWIG_Python_SetConstant(d, "ID_JUSTIFY_FILL",SWIG_From_int(static_cast< int >(wxID_JUSTIFY_FILL)));
|
|
SWIG_Python_SetConstant(d, "ID_JUSTIFY_RIGHT",SWIG_From_int(static_cast< int >(wxID_JUSTIFY_RIGHT)));
|
|
SWIG_Python_SetConstant(d, "ID_JUSTIFY_LEFT",SWIG_From_int(static_cast< int >(wxID_JUSTIFY_LEFT)));
|
|
SWIG_Python_SetConstant(d, "ID_UNDERLINE",SWIG_From_int(static_cast< int >(wxID_UNDERLINE)));
|
|
SWIG_Python_SetConstant(d, "ID_INDENT",SWIG_From_int(static_cast< int >(wxID_INDENT)));
|
|
SWIG_Python_SetConstant(d, "ID_UNINDENT",SWIG_From_int(static_cast< int >(wxID_UNINDENT)));
|
|
SWIG_Python_SetConstant(d, "ID_ZOOM_100",SWIG_From_int(static_cast< int >(wxID_ZOOM_100)));
|
|
SWIG_Python_SetConstant(d, "ID_ZOOM_FIT",SWIG_From_int(static_cast< int >(wxID_ZOOM_FIT)));
|
|
SWIG_Python_SetConstant(d, "ID_ZOOM_IN",SWIG_From_int(static_cast< int >(wxID_ZOOM_IN)));
|
|
SWIG_Python_SetConstant(d, "ID_ZOOM_OUT",SWIG_From_int(static_cast< int >(wxID_ZOOM_OUT)));
|
|
SWIG_Python_SetConstant(d, "ID_UNDELETE",SWIG_From_int(static_cast< int >(wxID_UNDELETE)));
|
|
SWIG_Python_SetConstant(d, "ID_REVERT_TO_SAVED",SWIG_From_int(static_cast< int >(wxID_REVERT_TO_SAVED)));
|
|
SWIG_Python_SetConstant(d, "ID_HIGHEST",SWIG_From_int(static_cast< int >(wxID_HIGHEST)));
|
|
SWIG_Python_SetConstant(d, "MENU_TEAROFF",SWIG_From_int(static_cast< int >(wxMENU_TEAROFF)));
|
|
SWIG_Python_SetConstant(d, "MB_DOCKABLE",SWIG_From_int(static_cast< int >(wxMB_DOCKABLE)));
|
|
SWIG_Python_SetConstant(d, "NO_FULL_REPAINT_ON_RESIZE",SWIG_From_int(static_cast< int >(wxNO_FULL_REPAINT_ON_RESIZE)));
|
|
SWIG_Python_SetConstant(d, "FULL_REPAINT_ON_RESIZE",SWIG_From_int(static_cast< int >(wxFULL_REPAINT_ON_RESIZE)));
|
|
SWIG_Python_SetConstant(d, "LI_HORIZONTAL",SWIG_From_int(static_cast< int >(wxLI_HORIZONTAL)));
|
|
SWIG_Python_SetConstant(d, "LI_VERTICAL",SWIG_From_int(static_cast< int >(wxLI_VERTICAL)));
|
|
SWIG_Python_SetConstant(d, "WS_EX_VALIDATE_RECURSIVELY",SWIG_From_int(static_cast< int >(wxWS_EX_VALIDATE_RECURSIVELY)));
|
|
SWIG_Python_SetConstant(d, "WS_EX_BLOCK_EVENTS",SWIG_From_int(static_cast< int >(wxWS_EX_BLOCK_EVENTS)));
|
|
SWIG_Python_SetConstant(d, "WS_EX_TRANSIENT",SWIG_From_int(static_cast< int >(wxWS_EX_TRANSIENT)));
|
|
SWIG_Python_SetConstant(d, "WS_EX_THEMED_BACKGROUND",SWIG_From_int(static_cast< int >(wxWS_EX_THEMED_BACKGROUND)));
|
|
SWIG_Python_SetConstant(d, "WS_EX_PROCESS_IDLE",SWIG_From_int(static_cast< int >(wxWS_EX_PROCESS_IDLE)));
|
|
SWIG_Python_SetConstant(d, "WS_EX_PROCESS_UI_UPDATES",SWIG_From_int(static_cast< int >(wxWS_EX_PROCESS_UI_UPDATES)));
|
|
SWIG_Python_SetConstant(d, "MM_TEXT",SWIG_From_int(static_cast< int >(wxMM_TEXT)));
|
|
SWIG_Python_SetConstant(d, "MM_LOMETRIC",SWIG_From_int(static_cast< int >(wxMM_LOMETRIC)));
|
|
SWIG_Python_SetConstant(d, "MM_HIMETRIC",SWIG_From_int(static_cast< int >(wxMM_HIMETRIC)));
|
|
SWIG_Python_SetConstant(d, "MM_LOENGLISH",SWIG_From_int(static_cast< int >(wxMM_LOENGLISH)));
|
|
SWIG_Python_SetConstant(d, "MM_HIENGLISH",SWIG_From_int(static_cast< int >(wxMM_HIENGLISH)));
|
|
SWIG_Python_SetConstant(d, "MM_TWIPS",SWIG_From_int(static_cast< int >(wxMM_TWIPS)));
|
|
SWIG_Python_SetConstant(d, "MM_ISOTROPIC",SWIG_From_int(static_cast< int >(wxMM_ISOTROPIC)));
|
|
SWIG_Python_SetConstant(d, "MM_ANISOTROPIC",SWIG_From_int(static_cast< int >(wxMM_ANISOTROPIC)));
|
|
SWIG_Python_SetConstant(d, "MM_POINTS",SWIG_From_int(static_cast< int >(wxMM_POINTS)));
|
|
SWIG_Python_SetConstant(d, "MM_METRIC",SWIG_From_int(static_cast< int >(wxMM_METRIC)));
|
|
SWIG_Python_SetConstant(d, "CENTRE",SWIG_From_int(static_cast< int >(wxCENTRE)));
|
|
SWIG_Python_SetConstant(d, "CENTER",SWIG_From_int(static_cast< int >(wxCENTER)));
|
|
SWIG_Python_SetConstant(d, "HORIZONTAL",SWIG_From_int(static_cast< int >(wxHORIZONTAL)));
|
|
SWIG_Python_SetConstant(d, "VERTICAL",SWIG_From_int(static_cast< int >(wxVERTICAL)));
|
|
SWIG_Python_SetConstant(d, "BOTH",SWIG_From_int(static_cast< int >(wxBOTH)));
|
|
SWIG_Python_SetConstant(d, "LEFT",SWIG_From_int(static_cast< int >(wxLEFT)));
|
|
SWIG_Python_SetConstant(d, "RIGHT",SWIG_From_int(static_cast< int >(wxRIGHT)));
|
|
SWIG_Python_SetConstant(d, "UP",SWIG_From_int(static_cast< int >(wxUP)));
|
|
SWIG_Python_SetConstant(d, "DOWN",SWIG_From_int(static_cast< int >(wxDOWN)));
|
|
SWIG_Python_SetConstant(d, "TOP",SWIG_From_int(static_cast< int >(wxTOP)));
|
|
SWIG_Python_SetConstant(d, "BOTTOM",SWIG_From_int(static_cast< int >(wxBOTTOM)));
|
|
SWIG_Python_SetConstant(d, "NORTH",SWIG_From_int(static_cast< int >(wxNORTH)));
|
|
SWIG_Python_SetConstant(d, "SOUTH",SWIG_From_int(static_cast< int >(wxSOUTH)));
|
|
SWIG_Python_SetConstant(d, "WEST",SWIG_From_int(static_cast< int >(wxWEST)));
|
|
SWIG_Python_SetConstant(d, "EAST",SWIG_From_int(static_cast< int >(wxEAST)));
|
|
SWIG_Python_SetConstant(d, "ALL",SWIG_From_int(static_cast< int >(wxALL)));
|
|
SWIG_Python_SetConstant(d, "ALIGN_NOT",SWIG_From_int(static_cast< int >(wxALIGN_NOT)));
|
|
SWIG_Python_SetConstant(d, "ALIGN_CENTER_HORIZONTAL",SWIG_From_int(static_cast< int >(wxALIGN_CENTER_HORIZONTAL)));
|
|
SWIG_Python_SetConstant(d, "ALIGN_CENTRE_HORIZONTAL",SWIG_From_int(static_cast< int >(wxALIGN_CENTRE_HORIZONTAL)));
|
|
SWIG_Python_SetConstant(d, "ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxALIGN_LEFT)));
|
|
SWIG_Python_SetConstant(d, "ALIGN_TOP",SWIG_From_int(static_cast< int >(wxALIGN_TOP)));
|
|
SWIG_Python_SetConstant(d, "ALIGN_RIGHT",SWIG_From_int(static_cast< int >(wxALIGN_RIGHT)));
|
|
SWIG_Python_SetConstant(d, "ALIGN_BOTTOM",SWIG_From_int(static_cast< int >(wxALIGN_BOTTOM)));
|
|
SWIG_Python_SetConstant(d, "ALIGN_CENTER_VERTICAL",SWIG_From_int(static_cast< int >(wxALIGN_CENTER_VERTICAL)));
|
|
SWIG_Python_SetConstant(d, "ALIGN_CENTRE_VERTICAL",SWIG_From_int(static_cast< int >(wxALIGN_CENTRE_VERTICAL)));
|
|
SWIG_Python_SetConstant(d, "ALIGN_CENTER",SWIG_From_int(static_cast< int >(wxALIGN_CENTER)));
|
|
SWIG_Python_SetConstant(d, "ALIGN_CENTRE",SWIG_From_int(static_cast< int >(wxALIGN_CENTRE)));
|
|
SWIG_Python_SetConstant(d, "ALIGN_MASK",SWIG_From_int(static_cast< int >(wxALIGN_MASK)));
|
|
SWIG_Python_SetConstant(d, "STRETCH_NOT",SWIG_From_int(static_cast< int >(wxSTRETCH_NOT)));
|
|
SWIG_Python_SetConstant(d, "SHRINK",SWIG_From_int(static_cast< int >(wxSHRINK)));
|
|
SWIG_Python_SetConstant(d, "GROW",SWIG_From_int(static_cast< int >(wxGROW)));
|
|
SWIG_Python_SetConstant(d, "EXPAND",SWIG_From_int(static_cast< int >(wxEXPAND)));
|
|
SWIG_Python_SetConstant(d, "SHAPED",SWIG_From_int(static_cast< int >(wxSHAPED)));
|
|
SWIG_Python_SetConstant(d, "FIXED_MINSIZE",SWIG_From_int(static_cast< int >(wxFIXED_MINSIZE)));
|
|
SWIG_Python_SetConstant(d, "TILE",SWIG_From_int(static_cast< int >(wxTILE)));
|
|
SWIG_Python_SetConstant(d, "ADJUST_MINSIZE",SWIG_From_int(static_cast< int >(wxADJUST_MINSIZE)));
|
|
SWIG_Python_SetConstant(d, "BORDER_DEFAULT",SWIG_From_int(static_cast< int >(wxBORDER_DEFAULT)));
|
|
SWIG_Python_SetConstant(d, "BORDER_NONE",SWIG_From_int(static_cast< int >(wxBORDER_NONE)));
|
|
SWIG_Python_SetConstant(d, "BORDER_STATIC",SWIG_From_int(static_cast< int >(wxBORDER_STATIC)));
|
|
SWIG_Python_SetConstant(d, "BORDER_SIMPLE",SWIG_From_int(static_cast< int >(wxBORDER_SIMPLE)));
|
|
SWIG_Python_SetConstant(d, "BORDER_RAISED",SWIG_From_int(static_cast< int >(wxBORDER_RAISED)));
|
|
SWIG_Python_SetConstant(d, "BORDER_SUNKEN",SWIG_From_int(static_cast< int >(wxBORDER_SUNKEN)));
|
|
SWIG_Python_SetConstant(d, "BORDER_DOUBLE",SWIG_From_int(static_cast< int >(wxBORDER_DOUBLE)));
|
|
SWIG_Python_SetConstant(d, "BORDER_MASK",SWIG_From_int(static_cast< int >(wxBORDER_MASK)));
|
|
SWIG_Python_SetConstant(d, "BG_STYLE_SYSTEM",SWIG_From_int(static_cast< int >(wxBG_STYLE_SYSTEM)));
|
|
SWIG_Python_SetConstant(d, "BG_STYLE_COLOUR",SWIG_From_int(static_cast< int >(wxBG_STYLE_COLOUR)));
|
|
SWIG_Python_SetConstant(d, "BG_STYLE_CUSTOM",SWIG_From_int(static_cast< int >(wxBG_STYLE_CUSTOM)));
|
|
SWIG_Python_SetConstant(d, "DEFAULT",SWIG_From_int(static_cast< int >(wxDEFAULT)));
|
|
SWIG_Python_SetConstant(d, "DECORATIVE",SWIG_From_int(static_cast< int >(wxDECORATIVE)));
|
|
SWIG_Python_SetConstant(d, "ROMAN",SWIG_From_int(static_cast< int >(wxROMAN)));
|
|
SWIG_Python_SetConstant(d, "SCRIPT",SWIG_From_int(static_cast< int >(wxSCRIPT)));
|
|
SWIG_Python_SetConstant(d, "SWISS",SWIG_From_int(static_cast< int >(wxSWISS)));
|
|
SWIG_Python_SetConstant(d, "MODERN",SWIG_From_int(static_cast< int >(wxMODERN)));
|
|
SWIG_Python_SetConstant(d, "TELETYPE",SWIG_From_int(static_cast< int >(wxTELETYPE)));
|
|
SWIG_Python_SetConstant(d, "VARIABLE",SWIG_From_int(static_cast< int >(wxVARIABLE)));
|
|
SWIG_Python_SetConstant(d, "FIXED",SWIG_From_int(static_cast< int >(wxFIXED)));
|
|
SWIG_Python_SetConstant(d, "NORMAL",SWIG_From_int(static_cast< int >(wxNORMAL)));
|
|
SWIG_Python_SetConstant(d, "LIGHT",SWIG_From_int(static_cast< int >(wxLIGHT)));
|
|
SWIG_Python_SetConstant(d, "BOLD",SWIG_From_int(static_cast< int >(wxBOLD)));
|
|
SWIG_Python_SetConstant(d, "ITALIC",SWIG_From_int(static_cast< int >(wxITALIC)));
|
|
SWIG_Python_SetConstant(d, "SLANT",SWIG_From_int(static_cast< int >(wxSLANT)));
|
|
SWIG_Python_SetConstant(d, "SOLID",SWIG_From_int(static_cast< int >(wxSOLID)));
|
|
SWIG_Python_SetConstant(d, "DOT",SWIG_From_int(static_cast< int >(wxDOT)));
|
|
SWIG_Python_SetConstant(d, "LONG_DASH",SWIG_From_int(static_cast< int >(wxLONG_DASH)));
|
|
SWIG_Python_SetConstant(d, "SHORT_DASH",SWIG_From_int(static_cast< int >(wxSHORT_DASH)));
|
|
SWIG_Python_SetConstant(d, "DOT_DASH",SWIG_From_int(static_cast< int >(wxDOT_DASH)));
|
|
SWIG_Python_SetConstant(d, "USER_DASH",SWIG_From_int(static_cast< int >(wxUSER_DASH)));
|
|
SWIG_Python_SetConstant(d, "TRANSPARENT",SWIG_From_int(static_cast< int >(wxTRANSPARENT)));
|
|
SWIG_Python_SetConstant(d, "STIPPLE",SWIG_From_int(static_cast< int >(wxSTIPPLE)));
|
|
SWIG_Python_SetConstant(d, "STIPPLE_MASK",SWIG_From_int(static_cast< int >(wxSTIPPLE_MASK)));
|
|
SWIG_Python_SetConstant(d, "STIPPLE_MASK_OPAQUE",SWIG_From_int(static_cast< int >(wxSTIPPLE_MASK_OPAQUE)));
|
|
SWIG_Python_SetConstant(d, "BDIAGONAL_HATCH",SWIG_From_int(static_cast< int >(wxBDIAGONAL_HATCH)));
|
|
SWIG_Python_SetConstant(d, "CROSSDIAG_HATCH",SWIG_From_int(static_cast< int >(wxCROSSDIAG_HATCH)));
|
|
SWIG_Python_SetConstant(d, "FDIAGONAL_HATCH",SWIG_From_int(static_cast< int >(wxFDIAGONAL_HATCH)));
|
|
SWIG_Python_SetConstant(d, "CROSS_HATCH",SWIG_From_int(static_cast< int >(wxCROSS_HATCH)));
|
|
SWIG_Python_SetConstant(d, "HORIZONTAL_HATCH",SWIG_From_int(static_cast< int >(wxHORIZONTAL_HATCH)));
|
|
SWIG_Python_SetConstant(d, "VERTICAL_HATCH",SWIG_From_int(static_cast< int >(wxVERTICAL_HATCH)));
|
|
SWIG_Python_SetConstant(d, "JOIN_BEVEL",SWIG_From_int(static_cast< int >(wxJOIN_BEVEL)));
|
|
SWIG_Python_SetConstant(d, "JOIN_MITER",SWIG_From_int(static_cast< int >(wxJOIN_MITER)));
|
|
SWIG_Python_SetConstant(d, "JOIN_ROUND",SWIG_From_int(static_cast< int >(wxJOIN_ROUND)));
|
|
SWIG_Python_SetConstant(d, "CAP_ROUND",SWIG_From_int(static_cast< int >(wxCAP_ROUND)));
|
|
SWIG_Python_SetConstant(d, "CAP_PROJECTING",SWIG_From_int(static_cast< int >(wxCAP_PROJECTING)));
|
|
SWIG_Python_SetConstant(d, "CAP_BUTT",SWIG_From_int(static_cast< int >(wxCAP_BUTT)));
|
|
SWIG_Python_SetConstant(d, "CLEAR",SWIG_From_int(static_cast< int >(wxCLEAR)));
|
|
SWIG_Python_SetConstant(d, "XOR",SWIG_From_int(static_cast< int >(wxXOR)));
|
|
SWIG_Python_SetConstant(d, "INVERT",SWIG_From_int(static_cast< int >(wxINVERT)));
|
|
SWIG_Python_SetConstant(d, "OR_REVERSE",SWIG_From_int(static_cast< int >(wxOR_REVERSE)));
|
|
SWIG_Python_SetConstant(d, "AND_REVERSE",SWIG_From_int(static_cast< int >(wxAND_REVERSE)));
|
|
SWIG_Python_SetConstant(d, "COPY",SWIG_From_int(static_cast< int >(wxCOPY)));
|
|
SWIG_Python_SetConstant(d, "AND",SWIG_From_int(static_cast< int >(wxAND)));
|
|
SWIG_Python_SetConstant(d, "AND_INVERT",SWIG_From_int(static_cast< int >(wxAND_INVERT)));
|
|
SWIG_Python_SetConstant(d, "NO_OP",SWIG_From_int(static_cast< int >(wxNO_OP)));
|
|
SWIG_Python_SetConstant(d, "NOR",SWIG_From_int(static_cast< int >(wxNOR)));
|
|
SWIG_Python_SetConstant(d, "EQUIV",SWIG_From_int(static_cast< int >(wxEQUIV)));
|
|
SWIG_Python_SetConstant(d, "SRC_INVERT",SWIG_From_int(static_cast< int >(wxSRC_INVERT)));
|
|
SWIG_Python_SetConstant(d, "OR_INVERT",SWIG_From_int(static_cast< int >(wxOR_INVERT)));
|
|
SWIG_Python_SetConstant(d, "NAND",SWIG_From_int(static_cast< int >(wxNAND)));
|
|
SWIG_Python_SetConstant(d, "OR",SWIG_From_int(static_cast< int >(wxOR)));
|
|
SWIG_Python_SetConstant(d, "SET",SWIG_From_int(static_cast< int >(wxSET)));
|
|
SWIG_Python_SetConstant(d, "WXK_BACK",SWIG_From_int(static_cast< int >(WXK_BACK)));
|
|
SWIG_Python_SetConstant(d, "WXK_TAB",SWIG_From_int(static_cast< int >(WXK_TAB)));
|
|
SWIG_Python_SetConstant(d, "WXK_RETURN",SWIG_From_int(static_cast< int >(WXK_RETURN)));
|
|
SWIG_Python_SetConstant(d, "WXK_ESCAPE",SWIG_From_int(static_cast< int >(WXK_ESCAPE)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPACE",SWIG_From_int(static_cast< int >(WXK_SPACE)));
|
|
SWIG_Python_SetConstant(d, "WXK_DELETE",SWIG_From_int(static_cast< int >(WXK_DELETE)));
|
|
SWIG_Python_SetConstant(d, "WXK_START",SWIG_From_int(static_cast< int >(WXK_START)));
|
|
SWIG_Python_SetConstant(d, "WXK_LBUTTON",SWIG_From_int(static_cast< int >(WXK_LBUTTON)));
|
|
SWIG_Python_SetConstant(d, "WXK_RBUTTON",SWIG_From_int(static_cast< int >(WXK_RBUTTON)));
|
|
SWIG_Python_SetConstant(d, "WXK_CANCEL",SWIG_From_int(static_cast< int >(WXK_CANCEL)));
|
|
SWIG_Python_SetConstant(d, "WXK_MBUTTON",SWIG_From_int(static_cast< int >(WXK_MBUTTON)));
|
|
SWIG_Python_SetConstant(d, "WXK_CLEAR",SWIG_From_int(static_cast< int >(WXK_CLEAR)));
|
|
SWIG_Python_SetConstant(d, "WXK_SHIFT",SWIG_From_int(static_cast< int >(WXK_SHIFT)));
|
|
SWIG_Python_SetConstant(d, "WXK_ALT",SWIG_From_int(static_cast< int >(WXK_ALT)));
|
|
SWIG_Python_SetConstant(d, "WXK_CONTROL",SWIG_From_int(static_cast< int >(WXK_CONTROL)));
|
|
SWIG_Python_SetConstant(d, "WXK_MENU",SWIG_From_int(static_cast< int >(WXK_MENU)));
|
|
SWIG_Python_SetConstant(d, "WXK_PAUSE",SWIG_From_int(static_cast< int >(WXK_PAUSE)));
|
|
SWIG_Python_SetConstant(d, "WXK_CAPITAL",SWIG_From_int(static_cast< int >(WXK_CAPITAL)));
|
|
SWIG_Python_SetConstant(d, "WXK_PRIOR",SWIG_From_int(static_cast< int >(WXK_PRIOR)));
|
|
SWIG_Python_SetConstant(d, "WXK_NEXT",SWIG_From_int(static_cast< int >(WXK_NEXT)));
|
|
SWIG_Python_SetConstant(d, "WXK_END",SWIG_From_int(static_cast< int >(WXK_END)));
|
|
SWIG_Python_SetConstant(d, "WXK_HOME",SWIG_From_int(static_cast< int >(WXK_HOME)));
|
|
SWIG_Python_SetConstant(d, "WXK_LEFT",SWIG_From_int(static_cast< int >(WXK_LEFT)));
|
|
SWIG_Python_SetConstant(d, "WXK_UP",SWIG_From_int(static_cast< int >(WXK_UP)));
|
|
SWIG_Python_SetConstant(d, "WXK_RIGHT",SWIG_From_int(static_cast< int >(WXK_RIGHT)));
|
|
SWIG_Python_SetConstant(d, "WXK_DOWN",SWIG_From_int(static_cast< int >(WXK_DOWN)));
|
|
SWIG_Python_SetConstant(d, "WXK_SELECT",SWIG_From_int(static_cast< int >(WXK_SELECT)));
|
|
SWIG_Python_SetConstant(d, "WXK_PRINT",SWIG_From_int(static_cast< int >(WXK_PRINT)));
|
|
SWIG_Python_SetConstant(d, "WXK_EXECUTE",SWIG_From_int(static_cast< int >(WXK_EXECUTE)));
|
|
SWIG_Python_SetConstant(d, "WXK_SNAPSHOT",SWIG_From_int(static_cast< int >(WXK_SNAPSHOT)));
|
|
SWIG_Python_SetConstant(d, "WXK_INSERT",SWIG_From_int(static_cast< int >(WXK_INSERT)));
|
|
SWIG_Python_SetConstant(d, "WXK_HELP",SWIG_From_int(static_cast< int >(WXK_HELP)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD0",SWIG_From_int(static_cast< int >(WXK_NUMPAD0)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD1",SWIG_From_int(static_cast< int >(WXK_NUMPAD1)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD2",SWIG_From_int(static_cast< int >(WXK_NUMPAD2)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD3",SWIG_From_int(static_cast< int >(WXK_NUMPAD3)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD4",SWIG_From_int(static_cast< int >(WXK_NUMPAD4)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD5",SWIG_From_int(static_cast< int >(WXK_NUMPAD5)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD6",SWIG_From_int(static_cast< int >(WXK_NUMPAD6)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD7",SWIG_From_int(static_cast< int >(WXK_NUMPAD7)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD8",SWIG_From_int(static_cast< int >(WXK_NUMPAD8)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD9",SWIG_From_int(static_cast< int >(WXK_NUMPAD9)));
|
|
SWIG_Python_SetConstant(d, "WXK_MULTIPLY",SWIG_From_int(static_cast< int >(WXK_MULTIPLY)));
|
|
SWIG_Python_SetConstant(d, "WXK_ADD",SWIG_From_int(static_cast< int >(WXK_ADD)));
|
|
SWIG_Python_SetConstant(d, "WXK_SEPARATOR",SWIG_From_int(static_cast< int >(WXK_SEPARATOR)));
|
|
SWIG_Python_SetConstant(d, "WXK_SUBTRACT",SWIG_From_int(static_cast< int >(WXK_SUBTRACT)));
|
|
SWIG_Python_SetConstant(d, "WXK_DECIMAL",SWIG_From_int(static_cast< int >(WXK_DECIMAL)));
|
|
SWIG_Python_SetConstant(d, "WXK_DIVIDE",SWIG_From_int(static_cast< int >(WXK_DIVIDE)));
|
|
SWIG_Python_SetConstant(d, "WXK_F1",SWIG_From_int(static_cast< int >(WXK_F1)));
|
|
SWIG_Python_SetConstant(d, "WXK_F2",SWIG_From_int(static_cast< int >(WXK_F2)));
|
|
SWIG_Python_SetConstant(d, "WXK_F3",SWIG_From_int(static_cast< int >(WXK_F3)));
|
|
SWIG_Python_SetConstant(d, "WXK_F4",SWIG_From_int(static_cast< int >(WXK_F4)));
|
|
SWIG_Python_SetConstant(d, "WXK_F5",SWIG_From_int(static_cast< int >(WXK_F5)));
|
|
SWIG_Python_SetConstant(d, "WXK_F6",SWIG_From_int(static_cast< int >(WXK_F6)));
|
|
SWIG_Python_SetConstant(d, "WXK_F7",SWIG_From_int(static_cast< int >(WXK_F7)));
|
|
SWIG_Python_SetConstant(d, "WXK_F8",SWIG_From_int(static_cast< int >(WXK_F8)));
|
|
SWIG_Python_SetConstant(d, "WXK_F9",SWIG_From_int(static_cast< int >(WXK_F9)));
|
|
SWIG_Python_SetConstant(d, "WXK_F10",SWIG_From_int(static_cast< int >(WXK_F10)));
|
|
SWIG_Python_SetConstant(d, "WXK_F11",SWIG_From_int(static_cast< int >(WXK_F11)));
|
|
SWIG_Python_SetConstant(d, "WXK_F12",SWIG_From_int(static_cast< int >(WXK_F12)));
|
|
SWIG_Python_SetConstant(d, "WXK_F13",SWIG_From_int(static_cast< int >(WXK_F13)));
|
|
SWIG_Python_SetConstant(d, "WXK_F14",SWIG_From_int(static_cast< int >(WXK_F14)));
|
|
SWIG_Python_SetConstant(d, "WXK_F15",SWIG_From_int(static_cast< int >(WXK_F15)));
|
|
SWIG_Python_SetConstant(d, "WXK_F16",SWIG_From_int(static_cast< int >(WXK_F16)));
|
|
SWIG_Python_SetConstant(d, "WXK_F17",SWIG_From_int(static_cast< int >(WXK_F17)));
|
|
SWIG_Python_SetConstant(d, "WXK_F18",SWIG_From_int(static_cast< int >(WXK_F18)));
|
|
SWIG_Python_SetConstant(d, "WXK_F19",SWIG_From_int(static_cast< int >(WXK_F19)));
|
|
SWIG_Python_SetConstant(d, "WXK_F20",SWIG_From_int(static_cast< int >(WXK_F20)));
|
|
SWIG_Python_SetConstant(d, "WXK_F21",SWIG_From_int(static_cast< int >(WXK_F21)));
|
|
SWIG_Python_SetConstant(d, "WXK_F22",SWIG_From_int(static_cast< int >(WXK_F22)));
|
|
SWIG_Python_SetConstant(d, "WXK_F23",SWIG_From_int(static_cast< int >(WXK_F23)));
|
|
SWIG_Python_SetConstant(d, "WXK_F24",SWIG_From_int(static_cast< int >(WXK_F24)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMLOCK",SWIG_From_int(static_cast< int >(WXK_NUMLOCK)));
|
|
SWIG_Python_SetConstant(d, "WXK_SCROLL",SWIG_From_int(static_cast< int >(WXK_SCROLL)));
|
|
SWIG_Python_SetConstant(d, "WXK_PAGEUP",SWIG_From_int(static_cast< int >(WXK_PAGEUP)));
|
|
SWIG_Python_SetConstant(d, "WXK_PAGEDOWN",SWIG_From_int(static_cast< int >(WXK_PAGEDOWN)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_SPACE",SWIG_From_int(static_cast< int >(WXK_NUMPAD_SPACE)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_TAB",SWIG_From_int(static_cast< int >(WXK_NUMPAD_TAB)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_ENTER",SWIG_From_int(static_cast< int >(WXK_NUMPAD_ENTER)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_F1",SWIG_From_int(static_cast< int >(WXK_NUMPAD_F1)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_F2",SWIG_From_int(static_cast< int >(WXK_NUMPAD_F2)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_F3",SWIG_From_int(static_cast< int >(WXK_NUMPAD_F3)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_F4",SWIG_From_int(static_cast< int >(WXK_NUMPAD_F4)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_HOME",SWIG_From_int(static_cast< int >(WXK_NUMPAD_HOME)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_LEFT",SWIG_From_int(static_cast< int >(WXK_NUMPAD_LEFT)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_UP",SWIG_From_int(static_cast< int >(WXK_NUMPAD_UP)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_RIGHT",SWIG_From_int(static_cast< int >(WXK_NUMPAD_RIGHT)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_DOWN",SWIG_From_int(static_cast< int >(WXK_NUMPAD_DOWN)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_PRIOR",SWIG_From_int(static_cast< int >(WXK_NUMPAD_PRIOR)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_PAGEUP",SWIG_From_int(static_cast< int >(WXK_NUMPAD_PAGEUP)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_NEXT",SWIG_From_int(static_cast< int >(WXK_NUMPAD_NEXT)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_PAGEDOWN",SWIG_From_int(static_cast< int >(WXK_NUMPAD_PAGEDOWN)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_END",SWIG_From_int(static_cast< int >(WXK_NUMPAD_END)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_BEGIN",SWIG_From_int(static_cast< int >(WXK_NUMPAD_BEGIN)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_INSERT",SWIG_From_int(static_cast< int >(WXK_NUMPAD_INSERT)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_DELETE",SWIG_From_int(static_cast< int >(WXK_NUMPAD_DELETE)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_EQUAL",SWIG_From_int(static_cast< int >(WXK_NUMPAD_EQUAL)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_MULTIPLY",SWIG_From_int(static_cast< int >(WXK_NUMPAD_MULTIPLY)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_ADD",SWIG_From_int(static_cast< int >(WXK_NUMPAD_ADD)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_SEPARATOR",SWIG_From_int(static_cast< int >(WXK_NUMPAD_SEPARATOR)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_SUBTRACT",SWIG_From_int(static_cast< int >(WXK_NUMPAD_SUBTRACT)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_DECIMAL",SWIG_From_int(static_cast< int >(WXK_NUMPAD_DECIMAL)));
|
|
SWIG_Python_SetConstant(d, "WXK_NUMPAD_DIVIDE",SWIG_From_int(static_cast< int >(WXK_NUMPAD_DIVIDE)));
|
|
SWIG_Python_SetConstant(d, "WXK_WINDOWS_LEFT",SWIG_From_int(static_cast< int >(WXK_WINDOWS_LEFT)));
|
|
SWIG_Python_SetConstant(d, "WXK_WINDOWS_RIGHT",SWIG_From_int(static_cast< int >(WXK_WINDOWS_RIGHT)));
|
|
SWIG_Python_SetConstant(d, "WXK_WINDOWS_MENU",SWIG_From_int(static_cast< int >(WXK_WINDOWS_MENU)));
|
|
SWIG_Python_SetConstant(d, "WXK_COMMAND",SWIG_From_int(static_cast< int >(WXK_COMMAND)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL1",SWIG_From_int(static_cast< int >(WXK_SPECIAL1)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL2",SWIG_From_int(static_cast< int >(WXK_SPECIAL2)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL3",SWIG_From_int(static_cast< int >(WXK_SPECIAL3)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL4",SWIG_From_int(static_cast< int >(WXK_SPECIAL4)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL5",SWIG_From_int(static_cast< int >(WXK_SPECIAL5)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL6",SWIG_From_int(static_cast< int >(WXK_SPECIAL6)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL7",SWIG_From_int(static_cast< int >(WXK_SPECIAL7)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL8",SWIG_From_int(static_cast< int >(WXK_SPECIAL8)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL9",SWIG_From_int(static_cast< int >(WXK_SPECIAL9)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL10",SWIG_From_int(static_cast< int >(WXK_SPECIAL10)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL11",SWIG_From_int(static_cast< int >(WXK_SPECIAL11)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL12",SWIG_From_int(static_cast< int >(WXK_SPECIAL12)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL13",SWIG_From_int(static_cast< int >(WXK_SPECIAL13)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL14",SWIG_From_int(static_cast< int >(WXK_SPECIAL14)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL15",SWIG_From_int(static_cast< int >(WXK_SPECIAL15)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL16",SWIG_From_int(static_cast< int >(WXK_SPECIAL16)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL17",SWIG_From_int(static_cast< int >(WXK_SPECIAL17)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL18",SWIG_From_int(static_cast< int >(WXK_SPECIAL18)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL19",SWIG_From_int(static_cast< int >(WXK_SPECIAL19)));
|
|
SWIG_Python_SetConstant(d, "WXK_SPECIAL20",SWIG_From_int(static_cast< int >(WXK_SPECIAL20)));
|
|
SWIG_Python_SetConstant(d, "PAPER_NONE",SWIG_From_int(static_cast< int >(wxPAPER_NONE)));
|
|
SWIG_Python_SetConstant(d, "PAPER_LETTER",SWIG_From_int(static_cast< int >(wxPAPER_LETTER)));
|
|
SWIG_Python_SetConstant(d, "PAPER_LEGAL",SWIG_From_int(static_cast< int >(wxPAPER_LEGAL)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A4",SWIG_From_int(static_cast< int >(wxPAPER_A4)));
|
|
SWIG_Python_SetConstant(d, "PAPER_CSHEET",SWIG_From_int(static_cast< int >(wxPAPER_CSHEET)));
|
|
SWIG_Python_SetConstant(d, "PAPER_DSHEET",SWIG_From_int(static_cast< int >(wxPAPER_DSHEET)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ESHEET",SWIG_From_int(static_cast< int >(wxPAPER_ESHEET)));
|
|
SWIG_Python_SetConstant(d, "PAPER_LETTERSMALL",SWIG_From_int(static_cast< int >(wxPAPER_LETTERSMALL)));
|
|
SWIG_Python_SetConstant(d, "PAPER_TABLOID",SWIG_From_int(static_cast< int >(wxPAPER_TABLOID)));
|
|
SWIG_Python_SetConstant(d, "PAPER_LEDGER",SWIG_From_int(static_cast< int >(wxPAPER_LEDGER)));
|
|
SWIG_Python_SetConstant(d, "PAPER_STATEMENT",SWIG_From_int(static_cast< int >(wxPAPER_STATEMENT)));
|
|
SWIG_Python_SetConstant(d, "PAPER_EXECUTIVE",SWIG_From_int(static_cast< int >(wxPAPER_EXECUTIVE)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A3",SWIG_From_int(static_cast< int >(wxPAPER_A3)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A4SMALL",SWIG_From_int(static_cast< int >(wxPAPER_A4SMALL)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A5",SWIG_From_int(static_cast< int >(wxPAPER_A5)));
|
|
SWIG_Python_SetConstant(d, "PAPER_B4",SWIG_From_int(static_cast< int >(wxPAPER_B4)));
|
|
SWIG_Python_SetConstant(d, "PAPER_B5",SWIG_From_int(static_cast< int >(wxPAPER_B5)));
|
|
SWIG_Python_SetConstant(d, "PAPER_FOLIO",SWIG_From_int(static_cast< int >(wxPAPER_FOLIO)));
|
|
SWIG_Python_SetConstant(d, "PAPER_QUARTO",SWIG_From_int(static_cast< int >(wxPAPER_QUARTO)));
|
|
SWIG_Python_SetConstant(d, "PAPER_10X14",SWIG_From_int(static_cast< int >(wxPAPER_10X14)));
|
|
SWIG_Python_SetConstant(d, "PAPER_11X17",SWIG_From_int(static_cast< int >(wxPAPER_11X17)));
|
|
SWIG_Python_SetConstant(d, "PAPER_NOTE",SWIG_From_int(static_cast< int >(wxPAPER_NOTE)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ENV_9",SWIG_From_int(static_cast< int >(wxPAPER_ENV_9)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ENV_10",SWIG_From_int(static_cast< int >(wxPAPER_ENV_10)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ENV_11",SWIG_From_int(static_cast< int >(wxPAPER_ENV_11)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ENV_12",SWIG_From_int(static_cast< int >(wxPAPER_ENV_12)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ENV_14",SWIG_From_int(static_cast< int >(wxPAPER_ENV_14)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ENV_DL",SWIG_From_int(static_cast< int >(wxPAPER_ENV_DL)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ENV_C5",SWIG_From_int(static_cast< int >(wxPAPER_ENV_C5)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ENV_C3",SWIG_From_int(static_cast< int >(wxPAPER_ENV_C3)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ENV_C4",SWIG_From_int(static_cast< int >(wxPAPER_ENV_C4)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ENV_C6",SWIG_From_int(static_cast< int >(wxPAPER_ENV_C6)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ENV_C65",SWIG_From_int(static_cast< int >(wxPAPER_ENV_C65)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ENV_B4",SWIG_From_int(static_cast< int >(wxPAPER_ENV_B4)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ENV_B5",SWIG_From_int(static_cast< int >(wxPAPER_ENV_B5)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ENV_B6",SWIG_From_int(static_cast< int >(wxPAPER_ENV_B6)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ENV_ITALY",SWIG_From_int(static_cast< int >(wxPAPER_ENV_ITALY)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ENV_MONARCH",SWIG_From_int(static_cast< int >(wxPAPER_ENV_MONARCH)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ENV_PERSONAL",SWIG_From_int(static_cast< int >(wxPAPER_ENV_PERSONAL)));
|
|
SWIG_Python_SetConstant(d, "PAPER_FANFOLD_US",SWIG_From_int(static_cast< int >(wxPAPER_FANFOLD_US)));
|
|
SWIG_Python_SetConstant(d, "PAPER_FANFOLD_STD_GERMAN",SWIG_From_int(static_cast< int >(wxPAPER_FANFOLD_STD_GERMAN)));
|
|
SWIG_Python_SetConstant(d, "PAPER_FANFOLD_LGL_GERMAN",SWIG_From_int(static_cast< int >(wxPAPER_FANFOLD_LGL_GERMAN)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ISO_B4",SWIG_From_int(static_cast< int >(wxPAPER_ISO_B4)));
|
|
SWIG_Python_SetConstant(d, "PAPER_JAPANESE_POSTCARD",SWIG_From_int(static_cast< int >(wxPAPER_JAPANESE_POSTCARD)));
|
|
SWIG_Python_SetConstant(d, "PAPER_9X11",SWIG_From_int(static_cast< int >(wxPAPER_9X11)));
|
|
SWIG_Python_SetConstant(d, "PAPER_10X11",SWIG_From_int(static_cast< int >(wxPAPER_10X11)));
|
|
SWIG_Python_SetConstant(d, "PAPER_15X11",SWIG_From_int(static_cast< int >(wxPAPER_15X11)));
|
|
SWIG_Python_SetConstant(d, "PAPER_ENV_INVITE",SWIG_From_int(static_cast< int >(wxPAPER_ENV_INVITE)));
|
|
SWIG_Python_SetConstant(d, "PAPER_LETTER_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_LETTER_EXTRA)));
|
|
SWIG_Python_SetConstant(d, "PAPER_LEGAL_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_LEGAL_EXTRA)));
|
|
SWIG_Python_SetConstant(d, "PAPER_TABLOID_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_TABLOID_EXTRA)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A4_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_A4_EXTRA)));
|
|
SWIG_Python_SetConstant(d, "PAPER_LETTER_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_LETTER_TRANSVERSE)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A4_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_A4_TRANSVERSE)));
|
|
SWIG_Python_SetConstant(d, "PAPER_LETTER_EXTRA_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_LETTER_EXTRA_TRANSVERSE)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A_PLUS",SWIG_From_int(static_cast< int >(wxPAPER_A_PLUS)));
|
|
SWIG_Python_SetConstant(d, "PAPER_B_PLUS",SWIG_From_int(static_cast< int >(wxPAPER_B_PLUS)));
|
|
SWIG_Python_SetConstant(d, "PAPER_LETTER_PLUS",SWIG_From_int(static_cast< int >(wxPAPER_LETTER_PLUS)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A4_PLUS",SWIG_From_int(static_cast< int >(wxPAPER_A4_PLUS)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A5_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_A5_TRANSVERSE)));
|
|
SWIG_Python_SetConstant(d, "PAPER_B5_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_B5_TRANSVERSE)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A3_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_A3_EXTRA)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A5_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_A5_EXTRA)));
|
|
SWIG_Python_SetConstant(d, "PAPER_B5_EXTRA",SWIG_From_int(static_cast< int >(wxPAPER_B5_EXTRA)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A2",SWIG_From_int(static_cast< int >(wxPAPER_A2)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A3_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_A3_TRANSVERSE)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A3_EXTRA_TRANSVERSE",SWIG_From_int(static_cast< int >(wxPAPER_A3_EXTRA_TRANSVERSE)));
|
|
SWIG_Python_SetConstant(d, "PAPER_DBL_JAPANESE_POSTCARD",SWIG_From_int(static_cast< int >(wxPAPER_DBL_JAPANESE_POSTCARD)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A6",SWIG_From_int(static_cast< int >(wxPAPER_A6)));
|
|
SWIG_Python_SetConstant(d, "PAPER_JENV_KAKU2",SWIG_From_int(static_cast< int >(wxPAPER_JENV_KAKU2)));
|
|
SWIG_Python_SetConstant(d, "PAPER_JENV_KAKU3",SWIG_From_int(static_cast< int >(wxPAPER_JENV_KAKU3)));
|
|
SWIG_Python_SetConstant(d, "PAPER_JENV_CHOU3",SWIG_From_int(static_cast< int >(wxPAPER_JENV_CHOU3)));
|
|
SWIG_Python_SetConstant(d, "PAPER_JENV_CHOU4",SWIG_From_int(static_cast< int >(wxPAPER_JENV_CHOU4)));
|
|
SWIG_Python_SetConstant(d, "PAPER_LETTER_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_LETTER_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A3_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_A3_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A4_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_A4_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A5_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_A5_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_B4_JIS_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_B4_JIS_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_B5_JIS_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_B5_JIS_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_JAPANESE_POSTCARD_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_JAPANESE_POSTCARD_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_DBL_JAPANESE_POSTCARD_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_DBL_JAPANESE_POSTCARD_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_A6_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_A6_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_JENV_KAKU2_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_JENV_KAKU2_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_JENV_KAKU3_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_JENV_KAKU3_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_JENV_CHOU3_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_JENV_CHOU3_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_JENV_CHOU4_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_JENV_CHOU4_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_B6_JIS",SWIG_From_int(static_cast< int >(wxPAPER_B6_JIS)));
|
|
SWIG_Python_SetConstant(d, "PAPER_B6_JIS_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_B6_JIS_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_12X11",SWIG_From_int(static_cast< int >(wxPAPER_12X11)));
|
|
SWIG_Python_SetConstant(d, "PAPER_JENV_YOU4",SWIG_From_int(static_cast< int >(wxPAPER_JENV_YOU4)));
|
|
SWIG_Python_SetConstant(d, "PAPER_JENV_YOU4_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_JENV_YOU4_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_P16K",SWIG_From_int(static_cast< int >(wxPAPER_P16K)));
|
|
SWIG_Python_SetConstant(d, "PAPER_P32K",SWIG_From_int(static_cast< int >(wxPAPER_P32K)));
|
|
SWIG_Python_SetConstant(d, "PAPER_P32KBIG",SWIG_From_int(static_cast< int >(wxPAPER_P32KBIG)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_1",SWIG_From_int(static_cast< int >(wxPAPER_PENV_1)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_2",SWIG_From_int(static_cast< int >(wxPAPER_PENV_2)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_3",SWIG_From_int(static_cast< int >(wxPAPER_PENV_3)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_4",SWIG_From_int(static_cast< int >(wxPAPER_PENV_4)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_5",SWIG_From_int(static_cast< int >(wxPAPER_PENV_5)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_6",SWIG_From_int(static_cast< int >(wxPAPER_PENV_6)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_7",SWIG_From_int(static_cast< int >(wxPAPER_PENV_7)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_8",SWIG_From_int(static_cast< int >(wxPAPER_PENV_8)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_9",SWIG_From_int(static_cast< int >(wxPAPER_PENV_9)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_10",SWIG_From_int(static_cast< int >(wxPAPER_PENV_10)));
|
|
SWIG_Python_SetConstant(d, "PAPER_P16K_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_P16K_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_P32K_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_P32K_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_P32KBIG_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_P32KBIG_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_1_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_1_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_2_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_2_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_3_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_3_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_4_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_4_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_5_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_5_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_6_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_6_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_7_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_7_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_8_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_8_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_9_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_9_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "PAPER_PENV_10_ROTATED",SWIG_From_int(static_cast< int >(wxPAPER_PENV_10_ROTATED)));
|
|
SWIG_Python_SetConstant(d, "DUPLEX_SIMPLEX",SWIG_From_int(static_cast< int >(wxDUPLEX_SIMPLEX)));
|
|
SWIG_Python_SetConstant(d, "DUPLEX_HORIZONTAL",SWIG_From_int(static_cast< int >(wxDUPLEX_HORIZONTAL)));
|
|
SWIG_Python_SetConstant(d, "DUPLEX_VERTICAL",SWIG_From_int(static_cast< int >(wxDUPLEX_VERTICAL)));
|
|
SWIG_Python_SetConstant(d, "ITEM_SEPARATOR",SWIG_From_int(static_cast< int >(wxITEM_SEPARATOR)));
|
|
SWIG_Python_SetConstant(d, "ITEM_NORMAL",SWIG_From_int(static_cast< int >(wxITEM_NORMAL)));
|
|
SWIG_Python_SetConstant(d, "ITEM_CHECK",SWIG_From_int(static_cast< int >(wxITEM_CHECK)));
|
|
SWIG_Python_SetConstant(d, "ITEM_RADIO",SWIG_From_int(static_cast< int >(wxITEM_RADIO)));
|
|
SWIG_Python_SetConstant(d, "ITEM_MAX",SWIG_From_int(static_cast< int >(wxITEM_MAX)));
|
|
SWIG_Python_SetConstant(d, "HT_NOWHERE",SWIG_From_int(static_cast< int >(wxHT_NOWHERE)));
|
|
SWIG_Python_SetConstant(d, "HT_SCROLLBAR_FIRST",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_FIRST)));
|
|
SWIG_Python_SetConstant(d, "HT_SCROLLBAR_ARROW_LINE_1",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_ARROW_LINE_1)));
|
|
SWIG_Python_SetConstant(d, "HT_SCROLLBAR_ARROW_LINE_2",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_ARROW_LINE_2)));
|
|
SWIG_Python_SetConstant(d, "HT_SCROLLBAR_ARROW_PAGE_1",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_ARROW_PAGE_1)));
|
|
SWIG_Python_SetConstant(d, "HT_SCROLLBAR_ARROW_PAGE_2",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_ARROW_PAGE_2)));
|
|
SWIG_Python_SetConstant(d, "HT_SCROLLBAR_THUMB",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_THUMB)));
|
|
SWIG_Python_SetConstant(d, "HT_SCROLLBAR_BAR_1",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_BAR_1)));
|
|
SWIG_Python_SetConstant(d, "HT_SCROLLBAR_BAR_2",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_BAR_2)));
|
|
SWIG_Python_SetConstant(d, "HT_SCROLLBAR_LAST",SWIG_From_int(static_cast< int >(wxHT_SCROLLBAR_LAST)));
|
|
SWIG_Python_SetConstant(d, "HT_WINDOW_OUTSIDE",SWIG_From_int(static_cast< int >(wxHT_WINDOW_OUTSIDE)));
|
|
SWIG_Python_SetConstant(d, "HT_WINDOW_INSIDE",SWIG_From_int(static_cast< int >(wxHT_WINDOW_INSIDE)));
|
|
SWIG_Python_SetConstant(d, "HT_WINDOW_VERT_SCROLLBAR",SWIG_From_int(static_cast< int >(wxHT_WINDOW_VERT_SCROLLBAR)));
|
|
SWIG_Python_SetConstant(d, "HT_WINDOW_HORZ_SCROLLBAR",SWIG_From_int(static_cast< int >(wxHT_WINDOW_HORZ_SCROLLBAR)));
|
|
SWIG_Python_SetConstant(d, "HT_WINDOW_CORNER",SWIG_From_int(static_cast< int >(wxHT_WINDOW_CORNER)));
|
|
SWIG_Python_SetConstant(d, "HT_MAX",SWIG_From_int(static_cast< int >(wxHT_MAX)));
|
|
SWIG_Python_SetConstant(d, "MOD_NONE",SWIG_From_int(static_cast< int >(wxMOD_NONE)));
|
|
SWIG_Python_SetConstant(d, "MOD_ALT",SWIG_From_int(static_cast< int >(wxMOD_ALT)));
|
|
SWIG_Python_SetConstant(d, "MOD_CONTROL",SWIG_From_int(static_cast< int >(wxMOD_CONTROL)));
|
|
SWIG_Python_SetConstant(d, "MOD_ALTGR",SWIG_From_int(static_cast< int >(wxMOD_ALTGR)));
|
|
SWIG_Python_SetConstant(d, "MOD_SHIFT",SWIG_From_int(static_cast< int >(wxMOD_SHIFT)));
|
|
SWIG_Python_SetConstant(d, "MOD_META",SWIG_From_int(static_cast< int >(wxMOD_META)));
|
|
SWIG_Python_SetConstant(d, "MOD_WIN",SWIG_From_int(static_cast< int >(wxMOD_WIN)));
|
|
SWIG_Python_SetConstant(d, "MOD_CMD",SWIG_From_int(static_cast< int >(wxMOD_CMD)));
|
|
SWIG_Python_SetConstant(d, "MOD_ALL",SWIG_From_int(static_cast< int >(wxMOD_ALL)));
|
|
SWIG_Python_SetConstant(d, "UPDATE_UI_NONE",SWIG_From_int(static_cast< int >(wxUPDATE_UI_NONE)));
|
|
SWIG_Python_SetConstant(d, "UPDATE_UI_RECURSE",SWIG_From_int(static_cast< int >(wxUPDATE_UI_RECURSE)));
|
|
SWIG_Python_SetConstant(d, "UPDATE_UI_FROMIDLE",SWIG_From_int(static_cast< int >(wxUPDATE_UI_FROMIDLE)));
|
|
SWIG_Python_SetConstant(d, "Layout_Default",SWIG_From_int(static_cast< int >(wxLayout_Default)));
|
|
SWIG_Python_SetConstant(d, "Layout_LeftToRight",SWIG_From_int(static_cast< int >(wxLayout_LeftToRight)));
|
|
SWIG_Python_SetConstant(d, "Layout_RightToLeft",SWIG_From_int(static_cast< int >(wxLayout_RightToLeft)));
|
|
PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"EmptyString",EmptyString_get, EmptyString_set);
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_INVALID",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_INVALID)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_BMP",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_BMP)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_ICO",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_ICO)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_CUR",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_CUR)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_XBM",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_XBM)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_XBM_DATA",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_XBM_DATA)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_XPM",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_XPM)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_XPM_DATA",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_XPM_DATA)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_TIF",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_TIF)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_GIF",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_GIF)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_PNG",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_PNG)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_JPEG",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_JPEG)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_PNM",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_PNM)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_PCX",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_PCX)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_PICT",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_PICT)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_ICON",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_ICON)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_ANI",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_ANI)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_IFF",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_IFF)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_TGA",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_TGA)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_MACCURSOR",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_MACCURSOR)));
|
|
SWIG_Python_SetConstant(d, "BITMAP_TYPE_ANY",SWIG_From_int(static_cast< int >(wxBITMAP_TYPE_ANY)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_NONE",SWIG_From_int(static_cast< int >(wxCURSOR_NONE)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_ARROW",SWIG_From_int(static_cast< int >(wxCURSOR_ARROW)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_RIGHT_ARROW",SWIG_From_int(static_cast< int >(wxCURSOR_RIGHT_ARROW)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_BULLSEYE",SWIG_From_int(static_cast< int >(wxCURSOR_BULLSEYE)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_CHAR",SWIG_From_int(static_cast< int >(wxCURSOR_CHAR)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxCURSOR_CROSS)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_HAND",SWIG_From_int(static_cast< int >(wxCURSOR_HAND)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_IBEAM",SWIG_From_int(static_cast< int >(wxCURSOR_IBEAM)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_LEFT_BUTTON",SWIG_From_int(static_cast< int >(wxCURSOR_LEFT_BUTTON)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_MAGNIFIER",SWIG_From_int(static_cast< int >(wxCURSOR_MAGNIFIER)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_MIDDLE_BUTTON",SWIG_From_int(static_cast< int >(wxCURSOR_MIDDLE_BUTTON)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_NO_ENTRY",SWIG_From_int(static_cast< int >(wxCURSOR_NO_ENTRY)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_PAINT_BRUSH",SWIG_From_int(static_cast< int >(wxCURSOR_PAINT_BRUSH)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_PENCIL",SWIG_From_int(static_cast< int >(wxCURSOR_PENCIL)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_POINT_LEFT",SWIG_From_int(static_cast< int >(wxCURSOR_POINT_LEFT)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_POINT_RIGHT",SWIG_From_int(static_cast< int >(wxCURSOR_POINT_RIGHT)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_QUESTION_ARROW",SWIG_From_int(static_cast< int >(wxCURSOR_QUESTION_ARROW)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_RIGHT_BUTTON",SWIG_From_int(static_cast< int >(wxCURSOR_RIGHT_BUTTON)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_SIZENESW",SWIG_From_int(static_cast< int >(wxCURSOR_SIZENESW)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_SIZENS",SWIG_From_int(static_cast< int >(wxCURSOR_SIZENS)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_SIZENWSE",SWIG_From_int(static_cast< int >(wxCURSOR_SIZENWSE)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_SIZEWE",SWIG_From_int(static_cast< int >(wxCURSOR_SIZEWE)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_SIZING",SWIG_From_int(static_cast< int >(wxCURSOR_SIZING)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_SPRAYCAN",SWIG_From_int(static_cast< int >(wxCURSOR_SPRAYCAN)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_WAIT",SWIG_From_int(static_cast< int >(wxCURSOR_WAIT)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_WATCH",SWIG_From_int(static_cast< int >(wxCURSOR_WATCH)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_BLANK",SWIG_From_int(static_cast< int >(wxCURSOR_BLANK)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_DEFAULT",SWIG_From_int(static_cast< int >(wxCURSOR_DEFAULT)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_COPY_ARROW",SWIG_From_int(static_cast< int >(wxCURSOR_COPY_ARROW)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_ARROWWAIT",SWIG_From_int(static_cast< int >(wxCURSOR_ARROWWAIT)));
|
|
SWIG_Python_SetConstant(d, "CURSOR_MAX",SWIG_From_int(static_cast< int >(wxCURSOR_MAX)));
|
|
SWIG_Python_SetConstant(d, "Inside",SWIG_From_int(static_cast< int >(wxInside)));
|
|
SWIG_Python_SetConstant(d, "OutLeft",SWIG_From_int(static_cast< int >(wxOutLeft)));
|
|
SWIG_Python_SetConstant(d, "OutRight",SWIG_From_int(static_cast< int >(wxOutRight)));
|
|
SWIG_Python_SetConstant(d, "OutTop",SWIG_From_int(static_cast< int >(wxOutTop)));
|
|
SWIG_Python_SetConstant(d, "OutBottom",SWIG_From_int(static_cast< int >(wxOutBottom)));
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"DefaultPosition",DefaultPosition_get, DefaultPosition_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"DefaultSize",DefaultSize_get, DefaultSize_set);
|
|
SWIG_Python_SetConstant(d, "FromStart",SWIG_From_int(static_cast< int >(wxFromStart)));
|
|
SWIG_Python_SetConstant(d, "FromCurrent",SWIG_From_int(static_cast< int >(wxFromCurrent)));
|
|
SWIG_Python_SetConstant(d, "FromEnd",SWIG_From_int(static_cast< int >(wxFromEnd)));
|
|
|
|
wxPyPtrTypeMap_Add("wxInputStream", "wxPyInputStream");
|
|
|
|
|
|
wxPyPtrTypeMap_Add("wxFileSystemHandler", "wxPyFileSystemHandler");
|
|
|
|
SWIG_Python_SetConstant(d, "IMAGE_ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGE_ALPHA_TRANSPARENT)));
|
|
SWIG_Python_SetConstant(d, "IMAGE_ALPHA_THRESHOLD",SWIG_From_int(static_cast< int >(wxIMAGE_ALPHA_THRESHOLD)));
|
|
SWIG_Python_SetConstant(d, "IMAGE_ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxIMAGE_ALPHA_OPAQUE)));
|
|
SWIG_Python_SetConstant(d, "IMAGE_QUALITY_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_QUALITY_NORMAL)));
|
|
SWIG_Python_SetConstant(d, "IMAGE_QUALITY_HIGH",SWIG_From_int(static_cast< int >(wxIMAGE_QUALITY_HIGH)));
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"NullImage",NullImage_get, NullImage_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_FILENAME",IMAGE_OPTION_FILENAME_get, IMAGE_OPTION_FILENAME_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_BMP_FORMAT",IMAGE_OPTION_BMP_FORMAT_get, IMAGE_OPTION_BMP_FORMAT_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_CUR_HOTSPOT_X",IMAGE_OPTION_CUR_HOTSPOT_X_get, IMAGE_OPTION_CUR_HOTSPOT_X_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_CUR_HOTSPOT_Y",IMAGE_OPTION_CUR_HOTSPOT_Y_get, IMAGE_OPTION_CUR_HOTSPOT_Y_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_RESOLUTION",IMAGE_OPTION_RESOLUTION_get, IMAGE_OPTION_RESOLUTION_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_RESOLUTIONX",IMAGE_OPTION_RESOLUTIONX_get, IMAGE_OPTION_RESOLUTIONX_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_RESOLUTIONY",IMAGE_OPTION_RESOLUTIONY_get, IMAGE_OPTION_RESOLUTIONY_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_RESOLUTIONUNIT",IMAGE_OPTION_RESOLUTIONUNIT_get, IMAGE_OPTION_RESOLUTIONUNIT_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_QUALITY",IMAGE_OPTION_QUALITY_get, IMAGE_OPTION_QUALITY_set);
|
|
SWIG_Python_SetConstant(d, "IMAGE_RESOLUTION_INCHES",SWIG_From_int(static_cast< int >(wxIMAGE_RESOLUTION_INCHES)));
|
|
SWIG_Python_SetConstant(d, "IMAGE_RESOLUTION_CM",SWIG_From_int(static_cast< int >(wxIMAGE_RESOLUTION_CM)));
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_BITSPERSAMPLE",IMAGE_OPTION_BITSPERSAMPLE_get, IMAGE_OPTION_BITSPERSAMPLE_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_SAMPLESPERPIXEL",IMAGE_OPTION_SAMPLESPERPIXEL_get, IMAGE_OPTION_SAMPLESPERPIXEL_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_COMPRESSION",IMAGE_OPTION_COMPRESSION_get, IMAGE_OPTION_COMPRESSION_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_IMAGEDESCRIPTOR",IMAGE_OPTION_IMAGEDESCRIPTOR_get, IMAGE_OPTION_IMAGEDESCRIPTOR_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_PNG_FORMAT",IMAGE_OPTION_PNG_FORMAT_get, IMAGE_OPTION_PNG_FORMAT_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"IMAGE_OPTION_PNG_BITDEPTH",IMAGE_OPTION_PNG_BITDEPTH_get, IMAGE_OPTION_PNG_BITDEPTH_set);
|
|
SWIG_Python_SetConstant(d, "PNG_TYPE_COLOUR",SWIG_From_int(static_cast< int >(wxPNG_TYPE_COLOUR)));
|
|
SWIG_Python_SetConstant(d, "PNG_TYPE_GREY",SWIG_From_int(static_cast< int >(wxPNG_TYPE_GREY)));
|
|
SWIG_Python_SetConstant(d, "PNG_TYPE_GREY_RED",SWIG_From_int(static_cast< int >(wxPNG_TYPE_GREY_RED)));
|
|
SWIG_Python_SetConstant(d, "BMP_24BPP",SWIG_From_int(static_cast< int >(wxBMP_24BPP)));
|
|
SWIG_Python_SetConstant(d, "BMP_8BPP",SWIG_From_int(static_cast< int >(wxBMP_8BPP)));
|
|
SWIG_Python_SetConstant(d, "BMP_8BPP_GREY",SWIG_From_int(static_cast< int >(wxBMP_8BPP_GREY)));
|
|
SWIG_Python_SetConstant(d, "BMP_8BPP_GRAY",SWIG_From_int(static_cast< int >(wxBMP_8BPP_GRAY)));
|
|
SWIG_Python_SetConstant(d, "BMP_8BPP_RED",SWIG_From_int(static_cast< int >(wxBMP_8BPP_RED)));
|
|
SWIG_Python_SetConstant(d, "BMP_8BPP_PALETTE",SWIG_From_int(static_cast< int >(wxBMP_8BPP_PALETTE)));
|
|
SWIG_Python_SetConstant(d, "BMP_4BPP",SWIG_From_int(static_cast< int >(wxBMP_4BPP)));
|
|
SWIG_Python_SetConstant(d, "BMP_1BPP",SWIG_From_int(static_cast< int >(wxBMP_1BPP)));
|
|
SWIG_Python_SetConstant(d, "BMP_1BPP_BW",SWIG_From_int(static_cast< int >(wxBMP_1BPP_BW)));
|
|
SWIG_Python_SetConstant(d, "QUANTIZE_INCLUDE_WINDOWS_COLOURS",SWIG_From_int(static_cast< int >(wxQUANTIZE_INCLUDE_WINDOWS_COLOURS)));
|
|
SWIG_Python_SetConstant(d, "QUANTIZE_FILL_DESTINATION_IMAGE",SWIG_From_int(static_cast< int >(wxQUANTIZE_FILL_DESTINATION_IMAGE)));
|
|
SWIG_Python_SetConstant(d, "EVENT_PROPAGATE_NONE",SWIG_From_int(static_cast< int >(wxEVENT_PROPAGATE_NONE)));
|
|
SWIG_Python_SetConstant(d, "EVENT_PROPAGATE_MAX",SWIG_From_int(static_cast< int >(wxEVENT_PROPAGATE_MAX)));
|
|
PyDict_SetItemString(d, "wxEVT_NULL", PyInt_FromLong(wxEVT_NULL));
|
|
PyDict_SetItemString(d, "wxEVT_FIRST", PyInt_FromLong(wxEVT_FIRST));
|
|
PyDict_SetItemString(d, "wxEVT_USER_FIRST", PyInt_FromLong(wxEVT_USER_FIRST));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_BUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_BUTTON_CLICKED));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKBOX_CLICKED", PyInt_FromLong(wxEVT_COMMAND_CHECKBOX_CLICKED));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICE_SELECTED", PyInt_FromLong(wxEVT_COMMAND_CHOICE_SELECTED));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_SELECTED));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED", PyInt_FromLong(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED", PyInt_FromLong(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_MENU_SELECTED", PyInt_FromLong(wxEVT_COMMAND_MENU_SELECTED));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_CLICKED));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_SLIDER_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SLIDER_UPDATED));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBOX_SELECTED));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_RADIOBUTTON_SELECTED", PyInt_FromLong(wxEVT_COMMAND_RADIOBUTTON_SELECTED));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_SCROLLBAR_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SCROLLBAR_UPDATED));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_VLBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_VLBOX_SELECTED));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_COMBOBOX_SELECTED", PyInt_FromLong(wxEVT_COMMAND_COMBOBOX_SELECTED));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_RCLICKED", PyInt_FromLong(wxEVT_COMMAND_TOOL_RCLICKED));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_TOOL_ENTER", PyInt_FromLong(wxEVT_COMMAND_TOOL_ENTER));
|
|
PyDict_SetItemString(d, "wxEVT_LEFT_DOWN", PyInt_FromLong(wxEVT_LEFT_DOWN));
|
|
PyDict_SetItemString(d, "wxEVT_LEFT_UP", PyInt_FromLong(wxEVT_LEFT_UP));
|
|
PyDict_SetItemString(d, "wxEVT_MIDDLE_DOWN", PyInt_FromLong(wxEVT_MIDDLE_DOWN));
|
|
PyDict_SetItemString(d, "wxEVT_MIDDLE_UP", PyInt_FromLong(wxEVT_MIDDLE_UP));
|
|
PyDict_SetItemString(d, "wxEVT_RIGHT_DOWN", PyInt_FromLong(wxEVT_RIGHT_DOWN));
|
|
PyDict_SetItemString(d, "wxEVT_RIGHT_UP", PyInt_FromLong(wxEVT_RIGHT_UP));
|
|
PyDict_SetItemString(d, "wxEVT_MOTION", PyInt_FromLong(wxEVT_MOTION));
|
|
PyDict_SetItemString(d, "wxEVT_ENTER_WINDOW", PyInt_FromLong(wxEVT_ENTER_WINDOW));
|
|
PyDict_SetItemString(d, "wxEVT_LEAVE_WINDOW", PyInt_FromLong(wxEVT_LEAVE_WINDOW));
|
|
PyDict_SetItemString(d, "wxEVT_LEFT_DCLICK", PyInt_FromLong(wxEVT_LEFT_DCLICK));
|
|
PyDict_SetItemString(d, "wxEVT_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_MIDDLE_DCLICK));
|
|
PyDict_SetItemString(d, "wxEVT_RIGHT_DCLICK", PyInt_FromLong(wxEVT_RIGHT_DCLICK));
|
|
PyDict_SetItemString(d, "wxEVT_SET_FOCUS", PyInt_FromLong(wxEVT_SET_FOCUS));
|
|
PyDict_SetItemString(d, "wxEVT_KILL_FOCUS", PyInt_FromLong(wxEVT_KILL_FOCUS));
|
|
PyDict_SetItemString(d, "wxEVT_CHILD_FOCUS", PyInt_FromLong(wxEVT_CHILD_FOCUS));
|
|
PyDict_SetItemString(d, "wxEVT_MOUSEWHEEL", PyInt_FromLong(wxEVT_MOUSEWHEEL));
|
|
PyDict_SetItemString(d, "wxEVT_NC_LEFT_DOWN", PyInt_FromLong(wxEVT_NC_LEFT_DOWN));
|
|
PyDict_SetItemString(d, "wxEVT_NC_LEFT_UP", PyInt_FromLong(wxEVT_NC_LEFT_UP));
|
|
PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DOWN", PyInt_FromLong(wxEVT_NC_MIDDLE_DOWN));
|
|
PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_UP", PyInt_FromLong(wxEVT_NC_MIDDLE_UP));
|
|
PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DOWN", PyInt_FromLong(wxEVT_NC_RIGHT_DOWN));
|
|
PyDict_SetItemString(d, "wxEVT_NC_RIGHT_UP", PyInt_FromLong(wxEVT_NC_RIGHT_UP));
|
|
PyDict_SetItemString(d, "wxEVT_NC_MOTION", PyInt_FromLong(wxEVT_NC_MOTION));
|
|
PyDict_SetItemString(d, "wxEVT_NC_ENTER_WINDOW", PyInt_FromLong(wxEVT_NC_ENTER_WINDOW));
|
|
PyDict_SetItemString(d, "wxEVT_NC_LEAVE_WINDOW", PyInt_FromLong(wxEVT_NC_LEAVE_WINDOW));
|
|
PyDict_SetItemString(d, "wxEVT_NC_LEFT_DCLICK", PyInt_FromLong(wxEVT_NC_LEFT_DCLICK));
|
|
PyDict_SetItemString(d, "wxEVT_NC_MIDDLE_DCLICK", PyInt_FromLong(wxEVT_NC_MIDDLE_DCLICK));
|
|
PyDict_SetItemString(d, "wxEVT_NC_RIGHT_DCLICK", PyInt_FromLong(wxEVT_NC_RIGHT_DCLICK));
|
|
PyDict_SetItemString(d, "wxEVT_CHAR", PyInt_FromLong(wxEVT_CHAR));
|
|
PyDict_SetItemString(d, "wxEVT_CHAR_HOOK", PyInt_FromLong(wxEVT_CHAR_HOOK));
|
|
PyDict_SetItemString(d, "wxEVT_NAVIGATION_KEY", PyInt_FromLong(wxEVT_NAVIGATION_KEY));
|
|
PyDict_SetItemString(d, "wxEVT_KEY_DOWN", PyInt_FromLong(wxEVT_KEY_DOWN));
|
|
PyDict_SetItemString(d, "wxEVT_KEY_UP", PyInt_FromLong(wxEVT_KEY_UP));
|
|
PyDict_SetItemString(d, "wxEVT_HOTKEY", PyInt_FromLong(wxEVT_HOTKEY));
|
|
PyDict_SetItemString(d, "wxEVT_SET_CURSOR", PyInt_FromLong(wxEVT_SET_CURSOR));
|
|
PyDict_SetItemString(d, "wxEVT_SCROLL_TOP", PyInt_FromLong(wxEVT_SCROLL_TOP));
|
|
PyDict_SetItemString(d, "wxEVT_SCROLL_BOTTOM", PyInt_FromLong(wxEVT_SCROLL_BOTTOM));
|
|
PyDict_SetItemString(d, "wxEVT_SCROLL_LINEUP", PyInt_FromLong(wxEVT_SCROLL_LINEUP));
|
|
PyDict_SetItemString(d, "wxEVT_SCROLL_LINEDOWN", PyInt_FromLong(wxEVT_SCROLL_LINEDOWN));
|
|
PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEUP", PyInt_FromLong(wxEVT_SCROLL_PAGEUP));
|
|
PyDict_SetItemString(d, "wxEVT_SCROLL_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLL_PAGEDOWN));
|
|
PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLL_THUMBTRACK));
|
|
PyDict_SetItemString(d, "wxEVT_SCROLL_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLL_THUMBRELEASE));
|
|
PyDict_SetItemString(d, "wxEVT_SCROLL_CHANGED", PyInt_FromLong(wxEVT_SCROLL_CHANGED));
|
|
PyDict_SetItemString(d, "wxEVT_SCROLLWIN_TOP", PyInt_FromLong(wxEVT_SCROLLWIN_TOP));
|
|
PyDict_SetItemString(d, "wxEVT_SCROLLWIN_BOTTOM", PyInt_FromLong(wxEVT_SCROLLWIN_BOTTOM));
|
|
PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEUP", PyInt_FromLong(wxEVT_SCROLLWIN_LINEUP));
|
|
PyDict_SetItemString(d, "wxEVT_SCROLLWIN_LINEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_LINEDOWN));
|
|
PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEUP", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEUP));
|
|
PyDict_SetItemString(d, "wxEVT_SCROLLWIN_PAGEDOWN", PyInt_FromLong(wxEVT_SCROLLWIN_PAGEDOWN));
|
|
PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBTRACK", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBTRACK));
|
|
PyDict_SetItemString(d, "wxEVT_SCROLLWIN_THUMBRELEASE", PyInt_FromLong(wxEVT_SCROLLWIN_THUMBRELEASE));
|
|
PyDict_SetItemString(d, "wxEVT_SIZE", PyInt_FromLong(wxEVT_SIZE));
|
|
PyDict_SetItemString(d, "wxEVT_MOVE", PyInt_FromLong(wxEVT_MOVE));
|
|
PyDict_SetItemString(d, "wxEVT_CLOSE_WINDOW", PyInt_FromLong(wxEVT_CLOSE_WINDOW));
|
|
PyDict_SetItemString(d, "wxEVT_END_SESSION", PyInt_FromLong(wxEVT_END_SESSION));
|
|
PyDict_SetItemString(d, "wxEVT_QUERY_END_SESSION", PyInt_FromLong(wxEVT_QUERY_END_SESSION));
|
|
PyDict_SetItemString(d, "wxEVT_ACTIVATE_APP", PyInt_FromLong(wxEVT_ACTIVATE_APP));
|
|
PyDict_SetItemString(d, "wxEVT_ACTIVATE", PyInt_FromLong(wxEVT_ACTIVATE));
|
|
PyDict_SetItemString(d, "wxEVT_CREATE", PyInt_FromLong(wxEVT_CREATE));
|
|
PyDict_SetItemString(d, "wxEVT_DESTROY", PyInt_FromLong(wxEVT_DESTROY));
|
|
PyDict_SetItemString(d, "wxEVT_SHOW", PyInt_FromLong(wxEVT_SHOW));
|
|
PyDict_SetItemString(d, "wxEVT_ICONIZE", PyInt_FromLong(wxEVT_ICONIZE));
|
|
PyDict_SetItemString(d, "wxEVT_MAXIMIZE", PyInt_FromLong(wxEVT_MAXIMIZE));
|
|
PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_CHANGED", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_CHANGED));
|
|
PyDict_SetItemString(d, "wxEVT_MOUSE_CAPTURE_LOST", PyInt_FromLong(wxEVT_MOUSE_CAPTURE_LOST));
|
|
PyDict_SetItemString(d, "wxEVT_PAINT", PyInt_FromLong(wxEVT_PAINT));
|
|
PyDict_SetItemString(d, "wxEVT_ERASE_BACKGROUND", PyInt_FromLong(wxEVT_ERASE_BACKGROUND));
|
|
PyDict_SetItemString(d, "wxEVT_NC_PAINT", PyInt_FromLong(wxEVT_NC_PAINT));
|
|
PyDict_SetItemString(d, "wxEVT_PAINT_ICON", PyInt_FromLong(wxEVT_PAINT_ICON));
|
|
PyDict_SetItemString(d, "wxEVT_MENU_OPEN", PyInt_FromLong(wxEVT_MENU_OPEN));
|
|
PyDict_SetItemString(d, "wxEVT_MENU_CLOSE", PyInt_FromLong(wxEVT_MENU_CLOSE));
|
|
PyDict_SetItemString(d, "wxEVT_MENU_HIGHLIGHT", PyInt_FromLong(wxEVT_MENU_HIGHLIGHT));
|
|
PyDict_SetItemString(d, "wxEVT_CONTEXT_MENU", PyInt_FromLong(wxEVT_CONTEXT_MENU));
|
|
PyDict_SetItemString(d, "wxEVT_SYS_COLOUR_CHANGED", PyInt_FromLong(wxEVT_SYS_COLOUR_CHANGED));
|
|
PyDict_SetItemString(d, "wxEVT_DISPLAY_CHANGED", PyInt_FromLong(wxEVT_DISPLAY_CHANGED));
|
|
PyDict_SetItemString(d, "wxEVT_SETTING_CHANGED", PyInt_FromLong(wxEVT_SETTING_CHANGED));
|
|
PyDict_SetItemString(d, "wxEVT_QUERY_NEW_PALETTE", PyInt_FromLong(wxEVT_QUERY_NEW_PALETTE));
|
|
PyDict_SetItemString(d, "wxEVT_PALETTE_CHANGED", PyInt_FromLong(wxEVT_PALETTE_CHANGED));
|
|
PyDict_SetItemString(d, "wxEVT_DROP_FILES", PyInt_FromLong(wxEVT_DROP_FILES));
|
|
PyDict_SetItemString(d, "wxEVT_DRAW_ITEM", PyInt_FromLong(wxEVT_DRAW_ITEM));
|
|
PyDict_SetItemString(d, "wxEVT_MEASURE_ITEM", PyInt_FromLong(wxEVT_MEASURE_ITEM));
|
|
PyDict_SetItemString(d, "wxEVT_COMPARE_ITEM", PyInt_FromLong(wxEVT_COMPARE_ITEM));
|
|
PyDict_SetItemString(d, "wxEVT_INIT_DIALOG", PyInt_FromLong(wxEVT_INIT_DIALOG));
|
|
PyDict_SetItemString(d, "wxEVT_IDLE", PyInt_FromLong(wxEVT_IDLE));
|
|
PyDict_SetItemString(d, "wxEVT_UPDATE_UI", PyInt_FromLong(wxEVT_UPDATE_UI));
|
|
PyDict_SetItemString(d, "wxEVT_SIZING", PyInt_FromLong(wxEVT_SIZING));
|
|
PyDict_SetItemString(d, "wxEVT_MOVING", PyInt_FromLong(wxEVT_MOVING));
|
|
PyDict_SetItemString(d, "wxEVT_HIBERNATE", PyInt_FromLong(wxEVT_HIBERNATE));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_COPY", PyInt_FromLong(wxEVT_COMMAND_TEXT_COPY));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_CUT", PyInt_FromLong(wxEVT_COMMAND_TEXT_CUT));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_PASTE", PyInt_FromLong(wxEVT_COMMAND_TEXT_PASTE));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_CLICK));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_LEFT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_LEFT_DCLICK));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_CLICK));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_RIGHT_DCLICK", PyInt_FromLong(wxEVT_COMMAND_RIGHT_DCLICK));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_SET_FOCUS", PyInt_FromLong(wxEVT_COMMAND_SET_FOCUS));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_KILL_FOCUS", PyInt_FromLong(wxEVT_COMMAND_KILL_FOCUS));
|
|
PyDict_SetItemString(d, "wxEVT_COMMAND_ENTER", PyInt_FromLong(wxEVT_COMMAND_ENTER));
|
|
SWIG_Python_SetConstant(d, "MOUSE_BTN_ANY",SWIG_From_int(static_cast< int >(wxMOUSE_BTN_ANY)));
|
|
SWIG_Python_SetConstant(d, "MOUSE_BTN_NONE",SWIG_From_int(static_cast< int >(wxMOUSE_BTN_NONE)));
|
|
SWIG_Python_SetConstant(d, "MOUSE_BTN_LEFT",SWIG_From_int(static_cast< int >(wxMOUSE_BTN_LEFT)));
|
|
SWIG_Python_SetConstant(d, "MOUSE_BTN_MIDDLE",SWIG_From_int(static_cast< int >(wxMOUSE_BTN_MIDDLE)));
|
|
SWIG_Python_SetConstant(d, "MOUSE_BTN_RIGHT",SWIG_From_int(static_cast< int >(wxMOUSE_BTN_RIGHT)));
|
|
SWIG_Python_SetConstant(d, "UPDATE_UI_PROCESS_ALL",SWIG_From_int(static_cast< int >(wxUPDATE_UI_PROCESS_ALL)));
|
|
SWIG_Python_SetConstant(d, "UPDATE_UI_PROCESS_SPECIFIED",SWIG_From_int(static_cast< int >(wxUPDATE_UI_PROCESS_SPECIFIED)));
|
|
SWIG_Python_SetConstant(d, "NavigationKeyEvent_IsBackward",SWIG_From_int(static_cast< int >(wxNavigationKeyEvent::IsBackward)));
|
|
SWIG_Python_SetConstant(d, "NavigationKeyEvent_IsForward",SWIG_From_int(static_cast< int >(wxNavigationKeyEvent::IsForward)));
|
|
SWIG_Python_SetConstant(d, "NavigationKeyEvent_WinChange",SWIG_From_int(static_cast< int >(wxNavigationKeyEvent::WinChange)));
|
|
SWIG_Python_SetConstant(d, "NavigationKeyEvent_FromTab",SWIG_From_int(static_cast< int >(wxNavigationKeyEvent::FromTab)));
|
|
SWIG_Python_SetConstant(d, "IDLE_PROCESS_ALL",SWIG_From_int(static_cast< int >(wxIDLE_PROCESS_ALL)));
|
|
SWIG_Python_SetConstant(d, "IDLE_PROCESS_SPECIFIED",SWIG_From_int(static_cast< int >(wxIDLE_PROCESS_SPECIFIED)));
|
|
PyDict_SetItemString(d, "wxEVT_DATE_CHANGED", PyInt_FromLong(wxEVT_DATE_CHANGED));
|
|
SWIG_Python_SetConstant(d, "PYAPP_ASSERT_SUPPRESS",SWIG_From_int(static_cast< int >(wxPYAPP_ASSERT_SUPPRESS)));
|
|
SWIG_Python_SetConstant(d, "PYAPP_ASSERT_EXCEPTION",SWIG_From_int(static_cast< int >(wxPYAPP_ASSERT_EXCEPTION)));
|
|
SWIG_Python_SetConstant(d, "PYAPP_ASSERT_DIALOG",SWIG_From_int(static_cast< int >(wxPYAPP_ASSERT_DIALOG)));
|
|
SWIG_Python_SetConstant(d, "PYAPP_ASSERT_LOG",SWIG_From_int(static_cast< int >(wxPYAPP_ASSERT_LOG)));
|
|
SWIG_Python_SetConstant(d, "PRINT_WINDOWS",SWIG_From_int(static_cast< int >(wxPRINT_WINDOWS)));
|
|
SWIG_Python_SetConstant(d, "PRINT_POSTSCRIPT",SWIG_From_int(static_cast< int >(wxPRINT_POSTSCRIPT)));
|
|
SWIG_Python_SetConstant(d, "ACCEL_ALT",SWIG_From_int(static_cast< int >(wxACCEL_ALT)));
|
|
SWIG_Python_SetConstant(d, "ACCEL_CTRL",SWIG_From_int(static_cast< int >(wxACCEL_CTRL)));
|
|
SWIG_Python_SetConstant(d, "ACCEL_SHIFT",SWIG_From_int(static_cast< int >(wxACCEL_SHIFT)));
|
|
SWIG_Python_SetConstant(d, "ACCEL_NORMAL",SWIG_From_int(static_cast< int >(wxACCEL_NORMAL)));
|
|
SWIG_Python_SetConstant(d, "ACCEL_CMD",SWIG_From_int(static_cast< int >(wxACCEL_CMD)));
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"NullAcceleratorTable",NullAcceleratorTable_get, NullAcceleratorTable_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"PanelNameStr",PanelNameStr_get, PanelNameStr_set);
|
|
SWIG_Python_SetConstant(d, "WINDOW_VARIANT_NORMAL",SWIG_From_int(static_cast< int >(wxWINDOW_VARIANT_NORMAL)));
|
|
SWIG_Python_SetConstant(d, "WINDOW_VARIANT_SMALL",SWIG_From_int(static_cast< int >(wxWINDOW_VARIANT_SMALL)));
|
|
SWIG_Python_SetConstant(d, "WINDOW_VARIANT_MINI",SWIG_From_int(static_cast< int >(wxWINDOW_VARIANT_MINI)));
|
|
SWIG_Python_SetConstant(d, "WINDOW_VARIANT_LARGE",SWIG_From_int(static_cast< int >(wxWINDOW_VARIANT_LARGE)));
|
|
SWIG_Python_SetConstant(d, "WINDOW_VARIANT_MAX",SWIG_From_int(static_cast< int >(wxWINDOW_VARIANT_MAX)));
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"DefaultValidator",DefaultValidator_get, DefaultValidator_set);
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"ControlNameStr",ControlNameStr_get, ControlNameStr_set);
|
|
SWIG_Python_SetConstant(d, "FLEX_GROWMODE_NONE",SWIG_From_int(static_cast< int >(wxFLEX_GROWMODE_NONE)));
|
|
SWIG_Python_SetConstant(d, "FLEX_GROWMODE_SPECIFIED",SWIG_From_int(static_cast< int >(wxFLEX_GROWMODE_SPECIFIED)));
|
|
SWIG_Python_SetConstant(d, "FLEX_GROWMODE_ALL",SWIG_From_int(static_cast< int >(wxFLEX_GROWMODE_ALL)));
|
|
SWIG_addvarlink(SWIG_globals(),(char*)"DefaultSpan",DefaultSpan_get, DefaultSpan_set);
|
|
SWIG_Python_SetConstant(d, "Left",SWIG_From_int(static_cast< int >(wxLeft)));
|
|
SWIG_Python_SetConstant(d, "Top",SWIG_From_int(static_cast< int >(wxTop)));
|
|
SWIG_Python_SetConstant(d, "Right",SWIG_From_int(static_cast< int >(wxRight)));
|
|
SWIG_Python_SetConstant(d, "Bottom",SWIG_From_int(static_cast< int >(wxBottom)));
|
|
SWIG_Python_SetConstant(d, "Width",SWIG_From_int(static_cast< int >(wxWidth)));
|
|
SWIG_Python_SetConstant(d, "Height",SWIG_From_int(static_cast< int >(wxHeight)));
|
|
SWIG_Python_SetConstant(d, "Centre",SWIG_From_int(static_cast< int >(wxCentre)));
|
|
SWIG_Python_SetConstant(d, "Center",SWIG_From_int(static_cast< int >(wxCenter)));
|
|
SWIG_Python_SetConstant(d, "CentreX",SWIG_From_int(static_cast< int >(wxCentreX)));
|
|
SWIG_Python_SetConstant(d, "CentreY",SWIG_From_int(static_cast< int >(wxCentreY)));
|
|
SWIG_Python_SetConstant(d, "Unconstrained",SWIG_From_int(static_cast< int >(wxUnconstrained)));
|
|
SWIG_Python_SetConstant(d, "AsIs",SWIG_From_int(static_cast< int >(wxAsIs)));
|
|
SWIG_Python_SetConstant(d, "PercentOf",SWIG_From_int(static_cast< int >(wxPercentOf)));
|
|
SWIG_Python_SetConstant(d, "Above",SWIG_From_int(static_cast< int >(wxAbove)));
|
|
SWIG_Python_SetConstant(d, "Below",SWIG_From_int(static_cast< int >(wxBelow)));
|
|
SWIG_Python_SetConstant(d, "LeftOf",SWIG_From_int(static_cast< int >(wxLeftOf)));
|
|
SWIG_Python_SetConstant(d, "RightOf",SWIG_From_int(static_cast< int >(wxRightOf)));
|
|
SWIG_Python_SetConstant(d, "SameAs",SWIG_From_int(static_cast< int >(wxSameAs)));
|
|
SWIG_Python_SetConstant(d, "Absolute",SWIG_From_int(static_cast< int >(wxAbsolute)));
|
|
|
|
// Initialize threading, some globals and such
|
|
__wxPyPreStart(d);
|
|
|
|
|
|
// Although these are defined in __version__ they need to be here too so
|
|
// that an assert can be done to ensure that the wxPython and the wxWindows
|
|
// versions match.
|
|
PyDict_SetItemString(d,"MAJOR_VERSION", PyInt_FromLong((long)wxMAJOR_VERSION ));
|
|
PyDict_SetItemString(d,"MINOR_VERSION", PyInt_FromLong((long)wxMINOR_VERSION ));
|
|
PyDict_SetItemString(d,"RELEASE_VERSION", PyInt_FromLong((long)wxRELEASE_NUMBER ));
|
|
|
|
}
|
|
|