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

.. currentmodule:: wx.lib.inspection

.. highlight:: python



.. _wx.lib.inspection._InspectionHighlighter:

==========================================================================================================================================
|phoenix_title|  **wx.lib.inspection._InspectionHighlighter**
==========================================================================================================================================

All the highlighting code.  A separate class to help reduce the
clutter in InspectionFrame.



|

|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>_InspectionHighlighter</strong>:</label>
      <div class="collapsible-content">
         <p class="graphviz">
            <center><img src="_static/images/inheritance/wx.lib.inspection._InspectionHighlighter_inheritance.svg" alt="Inheritance diagram of _InspectionHighlighter" usemap="#dummy" class="inheritance invert-in-dark-mode"/></center>
            <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.lib.inspection._InspectionHighlighter.html" title="All the highlighting code.  A separate class to help reduce the" alt="" coords="5,5,316,34"/> </map> 
         </p>
      </div>
   </div>
   <script type="text/javascript" src="_static/inheritancetoggle.js"></script>



|


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

================================================================================ ================================================================================
:meth:`~wx.lib.inspection._InspectionHighlighter.__init__`                       Initialize self.  See help(type(self)) for accurate signature.
:meth:`~wx.lib.inspection._InspectionHighlighter.AdjustRect`                     
:meth:`~wx.lib.inspection._InspectionHighlighter.DoHighlight`                    
:meth:`~wx.lib.inspection._InspectionHighlighter.DoUnhighlight`                  
:meth:`~wx.lib.inspection._InspectionHighlighter.FindHighlightPos`               
:meth:`~wx.lib.inspection._InspectionHighlighter.FlickerTLW`                     Use a timer to alternate a TLW between shown and hidden state a
:meth:`~wx.lib.inspection._InspectionHighlighter.HighlightCurrentItem`           Draw a highlight rectangle around the item represented by the
:meth:`~wx.lib.inspection._InspectionHighlighter.HighlightSizer`                 
:meth:`~wx.lib.inspection._InspectionHighlighter.HighlightSizerItem`             
:meth:`~wx.lib.inspection._InspectionHighlighter.HighlightWindow`                
================================================================================ ================================================================================


|


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


.. class:: _InspectionHighlighter(object)

   All the highlighting code.  A separate class to help reduce the
   clutter in InspectionFrame.

   .. method:: __init__(self)

      Initialize self.  See help(type(self)) for accurate signature.


   .. method:: AdjustRect(self, tlw, win,  rect)


   .. method:: DoHighlight(self, tlw, rect, colour, penWidth=2)


   .. method:: DoUnhighlight(self, tlw, rect)


   .. method:: FindHighlightPos(self, tlw, pos)


   .. method:: FlickerTLW(self, tlw)

      Use a timer to alternate a TLW between shown and hidden state a
      few times.  Use to highlight a TLW since drawing and clearing an
      outline is trickier.


   .. method:: HighlightCurrentItem(self, tree)

      Draw a highlight rectangle around the item represented by the
      current tree selection.


   .. method:: HighlightSizer(self, sizer)


   .. method:: HighlightSizerItem(self, item, sizer, penWidth=2)


   .. method:: HighlightWindow(self, win)


