Skip to content

Commit

Permalink
Deploying to gh-pages from @ vizia/vizia@c6d19d1 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
geom3trik committed Dec 23, 2024
1 parent 5384143 commit 12bb715
Show file tree
Hide file tree
Showing 5,791 changed files with 8,191 additions and 8,121 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion help.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!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="Documentation for Rustdoc"><title>Help</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-b0742ba02757f159.css"><meta name="rustdoc-vars" data-root-path="./" data-static-root-path="./static.files/" data-current-crate="vizia_core" data-themes="" data-resource-suffix="" data-rustdoc-version="1.83.0 (90b35a623 2024-11-26)" data-channel="1.83.0" data-search-js="search-f0d225181b97f9a4.js" data-settings-js="settings-805db61a62df4bd2.js" ><script src="./static.files/storage-1d39b6787ed640ff.js"></script><script defer src="./static.files/main-f070b9041d14864c.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 mod sys"><!--[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><a class="logo-container" href="./index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="./index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2><a href="./index.html">Rustdoc</a><span class="version">1.83.0</span></h2></div><div class="version">(90b35a623 2024-11-26)</div><h2 class="location">Help</h2><div class="sidebar-elems"></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"><h1>Rustdoc help</h1><span class="out-of-band"><a id="back" href="javascript:void(0)" onclick="history.back();">Back</a></span></div><noscript><section><p>You need to enable JavaScript to use keyboard commands or search.</p><p>For more information, browse the <a href="https://doc.rust-lang.org/rustdoc/">rustdoc handbook</a>.</p></section></noscript></section></div></main></body></html>
<!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="Documentation for Rustdoc"><title>Help</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-b0742ba02757f159.css"><meta name="rustdoc-vars" data-root-path="./" data-static-root-path="./static.files/" data-current-crate="vizia" data-themes="" data-resource-suffix="" data-rustdoc-version="1.83.0 (90b35a623 2024-11-26)" data-channel="1.83.0" data-search-js="search-f0d225181b97f9a4.js" data-settings-js="settings-805db61a62df4bd2.js" ><script src="./static.files/storage-1d39b6787ed640ff.js"></script><script defer src="./static.files/main-f070b9041d14864c.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 mod sys"><!--[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><a class="logo-container" href="./index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="./index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2><a href="./index.html">Rustdoc</a><span class="version">1.83.0</span></h2></div><div class="version">(90b35a623 2024-11-26)</div><h2 class="location">Help</h2><div class="sidebar-elems"></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"><h1>Rustdoc help</h1><span class="out-of-band"><a id="back" href="javascript:void(0)" onclick="history.back();">Back</a></span></div><noscript><section><p>You need to enable JavaScript to use keyboard commands or search.</p><p>For more information, browse the <a href="https://doc.rust-lang.org/rustdoc/">rustdoc handbook</a>.</p></section></noscript></section></div></main></body></html>
4 changes: 2 additions & 2 deletions search-index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion search.desc/vizia/vizia-desc-0-.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion search.desc/vizia_core/vizia_core-desc-0-.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion settings.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!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="Settings of Rustdoc"><title>Settings</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-b0742ba02757f159.css"><meta name="rustdoc-vars" data-root-path="./" data-static-root-path="./static.files/" data-current-crate="vizia_core" data-themes="" data-resource-suffix="" data-rustdoc-version="1.83.0 (90b35a623 2024-11-26)" data-channel="1.83.0" data-search-js="search-f0d225181b97f9a4.js" data-settings-js="settings-805db61a62df4bd2.js" ><script src="./static.files/storage-1d39b6787ed640ff.js"></script><script defer src="./static.files/main-f070b9041d14864c.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 mod sys"><!--[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><a class="logo-container" href="./index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="./index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2><a href="./index.html">Rustdoc</a><span class="version">1.83.0</span></h2></div><div class="version">(90b35a623 2024-11-26)</div><h2 class="location">Settings</h2><div class="sidebar-elems"></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"><h1>Rustdoc settings</h1><span class="out-of-band"><a id="back" href="javascript:void(0)" onclick="history.back();">Back</a></span></div><noscript><section>You need to enable JavaScript be able to update your settings.</section></noscript><script defer src="./static.files/settings-805db61a62df4bd2.js"></script></section></div></main></body></html>
<!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="Settings of Rustdoc"><title>Settings</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-b0742ba02757f159.css"><meta name="rustdoc-vars" data-root-path="./" data-static-root-path="./static.files/" data-current-crate="vizia" data-themes="" data-resource-suffix="" data-rustdoc-version="1.83.0 (90b35a623 2024-11-26)" data-channel="1.83.0" data-search-js="search-f0d225181b97f9a4.js" data-settings-js="settings-805db61a62df4bd2.js" ><script src="./static.files/storage-1d39b6787ed640ff.js"></script><script defer src="./static.files/main-f070b9041d14864c.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 mod sys"><!--[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><a class="logo-container" href="./index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="./index.html"><img class="rust-logo" src="./static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2><a href="./index.html">Rustdoc</a><span class="version">1.83.0</span></h2></div><div class="version">(90b35a623 2024-11-26)</div><h2 class="location">Settings</h2><div class="sidebar-elems"></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"><h1>Rustdoc settings</h1><span class="out-of-band"><a id="back" href="javascript:void(0)" onclick="history.back();">Back</a></span></div><noscript><section>You need to enable JavaScript be able to update your settings.</section></noscript><script defer src="./static.files/settings-805db61a62df4bd2.js"></script></section></div></main></body></html>
30 changes: 24 additions & 6 deletions src/vizia_baseview/application.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,16 @@
<a href="#530" id="530">530</a>
<a href="#531" id="531">531</a>
<a href="#532" id="532">532</a>
<a href="#533" id="533">533</a></pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">crate</span>::window::create_surface;
<a href="#533" id="533">533</a>
<a href="#534" id="534">534</a>
<a href="#535" id="535">535</a>
<a href="#536" id="536">536</a>
<a href="#537" id="537">537</a>
<a href="#538" id="538">538</a>
<a href="#539" id="539">539</a>
<a href="#540" id="540">540</a>
<a href="#541" id="541">541</a>
<a href="#542" id="542">542</a></pre></div><pre class="rust"><code><span class="kw">use </span><span class="kw">crate</span>::window::create_surface;
<span class="kw">use </span><span class="kw">crate</span>::window::ViziaWindow;
<span class="kw">use </span>baseview::{Window, WindowHandle, WindowScalePolicy};
<span class="kw">use </span>gl_rs <span class="kw">as </span>gl;
Expand Down Expand Up @@ -739,7 +748,17 @@
}

<span class="comment">// Events
</span><span class="kw">while </span><span class="self">self</span>.event_manager.flush_events(<span class="self">self</span>.cx.context()) {}
</span><span class="self">self</span>.event_manager.flush_events(<span class="self">self</span>.cx.context(), |window_event| <span class="kw">match </span>window_event {
<span class="comment">// For some reason calling window.close() crashes baseview on macos
// WindowEvent::WindowClose =&gt; *should_close = true,
</span>WindowEvent::FocusIn =&gt; {
<span class="attr">#[cfg(not(target_os = <span class="string">"linux"</span>))] </span><span class="comment">// not implemented for linux yet
</span><span class="kw">if </span>!window.has_focus() {
window.focus();
}
}
<span class="kw">_ </span>=&gt; {}
});

<span class="comment">// if *cx.window_size() != self.current_window_size
// || cx.user_scale_factor() != self.current_user_scale_factor
Expand Down Expand Up @@ -825,10 +844,9 @@
}

<span class="kw">pub fn </span>render(<span class="kw-2">&amp;mut </span><span class="self">self</span>) {
<span class="kw">if </span><span class="self">self</span>.cx.draw(Entity::root(), <span class="kw-2">&amp;mut </span><span class="self">self</span>.surface, <span class="kw-2">&amp;mut </span><span class="self">self</span>.dirty_surface) {
<span class="self">self</span>.gr_context.flush_and_submit();
<span class="self">self</span>.should_redraw = <span class="bool-val">false</span>;
}
<span class="self">self</span>.cx.draw(Entity::root(), <span class="kw-2">&amp;mut </span><span class="self">self</span>.surface, <span class="kw-2">&amp;mut </span><span class="self">self</span>.dirty_surface);
<span class="self">self</span>.gr_context.flush_and_submit();
<span class="self">self</span>.should_redraw = <span class="bool-val">false</span>;
}

<span class="kw">pub fn </span>handle_event(<span class="kw-2">&amp;mut </span><span class="self">self</span>, event: baseview::Event, should_quit: <span class="kw-2">&amp;mut </span>bool) {
Expand Down
20 changes: 19 additions & 1 deletion src/vizia_core/context/draw.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,16 @@
<a href="#1238" id="1238">1238</a>
<a href="#1239" id="1239">1239</a>
<a href="#1240" id="1240">1240</a>
<a href="#1241" id="1241">1241</a></pre></div><pre class="rust"><code><span class="kw">use </span>skia_safe::canvas::SaveLayerRec;
<a href="#1241" id="1241">1241</a>
<a href="#1242" id="1242">1242</a>
<a href="#1243" id="1243">1243</a>
<a href="#1244" id="1244">1244</a>
<a href="#1245" id="1245">1245</a>
<a href="#1246" id="1246">1246</a>
<a href="#1247" id="1247">1247</a>
<a href="#1248" id="1248">1248</a>
<a href="#1249" id="1249">1249</a>
<a href="#1250" id="1250">1250</a></pre></div><pre class="rust"><code><span class="kw">use </span>skia_safe::canvas::SaveLayerRec;
<span class="kw">use </span>skia_safe::gradient_shader::GradientShaderColors;
<span class="kw">use </span>skia_safe::path::ArcSize;
<span class="kw">use </span>skia_safe::rrect::Corner;
Expand Down Expand Up @@ -1306,6 +1315,7 @@
<span class="kw">pub</span>(<span class="kw">crate</span>) text_context: <span class="kw-2">&amp;</span><span class="lifetime">'a </span><span class="kw-2">mut </span>TextContext,
<span class="kw">pub</span>(<span class="kw">crate</span>) modifiers: <span class="kw-2">&amp;</span><span class="lifetime">'a </span>Modifiers,
<span class="kw">pub</span>(<span class="kw">crate</span>) mouse: <span class="kw-2">&amp;</span><span class="lifetime">'a </span>MouseState&lt;Entity&gt;,
<span class="kw">pub</span>(<span class="kw">crate</span>) windows: <span class="kw-2">&amp;</span><span class="lifetime">'a </span><span class="kw-2">mut </span>HashMap&lt;Entity, WindowState&gt;,
}

<span class="macro">macro_rules!</span> get_units_property {
Expand Down Expand Up @@ -1366,6 +1376,14 @@
<span class="self">self</span>.cache.get_bounds(<span class="self">self</span>.current)
}

<span class="doccomment">/// Marks the current view as needing to be redrawn.
</span><span class="kw">pub fn </span>needs_redraw(<span class="kw-2">&amp;mut </span><span class="self">self</span>) {
<span class="kw">let </span>parent_window = <span class="self">self</span>.tree.get_parent_window(<span class="self">self</span>.current).unwrap_or(Entity::root());
<span class="kw">if let </span><span class="prelude-val">Some</span>(window_state) = <span class="self">self</span>.windows.get_mut(<span class="kw-2">&amp;</span>parent_window) {
window_state.redraw_list.insert(<span class="self">self</span>.current);
}
}

<span class="doccomment">/// Returns the z-index of the current view.
</span><span class="kw">pub fn </span>z_index(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; i32 {
<span class="self">self</span>.style.z_index.get(<span class="self">self</span>.current).copied().unwrap_or_default()
Expand Down
6 changes: 5 additions & 1 deletion src/vizia_core/context/event.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,9 @@
<a href="#1399" id="1399">1399</a>
<a href="#1400" id="1400">1400</a>
<a href="#1401" id="1401">1401</a>
<a href="#1402" id="1402">1402</a></pre></div><pre class="rust"><code><span class="kw">use </span>std::any::{Any, TypeId};
<a href="#1402" id="1402">1402</a>
<a href="#1403" id="1403">1403</a>
<a href="#1404" id="1404">1404</a></pre></div><pre class="rust"><code><span class="kw">use </span>std::any::{Any, TypeId};
<span class="kw">use </span>std::collections::{BinaryHeap, VecDeque};
<span class="attr">#[cfg(feature = <span class="string">"clipboard"</span>)]
</span><span class="kw">use </span>std::error::Error;
Expand Down Expand Up @@ -1880,6 +1882,8 @@
}
<span class="self">self</span>.set_focus_pseudo_classes(new_focus, <span class="bool-val">true</span>, focus_visible);

<span class="self">self</span>.emit_to(Entity::root(), WindowEvent::FocusIn);

<span class="self">self</span>.needs_restyle();
}

Expand Down
16 changes: 2 additions & 14 deletions src/vizia_core/environment.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,8 @@
<a href="#126" id="126">126</a>
<a href="#127" id="127">127</a>
<a href="#128" id="128">128</a>
<a href="#129" id="129">129</a>
<a href="#130" id="130">130</a>
<a href="#131" id="131">131</a>
<a href="#132" id="132">132</a>
<a href="#133" id="133">133</a>
<a href="#134" id="134">134</a>
<a href="#135" id="135">135</a></pre></div><pre class="rust"><code><span class="doccomment">//! A model for system specific state which can be accessed by any model or view.
</span><span class="kw">use crate</span>::{
context::{Context, EmitContext},
events::{Timer, TimerAction},
model::Model,
views::TextEvent,
window::WindowEvent,
};
<a href="#129" id="129">129</a></pre></div><pre class="rust"><code><span class="doccomment">//! A model for system specific state which can be accessed by any model or view.
</span><span class="kw">use </span><span class="kw">crate</span>::prelude::<span class="kw-2">*</span>;

<span class="kw">use </span>unic_langid::LanguageIdentifier;
<span class="kw">use </span>vizia_derive::Lens;
Expand Down
Loading

0 comments on commit 12bb715

Please sign in to comment.