Documentation/Source/eric6.UI.PixmapCache.html

changeset 3673
e26d7d0c1088
child 6756
7556c951dce8
equal deleted inserted replaced
3670:f0cb7579c0b4 3673:e26d7d0c1088
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.UI.PixmapCache</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric6.UI.PixmapCache</h1>
23 <p>
24 Module implementing a pixmap cache for icons.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>pixCache</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#PixmapCache">PixmapCache</a></td>
34 <td>Class implementing a pixmap cache for icons.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr>
40 <td><a href="#addSearchPath">addSearchPath</a></td>
41 <td>Module function to add a path to the search path.</td>
42 </tr><tr>
43 <td><a href="#getCombinedIcon">getCombinedIcon</a></td>
44 <td>Module function to retrieve a symbolic link icon.</td>
45 </tr><tr>
46 <td><a href="#getIcon">getIcon</a></td>
47 <td>Module function to retrieve an icon.</td>
48 </tr><tr>
49 <td><a href="#getPixmap">getPixmap</a></td>
50 <td>Module function to retrieve a pixmap.</td>
51 </tr><tr>
52 <td><a href="#getSymlinkIcon">getSymlinkIcon</a></td>
53 <td>Module function to retrieve a symbolic link icon.</td>
54 </tr>
55 </table>
56 <hr /><hr />
57 <a NAME="PixmapCache" ID="PixmapCache"></a>
58 <h2>PixmapCache</h2>
59 <p>
60 Class implementing a pixmap cache for icons.
61 </p>
62 <h3>Derived from</h3>
63 object
64 <h3>Class Attributes</h3>
65 <table>
66 <tr><td>None</td></tr>
67 </table>
68 <h3>Class Methods</h3>
69 <table>
70 <tr><td>None</td></tr>
71 </table>
72 <h3>Methods</h3>
73 <table>
74 <tr>
75 <td><a href="#PixmapCache.__init__">PixmapCache</a></td>
76 <td>Constructor</td>
77 </tr><tr>
78 <td><a href="#PixmapCache.addSearchPath">addSearchPath</a></td>
79 <td>Public method to add a path to the search path.</td>
80 </tr><tr>
81 <td><a href="#PixmapCache.getPixmap">getPixmap</a></td>
82 <td>Public method to retrieve a pixmap.</td>
83 </tr>
84 </table>
85 <h3>Static Methods</h3>
86 <table>
87 <tr><td>None</td></tr>
88 </table>
89 <a NAME="PixmapCache.__init__" ID="PixmapCache.__init__"></a>
90 <h4>PixmapCache (Constructor)</h4>
91 <b>PixmapCache</b>(<i></i>)
92 <p>
93 Constructor
94 </p><a NAME="PixmapCache.addSearchPath" ID="PixmapCache.addSearchPath"></a>
95 <h4>PixmapCache.addSearchPath</h4>
96 <b>addSearchPath</b>(<i>path</i>)
97 <p>
98 Public method to add a path to the search path.
99 </p><dl>
100 <dt><i>path</i></dt>
101 <dd>
102 path to add (string)
103 </dd>
104 </dl><a NAME="PixmapCache.getPixmap" ID="PixmapCache.getPixmap"></a>
105 <h4>PixmapCache.getPixmap</h4>
106 <b>getPixmap</b>(<i>key</i>)
107 <p>
108 Public method to retrieve a pixmap.
109 </p><dl>
110 <dt><i>key</i></dt>
111 <dd>
112 name of the wanted pixmap (string)
113 </dd>
114 </dl><dl>
115 <dt>Returns:</dt>
116 <dd>
117 the requested pixmap (QPixmap)
118 </dd>
119 </dl>
120 <div align="right"><a href="#top">Up</a></div>
121 <hr /><hr />
122 <a NAME="addSearchPath" ID="addSearchPath"></a>
123 <h2>addSearchPath</h2>
124 <b>addSearchPath</b>(<i>path, cache=pixCache</i>)
125 <p>
126 Module function to add a path to the search path.
127 </p><dl>
128 <dt><i>path</i></dt>
129 <dd>
130 path to add (string)
131 </dd><dt><i>cache</i></dt>
132 <dd>
133 reference to the pixmap cache object (PixmapCache)
134 </dd>
135 </dl>
136 <div align="right"><a href="#top">Up</a></div>
137 <hr /><hr />
138 <a NAME="getCombinedIcon" ID="getCombinedIcon"></a>
139 <h2>getCombinedIcon</h2>
140 <b>getCombinedIcon</b>(<i>keys, cache=pixCache</i>)
141 <p>
142 Module function to retrieve a symbolic link icon.
143 </p><dl>
144 <dt><i>keys</i></dt>
145 <dd>
146 list of names of icons (string)
147 </dd><dt><i>cache</i></dt>
148 <dd>
149 reference to the pixmap cache object (PixmapCache)
150 </dd>
151 </dl><dl>
152 <dt>Returns:</dt>
153 <dd>
154 the requested icon (QIcon)
155 </dd>
156 </dl>
157 <div align="right"><a href="#top">Up</a></div>
158 <hr /><hr />
159 <a NAME="getIcon" ID="getIcon"></a>
160 <h2>getIcon</h2>
161 <b>getIcon</b>(<i>key, cache=pixCache</i>)
162 <p>
163 Module function to retrieve an icon.
164 </p><dl>
165 <dt><i>key</i></dt>
166 <dd>
167 name of the wanted icon (string)
168 </dd><dt><i>cache</i></dt>
169 <dd>
170 reference to the pixmap cache object (PixmapCache)
171 </dd>
172 </dl><dl>
173 <dt>Returns:</dt>
174 <dd>
175 the requested icon (QIcon)
176 </dd>
177 </dl>
178 <div align="right"><a href="#top">Up</a></div>
179 <hr /><hr />
180 <a NAME="getPixmap" ID="getPixmap"></a>
181 <h2>getPixmap</h2>
182 <b>getPixmap</b>(<i>key, cache=pixCache</i>)
183 <p>
184 Module function to retrieve a pixmap.
185 </p><dl>
186 <dt><i>key</i></dt>
187 <dd>
188 name of the wanted pixmap (string)
189 </dd><dt><i>cache</i></dt>
190 <dd>
191 reference to the pixmap cache object (PixmapCache)
192 </dd>
193 </dl><dl>
194 <dt>Returns:</dt>
195 <dd>
196 the requested pixmap (QPixmap)
197 </dd>
198 </dl>
199 <div align="right"><a href="#top">Up</a></div>
200 <hr /><hr />
201 <a NAME="getSymlinkIcon" ID="getSymlinkIcon"></a>
202 <h2>getSymlinkIcon</h2>
203 <b>getSymlinkIcon</b>(<i>key, cache=pixCache</i>)
204 <p>
205 Module function to retrieve a symbolic link icon.
206 </p><dl>
207 <dt><i>key</i></dt>
208 <dd>
209 name of the wanted icon (string)
210 </dd><dt><i>cache</i></dt>
211 <dd>
212 reference to the pixmap cache object (PixmapCache)
213 </dd>
214 </dl><dl>
215 <dt>Returns:</dt>
216 <dd>
217 the requested icon (QIcon)
218 </dd>
219 </dl>
220 <div align="right"><a href="#top">Up</a></div>
221 <hr />
222 </body></html>

eric ide

mercurial