Sophie

Sophie

distrib > Mandriva > cooker > i586 > by-pkgid > 76bdad05b5dca2a491582dbec0713d55 > files > 1006

libqwt-devel-6.0.1-2.i586.rpm

<!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>Qwt User&#39;s Guide: qwt_plot_canvas.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Qwt User's Guide&#160;<span id="projectnumber">6.0.1</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>qwt_plot_canvas.h</h1>  </div>
</div>
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* -*- mode: C++ ; c-file-style: &quot;stroustrup&quot; -*- *****************************</span>
<a name="l00002"></a>00002 <span class="comment"> * Qwt Widget Library</span>
<a name="l00003"></a>00003 <span class="comment"> * Copyright (C) 1997   Josef Wilgen</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (C) 2002   Uwe Rathmann</span>
<a name="l00005"></a>00005 <span class="comment"> *</span>
<a name="l00006"></a>00006 <span class="comment"> * This library is free software; you can redistribute it and/or</span>
<a name="l00007"></a>00007 <span class="comment"> * modify it under the terms of the Qwt License, Version 1.0</span>
<a name="l00008"></a>00008 <span class="comment"> *****************************************************************************/</span>
<a name="l00009"></a>00009 
<a name="l00010"></a>00010 <span class="preprocessor">#ifndef QWT_PLOT_CANVAS_H</span>
<a name="l00011"></a>00011 <span class="preprocessor"></span><span class="preprocessor">#define QWT_PLOT_CANVAS_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;qwt_global.h&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;qframe.h&gt;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;qpen.h&gt;</span>
<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;qpainterpath.h&gt;</span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;qbitmap.h&gt;</span>
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 <span class="keyword">class </span><a class="code" href="class_qwt_plot.html" title="A 2-D plotting widget.">QwtPlot</a>;
<a name="l00020"></a>00020 <span class="keyword">class </span>QPixmap;
<a name="l00021"></a>00021 
<a name="l00026"></a><a class="code" href="class_qwt_plot_canvas.html">00026</a> <span class="keyword">class </span>QWT_EXPORT <a class="code" href="class_qwt_plot_canvas.html" title="Canvas of a QwtPlot.">QwtPlotCanvas</a> : <span class="keyword">public</span> QFrame
<a name="l00027"></a>00027 {
<a name="l00028"></a>00028     Q_OBJECT
<a name="l00029"></a>00029 
<a name="l00030"></a>00030 <span class="keyword">public</span>:
<a name="l00031"></a>00031 
<a name="l00039"></a><a class="code" href="class_qwt_plot_canvas.html#a76066290edb594a71ee09be564563b0f">00039</a>     <span class="keyword">enum</span> <a class="code" href="class_qwt_plot_canvas.html#a76066290edb594a71ee09be564563b0f" title="Paint attributes.">PaintAttribute</a>
<a name="l00040"></a>00040     {
<a name="l00052"></a><a class="code" href="class_qwt_plot_canvas.html#a76066290edb594a71ee09be564563b0fa7b88a46e1414f6d904aa494c89d064f3">00052</a>         BackingStore = 1,
<a name="l00053"></a>00053 
<a name="l00069"></a><a class="code" href="class_qwt_plot_canvas.html#a76066290edb594a71ee09be564563b0fa1d10fbb2b1fc3323e8597597684b1f9f">00069</a>         Opaque       = 2,
<a name="l00070"></a>00070 
<a name="l00086"></a><a class="code" href="class_qwt_plot_canvas.html#a76066290edb594a71ee09be564563b0fa2a2fee2c1807f8306850e15977bacb70">00086</a>         HackStyledBackground = 4,
<a name="l00087"></a>00087 
<a name="l00094"></a><a class="code" href="class_qwt_plot_canvas.html#a76066290edb594a71ee09be564563b0fa91fb95b7ec380cc5d517195c2ae6368f">00094</a>         ImmediatePaint = 8
<a name="l00095"></a>00095     };
<a name="l00096"></a>00096 
<a name="l00098"></a><a class="code" href="class_qwt_plot_canvas.html#ac007a0126efb62443e52905d3157102d">00098</a>     <span class="keyword">typedef</span> QFlags&lt;PaintAttribute&gt; <a class="code" href="class_qwt_plot_canvas.html#ac007a0126efb62443e52905d3157102d" title="Paint attributes.">PaintAttributes</a>;
<a name="l00099"></a>00099 
<a name="l00118"></a><a class="code" href="class_qwt_plot_canvas.html#a89b44e4c28038a674ce211fe9ac2d7be">00118</a>     <span class="keyword">enum</span> <a class="code" href="class_qwt_plot_canvas.html#a89b44e4c28038a674ce211fe9ac2d7be" title="Focus indicator.">FocusIndicator</a>
<a name="l00119"></a>00119     {
<a name="l00120"></a>00120         NoFocusIndicator,
<a name="l00121"></a>00121         CanvasFocusIndicator,
<a name="l00122"></a>00122         ItemFocusIndicator
<a name="l00123"></a>00123     };
<a name="l00124"></a>00124 
<a name="l00125"></a>00125     <span class="keyword">explicit</span> <a class="code" href="class_qwt_plot_canvas.html" title="Canvas of a QwtPlot.">QwtPlotCanvas</a>( <a class="code" href="class_qwt_plot.html" title="A 2-D plotting widget.">QwtPlot</a> * );
<a name="l00126"></a>00126     <span class="keyword">virtual</span> ~<a class="code" href="class_qwt_plot_canvas.html" title="Canvas of a QwtPlot.">QwtPlotCanvas</a>();
<a name="l00127"></a>00127 
<a name="l00128"></a>00128     <a class="code" href="class_qwt_plot.html" title="A 2-D plotting widget.">QwtPlot</a> *plot();
<a name="l00129"></a>00129     <span class="keyword">const</span> <a class="code" href="class_qwt_plot.html" title="A 2-D plotting widget.">QwtPlot</a> *plot() <span class="keyword">const</span>;
<a name="l00130"></a>00130 
<a name="l00131"></a>00131     <span class="keywordtype">void</span> setFocusIndicator( FocusIndicator );
<a name="l00132"></a>00132     FocusIndicator focusIndicator() <span class="keyword">const</span>;
<a name="l00133"></a>00133 
<a name="l00134"></a>00134     <span class="keywordtype">void</span> setBorderRadius( <span class="keywordtype">double</span> );
<a name="l00135"></a>00135     <span class="keywordtype">double</span> borderRadius() <span class="keyword">const</span>;
<a name="l00136"></a>00136 
<a name="l00137"></a>00137     QPainterPath borderPath( <span class="keyword">const</span> QRect &amp;rect ) <span class="keyword">const</span>;
<a name="l00138"></a>00138     QBitmap borderMask( <span class="keyword">const</span> QSize &amp; ) <span class="keyword">const</span>;
<a name="l00139"></a>00139 
<a name="l00140"></a>00140     <span class="keywordtype">void</span> setPaintAttribute( PaintAttribute, <span class="keywordtype">bool</span> on = <span class="keyword">true</span> );
<a name="l00141"></a>00141     <span class="keywordtype">bool</span> testPaintAttribute( PaintAttribute ) <span class="keyword">const</span>;
<a name="l00142"></a>00142 
<a name="l00143"></a>00143     <span class="keyword">const</span> QPixmap *backingStore() <span class="keyword">const</span>;
<a name="l00144"></a>00144     <span class="keywordtype">void</span> invalidateBackingStore();
<a name="l00145"></a>00145 
<a name="l00146"></a>00146     <span class="keywordtype">void</span> replot();
<a name="l00147"></a>00147 
<a name="l00148"></a>00148     <span class="keyword">virtual</span> <span class="keywordtype">bool</span> event( QEvent * );
<a name="l00149"></a>00149 
<a name="l00150"></a>00150 <span class="keyword">protected</span>:
<a name="l00151"></a>00151     <span class="keyword">virtual</span> <span class="keywordtype">void</span> paintEvent( QPaintEvent * );
<a name="l00152"></a>00152     <span class="keyword">virtual</span> <span class="keywordtype">void</span> resizeEvent( QResizeEvent * );
<a name="l00153"></a>00153 
<a name="l00154"></a>00154     <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawFocusIndicator( QPainter * );
<a name="l00155"></a>00155     <span class="keyword">virtual</span> <span class="keywordtype">void</span> drawBorder( QPainter * );
<a name="l00156"></a>00156 
<a name="l00157"></a>00157     <span class="keywordtype">void</span> updateStyleSheetInfo();
<a name="l00158"></a>00158 
<a name="l00159"></a>00159 <span class="keyword">private</span>:
<a name="l00160"></a>00160     <span class="keywordtype">void</span> drawCanvas( QPainter *, <span class="keywordtype">bool</span> withBackground );
<a name="l00161"></a>00161 
<a name="l00162"></a>00162     <span class="keyword">class </span>PrivateData;
<a name="l00163"></a>00163     PrivateData *d_data;
<a name="l00164"></a>00164 };
<a name="l00165"></a>00165 
<a name="l00166"></a>00166 Q_DECLARE_OPERATORS_FOR_FLAGS( <a class="code" href="class_qwt_plot_canvas.html#ac007a0126efb62443e52905d3157102d" title="Paint attributes.">QwtPlotCanvas::PaintAttributes</a> )
<a name="l00167"></a>00167 
<a name="l00168"></a>00168 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>