Sha256: 7b715cffe35ec4b07d90b038ecfd01a038515dff11084716999a098a8b582f27

Contents?: true

Size: 1.43 KB

Versions: 1

Compression:

Stored size: 1.43 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>clicked? (GGLib::Widget)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File gglib/widget.rb, line 64</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">clicked?</span>(<span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>)
    <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">$window</span>.<span class="ruby-identifier">button_down?</span>(<span class="ruby-constant">Gosu</span><span class="ruby-operator">::</span><span class="ruby-constant">Button</span><span class="ruby-operator">::</span><span class="ruby-constant">MsLeft</span>)
      <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">xTile</span>(<span class="ruby-identifier">x</span>,<span class="ruby-identifier">y</span>)
    <span class="ruby-keyword kw">else</span>
      <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span>
    <span class="ruby-keyword kw">end</span>
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gglib-1.2.1 lib/doc/classes/GGLib/Widget.src/M000201.html