git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44003
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
12 files changed:
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""
- __init__(self, Menu parentMenu=None, int id=ID_ANY, String text=EmptyString,
+ __init__(self, Menu parentMenu=None, int id=ID_SEPARATOR, String text=EmptyString,
String help=EmptyString, int kind=ITEM_NORMAL,
Menu subMenu=None) -> MenuItem
"""
_core_.MenuItem_swiginit(self,_core_.new_MenuItem(*args, **kwargs))
__swig_destroy__ = _core_.delete_MenuItem
__del__ = lambda self : None;
String help=EmptyString, int kind=ITEM_NORMAL,
Menu subMenu=None) -> MenuItem
"""
_core_.MenuItem_swiginit(self,_core_.new_MenuItem(*args, **kwargs))
__swig_destroy__ = _core_.delete_MenuItem
__del__ = lambda self : None;
+ def Destroy(self): pass
def GetMenu(*args, **kwargs):
"""GetMenu(self) -> Menu"""
return _core_.MenuItem_GetMenu(*args, **kwargs)
def GetMenu(*args, **kwargs):
"""GetMenu(self) -> Menu"""
return _core_.MenuItem_GetMenu(*args, **kwargs)
SWIGINTERN PyObject *_wrap_new_MenuItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxMenu *arg1 = (wxMenu *) NULL ;
SWIGINTERN PyObject *_wrap_new_MenuItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxMenu *arg1 = (wxMenu *) NULL ;
- int arg2 = (int) wxID_ANY ;
+ int arg2 = (int) wxID_SEPARATOR ;
wxString const &arg3_defvalue = wxPyEmptyString ;
wxString *arg3 = (wxString *) &arg3_defvalue ;
wxString const &arg4_defvalue = wxPyEmptyString ;
wxString const &arg3_defvalue = wxPyEmptyString ;
wxString *arg3 = (wxString *) &arg3_defvalue ;
wxString const &arg4_defvalue = wxPyEmptyString ;
def AddArc(*args):
"""
AddArc(self, Double x, Double y, Double r, Double startAngle, Double endAngle,
def AddArc(*args):
"""
AddArc(self, Double x, Double y, Double r, Double startAngle, Double endAngle,
AddArc(self, Point2D c, Double r, Double startAngle, Double endAngle,
AddArc(self, Point2D c, Double r, Double startAngle, Double endAngle,
Adds an arc of a circle centering at (x,y) with radius (r) from
startAngle to endAngle
Adds an arc of a circle centering at (x,y) with radius (r) from
startAngle to endAngle
wxDouble arg4 ;
wxDouble arg5 ;
wxDouble arg6 ;
wxDouble arg4 ;
wxDouble arg5 ;
wxDouble arg6 ;
+ bool arg7 = (bool) true ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
bool val7 ;
int ecode7 = 0 ;
bool val7 ;
int ecode7 = 0 ;
- if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
+ if ((nobjs < 6) || (nobjs > 7)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
}
arg6 = static_cast< wxDouble >(val6);
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
}
arg6 = static_cast< wxDouble >(val6);
- ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
- }
- arg7 = static_cast< bool >(val7);
+ if (swig_obj[6]) {
+ ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
+ if (!SWIG_IsOK(ecode7)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
+ }
+ arg7 = static_cast< bool >(val7);
+ }
{
(arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
if (PyErr_Occurred()) SWIG_fail;
{
(arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
if (PyErr_Occurred()) SWIG_fail;
wxDouble arg3 ;
wxDouble arg4 ;
wxDouble arg5 ;
wxDouble arg3 ;
wxDouble arg4 ;
wxDouble arg5 ;
+ bool arg6 = (bool) true ;
void *argp1 = 0 ;
int res1 = 0 ;
wxPoint2D temp2 ;
void *argp1 = 0 ;
int res1 = 0 ;
wxPoint2D temp2 ;
bool val6 ;
int ecode6 = 0 ;
bool val6 ;
int ecode6 = 0 ;
- if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
+ if ((nobjs < 5) || (nobjs > 6)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
}
arg5 = static_cast< wxDouble >(val5);
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
}
arg5 = static_cast< wxDouble >(val5);
- ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
- }
- arg6 = static_cast< bool >(val6);
+ if (swig_obj[5]) {
+ ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
+ if (!SWIG_IsOK(ecode6)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
+ }
+ arg6 = static_cast< bool >(val6);
+ }
{
(arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
if (PyErr_Occurred()) SWIG_fail;
{
(arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
if (PyErr_Occurred()) SWIG_fail;
if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
--argc;
if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
--argc;
+ if ((argc >= 5) && (argc <= 6)) {
+ int _v = 0;
+ {
+ {
+ _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
+ }
+ }
+ if (!_v) goto check_1;
+ if (argc > 5) {
+ {
+ {
+ int res = SWIG_AsVal_bool(argv[5], NULL);
+ _v = SWIG_CheckState(res);
+ }
+ }
+ if (!_v) goto check_1;
+ }
return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
}
return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
}
+check_1:
+
+ if ((argc >= 6) && (argc <= 7)) {
return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
}
return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
}
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""
- __init__(self, Menu parentMenu=None, int id=ID_ANY, String text=EmptyString,
+ __init__(self, Menu parentMenu=None, int id=ID_SEPARATOR, String text=EmptyString,
String help=EmptyString, int kind=ITEM_NORMAL,
Menu subMenu=None) -> MenuItem
"""
_core_.MenuItem_swiginit(self,_core_.new_MenuItem(*args, **kwargs))
__swig_destroy__ = _core_.delete_MenuItem
__del__ = lambda self : None;
String help=EmptyString, int kind=ITEM_NORMAL,
Menu subMenu=None) -> MenuItem
"""
_core_.MenuItem_swiginit(self,_core_.new_MenuItem(*args, **kwargs))
__swig_destroy__ = _core_.delete_MenuItem
__del__ = lambda self : None;
+ def Destroy(self): pass
def GetMenu(*args, **kwargs):
"""GetMenu(self) -> Menu"""
return _core_.MenuItem_GetMenu(*args, **kwargs)
def GetMenu(*args, **kwargs):
"""GetMenu(self) -> Menu"""
return _core_.MenuItem_GetMenu(*args, **kwargs)
SWIGINTERN PyObject *_wrap_new_MenuItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxMenu *arg1 = (wxMenu *) NULL ;
SWIGINTERN PyObject *_wrap_new_MenuItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxMenu *arg1 = (wxMenu *) NULL ;
- int arg2 = (int) wxID_ANY ;
+ int arg2 = (int) wxID_SEPARATOR ;
wxString const &arg3_defvalue = wxPyEmptyString ;
wxString *arg3 = (wxString *) &arg3_defvalue ;
wxString const &arg4_defvalue = wxPyEmptyString ;
wxString const &arg3_defvalue = wxPyEmptyString ;
wxString *arg3 = (wxString *) &arg3_defvalue ;
wxString const &arg4_defvalue = wxPyEmptyString ;
"""
IsEqual(self, GraphicsMatrix t) -> bool
"""
IsEqual(self, GraphicsMatrix t) -> bool
- Returns ``True`` if the elements of the transformation matrix are equal
+ Returns ``True`` if the elements of the transformation matrix are
+ equal
"""
return _gdi_.GraphicsMatrix_IsEqual(*args, **kwargs)
"""
return _gdi_.GraphicsMatrix_IsEqual(*args, **kwargs)
def AddArc(*args):
"""
AddArc(self, Double x, Double y, Double r, Double startAngle, Double endAngle,
def AddArc(*args):
"""
AddArc(self, Double x, Double y, Double r, Double startAngle, Double endAngle,
AddArc(self, Point2D c, Double r, Double startAngle, Double endAngle,
AddArc(self, Point2D c, Double r, Double startAngle, Double endAngle,
Adds an arc of a circle centering at (x,y) with radius (r) from
startAngle to endAngle
Adds an arc of a circle centering at (x,y) with radius (r) from
startAngle to endAngle
"""
AddArcToPoint(self, Double x1, Double y1, Double x2, Double y2, Double r)
"""
AddArcToPoint(self, Double x1, Double y1, Double x2, Double y2, Double r)
- Appends an arc to two tangents connecting (current) to (x1,y1) and (x1,y1)
- to (x2,y2), also a straight line from (current) to (x1,y1)
+ Appends an arc to two tangents connecting (current) to (x1,y1) and
+ (x1,y1) to (x2,y2), also a straight line from (current) to (x1,y1)
"""
return _gdi_.GraphicsPath_AddArcToPoint(*args, **kwargs)
"""
return _gdi_.GraphicsPath_AddArcToPoint(*args, **kwargs)
"""
GetBox(self) -> Rect2D
"""
GetBox(self) -> Rect2D
- Gets the bounding box enclosing all points (possibly including control points)
+ Gets the bounding box enclosing all points (possibly including control
+ points)
"""
return _gdi_.GraphicsPath_GetBox(*args, **kwargs)
"""
return _gdi_.GraphicsPath_GetBox(*args, **kwargs)
"""
CreateFromNative(void context) -> GraphicsContext
"""
CreateFromNative(void context) -> GraphicsContext
- Creates a wx.GraphicsContext from a native context. This native context
- must be eg a CGContextRef for Core Graphics, a Graphics pointer for
- GDIPlus or a cairo_t pointer for Cairo.
+ Creates a wx.GraphicsContext from a native context. This native
+ context must be eg a CGContextRef for Core Graphics, a Graphics
+ pointer for GDIPlus or a cairo_t pointer for Cairo.
"""
return _gdi_.GraphicsContext_CreateFromNative(*args, **kwargs)
"""
return _gdi_.GraphicsContext_CreateFromNative(*args, **kwargs)
CreateRadialGradientBrush(self, Double xo, Double yo, Double xc, Double yc, Double radius,
Colour oColor, Colour cColor) -> GraphicsBrush
CreateRadialGradientBrush(self, Double xo, Double yo, Double xc, Double yc, Double radius,
Colour oColor, Colour cColor) -> GraphicsBrush
- Creates a native brush, having a radial gradient originating at
- point (xo,yc) with color oColour and ends on a circle around (xc,yc) with
+ Creates a native brush, having a radial gradient originating at point
+ (xo,yc) with color oColour and ends on a circle around (xc,yc) with
radius r and color cColour.
"""
return _gdi_.GraphicsContext_CreateRadialGradientBrush(*args, **kwargs)
radius r and color cColour.
"""
return _gdi_.GraphicsContext_CreateRadialGradientBrush(*args, **kwargs)
- push the current state of the context, ie the transformation matrix on a stack
+ Push the current state of the context, (ie the transformation matrix)
+ on a stack
"""
return _gdi_.GraphicsContext_PushState(*args, **kwargs)
"""
return _gdi_.GraphicsContext_PushState(*args, **kwargs)
- pops a stored state from the stack
+ Pops a stored state from the stack
"""
return _gdi_.GraphicsContext_PopState(*args, **kwargs)
"""
return _gdi_.GraphicsContext_PopState(*args, **kwargs)
"""
GraphicsContext_CreateFromNative(void context) -> GraphicsContext
"""
GraphicsContext_CreateFromNative(void context) -> GraphicsContext
- Creates a wx.GraphicsContext from a native context. This native context
- must be eg a CGContextRef for Core Graphics, a Graphics pointer for
- GDIPlus or a cairo_t pointer for Cairo.
+ Creates a wx.GraphicsContext from a native context. This native
+ context must be eg a CGContextRef for Core Graphics, a Graphics
+ pointer for GDIPlus or a cairo_t pointer for Cairo.
"""
return _gdi_.GraphicsContext_CreateFromNative(*args, **kwargs)
"""
return _gdi_.GraphicsContext_CreateFromNative(*args, **kwargs)
wxDouble arg4 ;
wxDouble arg5 ;
wxDouble arg6 ;
wxDouble arg4 ;
wxDouble arg5 ;
wxDouble arg6 ;
+ bool arg7 = (bool) true ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
bool val7 ;
int ecode7 = 0 ;
bool val7 ;
int ecode7 = 0 ;
- if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
+ if ((nobjs < 6) || (nobjs > 7)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
}
arg6 = static_cast< wxDouble >(val6);
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
}
arg6 = static_cast< wxDouble >(val6);
- ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
- }
- arg7 = static_cast< bool >(val7);
+ if (swig_obj[6]) {
+ ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
+ if (!SWIG_IsOK(ecode7)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
+ }
+ arg7 = static_cast< bool >(val7);
+ }
{
(arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
if (PyErr_Occurred()) SWIG_fail;
{
(arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
if (PyErr_Occurred()) SWIG_fail;
wxDouble arg3 ;
wxDouble arg4 ;
wxDouble arg5 ;
wxDouble arg3 ;
wxDouble arg4 ;
wxDouble arg5 ;
+ bool arg6 = (bool) true ;
void *argp1 = 0 ;
int res1 = 0 ;
wxPoint2D temp2 ;
void *argp1 = 0 ;
int res1 = 0 ;
wxPoint2D temp2 ;
bool val6 ;
int ecode6 = 0 ;
bool val6 ;
int ecode6 = 0 ;
- if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
+ if ((nobjs < 5) || (nobjs > 6)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
}
arg5 = static_cast< wxDouble >(val5);
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
}
arg5 = static_cast< wxDouble >(val5);
- ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
- }
- arg6 = static_cast< bool >(val6);
+ if (swig_obj[5]) {
+ ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
+ if (!SWIG_IsOK(ecode6)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
+ }
+ arg6 = static_cast< bool >(val6);
+ }
{
(arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
if (PyErr_Occurred()) SWIG_fail;
{
(arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
if (PyErr_Occurred()) SWIG_fail;
if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
--argc;
if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
--argc;
+ if ((argc >= 5) && (argc <= 6)) {
+ int _v = 0;
+ {
+ {
+ _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
+ }
+ }
+ if (!_v) goto check_1;
+ if (argc > 5) {
+ {
+ {
+ int res = SWIG_AsVal_bool(argv[5], NULL);
+ _v = SWIG_CheckState(res);
+ }
+ }
+ if (!_v) goto check_1;
+ }
return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
}
return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
}
+check_1:
+
+ if ((argc >= 6) && (argc <= 7)) {
return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
}
return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
}
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""
__repr__ = _swig_repr
def __init__(self, *args, **kwargs):
"""
- __init__(self, Menu parentMenu=None, int id=ID_ANY, String text=EmptyString,
+ __init__(self, Menu parentMenu=None, int id=ID_SEPARATOR, String text=EmptyString,
String help=EmptyString, int kind=ITEM_NORMAL,
Menu subMenu=None) -> MenuItem
"""
_core_.MenuItem_swiginit(self,_core_.new_MenuItem(*args, **kwargs))
__swig_destroy__ = _core_.delete_MenuItem
__del__ = lambda self : None;
String help=EmptyString, int kind=ITEM_NORMAL,
Menu subMenu=None) -> MenuItem
"""
_core_.MenuItem_swiginit(self,_core_.new_MenuItem(*args, **kwargs))
__swig_destroy__ = _core_.delete_MenuItem
__del__ = lambda self : None;
+ def Destroy(self): pass
def GetMenu(*args, **kwargs):
"""GetMenu(self) -> Menu"""
return _core_.MenuItem_GetMenu(*args, **kwargs)
def GetMenu(*args, **kwargs):
"""GetMenu(self) -> Menu"""
return _core_.MenuItem_GetMenu(*args, **kwargs)
SWIGINTERN PyObject *_wrap_new_MenuItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxMenu *arg1 = (wxMenu *) NULL ;
SWIGINTERN PyObject *_wrap_new_MenuItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
PyObject *resultobj = 0;
wxMenu *arg1 = (wxMenu *) NULL ;
- int arg2 = (int) wxID_ANY ;
+ int arg2 = (int) wxID_SEPARATOR ;
wxString const &arg3_defvalue = wxPyEmptyString ;
wxString *arg3 = (wxString *) &arg3_defvalue ;
wxString const &arg4_defvalue = wxPyEmptyString ;
wxString const &arg3_defvalue = wxPyEmptyString ;
wxString *arg3 = (wxString *) &arg3_defvalue ;
wxString const &arg4_defvalue = wxPyEmptyString ;
"""
IsEqual(self, GraphicsMatrix t) -> bool
"""
IsEqual(self, GraphicsMatrix t) -> bool
- Returns ``True`` if the elements of the transformation matrix are equal
+ Returns ``True`` if the elements of the transformation matrix are
+ equal
"""
return _gdi_.GraphicsMatrix_IsEqual(*args, **kwargs)
"""
return _gdi_.GraphicsMatrix_IsEqual(*args, **kwargs)
def AddArc(*args):
"""
AddArc(self, Double x, Double y, Double r, Double startAngle, Double endAngle,
def AddArc(*args):
"""
AddArc(self, Double x, Double y, Double r, Double startAngle, Double endAngle,
AddArc(self, Point2D c, Double r, Double startAngle, Double endAngle,
AddArc(self, Point2D c, Double r, Double startAngle, Double endAngle,
Adds an arc of a circle centering at (x,y) with radius (r) from
startAngle to endAngle
Adds an arc of a circle centering at (x,y) with radius (r) from
startAngle to endAngle
"""
AddArcToPoint(self, Double x1, Double y1, Double x2, Double y2, Double r)
"""
AddArcToPoint(self, Double x1, Double y1, Double x2, Double y2, Double r)
- Appends an arc to two tangents connecting (current) to (x1,y1) and (x1,y1)
- to (x2,y2), also a straight line from (current) to (x1,y1)
+ Appends an arc to two tangents connecting (current) to (x1,y1) and
+ (x1,y1) to (x2,y2), also a straight line from (current) to (x1,y1)
"""
return _gdi_.GraphicsPath_AddArcToPoint(*args, **kwargs)
"""
return _gdi_.GraphicsPath_AddArcToPoint(*args, **kwargs)
"""
GetBox(self) -> Rect2D
"""
GetBox(self) -> Rect2D
- Gets the bounding box enclosing all points (possibly including control points)
+ Gets the bounding box enclosing all points (possibly including control
+ points)
"""
return _gdi_.GraphicsPath_GetBox(*args, **kwargs)
"""
return _gdi_.GraphicsPath_GetBox(*args, **kwargs)
"""
CreateFromNative(void context) -> GraphicsContext
"""
CreateFromNative(void context) -> GraphicsContext
- Creates a wx.GraphicsContext from a native context. This native context
- must be eg a CGContextRef for Core Graphics, a Graphics pointer for
- GDIPlus or a cairo_t pointer for Cairo.
+ Creates a wx.GraphicsContext from a native context. This native
+ context must be eg a CGContextRef for Core Graphics, a Graphics
+ pointer for GDIPlus or a cairo_t pointer for Cairo.
"""
return _gdi_.GraphicsContext_CreateFromNative(*args, **kwargs)
"""
return _gdi_.GraphicsContext_CreateFromNative(*args, **kwargs)
CreateRadialGradientBrush(self, Double xo, Double yo, Double xc, Double yc, Double radius,
Colour oColor, Colour cColor) -> GraphicsBrush
CreateRadialGradientBrush(self, Double xo, Double yo, Double xc, Double yc, Double radius,
Colour oColor, Colour cColor) -> GraphicsBrush
- Creates a native brush, having a radial gradient originating at
- point (xo,yc) with color oColour and ends on a circle around (xc,yc) with
+ Creates a native brush, having a radial gradient originating at point
+ (xo,yc) with color oColour and ends on a circle around (xc,yc) with
radius r and color cColour.
"""
return _gdi_.GraphicsContext_CreateRadialGradientBrush(*args, **kwargs)
radius r and color cColour.
"""
return _gdi_.GraphicsContext_CreateRadialGradientBrush(*args, **kwargs)
- push the current state of the context, ie the transformation matrix on a stack
+ Push the current state of the context, (ie the transformation matrix)
+ on a stack
"""
return _gdi_.GraphicsContext_PushState(*args, **kwargs)
"""
return _gdi_.GraphicsContext_PushState(*args, **kwargs)
- pops a stored state from the stack
+ Pops a stored state from the stack
"""
return _gdi_.GraphicsContext_PopState(*args, **kwargs)
"""
return _gdi_.GraphicsContext_PopState(*args, **kwargs)
"""
GraphicsContext_CreateFromNative(void context) -> GraphicsContext
"""
GraphicsContext_CreateFromNative(void context) -> GraphicsContext
- Creates a wx.GraphicsContext from a native context. This native context
- must be eg a CGContextRef for Core Graphics, a Graphics pointer for
- GDIPlus or a cairo_t pointer for Cairo.
+ Creates a wx.GraphicsContext from a native context. This native
+ context must be eg a CGContextRef for Core Graphics, a Graphics
+ pointer for GDIPlus or a cairo_t pointer for Cairo.
"""
return _gdi_.GraphicsContext_CreateFromNative(*args, **kwargs)
"""
return _gdi_.GraphicsContext_CreateFromNative(*args, **kwargs)
wxDouble arg4 ;
wxDouble arg5 ;
wxDouble arg6 ;
wxDouble arg4 ;
wxDouble arg5 ;
wxDouble arg6 ;
+ bool arg7 = (bool) true ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
void *argp1 = 0 ;
int res1 = 0 ;
double val2 ;
bool val7 ;
int ecode7 = 0 ;
bool val7 ;
int ecode7 = 0 ;
- if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
+ if ((nobjs < 6) || (nobjs > 7)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
}
arg6 = static_cast< wxDouble >(val6);
SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
}
arg6 = static_cast< wxDouble >(val6);
- ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
- if (!SWIG_IsOK(ecode7)) {
- SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
- }
- arg7 = static_cast< bool >(val7);
+ if (swig_obj[6]) {
+ ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
+ if (!SWIG_IsOK(ecode7)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
+ }
+ arg7 = static_cast< bool >(val7);
+ }
{
(arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
if (PyErr_Occurred()) SWIG_fail;
{
(arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
if (PyErr_Occurred()) SWIG_fail;
wxDouble arg3 ;
wxDouble arg4 ;
wxDouble arg5 ;
wxDouble arg3 ;
wxDouble arg4 ;
wxDouble arg5 ;
+ bool arg6 = (bool) true ;
void *argp1 = 0 ;
int res1 = 0 ;
wxPoint2D temp2 ;
void *argp1 = 0 ;
int res1 = 0 ;
wxPoint2D temp2 ;
bool val6 ;
int ecode6 = 0 ;
bool val6 ;
int ecode6 = 0 ;
- if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
+ if ((nobjs < 5) || (nobjs > 6)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
}
arg5 = static_cast< wxDouble >(val5);
SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
}
arg5 = static_cast< wxDouble >(val5);
- ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
- if (!SWIG_IsOK(ecode6)) {
- SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
- }
- arg6 = static_cast< bool >(val6);
+ if (swig_obj[5]) {
+ ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
+ if (!SWIG_IsOK(ecode6)) {
+ SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
+ }
+ arg6 = static_cast< bool >(val6);
+ }
{
(arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
if (PyErr_Occurred()) SWIG_fail;
{
(arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
if (PyErr_Occurred()) SWIG_fail;
if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
--argc;
if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
--argc;
+ if ((argc >= 5) && (argc <= 6)) {
+ int _v = 0;
+ {
+ {
+ _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2);
+ }
+ }
+ if (!_v) goto check_1;
+ if (argc > 5) {
+ {
+ {
+ int res = SWIG_AsVal_bool(argv[5], NULL);
+ _v = SWIG_CheckState(res);
+ }
+ }
+ if (!_v) goto check_1;
+ }
return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
}
return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
}
+check_1:
+
+ if ((argc >= 6) && (argc <= 7)) {
return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
}
return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
}