Back to index

lightning-sunbird  0.9+nobinonly
nsSVGPathSeg.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is the Mozilla SVG project.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Crocodile Clips Ltd..
00019  * Portions created by the Initial Developer are Copyright (C) 2001
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *   Alex Fritze <alex.fritze@crocodile-clips.com> (original author)
00024  *
00025  * Alternatively, the contents of this file may be used under the terms of
00026  * either of the GNU General Public License Version 2 or later (the "GPL"),
00027  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00028  * in which case the provisions of the GPL or the LGPL are applicable instead
00029  * of those above. If you wish to allow use of your version of this file only
00030  * under the terms of either the GPL or the LGPL, and not to allow others to
00031  * use your version of this file under the terms of the MPL, indicate your
00032  * decision by deleting the provisions above and replace them with the notice
00033  * and other provisions required by the GPL or the LGPL. If you do not delete
00034  * the provisions above, a recipient may use your version of this file under
00035  * the terms of any one of the MPL, the GPL or the LGPL.
00036  *
00037  * ***** END LICENSE BLOCK ***** */
00038 
00039 #ifndef __NS_SVGPATHSEG_H__
00040 #define __NS_SVGPATHSEG_H__
00041 
00042 #include "nsIDOMSVGPathSeg.h"
00043 
00044 nsresult
00045 NS_NewSVGPathSegClosePath(nsIDOMSVGPathSegClosePath** result);
00046 
00047 nsresult
00048 NS_NewSVGPathSegMovetoAbs(nsIDOMSVGPathSegMovetoAbs** result,
00049                           float x, float y);
00050 
00051 nsresult
00052 NS_NewSVGPathSegMovetoRel(nsIDOMSVGPathSegMovetoRel** result,
00053                           float x, float y);
00054 
00055 nsresult
00056 NS_NewSVGPathSegLinetoAbs(nsIDOMSVGPathSegLinetoAbs** result,
00057                           float x, float y);
00058 
00059 nsresult
00060 NS_NewSVGPathSegLinetoRel(nsIDOMSVGPathSegLinetoRel** result,
00061                           float x, float y);
00062 
00063 nsresult
00064 NS_NewSVGPathSegCurvetoCubicAbs(nsIDOMSVGPathSegCurvetoCubicAbs** result,
00065                                 float x, float y,
00066                                 float x1, float y1,
00067                                 float x2, float y2);
00068 
00069 nsresult
00070 NS_NewSVGPathSegCurvetoCubicRel(nsIDOMSVGPathSegCurvetoCubicRel** result,
00071                                 float x, float y,
00072                                 float x1, float y1,
00073                                 float x2, float y2);
00074 
00075 nsresult
00076 NS_NewSVGPathSegCurvetoQuadraticAbs(nsIDOMSVGPathSegCurvetoQuadraticAbs** result,
00077                                     float x, float y,
00078                                     float x1, float y1);
00079                                              
00080 nsresult
00081 NS_NewSVGPathSegCurvetoQuadraticRel(nsIDOMSVGPathSegCurvetoQuadraticRel** result,
00082                                     float x, float y,
00083                                     float x1, float y1);
00084                                             
00085 nsresult
00086 NS_NewSVGPathSegArcAbs(nsIDOMSVGPathSegArcAbs** result,
00087                        float x, float y,
00088                        float r1, float r2, float angle,
00089                        PRBool largeArcFlag, PRBool sweepFlag);
00090                                 
00091 nsresult
00092 NS_NewSVGPathSegArcRel(nsIDOMSVGPathSegArcRel** result,
00093                        float x, float y,
00094                        float r1, float r2, float angle,
00095                        PRBool largeArcFlag, PRBool sweepFlag);
00096                                 
00097 nsresult
00098 NS_NewSVGPathSegLinetoHorizontalAbs(nsIDOMSVGPathSegLinetoHorizontalAbs** result,
00099                                     float x);
00100 
00101 nsresult
00102 NS_NewSVGPathSegLinetoHorizontalRel(nsIDOMSVGPathSegLinetoHorizontalRel** result,
00103                                     float x);
00104                                              
00105 nsresult
00106 NS_NewSVGPathSegLinetoVerticalAbs(nsIDOMSVGPathSegLinetoVerticalAbs** result,
00107                                   float y);
00108 
00109 nsresult
00110 NS_NewSVGPathSegLinetoVerticalRel(nsIDOMSVGPathSegLinetoVerticalRel** result,
00111                                   float y);
00112                                            
00113 nsresult
00114 NS_NewSVGPathSegCurvetoCubicSmoothAbs(nsIDOMSVGPathSegCurvetoCubicSmoothAbs** result,
00115                                       float x, float y,
00116                                       float x2, float y2);
00117                                                
00118 nsresult
00119 NS_NewSVGPathSegCurvetoCubicSmoothRel(nsIDOMSVGPathSegCurvetoCubicSmoothRel** result,
00120                                       float x, float y,
00121                                       float x2, float y2);
00122                                                
00123 nsresult
00124 NS_NewSVGPathSegCurvetoQuadraticSmoothAbs(nsIDOMSVGPathSegCurvetoQuadraticSmoothAbs** result,
00125                                           float x, float y);
00126 
00127 nsresult
00128 NS_NewSVGPathSegCurvetoQuadraticSmoothRel(nsIDOMSVGPathSegCurvetoQuadraticSmoothRel** result,
00129                                           float x, float y);
00130 
00131 
00132 #endif //__NS_SVGPATHSEG_H__