.. 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.SVGshape:

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

SVGshape is a set of attributes describing how to draw one shape in the SVG,
including stroke and fill styles, line styles, and paths. A collection of
SVGshapes is accessible from the ``shapes`` attribute of :class:`SVGimage`.



|

|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>SVGshape</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.SVGshape_inheritance.png" alt="Inheritance diagram of SVGshape" 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.SVGshape.html" title="wx.svg._nanosvg.SVGshape" alt="" coords="5,5,209,35"/> </map> 
   </p>
   </div>

|


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

================================================================================ ================================================================================
:attr:`~wx.svg._nanosvg.SVGshape.bounds`                                         Tight bounding box of the shape [minx,miny,maxx,maxy]
:attr:`~wx.svg._nanosvg.SVGshape.fill`                                           :class:`SVGpaint` for the fill
:attr:`~wx.svg._nanosvg.SVGshape.fillRule`                                       Fill rule
:attr:`~wx.svg._nanosvg.SVGshape.flags`                                          Logical OR of SVG_FLAGS_* flags
:attr:`~wx.svg._nanosvg.SVGshape.id`                                             Optional 'id' attr of the shape or its group
:attr:`~wx.svg._nanosvg.SVGshape.maxx`                                           
:attr:`~wx.svg._nanosvg.SVGshape.maxy`                                           
:attr:`~wx.svg._nanosvg.SVGshape.minx`                                           
:attr:`~wx.svg._nanosvg.SVGshape.miny`                                           
:attr:`~wx.svg._nanosvg.SVGshape.miterLimit`                                     Miter limit
:attr:`~wx.svg._nanosvg.SVGshape.opacity`                                        Opacity of the shape
:attr:`~wx.svg._nanosvg.SVGshape.paths`                                          A generator that iterates over the :class:`SVGpath` objects contained in the SVGshape
:attr:`~wx.svg._nanosvg.SVGshape.stroke`                                         :class:`SVGpaint` for the stroke
:attr:`~wx.svg._nanosvg.SVGshape.strokeDashArray`                                Stroke dash array (scaled)
:attr:`~wx.svg._nanosvg.SVGshape.strokeDashOffset`                               Stroke dash offset (scaled)
:attr:`~wx.svg._nanosvg.SVGshape.strokeLineCap`                                  Stroke cap type
:attr:`~wx.svg._nanosvg.SVGshape.strokeLineJoin`                                 Stroke join type
:attr:`~wx.svg._nanosvg.SVGshape.strokeWidth`                                    Stroke width (scaled)
================================================================================ ================================================================================


|


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


.. class:: SVGshape(object)

   SVGshape is a set of attributes describing how to draw one shape in the SVG,
   including stroke and fill styles, line styles, and paths. A collection of
   SVGshapes is accessible from the ``shapes`` attribute of :class:`SVGimage`.

   .. attribute:: bounds

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


   .. attribute:: fill

      :class:`SVGpaint` for the fill


   .. attribute:: fillRule

      Fill rule


   .. attribute:: flags

      Logical OR of SVG_FLAGS_* flags


   .. attribute:: id

      Optional 'id' attr of the shape or its group


   .. attribute:: miterLimit

      Miter limit


   .. attribute:: opacity

      Opacity of the shape


   .. attribute:: paths

      A generator that iterates over the :class:`SVGpath` objects contained in the SVGshape


   .. attribute:: stroke

      :class:`SVGpaint` for the stroke


   .. attribute:: strokeDashArray

      Stroke dash array (scaled)


   .. attribute:: strokeDashOffset

      Stroke dash offset (scaled)


   .. attribute:: strokeLineCap

      Stroke cap type


   .. attribute:: strokeLineJoin

      Stroke join type


   .. attribute:: strokeWidth

      Stroke width (scaled)


