.. wxPython Phoenix documentation

   This file was generated by Phoenix's sphinx generator and associated
   tools, do not edit by hand.

   Copyright: (c) 2011-2020 by Total Control Software
   License:   wxWindows License

.. include:: headings.inc

.. currentmodule:: wx.svg._nanosvg

.. highlight:: python



.. _wx.svg._nanosvg.SVGpath:

==========================================================================================================================================
|phoenix_title|  **wx.svg._nanosvg.SVGpath**
==========================================================================================================================================

An SVGpath is essentially just a collection of bezier curves, defined by a
set of floating point coordinates. A collection of SVGpaths is accessible
from the `paths` attribute of SVGshape.



|

|class_hierarchy| Class Hierarchy
=================================

.. raw:: html

   <div id="toggleBlock" onclick="return toggleVisibility(this)" class="closed" style="cursor:pointer;">
   <img id="toggleBlock-trigger" src="_static/images/closed.png"/>
   Inheritance diagram for class <strong>SVGpath</strong>:
   </div>
   <div id="toggleBlock-summary" style="display:block;"></div>
   <div id="toggleBlock-content" style="display:none;">
   <p class="graphviz">
   <center><img src="_static/images/inheritance/wx.svg._nanosvg.SVGpath_inheritance.png" alt="Inheritance diagram of SVGpath" usemap="#dummy" class="inheritance"/></center>
   <script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
   <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.svg._nanosvg.SVGpath.html" title="wx.svg._nanosvg.SVGpath" alt="" coords="5,5,200,35"/> </map> 
   </p>
   </div>

|


|property_summary| Properties Summary
=====================================

================================================================================ ================================================================================
:attr:`~wx.svg._nanosvg.SVGpath.bounds`                                          Tight bounding box of the shape [minx,miny,maxx,maxy]
:attr:`~wx.svg._nanosvg.SVGpath.closed`                                          Flag indicating if shapes should be treated as closed
:attr:`~wx.svg._nanosvg.SVGpath.maxx`                                            
:attr:`~wx.svg._nanosvg.SVGpath.maxy`                                            
:attr:`~wx.svg._nanosvg.SVGpath.minx`                                            
:attr:`~wx.svg._nanosvg.SVGpath.miny`                                            
:attr:`~wx.svg._nanosvg.SVGpath.npts`                                            Number of points
:attr:`~wx.svg._nanosvg.SVGpath.points`                                          Cubic bezier points: (x0,y0), [(cpx1,cpx1), (cpx2,cpy2), (x1,y1)], ...
:attr:`~wx.svg._nanosvg.SVGpath.pts`                                             Cubic bezier points: x0,y0, [cpx1,cpx1,cpx2,cpy2,x1,y1], ...
================================================================================ ================================================================================


|


|api| Class API
===============


.. class:: SVGpath(object)

   An SVGpath is essentially just a collection of bezier curves, defined by a
   set of floating point coordinates. A collection of SVGpaths is accessible
   from the `paths` attribute of SVGshape.

   .. attribute:: bounds

      Tight bounding box of the shape [minx,miny,maxx,maxy]


   .. attribute:: closed

      Flag indicating if shapes should be treated as closed


   .. attribute:: npts

      Number of points


   .. attribute:: points

      Cubic bezier points: (x0,y0), [(cpx1,cpx1), (cpx2,cpy2), (x1,y1)], ...
      The return value is a list of tuples, each containing an x-y pair.


   .. attribute:: pts

      Cubic bezier points: x0,y0, [cpx1,cpx1,cpx2,cpy2,x1,y1], ...
      The return value is a list of floats.


