Sha256: cf969e1dcd8cc6804b77bd0ae29d45ef295b4f25e6589c9c315db2a52abad0e0

Contents?: true

Size: 1.42 KB

Versions: 1

Compression:

Stored size: 1.42 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 widget.rb, line 176</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.3.0 doc/classes/GGLib/Widget.src/M000193.html