.. wxPython Phoenix documentation

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

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

.. include:: headings.inc



.. _wx.GraphicsObject:

==========================================================================================================================================
|phoenix_title|  **wx.GraphicsObject**
==========================================================================================================================================

This class is the superclass of native graphics objects like pens etc.          

It allows reference counting. Not instantiated by user code. 







         



.. seealso:: :ref:`wx.GraphicsBrush`, :ref:`wx.GraphicsPen`, :ref:`wx.GraphicsMatrix`, :ref:`wx.GraphicsPath`    







|

|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>GraphicsObject</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.GraphicsObject_inheritance.png" alt="Inheritance diagram of GraphicsObject" usemap="#dummy" class="inheritance"/></center>
   </div>
   <script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
   <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.GraphicsObject.html" title="wx.GraphicsObject" alt="" coords="5,83,144,112"/> <area shape="rect" id="node2" href="wx.Object.html" title="wx.Object" alt="" coords="33,5,115,35"/> </map> 
   </p>

|


|sub_classes| Known Subclasses
==============================

:ref:`wx.GraphicsBitmap`, :ref:`wx.GraphicsBrush`, :ref:`wx.GraphicsContext`, :ref:`wx.GraphicsFont`, :ref:`wx.GraphicsMatrix`, :ref:`wx.GraphicsPath`, :ref:`wx.GraphicsPen`

|


|method_summary| Methods Summary
================================

================================================================================ ================================================================================
:meth:`~wx.GraphicsObject.GetRenderer`                                           Returns the renderer that was used to create this instance, or ``None`` if it has not been initialized yet.
:meth:`~wx.GraphicsObject.IsNull`                                                
:meth:`~wx.GraphicsObject.IsOk`                                                  
:meth:`~wx.GraphicsObject.__nonzero__`                                           
================================================================================ ================================================================================


|


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

================================================================================ ================================================================================
:attr:`~wx.GraphicsObject.Renderer`                                              See :meth:`~wx.GraphicsObject.GetRenderer`
================================================================================ ================================================================================


|


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


.. class:: wx.GraphicsObject(Object)

   This class is the superclass of native graphics objects like pens etc.



   .. method:: GetRenderer(self)

      Returns the renderer that was used to create this instance, or ``None`` if it has not been initialized yet.                  

      :rtype: :ref:`wx.GraphicsRenderer`








   .. method:: IsNull(self)



                

      :rtype: `bool`







      :returns: 

         ``False`` if this object is valid, otherwise returns ``True``.   








   .. method:: IsOk(self)



      :rtype: `bool`








   .. method:: __nonzero__(self)



      :rtype: `int`








   .. attribute:: Renderer

      See :meth:`~wx.GraphicsObject.GetRenderer`

