mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
19 lines
16 KiB
HTML
19 lines
16 KiB
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="Vector tile format styling."><title>maplibre::style - 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-081576b923113409.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="maplibre" data-themes="" data-resource-suffix="" data-rustdoc-version="1.79.0 (129f3b996 2024-06-10)" data-channel="1.79.0" data-search-js="search-bf21c90c8c1d92b1.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-e32f0c247825364d.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-09095024cf37855e.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"><!--[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="../../maplibre/index.html">maplibre</a><span class="version">0.1.0</span></h2></div><h2 class="location"><a href="#">Module style</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li></ul></section><h2><a href="../index.html">In crate maplibre</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../maplibre/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings">Settings</a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../index.html">maplibre</a>::<wbr><a class="mod" href="#">style</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/maplibre/style/mod.rs.html#1-9">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Vector tile format styling.</p>
|
||
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="mod" href="layer/index.html" title="mod maplibre::style::layer">layer</a></div><div class="desc docblock-short">Vector tile layer drawing utilities.</div></li><li><div class="item-name"><a class="mod" href="raster/index.html" title="mod maplibre::style::raster">raster</a></div><div class="desc docblock-short">Raster tile layer description</div></li><li><div class="item-name"><a class="mod" href="source/index.html" title="mod maplibre::style::source">source</a></div><div class="desc docblock-short">Vector tile data utilities.</div></li><li><div class="item-name"><a class="mod" href="style/index.html" title="mod maplibre::style::style">style</a><span title="Restricted Visibility"> 🔒</span> </div><div class="desc docblock-short">Default vector tile styles configuration.</div></li></ul><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Aces2065.html" title="struct maplibre::style::Aces2065">Aces2065</a></div><div class="desc docblock-short">A color in the ACES 2065-1 color space.</div></li><li><div class="item-name"><a class="struct" href="struct.AcesCc.html" title="struct maplibre::style::AcesCc">AcesCc</a></div><div class="desc docblock-short">A color in the ACEScc color space.</div></li><li><div class="item-name"><a class="struct" href="struct.AcesCct.html" title="struct maplibre::style::AcesCct">AcesCct</a></div><div class="desc docblock-short">A color in the ACEScct color space.</div></li><li><div class="item-name"><a class="struct" href="struct.AcesCg.html" title="struct maplibre::style::AcesCg">AcesCg</a></div><div class="desc docblock-short">A color in the ACEScg color space.</div></li><li><div class="item-name"><a class="struct" href="struct.Alpha.html" title="struct maplibre::style::Alpha">Alpha</a></div><div class="desc docblock-short">A color with an alpha component.</div></li><li><div class="item-name"><a class="struct" href="struct.Bt2020.html" title="struct maplibre::style::Bt2020">Bt2020</a></div><div class="desc docblock-short">A color in the BT.2020 color space.</div></li><li><div class="item-name"><a class="struct" href="struct.Bt2100.html" title="struct maplibre::style::Bt2100">Bt2100</a></div><div class="desc docblock-short">A color in the BT.2100 color space.</div></li><li><div class="item-name"><a class="struct" href="struct.CieLCh.html" title="struct maplibre::style::CieLCh">CieLCh</a></div><div class="desc docblock-short">A color in the CIE L*C*h° color space.</div></li><li><div class="item-name"><a class="struct" href="struct.CieLab.html" title="struct maplibre::style::CieLab">CieLab</a></div><div class="desc docblock-short">A color in the CIE L*a*b* color space.</div></li><li><div class="item-name"><a class="struct" href="struct.CieXYZ.html" title="struct maplibre::style::CieXYZ">CieXYZ</a></div><div class="desc docblock-short">A color in the CIE XYZ color space.</div></li><li><div class="item-name"><a class="struct" href="struct.DciP3.html" title="struct maplibre::style::DciP3">DciP3</a></div><div class="desc docblock-short">A color in the DCI-P3 (aka P3 DCI and P3 D60) color space.</div></li><li><div class="item-name"><a class="struct" href="struct.DciXYZPrime.html" title="struct maplibre::style::DciXYZPrime">DciXYZPrime</a></div><div class="desc docblock-short">A color in the X’Y’Z’ color space, a DCI specification used for digital cinema mastering.</div></li><li><div class="item-name"><a class="struct" href="struct.DisplayP3.html" title="struct maplibre::style::DisplayP3">DisplayP3</a></div><div class="desc docblock-short">A color in the Display P3 (aka P3 D65) color space.</div></li><li><div class="item-name"><a class="struct" href="struct.EncodedBt2020.html" title="struct maplibre::style::EncodedBt2020">EncodedBt2020</a></div><div class="desc docblock-short">A color in the encoded BT.2020 color space.</div></li><li><div class="item-name"><a class="struct" href="struct.EncodedBt2100HLG.html" title="struct maplibre::style::EncodedBt2100HLG">EncodedBt2100HLG</a></div><div class="desc docblock-short">A color in the encoded BT.2100 color space with HLG (Hybrid Log-Gamma)
|
||
transfer function.</div></li><li><div class="item-name"><a class="struct" href="struct.EncodedBt2100PQ.html" title="struct maplibre::style::EncodedBt2100PQ">EncodedBt2100PQ</a></div><div class="desc docblock-short">A color in the encoded BT.2100 color space with PQ (Perceptual Quantizer)
|
||
transfer function.</div></li><li><div class="item-name"><a class="struct" href="struct.EncodedDisplayP3.html" title="struct maplibre::style::EncodedDisplayP3">EncodedDisplayP3</a></div><div class="desc docblock-short">A color in the Display P3 (aka P3 D65) color space.</div></li><li><div class="item-name"><a class="struct" href="struct.EncodedRec709.html" title="struct maplibre::style::EncodedRec709">EncodedRec709</a></div><div class="desc docblock-short">A color in the encoded Rec.709/BT.709 color space.</div></li><li><div class="item-name"><a class="struct" href="struct.EncodedSrgb.html" title="struct maplibre::style::EncodedSrgb">EncodedSrgb</a></div><div class="desc docblock-short">A color in the encoded sRGB color space.</div></li><li><div class="item-name"><a class="struct" href="struct.GenericColor1.html" title="struct maplibre::style::GenericColor1">GenericColor1</a></div><div class="desc docblock-short">A color in a generic color space that can be represented by 1 component. The user
|
||
is responsible for ensuring that the correct color space is respected.</div></li><li><div class="item-name"><a class="struct" href="struct.GenericColor3.html" title="struct maplibre::style::GenericColor3">GenericColor3</a></div><div class="desc docblock-short">A color in a generic color space that can be represented by 3 components. The user
|
||
is responsible for ensuring that the correct color space is respected.</div></li><li><div class="item-name"><a class="struct" href="struct.Hsl.html" title="struct maplibre::style::Hsl">Hsl</a></div><div class="desc docblock-short">A color in the HSL color space.</div></li><li><div class="item-name"><a class="struct" href="struct.Hsv.html" title="struct maplibre::style::Hsv">Hsv</a></div><div class="desc docblock-short">A color in the HSV color space.</div></li><li><div class="item-name"><a class="struct" href="struct.ICtCpHLG.html" title="struct maplibre::style::ICtCpHLG">ICtCpHLG</a></div><div class="desc docblock-short">A color in the ICtCp color space with HLG (Hybrid Log-Gamma)
|
||
nonlinearity.</div></li><li><div class="item-name"><a class="struct" href="struct.ICtCpPQ.html" title="struct maplibre::style::ICtCpPQ">ICtCpPQ</a></div><div class="desc docblock-short">A color in the ICtCp color space with PQ (Perceptual Quantizer)
|
||
nonlinearity.</div></li><li><div class="item-name"><a class="struct" href="struct.LinearSrgb.html" title="struct maplibre::style::LinearSrgb">LinearSrgb</a></div><div class="desc docblock-short">A color in the linear (decoded) sRGB color space.</div></li><li><div class="item-name"><a class="struct" href="struct.Luma.html" title="struct maplibre::style::Luma">Luma</a></div><div class="desc docblock-short">A single-channel CIE luma (non-linear transform from luminance).</div></li><li><div class="item-name"><a class="struct" href="struct.Luminance.html" title="struct maplibre::style::Luminance">Luminance</a></div><div class="desc docblock-short">A single-channel CIE luminance.</div></li><li><div class="item-name"><a class="struct" href="struct.Oklab.html" title="struct maplibre::style::Oklab">Oklab</a></div><div class="desc docblock-short">A color in the Oklab color space.</div></li><li><div class="item-name"><a class="struct" href="struct.Oklch.html" title="struct maplibre::style::Oklch">Oklch</a></div><div class="desc docblock-short">A color in the Oklch color space (a transformation from Oklab to LCh° coordinates).</div></li><li><div class="item-name"><a class="struct" href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha">PremultipliedAlpha</a></div><div class="desc docblock-short">A premultiplied color with an alpha component.</div></li><li><div class="item-name"><a class="struct" href="struct.Rec709.html" title="struct maplibre::style::Rec709">Rec709</a></div><div class="desc docblock-short">A color in the Rec.709/BT.709 color space.</div></li><li><div class="item-name"><a class="struct" href="struct.Style.html" title="struct maplibre::style::Style">Style</a></div><div class="desc docblock-short">Stores the style for a multi-layered map.</div></li><li><div class="item-name"><a class="struct" href="struct.YCbCr.html" title="struct maplibre::style::YCbCr">YCbCr</a></div><div class="desc docblock-short">A color in the YCbCr color space. See discussion of the difference between YCbCr, YUV, and
|
||
YPbPr in <a href="https://en.wikipedia.org/wiki/YCbCr">YCbCr Wikipedia article</a></div></li><li><div class="item-name"><a class="struct" href="struct.YCxCz.html" title="struct maplibre::style::YCxCz">YCxCz</a></div><div class="desc docblock-short">A color in the YCxCz (also called YyCxCz) color space, originally defined in “Optimized
|
||
universal color palette design for error diffusion” by B. W. Kolpatzik and C. A. Bouman.
|
||
Can be thought of as a “linear CIE Lab”.</div></li><li><div class="item-name"><a class="struct" href="struct.YPbPr.html" title="struct maplibre::style::YPbPr">YPbPr</a></div><div class="desc docblock-short">A color in the YPbPr color space. See discussion of the difference between YCbCr,
|
||
YUV, YPbPr, and Y’PbPr in the <a href="https://en.wikipedia.org/wiki/YCbCr">YCbCr Wikipedia article</a></div></li><li><div class="item-name"><a class="struct" href="struct.YPrimeCbCr.html" title="struct maplibre::style::YPrimeCbCr">YPrimeCbCr</a></div><div class="desc docblock-short">A color in the Y’CbCr color space. See discussion of the difference between YCbCr, Y’CbCr,
|
||
YUV, YPbPr, and Y’PbPr in the <a href="https://en.wikipedia.org/wiki/YCbCr">YCbCr Wikipedia article</a></div></li><li><div class="item-name"><a class="struct" href="struct.YPrimePbPr.html" title="struct maplibre::style::YPrimePbPr">YPrimePbPr</a></div><div class="desc docblock-short">A color in the Y’PbPr color space. See discussion of the difference between YCbCr,
|
||
YUV, YPbPr, and Y’PbPr in the <a href="https://en.wikipedia.org/wiki/YCbCr">YCbCr Wikipedia article</a></div></li><li><div class="item-name"><a class="struct" href="struct.Yuv.html" title="struct maplibre::style::Yuv">Yuv</a></div><div class="desc docblock-short">A color in the YUV color space. See discussion of the difference between YCbCr, YUV, and
|
||
YPbPr in <a href="https://en.wikipedia.org/wiki/YCbCr">YCbCr Wikipedia article</a></div></li></ul><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="enum" href="enum.Spaces.html" title="enum maplibre::style::Spaces">Spaces</a></div><div class="desc docblock-short">An enum with a variant for each of the color spaces
|
||
supported by the library. Useful for tracking as metadata
|
||
in something like an image type, and for runtime-determined color types.</div></li></ul><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="trait" href="trait.ColorInterop.html" title="trait maplibre::style::ColorInterop">ColorInterop</a></div><div class="desc docblock-short">A trait that should be implemented by provider crates on their local color types so that you can call
|
||
<code>color.to_cint()</code> and <code>Color::from_cint(cint_color)</code>.</div></li><li><div class="item-name"><a class="trait" href="trait.ColorType.html" title="trait maplibre::style::ColorType">ColorType</a></div><div class="desc docblock-short">A trait used to simpify the interface of the <a href="struct.Alpha.html" title="struct maplibre::style::Alpha"><code>Alpha</code></a> and <a href="struct.PremultipliedAlpha.html" title="struct maplibre::style::PremultipliedAlpha"><code>PremultipliedAlpha</code></a> types and
|
||
allow use with <a href="enum.Spaces.html" title="enum maplibre::style::Spaces"><code>Spaces</code></a> enum.</div></li></ul></section></div></main></body></html> |