Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Aug 15, 2023
1 parent 8dbd04b commit 6fdf032
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/iced_core/rectangle.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@
<span class="doccomment">/// Returns true if the given [`Point`] is contained in the [`Rectangle`].
</span><span class="kw">pub fn </span>contains(<span class="kw-2">&amp;</span><span class="self">self</span>, point: Point) -&gt; bool {
<span class="self">self</span>.x &lt;= point.x
&amp;&amp; point.x &lt;= <span class="self">self</span>.x + <span class="self">self</span>.width
&amp;&amp; point.x &lt; <span class="self">self</span>.x + <span class="self">self</span>.width
&amp;&amp; <span class="self">self</span>.y &lt;= point.y
&amp;&amp; point.y &lt;= <span class="self">self</span>.y + <span class="self">self</span>.height
&amp;&amp; point.y &lt; <span class="self">self</span>.y + <span class="self">self</span>.height
}

<span class="doccomment">/// Returns true if the current [`Rectangle`] is completely within the given
Expand Down

0 comments on commit 6fdf032

Please sign in to comment.