}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxColour & _result_ref = wxColourData_GetColour(_arg0);
- _result = (wxColour *) &_result_ref;
+ _result = new wxColour (wxColourData_GetColour(_arg0));
wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxColour & _result_ref = wxFontData_GetColour(_arg0);
- _result = (wxColour *) &_result_ref;
+ _result = new wxColour (wxFontData_GetColour(_arg0));
wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
return val
def GetColour(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxColourData_GetColour,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val)
+ if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetCustomColour(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxColourData_GetCustomColour,(self,) + _args, _kwargs)
return val
def GetColour(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_GetColour,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val)
+ if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetChosenFont(self, *_args, **_kwargs):
val = apply(cmndlgsc.wxFontData_GetChosenFont,(self,) + _args, _kwargs)
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxColour & _result_ref = wxPen_GetColour(_arg0);
- _result = (wxColour *) &_result_ref;
+ _result = new wxColour (wxPen_GetColour(_arg0));
wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxColour & _result_ref = wxBrush_GetColour(_arg0);
- _result = (wxColour *) &_result_ref;
+ _result = new wxColour (wxBrush_GetColour(_arg0));
wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxColour & _result_ref = wxDC_GetTextBackground(_arg0);
- _result = (wxColour *) &_result_ref;
+ _result = new wxColour (wxDC_GetTextBackground(_arg0));
wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
}
{
wxPy_BEGIN_ALLOW_THREADS;
- wxColour & _result_ref = wxDC_GetTextForeground(_arg0);
- _result = (wxColour *) &_result_ref;
+ _result = new wxColour (wxDC_GetTextForeground(_arg0));
wxPy_END_ALLOW_THREADS;
if (PyErr_Occurred()) return NULL;
-} if (_result) {
- SWIG_MakePtr(_ptemp, (char *) _result,"_wxColour_p");
- _resultobj = Py_BuildValue("s",_ptemp);
- } else {
- Py_INCREF(Py_None);
- _resultobj = Py_None;
- }
+} SWIG_MakePtr(_ptemp, (void *) _result,"_wxColour_p");
+ _resultobj = Py_BuildValue("s",_ptemp);
return _resultobj;
}
return val
def GetColour(self, *_args, **_kwargs):
val = apply(gdic.wxPen_GetColour,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val)
+ if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetJoin(self, *_args, **_kwargs):
val = apply(gdic.wxPen_GetJoin,(self,) + _args, _kwargs)
gdic.delete_wxBrush(self)
def GetColour(self, *_args, **_kwargs):
val = apply(gdic.wxBrush_GetColour,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val)
+ if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetStipple(self, *_args, **_kwargs):
val = apply(gdic.wxBrush_GetStipple,(self,) + _args, _kwargs)
return val
def GetTextBackground(self, *_args, **_kwargs):
val = apply(gdic.wxDC_GetTextBackground,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val)
+ if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetTextExtent(self, *_args, **_kwargs):
val = apply(gdic.wxDC_GetTextExtent,(self,) + _args, _kwargs)
return val
def GetTextForeground(self, *_args, **_kwargs):
val = apply(gdic.wxDC_GetTextForeground,(self,) + _args, _kwargs)
- if val: val = wxColourPtr(val)
+ if val: val = wxColourPtr(val) ; val.thisown = 1
return val
def GetUserScale(self, *_args, **_kwargs):
val = apply(gdic.wxDC_GetUserScale,(self,) + _args, _kwargs)