65 lines
3.4 KiB
HTML
65 lines
3.4 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
|
|
<!-- generated by to_html.pl from f_Layer.xml -->
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
|
<title>onHitTest - 当たり判定</title>
|
|
<meta name="author" content="W.Dee" />
|
|
<meta http-equiv="Content-Style-Type" content="text/css" />
|
|
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
<link href="funcref.css" type="text/css" rel="stylesheet" title="クラスリファレンス用標準スタイル" />
|
|
<link href="mailto:[email protected]" rev="Made" />
|
|
<link href="index.html" target="_top" rel="Start" title="トップページ" />
|
|
<link href="f_Layer.html" title="Layerクラス" rel="Parent" />
|
|
</head>
|
|
<body>
|
|
<h1><span class="fheader"><a name="top" id="top">Layer.onHitTest</a></span></h1><div class="para"><div>
|
|
<dl>
|
|
<dt>機能/意味</dt>
|
|
<dd>
|
|
当たり判定</dd>
|
|
<dt>タイプ</dt>
|
|
<dd>
|
|
<a class="jump" href="f_Layer.html">Layerクラス</a>のイベント<br />
|
|
</dd>
|
|
<dt>構文</dt>
|
|
<dd>
|
|
<span class="funcdecl">onHitTest(<span class="arg">x</span>, <span class="arg">y</span>, <span class="arg">hit</span>)</span><br />
|
|
</dd>
|
|
<dt>引数</dt>
|
|
<dd>
|
|
<table rules="all" frame="box" cellpadding="3" summary="onHitTest の引数">
|
|
<tr><td valign="top"><span class="argname">x</span></td>
|
|
<td> 当たり判定を行う位置の ( レイヤの表示座標内での ) x 座標です。<br />
|
|
</td></tr>
|
|
<tr><td valign="top"><span class="argname">y</span></td>
|
|
<td> 当たり判定を行う位置の ( レイヤの表示座標内での ) y 座標です。<br />
|
|
</td></tr>
|
|
<tr><td valign="top"><span class="argname">hit</span></td>
|
|
<td> 当たり判定の結果、当たっている場合は真, はずれている場合は偽になります。
|
|
当たり判定の結果は、同名のスーパークラスのイベントのこの引数に渡してください。<br />
|
|
</td></tr>
|
|
</table>
|
|
</dd>
|
|
<dt>説明</dt>
|
|
<dd>
|
|
レイヤ内のある点に対して、当たり判定 ( ヒットテスト ) が行われる場合に呼び出されます。<br />
|
|
当たり判定の結果は、スーパークラスのこのイベントの第3引数に当たり判定の結果を
|
|
渡してください ( 第1引数と
|
|
第2引数はそのまま渡してください )。<br />
|
|
当たり判定の結果、当たっていればマウスメッセージは不透過になり、そのレイヤで処理されます。<br />
|
|
当たっていなければ透過となり、マウスメッセージはより奥にあるレイヤで処理されます。<br />
|
|
このイベントは、<a class="jump" href="f_Layer_hitThreshold.html">Layer.hitThreshold</a> や <a class="jump" href="f_Layer_hitType.html">Layer.hitType</a> で行われる
|
|
当たり判定で「当たっている」という判定がされた後に呼び出されます。したがって
|
|
Layer.hitThreshold や Layer.hitType で「当たってない」と判定されている場合は
|
|
このイベントは呼び出されません。<br />
|
|
</dd>
|
|
</dl>
|
|
</div></div>
|
|
<script type="text/javascript" charset="UTF-8" src="documentid.js" ></script>
|
|
<script type="text/javascript" charset="UTF-8" src="postcontent.js" ></script>
|
|
</body>
|
|
</html>
|