SetTextColor --> SetTextColour
Make sure SWIG knows that items returned fro the factories are new Fix the save a ref to the dc git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -106,7 +106,7 @@ public:
 | 
				
			|||||||
    void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
 | 
					    void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
 | 
				
			||||||
        const wxColour &, const wxColour &) {}
 | 
					        const wxColour &, const wxColour &) {}
 | 
				
			||||||
    void SetFont( const wxFont & ) {}
 | 
					    void SetFont( const wxFont & ) {}
 | 
				
			||||||
    void SetTextColor( const wxColour & ) {}
 | 
					    void SetTextColour( const wxColour & ) {}
 | 
				
			||||||
    void StrokePath( const wxGraphicsPath * ) {}
 | 
					    void StrokePath( const wxGraphicsPath * ) {}
 | 
				
			||||||
    void FillPath( const wxGraphicsPath *, int  ) {}
 | 
					    void FillPath( const wxGraphicsPath *, int  ) {}
 | 
				
			||||||
    void DrawPath( const wxGraphicsPath *, int  ) {}
 | 
					    void DrawPath( const wxGraphicsPath *, int  ) {}
 | 
				
			||||||
@@ -294,16 +294,19 @@ public:
 | 
				
			|||||||
    // wxGraphicsContext()         This is also an ABC, use Create to make an instance...
 | 
					    // wxGraphicsContext()         This is also an ABC, use Create to make an instance...
 | 
				
			||||||
    virtual ~wxGraphicsContext();
 | 
					    virtual ~wxGraphicsContext();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    %newobject Create;
 | 
				
			||||||
    %nokwargs Create;
 | 
					    %nokwargs Create;
 | 
				
			||||||
    %pythonAppend Create( const wxWindowDC& dc)
 | 
					    %pythonAppend Create
 | 
				
			||||||
        "val.__dc = args[0] # save a ref so the other dc will not be deleted before self";
 | 
					        "val.__dc = args[0] # save a ref so the dc will not be deleted before self";
 | 
				
			||||||
    static wxGraphicsContext* Create( const wxWindowDC& dc);
 | 
					    static wxGraphicsContext* Create( const wxWindowDC& dc);
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    static wxGraphicsContext* Create( wxWindow* window ) ;
 | 
					    static wxGraphicsContext* Create( wxWindow* window ) ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    %newobject CreateFromNative;
 | 
				
			||||||
    static wxGraphicsContext* CreateFromNative( void * context ) ;
 | 
					    static wxGraphicsContext* CreateFromNative( void * context ) ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    %newobject CreatePath;
 | 
				
			||||||
    // creates a path instance that corresponds to the type of graphics context, ie GDIPlus, cairo, CoreGraphics ...
 | 
					    // creates a path instance that corresponds to the type of graphics context, ie GDIPlus, cairo, CoreGraphics ...
 | 
				
			||||||
    DocDeclStr(
 | 
					    DocDeclStr(
 | 
				
			||||||
        virtual wxGraphicsPath * , CreatePath(),
 | 
					        virtual wxGraphicsPath * , CreatePath(),
 | 
				
			||||||
@@ -399,12 +402,12 @@ public:
 | 
				
			|||||||
        "", "");
 | 
					        "", "");
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // sets the brush to a radial gradient originating at (xo,yc) with color oColor and ends on a circle around (xc,yc) 
 | 
					    // sets the brush to a radial gradient originating at (xo,yc) with color oColour and ends on a circle around (xc,yc) 
 | 
				
			||||||
    // with radius r and color cColor
 | 
					    // with radius r and color cColour
 | 
				
			||||||
    DocDeclStr(
 | 
					    DocDeclStr(
 | 
				
			||||||
        virtual void , SetRadialGradientBrush( wxDouble xo, wxDouble yo, wxDouble xc, wxDouble yc,
 | 
					        virtual void , SetRadialGradientBrush( wxDouble xo, wxDouble yo, wxDouble xc, wxDouble yc,
 | 
				
			||||||
                                               wxDouble radius,
 | 
					                                               wxDouble radius,
 | 
				
			||||||
                                               const wxColour &oColor, const wxColour &cColor),
 | 
					                                               const wxColour &oColour, const wxColour &cColour),
 | 
				
			||||||
        "", "");
 | 
					        "", "");
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -416,7 +419,7 @@ public:
 | 
				
			|||||||
    
 | 
					    
 | 
				
			||||||
    // sets the text color
 | 
					    // sets the text color
 | 
				
			||||||
    DocDeclStr(
 | 
					    DocDeclStr(
 | 
				
			||||||
        virtual void , SetTextColor( const wxColour &col ),
 | 
					        virtual void , SetTextColour( const wxColour &col ),
 | 
				
			||||||
        "", "");
 | 
					        "", "");
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -459,7 +462,7 @@ public:
 | 
				
			|||||||
                                      wxDouble *OUTPUT /*height*/,
 | 
					                                      wxDouble *OUTPUT /*height*/,
 | 
				
			||||||
                                      wxDouble *OUTPUT /*descent*/,
 | 
					                                      wxDouble *OUTPUT /*descent*/,
 | 
				
			||||||
                                      wxDouble *OUTPUT /*externalLeading*/ ) const ,
 | 
					                                      wxDouble *OUTPUT /*externalLeading*/ ) const ,
 | 
				
			||||||
        "GetTextExtend(self, text) --> (width, height, descent, externalLeading)",
 | 
					        "GetTextExtent(self, text) --> (width, height, descent, externalLeading)",
 | 
				
			||||||
        "", "");
 | 
					        "", "");
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user