.. 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
Inheritance diagram for class SVGshape:
| |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)