The QWebPage::ViewportAttributes class describes hints that can be applied to a viewport. More...
This class was introduced in qtwebkit 4.7.
ViewportAttributes () | |
ViewportAttributes ( const QWebPage::ViewportAttributes & other ) | |
~ViewportAttributes () | |
qreal | devicePixelRatio () const |
qreal | initialScaleFactor () const |
bool | isUserScalable () const |
bool | isValid () const |
qreal | maximumScaleFactor () const |
qreal | minimumScaleFactor () const |
QSize | size () const |
QWebPage::ViewportAttributes & | operator= ( const QWebPage::ViewportAttributes & other ) |
The QWebPage::ViewportAttributes class describes hints that can be applied to a viewport.
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.
ViewportAttributes can be set by a web author using the viewport meta tag extension, documented at Safari Reference Library: Using the Viewport Meta Tag.
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.
Constructs an empty QWebPage::ViewportAttributes.
Constructs a QWebPage::ViewportAttributes which is a copy from other .
Destroys the QWebPage::ViewportAttributes.
Returns the initial scale of the viewport as a multiplier.
Determines whether or not the scale can be modified by the user.
Returns whether this is a valid ViewportAttributes or not.
An invalid ViewportAttributes will have an empty QSize, negative values for scale factors and true for the boolean isUserScalable.
Returns the maximum scale value of the viewport as a multiplier.
Returns the minimum scale value of the viewport as a multiplier.
Returns the size of the viewport.
Assigns the given QWebPage::ViewportAttributes to this viewport hints and returns a reference to this.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.