Skip to content

Commit

Permalink
Deploying to gh-pages from @ ori-ui/ori@fab29bc 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
ChangeCaps committed Sep 13, 2024
1 parent 0fb80ae commit eb30e5b
Show file tree
Hide file tree
Showing 62 changed files with 226 additions and 226 deletions.
2 changes: 1 addition & 1 deletion ori/all.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions ori/core/context/struct.BuildCx.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions ori/core/context/struct.DrawCx.html

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions ori/core/context/struct.EventCx.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions ori/core/context/struct.LayoutCx.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions ori/core/context/struct.RebuildCx.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ori/core/view/struct.Pod.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!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="A view that has separate `ViewState` from its content."><title>Pod in ori::core::view - 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-c5d6553a23f1e5a6.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="ori" data-themes="" data-resource-suffix="" data-rustdoc-version="1.81.0 (eeb90cda1 2024-09-04)" data-channel="1.81.0" data-search-js="search-d234aafac6c221dd.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-d2fab2bf619172d3.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-df360f571f6edeae.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 struct"><!--[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="../../../ori/index.html">ori</a><span class="version">0.1.0-alpha.1</span></h2></div><h2 class="location"><a href="#">Pod</a></h2><div class="sidebar-elems"><section><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.new">new</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-Pod%3CV%3E">Clone</a></li><li><a href="#impl-Copy-for-Pod%3CV%3E">Copy</a></li><li><a href="#impl-Debug-for-Pod%3CV%3E">Debug</a></li><li><a href="#impl-Deref-for-Pod%3CV%3E">Deref</a></li><li><a href="#impl-DerefMut-for-Pod%3CV%3E">DerefMut</a></li><li><a href="#impl-Eq-for-Pod%3CV%3E">Eq</a></li><li><a href="#impl-From%3CV%3E-for-Pod%3CV%3E">From&lt;V&gt;</a></li><li><a href="#impl-Hash-for-Pod%3CV%3E">Hash</a></li><li><a href="#impl-PartialEq-for-Pod%3CV%3E">PartialEq</a></li><li><a href="#impl-StructuralPartialEq-for-Pod%3CV%3E">StructuralPartialEq</a></li><li><a href="#impl-View%3CT%3E-for-Pod%3CV%3E">View&lt;T&gt;</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-Pod%3CV%3E">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Pod%3CV%3E">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Pod%3CV%3E">Send</a></li><li><a href="#impl-Sync-for-Pod%3CV%3E">Sync</a></li><li><a href="#impl-Unpin-for-Pod%3CV%3E">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Pod%3CV%3E">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T">Any</a></li><li><a href="#impl-AnyView%3CT%3E-for-V">AnyView&lt;T&gt;</a></li><li><a href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-CloneToUninit-for-T">CloneToUninit</a></li><li><a href="#impl-CloneToUninit-for-T-1">CloneToUninit</a></li><li><a href="#impl-From%3C!%3E-for-T">From&lt;!&gt;</a></li><li><a href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a href="#impl-Instrument-for-T">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a href="#impl-IntoEither-for-T">IntoEither</a></li><li><a href="#impl-Pointable-for-T">Pointable</a></li><li><a href="#impl-ToOwned-for-T">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li><li><a href="#impl-WithSubscriber-for-T">WithSubscriber</a></li></ul></section><h2><a href="index.html">In ori::core::view</a></h2></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>Struct <a href="../../index.html">ori</a>::<wbr><a href="../index.html">core</a>::<wbr><a href="index.html">view</a>::<wbr><a class="struct" href="#">Pod</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../../../src/ori_core/view/pod.rs.html#70">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub struct Pod&lt;V&gt; { <span class="comment">/* private fields */</span> }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A view that has separate <a href="../../prelude/struct.ViewState.html" title="struct ori::prelude::ViewState"><code>ViewState</code></a> from its content.</p>
<p>When calling for example <a href="../../prelude/trait.View.html#tymethod.event" title="method ori::prelude::View::event"><code>View::event</code></a>, an <a href="../../prelude/struct.EventCx.html" title="struct ori::prelude::EventCx"><code>EventCx</code></a> is passed to the
function. This <a href="../../prelude/struct.EventCx.html" title="struct ori::prelude::EventCx"><code>EventCx</code></a> contains a mutable reference to a <a href="../../prelude/struct.ViewState.html" title="struct ori::prelude::ViewState"><code>ViewState</code></a> that is used to
keep track of state like whether the view is hot or active. If a pod is not used when
keep track of state like whether the view is hovered or active. If a pod is not used when
implementing a view, the <a href="../../prelude/trait.View.html" title="trait ori::prelude::View"><code>View</code></a> and the content share the same <a href="../../prelude/struct.ViewState.html" title="struct ori::prelude::ViewState"><code>ViewState</code></a>. This is
almost always an issue when the <a href="../../prelude/trait.View.html" title="trait ori::prelude::View"><code>View</code></a> wants to have a diffrent transform or size than
the content. See for example the <a href="../../prelude/struct.Pad.html" title="struct ori::prelude::Pad"><code>Pad</code></a> view.</p>
Expand Down
Loading

0 comments on commit eb30e5b

Please sign in to comment.