campo-sirio/libraries/wxPG/propgrid/docs/html/classwxPGCellRenderer.htm
mtollari 4db94043cb Patch level : 12.0 no-patch
Files correlati     : 
Commento            : Spostamento in libraries delle librerie esterne di Campo per una maggiore pulizia e organizzazione

git-svn-id: svn://10.65.10.50/branches/R_10_00@24150 c028cbd2-c16b-5b4b-a496-9718f37d4682
2017-10-26 09:11:15 +00:00

249 lines
16 KiB
HTML

<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>wxPropertyGrid: wxPGCellRenderer Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.htm"><span>Main&nbsp;Page</span></a></li>
<li><a href="pages.htm"><span>Related&nbsp;Pages</span></a></li>
<li><a href="modules.htm"><span>Modules</span></a></li>
<li class="current"><a href="annotated.htm"><span>Classes</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<img id="MSearchSelect" src="search/search.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</div>
</li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.htm"><span>Class&nbsp;List</span></a></li>
<li><a href="classes.htm"><span>Class&nbsp;Index</span></a></li>
<li><a href="hierarchy.htm"><span>Class&nbsp;Hierarchy</span></a></li>
<li><a href="functions.htm"><span>Class&nbsp;Members</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>wxPGCellRenderer Class Reference</h1><!-- doxytag: class="wxPGCellRenderer" -->
<p>Base class for <a class="el" href="classwxPropertyGrid.htm" title="wxPropertyGrid is a specialized two-column grid for editing properties such as strings...">wxPropertyGrid</a> cell renderers.
<a href="#_details">More...</a></p>
<p><code>#include &lt;propgrid.h&gt;</code></p>
<div class="dynheader">
Inheritance diagram for wxPGCellRenderer:</div>
<div class="dynsection">
<div class="center">
<img src="classwxPGCellRenderer.png" usemap="#wxPGCellRenderer_map" alt=""/>
<map id="wxPGCellRenderer_map" name="wxPGCellRenderer_map">
<area href="classwxPGDefaultRenderer.htm" alt="wxPGDefaultRenderer" shape="rect" coords="0,56,137,80"/>
</map>
</div>
</div>
<p><a href="classwxPGCellRenderer-members.htm">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom">{ <b>Selected</b> = 0x00010000,
<b>Control</b> = 0x00020000
}</td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8a72e9e3941a5c0cac62b0310cb59c59"></a><!-- doxytag: member="wxPGCellRenderer::DecRef" ref="a8a72e9e3941a5c0cac62b0310cb59c59" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>DecRef</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab3392d6c7632679556592f35327cd1b7"></a><!-- doxytag: member="wxPGCellRenderer::DrawCaptionSelectionRect" ref="ab3392d6c7632679556592f35327cd1b7" args="(wxDC &amp;dc, int x, int y, int w, int h) const " -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwxPGCellRenderer.htm#ab3392d6c7632679556592f35327cd1b7">DrawCaptionSelectionRect</a> (wxDC &amp;dc, int x, int y, int w, int h) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Paints property category selection rectangle. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a02540a1d28646ef65cfd725cf361e25c"></a><!-- doxytag: member="wxPGCellRenderer::DrawEditorValue" ref="a02540a1d28646ef65cfd725cf361e25c" args="(wxDC &amp;dc, const wxRect &amp;rect, int xOffset, const wxString &amp;text, wxPGProperty *property, const wxPGEditor *editor) const " -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwxPGCellRenderer.htm#a02540a1d28646ef65cfd725cf361e25c">DrawEditorValue</a> (wxDC &amp;dc, const wxRect &amp;rect, int xOffset, const wxString &amp;text, <a class="el" href="classwxPGProperty.htm">wxPGProperty</a> *property, const <a class="el" href="classwxPGEditor.htm">wxPGEditor</a> *editor) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Utility to draw editor's value, or vertically aligned text if editor is NULL. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9bbaf3f6ea726963e41b6fcd5c9ab75b"></a><!-- doxytag: member="wxPGCellRenderer::DrawText" ref="a9bbaf3f6ea726963e41b6fcd5c9ab75b" args="(wxDC &amp;dc, const wxRect &amp;rect, int imageWidth, const wxString &amp;text) const " -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwxPGCellRenderer.htm#a9bbaf3f6ea726963e41b6fcd5c9ab75b">DrawText</a> (wxDC &amp;dc, const wxRect &amp;rect, int imageWidth, const wxString &amp;text) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Utility to draw vertically centered text. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual wxSize&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwxPGCellRenderer.htm#a6137ae0ca896857570eb2b6bf650e616">GetImageSize</a> (const <a class="el" href="classwxPGProperty.htm">wxPGProperty</a> *property, int column, int item) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns size of the image in front of the editable area. <a href="#a6137ae0ca896857570eb2b6bf650e616"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab1c82ffe9fe710c94cf5393494358b87"></a><!-- doxytag: member="wxPGCellRenderer::IncRef" ref="ab1c82ffe9fe710c94cf5393494358b87" args="()" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>IncRef</b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwxPGCellRenderer.htm#a0698edaf98659fc2cf68ffede73f3208">PostDrawCell</a> (wxDC &amp;dc, const <a class="el" href="classwxPropertyGrid.htm">wxPropertyGrid</a> *propGrid, const <a class="el" href="classwxPGCell.htm">wxPGCell</a> &amp;cell, int flags) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Utility to be called after drawing is done, to revert whatever changes <a class="el" href="classwxPGCellRenderer.htm#abc9a804b61c0b1d5372d0e84ab451e93" title="Utility to render cell bitmap and set text colour plus bg brush colour.">PreDrawCell()</a> did. <a href="#a0698edaf98659fc2cf68ffede73f3208"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwxPGCellRenderer.htm#abc9a804b61c0b1d5372d0e84ab451e93">PreDrawCell</a> (wxDC &amp;dc, const wxRect &amp;rect, const <a class="el" href="classwxPGCell.htm">wxPGCell</a> &amp;cell, int flags) const </td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Utility to render cell bitmap and set text colour plus bg brush colour. <a href="#abc9a804b61c0b1d5372d0e84ab451e93"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6d794a9cb729733576dc62bb4c6483c4"></a><!-- doxytag: member="wxPGCellRenderer::Render" ref="a6d794a9cb729733576dc62bb4c6483c4" args="(wxDC &amp;dc, const wxRect &amp;rect, const wxPropertyGrid *propertyGrid, wxPGProperty *property, int column, int item, int flags) const =0" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><b>Render</b> (wxDC &amp;dc, const wxRect &amp;rect, const <a class="el" href="classwxPropertyGrid.htm">wxPropertyGrid</a> *propertyGrid, <a class="el" href="classwxPGProperty.htm">wxPGProperty</a> *property, int column, int item, int flags) const =0</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a67dae5bb51714064e1309dab67e41b95"></a><!-- doxytag: member="wxPGCellRenderer::wxPGCellRenderer" ref="a67dae5bb51714064e1309dab67e41b95" args="(unsigned int refCount=1)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><b>wxPGCellRenderer</b> (unsigned int refCount=1)</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Base class for <a class="el" href="classwxPropertyGrid.htm" title="wxPropertyGrid is a specialized two-column grid for editing properties such as strings...">wxPropertyGrid</a> cell renderers. </p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a6137ae0ca896857570eb2b6bf650e616"></a><!-- doxytag: member="wxPGCellRenderer::GetImageSize" ref="a6137ae0ca896857570eb2b6bf650e616" args="(const wxPGProperty *property, int column, int item) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual wxSize wxPGCellRenderer::GetImageSize </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classwxPGProperty.htm">wxPGProperty</a> *&nbsp;</td>
<td class="paramname"> <em>property</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&nbsp;</td>
<td class="paramname"> <em>column</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&nbsp;</td>
<td class="paramname"> <em>item</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Returns size of the image in front of the editable area. </p>
<dl class="remark"><dt><b>Remarks:</b></dt><dd>If property is NULL, then this call is for a custom value. In that case the item is index to wxPropertyGrid's custom values. </dd></dl>
<p>Reimplemented in <a class="el" href="classwxPGDefaultRenderer.htm#a472a28aa84ffa9f8edc79f3229526b80">wxPGDefaultRenderer</a>.</p>
</div>
</div>
<a class="anchor" id="a0698edaf98659fc2cf68ffede73f3208"></a><!-- doxytag: member="wxPGCellRenderer::PostDrawCell" ref="a0698edaf98659fc2cf68ffede73f3208" args="(wxDC &amp;dc, const wxPropertyGrid *propGrid, const wxPGCell &amp;cell, int flags) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void wxPGCellRenderer::PostDrawCell </td>
<td>(</td>
<td class="paramtype">wxDC &amp;&nbsp;</td>
<td class="paramname"> <em>dc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classwxPropertyGrid.htm">wxPropertyGrid</a> *&nbsp;</td>
<td class="paramname"> <em>propGrid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classwxPGCell.htm">wxPGCell</a> &amp;&nbsp;</td>
<td class="paramname"> <em>cell</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&nbsp;</td>
<td class="paramname"> <em>flags</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Utility to be called after drawing is done, to revert whatever changes <a class="el" href="classwxPGCellRenderer.htm#abc9a804b61c0b1d5372d0e84ab451e93" title="Utility to render cell bitmap and set text colour plus bg brush colour.">PreDrawCell()</a> did. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>flags</em>&nbsp;</td><td>Same as those passed to <a class="el" href="classwxPGCellRenderer.htm#abc9a804b61c0b1d5372d0e84ab451e93" title="Utility to render cell bitmap and set text colour plus bg brush colour.">PreDrawCell()</a>. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="abc9a804b61c0b1d5372d0e84ab451e93"></a><!-- doxytag: member="wxPGCellRenderer::PreDrawCell" ref="abc9a804b61c0b1d5372d0e84ab451e93" args="(wxDC &amp;dc, const wxRect &amp;rect, const wxPGCell &amp;cell, int flags) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int wxPGCellRenderer::PreDrawCell </td>
<td>(</td>
<td class="paramtype">wxDC &amp;&nbsp;</td>
<td class="paramname"> <em>dc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const wxRect &amp;&nbsp;</td>
<td class="paramname"> <em>rect</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="classwxPGCell.htm">wxPGCell</a> &amp;&nbsp;</td>
<td class="paramname"> <em>cell</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int&nbsp;</td>
<td class="paramname"> <em>flags</em></td><td>&nbsp;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Utility to render cell bitmap and set text colour plus bg brush colour. </p>
<p>Returns image width that, for instance, can be passed to DrawText. </p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>propgrid.h</li>
</ul>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Enumerator</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Sun Aug 22 12:42:14 2010 for wxPropertyGrid by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>