File: wx.lib.agw.artmanager.RendererBase.txt

package info (click to toggle)
wxpython4.0 4.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 211,112 kB
  • sloc: cpp: 888,355; python: 223,130; makefile: 52,087; ansic: 45,780; sh: 3,012; xml: 1,534; perl: 264
file content (148 lines) | stat: -rw-r--r-- 5,385 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
.. wxPython Phoenix documentation

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

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

.. include:: headings.inc

.. currentmodule:: wx.lib.agw.artmanager

.. highlight:: python



.. _wx.lib.agw.artmanager.RendererBase:

==========================================================================================================================================
|phoenix_title|  **wx.lib.agw.artmanager.RendererBase**
==========================================================================================================================================

Base class for all theme renderers. 



|

|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>RendererBase</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.artmanager.RendererBase_inheritance.png" alt="Inheritance diagram of RendererBase" 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.lib.agw.artmanager.RendererBase.html" title="wx.lib.agw.artmanager.RendererBase" alt="" coords="5,5,261,35"/> </map> 
   </p>

|


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

:class:`wx.lib.agw.artmanager.RendererMSOffice2007`, :class:`wx.lib.agw.artmanager.RendererXP`

|


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

================================================================================ ================================================================================
:meth:`~wx.lib.agw.artmanager.RendererBase.__init__`                             Default class constructor. Intentionally empty.
:meth:`~wx.lib.agw.artmanager.RendererBase.DrawBitmapArea`                       Draws the area below a bitmap and the bitmap itself using a gradient shading.
:meth:`~wx.lib.agw.artmanager.RendererBase.DrawBitmapBorders`                    Draws borders for a bitmap.
:meth:`~wx.lib.agw.artmanager.RendererBase.DrawButtonBorders`                    Draws borders for buttons.
:meth:`~wx.lib.agw.artmanager.RendererBase.GetFont`                              Returns the font used for text.
:meth:`~wx.lib.agw.artmanager.RendererBase.GetMenuFaceColour`                    Returns the foreground colour for the menu.
:meth:`~wx.lib.agw.artmanager.RendererBase.GetTextColourDisable`                 Returns the colour used for text colour when disabled.
:meth:`~wx.lib.agw.artmanager.RendererBase.GetTextColourEnable`                  Returns the colour used for text colour when enabled.
================================================================================ ================================================================================


|


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


.. class:: RendererBase(object)

   Base class for all theme renderers. 

   .. method:: __init__(self)

      Default class constructor. Intentionally empty. 


   .. method:: DrawBitmapArea(self, dc, xpm_name, rect, baseColour, flipSide)

      Draws the area below a bitmap and the bitmap itself using a gradient shading.
      
      :param `dc`: an instance of :class:`wx.DC`;
      :param string `xpm_name`: a name of a XPM bitmap;
      :param wx.Rect `rect`: the bitmap client rectangle;
      :param `baseColour`: a valid :class:`wx.Colour` for the bitmap background;
      :param bool `flipSide`: ``True`` to flip the gradient direction, ``False`` otherwise.


   .. method:: DrawBitmapBorders(self, dc, rect, penColour, bitmapBorderUpperLeftPen)

      Draws borders for a bitmap.
      
      :param `dc`: an instance of :class:`wx.DC`;
      :param wx.Rect `rect`: the button's client rectangle;
      :param `penColour`: a valid :class:`wx.Colour` for the pen border;
      :param `bitmapBorderUpperLeftPen`: a valid :class:`wx.Colour` for the pen upper
       left border.


   .. method:: DrawButtonBorders(self, dc, rect, penColour, brushColour)

      Draws borders for buttons.
      
      :param `dc`: an instance of :class:`wx.DC`;
      :param wx.Rect `rect`: the button's client rectangle;
      :param `penColour`: a valid :class:`wx.Colour` for the pen border;
      :param `brushColour`: a valid :class:`wx.Colour` for the brush.


   .. method:: GetFont(self)

      Returns the font used for text.
      
      :return: An instance of :class:`wx.Font`.


   .. method:: GetMenuFaceColour(self)

      Returns the foreground colour for the menu.
      
      :return: An instance of :class:`wx.Colour`.


   .. method:: GetTextColourDisable(self)

      Returns the colour used for text colour when disabled.
      
      :return: An instance of :class:`wx.Colour`.


   .. method:: GetTextColourEnable(self)

      Returns the colour used for text colour when enabled.
      
      :return: An instance of :class:`wx.Colour`.