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

==========================================================================================================================================
|phoenix_title|  **wx.GDIObject**
==========================================================================================================================================

This class allows platforms to implement functionality to optimise GDI objects, such as :ref:`wx.Pen`, :ref:`wx.Brush`  and :ref:`wx.Font`. 
         

On Windows, the underling GDI objects are a scarce resource and are cleaned up when a usage count goes to zero. On some platforms this class may not have any special functionality. 

Since the functionality of this class is platform-specific, it is not documented here in detail. 








         



.. seealso:: :ref:`wx.Pen`, :ref:`wx.Brush`, :ref:`wx.Font`    







|

|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>GDIObject</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.GDIObject_inheritance.svg" alt="Inheritance diagram of GDIObject" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.GDIObject.html" title="This class allows platforms to implement functionality to optimise GDI objects, such as wx.Pen, wx.Brush  and wx.Font." alt="" coords="5,82,132,111"/> <area shape="rect" id="node2" href="wx.Object.html" title="This is the root class of many of the wxWidgets classes." alt="" coords="19,5,118,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


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

:ref:`wx.Bitmap`, :ref:`wx.Brush`, :ref:`wx.Cursor`, :ref:`wx.Font`, :ref:`wx.Icon`, :ref:`wx.IconBundle`, :ref:`wx.Palette`, :ref:`wx.Pen`, :ref:`wx.Region`

|


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

================================================================================ ================================================================================
:meth:`~wx.GDIObject.__init__`                                                   Default constructor.
================================================================================ ================================================================================


|


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


.. class:: wx.GDIObject(Object)

   **Possible constructors**::

       GDIObject() -> None
       
   
   This class allows platforms to implement functionality to optimise GDI
   objects, such as Pen, Brush and Font.



   .. method:: __init__(self)

      Default constructor. 
                 

      :rtype: `None`     







