Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 651

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_09) on Tue Aug 07 17:02:54 CEST 2007 -->
<TITLE>
QPaintDeviceInterface
</TITLE>

<META NAME="keywords" CONTENT="com.trolltech.qt.gui.QPaintDeviceInterface interface">

<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">

<SCRIPT type="text/javascript">
function windowTitle()
{
    parent.document.title="QPaintDeviceInterface";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>

</HEAD>

<BODY BGCOLOR="white" onload="windowTitle();">


<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPaintDevice.PaintDeviceMetric.html" title="enum in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPaintEngine.html" title="class in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QPaintDeviceInterface.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QPaintDeviceInterface.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.trolltech.qt.gui</FONT>
<BR>
Interface QPaintDeviceInterface</H2>
<DL>
<DT><B>All Superinterfaces:</B> <DD><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DD>
</DL>
<DL>
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../com/trolltech/qt/gui/QAbstractButton.html" title="class in com.trolltech.qt.gui">QAbstractButton</A>, <A HREF="../../../../com/trolltech/qt/gui/QAbstractItemView.html" title="class in com.trolltech.qt.gui">QAbstractItemView</A>, <A HREF="../../../../com/trolltech/qt/gui/QAbstractPageSetupDialog.html" title="class in com.trolltech.qt.gui">QAbstractPageSetupDialog</A>, <A HREF="../../../../com/trolltech/qt/gui/QAbstractPrintDialog.html" title="class in com.trolltech.qt.gui">QAbstractPrintDialog</A>, <A HREF="../../../../com/trolltech/qt/gui/QAbstractScrollArea.html" title="class in com.trolltech.qt.gui">QAbstractScrollArea</A>, <A HREF="../../../../com/trolltech/qt/gui/QAbstractSlider.html" title="class in com.trolltech.qt.gui">QAbstractSlider</A>, <A HREF="../../../../com/trolltech/qt/gui/QAbstractSpinBox.html" title="class in com.trolltech.qt.gui">QAbstractSpinBox</A>, <A HREF="../../../../com/trolltech/qt/gui/QBitmap.html" title="class in com.trolltech.qt.gui">QBitmap</A>, <A HREF="../../../../com/trolltech/qt/gui/QCalendarWidget.html" title="class in com.trolltech.qt.gui">QCalendarWidget</A>, <A HREF="../../../../com/trolltech/qt/gui/QCheckBox.html" title="class in com.trolltech.qt.gui">QCheckBox</A>, <A HREF="../../../../com/trolltech/qt/gui/QColorDialog.html" title="class in com.trolltech.qt.gui">QColorDialog</A>, <A HREF="../../../../com/trolltech/qt/gui/QColumnView.html" title="class in com.trolltech.qt.gui">QColumnView</A>, <A HREF="../../../../com/trolltech/qt/gui/QComboBox.html" title="class in com.trolltech.qt.gui">QComboBox</A>, <A HREF="../../../../com/trolltech/qt/gui/QDateEdit.html" title="class in com.trolltech.qt.gui">QDateEdit</A>, <A HREF="../../../../com/trolltech/qt/gui/QDateTimeEdit.html" title="class in com.trolltech.qt.gui">QDateTimeEdit</A>, <A HREF="../../../../com/trolltech/qt/gui/QDesktopWidget.html" title="class in com.trolltech.qt.gui">QDesktopWidget</A>, <A HREF="../../../../com/trolltech/qt/gui/QDial.html" title="class in com.trolltech.qt.gui">QDial</A>, <A HREF="../../../../com/trolltech/qt/gui/QDialog.html" title="class in com.trolltech.qt.gui">QDialog</A>, <A HREF="../../../../com/trolltech/qt/gui/QDialogButtonBox.html" title="class in com.trolltech.qt.gui">QDialogButtonBox</A>, <A HREF="../../../../com/trolltech/qt/gui/QDockWidget.html" title="class in com.trolltech.qt.gui">QDockWidget</A>, <A HREF="../../../../com/trolltech/qt/gui/QDoubleSpinBox.html" title="class in com.trolltech.qt.gui">QDoubleSpinBox</A>, <A HREF="../../../../com/trolltech/qt/gui/QErrorMessage.html" title="class in com.trolltech.qt.gui">QErrorMessage</A>, <A HREF="../../../../com/trolltech/qt/gui/QFileDialog.html" title="class in com.trolltech.qt.gui">QFileDialog</A>, <A HREF="../../../../com/trolltech/qt/gui/QFocusFrame.html" title="class in com.trolltech.qt.gui">QFocusFrame</A>, <A HREF="../../../../com/trolltech/qt/gui/QFontComboBox.html" title="class in com.trolltech.qt.gui">QFontComboBox</A>, <A HREF="../../../../com/trolltech/qt/gui/QFontDialog.html" title="class in com.trolltech.qt.gui">QFontDialog</A>, <A HREF="../../../../com/trolltech/qt/gui/QFrame.html" title="class in com.trolltech.qt.gui">QFrame</A>, <A HREF="../../../../com/trolltech/qt/opengl/QGLFramebufferObject.html" title="class in com.trolltech.qt.opengl">QGLFramebufferObject</A>, <A HREF="../../../../com/trolltech/qt/opengl/QGLPixelBuffer.html" title="class in com.trolltech.qt.opengl">QGLPixelBuffer</A>, <A HREF="../../../../com/trolltech/qt/opengl/QGLWidget.html" title="class in com.trolltech.qt.opengl">QGLWidget</A>, <A HREF="../../../../com/trolltech/qt/gui/QGraphicsView.html" title="class in com.trolltech.qt.gui">QGraphicsView</A>, <A HREF="../../../../com/trolltech/qt/gui/QGroupBox.html" title="class in com.trolltech.qt.gui">QGroupBox</A>, <A HREF="../../../../com/trolltech/qt/gui/QHeaderView.html" title="class in com.trolltech.qt.gui">QHeaderView</A>, <A HREF="../../../../com/trolltech/qt/gui/QImage.html" title="class in com.trolltech.qt.gui">QImage</A>, <A HREF="../../../../com/trolltech/qt/gui/QInputDialog.html" title="class in com.trolltech.qt.gui">QInputDialog</A>, <A HREF="../../../../com/trolltech/qt/gui/QLabel.html" title="class in com.trolltech.qt.gui">QLabel</A>, <A HREF="../../../../com/trolltech/qt/gui/QLCDNumber.html" title="class in com.trolltech.qt.gui">QLCDNumber</A>, <A HREF="../../../../com/trolltech/qt/gui/QLineEdit.html" title="class in com.trolltech.qt.gui">QLineEdit</A>, <A HREF="../../../../com/trolltech/qt/gui/QListView.html" title="class in com.trolltech.qt.gui">QListView</A>, <A HREF="../../../../com/trolltech/qt/gui/QListWidget.html" title="class in com.trolltech.qt.gui">QListWidget</A>, <A HREF="../../../../com/trolltech/qt/gui/QMainWindow.html" title="class in com.trolltech.qt.gui">QMainWindow</A>, <A HREF="../../../../com/trolltech/qt/gui/QMdiArea.html" title="class in com.trolltech.qt.gui">QMdiArea</A>, <A HREF="../../../../com/trolltech/qt/gui/QMdiSubWindow.html" title="class in com.trolltech.qt.gui">QMdiSubWindow</A>, <A HREF="../../../../com/trolltech/qt/gui/QMenu.html" title="class in com.trolltech.qt.gui">QMenu</A>, <A HREF="../../../../com/trolltech/qt/gui/QMenuBar.html" title="class in com.trolltech.qt.gui">QMenuBar</A>, <A HREF="../../../../com/trolltech/qt/gui/QMessageBox.html" title="class in com.trolltech.qt.gui">QMessageBox</A>, <A HREF="../../../../com/trolltech/qt/gui/QPageSetupDialog.html" title="class in com.trolltech.qt.gui">QPageSetupDialog</A>, <A HREF="../../../../com/trolltech/qt/gui/QPaintDevice.html" title="class in com.trolltech.qt.gui">QPaintDevice</A>, <A HREF="../../../../com/trolltech/qt/gui/QPicture.html" title="class in com.trolltech.qt.gui">QPicture</A>, <A HREF="../../../../com/trolltech/qt/gui/QPixmap.html" title="class in com.trolltech.qt.gui">QPixmap</A>, <A HREF="../../../../com/trolltech/qt/gui/QPrintDialog.html" title="class in com.trolltech.qt.gui">QPrintDialog</A>, <A HREF="../../../../com/trolltech/qt/gui/QPrinter.html" title="class in com.trolltech.qt.gui">QPrinter</A>, <A HREF="../../../../com/trolltech/qt/gui/QProgressBar.html" title="class in com.trolltech.qt.gui">QProgressBar</A>, <A HREF="../../../../com/trolltech/qt/gui/QProgressDialog.html" title="class in com.trolltech.qt.gui">QProgressDialog</A>, <A HREF="../../../../com/trolltech/qt/gui/QPushButton.html" title="class in com.trolltech.qt.gui">QPushButton</A>, <A HREF="../../../../com/trolltech/qt/gui/QRadioButton.html" title="class in com.trolltech.qt.gui">QRadioButton</A>, <A HREF="../../../../com/trolltech/qt/gui/QRubberBand.html" title="class in com.trolltech.qt.gui">QRubberBand</A>, <A HREF="../../../../com/trolltech/qt/gui/QScrollArea.html" title="class in com.trolltech.qt.gui">QScrollArea</A>, <A HREF="../../../../com/trolltech/qt/gui/QScrollBar.html" title="class in com.trolltech.qt.gui">QScrollBar</A>, <A HREF="../../../../com/trolltech/qt/gui/QSizeGrip.html" title="class in com.trolltech.qt.gui">QSizeGrip</A>, <A HREF="../../../../com/trolltech/qt/gui/QSlider.html" title="class in com.trolltech.qt.gui">QSlider</A>, <A HREF="../../../../com/trolltech/qt/gui/QSpinBox.html" title="class in com.trolltech.qt.gui">QSpinBox</A>, <A HREF="../../../../com/trolltech/qt/gui/QSplashScreen.html" title="class in com.trolltech.qt.gui">QSplashScreen</A>, <A HREF="../../../../com/trolltech/qt/gui/QSplitter.html" title="class in com.trolltech.qt.gui">QSplitter</A>, <A HREF="../../../../com/trolltech/qt/gui/QSplitterHandle.html" title="class in com.trolltech.qt.gui">QSplitterHandle</A>, <A HREF="../../../../com/trolltech/qt/gui/QStackedWidget.html" title="class in com.trolltech.qt.gui">QStackedWidget</A>, <A HREF="../../../../com/trolltech/qt/gui/QStatusBar.html" title="class in com.trolltech.qt.gui">QStatusBar</A>, <A HREF="../../../../com/trolltech/qt/svg/QSvgWidget.html" title="class in com.trolltech.qt.svg">QSvgWidget</A>, <A HREF="../../../../com/trolltech/qt/gui/QTabBar.html" title="class in com.trolltech.qt.gui">QTabBar</A>, <A HREF="../../../../com/trolltech/qt/gui/QTableView.html" title="class in com.trolltech.qt.gui">QTableView</A>, <A HREF="../../../../com/trolltech/qt/gui/QTableWidget.html" title="class in com.trolltech.qt.gui">QTableWidget</A>, <A HREF="../../../../com/trolltech/qt/gui/QTabWidget.html" title="class in com.trolltech.qt.gui">QTabWidget</A>, <A HREF="../../../../com/trolltech/qt/gui/QTextBrowser.html" title="class in com.trolltech.qt.gui">QTextBrowser</A>, <A HREF="../../../../com/trolltech/qt/gui/QTextEdit.html" title="class in com.trolltech.qt.gui">QTextEdit</A>, <A HREF="../../../../com/trolltech/qt/gui/QTimeEdit.html" title="class in com.trolltech.qt.gui">QTimeEdit</A>, <A HREF="../../../../com/trolltech/qt/gui/QToolBar.html" title="class in com.trolltech.qt.gui">QToolBar</A>, <A HREF="../../../../com/trolltech/qt/gui/QToolBox.html" title="class in com.trolltech.qt.gui">QToolBox</A>, <A HREF="../../../../com/trolltech/qt/gui/QToolButton.html" title="class in com.trolltech.qt.gui">QToolButton</A>, <A HREF="../../../../com/trolltech/qt/gui/QTreeView.html" title="class in com.trolltech.qt.gui">QTreeView</A>, <A HREF="../../../../com/trolltech/qt/gui/QTreeWidget.html" title="class in com.trolltech.qt.gui">QTreeWidget</A>, <A HREF="../../../../com/trolltech/qt/gui/QUndoView.html" title="class in com.trolltech.qt.gui">QUndoView</A>, <A HREF="../../../../com/trolltech/qt/gui/QWidget.html" title="class in com.trolltech.qt.gui">QWidget</A>, <A HREF="../../../../com/trolltech/qt/gui/QWizard.html" title="class in com.trolltech.qt.gui">QWizard</A>, <A HREF="../../../../com/trolltech/qt/gui/QWizardPage.html" title="class in com.trolltech.qt.gui">QWizardPage</A>, <A HREF="../../../../com/trolltech/qt/gui/QWorkspace.html" title="class in com.trolltech.qt.gui">QWorkspace</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public interface <B>QPaintDeviceInterface</B><DT>extends <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></DL>
</PRE>

<P>
<p>The <a href="QPaintDevice.html"><tt>QPaintDevice</tt></a> class is the base class of objects that can be painted.</p>
<p>A paint device is an abstraction of a two-dimensional space that can be drawn using a <a href="QPainter.html"><tt>QPainter</tt></a>. Its default coordinate system has its origin located at the top-left position. X increases to the right and Y increases downwards. The unit is one pixel.</p>
<p>The drawing capabilities of <a href="QPaintDevice.html"><tt>QPaintDevice</tt></a> are currently implemented by the <a href="QWidget.html"><tt>QWidget</tt></a>, <a href="QImage.html"><tt>QImage</tt></a>, <a href="QPixmap.html"><tt>QPixmap</tt></a>, <a href="%2E%2E/opengl/QGLPixelBuffer.html"><tt>QGLPixelBuffer</tt></a>, <a href="QPicture.html"><tt>QPicture</tt></a>, and <a href="QPrinter.html"><tt>QPrinter</tt></a> subclasses.</p>
<p>To implement support for a new backend, you must derive from <a href="QPaintDevice.html"><tt>QPaintDevice</tt></a> and reimplement the virtual <a href="QPaintDeviceInterface.html#paintEngine()"><tt>paintEngine</tt></a> function to tell <a href="QPainter.html"><tt>QPainter</tt></a> which paint engine should be used to draw on this particular device. Note that you also must create a corresponding paint engine to be able to draw on the device, i.e derive from <a href="QPaintEngine.html"><tt>QPaintEngine</tt></a> and reimplement its virtual functions.</p>
<p><b>Warning:</b> Qt requires that a <a href="QApplication.html"><tt>QApplication</tt></a> object exists before any paint devices can be created. Paint devices access window system resources, and these resources are not initialized before an application object is created.</p>
<p>The <a href="QPaintDevice.html"><tt>QPaintDevice</tt></a> class provides several functions returning the various device metrics: The <a href="QPaintDeviceInterface.html#depth()"><tt>depth</tt></a> function returns its bit depth (number of bit planes). The <a href="QPaintDeviceInterface.html#height()"><tt>height</tt></a> function returns its height in default coordinate system units (e.g&#x2e; pixels for <a href="QPixmap.html"><tt>QPixmap</tt></a> and <a href="QWidget.html"><tt>QWidget</tt></a>) while <a href="QPaintDeviceInterface.html#heightMM()"><tt>heightMM</tt></a> returns the height of the device in millimeters. Similiarily, the <a href="QPaintDeviceInterface.html#width()"><tt>width</tt></a> and <a href="QPaintDeviceInterface.html#widthMM()"><tt>widthMM</tt></a> functions return the width of the device in default coordinate system units and in millimeters, respectively. Alternatively, the protected <a href="QPaintDeviceInterface.html#metric(com.trolltech.qt.gui.QPaintDevice.PaintDeviceMetric)"><tt>metric</tt></a> function can be used to retrieve the metric information by specifying the desired PaintDeviceMetric as argument.</p>
<p>The <a href="QPaintDeviceInterface.html#logicalDpiX()"><tt>logicalDpiX</tt></a> and <a href="QPaintDeviceInterface.html#logicalDpiY()"><tt>logicalDpiY</tt></a> functions return the horizontal and vertical resolution of the device in dots per inch. The <a href="QPaintDeviceInterface.html#physicalDpiX()"><tt>physicalDpiX</tt></a> and <a href="QPaintDeviceInterface.html#physicalDpiY()"><tt>physicalDpiY</tt></a> functions also return the resolution of the device in dots per inch, but note that if the logical and vertical resolution differ, the corresponding <a href="QPaintEngine.html"><tt>QPaintEngine</tt></a> must handle the mapping. Finally, the <a href="QPaintDeviceInterface.html#numColors()"><tt>numColors</tt></a> function returns the number of different colors available for the paint device.</p>
<P>

<P>
<DL>
<DT><B>See Also:</B><DD><a href="QPaintEngine.html"><tt>QPaintEngine</tt></a>, 
<a href="QPainter.html"><tt>QPainter</tt></a>, 
<a href="%2E%2E/coordsys.html">The Coordinate System</tt></a>, 
<a href="%2E%2E/paintsystem.html">The Paint System</tt></a></DL>
<HR>

<P>

<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#depth()">depth</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the bit depth (number of bit planes) of the paint device.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#devType()">devType</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method is used internally by Qt Jambi.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#height()">height</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the height of the paint device in default coordinate system units (e.g&#x2e; pixels for <a href="QPixmap.html"><tt>QPixmap</tt></a> and <a href="QWidget.html"><tt>QWidget</tt></a>).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#heightMM()">heightMM</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the height of the paint device in millimeters.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#logicalDpiX()">logicalDpiX</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the horizontal resolution of the device in dots per inch, which is used when computing font sizes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#logicalDpiY()">logicalDpiY</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the vertical resolution of the device in dots per inch, which is used when computing font sizes.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#metric(com.trolltech.qt.gui.QPaintDevice.PaintDeviceMetric)">metric</A></B>(<A HREF="../../../../com/trolltech/qt/gui/QPaintDevice.PaintDeviceMetric.html" title="enum in com.trolltech.qt.gui">QPaintDevice.PaintDeviceMetric</A>&nbsp;metric)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the metric information for the given paint device <tt>metric</tt>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#numColors()">numColors</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of different colors available for the paint device.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPaintEngine.html" title="class in com.trolltech.qt.gui">QPaintEngine</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#paintEngine()">paintEngine</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a pointer to the paint engine used for drawing on the device.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#paintingActive()">paintingActive</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the device is currently being painted on, i.e&#x2e; someone has called QPainter::begin() but not yet called QPainter::end() for this device; otherwise returns false.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#physicalDpiX()">physicalDpiX</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the horizontal resolution of the device in dots per inch.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#physicalDpiY()">physicalDpiY</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the horizontal resolution of the device in dots per inch.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#width()">width</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the width of the paint device in default coordinate system units (e.g&#x2e; pixels for <a href="QPixmap.html"><tt>QPixmap</tt></a> and <a href="QWidget.html"><tt>QWidget</tt></a>).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/trolltech/qt/gui/QPaintDeviceInterface.html#widthMM()">widthMM</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the width of the paint device in millimeters.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.trolltech.qt.QtJambiInterface"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from interface com.trolltech.qt.<A HREF="../../../../com/trolltech/qt/QtJambiInterface.html" title="interface in com.trolltech.qt">QtJambiInterface</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#disableGarbageCollection()">disableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativeId()">nativeId</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#nativePointer()">nativePointer</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#reenableGarbageCollection()">reenableGarbageCollection</A>, <A HREF="../../../../com/trolltech/qt/QtJambiInterface.html#setJavaOwnership()">setJavaOwnership</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>

<A NAME="depth()"><!-- --></A><H3>
depth</H3>
<PRE>
int <B>depth</B>()</PRE>
<DL>
<DD><p>Returns the bit depth (number of bit planes) of the paint device.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="height()"><!-- --></A><H3>
height</H3>
<PRE>
int <B>height</B>()</PRE>
<DL>
<DD><p>Returns the height of the paint device in default coordinate system units (e.g&#x2e; pixels for <a href="QPixmap.html"><tt>QPixmap</tt></a> and <a href="QWidget.html"><tt>QWidget</tt></a>).</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPaintDeviceInterface.html#heightMM()"><tt>heightMM</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="heightMM()"><!-- --></A><H3>
heightMM</H3>
<PRE>
int <B>heightMM</B>()</PRE>
<DL>
<DD><p>Returns the height of the paint device in millimeters.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPaintDeviceInterface.html#height()"><tt>height</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="logicalDpiX()"><!-- --></A><H3>
logicalDpiX</H3>
<PRE>
int <B>logicalDpiX</B>()</PRE>
<DL>
<DD><p>Returns the horizontal resolution of the device in dots per inch, which is used when computing font sizes. For X11, this is usually the same as could be computed from <a href="QPaintDeviceInterface.html#widthMM()"><tt>widthMM</tt></a>, but it varies on Windows.</p>
<p>Note that if the <a href="QPaintDeviceInterface.html#logicalDpiX()"><tt>logicalDpiX</tt></a> doesn't equal the <a href="QPaintDeviceInterface.html#physicalDpiX()"><tt>physicalDpiX</tt></a>, the corresponding <a href="QPaintEngine.html"><tt>QPaintEngine</tt></a> must handle the resolution mapping.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPaintDeviceInterface.html#logicalDpiY()"><tt>logicalDpiY</tt></a>, 
<a href="QPaintDeviceInterface.html#physicalDpiX()"><tt>physicalDpiX</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="logicalDpiY()"><!-- --></A><H3>
logicalDpiY</H3>
<PRE>
int <B>logicalDpiY</B>()</PRE>
<DL>
<DD><p>Returns the vertical resolution of the device in dots per inch, which is used when computing font sizes. For X11, this is usually the same as could be computed from <a href="QPaintDeviceInterface.html#heightMM()"><tt>heightMM</tt></a>, but it varies on Windows.</p>
<p>Note that if the <a href="QPaintDeviceInterface.html#logicalDpiY()"><tt>logicalDpiY</tt></a> doesn't equal the <a href="QPaintDeviceInterface.html#physicalDpiY()"><tt>physicalDpiY</tt></a>, the corresponding <a href="QPaintEngine.html"><tt>QPaintEngine</tt></a> must handle the resolution mapping.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPaintDeviceInterface.html#logicalDpiX()"><tt>logicalDpiX</tt></a>, 
<a href="QPaintDeviceInterface.html#physicalDpiY()"><tt>physicalDpiY</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="numColors()"><!-- --></A><H3>
numColors</H3>
<PRE>
int <B>numColors</B>()</PRE>
<DL>
<DD><p>Returns the number of different colors available for the paint device. Since this value is an int, it will not be sufficient to represent the number of colors on 32 bit displays, in this case INT_MAX is returned instead.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="paintingActive()"><!-- --></A><H3>
paintingActive</H3>
<PRE>
boolean <B>paintingActive</B>()</PRE>
<DL>
<DD><p>Returns true if the device is currently being painted on, i.e&#x2e; someone has called QPainter::begin() but not yet called QPainter::end() for this device; otherwise returns false.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><tt>QPainter::isActive</tt></DL>
</DD>
</DL>
<HR>

<A NAME="physicalDpiX()"><!-- --></A><H3>
physicalDpiX</H3>
<PRE>
int <B>physicalDpiX</B>()</PRE>
<DL>
<DD><p>Returns the horizontal resolution of the device in dots per inch.</p>
<p>Note that if the <a href="QPaintDeviceInterface.html#physicalDpiX()"><tt>physicalDpiX</tt></a> doesn't equal the <a href="QPaintDeviceInterface.html#logicalDpiX()"><tt>logicalDpiX</tt></a>, the corresponding <a href="QPaintEngine.html"><tt>QPaintEngine</tt></a> must handle the resolution mapping.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPaintDeviceInterface.html#physicalDpiY()"><tt>physicalDpiY</tt></a>, 
<a href="QPaintDeviceInterface.html#logicalDpiX()"><tt>logicalDpiX</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="physicalDpiY()"><!-- --></A><H3>
physicalDpiY</H3>
<PRE>
int <B>physicalDpiY</B>()</PRE>
<DL>
<DD><p>Returns the horizontal resolution of the device in dots per inch.</p>
<p>Note that if the <a href="QPaintDeviceInterface.html#physicalDpiY()"><tt>physicalDpiY</tt></a> doesn't equal the <a href="QPaintDeviceInterface.html#logicalDpiY()"><tt>logicalDpiY</tt></a>, the corresponding <a href="QPaintEngine.html"><tt>QPaintEngine</tt></a> must handle the resolution mapping.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPaintDeviceInterface.html#physicalDpiX()"><tt>physicalDpiX</tt></a>, 
<a href="QPaintDeviceInterface.html#logicalDpiY()"><tt>logicalDpiY</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="width()"><!-- --></A><H3>
width</H3>
<PRE>
int <B>width</B>()</PRE>
<DL>
<DD><p>Returns the width of the paint device in default coordinate system units (e.g&#x2e; pixels for <a href="QPixmap.html"><tt>QPixmap</tt></a> and <a href="QWidget.html"><tt>QWidget</tt></a>).</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPaintDeviceInterface.html#widthMM()"><tt>widthMM</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="widthMM()"><!-- --></A><H3>
widthMM</H3>
<PRE>
int <B>widthMM</B>()</PRE>
<DL>
<DD><p>Returns the width of the paint device in millimeters.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><a href="QPaintDeviceInterface.html#width()"><tt>width</tt></a></DL>
</DD>
</DL>
<HR>

<A NAME="devType()"><!-- --></A><H3>
devType</H3>
<PRE>
int <B>devType</B>()</PRE>
<DL>
<DD><p>This method is used internally by Qt Jambi.
Do not use it in your applications.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="metric(com.trolltech.qt.gui.QPaintDevice.PaintDeviceMetric)"><!-- --></A><H3>
metric</H3>
<PRE>
int <B>metric</B>(<A HREF="../../../../com/trolltech/qt/gui/QPaintDevice.PaintDeviceMetric.html" title="enum in com.trolltech.qt.gui">QPaintDevice.PaintDeviceMetric</A>&nbsp;metric)</PRE>
<DL>
<DD><p>Returns the metric information for the given paint device <tt>metric</tt>.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><tt>PaintDeviceMetric</tt></DL>
</DD>
</DL>
<HR>

<A NAME="paintEngine()"><!-- --></A><H3>
paintEngine</H3>
<PRE>
<A HREF="../../../../com/trolltech/qt/gui/QPaintEngine.html" title="class in com.trolltech.qt.gui">QPaintEngine</A> <B>paintEngine</B>()</PRE>
<DL>
<DD><p>Returns a pointer to the paint engine used for drawing on the device.</p>
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>


<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPaintDevice.PaintDeviceMetric.html" title="enum in com.trolltech.qt.gui"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../com/trolltech/qt/gui/QPaintEngine.html" title="class in com.trolltech.qt.gui"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../../index.html?com/trolltech/qt/gui/QPaintDeviceInterface.html" target="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="QPaintDeviceInterface.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT type="text/javascript">
  <!--
  if(window==top) {
    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  }
  //-->
</SCRIPT>
<NOSCRIPT>
  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>


</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->

<HR>

</BODY>
</HTML>