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

.. currentmodule:: wx.lib.agw.foldpanelbar

.. highlight:: python



.. _wx.lib.agw.foldpanelbar.CaptionBarStyle:

==========================================================================================================================================
|phoenix_title|  **wx.lib.agw.foldpanelbar.CaptionBarStyle**
==========================================================================================================================================

This class encapsulates the styles you wish to set for the
:class:`CaptionBar` (this is the part of the `FoldPanel` where the caption
is displayed). It can either be applied at creation time be
reapplied when styles need to be changed.

At construction time, all styles are set to their default
transparency.  This means none of the styles will be applied to
the :class:`CaptionBar` in question, meaning it will be created using the
default internals. When setting i.e the colour, font or panel
style, these styles become active to be used.



|

|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>CaptionBarStyle</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.lib.agw.foldpanelbar.CaptionBarStyle_inheritance.png" alt="Inheritance diagram of CaptionBarStyle" usemap="#dummy" class="inheritance"/></center>
   <script type="text/javascript">toggleVisibilityOnLoad(document.getElementById('toggleBlock'))</script>
   <map id="dummy" name="dummy"> <area shape="rect" id="node1" href="wx.lib.agw.foldpanelbar.CaptionBarStyle.html" title="wx.lib.agw.foldpanelbar.CaptionBarStyle" alt="" coords="5,5,291,35"/> </map> 
   </p>
   </div>

|


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

================================================================================ ================================================================================
:meth:`~wx.lib.agw.foldpanelbar.CaptionBarStyle.__init__`                        Default constructor for this class.
:meth:`~wx.lib.agw.foldpanelbar.CaptionBarStyle.CaptionColourUsed`               Checks if the caption colour of the caption bar is set.
:meth:`~wx.lib.agw.foldpanelbar.CaptionBarStyle.CaptionFontUsed`                 Checks if the caption bar font is set.
:meth:`~wx.lib.agw.foldpanelbar.CaptionBarStyle.CaptionStyleUsed`                Checks if the caption style of the caption bar is set.
:meth:`~wx.lib.agw.foldpanelbar.CaptionBarStyle.FirstColourUsed`                 Checks if the first colour of the caption bar is set.
:meth:`~wx.lib.agw.foldpanelbar.CaptionBarStyle.GetCaptionColour`                Returns the caption colour for the caption bar.
:meth:`~wx.lib.agw.foldpanelbar.CaptionBarStyle.GetCaptionFont`                  Returns the font for the caption bar.
:meth:`~wx.lib.agw.foldpanelbar.CaptionBarStyle.GetCaptionStyle`                 Returns the caption style for the caption bar.
:meth:`~wx.lib.agw.foldpanelbar.CaptionBarStyle.GetFirstColour`                  Returns the first colour for the caption bar.
:meth:`~wx.lib.agw.foldpanelbar.CaptionBarStyle.GetSecondColour`                 Returns the second colour for the caption bar.
:meth:`~wx.lib.agw.foldpanelbar.CaptionBarStyle.ResetDefaults`                   Resets default :class:`CaptionBarStyle`.
:meth:`~wx.lib.agw.foldpanelbar.CaptionBarStyle.SecondColourUsed`                Checks if the second colour of the caption bar is set.
:meth:`~wx.lib.agw.foldpanelbar.CaptionBarStyle.SetCaptionColour`                Sets caption colour for the caption bar.
:meth:`~wx.lib.agw.foldpanelbar.CaptionBarStyle.SetCaptionFont`                  Sets font for the caption bar.
:meth:`~wx.lib.agw.foldpanelbar.CaptionBarStyle.SetCaptionStyle`                 Sets caption style for the caption bar.
:meth:`~wx.lib.agw.foldpanelbar.CaptionBarStyle.SetFirstColour`                  Sets first colour for the caption bar.
:meth:`~wx.lib.agw.foldpanelbar.CaptionBarStyle.SetSecondColour`                 Sets second colour for the caption bar.
================================================================================ ================================================================================


|


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


.. class:: CaptionBarStyle(object)

   This class encapsulates the styles you wish to set for the
   :class:`CaptionBar` (this is the part of the `FoldPanel` where the caption
   is displayed). It can either be applied at creation time be
   reapplied when styles need to be changed.
   
   At construction time, all styles are set to their default
   transparency.  This means none of the styles will be applied to
   the :class:`CaptionBar` in question, meaning it will be created using the
   default internals. When setting i.e the colour, font or panel
   style, these styles become active to be used.

   .. method:: __init__(self)

      Default constructor for this class. 


   .. method:: CaptionColourUsed(self)

      Checks if the caption colour of the caption bar is set.


   .. method:: CaptionFontUsed(self)

      Checks if the caption bar font is set. 


   .. method:: CaptionStyleUsed(self)

      Checks if the caption style of the caption bar is set.


   .. method:: FirstColourUsed(self)

      Checks if the first colour of the caption bar is set.


   .. method:: GetCaptionColour(self)

      Returns the caption colour for the caption bar.
      
      :note: Please be warned this will result in an assertion failure
       when this property is not previously set.
      
      :see: :meth:`~CaptionBarStyle.SetCaptionColour`, :meth:`~CaptionBarStyle.CaptionColourUsed`


   .. method:: GetCaptionFont(self)

      Returns the font for the caption bar.
      
      :note: Please be warned this will result in an assertion failure when
       this property is not previously set.
      
      :see: :meth:`~CaptionBarStyle.SetCaptionFont`, :meth:`~CaptionBarStyle.CaptionFontUsed`


   .. method:: GetCaptionStyle(self)

      Returns the caption style for the caption bar.
      
      :note: Please be warned this will result in an assertion failure
       when this property is not previously set.
      
      :see: :meth:`~CaptionBarStyle.SetCaptionStyle`, :meth:`~CaptionBarStyle.CaptionStyleUsed`


   .. method:: GetFirstColour(self)

      Returns the first colour for the caption bar.
      
      :note: Please be warned this will result in an assertion failure when
       this property is not previously set.
      
      :see: :meth:`~CaptionBarStyle.SetFirstColour`, :meth:`~CaptionBarStyle.FirstColourUsed`


   .. method:: GetSecondColour(self)

      Returns the second colour for the caption bar.
      
      :note: Please be warned this will result in an assertion failure when
       this property is not previously set.
      
      :see: :meth:`~CaptionBarStyle.SetSecondColour`, :meth:`~CaptionBarStyle.SecondColourUsed`


   .. method:: ResetDefaults(self)

      Resets default :class:`CaptionBarStyle`. 


   .. method:: SecondColourUsed(self)

      Checks if the second colour of the caption bar is set.


   .. method:: SetCaptionColour(self, colour)

      Sets caption colour for the caption bar.
      
      :param `colour`: a valid :class:`wx.Colour` object.
      
      :note: If this is not set, the colour property is undefined and will not be used.
       Use :meth:`~CaptionBarStyle.CaptionColourUsed` to check if this style is used.


   .. method:: SetCaptionFont(self, font)

      Sets font for the caption bar.
      
      :param `font`: a valid :class:`wx.Font` object.
      
      :note: If this is not set, the font property is undefined and will not be used.
       Use :meth:`~CaptionBarStyle.CaptionFontUsed` to check if this style is used.


   .. method:: SetCaptionStyle(self, style)

      Sets caption style for the caption bar.
      
      :param `style`: can be one of the following bits:
      
       =============================== ======= =============================
       Caption Style                    Value  Description
       =============================== ======= =============================
       ``CAPTIONBAR_GRADIENT_V``             1 Draws a vertical gradient from top to bottom
       ``CAPTIONBAR_GRADIENT_H``             2 Draws a horizontal gradient from left to right
       ``CAPTIONBAR_SINGLE``                 3 Draws a single filled rectangle to draw the caption
       ``CAPTIONBAR_RECTANGLE``              4 Draws a single colour with a rectangle around the caption
       ``CAPTIONBAR_FILLED_RECTANGLE``       5 Draws a filled rectangle and a border around it
       =============================== ======= =============================
      
      :note: If this is not set, the property is undefined and will not be used.
       Use :meth:`~CaptionBarStyle.CaptionStyleUsed` to check if this style is used.


   .. method:: SetFirstColour(self, colour)

      Sets first colour for the caption bar.
      
      :param `colour`: a valid :class:`wx.Colour` object.
      
      :note: If this is not set, the colour property is undefined and will not be used.
       Use :meth:`~CaptionBarStyle.FirstColourUsed` to check if this style is used.


   .. method:: SetSecondColour(self, colour)

      Sets second colour for the caption bar.
      
      :param `colour`: a valid :class:`wx.Colour` object.
      
      :note: If this is not set, the colour property is undefined and will not be used.
       Use :meth:`~CaptionBarStyle.SecondColourUsed` to check if this style is used.


