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
|
<?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" />
<!-- qplatformcursor_qpa.cpp -->
<title>Qt 4.8: QPlatformCursorImage 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="qtgui.html">QtGui</a></li>
<li>QPlatformCursorImage</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="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QPlatformCursorImage Class Reference</h1>
<!-- $$$QPlatformCursorImage-brief -->
<p>The QPlatformCursorImage class provides a set of graphics intended to be used as cursors. <a href="#details">More...</a></p>
<!-- @@@QPlatformCursorImage -->
<pre class="cpp"> <span class="preprocessor">#include <QPlatformCursorImage></span></pre><p>This class was introduced in Qt 4.8.</p>
<ul>
<li><a href="qplatformcursorimage-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="qplatformcursorimage.html#QPlatformCursorImage">QPlatformCursorImage</a></b> ( const uchar * <i>data</i>, const uchar * <i>mask</i>, int <i>width</i>, int <i>height</i>, int <i>hotX</i>, int <i>hotY</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPoint </td><td class="memItemRight bottomAlign"><b><a href="qplatformcursorimage.html#hotspotx">hotspot</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QImage * </td><td class="memItemRight bottomAlign"><b><a href="qplatformcursorimage.html#image">image</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplatformcursorimage.html#set">set</a></b> ( const uchar * <i>data</i>, const uchar * <i>mask</i>, int <i>width</i>, int <i>height</i>, int <i>hx</i>, int <i>hy</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplatformcursorimage.html#set-2">set</a></b> ( const QImage & <i>image</i>, int <i>hx</i>, int <i>hy</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qplatformcursorimage.html#set-3">set</a></b> ( Qt::CursorShape <i>id</i> )</td></tr>
</table>
<a name="details"></a>
<!-- $$$QPlatformCursorImage-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QPlatformCursorImage class provides a set of graphics intended to be used as cursors.</p>
</div>
<p><b>See also </b><a href="qplatformcursor.html">QPlatformCursor</a>.</p>
<!-- @@@QPlatformCursorImage -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QPlatformCursorImage[overload1]$$$QPlatformCursorImageconstuchar*constuchar*intintintint -->
<h3 class="fn"><a name="QPlatformCursorImage"></a>QPlatformCursorImage::<span class="name">QPlatformCursorImage</span> ( const <span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> * <i>data</i>, const <span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> * <i>mask</i>, <span class="type">int</span> <i>width</i>, <span class="type">int</span> <i>height</i>, <span class="type">int</span> <i>hotX</i>, <span class="type">int</span> <i>hotY</i> )</h3>
<p>Sets the cursor image to the graphic represented by the combination of <i>data</i> and <i>mask</i>, with dimensions given by <i>width</i> and <i>height</i> and a hotspot at the point specified by (<i>hotX</i>, <i>hotY</i>).</p>
<p><b>See also </b><a href="qplatformcursorimage.html#set">set</a>().</p>
<!-- @@@QPlatformCursorImage -->
<!-- $$$hotspot[overload1]$$$hotspot -->
<h3 class="fn"><a name="hotspotx"></a><span class="type"><a href="qpoint.html">QPoint</a></span> QPlatformCursorImage::<span class="name">hotspot</span> ()</h3>
<p>Return the cursor's hotspot</p>
<!-- @@@hotspot -->
<!-- $$$image[overload1]$$$image -->
<h3 class="fn"><a name="image"></a><span class="type"><a href="qimage.html">QImage</a></span> * QPlatformCursorImage::<span class="name">image</span> ()</h3>
<p>Return the cursor graphic as a pointer to a <a href="qimage.html">QImage</a></p>
<!-- @@@image -->
<!-- $$$set[overload1]$$$setconstuchar*constuchar*intintintint -->
<h3 class="fn"><a name="set"></a><span class="type">void</span> QPlatformCursorImage::<span class="name">set</span> ( const <span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> * <i>data</i>, const <span class="type"><a href="qtglobal.html#uchar-typedef">uchar</a></span> * <i>mask</i>, <span class="type">int</span> <i>width</i>, <span class="type">int</span> <i>height</i>, <span class="type">int</span> <i>hx</i>, <span class="type">int</span> <i>hy</i> )</h3>
<p>Sets the cursor image to the graphic represented by the combination of <i>data</i> and <i>mask</i>, with dimensions given by <i>width</i> and <i>height</i> and a hotspot at the point specified by (<i>hx</i>, <i>hy</i>).</p>
<p>The image data specified by <i>data</i> must be supplied in the format described by <a href="qimage.html#Format-enum">QImage::Format_Indexed8</a>.</p>
<p>The corresponding mask data specified by <i>mask</i> must be supplied in a character array containing packed 1 bit per pixel format data, with any padding bits at the end of the array. Bits of value 0 represent transparent pixels in the image data.</p>
<!-- @@@set -->
<!-- $$$set$$$setconstQImage&intint -->
<h3 class="fn"><a name="set-2"></a><span class="type">void</span> QPlatformCursorImage::<span class="name">set</span> ( const <span class="type"><a href="qimage.html">QImage</a></span> & <i>image</i>, <span class="type">int</span> <i>hx</i>, <span class="type">int</span> <i>hy</i> )</h3>
<p>Sets the cursor image to the given <i>image</i>, with the hotspot at the point specified by (<i>hx</i>, <i>hy</i>).</p>
<!-- @@@set -->
<!-- $$$set$$$setQt::CursorShape -->
<h3 class="fn"><a name="set-3"></a><span class="type">void</span> QPlatformCursorImage::<span class="name">set</span> ( <span class="type"><a href="qt.html#CursorShape-enum">Qt::CursorShape</a></span> <i>id</i> )</h3>
<p>Calling this method sets the cursor image to the specified shape</p>
<p><i>id</i> is one of the defined <a href="qt.html#CursorShape-enum">Qt::CursorShape</a> values.</p>
<p>If id is invalid, <a href="qt.html#CursorShape-enum">Qt::BitmapCursor</a>, or unknown by the implementation, <a href="qt.html#CursorShape-enum">Qt::ArrowCursor</a> is used instead.</p>
<!-- @@@set -->
</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>
|