Skip to content

Commit

Permalink
Cargo doc auto deployment 2024-10-01 07:27:15.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigocfd committed Oct 1, 2024
1 parent aa2ec22 commit 369021d
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 12 deletions.
4 changes: 2 additions & 2 deletions search-index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion search.desc/winsafe/winsafe-desc-3-.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/winsafe/user/ffi.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@
<a href="#285" id="285">285</a>
<a href="#286" id="286">286</a>
<a href="#287" id="287">287</a>
<a href="#288" id="288">288</a></pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">crate</span>::kernel::ffi_types::<span class="kw-2">*</span>;
<a href="#288" id="288">288</a>
<a href="#289" id="289">289</a></pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">crate</span>::kernel::ffi_types::<span class="kw-2">*</span>;

<span class="macro">extern_sys!</span> { <span class="string">"comdlg32"</span>;
ChooseColorW(PVOID) -&gt; BOOL
Expand Down Expand Up @@ -374,6 +375,7 @@
FindWindowExW(HANDLE, HANDLE, PCSTR, PCSTR) -&gt; HANDLE
FindWindowW(PCSTR, PCSTR) -&gt; HANDLE
FlashWindowEx(PVOID) -&gt; BOOL
FrameRect(HANDLE, PCVOID, HANDLE) -&gt; i32
GetActiveWindow() -&gt; HANDLE
GetAltTabInfoW(HANDLE, i32, PVOID, PSTR, u32) -&gt; BOOL
GetAncestor(HANDLE, u32) -&gt; HANDLE
Expand Down
18 changes: 17 additions & 1 deletion src/winsafe/user/handles/hdc.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,15 @@
<a href="#136" id="136">136</a>
<a href="#137" id="137">137</a>
<a href="#138" id="138">138</a>
<a href="#139" id="139">139</a></pre></div><pre class="rust"><code><span class="attr">#![allow(non_camel_case_types, non_snake_case)]
<a href="#139" id="139">139</a>
<a href="#140" id="140">140</a>
<a href="#141" id="141">141</a>
<a href="#142" id="142">142</a>
<a href="#143" id="143">143</a>
<a href="#144" id="144">144</a>
<a href="#145" id="145">145</a>
<a href="#146" id="146">146</a>
<a href="#147" id="147">147</a></pre></div><pre class="rust"><code><span class="attr">#![allow(non_camel_case_types, non_snake_case)]

</span><span class="kw">use </span><span class="kw">crate</span>::co;
<span class="kw">use </span><span class="kw">crate</span>::decl::<span class="kw-2">*</span>;
Expand Down Expand Up @@ -255,6 +263,14 @@
)
}

<span class="doccomment">/// [`FrameRect`](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-framerect)
/// function.
</span><span class="kw">fn </span>FrameRect(<span class="kw-2">&amp;</span><span class="self">self</span>, rc: RECT, hbr: <span class="kw-2">&amp;</span>HBRUSH) -&gt; SysResult&lt;()&gt; {
bool_to_sysresult(
<span class="kw">unsafe </span>{ ffi::FrameRect(<span class="self">self</span>.ptr(), <span class="kw-2">&amp;</span>rc <span class="kw">as </span><span class="kw-2">*const </span><span class="kw">_ as _</span>, hbr.ptr()) },
)
}

<span class="doccomment">/// [`InvertRect`](https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-invertrect)
/// function.
</span><span class="kw">fn </span>InvertRect(<span class="kw-2">&amp;</span><span class="self">self</span>, rc: RECT) -&gt; SysResult&lt;()&gt; {
Expand Down
11 changes: 7 additions & 4 deletions winsafe/prelude/trait.user_Hdc.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="This trait is enabled with the `user` feature, and provides methods for `HDC`."><title>user_Hdc in winsafe::prelude - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b778ab399e080a4b.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="winsafe" data-themes="" data-resource-suffix="" data-rustdoc-version="1.83.0-nightly (7608018cb 2024-09-29)" data-channel="nightly" data-search-js="search-e056c65ede92db13.js" data-settings-js="settings-805db61a62df4bd2.js" ><script src="../../static.files/storage-1d39b6787ed640ff.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-54bc299d2a5e4e43.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../winsafe/index.html">winsafe</a><span class="version">0.0.22</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">user_<wbr>Hdc</a></h2><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.DrawFocusRect" title="DrawFocusRect">DrawFocusRect</a></li><li><a href="#method.DrawText" title="DrawText">DrawText</a></li><li><a href="#method.DrawTextEx" title="DrawTextEx">DrawTextEx</a></li><li><a href="#method.EnumDisplayMonitors" title="EnumDisplayMonitors">EnumDisplayMonitors</a></li><li><a href="#method.InvertRect" title="InvertRect">InvertRect</a></li><li><a href="#method.PaintDesktop" title="PaintDesktop">PaintDesktop</a></li><li><a href="#method.WindowFromDC" title="WindowFromDC">WindowFromDC</a></li></ul><h3><a href="#object-safety">Object Safety</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In winsafe::<wbr>prelude</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">winsafe</a>::<wbr><a href="index.html">prelude</a></span><h1>Trait <span class="trait">user_Hdc</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/winsafe/user\handles/hdc.rs.html#24-139">source</a> </span></div><pre class="rust item-decl"><code>pub trait user_Hdc: <a class="trait" href="trait.Handle.html" title="trait winsafe::prelude::Handle">Handle</a> {
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="This trait is enabled with the `user` feature, and provides methods for `HDC`."><title>user_Hdc in winsafe::prelude - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b778ab399e080a4b.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="winsafe" data-themes="" data-resource-suffix="" data-rustdoc-version="1.83.0-nightly (7608018cb 2024-09-29)" data-channel="nightly" data-search-js="search-e056c65ede92db13.js" data-settings-js="settings-805db61a62df4bd2.js" ><script src="../../static.files/storage-1d39b6787ed640ff.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-54bc299d2a5e4e43.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../winsafe/index.html">winsafe</a><span class="version">0.0.22</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">user_<wbr>Hdc</a></h2><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.DrawFocusRect" title="DrawFocusRect">DrawFocusRect</a></li><li><a href="#method.DrawText" title="DrawText">DrawText</a></li><li><a href="#method.DrawTextEx" title="DrawTextEx">DrawTextEx</a></li><li><a href="#method.EnumDisplayMonitors" title="EnumDisplayMonitors">EnumDisplayMonitors</a></li><li><a href="#method.FrameRect" title="FrameRect">FrameRect</a></li><li><a href="#method.InvertRect" title="InvertRect">InvertRect</a></li><li><a href="#method.PaintDesktop" title="PaintDesktop">PaintDesktop</a></li><li><a href="#method.WindowFromDC" title="WindowFromDC">WindowFromDC</a></li></ul><h3><a href="#object-safety">Object Safety</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In winsafe::<wbr>prelude</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">winsafe</a>::<wbr><a href="index.html">prelude</a></span><h1>Trait <span class="trait">user_Hdc</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/winsafe/user\handles/hdc.rs.html#24-147">source</a> </span></div><pre class="rust item-decl"><code>pub trait user_Hdc: <a class="trait" href="trait.Handle.html" title="trait winsafe::prelude::Handle">Handle</a> {
// Provided methods
fn <a href="#method.DrawFocusRect" class="fn">DrawFocusRect</a>(&amp;self, rect: <a class="struct" href="../struct.RECT.html" title="struct winsafe::RECT">RECT</a>) -&gt; <a class="type" href="../type.SysResult.html" title="type winsafe::SysResult">SysResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.DrawText" class="fn">DrawText</a>(&amp;self, text: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, bounds: <a class="struct" href="../struct.RECT.html" title="struct winsafe::RECT">RECT</a>, format: <a class="struct" href="../co/struct.DT.html" title="struct winsafe::co::DT">DT</a>) -&gt; <a class="type" href="../type.SysResult.html" title="type winsafe::SysResult">SysResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>&gt; { ... }
Expand All @@ -15,6 +15,7 @@
func: F,
) -&gt; <a class="type" href="../type.SysResult.html" title="type winsafe::SysResult">SysResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;
<span class="where">where F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(<a class="struct" href="../struct.HMONITOR.html" title="struct winsafe::HMONITOR">HMONITOR</a>, <a class="struct" href="../struct.HDC.html" title="struct winsafe::HDC">HDC</a>, &amp;<a class="struct" href="../struct.RECT.html" title="struct winsafe::RECT">RECT</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.FrameRect" class="fn">FrameRect</a>(&amp;self, rc: <a class="struct" href="../struct.RECT.html" title="struct winsafe::RECT">RECT</a>, hbr: &amp;<a class="struct" href="../struct.HBRUSH.html" title="struct winsafe::HBRUSH">HBRUSH</a>) -&gt; <a class="type" href="../type.SysResult.html" title="type winsafe::SysResult">SysResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.InvertRect" class="fn">InvertRect</a>(&amp;self, rc: <a class="struct" href="../struct.RECT.html" title="struct winsafe::RECT">RECT</a>) -&gt; <a class="type" href="../type.SysResult.html" title="type winsafe::SysResult">SysResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.PaintDesktop" class="fn">PaintDesktop</a>(&amp;self) -&gt; <a class="type" href="../type.SysResult.html" title="type winsafe::SysResult">SysResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.WindowFromDC" class="fn">WindowFromDC</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../struct.HWND.html" title="struct winsafe::HWND">HWND</a>&gt; { ... }
Expand Down Expand Up @@ -54,10 +55,12 @@ <h5 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h5>
<span class="bool-val">true
</span>},
)<span class="question-mark">?</span>;</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.InvertRect" class="method"><a class="src rightside" href="../../src/winsafe/user\handles/hdc.rs.html#121-125">source</a><h4 class="code-header">fn <a href="#method.InvertRect" class="fn">InvertRect</a>(&amp;self, rc: <a class="struct" href="../struct.RECT.html" title="struct winsafe::RECT">RECT</a>) -&gt; <a class="type" href="../type.SysResult.html" title="type winsafe::SysResult">SysResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p><a href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-invertrect"><code>InvertRect</code></a>
</div></details><details class="toggle method-toggle" open><summary><section id="method.FrameRect" class="method"><a class="src rightside" href="../../src/winsafe/user\handles/hdc.rs.html#121-125">source</a><h4 class="code-header">fn <a href="#method.FrameRect" class="fn">FrameRect</a>(&amp;self, rc: <a class="struct" href="../struct.RECT.html" title="struct winsafe::RECT">RECT</a>, hbr: &amp;<a class="struct" href="../struct.HBRUSH.html" title="struct winsafe::HBRUSH">HBRUSH</a>) -&gt; <a class="type" href="../type.SysResult.html" title="type winsafe::SysResult">SysResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p><a href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-framerect"><code>FrameRect</code></a>
function.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.PaintDesktop" class="method"><a class="src rightside" href="../../src/winsafe/user\handles/hdc.rs.html#129-131">source</a><h4 class="code-header">fn <a href="#method.PaintDesktop" class="fn">PaintDesktop</a>(&amp;self) -&gt; <a class="type" href="../type.SysResult.html" title="type winsafe::SysResult">SysResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p><a href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-paintdesktop"><code>PaintDesktop</code></a>
</div></details><details class="toggle method-toggle" open><summary><section id="method.InvertRect" class="method"><a class="src rightside" href="../../src/winsafe/user\handles/hdc.rs.html#129-133">source</a><h4 class="code-header">fn <a href="#method.InvertRect" class="fn">InvertRect</a>(&amp;self, rc: <a class="struct" href="../struct.RECT.html" title="struct winsafe::RECT">RECT</a>) -&gt; <a class="type" href="../type.SysResult.html" title="type winsafe::SysResult">SysResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p><a href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-invertrect"><code>InvertRect</code></a>
function.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.WindowFromDC" class="method"><a class="src rightside" href="../../src/winsafe/user\handles/hdc.rs.html#136-138">source</a><h4 class="code-header">fn <a href="#method.WindowFromDC" class="fn">WindowFromDC</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../struct.HWND.html" title="struct winsafe::HWND">HWND</a>&gt;</h4></section></summary><div class="docblock"><p><a href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-windowfromdc"><code>WindowFromDC</code></a>
</div></details><details class="toggle method-toggle" open><summary><section id="method.PaintDesktop" class="method"><a class="src rightside" href="../../src/winsafe/user\handles/hdc.rs.html#137-139">source</a><h4 class="code-header">fn <a href="#method.PaintDesktop" class="fn">PaintDesktop</a>(&amp;self) -&gt; <a class="type" href="../type.SysResult.html" title="type winsafe::SysResult">SysResult</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p><a href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-paintdesktop"><code>PaintDesktop</code></a>
function.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.WindowFromDC" class="method"><a class="src rightside" href="../../src/winsafe/user\handles/hdc.rs.html#144-146">source</a><h4 class="code-header">fn <a href="#method.WindowFromDC" class="fn">WindowFromDC</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../struct.HWND.html" title="struct winsafe::HWND">HWND</a>&gt;</h4></section></summary><div class="docblock"><p><a href="https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-windowfromdc"><code>WindowFromDC</code></a>
function.</p>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-user_Hdc-for-HDC" class="impl"><a class="src rightside" href="../../src/winsafe/user\handles/hdc.rs.html#14">source</a><a href="#impl-user_Hdc-for-HDC" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.user_Hdc.html" title="trait winsafe::prelude::user_Hdc">user_Hdc</a> for <a class="struct" href="../struct.HDC.html" title="struct winsafe::HDC">HDC</a></h3></section></div><script src="../../trait.impl/winsafe/user/handles/hdc/trait.user_Hdc.js" async></script></section></div></main></body></html>
Loading

0 comments on commit 369021d

Please sign in to comment.