<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="API documentation for the Rust `widgetry` crate."><metaname="keywords"content="rust, rustlang, rust-lang, widgetry"><title>widgetry - Rust</title><linkrel="stylesheet"type="text/css"href="../normalize.css"><linkrel="stylesheet"type="text/css"href="../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"type="text/css"href="../dark.css"><linkrel="stylesheet"type="text/css"href="../light.css"id="themeStyle"><scriptsrc="../storage.js"></script><noscript><linkrel="stylesheet"href="../noscript.css"></noscript><linkrel="shortcut icon"href="../favicon.ico"><styletype="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><bodyclass="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu">☰</div><ahref='../widgetry/index.html'><divclass='logo-container'><imgsrc='../rust-logo.png'alt='logo'></div></a><pclass='location'>Crate widgetry</p><divclass="sidebar-elems"><aid='all-types'href='all.html'><p>See all widgetry's items</p></a><divclass="block items"><ul><li><ahref="#modules">Modules</a></li><li><ahref="#structs">Structs</a></li><li><ahref="#enums">Enums</a></li><li><ahref="#traits">Traits</a></li><li><ahref="#functions">Functions</a></li></ul></div><pclass='location'></p><script>window.sidebarCurrent={name:'widgetry',ty:'mod',relpath:'../'};</script></div></nav><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"><imgsrc="../brush.svg"width="18"alt="Pick another theme!"></button><divid="theme-choices"></div></div><scriptsrc="../theme.js"></script><navclass="sub"><formclass="search-form"><divclass="search-container"><div><selectid="crate-search"><optionvalue="All crates">All crates</option></select><inputclass="search-input"name="search"disabledautocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"></div><aid="settings-menu"href="../settings.html"><imgsrc="../wheel.svg"width="18"alt="Change settings"></a></div></form></nav><sectionid="main"class="content"><h1class='fqn'><spanclass='out-of-band'><spanid='render-detail'><aid="toggle-all-docs"href="javascript:void(0)"title="collapse all docs">[<spanclass='inner'>−</span>]</a></span><aclass='srclink'href='../src/widgetry/lib.rs.html#1-157'title='goto source code'>[src]</a></span><spanclass='in-band'>Crate <aclass="mod"href=''>widgetry</a></span></h1><divclass='docblock'><h1id="widgets"class="section-header"><ahref="#widgets">Widgets</a></h1>
<table><trclass='module-item'><td><aclass="struct"href="struct.AreaSlider.html"title='widgetry::AreaSlider struct'>AreaSlider</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.Autocomplete.html"title='widgetry::Autocomplete struct'>Autocomplete</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.Btn.html"title='widgetry::Btn struct'>Btn</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.Canvas.html"title='widgetry::Canvas struct'>Canvas</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.Checkbox.html"title='widgetry::Checkbox struct'>Checkbox</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.Choice.html"title='widgetry::Choice struct'>Choice</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.Color.html"title='widgetry::Color struct'>Color</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.CompareTimes.html"title='widgetry::CompareTimes struct'>CompareTimes</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.DrawWithTooltips.html"title='widgetry::DrawWithTooltips struct'>DrawWithTooltips</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.Drawable.html"title='widgetry::Drawable struct'>Drawable</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.EventCtx.html"title='widgetry::EventCtx struct'>EventCtx</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.FanChart.html"title='widgetry::FanChart struct'>FanChart</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.Filler.html"title='widgetry::Filler struct'>Filler</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.GeomBatch.html"title='widgetry::GeomBatch struct'>GeomBatch</a></td><tdclass='docblock-short'><p>A mutable builder for a group of colored polygons.</p>
</td></tr><trclass='module-item'><td><aclass="struct"href="struct.GfxCtx.html"title='widgetry::GfxCtx struct'>GfxCtx</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.LinePlot.html"title='widgetry::LinePlot struct'>LinePlot</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.LinearGradient.html"title='widgetry::LinearGradient struct'>LinearGradient</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.Menu.html"title='widgetry::Menu struct'>Menu</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.Panel.html"title='widgetry::Panel struct'>Panel</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.PersistentSplit.html"title='widgetry::PersistentSplit struct'>PersistentSplit</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.PlotOptions.html"title='widgetry::PlotOptions struct'>PlotOptions</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.Prerender.html"title='widgetry::Prerender struct'>Prerender</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.ScatterPlot.html"title='widgetry::ScatterPlot struct'>ScatterPlot</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="struct"href="struct.ScreenDims.html"title='widgetry::ScreenDims struct'>ScreenDims</a></td><tdclass='docblock-short'><p>ScreenDims is in units of logical pixels, as opposed to physical pixels.</p>
</td></tr><trclass='module-item'><td><aclass="struct"href="struct.ScreenPt.html"title='widgetry::ScreenPt struct'>ScreenPt</a></td><tdclass='docblock-short'><p>ScreenPt is in units of logical pixels, as opposed to physical pixels.</p>
</td></tr><trclass='module-item'><td><aclass="struct"href="struct.ScreenRectangle.html"title='widgetry::ScreenRectangle struct'>ScreenRectangle</a></td><tdclass='docblock-short'><p>ScreenRectangle is in units of logical pixels, as opposed to physical pixels.</p>
<table><trclass='module-item'><td><aclass="trait"href="trait.GUI.html"title='widgetry::GUI trait'>GUI</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="trait"href="trait.TextExt.html"title='widgetry::TextExt trait'>TextExt</a></td><tdclass='docblock-short'></td></tr><trclass='module-item'><td><aclass="trait"href="trait.WidgetImpl.html"title='widgetry::WidgetImpl trait'>WidgetImpl</a></td><tdclass='docblock-short'><p>Create a new widget by implementing this trait. You can instantiate your widget by calling
<code>Widget::new(Box::new(instance of your new widget))</code>, which gives you the usual style options.</p>