.. wxPython Phoenix documentation

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

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

.. include:: headings.inc



.. _wx.GraphicsBrush:

==========================================================================================================================================
|phoenix_title|  **wx.GraphicsBrush**
==========================================================================================================================================

A :ref:`wx.GraphicsBrush`  is a native representation of a brush. 
         

The contents are specific and private to the respective renderer. Instances are ref counted and can therefore be assigned as usual. The only way to get a valid instance is via :meth:`wx.GraphicsContext.CreateBrush`   or :meth:`wx.GraphicsRenderer.CreateBrush` . 









|

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

.. raw:: html

   <div class="collabsible-wrapper">
      <input id="collapsible-inheritance" class="collapsible-checkbox" type="checkbox">
      <label for="collapsible-inheritance" tabindex="0" title="Show inheritance diagram" class="collapsible-label">Inheritance diagram for class <strong>GraphicsBrush</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.GraphicsBrush_inheritance.svg" alt="Inheritance diagram of GraphicsBrush" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.GraphicsBrush.html" title="A wx.GraphicsBrush  is a native representation of a brush." alt="" coords="7,159,166,188"/> <area shape="rect" id="node2" href="wx.GraphicsObject.html" title="This class is the superclass of native graphics objects like pens etc." alt="" coords="5,82,168,111"/> <area shape="rect" id="node3" href="wx.Object.html" title="This is the root class of many of the wxWidgets classes." alt="" coords="37,5,136,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


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


.. class:: wx.GraphicsBrush(GraphicsObject)

   A GraphicsBrush is a native representation of a brush.


