Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWade Brainerd <wadetb@gmail.com>2008-11-30 17:17:14 (GMT)
committer Wade Brainerd <wadetb@gmail.com>2008-11-30 17:17:14 (GMT)
commite21f28bf444dca0fc097802e97bd7b9fa36f9f78 (patch)
treee03a43a9ba3cc4868a3922c2aeba95e713de8ffb /src
parent879eaafaba8b6d1ae2d618022079ce86ff8bf526 (diff)
Keyboard as a brush palette. Save brushes using Ctrl+AnyKey, restore using AnyKey.
Diffstat (limited to 'src')
-rw-r--r--src/colorsc_wrap.cxx55
1 files changed, 54 insertions, 1 deletions
diff --git a/src/colorsc_wrap.cxx b/src/colorsc_wrap.cxx
index 96fd8d1..a0f7a72 100644
--- a/src/colorsc_wrap.cxx
+++ b/src/colorsc_wrap.cxx
@@ -6991,7 +6991,7 @@ fail:
}
-SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+SWIGINTERN PyObject *_wrap_new_Brush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Brush *result = 0 ;
@@ -7004,6 +7004,59 @@ fail:
}
+SWIGINTERN PyObject *_wrap_new_Brush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
+ PyObject *resultobj = 0;
+ Brush *arg1 = 0 ;
+ Brush *result = 0 ;
+ void *argp1 = 0 ;
+ int res1 = 0 ;
+ PyObject * obj0 = 0 ;
+
+ if (!PyArg_ParseTuple(args,(char *)"O:new_Brush",&obj0)) SWIG_fail;
+ res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_Brush, 0 | 0);
+ if (!SWIG_IsOK(res1)) {
+ SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Brush" "', argument " "1"" of type '" "Brush const &""'");
+ }
+ if (!argp1) {
+ SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Brush" "', argument " "1"" of type '" "Brush const &""'");
+ }
+ arg1 = reinterpret_cast< Brush * >(argp1);
+ result = (Brush *)new Brush((Brush const &)*arg1);
+ resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Brush, SWIG_POINTER_NEW | 0 );
+ return resultobj;
+fail:
+ return NULL;
+}
+
+
+SWIGINTERN PyObject *_wrap_new_Brush(PyObject *self, PyObject *args) {
+ int argc;
+ PyObject *argv[2];
+ int ii;
+
+ if (!PyTuple_Check(args)) SWIG_fail;
+ argc = (int)PyObject_Length(args);
+ for (ii = 0; (ii < argc) && (ii < 1); ii++) {
+ argv[ii] = PyTuple_GET_ITEM(args,ii);
+ }
+ if (argc == 0) {
+ return _wrap_new_Brush__SWIG_0(self, args);
+ }
+ if (argc == 1) {
+ int _v;
+ int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_Brush, 0);
+ _v = SWIG_CheckState(res);
+ if (_v) {
+ return _wrap_new_Brush__SWIG_1(self, args);
+ }
+ }
+
+fail:
+ SWIG_SetErrorMsg(PyExc_NotImplementedError,"Wrong number of arguments for overloaded function 'new_Brush'.\n Possible C/C++ prototypes are:\n"" Brush()\n"" Brush(Brush const &)\n");
+ return NULL;
+}
+
+
SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
Brush *arg1 = (Brush *) 0 ;