.. 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
.. _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

Inheritance diagram for class
GraphicsObject:
|
|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.__bool__`
: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:: __bool__(self)
:rtype: `int`
.. method:: __nonzero__(self)
:rtype: `int`
.. attribute:: Renderer
See :meth:`~wx.GraphicsObject.GetRenderer`