1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qmargins.cpp -->
<title>Qt 4.8: QMargins Class Reference</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="content">
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
</div>
<div class="breadcrumb toolblock">
<ul>
<li class="first"><a href="index.html">Home</a></li>
<!-- Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li><a href="qtcore.html">QtCore</a></li>
<li>QMargins</li>
</ul>
</div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#related-non-members">Related Non-Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QMargins Class Reference</h1>
<!-- $$$QMargins-brief -->
<p>The QMargins class defines the four margins of a rectangle. <a href="#details">More...</a></p>
<!-- @@@QMargins -->
<pre class="cpp"> <span class="preprocessor">#include <QMargins></span></pre><p>This class was introduced in Qt 4.6.</p>
<ul>
<li><a href="qmargins-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmargins.html#QMargins">QMargins</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qmargins.html#QMargins-2">QMargins</a></b> ( int <i>left</i>, int <i>top</i>, int <i>right</i>, int <i>bottom</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmargins.html#bottom">bottom</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmargins.html#isNull">isNull</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmargins.html#left">left</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmargins.html#right">right</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmargins.html#setBottom">setBottom</a></b> ( int <i>bottom</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmargins.html#setLeft">setLeft</a></b> ( int <i>left</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmargins.html#setRight">setRight</a></b> ( int <i>right</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qmargins.html#setTop">setTop</a></b> ( int <i>Top</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qmargins.html#top">top</a></b> () const</td></tr>
</table>
<a name="related-non-members"></a>
<h2>Related Non-Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmargins.html#operator-not-eq-47">operator!=</a></b> ( const QMargins & <i>m1</i>, const QMargins & <i>m2</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qmargins.html#operator-eq-eq-70">operator==</a></b> ( const QMargins & <i>m1</i>, const QMargins & <i>m2</i> )</td></tr>
</table>
<a name="details"></a>
<!-- $$$QMargins-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QMargins class defines the four margins of a rectangle.</p>
<p>QMargin defines a set of four margins; left, top, right and bottom, that describe the size of the borders surrounding a rectangle.</p>
<p>The <a href="qmargins.html#isNull">isNull</a>() function returns true only if all margins are set to zero.</p>
<p>QMargin objects can be streamed as well as compared.</p>
</div>
<!-- @@@QMargins -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QMargins[overload1]$$$QMargins -->
<h3 class="fn"><a name="QMargins"></a>QMargins::<span class="name">QMargins</span> ()</h3>
<p>Constructs a margins object with all margins set to 0.</p>
<p><b>See also </b><a href="qmargins.html#isNull">isNull</a>().</p>
<!-- @@@QMargins -->
<!-- $$$QMargins$$$QMarginsintintintint -->
<h3 class="fn"><a name="QMargins-2"></a>QMargins::<span class="name">QMargins</span> ( <span class="type">int</span> <i>left</i>, <span class="type">int</span> <i>top</i>, <span class="type">int</span> <i>right</i>, <span class="type">int</span> <i>bottom</i> )</h3>
<p>Constructs margins with the given <i>left</i>, <i>top</i>, <i>right</i>, <i>bottom</i></p>
<p><b>See also </b><a href="qmargins.html#setLeft">setLeft</a>(), <a href="qmargins.html#setRight">setRight</a>(), <a href="qmargins.html#setTop">setTop</a>(), and <a href="qmargins.html#setBottom">setBottom</a>().</p>
<!-- @@@QMargins -->
<!-- $$$bottom[overload1]$$$bottom -->
<h3 class="fn"><a name="bottom"></a><span class="type">int</span> QMargins::<span class="name">bottom</span> () const</h3>
<p>Returns the bottom margin.</p>
<p><b>See also </b><a href="qmargins.html#setBottom">setBottom</a>().</p>
<!-- @@@bottom -->
<!-- $$$isNull[overload1]$$$isNull -->
<h3 class="fn"><a name="isNull"></a><span class="type">bool</span> QMargins::<span class="name">isNull</span> () const</h3>
<p>Returns true if all margins are is 0; otherwise returns false.</p>
<!-- @@@isNull -->
<!-- $$$left[overload1]$$$left -->
<h3 class="fn"><a name="left"></a><span class="type">int</span> QMargins::<span class="name">left</span> () const</h3>
<p>Returns the left margin.</p>
<p><b>See also </b><a href="qmargins.html#setLeft">setLeft</a>().</p>
<!-- @@@left -->
<!-- $$$right[overload1]$$$right -->
<h3 class="fn"><a name="right"></a><span class="type">int</span> QMargins::<span class="name">right</span> () const</h3>
<p>Returns the right margin.</p>
<p><b>See also </b><a href="qmargins.html#setRight">setRight</a>().</p>
<!-- @@@right -->
<!-- $$$setBottom[overload1]$$$setBottomint -->
<h3 class="fn"><a name="setBottom"></a><span class="type">void</span> QMargins::<span class="name">setBottom</span> ( <span class="type">int</span> <i>bottom</i> )</h3>
<p>Sets the bottom margin to <i>bottom</i>.</p>
<p><b>See also </b><a href="qmargins.html#bottom">bottom</a>().</p>
<!-- @@@setBottom -->
<!-- $$$setLeft[overload1]$$$setLeftint -->
<h3 class="fn"><a name="setLeft"></a><span class="type">void</span> QMargins::<span class="name">setLeft</span> ( <span class="type">int</span> <i>left</i> )</h3>
<p>Sets the left margin to <i>left</i>.</p>
<p><b>See also </b><a href="qmargins.html#left">left</a>().</p>
<!-- @@@setLeft -->
<!-- $$$setRight[overload1]$$$setRightint -->
<h3 class="fn"><a name="setRight"></a><span class="type">void</span> QMargins::<span class="name">setRight</span> ( <span class="type">int</span> <i>right</i> )</h3>
<p>Sets the right margin to <i>right</i>.</p>
<p><b>See also </b><a href="qmargins.html#right">right</a>().</p>
<!-- @@@setRight -->
<!-- $$$setTop[overload1]$$$setTopint -->
<h3 class="fn"><a name="setTop"></a><span class="type">void</span> QMargins::<span class="name">setTop</span> ( <span class="type">int</span> <i>Top</i> )</h3>
<p>Sets the Top margin to <i>Top</i>.</p>
<p><b>See also </b><a href="qmargins.html#top">top</a>().</p>
<!-- @@@setTop -->
<!-- $$$top[overload1]$$$top -->
<h3 class="fn"><a name="top"></a><span class="type">int</span> QMargins::<span class="name">top</span> () const</h3>
<p>Returns the top margin.</p>
<p><b>See also </b><a href="qmargins.html#setTop">setTop</a>().</p>
<!-- @@@top -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$operator!=$$$operator!=constQMargins&constQMargins& -->
<h3 class="fn"><a name="operator-not-eq-47"></a><span class="type">bool</span> <span class="name">operator!=</span> ( const <span class="type">QMargins</span> & <i>m1</i>, const <span class="type">QMargins</span> & <i>m2</i> )</h3>
<p>Returns true if <i>m1</i> and <i>m2</i> are different; otherwise returns false.</p>
<!-- @@@operator!= -->
<!-- $$$operator==$$$operator==constQMargins&constQMargins& -->
<h3 class="fn"><a name="operator-eq-eq-70"></a><span class="type">bool</span> <span class="name">operator==</span> ( const <span class="type">QMargins</span> & <i>m1</i>, const <span class="type">QMargins</span> & <i>m2</i> )</h3>
<p>Returns true if <i>m1</i> and <i>m2</i> are equal; otherwise returns false.</p>
<!-- @@@operator== -->
</div>
<div class="ft">
<span></span>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2012 Nokia Corporation and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.</p>
<br />
<p>
The documentation provided herein is licensed under the terms of the
<a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
License version 1.3</a> as published by the Free Software Foundation.</p>
<p>
Documentation sources may be obtained from <a href="http://www.qt-project.org">
www.qt-project.org</a>.</p>
<br />
<p>
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. <a title="Privacy Policy"
href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>
|