Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > 28b9e36e96ce34b2567ae5b47a27b2c5 > files > 1271

python-qt4-doc-4.10.3-3.mga4.noarch.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QWebPage.ViewportAttributes Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QWebPage.ViewportAttributes Class Reference<br /><sup><sup>[<a href="qtwebkit.html">QtWebKit</a> module]</sup></sup></h1><p>The QWebPage.ViewportAttributes class describes hints that can
be applied to a viewport. <a href="#details">More...</a></p>

<h3>Methods</h3><ul><li><div class="fn" /><b><a href="qwebpage-viewportattributes.html#ViewportAttributes">__init__</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qwebpage-viewportattributes.html#ViewportAttributes-2">__init__</a></b> (<i>self</i>, ViewportAttributes&#160;<i>other</i>)</li><li><div class="fn" />float <b><a href="qwebpage-viewportattributes.html#devicePixelRatio">devicePixelRatio</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qwebpage-viewportattributes.html#initialScaleFactor">initialScaleFactor</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qwebpage-viewportattributes.html#isUserScalable">isUserScalable</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qwebpage-viewportattributes.html#isValid">isValid</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qwebpage-viewportattributes.html#maximumScaleFactor">maximumScaleFactor</a></b> (<i>self</i>)</li><li><div class="fn" />float <b><a href="qwebpage-viewportattributes.html#minimumScaleFactor">minimumScaleFactor</a></b> (<i>self</i>)</li><li><div class="fn" />QSize <b><a href="qwebpage-viewportattributes.html#size">size</a></b> (<i>self</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QWebPage.ViewportAttributes class describes hints that can
be applied to a viewport.</p>
<p>QWebPage.ViewportAttributes provides a description of a
viewport, such as viewport geometry, initial scale factor with
limits, plus information about whether a user should be able to
scale the contents in the viewport or not, ie. by zooming.</p>
<p>ViewportAttributes can be set by a web author using the viewport
meta tag extension, documented at <a href="http://developer.apple.com/safari/library/documentation/appleapplications/reference/safariwebcontent/usingtheviewport/usingtheviewport.html">
Safari Reference Library: Using the Viewport Meta Tag</a>.</p>
<p>All values might not be set, as such when dealing with the
hints, the developer needs to check whether the values are valid.
Negative values denote an invalid qreal value.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="ViewportAttributes" />ViewportAttributes.__init__ (<i>self</i>)</h3><p>Constructs an empty <a href="qwebpage-viewportattributes.html">QWebPage.ViewportAttributes</a>.</p>


<h3 class="fn"><a name="ViewportAttributes-2" />ViewportAttributes.__init__ (<i>self</i>, <a href="qwebpage-viewportattributes.html">ViewportAttributes</a>&#160;<i>other</i>)</h3><p>Constructs a <a href="qwebpage-viewportattributes.html">QWebPage.ViewportAttributes</a>
which is a copy from <i>other</i> .</p>


<h3 class="fn"><a name="devicePixelRatio" />float ViewportAttributes.devicePixelRatio (<i>self</i>)</h3><h3 class="fn"><a name="initialScaleFactor" />float ViewportAttributes.initialScaleFactor (<i>self</i>)</h3><p>Returns the initial scale of the viewport as a multiplier.</p>


<h3 class="fn"><a name="isUserScalable" />bool ViewportAttributes.isUserScalable (<i>self</i>)</h3><p>Determines whether or not the scale can be modified by the
user.</p>


<h3 class="fn"><a name="isValid" />bool ViewportAttributes.isValid (<i>self</i>)</h3><p>Returns whether this is a valid <a href="qwebpage-viewportattributes.html">ViewportAttributes</a> or
not.</p>
<p>An invalid <a href="qwebpage-viewportattributes.html">ViewportAttributes</a> will have
an empty <a href="qsize.html">QSize</a>, negative values for scale
factors and true for the boolean isUserScalable.</p>


<h3 class="fn"><a name="maximumScaleFactor" />float ViewportAttributes.maximumScaleFactor (<i>self</i>)</h3><p>Returns the maximum scale value of the viewport as a
multiplier.</p>


<h3 class="fn"><a name="minimumScaleFactor" />float ViewportAttributes.minimumScaleFactor (<i>self</i>)</h3><p>Returns the minimum scale value of the viewport as a
multiplier.</p>


<h3 class="fn"><a name="size" /><a href="qsize.html">QSize</a> ViewportAttributes.size (<i>self</i>)</h3><p>Returns the size of the viewport.</p>


<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.10.3 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt&#160;4.8.5</td></tr></table></div></address></body></html>