From fc6d4e4870fafb26cd3b1e0bf20c59b3b1139a3d Mon Sep 17 00:00:00 2001 From: slaveoftime Date: Sun, 15 Nov 2026 16:18:26 +0800 Subject: [PATCH 1/5] Complete the P0 headless workflow improvements - add --size and a png-only --sizes matrix to dotnet cui - add --env and --state, with CUISHARP_VIEWPORT and CUISHARP_STATE_HOME in the app - make find and click refuse equally ranked controls; record icon-button tooltips - document MarkReady/--wait, viewport, state and strict matching - move the samples' state under CUISHARP_STATE_HOME - regenerate the bindings, API catalog and public-surface baseline --- README.md | 7 +- docs/API-SURFACE.txt | 2 + samples/README.md | 13 ++ samples/download.cs | 18 ++- samples/music.cs | 18 ++- samples/stock.cs | 10 +- skills/cui-dotnet/SKILL.md | 57 ++++++++ skills/cui-dotnet/api/catalog.json | 4 +- src/CuiSharp.Tests/HeadlessLoopTests.cs | 53 +++++++ .../TestApps/ReadyProbe/Program.cs | 5 +- src/CuiSharp.Tests/ToolArgumentTests.cs | 108 ++++++++++++++ src/CuiSharp.Tools/Cli.cs | 94 +++++++++++- src/CuiSharp.Tools/DocLibrary.cs | 5 + src/CuiSharp.Tools/Grammar.cs | 137 +++++++++++++++++- src/CuiSharp.Tools/HeadlessClient.cs | 5 +- src/CuiSharp.Tools/Viewport.cs | 67 +++++++++ src/CuiSharp/CuiApp.cs | 2 +- src/CuiSharp/Hosting/HeadlessApp.cs | 13 ++ src/CuiSharp/Hosting/HeadlessLoop.cs | 33 ++++- src/CuiSharp/Semantics/SemanticNode.cs | 81 +++++++++++ src/CuiSharp/Ui/Buttons.g.cs | 2 +- tools/bindgen.cs | 10 ++ 22 files changed, 719 insertions(+), 25 deletions(-) create mode 100644 src/CuiSharp.Tools/Viewport.cs diff --git a/README.md b/README.md index 250cb7e..398f9c8 100644 --- a/README.md +++ b/README.md @@ -181,9 +181,9 @@ Then this is the whole of what a project's `AGENTS.md` has to say about CuiSharp > project, not in a shell history. `dotnet cui docs` answers from the guide, the reference and the behaviour pages **inside the tool**: -no repository, no NuGet cache, no network, nothing built and nothing started. Fourteen topics cover +no repository, no NuGet cache, no network, nothing built and nothing started. Fifteen topics cover the tasks an assistant arrives with — `getting-started`, `writing-ui`, `custom-controls`, `hosting`, -`testing`, `debugging`, `layout`, `live-debugging`, `performance`, `theming`, `translation`, +`testing`, `debugging`, `layout`, `live-debugging`, `headless`, `performance`, `theming`, `translation`, `publishing`, `signatures`, `widgets` — and each one is a named set of sections of the shipped pages, so the tool cannot say anything the documentation does not. @@ -225,6 +225,9 @@ dotnet cui click "Button Save" # …when a heading says the same word dotnet cui click "editor > Save" # …or the path to the control dotnet cui type Milk # type into the focused field dotnet cui png shot.png # the frame as a PNG, for a person or a model +dotnet cui png shot.png --size 420x720 # a viewport without editing the app +dotnet cui png shot.png --sizes 420x720,1180x820 # one png per viewport +dotnet cui tree --state artifacts/cui-run # isolated app state dotnet cui tree -a 15036 # the same, on a live window a person is watching dotnet cui session < script.txt # many commands, one build, one app ``` diff --git a/docs/API-SURFACE.txt b/docs/API-SURFACE.txt index 4f110ae..f5a91c2 100644 --- a/docs/API-SURFACE.txt +++ b/docs/API-SURFACE.txt @@ -1547,6 +1547,7 @@ class CuiSharp.Hosting.HeadlessApp WidgetTarget FindById(String) WidgetTarget FindInput(String) WidgetTarget FindItem(String, Int32) + WidgetTarget FindUnique(String) property Boolean Animating { get; } property Boolean Ready { get; } property Component Root { get; } @@ -1566,6 +1567,7 @@ struct CuiSharp.Hosting.HeadlessApp+WaitOutcome property TimeSpan Elapsed { get; } class CuiSharp.Hosting.HeadlessLoop field String EnvironmentVariable + field String ViewportEnvironmentVariable property IReadOnlyList Known { get; } static Boolean Requested(String[]) static Int32 Run(DrawFn, CuiAppOptions, TextReader, TextWriter) diff --git a/samples/README.md b/samples/README.md index 4d2645af..4bce7fc 100644 --- a/samples/README.md +++ b/samples/README.md @@ -44,6 +44,19 @@ dotnet publish disk.cs -c Release -p:CuiSharpHeadless=true -o artifacts/disk dotnet cui session --app artifacts/disk/disk.exe < steps.txt ``` +A published build can be inspected at any viewport, with its state kept away from the real profile: + +```sh +dotnet cui png shot.png --app artifacts/disk/disk.exe --size 420x720 +dotnet cui png shot.png --app artifacts/disk/disk.exe --sizes 420x720,1180x820 +dotnet cui tree --app artifacts/disk/disk.exe --state artifacts/cui-run +``` + +The apps read `CUISHARP_STATE_HOME`: `music` uses `/CuiMusic`, `download` uses +`/CuiDownload`, and `stock` uses `/GlobalMarketCap`. `CuiSharp@*` must resolve a package +that carries the `CUISHARP_VIEWPORT` override; with an older build, `--size` refuses rather than +reporting a size it did not get. + `dotnet cui` is the companion tool (`dotnet tool install -g CuiSharp.Tools`). Every app repeats the full recipe at the top of its file: diff --git a/samples/download.cs b/samples/download.cs index a5faf13..37af4c4 100644 --- a/samples/download.cs +++ b/samples/download.cs @@ -2117,16 +2117,24 @@ internal sealed class SavedItem internal static class StateStore { - private static readonly string Folder = Environment.GetEnvironmentVariable("CUIDOWNLOAD_HOME") is - { Length: > 0 } custom - ? Format.FullPath(custom) ?? custom - : Path.Combine( - Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CuiDownload"); + private static readonly string Folder = StateFolder(); private static readonly string StatePath = Path.Combine(Folder, "state.json"); public static string Home => Folder; + private static string StateFolder() + { + if (Environment.GetEnvironmentVariable("CUIDOWNLOAD_HOME") is { Length: > 0 } custom) + return Format.FullPath(custom) ?? custom; + + if (Environment.GetEnvironmentVariable("CUISHARP_STATE_HOME") is { Length: > 0 } root) + return Path.Combine(root, "CuiDownload"); + + return Path.Combine( + Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CuiDownload"); + } + public static string DefaultDestination() { var home = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile); diff --git a/samples/music.cs b/samples/music.cs index 7db2eb9..6450b5e 100644 --- a/samples/music.cs +++ b/samples/music.cs @@ -1435,8 +1435,7 @@ internal static class Artwork // the album's colours, which is the closest the renderer gets to a blur. private const int Frost = 48; - private static readonly string Folder = Path.Combine( - Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CuiMusic", "art"); + private static readonly string Folder = Path.Combine(Store.Home, "art"); private static readonly string Target = Path.Combine(Folder, "cover.img"); @@ -1761,12 +1760,23 @@ internal static class Store { private static readonly long SaveEvery = Stopwatch.Frequency * 5; - private static readonly string Folder = Path.Combine( - Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CuiMusic"); + private static readonly string Folder = StateFolder(); private static readonly string StatePath = Path.Combine(Folder, "state.json"); private static readonly string LibraryPath = Path.Combine(Folder, "library.json"); + /// The app-specific folder under the shared state root. + public static string Home => Folder; + + private static string StateFolder() + { + string? state = Environment.GetEnvironmentVariable("CUISHARP_STATE_HOME"); + return state is { Length: > 0 } + ? Path.Combine(state, "CuiMusic") + : Path.Combine( + Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CuiMusic"); + } + private static long _savedAt; public static Preferences LoadPreferences() diff --git a/samples/stock.cs b/samples/stock.cs index 17ba229..0d5875e 100644 --- a/samples/stock.cs +++ b/samples/stock.cs @@ -1725,10 +1725,12 @@ internal static class Cache { private const int Version = 1; - private static readonly string FilePath = Path.Combine( - Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), - "GlobalMarketCap", - "snapshot.json"); + private static readonly string FilePath = Path.Combine(StateRoot(), "GlobalMarketCap", "snapshot.json"); + + private static string StateRoot() => + Environment.GetEnvironmentVariable("CUISHARP_STATE_HOME") is { Length: > 0 } root + ? root + : Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); private static readonly Dictionary ByKey = Data.Companies.ToDictionary(static company => company.Key, StringComparer.Ordinal); diff --git a/skills/cui-dotnet/SKILL.md b/skills/cui-dotnet/SKILL.md index 8106a00..d72501c 100644 --- a/skills/cui-dotnet/SKILL.md +++ b/skills/cui-dotnet/SKILL.md @@ -626,6 +626,63 @@ behind, so anything that should be checked twice belongs in a test instead. save about 180 KB (`docs/SIZE.md`): publish with `-p:CuiSharpHeadless=true` before pointing `--app` at it. +## Headless viewports, state and readiness + +A headless run takes its frame size from `CUISHARP_VIEWPORT`, not from the app's own +`CuiAppOptions`. `dotnet cui` sets that variable when you ask for a size, so the same build can be +checked at desktop and phone widths without editing `Width` or `Height`: + +```sh +dotnet cui png shot.png --size 420x720 +dotnet cui png shot.png --sizes 420x720,1180x820 # png only: shot-420x720.png and shot-1180x820.png +dotnet cui tree --size 620x700 +``` + +`--sizes` is a `png` convenience: each viewport gets its own app start and its result is written with +the size in the name. The app's banner is the frame size the tool compares with the request; a +package that predates `CUISHARP_VIEWPORT` reports its own size and the tool exits nonzero instead of +passing off a different frame as the requested one. + +A headless run can also be given an isolated state root and extra environment: + +```sh +dotnet cui png shot.png --state artifacts/cui-run --env LOG_LEVEL=debug +``` + +`--state` sets `CUISHARP_STATE_HOME` to that directory. Apps that keep state should put their own +folder under it (`CuiMusic`, `CuiDownload`, `GlobalMarketCap`, ...); the samples do. `--env +KEY=VALUE` is repeated for each variable and is applied before the app starts; `CUISHARP_HEADLESS` +stays the tool's decision. This keeps a screenshot or a scripted click from reading or changing the +real user profile. + +Async data needs a readiness signal, not a guess at how many frames a decode or a network call +takes. Mark the frame when the data is usable: + +```csharp +ui.Label(ready ? $"data {rows}" : "loading"); +if (ready) ui.MarkReady(); +``` + +```sh +dotnet cui png shot.png --wait ready --wait-timeout 20 +dotnet cui waittext 20 "data 42" +``` + +`--wait ready` draws until `ui.MarkReady()`; `--wait-text` waits for a label or query and names the +last frame when the window closes. A `wait` that times out is an error, not an empty screenshot. + +`find` and `click` refuse to guess between equally good matches. A frame with two rows both called +`Pause` needs a kind, a path or an id: + +```sh +dotnet cui click "Button Pause" +dotnet cui click "row:42 > Button Pause" +dotnet cui click id:pause-42 +``` + +The error lists the candidates and the forms that disambiguate them. An icon-only button is named by +its tooltip (`IconButton "Pause"`), not by the glyph it draws. + ## Publishing for size `dotnet publish -c Release -r win-x64` links CUI into one executable. The package already trims it: diff --git a/skills/cui-dotnet/api/catalog.json b/skills/cui-dotnet/api/catalog.json index 70bdd6f..15628f8 100644 --- a/skills/cui-dotnet/api/catalog.json +++ b/skills/cui-dotnet/api/catalog.json @@ -167,9 +167,9 @@ { "name": "CuiSharp.Hosting.CuiApplicationBuilder", "displayName": "CuiApplicationBuilder", "kind": "class", "summary": "Collects services and window options before the window exists.", "members": [{ "name": "Window", "kind": "property", "id": "property|Window|0|0|CuiAppOptions||get;set;|hb4f402a692934c77e62da0173ddd890f74e45c40f58fa933ff2536baedc0fe79", "signature": "CuiAppOptions Window { get; set; }", "summary": "Window options: title, size, renderer, theme, accent." }, { "name": "Build", "kind": "method", "id": "method|Build|0|0|CuiApplication|||h9d2e6ba46af012770ff325c47a1dd1a56cfe59b9a18204feffa806a963f69a68", "signature": "CuiApplication Build()", "summary": "Builds the container. The window itself is created by Run\u0060\u00601." }, { "name": "Services", "kind": "property", "id": "property|Services|0|0|IServiceCollection||get;|h0f02e1c313ac8a81062e4bd937a51a3b05a63a9a49ae45ff523b68ec55bf3e96", "signature": "IServiceCollection Services { get; }", "summary": "The container. Register services and components here." }, { "name": "Args", "kind": "property", "id": "property|Args|0|0|string[]||get;|h7a56b0f7d1c60a9bad709dda1a5112461efb41c9711599d27545d3a75b062410", "signature": "string[] Args { get; }", "summary": "Command-line arguments, as handed to the process." }] }, { "name": "CuiSharp.Hosting.FrameSample", "displayName": "FrameSample", "kind": "struct", "summary": "What one frame cost. FrameStats holds the last one in the process.", "members": [{ "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||long Frames;double FrameMs;double DrawMs;long AllocatedBytes;double Fps;bool IsLive||h1f4338d9ac6a5eac1c91dc224727f64973ef42b2881098fdca3e8dca2b2b6eef", "signature": "FrameSample(long Frames, double FrameMs, double DrawMs, long AllocatedBytes, double Fps, bool IsLive)", "parameters": [{ "name": "Frames", "type": "long" }, { "name": "FrameMs", "type": "double" }, { "name": "DrawMs", "type": "double" }, { "name": "AllocatedBytes", "type": "long" }, { "name": "Fps", "type": "double" }, { "name": "IsLive", "type": "bool" }], "summary": "What one frame cost. FrameStats holds the last one in the process." }, { "name": "Equals", "kind": "method", "id": "method|Equals|0|0|bool|FrameSample other||h6b5e8e167a39bfe41c6778b24750f83049be7b632bb609b3b315f8433032f6df", "signature": "bool Equals(FrameSample other)", "parameters": [{ "name": "other", "type": "FrameSample" }] }, { "name": "Equals", "kind": "method", "id": "method|Equals|0|0|bool|object obj||hdf2fccef3fb95cd65c067116b7fab214698fd62b7ba7acf819e39cecdecd49f0", "signature": "bool Equals(object obj)", "parameters": [{ "name": "obj", "type": "object" }] }, { "name": "IsLive", "kind": "property", "id": "property|IsLive|0|0|bool||get;set;|h6fb5ef11f1ee36bb8cc50da3708ecc7839b9ea761592d6eec3068c2daf512df2", "signature": "bool IsLive { get; init; }", "summary": "Whether anything asked for this frame." }, { "name": "DrawMs", "kind": "property", "id": "property|DrawMs|0|0|double||get;set;|h412ea96c16410ddaf605871b1b505bc8ccd9dfb2a05fa7c70f60311dae4dd9e3", "signature": "double DrawMs { get; init; }", "summary": "Time spent drawing this frame\u0027s components." }, { "name": "Fps", "kind": "property", "id": "property|Fps|0|0|double||get;set;|h32cd94cea8713530575a786026ed29b0ecca6c7fc6ec78a6aa22a19f614a3e43", "signature": "double Fps { get; init; }", "summary": "Smoothed frame rate of the run this frame belongs to." }, { "name": "FrameMs", "kind": "property", "id": "property|FrameMs|0|0|double||get;set;|h3f5dccbe685e3fd6ac024b48e5ab7029dbb34dadb3f73e5bc2ea02482f41568a", "signature": "double FrameMs { get; init; }", "summary": "Wall-clock time between this frame and the previous one." }, { "name": "GetHashCode", "kind": "method", "id": "method|GetHashCode|0|0|int|||hdfcf1984bbd53bb9079a9b702ff4724865de4dcf06bbed07c42edbc8e1085a8d", "signature": "int GetHashCode()" }, { "name": "AllocatedBytes", "kind": "property", "id": "property|AllocatedBytes|0|0|long||get;set;|ha2f53be0b74179c0733ded33b815505ae61640803eca28ca76e7151842f6a916", "signature": "long AllocatedBytes { get; init; }", "summary": "Managed bytes allocated while drawing it." }, { "name": "Frames", "kind": "property", "id": "property|Frames|0|0|long||get;set;|h6b895a790d6a6e62dac0164488207995443321314ea277546d53964ebee21474", "signature": "long Frames { get; init; }", "summary": "Frames rendered since the process started." }, { "name": "!=", "kind": "operator", "id": "operator|op_Inequality|1|0|bool|FrameSample left;FrameSample right||h1621bbc9c95d57d2b3212169f2f018f2560446a437bf869ca714e562ce6b341d", "signature": "static bool operator !=(FrameSample left, FrameSample right)", "member": "op_Inequality", "parameters": [{ "name": "left", "type": "FrameSample" }, { "name": "right", "type": "FrameSample" }] }, { "name": "==", "kind": "operator", "id": "operator|op_Equality|1|0|bool|FrameSample left;FrameSample right||hcae28c34e7edfb01c0b5ee5beed82a18fbfbfef921183af0ec80a036a4f505e4", "signature": "static bool operator ==(FrameSample left, FrameSample right)", "member": "op_Equality", "parameters": [{ "name": "left", "type": "FrameSample" }, { "name": "right", "type": "FrameSample" }] }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()" }, { "name": "Deconstruct", "kind": "method", "id": "method|Deconstruct|0|0|void|out long Frames;out double FrameMs;out double DrawMs;out long AllocatedBytes;out double Fps;out bool IsLive||h505ffebce7d4ff615c36f2202efa12440c4b4131624dfc04cebe36b338a5c8e3", "signature": "void Deconstruct(out long Frames, out double FrameMs, out double DrawMs, out long AllocatedBytes, out double Fps, out bool IsLive)", "parameters": [{ "name": "Frames", "type": "out long" }, { "name": "FrameMs", "type": "out double" }, { "name": "DrawMs", "type": "out double" }, { "name": "AllocatedBytes", "type": "out long" }, { "name": "Fps", "type": "out double" }, { "name": "IsLive", "type": "out bool" }] }] }, { "name": "CuiSharp.Hosting.FrameStats", "displayName": "FrameStats", "kind": "static class", "summary": "Per-frame numbers for the frame that just rendered, so a footer or a trace can show them without every app measuring the clock itself. The host fills these in around each component render; nothing here allocates.", "members": [{ "name": "IsLive", "kind": "property", "id": "property|IsLive|1|0|bool||get;|h444d8f50956934219eebcfcb5639eae0c5423d84c4df24bee7585d9a3fe41f3a", "signature": "static bool IsLive { get; }", "summary": "True when something asked for this frame: a component that changes on its own (WantsFrames) or work that is still in flight. An app that says false is asleep between input, so a frame rate would be a number about nothing." }, { "name": "DrawMs", "kind": "property", "id": "property|DrawMs|1|0|double||get;|h3fbf0f50fafa5b894128da08fec11f4bb522f7c4091b33f87829fe96f1bd3527", "signature": "static double DrawMs { get; }", "summary": "Time spent drawing this frame\u0027s components." }, { "name": "Fps", "kind": "property", "id": "property|Fps|1|0|double||get;|h935cbfa0adde0346221a688f7ba88d870a04f16531a1627c79bac153f42a8dd7", "signature": "static double Fps { get; }", "summary": "Frames per second, smoothed over the frames of the current run. Zero until there is something to average, and unchanged while the app is asleep \u2014 see the remarks on this type." }, { "name": "FrameMs", "kind": "property", "id": "property|FrameMs|1|0|double||get;|hd346decc3ed1e65d26fbd6ac1aaec24590a9299477bd79ca99e7b533ab13f911", "signature": "static double FrameMs { get; }", "summary": "Wall-clock time between the start of this frame and the previous one." }, { "name": "AllocatedBytes", "kind": "property", "id": "property|AllocatedBytes|1|0|long||get;|h3a901b93e508e893524c27ba1fd9bbb474d30876c4140a4255359004eb69679b", "signature": "static long AllocatedBytes { get; }", "summary": "Managed bytes allocated while drawing this frame. It should read 0: the frame\u0027s own numbers are the cheapest way to notice a hidden allocation." }, { "name": "Frames", "kind": "property", "id": "property|Frames|1|0|long||get;|heb8351bd9b4d67895ea2fd8fdd741b7234e6c5709baebe7651fabe90b4558c4c", "signature": "static long Frames { get; }", "summary": "Number of frames rendered since the process started." }] }, - { "name": "CuiSharp.Hosting.HeadlessApp", "displayName": "HeadlessApp", "kind": "class", "summary": "An app drawn without a window: frames you drive, controls you find by label, and the pixels they produced.", "members": [{ "name": "Root", "kind": "property", "id": "property|Root|0|0|Component?||get;|hf43d1318450e8d46d53aed28e29e6b08c07342c8f234fd9bb9d1e8bf9399c60d", "signature": "Component? Root { get; }", "summary": "The component being drawn, if this app draws one." }, { "name": "Surface", "kind": "property", "id": "property|Surface|0|0|CuiSurface||get;|hf0799171cdc83f0900df39a80392efea137100437e738539c2a86d1ffe79fc8a", "signature": "CuiSurface Surface { get; }", "summary": "The surface underneath: pixels, viewport and the software rasterizer." }, { "name": "Advance", "kind": "method", "id": "method|Advance|0|0|HeadlessApp|TimeSpan time;int frames = 1||h626da333c8675acee966c0b66a045e0937e87454db20859c3126a6a2131aabdb", "signature": "HeadlessApp Advance(TimeSpan time, int frames = 1)", "parameters": [{ "name": "time", "type": "TimeSpan" }, { "name": "frames", "type": "int", "default": "1" }], "summary": "Moves the clock forward by time over frames frames. Frames are free but time is not: an animation is only as far along as the clock says, so a snapshot taken without advancing is a snapshot of an animation that never started." }, { "name": "Focus", "kind": "method", "id": "method|Focus|0|0|HeadlessApp|bool focused = true||h4945a8a1105ecf005cd92bad3d05dcdbd0a2541a0331e9e546561ad788d06b67", "signature": "HeadlessApp Focus(bool focused = true)", "parameters": [{ "name": "focused", "type": "bool", "default": "true" }], "summary": "Reports the window gaining focus, which a text field needs before it takes keys." }, { "name": "Frame", "kind": "method", "id": "method|Frame|0|0|HeadlessApp|int count = 1||h3eda7515dee4cdcb51e35ef741e13b3705d1e379e87fb6785baa2861f228929b", "signature": "HeadlessApp Frame(int count = 1)", "parameters": [{ "name": "count", "type": "int", "default": "1" }], "summary": "Draws one frame and returns this app, so calls chain." }, { "name": "Key", "kind": "method", "id": "method|Key|0|0|HeadlessApp|Key key;Mods mods = (Mods)0||he72d4ecc571d6f2de7a08564e0a99caeef13f5b658ae8c4df1b11ac4836ed6ed", "signature": "HeadlessApp Key(Key key, Mods mods = (Mods)0)", "parameters": [{ "name": "key", "type": "Key" }, { "name": "mods", "type": "Mods", "default": "(Mods)0" }], "summary": "Presses and releases a key, drawing a frame for each." }, { "name": "MoveTo", "kind": "method", "id": "method|MoveTo|0|0|HeadlessApp|float x;float y||ha3d010dbe8ab0243c5eae4a920c66aafbaf5c51ddd93abe3a88fa789058cce0a", "signature": "HeadlessApp MoveTo(float x, float y)", "parameters": [{ "name": "x", "type": "float" }, { "name": "y", "type": "float" }], "summary": "Moves the pointer and draws the frame that reacts to the move (hover, tooltip)." }, { "name": "ParkPointer", "kind": "method", "id": "method|ParkPointer|0|0|HeadlessApp|||hf7daf579df92089bf30365e8263d50a10ae0c71ee8d889653d46a70d05582292", "signature": "HeadlessApp ParkPointer()", "summary": "Takes the pointer off the app and draws the frame that reacts, so a screenshot is of the UI and not of the tooltip the last click left behind. SavePng does this itself." }, { "name": "Press", "kind": "method", "id": "method|Press|0|0|HeadlessApp|||hc70c9499839ffd7cca3a9e84665eebdf5c6f07debc4c1228d41459f627aacefb", "signature": "HeadlessApp Press()", "summary": "Presses the left button and draws the frame that sees the press." }, { "name": "Release", "kind": "method", "id": "method|Release|0|0|HeadlessApp|||h7fa05977d3791cb22f0fcdefe9bf86efd4ae76ad199e58772b976d73fd1740b7", "signature": "HeadlessApp Release()", "summary": "Releases the left button and draws the frame that reports the click." }, { "name": "ScrollAt", "kind": "method", "id": "method|ScrollAt|0|0|HeadlessApp|float x;float y;float dy;float dx = default||h62b831947b3ac89b348a26f2df1f78176801e668e13e4c465e94b3374218cadc", "signature": "HeadlessApp ScrollAt(float x, float y, float dy, float dx = default)", "parameters": [{ "name": "x", "type": "float" }, { "name": "y", "type": "float" }, { "name": "dy", "type": "float" }, { "name": "dx", "type": "float", "default": "default" }], "summary": "Moves the pointer to (x, y) and scrolls there: the wheel goes to whichever scroll area holds that point. The distance is in wheel notches and a positive dy scrolls up, as a real wheel does; a negative one reaches for what is below the fold. Draws the frame that shows the new offset \u2014 a spring-animated scroll needs a few Frame calls to settle where it lands." }, { "name": "Type", "kind": "method", "id": "method|Type|0|0|HeadlessApp|string text||h97a1e4d23535309d2f6404313656a2ce95275d0e1ba3c2df130c7a3f70782245", "signature": "HeadlessApp Type(string text)", "parameters": [{ "name": "text", "type": "string" }], "summary": "Types text into whatever has focus, and draws the frame that accepts it." }, { "name": "Widgets", "kind": "property", "id": "property|Widgets|0|0|IReadOnlyList\u003CSemanticWidget\u003E||get;|hf361de9bebc687bd20b11a46c2e43f178f39634686b9f3b9e71cfcf153154f67", "signature": "IReadOnlyList\u003CSemanticWidget\u003E Widgets { get; }", "summary": "Every control the last frame drew, in drawing order." }, { "name": "Faults", "kind": "property", "id": "property|Faults|0|0|IReadOnlyList\u003Cstring\u003E||get;|hcd480861b6837af5e65e0c529272438bb9a9b6d01925a764ff47a3b315d18b1d", "signature": "IReadOnlyList\u003Cstring\u003E Faults { get; }", "summary": "Exceptions a component threw while drawing; an empty list is a healthy frame." }, { "name": "RawPixels", "kind": "property", "id": "property|RawPixels|0|0|ReadOnlySpan\u003Cbyte\u003E||get;|h1595671ac794e37c504b591f4dfb0b943209a8597317f116c01dc55bd38f7c6b", "signature": "ReadOnlySpan\u003Cbyte\u003E RawPixels { get; }", "summary": "The last frame\u0027s pixels, RGBA." }, { "name": "Tree", "kind": "property", "id": "property|Tree|0|0|SemanticNode||get;|h8545f28c2f25a968c4be78d681487aa8f42df7d54f6f6f5dd1e744f429c65806", "signature": "SemanticNode Tree { get; }", "summary": "The last frame\u0027s controls nested the way the app drew them: a button inside ui.Card(new() { Id = \u0022editor\u0022 }) is a child of Card \u0022editor\u0022, even when unnamed containers sit between them." }, { "name": "WaitFor", "kind": "method", "id": "method|WaitFor|0|0|WaitOutcome|string query;TimeSpan timeout;CancellationToken cancellationToken = default||h1a2183f22c4e10789025f3ce403caa71a4adb22a527c15add25a744287d5f832", "signature": "WaitOutcome WaitFor(string query, TimeSpan timeout, CancellationToken cancellationToken = default)", "parameters": [{ "name": "query", "type": "string" }, { "name": "timeout", "type": "TimeSpan" }, { "name": "cancellationToken", "type": "CancellationToken", "default": "default" }], "summary": "Draws real frames until one draws a control that answers query (the same vocabulary as Find), or until timeout passes. The latest completed frame is asked first, so a wait for what is already on screen draws no frames at all." }, { "name": "WaitReady", "kind": "method", "id": "method|WaitReady|0|0|WaitOutcome|TimeSpan timeout;CancellationToken cancellationToken = default||h2344feda4bb984cdb8aed71ac4302bd94231f1e12e370ec3fa0b58f9a1d836d0", "signature": "WaitOutcome WaitReady(TimeSpan timeout, CancellationToken cancellationToken = default)", "parameters": [{ "name": "timeout", "type": "TimeSpan" }, { "name": "cancellationToken", "type": "CancellationToken", "default": "default" }], "summary": "Draws real frames until one completes that called MarkReady, or until timeout has passed on the wall clock. Every frame drains completed background work first, so data that arrives on a pool thread becomes visible on the frame that draws after it \u2014 which is what a wait is for. The latest completed frame may answer without another one being drawn: a wait that needs no frames reports Frames of 0 \u2014 and a window already spent when the first frame would have started is a miss that drew nothing. A draw cannot be interrupted, but a condition that turns true only after the window has passed is reported as a miss, not as a late success." }, { "name": "Find", "kind": "method", "id": "method|Find|0|0|WidgetTarget|string kind;string text||h1bb2d62f3680eb0c19900c345fda3357c44b1deeb94d6ddbbe38eb3f42fc4ffd", "signature": "WidgetTarget Find(string kind, string text)", "parameters": [{ "name": "kind", "type": "string" }, { "name": "text", "type": "string" }], "summary": "Finds a control of a kind and a label, e.g. Find(\u0022Button\u0022, \u0022Save\u0022)." }, { "name": "Find", "kind": "method", "id": "method|Find|0|0|WidgetTarget|string query||h9d9f9fac08a30a8548e9c7fbcda39ec13f1f404fa63de19b5fcee96ffd42cd91", "signature": "WidgetTarget Find(string query)", "parameters": [{ "name": "query", "type": "string" }], "summary": "Finds a control by a query: a label (Save), a kind and a label (Button \u0022Save\u0022), or a path (editor \u003E Button \u0022Save\u0022: containers are bare, only the last step names a kind)." }, { "name": "FindButton", "kind": "method", "id": "method|FindButton|0|0|WidgetTarget|string label||hbbacdbec5fb9f23bcc9d4aeb82b2fe3a5af64711fd42cce031629e935477e8c8", "signature": "WidgetTarget FindButton(string label)", "parameters": [{ "name": "label", "type": "string" }], "summary": "Finds a button by its label." }, { "name": "FindById", "kind": "method", "id": "method|FindById|0|0|WidgetTarget|string id||h0d9247bef6926b3d3b9d9c50e001208698befbb15643a9efc7dba9112efe52b6", "signature": "WidgetTarget FindById(string id)", "parameters": [{ "name": "id", "type": "string" }], "summary": "Finds a widget by the exact text the app drew it with \u2014 its id, for every widget that has one \u2014 and never by a partial or fuzzy match. This is the query to write when a label can be translated: FindById(\u0022draft\u0022) keeps working in another language, while Find(\u0022draft\u0022) was only ever guessing." }, { "name": "FindInput", "kind": "method", "id": "method|FindInput|0|0|WidgetTarget|string id||ha21d8796c2e42e310d821632148f5696664e22789d7f9fca032bccf99f5ad419", "signature": "WidgetTarget FindInput(string id)", "parameters": [{ "name": "id", "type": "string" }], "summary": "Finds a text field by its id." }, { "name": "FindItem", "kind": "method", "id": "method|FindItem|0|0|WidgetTarget|string id;int index||h58c7cbfca4332017d8867744ab1ca067e9a16b2f476dfa77500267d60c71f4e5", "signature": "WidgetTarget FindItem(string id, int index)", "parameters": [{ "name": "id", "type": "string" }, { "name": "index", "type": "int" }], "summary": "The indexth item of the multi-item widget drawn with id: a tab, a segment, a row. The label of an item is translatable, its position is not, so this is how a test names one without hard-coding the words." }, { "name": "Animating", "kind": "property", "id": "property|Animating|0|0|bool||get;|h31a492e61fccdc7fd83e6c8ed8e83345bdfccdafc84504c3e532f94155aeda56", "signature": "bool Animating { get; }", "summary": "True when something in the last frame asked for another one: an animation in flight, a transition, work that finished on a pool thread. Settle is the loop around it." }, { "name": "PaintedAnything", "kind": "method", "id": "method|PaintedAnything|0|0|bool|||hc6a981a5d4b20d54b1b865a8ed0f5fef77d3c9f59fec3259d142b03cc512642f", "signature": "bool PaintedAnything()", "summary": "True when the last frame painted anything at all." }, { "name": "Ready", "kind": "property", "id": "property|Ready|0|0|bool||get;|h03be3cfec0542d3cf3efe6003035d3a0d2f76ef268a62ef8589ca769105bcfd6", "signature": "bool Ready { get; }", "summary": "Whether the latest completed frame declared its data ready with MarkReady. A frame that did not mark itself is not ready, whatever the frame before it claimed." }, { "name": "TryFind", "kind": "method", "id": "method|TryFind|0|0|bool|string query;out WidgetTarget widget||h392d9569dd63494ff11a7cba9bab5add41638093b36bfb0f0d11478be48eab60", "signature": "bool TryFind(string query, out WidgetTarget widget)", "parameters": [{ "name": "query", "type": "string" }, { "name": "widget", "type": "out WidgetTarget" }], "summary": "True when the last frame drew something that answers the query." }, { "name": "Height", "kind": "property", "id": "property|Height|0|0|int||get;|h6bb9d208a8c2d3f5c816b385df95628119cf129ab8d5cdd4b5e576b46037865c", "signature": "int Height { get; }", "summary": "Logical height in points." }, { "name": "Settle", "kind": "method", "id": "method|Settle|0|0|int|int maxFrames = 240;TimeSpan? step = default||h2884d1fda375f255880e29fef21977c3966174e05e4b0fda7cde38300a0612c3", "signature": "int Settle(int maxFrames = 240, TimeSpan? step = default)", "parameters": [{ "name": "maxFrames", "type": "int", "default": "240" }, { "name": "step", "type": "TimeSpan?", "default": "default" }], "summary": "Draws frames until nothing wants another one, moving the clock by step each time. This is the replacement for a sleep loop: an animation that takes half a second settles in a few milliseconds, and the count says how long it took." }, { "name": "Width", "kind": "property", "id": "property|Width|0|0|int||get;|ha0864f5f4fda3365ae1a32446710954c2726b6bf0ae6f93e7b91c06c3464059b", "signature": "int Width { get; }", "summary": "Logical width in points." }, { "name": "Start", "kind": "method", "id": "method|Start|1|0|HeadlessApp|Component root;int width = 1024;int height = 768;float scale = 1f;Theme theme = Theme.Light;Accent accent = Accent.Neutral||h1e5b5b0d7001e43da6fe7c233c65d21aef6bb43f443207e450b36d7f9bf2f5e5", "signature": "static HeadlessApp Start(Component root, int width = 1024, int height = 768, float scale = 1f, Theme theme = Theme.Light, Accent accent = Accent.Neutral)", "parameters": [{ "name": "root", "type": "Component" }, { "name": "width", "type": "int", "default": "1024" }, { "name": "height", "type": "int", "default": "768" }, { "name": "scale", "type": "float", "default": "1f" }, { "name": "theme", "type": "Theme", "default": "Theme.Light" }, { "name": "accent", "type": "Accent", "default": "Accent.Neutral" }], "summary": "Starts an app around one component, initializing it the way the host does." }, { "name": "Start", "kind": "method", "id": "method|Start|1|0|HeadlessApp|DrawFn draw;int width = 1024;int height = 768;float scale = 1f;Theme theme = Theme.Light;Accent accent = Accent.Neutral||he7844293216898ca9b0b006f61b4910517fe23935747ae7f38412d03143dbbe9", "signature": "static HeadlessApp Start(DrawFn draw, int width = 1024, int height = 768, float scale = 1f, Theme theme = Theme.Light, Accent accent = Accent.Neutral)", "parameters": [{ "name": "draw", "type": "DrawFn" }, { "name": "width", "type": "int", "default": "1024" }, { "name": "height", "type": "int", "default": "768" }, { "name": "scale", "type": "float", "default": "1f" }, { "name": "theme", "type": "Theme", "default": "Theme.Light" }, { "name": "accent", "type": "Accent", "default": "Accent.Neutral" }], "summary": "Starts an app that draws draw for every frame." }, { "name": "Print", "kind": "method", "id": "method|Print|0|0|string|bool rects = default||h06252dafaeb8005776cf294d00cc449cae2255f6fc351ae1f5be1e7d769c801e", "signature": "string Print(bool rects = default)", "parameters": [{ "name": "rects", "type": "bool", "default": "default" }], "summary": "The last frame\u0027s tree as text, which is also what ToString gives." }, { "name": "PrintLayout", "kind": "method", "id": "method|PrintLayout|0|0|string|||h1aca4fa317bff1c9a17b9ff43a8ce93464478a32b3aba59b2cd66e9b17152dd5", "signature": "string PrintLayout()", "summary": "The LayoutFormatter view of the last frame: verified rectangles, observed bounds labelled as the lower bounds they are, and unknown extents named as unknowns." }, { "name": "SavePng", "kind": "method", "id": "method|SavePng|0|0|string|string? path = null;bool parked = true||hb90d4d8b7c789b4eddcca8f1bc64ed99b3ebc8de616717d3cbba041aff978a98", "signature": "string SavePng(string? path = null, bool parked = true)", "parameters": [{ "name": "path", "type": "string?", "default": "null" }, { "name": "parked", "type": "bool", "default": "true" }], "summary": "Writes the last frame as a PNG and returns the path, for a human or an agent to look at. The pointer is taken off the UI first, so a hover tooltip left by the last click is not in the picture; pass parked = false to photograph the app as it stands." }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()" }, { "name": "Dispose", "kind": "method", "id": "method|Dispose|0|0|void|||h743737a1705f80570f9b0dca3334406a3351c7ecb98acd045baf6804dd060a4e", "signature": "void Dispose()" }] }, + { "name": "CuiSharp.Hosting.HeadlessApp", "displayName": "HeadlessApp", "kind": "class", "summary": "An app drawn without a window: frames you drive, controls you find by label, and the pixels they produced.", "members": [{ "name": "Root", "kind": "property", "id": "property|Root|0|0|Component?||get;|hf43d1318450e8d46d53aed28e29e6b08c07342c8f234fd9bb9d1e8bf9399c60d", "signature": "Component? Root { get; }", "summary": "The component being drawn, if this app draws one." }, { "name": "Surface", "kind": "property", "id": "property|Surface|0|0|CuiSurface||get;|hf0799171cdc83f0900df39a80392efea137100437e738539c2a86d1ffe79fc8a", "signature": "CuiSurface Surface { get; }", "summary": "The surface underneath: pixels, viewport and the software rasterizer." }, { "name": "Advance", "kind": "method", "id": "method|Advance|0|0|HeadlessApp|TimeSpan time;int frames = 1||h626da333c8675acee966c0b66a045e0937e87454db20859c3126a6a2131aabdb", "signature": "HeadlessApp Advance(TimeSpan time, int frames = 1)", "parameters": [{ "name": "time", "type": "TimeSpan" }, { "name": "frames", "type": "int", "default": "1" }], "summary": "Moves the clock forward by time over frames frames. Frames are free but time is not: an animation is only as far along as the clock says, so a snapshot taken without advancing is a snapshot of an animation that never started." }, { "name": "Focus", "kind": "method", "id": "method|Focus|0|0|HeadlessApp|bool focused = true||h4945a8a1105ecf005cd92bad3d05dcdbd0a2541a0331e9e546561ad788d06b67", "signature": "HeadlessApp Focus(bool focused = true)", "parameters": [{ "name": "focused", "type": "bool", "default": "true" }], "summary": "Reports the window gaining focus, which a text field needs before it takes keys." }, { "name": "Frame", "kind": "method", "id": "method|Frame|0|0|HeadlessApp|int count = 1||h3eda7515dee4cdcb51e35ef741e13b3705d1e379e87fb6785baa2861f228929b", "signature": "HeadlessApp Frame(int count = 1)", "parameters": [{ "name": "count", "type": "int", "default": "1" }], "summary": "Draws one frame and returns this app, so calls chain." }, { "name": "Key", "kind": "method", "id": "method|Key|0|0|HeadlessApp|Key key;Mods mods = (Mods)0||he72d4ecc571d6f2de7a08564e0a99caeef13f5b658ae8c4df1b11ac4836ed6ed", "signature": "HeadlessApp Key(Key key, Mods mods = (Mods)0)", "parameters": [{ "name": "key", "type": "Key" }, { "name": "mods", "type": "Mods", "default": "(Mods)0" }], "summary": "Presses and releases a key, drawing a frame for each." }, { "name": "MoveTo", "kind": "method", "id": "method|MoveTo|0|0|HeadlessApp|float x;float y||ha3d010dbe8ab0243c5eae4a920c66aafbaf5c51ddd93abe3a88fa789058cce0a", "signature": "HeadlessApp MoveTo(float x, float y)", "parameters": [{ "name": "x", "type": "float" }, { "name": "y", "type": "float" }], "summary": "Moves the pointer and draws the frame that reacts to the move (hover, tooltip)." }, { "name": "ParkPointer", "kind": "method", "id": "method|ParkPointer|0|0|HeadlessApp|||hf7daf579df92089bf30365e8263d50a10ae0c71ee8d889653d46a70d05582292", "signature": "HeadlessApp ParkPointer()", "summary": "Takes the pointer off the app and draws the frame that reacts, so a screenshot is of the UI and not of the tooltip the last click left behind. SavePng does this itself." }, { "name": "Press", "kind": "method", "id": "method|Press|0|0|HeadlessApp|||hc70c9499839ffd7cca3a9e84665eebdf5c6f07debc4c1228d41459f627aacefb", "signature": "HeadlessApp Press()", "summary": "Presses the left button and draws the frame that sees the press." }, { "name": "Release", "kind": "method", "id": "method|Release|0|0|HeadlessApp|||h7fa05977d3791cb22f0fcdefe9bf86efd4ae76ad199e58772b976d73fd1740b7", "signature": "HeadlessApp Release()", "summary": "Releases the left button and draws the frame that reports the click." }, { "name": "ScrollAt", "kind": "method", "id": "method|ScrollAt|0|0|HeadlessApp|float x;float y;float dy;float dx = default||h62b831947b3ac89b348a26f2df1f78176801e668e13e4c465e94b3374218cadc", "signature": "HeadlessApp ScrollAt(float x, float y, float dy, float dx = default)", "parameters": [{ "name": "x", "type": "float" }, { "name": "y", "type": "float" }, { "name": "dy", "type": "float" }, { "name": "dx", "type": "float", "default": "default" }], "summary": "Moves the pointer to (x, y) and scrolls there: the wheel goes to whichever scroll area holds that point. The distance is in wheel notches and a positive dy scrolls up, as a real wheel does; a negative one reaches for what is below the fold. Draws the frame that shows the new offset \u2014 a spring-animated scroll needs a few Frame calls to settle where it lands." }, { "name": "Type", "kind": "method", "id": "method|Type|0|0|HeadlessApp|string text||h97a1e4d23535309d2f6404313656a2ce95275d0e1ba3c2df130c7a3f70782245", "signature": "HeadlessApp Type(string text)", "parameters": [{ "name": "text", "type": "string" }], "summary": "Types text into whatever has focus, and draws the frame that accepts it." }, { "name": "Widgets", "kind": "property", "id": "property|Widgets|0|0|IReadOnlyList\u003CSemanticWidget\u003E||get;|hf361de9bebc687bd20b11a46c2e43f178f39634686b9f3b9e71cfcf153154f67", "signature": "IReadOnlyList\u003CSemanticWidget\u003E Widgets { get; }", "summary": "Every control the last frame drew, in drawing order." }, { "name": "Faults", "kind": "property", "id": "property|Faults|0|0|IReadOnlyList\u003Cstring\u003E||get;|hcd480861b6837af5e65e0c529272438bb9a9b6d01925a764ff47a3b315d18b1d", "signature": "IReadOnlyList\u003Cstring\u003E Faults { get; }", "summary": "Exceptions a component threw while drawing; an empty list is a healthy frame." }, { "name": "RawPixels", "kind": "property", "id": "property|RawPixels|0|0|ReadOnlySpan\u003Cbyte\u003E||get;|h1595671ac794e37c504b591f4dfb0b943209a8597317f116c01dc55bd38f7c6b", "signature": "ReadOnlySpan\u003Cbyte\u003E RawPixels { get; }", "summary": "The last frame\u0027s pixels, RGBA." }, { "name": "Tree", "kind": "property", "id": "property|Tree|0|0|SemanticNode||get;|h8545f28c2f25a968c4be78d681487aa8f42df7d54f6f6f5dd1e744f429c65806", "signature": "SemanticNode Tree { get; }", "summary": "The last frame\u0027s controls nested the way the app drew them: a button inside ui.Card(new() { Id = \u0022editor\u0022 }) is a child of Card \u0022editor\u0022, even when unnamed containers sit between them." }, { "name": "WaitFor", "kind": "method", "id": "method|WaitFor|0|0|WaitOutcome|string query;TimeSpan timeout;CancellationToken cancellationToken = default||h1a2183f22c4e10789025f3ce403caa71a4adb22a527c15add25a744287d5f832", "signature": "WaitOutcome WaitFor(string query, TimeSpan timeout, CancellationToken cancellationToken = default)", "parameters": [{ "name": "query", "type": "string" }, { "name": "timeout", "type": "TimeSpan" }, { "name": "cancellationToken", "type": "CancellationToken", "default": "default" }], "summary": "Draws real frames until one draws a control that answers query (the same vocabulary as Find), or until timeout passes. The latest completed frame is asked first, so a wait for what is already on screen draws no frames at all." }, { "name": "WaitReady", "kind": "method", "id": "method|WaitReady|0|0|WaitOutcome|TimeSpan timeout;CancellationToken cancellationToken = default||h2344feda4bb984cdb8aed71ac4302bd94231f1e12e370ec3fa0b58f9a1d836d0", "signature": "WaitOutcome WaitReady(TimeSpan timeout, CancellationToken cancellationToken = default)", "parameters": [{ "name": "timeout", "type": "TimeSpan" }, { "name": "cancellationToken", "type": "CancellationToken", "default": "default" }], "summary": "Draws real frames until one completes that called MarkReady, or until timeout has passed on the wall clock. Every frame drains completed background work first, so data that arrives on a pool thread becomes visible on the frame that draws after it \u2014 which is what a wait is for. The latest completed frame may answer without another one being drawn: a wait that needs no frames reports Frames of 0 \u2014 and a window already spent when the first frame would have started is a miss that drew nothing. A draw cannot be interrupted, but a condition that turns true only after the window has passed is reported as a miss, not as a late success." }, { "name": "Find", "kind": "method", "id": "method|Find|0|0|WidgetTarget|string kind;string text||h1bb2d62f3680eb0c19900c345fda3357c44b1deeb94d6ddbbe38eb3f42fc4ffd", "signature": "WidgetTarget Find(string kind, string text)", "parameters": [{ "name": "kind", "type": "string" }, { "name": "text", "type": "string" }], "summary": "Finds a control of a kind and a label, e.g. Find(\u0022Button\u0022, \u0022Save\u0022)." }, { "name": "Find", "kind": "method", "id": "method|Find|0|0|WidgetTarget|string query||h9d9f9fac08a30a8548e9c7fbcda39ec13f1f404fa63de19b5fcee96ffd42cd91", "signature": "WidgetTarget Find(string query)", "parameters": [{ "name": "query", "type": "string" }], "summary": "Finds a control by a query: a label (Save), a kind and a label (Button \u0022Save\u0022), or a path (editor \u003E Button \u0022Save\u0022: containers are bare, only the last step names a kind)." }, { "name": "FindButton", "kind": "method", "id": "method|FindButton|0|0|WidgetTarget|string label||hbbacdbec5fb9f23bcc9d4aeb82b2fe3a5af64711fd42cce031629e935477e8c8", "signature": "WidgetTarget FindButton(string label)", "parameters": [{ "name": "label", "type": "string" }], "summary": "Finds a button by its label." }, { "name": "FindById", "kind": "method", "id": "method|FindById|0|0|WidgetTarget|string id||h0d9247bef6926b3d3b9d9c50e001208698befbb15643a9efc7dba9112efe52b6", "signature": "WidgetTarget FindById(string id)", "parameters": [{ "name": "id", "type": "string" }], "summary": "Finds a widget by the exact text the app drew it with \u2014 its id, for every widget that has one \u2014 and never by a partial or fuzzy match. This is the query to write when a label can be translated: FindById(\u0022draft\u0022) keeps working in another language, while Find(\u0022draft\u0022) was only ever guessing." }, { "name": "FindInput", "kind": "method", "id": "method|FindInput|0|0|WidgetTarget|string id||ha21d8796c2e42e310d821632148f5696664e22789d7f9fca032bccf99f5ad419", "signature": "WidgetTarget FindInput(string id)", "parameters": [{ "name": "id", "type": "string" }], "summary": "Finds a text field by its id." }, { "name": "FindItem", "kind": "method", "id": "method|FindItem|0|0|WidgetTarget|string id;int index||h58c7cbfca4332017d8867744ab1ca067e9a16b2f476dfa77500267d60c71f4e5", "signature": "WidgetTarget FindItem(string id, int index)", "parameters": [{ "name": "id", "type": "string" }, { "name": "index", "type": "int" }], "summary": "The indexth item of the multi-item widget drawn with id: a tab, a segment, a row. The label of an item is translatable, its position is not, so this is how a test names one without hard-coding the words." }, { "name": "FindUnique", "kind": "method", "id": "method|FindUnique|0|0|WidgetTarget|string query||hc721f25f0ee2ccde92a2bf1f8e285f477e0f8b22d6330a89e799472a7dc3ba74", "signature": "WidgetTarget FindUnique(string query)", "parameters": [{ "name": "query", "type": "string" }], "summary": "Finds one control and refuses when the frame draws several equally good matches. Use it for commands where guessing would act on the wrong row; Find keeps the best-ranked match for programmatic callers." }, { "name": "Animating", "kind": "property", "id": "property|Animating|0|0|bool||get;|h31a492e61fccdc7fd83e6c8ed8e83345bdfccdafc84504c3e532f94155aeda56", "signature": "bool Animating { get; }", "summary": "True when something in the last frame asked for another one: an animation in flight, a transition, work that finished on a pool thread. Settle is the loop around it." }, { "name": "PaintedAnything", "kind": "method", "id": "method|PaintedAnything|0|0|bool|||hc6a981a5d4b20d54b1b865a8ed0f5fef77d3c9f59fec3259d142b03cc512642f", "signature": "bool PaintedAnything()", "summary": "True when the last frame painted anything at all." }, { "name": "Ready", "kind": "property", "id": "property|Ready|0|0|bool||get;|h03be3cfec0542d3cf3efe6003035d3a0d2f76ef268a62ef8589ca769105bcfd6", "signature": "bool Ready { get; }", "summary": "Whether the latest completed frame declared its data ready with MarkReady. A frame that did not mark itself is not ready, whatever the frame before it claimed." }, { "name": "TryFind", "kind": "method", "id": "method|TryFind|0|0|bool|string query;out WidgetTarget widget||h392d9569dd63494ff11a7cba9bab5add41638093b36bfb0f0d11478be48eab60", "signature": "bool TryFind(string query, out WidgetTarget widget)", "parameters": [{ "name": "query", "type": "string" }, { "name": "widget", "type": "out WidgetTarget" }], "summary": "True when the last frame drew something that answers the query." }, { "name": "Height", "kind": "property", "id": "property|Height|0|0|int||get;|h6bb9d208a8c2d3f5c816b385df95628119cf129ab8d5cdd4b5e576b46037865c", "signature": "int Height { get; }", "summary": "Logical height in points." }, { "name": "Settle", "kind": "method", "id": "method|Settle|0|0|int|int maxFrames = 240;TimeSpan? step = default||h2884d1fda375f255880e29fef21977c3966174e05e4b0fda7cde38300a0612c3", "signature": "int Settle(int maxFrames = 240, TimeSpan? step = default)", "parameters": [{ "name": "maxFrames", "type": "int", "default": "240" }, { "name": "step", "type": "TimeSpan?", "default": "default" }], "summary": "Draws frames until nothing wants another one, moving the clock by step each time. This is the replacement for a sleep loop: an animation that takes half a second settles in a few milliseconds, and the count says how long it took." }, { "name": "Width", "kind": "property", "id": "property|Width|0|0|int||get;|ha0864f5f4fda3365ae1a32446710954c2726b6bf0ae6f93e7b91c06c3464059b", "signature": "int Width { get; }", "summary": "Logical width in points." }, { "name": "Start", "kind": "method", "id": "method|Start|1|0|HeadlessApp|Component root;int width = 1024;int height = 768;float scale = 1f;Theme theme = Theme.Light;Accent accent = Accent.Neutral||h1e5b5b0d7001e43da6fe7c233c65d21aef6bb43f443207e450b36d7f9bf2f5e5", "signature": "static HeadlessApp Start(Component root, int width = 1024, int height = 768, float scale = 1f, Theme theme = Theme.Light, Accent accent = Accent.Neutral)", "parameters": [{ "name": "root", "type": "Component" }, { "name": "width", "type": "int", "default": "1024" }, { "name": "height", "type": "int", "default": "768" }, { "name": "scale", "type": "float", "default": "1f" }, { "name": "theme", "type": "Theme", "default": "Theme.Light" }, { "name": "accent", "type": "Accent", "default": "Accent.Neutral" }], "summary": "Starts an app around one component, initializing it the way the host does." }, { "name": "Start", "kind": "method", "id": "method|Start|1|0|HeadlessApp|DrawFn draw;int width = 1024;int height = 768;float scale = 1f;Theme theme = Theme.Light;Accent accent = Accent.Neutral||he7844293216898ca9b0b006f61b4910517fe23935747ae7f38412d03143dbbe9", "signature": "static HeadlessApp Start(DrawFn draw, int width = 1024, int height = 768, float scale = 1f, Theme theme = Theme.Light, Accent accent = Accent.Neutral)", "parameters": [{ "name": "draw", "type": "DrawFn" }, { "name": "width", "type": "int", "default": "1024" }, { "name": "height", "type": "int", "default": "768" }, { "name": "scale", "type": "float", "default": "1f" }, { "name": "theme", "type": "Theme", "default": "Theme.Light" }, { "name": "accent", "type": "Accent", "default": "Accent.Neutral" }], "summary": "Starts an app that draws draw for every frame." }, { "name": "Print", "kind": "method", "id": "method|Print|0|0|string|bool rects = default||h06252dafaeb8005776cf294d00cc449cae2255f6fc351ae1f5be1e7d769c801e", "signature": "string Print(bool rects = default)", "parameters": [{ "name": "rects", "type": "bool", "default": "default" }], "summary": "The last frame\u0027s tree as text, which is also what ToString gives." }, { "name": "PrintLayout", "kind": "method", "id": "method|PrintLayout|0|0|string|||h1aca4fa317bff1c9a17b9ff43a8ce93464478a32b3aba59b2cd66e9b17152dd5", "signature": "string PrintLayout()", "summary": "The LayoutFormatter view of the last frame: verified rectangles, observed bounds labelled as the lower bounds they are, and unknown extents named as unknowns." }, { "name": "SavePng", "kind": "method", "id": "method|SavePng|0|0|string|string? path = null;bool parked = true||hb90d4d8b7c789b4eddcca8f1bc64ed99b3ebc8de616717d3cbba041aff978a98", "signature": "string SavePng(string? path = null, bool parked = true)", "parameters": [{ "name": "path", "type": "string?", "default": "null" }, { "name": "parked", "type": "bool", "default": "true" }], "summary": "Writes the last frame as a PNG and returns the path, for a human or an agent to look at. The pointer is taken off the UI first, so a hover tooltip left by the last click is not in the picture; pass parked = false to photograph the app as it stands." }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()" }, { "name": "Dispose", "kind": "method", "id": "method|Dispose|0|0|void|||h743737a1705f80570f9b0dca3334406a3351c7ecb98acd045baf6804dd060a4e", "signature": "void Dispose()" }] }, { "name": "CuiSharp.Hosting.HeadlessApp\u002BWaitOutcome", "displayName": "WaitOutcome", "kind": "struct", "members": [{ "name": "Elapsed", "kind": "property", "id": "property|Elapsed|0|0|TimeSpan||get;|h943284be104648ac96f791bfd85ff89e3a5d8998ededcd19a3d86c2c5d54545f", "signature": "TimeSpan Elapsed { get; }" }, { "name": "Satisfied", "kind": "property", "id": "property|Satisfied|0|0|bool||get;|ha45053bdb077ec5171b51a538c43fc0d24edf017a9371dfc056a87f7e11ec855", "signature": "bool Satisfied { get; }" }, { "name": "Frames", "kind": "property", "id": "property|Frames|0|0|int||get;|h56bd5199d59de95a6bf113863a466497826770b49557c95cd41361a484c7fede", "signature": "int Frames { get; }" }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()" }] }, - { "name": "CuiSharp.Hosting.HeadlessLoop", "displayName": "HeadlessLoop", "kind": "static class", "summary": "Runs an app with no window and answers commands on a stream, so a tool \u2014 dotnet cui, an MCP server, a shell script \u2014 can look at a frame and act on it.", "members": [{ "name": "EnvironmentVariable", "kind": "constant", "id": "constant|EnvironmentVariable|1|0|string||CUISHARP_HEADLESS|ha44e567370773145da7ebbd6ebeac9df2b8139d701bac9a4c4e3e346e91b2991", "signature": "public const string EnvironmentVariable = \u0022CUISHARP_HEADLESS\u0022", "summary": "The environment variable an app checks to run without a window.", "value": "CUISHARP_HEADLESS" }, { "name": "Known", "kind": "property", "id": "property|Known|1|0|IReadOnlyList\u003Cstring\u003E||get;|h085bcbb292ce64c780e24a5c3a9f64db8dc642f5d755d39fca744503879f9a72", "signature": "static IReadOnlyList\u003Cstring\u003E Known { get; }", "summary": "The commands the loop understands, for a client that wants to list them." }, { "name": "Requested", "kind": "method", "id": "method|Requested|1|0|bool|string[]? args = null||hc0e5ea7160e0461cc5b41dbb44b88857ab431762b827314f910688ea78921a42", "signature": "static bool Requested(string[]? args = null)", "parameters": [{ "name": "args", "type": "string[]?", "default": "null" }], "summary": "True when this process was asked to run without a window." }, { "name": "Run", "kind": "method", "id": "method|Run|1|0|int|DrawFn draw;CuiAppOptions window;TextReader? input = null;TextWriter? output = null||h37edee97f7be63ccf9a98383e568e10725a14a8431d1b588b7a21cd59b07507d", "signature": "static int Run(DrawFn draw, CuiAppOptions window, TextReader? input = null, TextWriter? output = null)", "parameters": [{ "name": "draw", "type": "DrawFn" }, { "name": "window", "type": "CuiAppOptions" }, { "name": "input", "type": "TextReader?", "default": "null" }, { "name": "output", "type": "TextWriter?", "default": "null" }], "summary": "Serves commands for an app that draws with a callback: a gallery, a demo, a single-file tool, or a hosted component \u2014 the host is the callback either way." }, { "name": "Run", "kind": "method", "id": "method|Run|1|0|int|HeadlessApp app;TextReader? input = null;TextWriter? output = null||hc55d4e1df5958d2b5f8157071f361936fb2ac62ac6ea15e2bffea83d29bee6de", "signature": "static int Run(HeadlessApp app, TextReader? input = null, TextWriter? output = null)", "parameters": [{ "name": "app", "type": "HeadlessApp" }, { "name": "input", "type": "TextReader?", "default": "null" }, { "name": "output", "type": "TextWriter?", "default": "null" }], "summary": "Serves commands against an app the caller already started." }] }, + { "name": "CuiSharp.Hosting.HeadlessLoop", "displayName": "HeadlessLoop", "kind": "static class", "summary": "Runs an app with no window and answers commands on a stream, so a tool \u2014 dotnet cui, an MCP server, a shell script \u2014 can look at a frame and act on it.", "members": [{ "name": "EnvironmentVariable", "kind": "constant", "id": "constant|EnvironmentVariable|1|0|string||CUISHARP_HEADLESS|ha44e567370773145da7ebbd6ebeac9df2b8139d701bac9a4c4e3e346e91b2991", "signature": "public const string EnvironmentVariable = \u0022CUISHARP_HEADLESS\u0022", "summary": "The environment variable an app checks to run without a window.", "value": "CUISHARP_HEADLESS" }, { "name": "ViewportEnvironmentVariable", "kind": "constant", "id": "constant|ViewportEnvironmentVariable|1|0|string||CUISHARP_VIEWPORT|h6f47be7a67ac547761d671cc926d323c91f543fedab4b156772362fdbf42e7db", "signature": "public const string ViewportEnvironmentVariable = \u0022CUISHARP_VIEWPORT\u0022", "summary": "The environment variable a headless app reads for its viewport, as WxH.", "value": "CUISHARP_VIEWPORT" }, { "name": "Known", "kind": "property", "id": "property|Known|1|0|IReadOnlyList\u003Cstring\u003E||get;|h085bcbb292ce64c780e24a5c3a9f64db8dc642f5d755d39fca744503879f9a72", "signature": "static IReadOnlyList\u003Cstring\u003E Known { get; }", "summary": "The commands the loop understands, for a client that wants to list them." }, { "name": "Requested", "kind": "method", "id": "method|Requested|1|0|bool|string[]? args = null||hc0e5ea7160e0461cc5b41dbb44b88857ab431762b827314f910688ea78921a42", "signature": "static bool Requested(string[]? args = null)", "parameters": [{ "name": "args", "type": "string[]?", "default": "null" }], "summary": "True when this process was asked to run without a window." }, { "name": "Run", "kind": "method", "id": "method|Run|1|0|int|DrawFn draw;CuiAppOptions window;TextReader? input = null;TextWriter? output = null||h37edee97f7be63ccf9a98383e568e10725a14a8431d1b588b7a21cd59b07507d", "signature": "static int Run(DrawFn draw, CuiAppOptions window, TextReader? input = null, TextWriter? output = null)", "parameters": [{ "name": "draw", "type": "DrawFn" }, { "name": "window", "type": "CuiAppOptions" }, { "name": "input", "type": "TextReader?", "default": "null" }, { "name": "output", "type": "TextWriter?", "default": "null" }], "summary": "Serves commands for an app that draws with a callback: a gallery, a demo, a single-file tool, or a hosted component \u2014 the host is the callback either way." }, { "name": "Run", "kind": "method", "id": "method|Run|1|0|int|HeadlessApp app;TextReader? input = null;TextWriter? output = null||hc55d4e1df5958d2b5f8157071f361936fb2ac62ac6ea15e2bffea83d29bee6de", "signature": "static int Run(HeadlessApp app, TextReader? input = null, TextWriter? output = null)", "parameters": [{ "name": "app", "type": "HeadlessApp" }, { "name": "input", "type": "TextReader?", "default": "null" }, { "name": "output", "type": "TextWriter?", "default": "null" }], "summary": "Serves commands against an app the caller already started." }] }, { "name": "CuiSharp.Hosting.Mutation", "displayName": "Mutation", "kind": "class", "summary": "A Mutation\u00601 whose work has no result.", "members": [{ "name": "Error", "kind": "property", "id": "property|Error|0|0|Exception?||get;|hb67d4cbeee04c77705d935c8f9afc91d020a674a85f3ebb45a3c6dfd8005cfea", "signature": "Exception? Error { get; }", "summary": "The failure that ended the last run, or null. Read it every frame; it costs nothing." }, { "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||Func\u003CCancellationToken, Task\u003E work||hfcf9ec1d5f318ee6d44a793ffdd1166e6d4e6b9833fa1bcdd8717280dcbda975", "signature": "Mutation(Func\u003CCancellationToken, Task\u003E work)", "parameters": [{ "name": "work", "type": "Func\u003CCancellationToken, Task\u003E" }], "summary": "Creates a mutation around the work it runs." }, { "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||Func\u003CCancellationToken, Task\u003E work;Action? onSuccess||h089de149d2fa382d351a6f8460c423879bd62eceb657211b45a1c1b69d25f3fb", "signature": "Mutation(Func\u003CCancellationToken, Task\u003E work, Action? onSuccess)", "parameters": [{ "name": "work", "type": "Func\u003CCancellationToken, Task\u003E" }, { "name": "onSuccess", "type": "Action?" }], "summary": "Creates a mutation that calls onSuccess on the UI thread, before the next frame draws, once the work completes." }, { "name": "IsRunning", "kind": "property", "id": "property|IsRunning|0|0|bool||get;|hdb50b35f9f11d94a95bf6f33b6d55042e6ef5b6754a94143c75a7814c03fafc3", "signature": "bool IsRunning { get; }", "summary": "True while the operation is in flight." }, { "name": "Dispose", "kind": "method", "id": "method|Dispose|0|0|void|||h743737a1705f80570f9b0dca3334406a3351c7ecb98acd045baf6804dd060a4e", "signature": "void Dispose()", "summary": "Cancels a running operation. Optional." }, { "name": "Run", "kind": "method", "id": "method|Run|0|0|void|||h7fa7970a6de0dd0432fb375a6fdd0984556b406ca72f5dcb18c83b9546faba45", "signature": "void Run()", "summary": "Starts the operation. Re-entry is ignored, so it is safe to call every frame." }] }, { "name": "CuiSharp.Hosting.Mutation\u00601", "displayName": "Mutation", "kind": "class", "summary": "One background operation owned by a component: start it, keep drawing, and see the result on a later frame. The frame loop is synchronous, so nothing inside Draw may await. A mutation is the shape that makes that safe: it runs the work on the pool, holds the outcome, and never touches a Ui from a pool thread. While the operation runs \u2014 and for the one frame its result still needs to be drawn \u2014 the host keeps requesting frames, so the state appears immediately instead of on the next mouse move. Error and IsRunning are always current and cost nothing to read, so a fire-and-forget mutation needs no bookkeeping in Draw. Pass an apply callback when the result has to change state, and Draw never polls: the callback runs on the UI thread, before the next frame draws.", "members": [{ "name": "Error", "kind": "property", "id": "property|Error|0|0|Exception?||get;|hb67d4cbeee04c77705d935c8f9afc91d020a674a85f3ebb45a3c6dfd8005cfea", "signature": "Exception? Error { get; }", "summary": "The failure that ended the last run, or null. Cached when the operation completes, so reading it every frame allocates nothing." }, { "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||Func\u003CCancellationToken, Task\u003CT\u003E\u003E work||h407c67811e4cd751644c16cd780b2aa8f6144d3999000bb9a13e4867a2511590", "signature": "Mutation\u003CT\u003E(Func\u003CCancellationToken, Task\u003CT\u003E\u003E work)", "parameters": [{ "name": "work", "type": "Func\u003CCancellationToken, Task\u003CT\u003E\u003E" }], "summary": "Creates a mutation around the work it runs." }, { "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||Func\u003CCancellationToken, Task\u003CT\u003E\u003E work;Action\u003CT\u003E? apply||h439a867bc51e16192ebb428f43d5d5ad97e83f3395e337d6fadd63dfcb5ec734", "signature": "Mutation\u003CT\u003E(Func\u003CCancellationToken, Task\u003CT\u003E\u003E work, Action\u003CT\u003E? apply)", "parameters": [{ "name": "work", "type": "Func\u003CCancellationToken, Task\u003CT\u003E\u003E" }, { "name": "apply", "type": "Action\u003CT\u003E?" }], "summary": "Creates a mutation that hands its result to apply on the UI thread, before the next frame draws." }, { "name": "IsRunning", "kind": "property", "id": "property|IsRunning|0|0|bool||get;|hdb50b35f9f11d94a95bf6f33b6d55042e6ef5b6754a94143c75a7814c03fafc3", "signature": "bool IsRunning { get; }", "summary": "True while the operation is in flight." }, { "name": "TryPublish", "kind": "method", "id": "method|TryPublish|0|0|bool|out T result||ha98becc21c9c0f32b7a93fa1ebe90da051774564169240986c82f6a725c2b6ce", "signature": "bool TryPublish(out T? result)", "parameters": [{ "name": "result", "type": "out T?" }], "summary": "Takes the result if the operation finished. Needed only when the result has no apply callback; an operation that was given one has already applied it." }, { "name": "Dispose", "kind": "method", "id": "method|Dispose|0|0|void|||h743737a1705f80570f9b0dca3334406a3351c7ecb98acd045baf6804dd060a4e", "signature": "void Dispose()", "summary": "Cancels a running operation and drops its result. Optional: a mutation that is never disposed is cancelled when the process exits, which is what an app usually wants. After this, a completion that arrives late \u2014 the work finished just before the page was navigated away from \u2014 is dropped instead of applying into a component that no longer exists." }, { "name": "Run", "kind": "method", "id": "method|Run|0|0|void|||h7fa7970a6de0dd0432fb375a6fdd0984556b406ca72f5dcb18c83b9546faba45", "signature": "void Run()", "summary": "Starts the operation \u2014 on the pool, never on the frame thread. Re-entry is ignored, so it is safe to call every frame, and a run started after Dispose is ignored too: the component that owned it is gone." }] }, { "name": "CuiSharp.Hosting.WidgetTarget", "displayName": "WidgetTarget", "kind": "struct", "summary": "One control of a frame, as something to act on: hover it, click it, read where it is.", "members": [{ "name": "ClickAndFrame", "kind": "method", "id": "method|ClickAndFrame|0|0|HeadlessApp|||h43e085aa37f6bc8677e3c93bfcfbbe3239ac58d49311d15cc64e9a3dd3a90869", "signature": "HeadlessApp ClickAndFrame()", "summary": "Clicks the widget and returns the app, whose last frame reacted to it." }, { "name": "Rect", "kind": "property", "id": "property|Rect|0|0|RectF||get;|hf755173a5fe47fca342422117b9258f72be7002a01ae38cb809f072f70e4e9a6", "signature": "RectF Rect { get; }", "summary": "Where it was laid out in the frame it was found in." }, { "name": "Click", "kind": "method", "id": "method|Click|0|0|WidgetTarget|||hfad9f154f0bc2a0506748d7415467cb904dbe6fe379b297d23818d6cfe8d4c8d", "signature": "WidgetTarget Click()", "summary": "Clicks the widget: pointer over it, a press frame, a release frame. The widget reports the click on the release, so the frame after this one shows the result." }, { "name": "Hover", "kind": "method", "id": "method|Hover|0|0|WidgetTarget|||ha21b70758524839ef7605ba94fb74e78ebfe78f13e935f313437213f5181cf7c", "signature": "WidgetTarget Hover()", "summary": "Moves the pointer to the middle of the widget and draws a frame." }, { "name": "Kind", "kind": "property", "id": "property|Kind|0|0|string||get;|h388961e1f6a3037bd4a4c8333a144e60a99cdcd3bd10798d477a76bdae288a1d", "signature": "string Kind { get; }", "summary": "The wrapper that drew it: Button, Input, ListItem." }, { "name": "Text", "kind": "property", "id": "property|Text|0|0|string||get;|h221097532e4154611cbbc42c65b80d74f8055bd282efb709184598cd9d2c27bb", "signature": "string Text { get; }", "summary": "The id, or the label when the widget takes no id." }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()" }] }, diff --git a/src/CuiSharp.Tests/HeadlessLoopTests.cs b/src/CuiSharp.Tests/HeadlessLoopTests.cs index f651c46..15b8084 100644 --- a/src/CuiSharp.Tests/HeadlessLoopTests.cs +++ b/src/CuiSharp.Tests/HeadlessLoopTests.cs @@ -263,6 +263,59 @@ public void ClickOnAWordLandsOnTheControlNotTheHeading() Assert.StartsWith("Heading", Wire(app, "find Heading \"Save\""), StringComparison.Ordinal); } + /// Two identical controls: a click must not pick one silently. + private sealed class TwoSaves : Component + { + public int Saves; + + protected override void Draw(Ui ui) + { + if (ui.Button("Save")) Saves++; + if (ui.Button("Save")) Saves++; + } + } + + [Fact] + public void ClickRefusesTwoEquallyGoodMatches() + { + if (!OperatingSystem.IsWindows()) return; + + var page = new TwoSaves(); + using var app = TestApp.Start(page, 400, 300); + + string error = ErrorWire(app, "click Save"); + Assert.Contains("matches 2 controls", error, StringComparison.Ordinal); + Assert.Contains("id:", error, StringComparison.Ordinal); + Assert.Equal(0, page.Saves); + + // A kind is not enough when both controls share it; an id or a path is. + Assert.Contains("matches 2 controls", ErrorWire(app, "find Button \"Save\""), StringComparison.Ordinal); + } + + /// An icon-only control with no label but a tooltip. + private sealed class IconPage : Component + { + public int Clicks; + + protected override void Draw(Ui ui) + { + if (ui.IconButton(Icons.Pause, new ButtonOpts { Tooltip = "Pause" })) Clicks++; + } + } + + [Fact] + public void AnIconButtonIsFoundAndClickedByItsTooltip() + { + if (!OperatingSystem.IsWindows()) return; + + var page = new IconPage(); + using var app = TestApp.Start(page, 400, 300); + + Assert.StartsWith("IconButton \"Pause\"", Wire(app, "find Pause"), StringComparison.Ordinal); + Wire(app, "click Pause"); + Assert.Equal(1, page.Clicks); + } + /// A page whose frames mark ready and draw a label only once a flag flips. private sealed class ReadyPage : Component { diff --git a/src/CuiSharp.Tests/TestApps/ReadyProbe/Program.cs b/src/CuiSharp.Tests/TestApps/ReadyProbe/Program.cs index 93e36cc..470ce5a 100644 --- a/src/CuiSharp.Tests/TestApps/ReadyProbe/Program.cs +++ b/src/CuiSharp.Tests/TestApps/ReadyProbe/Program.cs @@ -6,16 +6,19 @@ // the command that asked for it instead of letting it through. string[] argv = Environment.GetCommandLineArgs(); int readyAfter = 0; +string? labelEnv = null; for (int i = 0; i < argv.Length - 1; i++) { if (argv[i] == "--ready-after") readyAfter = int.Parse(argv[i + 1]); + if (argv[i] == "--label-env") labelEnv = argv[i + 1]; } +string loading = labelEnv is null ? "loading" : Environment.GetEnvironmentVariable(labelEnv) ?? "missing"; int drawn = 0; return CuiApp.Run(new CuiAppOptions { Title = "ReadyProbe", Width = 320, Height = 200 }, ui => { drawn++; bool ready = readyAfter > 0 && drawn >= readyAfter; - ui.Label(ready ? $"data {readyAfter}" : "loading"); + ui.Label(ready ? $"data {readyAfter}" : loading); if (ready) ui.MarkReady(); }); diff --git a/src/CuiSharp.Tests/ToolArgumentTests.cs b/src/CuiSharp.Tests/ToolArgumentTests.cs index dd52449..1bf747d 100644 --- a/src/CuiSharp.Tests/ToolArgumentTests.cs +++ b/src/CuiSharp.Tests/ToolArgumentTests.cs @@ -200,6 +200,9 @@ public void EveryCommandAndOptionTheHelpListsCanBeTyped() private static string SampleOption(CliOption option) => option.Name switch { "--wait" => "ready", + "--size" => "420x720", + "--sizes" => "420x720,1180x820", + "--env" => "KEY=VALUE", _ => option.ValueType == typeof(string) ? "x" : "2", }; @@ -264,6 +267,59 @@ public void AWaitIsAPreconditionAndNotTheCommand() Assert.Equal(Cli.Options.DefaultWaitSeconds, parsed.Options.WaitSeconds); } + [Fact] + public void AViewportSizeIsParsedOnceAndKeepsItsForm() + { + Grammar.Parsed parsed = Grammar.Parse(["tree", "--size", "420x720"]); + + Assert.Empty(parsed.Errors); + Assert.Equal(new Viewport(420, 720), parsed.Options!.Viewport); + Assert.Equal("420x720", parsed.Options.Viewport.ToString()); + } + + [Theory] + [InlineData("420")] + [InlineData("0x720")] + [InlineData("420x0")] + [InlineData("widex720")] + [InlineData("420x720x1080")] + public void AMalformedViewportIsAUsageError(string value) + { + Assert.NotEmpty(Grammar.Parse(["tree", "--size", value]).Errors); + } + + [Fact] + public void SizesAreACommaSeparatedPngMatrix() + { + Grammar.Parsed parsed = Grammar.Parse(["png", "shot.png", "--sizes", "420x720,1180x820"]); + + Assert.Empty(parsed.Errors); + Assert.Equal(["420x720", "1180x820"], parsed.Options!.Viewports.Select(static viewport => viewport.ToString())); + Assert.NotEmpty(Grammar.Parse(["tree", "--sizes", "420x720,1180x820"]).Errors); + } + + [Fact] + public void EnvironmentPairsAndAStateRootReachTheOptions() + { + Grammar.Parsed parsed = Grammar.Parse( + ["tree", "--env", "CUI_STATE_HOME=C:\\scratch", "--env", "LANG=zh-CN", "--env", "EMPTY=", "--state", "C:\\state"]); + + Assert.Empty(parsed.Errors); + Assert.Equal("C:\\scratch", parsed.Options!.Environment["CUI_STATE_HOME"]); + Assert.Equal("zh-CN", parsed.Options.Environment["LANG"]); + Assert.Equal("", parsed.Options.Environment["EMPTY"]); + Assert.Equal("C:\\state", parsed.Options.State); + } + + [Theory] + [InlineData("missing-equals")] + [InlineData("=value")] + [InlineData("BAD-KEY=value")] + public void AMalformedEnvironmentPairIsAUsageError(string value) + { + Assert.NotEmpty(Grammar.Parse(["tree", "--env", value]).Errors); + } + [Fact] public void AWaitIsWrittenAfterTheCommandItGates() { @@ -443,6 +499,58 @@ public void TheToolWaitsForReadinessBeforeItLetsTheCommandThrough() } } + [Fact] + public void AHeadlessRunCanOverrideItsViewportAndState() + { + if (!OperatingSystem.IsWindows()) return; + + string project = Path.Combine(TestPaths.RepositoryRoot, "src", "CuiSharp.Tests", "TestApps", "ReadyProbe"); + string root = Directory.CreateTempSubdirectory("cui-viewport-").FullName; + + try + { + var output = new StringWriter(); + var error = new StringWriter(); + int sized = Cli.Run(["tree", "--project", project, "--size", "420x720"], output, error); + + Assert.True(sized == 0, $"the app should start at the requested size: {error}"); + Assert.Contains("loading", output.ToString(), StringComparison.Ordinal); + + var envOutput = new StringWriter(); + var envError = new StringWriter(); + int env = Cli.Run( + ["tree", "--project", project, "--no-build", "--env", "P0_ENV=ok", "--", "--label-env", "P0_ENV"], + envOutput, + envError); + + Assert.True(env == 0, $"the environment should reach the app: {envError}"); + Assert.Contains("ok", envOutput.ToString(), StringComparison.Ordinal); + + string state = Path.Combine(root, "state"); + var stateError = new StringWriter(); + int restored = Cli.Run( + ["tree", "--project", project, "--no-build", "--state", state], new StringWriter(), stateError); + + Assert.True(restored == 0, $"the state directory should be accepted: {stateError}"); + Assert.True(Directory.Exists(state), "--state should create the app state root"); + + string shot = Path.Combine(root, "shot.png"); + var matrixError = new StringWriter(); + int matrix = Cli.Run( + ["png", shot, "--project", project, "--no-build", "--sizes", "320x200,400x300"], + new StringWriter(), + matrixError); + + Assert.True(matrix == 0, $"the size matrix should screenshot both viewports: {matrixError}"); + Assert.True(File.Exists(Path.Combine(root, "shot-320x200.png"))); + Assert.True(File.Exists(Path.Combine(root, "shot-400x300.png"))); + } + finally + { + Directory.Delete(root, recursive: true); + } + } + [Fact] public void ACommandThatOutlivesTheDefaultDeadlineIsAnsweredWhenItBoughtItsOwn() { diff --git a/src/CuiSharp.Tools/Cli.cs b/src/CuiSharp.Tools/Cli.cs index 9c675ae..6d31434 100644 --- a/src/CuiSharp.Tools/Cli.cs +++ b/src/CuiSharp.Tools/Cli.cs @@ -74,10 +74,14 @@ internal static int Run(string[] args, TextWriter output, TextWriter error, Text return 0; } + if (options.Viewports.Length > 1) + return RunViewports(options, output, error); + using HeadlessClient client = options.Attach ? LiveClient.Connect(options, error) : StartHeadless(options, error); + if (!CheckViewport(client, options, error)) return 1; if (!PassPreconditions(client, options, error)) return 1; if (options.Command == "session") return Relay(client, input, output, error); @@ -147,8 +151,87 @@ private static HeadlessClient StartHeadless(Options options, TextWriter error) $"No app found at \"{options.Project ?? Directory.GetCurrentDirectory()}\": " + "no .csproj and no file-based .cs app there."); + var environment = new Dictionary(StringComparer.OrdinalIgnoreCase); + if (options.State is { Length: > 0 } state) + { + string full; + try + { + full = Path.GetFullPath(state); + Directory.CreateDirectory(full); + } + catch (Exception failure) when (failure is ArgumentException or IOException or UnauthorizedAccessException) + { + throw new ToolException($"`{state}` is not a state directory this tool can use: {failure.Message}"); + } + + environment["CUISHARP_STATE_HOME"] = full; + } + + foreach ((string key, string value) in options.Environment) environment[key] = value; + if (options.Viewport is { } viewport) environment["CUISHARP_VIEWPORT"] = viewport.ToString(); + return HeadlessClient.Start( - host, hostArgs, echo: options.Quiet ? null : error.WriteLine); + host, hostArgs, echo: options.Quiet ? null : error.WriteLine, environment: environment); + } + + /// + /// The app's banner is the truth about the frame size. A package that predates + /// CUISHARP_VIEWPORT ignores it, so a silent 1080x720 screenshot would be worse than + /// a refusal: say which size arrived and how to get the requested one. + /// + private static bool CheckViewport(HeadlessClient client, Options options, TextWriter error) + { + if (options.Viewport is not { } viewport) return true; + if (string.Equals(client.Size, viewport.ToString(), StringComparison.Ordinal)) return true; + + error.WriteLine( + $"The app started at {client.Size}, not {viewport}. This CuiSharp build does not apply " + + "CUISHARP_VIEWPORT; rebuild it with a package or project reference that does, then retry."); + return false; + } + + /// + /// Runs png once per --sizes viewport. Each app instance gets its own frame + /// size, and each output name carries the size so the files cannot overwrite one another. + /// + private static int RunViewports(Options options, TextWriter output, TextWriter error) + { + if (options.Command != "png") + throw new ToolException( + "--sizes with more than one viewport is for `png`; run another command once per --size."); + + foreach (Viewport viewport in options.Viewports) + { + Options single = options with { Viewport = viewport, Viewports = [viewport] }; + using HeadlessClient client = StartHeadless(single, error); + if (!CheckViewport(client, single, error)) return 1; + if (!PassPreconditions(client, single, error)) return 1; + + string path = PngPath(single.Argument, viewport); + Answer answer = Ask(client, $"png {path}"); + if (!answer.Ok) + { + error.WriteLine(answer.Payload); + return 1; + } + + output.WriteLine(answer.Payload); + } + + return 0; + } + + private static string PngPath(string argument, Viewport viewport) + { + string path = argument.Length == 0 + ? Path.Combine(Path.GetTempPath(), $"cui-{viewport}.png") + : Path.GetFullPath(argument); + string directory = Path.GetDirectoryName(path) ?? Directory.GetCurrentDirectory(); + string extension = Path.GetExtension(path); + if (extension.Length == 0) extension = ".png"; + string stem = Path.GetFileNameWithoutExtension(path); + return Path.Combine(directory, $"{stem}-{viewport}{extension}"); } private static int AnswerCatalog(Options options, TextWriter output) @@ -324,6 +407,15 @@ internal sealed record Options internal string[] AppArgs { get; init; } = []; + internal Viewport? Viewport { get; init; } + + internal Viewport[] Viewports { get; init; } = []; + + internal IReadOnlyDictionary Environment { get; init; } = + new Dictionary(StringComparer.OrdinalIgnoreCase); + + internal string? State { get; init; } + internal string Line => Argument.Length == 0 ? Command : $"{Command} {Argument}"; /// How long dwell should keep drawing. diff --git a/src/CuiSharp.Tools/DocLibrary.cs b/src/CuiSharp.Tools/DocLibrary.cs index a8a436c..319d533 100644 --- a/src/CuiSharp.Tools/DocLibrary.cs +++ b/src/CuiSharp.Tools/DocLibrary.cs @@ -872,6 +872,11 @@ private static readonly (string Name, string Summary, string[] Sections, string ["SKILL#driving-a-running-app"], "The opt-in, the discovery and the cancellation rules are the same page's bullets — read them before scripting it."), + ("headless", + "viewports, isolated state and readiness for a headless run", + ["SKILL#headless-viewports-state-and-readiness"], + "Next: `dotnet cui png shot.png --size 420x720 --wait ready`, then inspect the document with `dotnet cui tree`."), + ("performance", "0 B per frame, virtualized rows, decimated charts, and the numbers that prove it", ["SKILL#long-series-and-live-data", "SKILL#frame-numbers", "SKILL#pitfalls"], diff --git a/src/CuiSharp.Tools/Grammar.cs b/src/CuiSharp.Tools/Grammar.cs index da0e587..b4058a7 100644 --- a/src/CuiSharp.Tools/Grammar.cs +++ b/src/CuiSharp.Tools/Grammar.cs @@ -97,6 +97,33 @@ private sealed class Symbols Arity = ArgumentArity.ZeroOrOne, }; + // ---- the environment the app starts in ----------------------------------------------- + + internal Option Size = new("--size") + { + Description = "headless viewport as WxH, e.g. 420x720", + HelpName = "WxH", + }; + + internal Option Sizes = new("--sizes") + { + Description = "comma-separated viewports for `png`, e.g. 420x720,1180x820", + HelpName = "WxH,...", + }; + + internal Option Env = new("--env") + { + Description = "set KEY=VALUE for the app; repeat it for several variables", + HelpName = "KEY=VALUE", + Arity = ArgumentArity.ZeroOrMore, + }; + + internal Option State = new("--state") + { + Description = "app state root; sets CUISHARP_STATE_HOME for this run", + HelpName = "dir", + }; + // ---- what has to be true before the command runs ------------------------------------ internal Option Frames = new("--frames") @@ -157,12 +184,49 @@ private sealed class Symbols /// what to drive, what to draw first, then how loud to be. /// internal Option[] AppOptions => - [Project, App, Framework, NoBuild, Attach, Frames, Wait, WaitText, WaitTimeout, Quiet]; + [Project, App, Framework, NoBuild, Attach, Size, Env, State, Frames, Wait, WaitText, WaitTimeout, Quiet]; internal void Validate() { Wait.AcceptOnlyFromAmong("ready"); + Size.Validators.Add(result => + { + if (result.GetValueOrDefault() is { Length: > 0 } value + && !Viewport.TryParse(value, out _)) + { + result.AddError("--size needs a positive WxH size, e.g. 420x720"); + } + }); + + Sizes.Validators.Add(result => + { + if (result.GetValueOrDefault() is { Length: > 0 } value + && !Viewport.TryParseList(value, out _)) + { + result.AddError("--sizes needs comma-separated positive WxH sizes, e.g. 420x720,1180x820"); + } + }); + + Env.Validators.Add(result => + { + string[]? values = result.GetValueOrDefault(); + if (result is OptionResult { Implicit: false } && (values is null || values.Length == 0)) + { + result.AddError("--env needs KEY=VALUE"); + return; + } + + foreach (string value in values ?? []) + { + if (!EnvironmentText.TryParse(value, out _, out _)) + { + result.AddError($"--env needs KEY=VALUE, not \"{value}\""); + return; + } + } + }); + Frames.Validators.Add(result => { if (Peek(result) is { } frames && frames < 0) @@ -230,6 +294,7 @@ private static (Symbols Symbols, RootCommand Root) Build() foreach (string alias in aliases) command.Aliases.Add(alias); foreach (Argument argument in arguments) command.Arguments.Add(argument); foreach (Option option in symbols.AppOptions) command.Options.Add(option); + if (name == "png") command.Options.Add(symbols.Sizes); root.Subcommands.Add(command); } @@ -535,6 +600,35 @@ internal static bool TryCheckCombinations(ParseResult result, out string message return false; } + bool size = result.GetResult(S.Size) is not null; + bool sizes = result.GetResult(S.Sizes) is not null; + if (size && sizes) + { + message = "choose one size source: --size WxH or --sizes WxH,WxH"; + return false; + } + + if (result.GetResult(S.Attach) is not null + && (result.GetResult(S.Size) is not null + || result.GetResult(S.Sizes) is not null + || result.GetResult(S.Env) is not null + || result.GetResult(S.State) is not null)) + { + message = "--size, --sizes, --env and --state start a headless app; " + + "a live --attach window is already running"; + return false; + } + + if (result.GetResult(S.Sizes) is { } sizesResult + && sizesResult.GetValueOrDefault() is { Length: > 0 } sizesText + && Viewport.TryParseList(sizesText, out Viewport[] views) + && views.Length > 1 + && result.CommandResult.Command.Name != "png") + { + message = "--sizes with more than one viewport is for `png`; run another command once per --size"; + return false; + } + bool published = result.GetResult(S.App) is not null; bool attached = result.GetResult(S.Attach) is not null; bool project = result.GetResult(S.Project) is not null; @@ -597,6 +691,7 @@ internal static Cli.Options Resolve(ParseResult result, string[] appArguments) } OptionResult? attach = result.GetResult(S.Attach); + Viewport[] viewports = ReadViewports(result); return new Cli.Options { Command = command, @@ -611,12 +706,52 @@ internal static Cli.Options Resolve(ParseResult result, string[] appArguments) Host = result.GetValue(S.App), Framework = result.GetValue(S.Framework), AppArgs = appArguments, + Viewport = viewports.Length > 0 ? viewports[0] : null, + Viewports = viewports, + Environment = ReadEnvironment(result.GetValue(S.Env)), + State = result.GetValue(S.State), Seconds = command == "dwell" ? double.Parse(argument, CultureInfo.InvariantCulture) : 0, WaitSeconds = waiting ? waitSeconds : 0, WaitLine = waitLine, }; } + /// + /// The viewport list a command was given: one --size, or the comma-separated + /// --sizes its help advertises. Parsing has already rejected malformed values, so an + /// unreadable value here is simply no viewport. + /// + private static Viewport[] ReadViewports(ParseResult result) + { + OptionResult? size = result.GetResult(S.Size); + if (size?.GetValueOrDefault() is { Length: > 0 } one + && Viewport.TryParse(one, out Viewport viewport)) + { + return [viewport]; + } + + OptionResult? sizes = result.GetResult(S.Sizes); + if (sizes?.GetValueOrDefault() is { Length: > 0 } many + && Viewport.TryParseList(many, out Viewport[] views)) + { + return views; + } + + return []; + } + + private static IReadOnlyDictionary ReadEnvironment(string[]? pairs) + { + var values = new Dictionary(StringComparer.OrdinalIgnoreCase); + foreach (string pair in pairs ?? []) + { + if (EnvironmentText.TryParse(pair, out string key, out string value)) + values[key] = value; + } + + return values; + } + /// /// Whether the command that ran was asked for JSON. Each command owns its own --json, /// so the answer is looked up on the command that was actually matched, and the value decides: diff --git a/src/CuiSharp.Tools/HeadlessClient.cs b/src/CuiSharp.Tools/HeadlessClient.cs index 2589eec..4f8649e 100644 --- a/src/CuiSharp.Tools/HeadlessClient.cs +++ b/src/CuiSharp.Tools/HeadlessClient.cs @@ -90,7 +90,8 @@ internal static HeadlessClient Start( string host, IReadOnlyList arguments, Action? echo = null, - CancellationToken cancellation = default) + CancellationToken cancellation = default, + IReadOnlyDictionary? environment = null) { var info = new ProcessStartInfo(host) { @@ -105,6 +106,8 @@ internal static HeadlessClient Start( StandardErrorEncoding = new UTF8Encoding(false), }; foreach (string argument in arguments) info.ArgumentList.Add(argument); + foreach ((string key, string value) in environment ?? new Dictionary()) + info.Environment[key] = value; info.Environment[CuiSharpEnvironmentVariable] = "1"; Process process; diff --git a/src/CuiSharp.Tools/Viewport.cs b/src/CuiSharp.Tools/Viewport.cs new file mode 100644 index 0000000..d8f921f --- /dev/null +++ b/src/CuiSharp.Tools/Viewport.cs @@ -0,0 +1,67 @@ +using System.Globalization; + +namespace CuiSharp.Tools; + +/// +/// A headless viewport: the WxH value behind --size. Kept beside the parser so a +/// malformed size is one message, not a string compared in three places. +/// +internal readonly record struct Viewport(int Width, int Height) +{ + internal const int MaxDimension = 16_384; + + internal static bool TryParse(string? text, out Viewport viewport) + { + viewport = default; + if (string.IsNullOrWhiteSpace(text)) return false; + + string[] parts = text.Trim().Split(['x', 'X']); + if (parts.Length != 2 || parts[0].Length == 0 || parts[1].Length == 0) return false; + if (!int.TryParse(parts[0], NumberStyles.None, CultureInfo.InvariantCulture, out int width)) return false; + if (!int.TryParse(parts[1], NumberStyles.None, CultureInfo.InvariantCulture, out int height)) return false; + if (width <= 0 || height <= 0 || width > MaxDimension || height > MaxDimension) return false; + + viewport = new Viewport(width, height); + return true; + } + + internal static bool TryParseList(string? text, out Viewport[] viewports) + { + viewports = []; + if (string.IsNullOrWhiteSpace(text)) return false; + + string[] pieces = text.Split(',', StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries); + if (pieces.Length == 0) return false; + + var parsed = new Viewport[pieces.Length]; + for (int i = 0; i < pieces.Length; i++) + { + if (!TryParse(pieces[i], out parsed[i])) return false; + } + + viewports = parsed; + return true; + } + + public override string ToString() => $"{Width}x{Height}"; +} + +/// A KEY=VALUE pair for --env, validated before a child process sees it. +internal static class EnvironmentText +{ + internal static bool TryParse(string? text, out string key, out string value) + { + key = ""; + value = ""; + if (string.IsNullOrEmpty(text)) return false; + + int equals = text.IndexOf('=', StringComparison.Ordinal); + if (equals <= 0) return false; + + key = text[..equals]; + value = text[(equals + 1)..]; + if (key.Any(static ch => !(char.IsAsciiLetterOrDigit(ch) || ch == '_'))) return false; + if (key.Contains('\0') || value.Contains('\0')) return false; + return true; + } +} diff --git a/src/CuiSharp/CuiApp.cs b/src/CuiSharp/CuiApp.cs index fc8a9d0..8d14d30 100644 --- a/src/CuiSharp/CuiApp.cs +++ b/src/CuiSharp/CuiApp.cs @@ -250,7 +250,7 @@ internal static int Run(CuiAppOptions options, DrawFn draw, string[]? args) // is the only place that decides it, and the draw callback is the whole app — for a // hosted one it is the host's frame, so a tool sees the same lifecycle a window does. if (Features.Headless && Hosting.HeadlessLoop.Requested(args)) - return Hosting.HeadlessLoop.Run(draw, options); + return Hosting.HeadlessLoop.Run(draw, Hosting.HeadlessLoop.WithViewport(options)); // CUI owns the loop here on purpose. `cui_app_run` registers a frame // callback, and that is the callback the OS-driven resize loop invokes: diff --git a/src/CuiSharp/Hosting/HeadlessApp.cs b/src/CuiSharp/Hosting/HeadlessApp.cs index ceb7d22..51c9b09 100644 --- a/src/CuiSharp/Hosting/HeadlessApp.cs +++ b/src/CuiSharp/Hosting/HeadlessApp.cs @@ -444,6 +444,19 @@ public WidgetTarget Find(string query) : throw new InvalidOperationException($"No widget matching \"{query}\". The frame drew:\n{Print()}"); } + /// + /// Finds one control and refuses when the frame draws several equally good matches. Use it for + /// commands where guessing would act on the wrong row; keeps the + /// best-ranked match for programmatic callers. + /// + public WidgetTarget FindUnique(string query) + { + ArgumentException.ThrowIfNullOrEmpty(query); + return Tree.TryFindUnique(WidgetQuery.Parse(query), out SemanticNode node) + ? new WidgetTarget(this, node) + : throw new InvalidOperationException($"No widget matching \"{query}\". The frame drew:\n{Print()}"); + } + /// Finds a control of a kind and a label, e.g. Find("Button", "Save"). public WidgetTarget Find(string kind, string text) => Find(WidgetQuery.Of(kind, text)); diff --git a/src/CuiSharp/Hosting/HeadlessLoop.cs b/src/CuiSharp/Hosting/HeadlessLoop.cs index 30c0092..f4a36db 100644 --- a/src/CuiSharp/Hosting/HeadlessLoop.cs +++ b/src/CuiSharp/Hosting/HeadlessLoop.cs @@ -33,6 +33,35 @@ public static class HeadlessLoop /// The environment variable an app checks to run without a window. public const string EnvironmentVariable = "CUISHARP_HEADLESS"; + /// The environment variable a headless app reads for its viewport, as WxH. + public const string ViewportEnvironmentVariable = "CUISHARP_VIEWPORT"; + + /// + /// Applies to the window description. The tool uses + /// this to screenshot the same app at several sizes without editing the app; an app that does + /// not set it keeps its own width and height. + /// + internal static CuiAppOptions WithViewport(CuiAppOptions window) + { + string? text = Environment.GetEnvironmentVariable(ViewportEnvironmentVariable); + if (string.IsNullOrWhiteSpace(text)) return window; + + string[] parts = text.Trim().Split(['x', 'X']); + if (parts.Length != 2 + || parts[0].Length == 0 + || parts[1].Length == 0 + || !int.TryParse(parts[0], NumberStyles.None, CultureInfo.InvariantCulture, out int width) + || !int.TryParse(parts[1], NumberStyles.None, CultureInfo.InvariantCulture, out int height) + || width <= 0 + || height <= 0) + { + throw new InvalidOperationException( + $"{ViewportEnvironmentVariable} must be a positive WxH size, not \"{text}\"."); + } + + return window with { Width = width, Height = height }; + } + /// /// The longest answer the loop will send. A whole-page tree of a large window is kilobytes; a /// megabyte means the caller asked for something that cannot travel down this pipe, and a @@ -219,7 +248,7 @@ public static int Run(HeadlessApp app, TextReader? input = null, TextWriter? out private static string Find(HeadlessApp app, string argument) { - WidgetTarget target = app.Find(argument); + WidgetTarget target = app.FindUnique(argument); return $"{target.Kind} \"{target.Text}\" at {target.Rect}"; } @@ -317,7 +346,7 @@ private static string Click(HeadlessApp app, string argument) // read next, and it saves a round trip. CUI reports the click on the release frame, and // a widget drawn earlier in that frame still shows the state from before it, so one // more frame is what proves the handler ran. - app.Find(argument).Click(); + app.FindUnique(argument).Click(); return app.Frame().Print(); } diff --git a/src/CuiSharp/Semantics/SemanticNode.cs b/src/CuiSharp/Semantics/SemanticNode.cs index ead3401..0b21bb5 100644 --- a/src/CuiSharp/Semantics/SemanticNode.cs +++ b/src/CuiSharp/Semantics/SemanticNode.cs @@ -184,6 +184,87 @@ public SemanticNode Find(string query) : throw new InvalidOperationException($"Nothing matching \"{query}\" under {Path}. It holds:\n{Print()}"); } + /// + /// Finds one node, refusing to choose when several controls share the best rank. The ordinary + /// keeps its ranking for programmatic callers; + /// the headless find and click use this so a test can never silently hit the + /// wrong row. + /// + internal bool TryFindUnique(WidgetQuery query, out SemanticNode node) + { + // An exact id is already a deliberate choice: no ranking to settle. + if (query.Path.Length == 0 + && query.Kind is null + && query.Text.StartsWith("id:", StringComparison.Ordinal)) + { + return TryFind(query, out node); + } + + // A path narrows the scope, then the leaf uses the same strict search as a plain query. + if (query.Path.Length > 0) + { + SemanticNode scope = this; + foreach (string step in query.Path) + { + if (!scope.TryFind(WidgetQuery.Of(kind: null, step), out SemanticNode container)) + { + node = null!; + return false; + } + + scope = container; + } + + return scope.TryFindUnique(WidgetQuery.Of(query.Kind, query.Text), out node); + } + + SemanticNode? best = null; + int bestScore = int.MaxValue; + var matches = new List(); + + foreach (SemanticNode candidate in SelfAndDescendants()) + { + int score = candidate.Score(query); + if (score == int.MaxValue) continue; + + if (score < bestScore) + { + bestScore = score; + best = candidate; + matches.Clear(); + matches.Add(candidate); + } + else if (score == bestScore) + { + matches.Add(candidate); + } + } + + if (best is null) + { + node = null!; + return false; + } + + if (matches.Count > 1) + throw new InvalidOperationException(Ambiguous(query, matches)); + + node = best; + return true; + } + + private static string Ambiguous(WidgetQuery query, List matches) + { + const int shown = 8; + string paths = string.Join( + '\n', matches.Take(shown).Select(static match => " " + match.Path)); + string more = matches.Count > shown ? $"\n …and {matches.Count - shown} more" : ""; + + return $"\"{query}\" matches {matches.Count} controls; refusing to guess.{Environment.NewLine}" + + paths + more + Environment.NewLine + + "Use a kind (`Button \"…\"`), a path (`card > Button \"…\"`) or `id:…`."; + } + /// /// How well a node answers a query: lower is better, is not at all. /// diff --git a/src/CuiSharp/Ui/Buttons.g.cs b/src/CuiSharp/Ui/Buttons.g.cs index 6746516..08b90a2 100644 --- a/src/CuiSharp/Ui/Buttons.g.cs +++ b/src/CuiSharp/Ui/Buttons.g.cs @@ -27,7 +27,7 @@ public bool IconButton(UiText icon, ButtonOpts o = default) { var __opts = o.ToNative(); var __result = Native.IconButton(ui.Handle, Utf8.Get(icon), in __opts); - WidgetRecorder.Note(ui.Handle, "IconButton", icon); + WidgetRecorder.Note(ui.Handle, "IconButton", string.IsNullOrEmpty(o.Tooltip) ? icon : (UiText)o.Tooltip); return __result != 0; } diff --git a/tools/bindgen.cs b/tools/bindgen.cs index 78e2d24..72efc21 100644 --- a/tools/bindgen.cs +++ b/tools/bindgen.cs @@ -2908,6 +2908,16 @@ private static uint TextKeySalt(string overrideKey) return $"WidgetRecorder.NoteItems(ui.Handle, \"{widget.Name}\", \"{items.Kind}\", {namer.Name}, {items.Items});"; } + // An icon-only button has no label: its tooltip is the name a person and an agent read. + // Recording the glyph made `tree` print an unreadable icon and left `click Pause` unable + // to name the button it meant. + if (widget.Name == "IconButton" + && widget.Params.FirstOrDefault(p => p.Type == "ButtonOpts") is { } options) + { + return $"WidgetRecorder.Note(ui.Handle, \"IconButton\", string.IsNullOrEmpty({options.Name}.Tooltip) " + + $"? {namer.Name} : (UiText){options.Name}.Tooltip);"; + } + return $"WidgetRecorder.Note(ui.Handle, \"{widget.Name}\", {namer.Name});"; } From 3ba36599e0ca7811953095bd9b2d30c6e4e31d48 Mon Sep 17 00:00:00 2001 From: slaveoftime Date: Sun, 15 Nov 2026 16:42:32 +0800 Subject: [PATCH 2/5] Make the headless workflow and samples cross-platform - remove Windows-only gates from the new headless tests - reveal downloads with explorer, open -R or xdg-open - replace stock's WinHttpHandler with SocketsHttpHandler - document platform-neutral app and publish paths - keep music Windows-only for WinRT MediaPlayer --- README.md | 5 +- samples/README.md | 17 +++---- samples/disk.cs | 8 ++-- samples/download.cs | 61 ++++++++++++++++++++----- samples/stock.cs | 18 ++++---- skills/cui-dotnet/SKILL.md | 7 +-- src/CuiSharp.Tests/HeadlessLoopTests.cs | 4 -- src/CuiSharp.Tests/ToolArgumentTests.cs | 2 - 8 files changed, 77 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index 398f9c8..2405895 100644 --- a/README.md +++ b/README.md @@ -275,7 +275,7 @@ dotnet tool install -g CuiSharp.Tools # exposes `dotnet cui` ``` ```sh -dotnet publish -c Release -r win-x64 # one executable, from ~1.2 MB up, nothing beside it +dotnet publish -c Release -r win-x64 # or linux-x64 / osx-arm64; one executable, nothing beside it ``` `cui.lib` is linked statically through the package's targets, so there is no `cui.dll` in the output. @@ -303,7 +303,8 @@ The browser-hosted gallery and GitHub Pages build are documented in [`samples/CuiSharp.Gallery.Browser/README.md`](samples/CuiSharp.Gallery.Browser/README.md). The four file-based apps in [`samples/`](samples/README.md) — Disk Usage, Global Market Cap, Music -and Downloads — are one `.cs` file each, with the same run / publish / headless header. +and Downloads — are one `.cs` file each, with the same run / publish / headless header. Music is +Windows-only because it uses the WinRT `MediaPlayer`; the other three publish for the current platform. ``` src/CuiSharp/ the library: Interop (generated), Ui, Runtime, Semantics, Hosting, Charting diff --git a/samples/README.md b/samples/README.md index 4bce7fc..64e091a 100644 --- a/samples/README.md +++ b/samples/README.md @@ -21,7 +21,7 @@ dotnet run music.cs dotnet run download.cs ``` -`disk.cs` also takes folders: `dotnet run disk.cs -- C:\Windows "C:\Program Files"`. +`disk.cs` also takes folders: `dotnet run disk.cs -- [folder...]`. ## Publish @@ -34,22 +34,23 @@ dotnet publish music.cs -c Release -o . dotnet publish download.cs -c Release -o . ``` -The generated `.exe` files are gitignored. `music.cs` targets Windows because its player is the +The generated binaries are gitignored. `music.cs` targets Windows because its player is the WinRT `MediaPlayer`; the other three publish for the current platform. ## Drive a published build headlessly ```sh dotnet publish disk.cs -c Release -p:CuiSharpHeadless=true -o artifacts/disk -dotnet cui session --app artifacts/disk/disk.exe < steps.txt +dotnet cui session --app artifacts/disk/disk < steps.txt ``` -A published build can be inspected at any viewport, with its state kept away from the real profile: +The published app is `disk.exe` on Windows and `disk` elsewhere. A published build can be inspected +at any viewport, with its state kept away from the real profile: ```sh -dotnet cui png shot.png --app artifacts/disk/disk.exe --size 420x720 -dotnet cui png shot.png --app artifacts/disk/disk.exe --sizes 420x720,1180x820 -dotnet cui tree --app artifacts/disk/disk.exe --state artifacts/cui-run +dotnet cui png shot.png --app artifacts/disk/disk --size 420x720 +dotnet cui png shot.png --app artifacts/disk/disk --sizes 420x720,1180x820 +dotnet cui tree --app artifacts/disk/disk --state artifacts/cui-run ``` The apps read `CUISHARP_STATE_HOME`: `music` uses `/CuiMusic`, `download` uses @@ -72,7 +73,7 @@ Use `dotnet tool update -g CuiSharp.Tools` to keep the tool current. On Windows script instead of using input redirection: ```powershell -Get-Content steps.txt | dotnet cui session --app artifacts/disk/disk.exe +Get-Content steps.txt | dotnet cui session --app artifacts/disk/disk ``` `CuiSharp@*` and the tool are versioned separately: restoring the samples always picks the latest diff --git a/samples/disk.cs b/samples/disk.cs index b82ac64..cb2b55d 100644 --- a/samples/disk.cs +++ b/samples/disk.cs @@ -23,12 +23,12 @@ // --------------------------------------------------------------------------- // Disk Usage — a native CuiSharp treemap over the file system. // -// run dotnet run disk.cs the folder the terminal is in -// dotnet run disk.cs -- C:\Windows C:\Program Files -// ship dotnet publish disk.cs -c Release -o . one disk.exe, no runtime needed +// run dotnet run disk.cs the folder the terminal is in +// dotnet run disk.cs -- [folder...] +// ship dotnet publish disk.cs -c Release -o . one native executable, no runtime needed // (add -p:CuiSharpHeadless=true to publish a build `dotnet cui` can drive) // -// iterate CUISHARP_HEADLESS=1 ./disk.exe no window; serves the tool's protocol +// iterate CUISHARP_HEADLESS=1 ./disk no window; serves the tool's protocol // dotnet cui tree the controls the last frame drew // dotnet cui click Up click one, print the frame it produced // dotnet cui png shot.png that frame as a PNG diff --git a/samples/download.cs b/samples/download.cs index 37af4c4..c7d3c87 100644 --- a/samples/download.cs +++ b/samples/download.cs @@ -41,10 +41,10 @@ // with its real progress, peers and speed. // // run dotnet run download.cs the window -// ship dotnet publish download.cs -c Release -o . one download.exe, no runtime needed +// ship dotnet publish download.cs -c Release -o . one native executable, no runtime needed // (add -p:CuiSharpHeadless=true to publish a build `dotnet cui` can drive) // -// iterate CUISHARP_HEADLESS=1 ./download.exe no window; serves the tool's protocol +// iterate CUISHARP_HEADLESS=1 ./download no window; serves the tool's protocol // dotnet cui tree the controls the last frame drew // dotnet cui click Pause click one, print the frame it produced // dotnet cui png shot.png that frame as a PNG @@ -2483,28 +2483,65 @@ public static void Reveal(string path) { if (path.Length == 0) return; - if (Directory.Exists(path)) + if (OperatingSystem.IsWindows()) { - Process.Start(new ProcessStartInfo(path) { UseShellExecute = true }); + RevealOnWindows(path); return; } - if (File.Exists(path)) + if (OperatingSystem.IsMacOS()) { - Process.Start(new ProcessStartInfo("explorer.exe", $"/select,\"{path}\"") + if (Directory.Exists(path)) { - UseShellExecute = true, - }); + Start("open", path); + } + else if (File.Exists(path)) + { + Start("open", "-R", path); + } + else if (Path.GetDirectoryName(path) is { Length: > 0 } parent && Directory.Exists(parent)) + { + Start("open", parent); + } + return; } - var folder = Path.GetDirectoryName(path); - if (folder is { Length: > 0 } && Directory.Exists(folder)) - Process.Start(new ProcessStartInfo(folder) { UseShellExecute = true }); + // Linux and the BSDs: xdg-open cannot select a file, so reveal its folder. + string? folder = Directory.Exists(path) ? path : Path.GetDirectoryName(path); + if (folder is { Length: > 0 } && Directory.Exists(folder)) Start("xdg-open", folder); } catch { - // Explorer refusing to open is not a download failure. + // The desktop refusing to open a folder is not a download failure. } } + + private static void RevealOnWindows(string path) + { + if (Directory.Exists(path)) + { + Process.Start(new ProcessStartInfo(path) { UseShellExecute = true }); + return; + } + + if (File.Exists(path)) + { + Process.Start(new ProcessStartInfo("explorer.exe", $"/select,\"{path}\"") + { + UseShellExecute = true, + }); + return; + } + + if (Path.GetDirectoryName(path) is { Length: > 0 } folder && Directory.Exists(folder)) + Process.Start(new ProcessStartInfo(folder) { UseShellExecute = true }); + } + + private static void Start(string program, params string[] arguments) + { + var info = new ProcessStartInfo(program) { UseShellExecute = false }; + foreach (string argument in arguments) info.ArgumentList.Add(argument); + Process.Start(info); + } } diff --git a/samples/stock.cs b/samples/stock.cs index 0d5875e..a44e3cf 100644 --- a/samples/stock.cs +++ b/samples/stock.cs @@ -1,5 +1,4 @@ #:package CuiSharp@* -#:package System.Net.Http.WinHttpHandler@11.0.0 // The properties below are what make `dotnet publish stock.cs -c Release -o .` // leave one small native executable beside this file, with no .NET on the target. @@ -17,8 +16,6 @@ #:property StackTraceSupport=false #:property MetricsSupport=false -#pragma warning disable CA1416 // WinHttpHandler is the Windows HTTP stack; this app publishes for Windows. - using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Net; @@ -30,10 +27,10 @@ // Global Market Cap — a native CuiSharp dashboard over Tencent + Eastmoney data. // // run dotnet run stock.cs the window -// ship dotnet publish stock.cs -c Release -o . one stock.exe, no runtime needed +// ship dotnet publish stock.cs -c Release -o . one native executable, no runtime needed // (add -p:CuiSharpHeadless=true to publish a build `dotnet cui` can drive) // -// iterate CUISHARP_HEADLESS=1 ./stock.exe no window; serves the tool's protocol +// iterate CUISHARP_HEADLESS=1 ./stock no window; serves the tool's protocol // dotnet cui tree the controls the last frame drew // dotnet cui click Refresh click one, print the frame it produced // dotnet cui png shot.png that frame as a PNG @@ -898,10 +895,9 @@ internal sealed class Snapshot // --------------------------------------------------------------------------- // Transport. One client, eight requests at a time, two attempts each. // -// WinHttpHandler borrows the HTTP/TLS stack Windows already ships instead of -// linking the managed one. That is most of the difference between a 1 MB -// CuiSharp binary and this one: the managed stack adds about 3.5 MB, the -// Windows one about 1.5 MB. The app therefore publishes for Windows. +// The managed HTTP stack keeps the sample cross-platform: WinHttpHandler was +// smaller on Windows, but it tied this app to one OS. SocketsHttpHandler is +// built into .NET and publishes under Native AOT without a package. // --------------------------------------------------------------------------- [SuppressMessage("Design", "CA1001:Types that own disposable fields should be disposable", @@ -946,9 +942,11 @@ internal sealed class HttpText private static HttpClient Create() { - var handler = new WinHttpHandler + var handler = new SocketsHttpHandler { AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate, + PooledConnectionLifetime = TimeSpan.FromMinutes(5), + MaxConnectionsPerServer = 8, }; var http = new HttpClient(handler) diff --git a/skills/cui-dotnet/SKILL.md b/skills/cui-dotnet/SKILL.md index d72501c..1ff7423 100644 --- a/skills/cui-dotnet/SKILL.md +++ b/skills/cui-dotnet/SKILL.md @@ -600,8 +600,8 @@ answers. State carries across the commands because it is one process — but a r behind, so anything that should be checked twice belongs in a test instead. - `click` answers with the frame *after* the click; a transition may need `frame N` first. -- `--frames N` draws N frames before the command; `--app bin/App.exe` inspects a published build; - `--no-build` reuses the last build; `--` passes the rest to the app. +- `--frames N` draws N frames before the command; `--app bin/App` inspects a published build + (`.exe` on Windows); `--no-build` reuses the last build; `--` passes the rest to the app. - To drive a **live window** while a human watches it (`dotnet watch run -- --live`, `CUISHARP_LIVE=1`, or `CuiAppOptions { LiveAttach = true }`), run `dotnet cui ps` to list active windows and pass `-a ` to any command, or a bare `-a` when only one window is open @@ -685,7 +685,8 @@ its tooltip (`IconButton "Pause"`), not by the glyph it draws. ## Publishing for size -`dotnet publish -c Release -r win-x64` links CUI into one executable. The package already trims it: +`dotnet publish -c Release -r win-x64` (or the host's RID: `linux-x64`, `osx-arm64`, …) links CUI +into one executable. The package already trims it: a self-contained publish compiles the headless channel and the framework diagnostics a shipped app never reads out of the binary, which is about 20% of a small app. Four properties are the whole vocabulary, and the defaults are right for most apps: diff --git a/src/CuiSharp.Tests/HeadlessLoopTests.cs b/src/CuiSharp.Tests/HeadlessLoopTests.cs index 15b8084..6561626 100644 --- a/src/CuiSharp.Tests/HeadlessLoopTests.cs +++ b/src/CuiSharp.Tests/HeadlessLoopTests.cs @@ -278,8 +278,6 @@ protected override void Draw(Ui ui) [Fact] public void ClickRefusesTwoEquallyGoodMatches() { - if (!OperatingSystem.IsWindows()) return; - var page = new TwoSaves(); using var app = TestApp.Start(page, 400, 300); @@ -306,8 +304,6 @@ protected override void Draw(Ui ui) [Fact] public void AnIconButtonIsFoundAndClickedByItsTooltip() { - if (!OperatingSystem.IsWindows()) return; - var page = new IconPage(); using var app = TestApp.Start(page, 400, 300); diff --git a/src/CuiSharp.Tests/ToolArgumentTests.cs b/src/CuiSharp.Tests/ToolArgumentTests.cs index 1bf747d..c0ff968 100644 --- a/src/CuiSharp.Tests/ToolArgumentTests.cs +++ b/src/CuiSharp.Tests/ToolArgumentTests.cs @@ -502,8 +502,6 @@ public void TheToolWaitsForReadinessBeforeItLetsTheCommandThrough() [Fact] public void AHeadlessRunCanOverrideItsViewportAndState() { - if (!OperatingSystem.IsWindows()) return; - string project = Path.Combine(TestPaths.RepositoryRoot, "src", "CuiSharp.Tests", "TestApps", "ReadyProbe"); string root = Directory.CreateTempSubdirectory("cui-viewport-").FullName; From 47c7003d9bb92a156aba3a7a819ba360350401ad Mon Sep 17 00:00:00 2001 From: slaveoftime Date: Sun, 15 Nov 2026 17:26:56 +0800 Subject: [PATCH 3/5] Complete the P1 developer-experience work - add session --script for shells without input redirection - add doctor: tool/app versions, package pinning, icon and AOT checks - rename the generated HttpMethod enum to HttpVerb - document token alpha, Size introspection, Card vs Box and FilePicker - keep every new path cross-platform and regenerate the bindings/docs --- CHANGELOG.md | 34 ++ README.md | 3 +- bindings/api.json | 2 +- bindings/overrides.json | 7 +- docs/API-SURFACE.txt | 25 +- docs/ARCHITECTURE.md | 2 +- .../Pages/MoreDeveloperTools.cs | 2 +- samples/README.md | 12 +- samples/disk.cs | 2 +- samples/download.cs | 2 +- samples/music.cs | 2 +- samples/stock.cs | 2 +- skills/cui-dotnet/SKILL.md | 82 ++- skills/cui-dotnet/api/HttpRequestBar.md | 2 +- skills/cui-dotnet/api/catalog.json | 10 +- skills/cui-dotnet/llms.txt | 2 +- src/CuiSharp.Templates/CuiSharp.App/AGENTS.md | 2 +- src/CuiSharp.Templates/CuiSharp.App/README.md | 2 +- .../CuiSharp.Mini/MiniApp.cs | 2 +- src/CuiSharp.Tests/DeveloperToolTests.cs | 8 +- src/CuiSharp.Tests/DoctorTests.cs | 204 +++++++ src/CuiSharp.Tests/HandWrittenApiTests.cs | 29 + src/CuiSharp.Tests/ToolArgumentTests.cs | 51 ++ src/CuiSharp.Tools/AppLocator.cs | 169 +++++- src/CuiSharp.Tools/Cli.cs | 33 +- src/CuiSharp.Tools/Doctor.cs | 548 ++++++++++++++++++ src/CuiSharp.Tools/Grammar.cs | 42 +- src/CuiSharp/Interop/Enums.g.cs | 2 +- src/CuiSharp/Interop/Types.cs | 74 ++- src/CuiSharp/Ui/CuiHttp.cs | 2 +- src/CuiSharp/Ui/HttpRequestBar.g.cs | 4 +- 31 files changed, 1299 insertions(+), 64 deletions(-) create mode 100644 src/CuiSharp.Tests/DoctorTests.cs create mode 100644 src/CuiSharp.Tools/Doctor.cs diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d7df3a..05905b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,40 @@ Every user-visible change, newest first. Pre-1.0 the minor number carries new su carries fixes. The section for a tag is what the GitHub release publishes, so the two cannot say different things. +## [Unreleased] + +### Added + +- **`dotnet cui session --script `** names the command file instead of relying on `<` input + redirection, which Windows PowerShell does not have. Stdin still works in a POSIX shell. +- **`dotnet cui doctor`** checks this tool's version and API catalog against the CuiSharp version + the app resolved, reports a floating `#:package CuiSharp@*`, a missing `ApplicationIcon`, and + whether NativeAOT is configured. `--json` is machine-readable, `--strict` fails on warnings, and + `--aot` performs the Release publish of an app that enables `PublishAot` and reports its + IL2xxx/IL3xxx warnings. +- **`png --size` / `--sizes`, `--env` / `--state` and strict `find` / `click`** from the earlier + headless workflow pass: one viewport or a png matrix, an isolated app state root, extra + environment, and a refusal to guess between equally good matches. `CUISHARP_VIEWPORT` makes a + headless frame the requested size; `ui.MarkReady()` and `--wait ready` replace frame counting for + async data. + +### Changed + +- **`HttpMethod` is now `HttpVerb`.** The old name collided with `System.Net.Http.HttpMethod` in + every app that also made an HTTP request. `RequestBar` and `CuiHttp.MethodName` take `HttpVerb`; + the generated C binding is unchanged. +- **`Color.WithAlpha` on a theme token returns the token unchanged.** A token has no channels to fade + until a frame resolves it, so the old call silently did nothing useful; the guide now shows + `ui.TokenColor(Token.Accent).WithAlpha(0.14f)` for a translucent tint. `Color.IsToken` now checks + the whole token marker, including alpha, so a raw color that happens to share G/B is not a token. +- **The samples and headless workflow are platform-neutral.** `stock.cs` uses `SocketsHttpHandler`, + `download.cs` reveals with `explorer`, `open -R` or `xdg-open`, and the generated binaries are + named for the host. `music.cs` remains Windows-only because its player is WinRT `MediaPlayer`. +- **`Size` can be inspected**: `IsFit`, `IsFill`, `IsFixed`, `IsPercent`, `TryGetPoints` and + `TryGetPercent`, with a readable `ToString`. The guide also spells out when to use `Card` instead + of `Box`, and warns that the OS file dialog (`CuiWindow.PickFile`) is modal and must not run from a + component's `Draw`; `ui.FilePicker` is the in-frame picker. + ## [0.4.2] — 2026-11-13 ### Added diff --git a/README.md b/README.md index 2405895..e7a3ba2 100644 --- a/README.md +++ b/README.md @@ -229,7 +229,8 @@ dotnet cui png shot.png --size 420x720 # a viewport without editing the app dotnet cui png shot.png --sizes 420x720,1180x820 # one png per viewport dotnet cui tree --state artifacts/cui-run # isolated app state dotnet cui tree -a 15036 # the same, on a live window a person is watching -dotnet cui session < script.txt # many commands, one build, one app +dotnet cui session --script script.txt # many commands, one build, one app +dotnet cui doctor # check the tool against the app before a bug report ``` The query is **one quoted argument** — `click "Button Save"`, not `click Button Save` — because the diff --git a/bindings/api.json b/bindings/api.json index a943764..4f17031 100644 --- a/bindings/api.json +++ b/bindings/api.json @@ -27261,7 +27261,7 @@ }, { "CName": "cui_http_method", - "CsName": "HttpMethod", + "CsName": "HttpVerb", "Values": [ { "CName": "CUI_HTTP_GET", diff --git a/bindings/overrides.json b/bindings/overrides.json index 1a9a450..7737bb1 100644 --- a/bindings/overrides.json +++ b/bindings/overrides.json @@ -6,7 +6,8 @@ "cui_renderer_kind": "Renderer", "cui_sw_format": "SwFormat", "cui_token": "Token", - "cui_task_status": "CuiTaskStatus" + "cui_task_status": "CuiTaskStatus", + "cui_http_method": "HttpVerb" }, "memberRenames": { "CUI_RENDERER_OPENGL": "OpenGL" @@ -233,8 +234,8 @@ }, "cui_request_bar_ex.method": { "storage": "enum", - "type": "HttpMethod", - "why": "CUI takes an int* the method menu writes: the wrapper keeps the caller's HttpMethod and hands over the int behind it." + "type": "HttpVerb", + "why": "CUI takes an int* the method menu writes: the wrapper keeps the caller's HttpVerb and hands over the int behind it. HttpVerb, not HttpMethod, so it cannot be confused with System.Net.Http.HttpMethod." } }, "capacityParams": { diff --git a/docs/API-SURFACE.txt b/docs/API-SURFACE.txt index f5a91c2..99b71d6 100644 --- a/docs/API-SURFACE.txt +++ b/docs/API-SURFACE.txt @@ -651,7 +651,7 @@ class CuiSharp.CuiFiles static Void SortTraceSpans(Span) class CuiSharp.CuiHttp static KeyValue[] ParseQuery(String, Int32) - static String MethodName(HttpMethod) + static String MethodName(HttpVerb) static String Reason(Int32) static String SetQuery(String, ReadOnlySpan, Int32) class CuiSharp.CuiMath @@ -1599,7 +1599,14 @@ struct CuiSharp.HoverCardOpts field Placement Placement field Single Delay field Single Width -enum CuiSharp.HttpMethod +class CuiSharp.HttpRequestBarUiExtensions + static RequestBarResult RequestBar(Ui, UiText, ref HttpVerb, ref String, Int32, RequestBarOpts) + static Void ResponseStatus(Ui, Int32, Double, Double) +class CuiSharp.HttpRequestBarUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4 + RequestBarResult RequestBar(UiText, ref HttpVerb, ref String, Int32, RequestBarOpts) + Void ResponseStatus(Int32, Double, Double) +class CuiSharp.HttpRequestBarUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4+$D152016828D0F2CB0A8B78500F4F70D3 +enum CuiSharp.HttpVerb Delete Get Head @@ -1607,13 +1614,6 @@ enum CuiSharp.HttpMethod Patch Post Put -class CuiSharp.HttpRequestBarUiExtensions - static RequestBarResult RequestBar(Ui, UiText, ref HttpMethod, ref String, Int32, RequestBarOpts) - static Void ResponseStatus(Ui, Int32, Double, Double) -class CuiSharp.HttpRequestBarUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4 - RequestBarResult RequestBar(UiText, ref HttpMethod, ref String, Int32, RequestBarOpts) - Void ResponseStatus(Int32, Double, Double) -class CuiSharp.HttpRequestBarUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4+$D152016828D0F2CB0A8B78500F4F70D3 interface CuiSharp.IFileDialogProvider FilePickResult Pick(CuiWindow, FileDialogOpts) class CuiSharp.Icons @@ -5529,8 +5529,15 @@ struct CuiSharp.SignatureOpts field Size Width field String Placeholder struct CuiSharp.Size + Boolean TryGetPercent(out Single) + Boolean TryGetPoints(out Single) + String ToString() field Size Fill field Size Fit + property Boolean IsFill { get; } + property Boolean IsFit { get; } + property Boolean IsFixed { get; } + property Boolean IsPercent { get; } static Size Grow(Single) static Size Percent(Single) static Size Px(Single) diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 97df747..9df9562 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -314,7 +314,7 @@ wants them: everything after a standalone `--` is handed to the app untouched, a even when it begins with a dash (`--wait-text -loading`), and a query is one quoted argument (`click "Button Save type"`), because the app parses the query grammar and this tool does not. -A session is a command (`dotnet cui session < commands.txt`), not a flag. As a flag it could be +A session is a command (`dotnet cui session --script commands.txt`), not a flag. As a flag it could be written beside a verb, and the verb would then be silently dropped; as a command the line says which of the two things is happening. diff --git a/samples/CuiSharp.Gallery/Pages/MoreDeveloperTools.cs b/samples/CuiSharp.Gallery/Pages/MoreDeveloperTools.cs index fb08171..9a34054 100644 --- a/samples/CuiSharp.Gallery/Pages/MoreDeveloperTools.cs +++ b/samples/CuiSharp.Gallery/Pages/MoreDeveloperTools.cs @@ -11,7 +11,7 @@ internal sealed partial class GalleryApp private string _regexPattern = @"\b(\w+)@(\w+)\.com\b"; private string _regexText = "Write to ada@example.com or grace@navy.mil, not to root@localhost."; private RegexFlags _regexFlags = RegexFlags.IgnoreCase; - private HttpMethod _httpMethod = HttpMethod.Get; + private HttpVerb _httpMethod = HttpVerb.Get; private string _url = "https://api.example.com/v1/frames?state=open&limit=20"; private int _apiSelected = -1; private string _regexSummary = ""; diff --git a/samples/README.md b/samples/README.md index 64e091a..d1268b3 100644 --- a/samples/README.md +++ b/samples/README.md @@ -41,7 +41,7 @@ WinRT `MediaPlayer`; the other three publish for the current platform. ```sh dotnet publish disk.cs -c Release -p:CuiSharpHeadless=true -o artifacts/disk -dotnet cui session --app artifacts/disk/disk < steps.txt +dotnet cui session --app artifacts/disk/disk --script steps.txt ``` The published app is `disk.exe` on Windows and `disk` elsewhere. A published build can be inspected @@ -66,15 +66,11 @@ dotnet cui tree the controls the last frame drew dotnet cui click Up click one, print the frame it produced dotnet cui png shot.png that frame as a PNG dotnet cui docs read live-debugging -dotnet cui session < steps.txt +dotnet cui session --script steps.txt ``` -Use `dotnet tool update -g CuiSharp.Tools` to keep the tool current. On Windows PowerShell, pipe the -script instead of using input redirection: - -```powershell -Get-Content steps.txt | dotnet cui session --app artifacts/disk/disk -``` +Use `dotnet tool update -g CuiSharp.Tools` to keep the tool current. `--script` works in every +shell; a POSIX shell can still pipe the same file into `dotnet cui session` if it prefers. `CuiSharp@*` and the tool are versioned separately: restoring the samples always picks the latest stable package, while the tool only changes when you update it. diff --git a/samples/disk.cs b/samples/disk.cs index cb2b55d..971299f 100644 --- a/samples/disk.cs +++ b/samples/disk.cs @@ -34,7 +34,7 @@ // dotnet cui png shot.png that frame as a PNG // dotnet cui docs read live-debugging the guide, offline // dotnet cui api TreemapOpts one exact declaration -// dotnet cui session < steps.txt many clicks against one app instance +// dotnet cui session --script steps.txt many clicks against one app instance // // Below: the window, its sections, the scan, and the model it fills. // --------------------------------------------------------------------------- diff --git a/samples/download.cs b/samples/download.cs index c7d3c87..c16aa83 100644 --- a/samples/download.cs +++ b/samples/download.cs @@ -50,7 +50,7 @@ // dotnet cui png shot.png that frame as a PNG // dotnet cui docs read live-debugging the guide, offline // dotnet cui api ProgressOpts one exact declaration -// dotnet cui session < steps.txt many clicks against one app instance +// dotnet cui session --script steps.txt many clicks against one app instance // // The BitTorrent half is MonoTorrent: trackers, DHT, magnet metadata, fast // resume and multi-peer downloading are its job. HTTP files are fetched with diff --git a/samples/music.cs b/samples/music.cs index 6450b5e..a5a71a9 100644 --- a/samples/music.cs +++ b/samples/music.cs @@ -45,7 +45,7 @@ // dotnet cui png shot.png that frame as a PNG // dotnet cui docs read live-debugging the guide, offline // dotnet cui api MenuOpts one exact declaration -// dotnet cui session < steps.txt many clicks against one app instance +// dotnet cui session --script steps.txt many clicks against one app instance // // Below: the window, its panels, the player, the scan, the spectrum behind the // effects, and the state they share. diff --git a/samples/stock.cs b/samples/stock.cs index a44e3cf..ed52ea6 100644 --- a/samples/stock.cs +++ b/samples/stock.cs @@ -36,7 +36,7 @@ // dotnet cui png shot.png that frame as a PNG // dotnet cui docs read live-debugging the guide, offline // dotnet cui api ChartOpts one exact declaration -// dotnet cui session < steps.txt many clicks against one app instance +// dotnet cui session --script steps.txt many clicks against one app instance // // Below: Dashboard and its sections, then the model, the feeds, the tracker and // the cache. diff --git a/skills/cui-dotnet/SKILL.md b/skills/cui-dotnet/SKILL.md index 1ff7423..757fd41 100644 --- a/skills/cui-dotnet/SKILL.md +++ b/skills/cui-dotnet/SKILL.md @@ -131,18 +131,51 @@ using (ui.Row(new Box { Gap = 8 })) `Border`, `Radius`, `Dir`, `Columns` + `MinColumnWidth`, `ScrollX`/`ScrollY`, `Clip`, `Opacity`, `Elevation`. +**`Card` or `Box`?** They are two different jobs, not two spellings of one: + +| Use | When | +|---|---| +| `Box`, `Row`, `Column` | layout only: direction, size, padding, gap, scrolling, clipping, custom background/border/radius | +| `Card` | a themed surface at a real content boundary: surface colour, padding, gap, radius and elevation come from the theme; `Hoverable` lifts it and reports a click, `Selected` gives it the accent border, `Muted` drops the border | + +`Card` deliberately has no `ScrollX`/`ScrollY`, `Clip`, `Bg`, `Border`, `Radius` or `Elevation`; +when a card has to scroll, put a `Scroll` (or a `Box` with `ScrollY`) inside it. Do not put a card +inside a card; use a `Box` with a hairline for the inner grouping. + +```csharp +using (var card = ui.Card(new(pad: 16, gap: 12, width: Size.Fill), out bool clicked)) +{ + ui.Heading("Deploy", 2); + ui.Text("Production, two regions"); + if (clicked) Open(); +} +``` + ## Sizing ```csharp -new Box { Width = Size.Px(240) } // fixed +new Box { Width = Size.Px(240) } // fixed, in points new Box { Width = Size.Fill } // fill the parent -new Box { Width = Size.Percent(50) } // share of the parent +new Box { Width = Size.Percent(50) } // 0..100 of the parent +new Box { Width = Size.Fit } // as wide as the content +new Box { Width = Size.Grow(2) } // fill, with twice the share of Grow(1) ``` A component that sizes itself (`Button`, `Badge`, `Heading`) takes no size. A component that fills space (`Table`, `Chart`, `VirtualList`, `Canvas`) needs one: `Height = Size.Px(300)` or `Size.Fill`. +A `Size` can be inspected without reaching into CUI: + +```csharp +size.IsFit size.IsFill size.IsFixed size.IsPercent +size.TryGetPoints(out float points) +size.TryGetPercent(out float percent) +``` + +`IsFill` is true for `Fill` and every `Grow(weight)`; `TryGetPoints` succeeds only for a fixed size, +and `TryGetPercent` only for a percentage. `ToString()` prints `Fit`, `Fill`, `240px` or `50%`. + ## Options are structs of fields One struct per component, named `Opts`, all-defaulted to CUI's own defaults. Its members @@ -164,6 +197,20 @@ Color.Series(n) // the six chart colours Color.Rgb(0x7747ff) // only for a user-chosen colour ``` +A theme colour like `Color.Accent` is a **token**, not the RGB it will resolve to: CUI decides that +when it draws, so light, dark, accent changes and a `ThemeStyle` override all keep working. +`Color.IsToken` says which kind you have. + +`WithAlpha` only changes a real colour. A token cannot be made translucent before it is resolved, +so `Color.Accent.WithAlpha(0.14f)` is still `Color.Accent`; resolve it in a frame first: + +```csharp +Color tint = ui.TokenColor(Token.Accent).WithAlpha(0.14f); +using (ui.Box(new Box { Bg = tint })) { } +``` + +Outside a frame there is no theme to resolve against, so keep tokens opaque and let CUI draw them. + ## State goes in `ref` ```csharp @@ -321,10 +368,21 @@ million-sample feed holds 144 fps with 0 B of managed allocation per frame. | Focus and scroll jump between rows | the id came from the row position | `using (ui.Id(item.Id))` or `ui.Keyed(items, key)` (CUI004) | | The window stops updating | the page changes on its own but never asks for frames | `WantsFrames => true`, or `ui.RequestRedraw()` | | The UI freezes on a button press | something blocked in the frame | no `.Result`, `.Wait()`, `Thread.Sleep` in `Draw` (CUI001) | +| The window freezes when a file button is pressed | an OS file dialog ran inside `Draw` | call `window.PickFile` from a click and let that frame pause, or use `ui.FilePicker` inside the frame | | Frame rate sags | allocation per frame: LINQ, `new`, string concat | interpolate into a widget; hoist arrays with `static readonly` (CUI007) | | An async handler deadlocks or the app crashes at shutdown | `ConfigureAwait(false)` or `async void` in a component | await normally in `Mutation`/`Run` (CUI005, CUI006) | | A tour never advances, or Done leaves the card on screen | the widget's return was assigned to the `ref` it also writes | `ui.Tour(…, ref step)` writes the step; its `TourAction` result is what the user pressed | +**`ui.FilePicker` is the picker that belongs in `Draw`.** It is CUI's own dialog, drawn like every +other component, so it keeps the frame loop running and needs no platform dialog. The OS picker +(`window.PickFile`, or `CuiAppOptions.FileDialog`) is modal and blocking on every platform: it can +only run from a click, and the frame that opened it does not finish until the user answers. Never +call it from a component's `Draw` body unless that body is the click branch and pausing there is +acceptable. In a bare `CuiApp.Run`, capture the window once with +`WindowCreated = window => _window = window`; a hosted `CuiApplication` has `Window`. Tests replace +`FileDialog` with an `IFileDialogProvider`, which is also how a picker flow is checked headlessly; +`ui.FilePicker` needs no replacement because it is just a frame. + IDE quick fixes are available for scope disposal (`CUI002`), conditional-body guards (`CUI003`), repeated-widget keys (`CUI004`) and an awaited BCL `ConfigureAwait` (`CUI005`). Scope/id fixes are individual, not fix-all, and are not offered if they introduce a compiler error. The id fix uses @@ -592,12 +650,22 @@ dotnet cui click "editor > Save" # or the path to the control, containers ba dotnet cui type Milk # type into the focused control dotnet cui key Tab # a key by name dotnet cui png frame.png # the frame as a PNG, to look at -dotnet cui session < commands.txt # many commands against one build, in order +dotnet cui session --script commands.txt # many commands against one build, in order +dotnet cui doctor # tool/app version, icon and NativeAOT setup ``` `session` is the cheapest way to explore an app you have not read: one build, one startup, a page of answers. State carries across the commands because it is one process — but a run leaves nothing -behind, so anything that should be checked twice belongs in a test instead. +behind, so anything that should be checked twice belongs in a test instead. `--script` names the +command file, so the same command works in Windows PowerShell, where `<` is not input redirection; +`dotnet cui session < commands.txt` still works in a POSIX shell. + +`doctor` checks the things a bug report should establish first: this tool's version against the +CuiSharp package the app resolves, a floating `#:package CuiSharp@*`, an `ApplicationIcon` that names +no file, and whether a NativeAOT publish is configured. `--json` makes it machine-readable; +`--aot` performs the Release publish of an app that enables `PublishAot` and reports its +IL2xxx/IL3xxx warnings, which ordinary builds never show. Use `--project path` when the terminal is +not in the app's folder. - `click` answers with the frame *after* the click; a transition may need `frame N` first. - `--frames N` draws N frames before the command; `--app bin/App` inspects a published build @@ -727,7 +795,7 @@ dialog is modal, a dropzone returns the paths it received. - **Studio** — `Knob(id, ref float, min, max)`, `Fader(id, ref float, min, max)`, `LevelMeter(id, values)` - **Calendar** — `MonthCalendar(id, ref Date, events, ref Date selected, MonthOpts)` returning `MonthResult` - **Workspace** — `Terminal(id, terminal, TerminalOpts)`, `LogView(id, log, LogViewOpts)`, `HexView`, `DiffView`, `CodeEditor`, `FileBrowser`, `FilePicker`, `ImageViewer`, `Cropper` -- **Developer tools** — `TraceView(id, tracks, spans, ref TraceViewState, ref int selected)`, `Waterfall(id, requests, ref int selected)`, `GraphView(id, nodes, edges, ref int selected)`, `CommitGraph`, `Pipeline(id, stages, jobs, ref int selected)`, `Problems(id, items)`, `KvEditor(id, pairs, ref int count)`, `QueryBuilder(id, fields, nodes, ref int count)`, `SchedulePicker(id, ref string cron)`, `Keymap`, `TestExplorer`, `StackTrace`, `Blame`, `Coverage`, `RegexTester(id, ref pattern, patternCap, ref text, textCap, ref RegexFlags)`, `RequestBar(id, ref HttpMethod, ref url)` + `ResponseStatus`, `ApiExplorer`, `FeatureFlags(id, flags, envs)`, `Uptime`, `TimeHistogram` — each returns a typed result record, and the arrays it edits (`KvEditor`, `QueryBuilder`, `FeatureFlags`, the editors) come back through the `Span` you pass +- **Developer tools** — `TraceView(id, tracks, spans, ref TraceViewState, ref int selected)`, `Waterfall(id, requests, ref int selected)`, `GraphView(id, nodes, edges, ref int selected)`, `CommitGraph`, `Pipeline(id, stages, jobs, ref int selected)`, `Problems(id, items)`, `KvEditor(id, pairs, ref int count)`, `QueryBuilder(id, fields, nodes, ref int count)`, `SchedulePicker(id, ref string cron)`, `Keymap`, `TestExplorer`, `StackTrace`, `Blame`, `Coverage`, `RegexTester(id, ref pattern, patternCap, ref text, textCap, ref RegexFlags)`, `RequestBar(id, ref HttpVerb, ref url)` + `ResponseStatus`, `ApiExplorer`, `FeatureFlags(id, flags, envs)`, `Uptime`, `TimeHistogram` — each returns a typed result record, and the arrays it edits (`KvEditor`, `QueryBuilder`, `FeatureFlags`, the editors) come back through the `Span` you pass - **Without a frame** — the pure helpers the widgets use, callable from a component or a test: `CuiRegex.TrySearch(…)` with its groups, `CuiCron.TryNext(…)`, `CuiHttp.ParseQuery`/`SetQuery`/`Reason`/`MethodName`, `CuiQuery.Text`/`Match`/`OperatorName`, `CuiFiles.ListDirectory`/`SortFlameSpans`/`SortTraceSpans`, `CuiMath.EvaluateCurve`/`EvaluateGradient`/`DiffLines` - **AI interfaces** — `ChatComposer`, `ModelPicker`, `PromptSuggestions`, `Reasoning`, `ResponseActions`, `Citation`, `ContextMeter`, `AgentPlan`, `AgentStatus` - **Onboarding** — `Tour(id, steps, ref int step, TourOpts)`; build each `TourStep.Target` from `ui.LastId` right after the control @@ -742,6 +810,10 @@ the live declarations of `ChartOpts`, `Ui.LineChart`, or a bare member name from with the tool (`--json` for machine output), and `dotnet cui icons [filter]` lists every glyph with its code point. Both answer offline from `api/catalog.json`: no app, no build, no native library. +The request bar's method is `HttpVerb`, not `HttpMethod`: the latter is `System.Net.Http.HttpMethod`, +and a file that uses both should not need an alias for the one CUI draws. `CuiHttp.MethodName` takes +the same `HttpVerb`. + ## Files Everything below is in this folder, beside this guide; nothing here points outside it. diff --git a/skills/cui-dotnet/api/HttpRequestBar.md b/skills/cui-dotnet/api/HttpRequestBar.md index b633aca..3276bb0 100644 --- a/skills/cui-dotnet/api/HttpRequestBar.md +++ b/skills/cui-dotnet/api/HttpRequestBar.md @@ -17,7 +17,7 @@ protected override void Draw(Ui ui) ## `RequestBar` ```csharp -public RequestBarResult RequestBar(UiText id, ref HttpMethod method, ref string url, int cap = 2048, RequestBarOpts o = default) +public RequestBarResult RequestBar(UiText id, ref HttpVerb method, ref string url, int cap = 2048, RequestBarOpts o = default) ``` cui_request_bar_ex diff --git a/skills/cui-dotnet/api/catalog.json b/skills/cui-dotnet/api/catalog.json index 15628f8..105a490 100644 --- a/skills/cui-dotnet/api/catalog.json +++ b/skills/cui-dotnet/api/catalog.json @@ -46,7 +46,7 @@ { "name": "CuiSharp.CodeEditorOpts", "displayName": "CodeEditorOpts", "kind": "struct", "summary": "cui_code_editor_opts. All fields are optional; zero selects the native default.", "members": [{ "name": "Width", "kind": "field", "id": "field|Width|0|0|Size|||h4006d8d1aa3607cf3007c2fd6686981e9812586a28b9a4d7a283aeadfcd379ad", "signature": "public Size Width", "summary": "default fill" }, { "name": "Marks", "kind": "field", "id": "field|Marks|0|0|TextMark[]?|||hf2c6adf393454d823eb10ac6123eef8069985302b5457007cd9ab114d5819e1c", "signature": "public TextMark[]? Marks", "summary": "ranges to highlight (search results, regex matches), sorted by start" }, { "name": "Autofocus", "kind": "field", "id": "field|Autofocus|0|0|bool|||h09659cd1edc89091c579e01492029e06adf81389533feb3ae65790f5a01be31e", "signature": "public bool Autofocus", "summary": "_Bool autofocus" }, { "name": "NoLineNumbers", "kind": "field", "id": "field|NoLineNumbers|0|0|bool|||hb5cc496b040e6bb46501892acb3b13db7559983e7c6d82801ba2f83cc793203a", "signature": "public bool NoLineNumbers", "summary": "hides the gutter of line numbers" }, { "name": "ReadOnly", "kind": "field", "id": "field|ReadOnly|0|0|bool|||he393614309fa34fbb6e0930aa04c288616abcb05d02f63ad9eb9cb23927877ad", "signature": "public bool ReadOnly", "summary": "_Bool read_only" }, { "name": "UseTabs", "kind": "field", "id": "field|UseTabs|0|0|bool|||he76d71839dc85068e0d8324e400fd58c8444d5abe4ef488a23e57222d8af7178", "signature": "public bool UseTabs", "summary": "indent with tab characters instead of spaces" }, { "name": "Height", "kind": "field", "id": "field|Height|0|0|float|||ha333299f179a1814155cda66a26b50fd7f476d27bf3ad5ffbc147c5abc8227fd", "signature": "public float Height", "summary": "default 320; negative fills the space" }, { "name": "Size", "kind": "field", "id": "field|Size|0|0|float|||h6a7994d51dd3609f0c6e82fd31943ebae3ebffffaa8f0910f7f745869078fb26", "signature": "public float Size", "summary": "font size, default 13" }, { "name": "TabSize", "kind": "field", "id": "field|TabSize|0|0|int|||h1fb69a62e48ce09519cd8bb8b90088cf5a2053b0f991052821d6e0a3f3dab47f", "signature": "public int TabSize", "summary": "columns per indentation level, default 4" }, { "name": "Lang", "kind": "field", "id": "field|Lang|0|0|string?|||h8fa7b7c8fe2a50b3a95391e856d3b6c823e1a596a3f5d40e9f37c84029dc2357", "signature": "public string? Lang", "summary": "as cui_code_block: \u0022c\u0022, \u0022cpp\u0022, \u0022js\u0022, \u0022ts\u0022, \u0022python\u0022, \u0022rust\u0022, \u0022go\u0022, \u0022json\u0022, \u0022shell\u0022; \u0022text\u0022 for none" }, { "name": "Placeholder", "kind": "field", "id": "field|Placeholder|0|0|string?|||hbe61d1785f65fabbd3ef4afbfb40a45eae9d76cb4082fe468fe662c6a46ecb72", "signature": "public string? Placeholder", "summary": "shown while the text is empty" }] }, { "name": "CuiSharp.CodeEditorResult", "displayName": "CodeEditorResult", "kind": "struct", "summary": "Elements are copied into the frame arena by the wrapper.", "members": [{ "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||bool Changed;bool Refused = default;bool Focused = default;int Cursor = default;int Anchor = default;int Line = default;int Column = default;int LineCount = default;int Length = default;int Bracket = default;int BracketMatch = default;int FindMatches = default;int FindIndex = default||h10d37050109b7b0ed6537ab21c05bd44ab3b7bebd67ac63bc68fecca0f07fa70", "signature": "CodeEditorResult(bool Changed, bool Refused = default, bool Focused = default, int Cursor = default, int Anchor = default, int Line = default, int Column = default, int LineCount = default, int Length = default, int Bracket = default, int BracketMatch = default, int FindMatches = default, int FindIndex = default)", "parameters": [{ "name": "Changed", "type": "bool" }, { "name": "Refused", "type": "bool", "default": "default" }, { "name": "Focused", "type": "bool", "default": "default" }, { "name": "Cursor", "type": "int", "default": "default" }, { "name": "Anchor", "type": "int", "default": "default" }, { "name": "Line", "type": "int", "default": "default" }, { "name": "Column", "type": "int", "default": "default" }, { "name": "LineCount", "type": "int", "default": "default" }, { "name": "Length", "type": "int", "default": "default" }, { "name": "Bracket", "type": "int", "default": "default" }, { "name": "BracketMatch", "type": "int", "default": "default" }, { "name": "FindMatches", "type": "int", "default": "default" }, { "name": "FindIndex", "type": "int", "default": "default" }] }, { "name": "Changed", "kind": "field", "id": "field|Changed|0|0|bool|||h8c85f6cfc38e0138c8eb4125f6296f3a8f63126e75288f3d3b7fc9e85c6c1f63", "signature": "public bool Changed", "summary": "the text changed this frame" }, { "name": "Focused", "kind": "field", "id": "field|Focused|0|0|bool|||h03e74544391bd5f5b768e54fb7011da1a013b87b3221f57443f738bcc0ae57da", "signature": "public bool Focused", "summary": "the editor or its find bar has the keyboard" }, { "name": "Refused", "kind": "field", "id": "field|Refused|0|0|bool|||hc139b2d3b5ff44a547eedc172b84159ab68ce7aa184d45a0ddff68588c76d436", "signature": "public bool Refused", "summary": "an edit did not fit in the capacity and was dropped" }, { "name": "Anchor", "kind": "field", "id": "field|Anchor|0|0|int|||haebd09af400cd13b8e6a4d74ff68b178d1ce2cdb19d12950362ae273b212ff68", "signature": "public int Anchor", "summary": "caret and the other end of the selection, byte offsets" }, { "name": "Bracket", "kind": "field", "id": "field|Bracket|0|0|int|||h77d16f8f46588b03aef36d7c7700c16913abeb938081d48c601527ac49676ea8", "signature": "public int Bracket", "summary": "the bracket beside the caret and its partner, byte offsets, or -1" }, { "name": "BracketMatch", "kind": "field", "id": "field|BracketMatch|0|0|int|||hf4bcef73eb750933986b759052d8e30b7b10d167b65548578d889eef0a8d0447", "signature": "public int BracketMatch", "summary": "the bracket beside the caret and its partner, byte offsets, or -1" }, { "name": "Column", "kind": "field", "id": "field|Column|0|0|int|||hb93bf5690ed5508fe10b0f439cd4464aab3f031472de30cfaf0930715854f5a4", "signature": "public int Column", "summary": "the caret, 1 based; columns count tabs to their stop" }, { "name": "Cursor", "kind": "field", "id": "field|Cursor|0|0|int|||h23aff42ff5d653e4a3b8a654aa17c4d9c160335133193db458a21e242a54d577", "signature": "public int Cursor", "summary": "caret and the other end of the selection, byte offsets" }, { "name": "FindIndex", "kind": "field", "id": "field|FindIndex|0|0|int|||h9901bf02470123f840113bd889b35049d5d57a39c279f06740fad0d72c6b6fae", "signature": "public int FindIndex", "summary": "with the find bar open: matches, and which one is selected (1 based, 0 none)" }, { "name": "FindMatches", "kind": "field", "id": "field|FindMatches|0|0|int|||hc7266e2f6ac242c69af5391be242aaa9b92542b13fe7206e4b7263e39078c2d2", "signature": "public int FindMatches", "summary": "with the find bar open: matches, and which one is selected (1 based, 0 none)" }, { "name": "Length", "kind": "field", "id": "field|Length|0|0|int|||hef2503a1d0b9fb909698fa12c327675bda30f8b40b00e879e548d3e8332f864d", "signature": "public int Length", "summary": "lines, and bytes of text" }, { "name": "Line", "kind": "field", "id": "field|Line|0|0|int|||h1879f4fdbcfa3a3747d1163cdd353585f2b2bd90bfd45d0dfb258aacbc098d3e", "signature": "public int Line", "summary": "the caret, 1 based; columns count tabs to their stop" }, { "name": "LineCount", "kind": "field", "id": "field|LineCount|0|0|int|||hbaa214fddd02d1ccffe160de438912c4aa7f3470b2479bc2583e4f2d2ebb1485", "signature": "public int LineCount", "summary": "lines, and bytes of text" }] }, { "name": "CuiSharp.CodeOpts", "displayName": "CodeOpts", "kind": "struct", "summary": "Code block with syntax highlighting (lang: \u0022c\u0022, \u0022cpp\u0022, \u0022js\u0022, \u0022ts\u0022, \u0022python\u0022, \u0022rust\u0022, \u0022go\u0022, \u0022json\u0022, \u0022shell\u0022, or \u0022text\u0022 for none), line numbers, a title bar and a copy button. Long lines scroll sideways. All fields are optional; zero selects the native default.", "members": [{ "name": "LineNumbers", "kind": "field", "id": "field|LineNumbers|0|0|bool|||hf97d043b6bbb7fd74c036a3d0e462dbeaf266c6bf806c893c89f61f222ab729c", "signature": "public bool LineNumbers", "summary": "a column of line numbers on the left" }, { "name": "NoHeader", "kind": "field", "id": "field|NoHeader|0|0|bool|||h7922046bd3807eec795aa2981a7e08ccf6af18d5c0f9f9ef7f687eb187ccb398", "signature": "public bool NoHeader", "summary": "no title bar, even with a lang" }, { "name": "MaxHeight", "kind": "field", "id": "field|MaxHeight|0|0|float|||h362fb387f8c873f790106e0085b293b9836b14ef629bd38f56f23e0483ef699f", "signature": "public float MaxHeight", "summary": "scrolls beyond this, default none" }, { "name": "Size", "kind": "field", "id": "field|Size|0|0|float|||h6a7994d51dd3609f0c6e82fd31943ebae3ebffffaa8f0910f7f745869078fb26", "signature": "public float Size", "summary": "font size, default 13" }, { "name": "HighlightFrom", "kind": "field", "id": "field|HighlightFrom|0|0|int|||h3f447dcb0743179fec7a2dd4a9ce932f77873c9111e71c1fa0182456ef6a5ad8", "signature": "public int HighlightFrom", "summary": "1 based line range to emphasize" }, { "name": "HighlightTo", "kind": "field", "id": "field|HighlightTo|0|0|int|||h69877e6460a36c5400eb55f0445931950db5a7253630d30f09922f950fd37671", "signature": "public int HighlightTo", "summary": "1 based line range to emphasize" }, { "name": "Lang", "kind": "field", "id": "field|Lang|0|0|string?|||h8fa7b7c8fe2a50b3a95391e856d3b6c823e1a596a3f5d40e9f37c84029dc2357", "signature": "public string? Lang", "summary": "\u0022c\u0022, \u0022cpp\u0022, \u0022js\u0022, \u0022ts\u0022, \u0022python\u0022, \u0022rust\u0022, \u0022go\u0022, \u0022json\u0022, \u0022shell\u0022 or \u0022text\u0022 (no colors); shown in the title bar" }, { "name": "Title", "kind": "field", "id": "field|Title|0|0|string?|||h93a8edaa93b16842fe0ac6654a4057aba157dadc71904a5f698e3e310fc21f31", "signature": "public string? Title", "summary": "e.g. a file name" }] }, - { "name": "CuiSharp.Color", "displayName": "Color", "kind": "struct", "summary": "cui_color. Either four channels or a semantic token that follows the theme.", "members": [{ "name": "WithAlpha", "kind": "method", "id": "method|WithAlpha|0|0|Color|float multiplier||hd703c0157a4137aae6653d3bff5c236019738c6b77d9af6dc9d0622216c274aa", "signature": "Color WithAlpha(float multiplier)", "parameters": [{ "name": "multiplier", "type": "float" }], "summary": "Multiplies the color\u0027s alpha, for a disabled or washed-out variant." }, { "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||byte r;byte g;byte b;byte a = 255||hb2121e78947f0a93d18e10dc4600ee2b1aa6e5b3995552e2590e0df80f195aca", "signature": "Color(byte r, byte g, byte b, byte a = 255)", "parameters": [{ "name": "r", "type": "byte" }, { "name": "g", "type": "byte" }, { "name": "b", "type": "byte" }, { "name": "a", "type": "byte", "default": "255" }] }, { "name": "Equals", "kind": "method", "id": "method|Equals|0|0|bool|Color other||h5d0288e9ccfbd1184e3ecb193be0708fdc3eaf511e60bd843af50eedae64c964", "signature": "bool Equals(Color other)", "parameters": [{ "name": "other", "type": "Color" }], "summary": "The same four channels, or the same token. A token compares equal to itself and not to the channels it resolves to, because a token is what a widget draws with." }, { "name": "Equals", "kind": "method", "id": "method|Equals|0|0|bool|object? obj||hd3e92e37e2998ac34e36806ff7fcef181ad242dea4dc74cd082b2897104d07a6", "signature": "bool Equals(object? obj)", "parameters": [{ "name": "obj", "type": "object?" }] }, { "name": "IsToken", "kind": "property", "id": "property|IsToken|0|0|bool||get;|hfe9fb89ba2094af4625f9a23a8c6792c474de7efb997f176a4ebd39e6da47fed", "signature": "bool IsToken { get; }" }, { "name": "GetHashCode", "kind": "method", "id": "method|GetHashCode|0|0|int|||hdfcf1984bbd53bb9079a9b702ff4724865de4dcf06bbed07c42edbc8e1085a8d", "signature": "int GetHashCode()" }, { "name": "A", "kind": "field", "id": "field|A|0|0|byte|||h5f5606c1faa3bde12e471c6d45fbdbbb7b7b13c87a84c6c14640f875f2f6a1a2", "signature": "public readonly byte A" }, { "name": "B", "kind": "field", "id": "field|B|0|0|byte|||hf5ab11f712e47d0a4a2f743383c951d49899ebc92747d616fedc0babd7e745c8", "signature": "public readonly byte B" }, { "name": "G", "kind": "field", "id": "field|G|0|0|byte|||h7d3f01d8808a41c8e556108dd87173de783385b985d8744168b3c4172bd09b35", "signature": "public readonly byte G" }, { "name": "R", "kind": "field", "id": "field|R|0|0|byte|||h985a931c98c551bd094a81b5fe443fa38d6bc2ae6f0d15f34370509fc9dcd391", "signature": "public readonly byte R" }, { "name": "Transparent", "kind": "field", "id": "field|Transparent|1|0|Color|||h41a5ec8d188cdc30049557652b76378086851889c9fa07ab8c0af7306ea12dc7", "signature": "public static readonly Color Transparent" }, { "name": "Accent", "kind": "property", "id": "property|Accent|1|0|Color||get;|h8d69f38a4f15bea2935d1d4fc3628a46cea6ccfef14de994b60ef2d6b48edeaf", "signature": "static Color Accent { get; }" }, { "name": "AccentForeground", "kind": "property", "id": "property|AccentForeground|1|0|Color||get;|h2d4a1f3fb297c595b4064f97f1ea0a76ffded41e218420716307524e3a66e7f8", "signature": "static Color AccentForeground { get; }" }, { "name": "Background", "kind": "property", "id": "property|Background|1|0|Color||get;|he51585877825bba50d9093e9da71b040d9ed6a202aaaeb8575fceea6bb9bda1f", "signature": "static Color Background { get; }" }, { "name": "Border", "kind": "property", "id": "property|Border|1|0|Color||get;|h9873c74b5f65695efeb1a893646ad9674e90d89698fdb81de2afa801815d1cb1", "signature": "static Color Border { get; }" }, { "name": "BorderStrong", "kind": "property", "id": "property|BorderStrong|1|0|Color||get;|hea830f5db3592be34f46c3ec668e30dd7ab1d912414971463ecf0fa27914c0c6", "signature": "static Color BorderStrong { get; }" }, { "name": "Danger", "kind": "property", "id": "property|Danger|1|0|Color||get;|h99cba06ef8d7ea76015c92fb6663ae7505f5e1428aa24cb43e321e5ea6e666d0", "signature": "static Color Danger { get; }" }, { "name": "For", "kind": "method", "id": "method|For|1|0|Color|Tone tone||h4412f9f23c5bd32e18e34c3075655e6fa4a4c5dbf1be06e618ae345b2bd18d4e", "signature": "static Color For(Tone tone)", "parameters": [{ "name": "tone", "type": "Tone" }], "summary": "The theme color a semantic tone stands for, for the primitives that take a Color rather than a Tone (charts, sparklines, custom canvas drawing). Accent and the extra palette tones all resolve to the accent color." }, { "name": "Foreground", "kind": "property", "id": "property|Foreground|1|0|Color||get;|hfccef401e996b9dad2ca2d8fed68a78855a702326883118da37a51295e05eb0c", "signature": "static Color Foreground { get; }" }, { "name": "FromToken", "kind": "method", "id": "method|FromToken|1|0|Color|Token t||h9eafcdf7d2dadd67ddacb8e97905ba6611fd0d1dbee51ffd82593551fb624b1a", "signature": "static Color FromToken(Token t)", "parameters": [{ "name": "t", "type": "Token" }] }, { "name": "Info", "kind": "property", "id": "property|Info|1|0|Color||get;|hfaba701f2c9544d3ff7ad2d1df8f44dd1c689753f32974967d7d9f34dac23345", "signature": "static Color Info { get; }" }, { "name": "Mix", "kind": "method", "id": "method|Mix|1|0|Color|Color a;Color b;float t||he5d58d80e6b12084051425becf17b34e792dd1f4135d5670bc53e90c31e6bf0a", "signature": "static Color Mix(Color a, Color b, float t)", "parameters": [{ "name": "a", "type": "Color" }, { "name": "b", "type": "Color" }, { "name": "t", "type": "float" }], "summary": "Blends two colors: t 0 is a, 1 is b." }, { "name": "Oklch", "kind": "method", "id": "method|Oklch|1|0|Color|float lightness;float chroma;float hueDegrees;float alpha = 1f||hf1fc322887d714152ba0c9914ce19ea5bdf45b86c818fcfecd92e03ea6cf4242", "signature": "static Color Oklch(float lightness, float chroma, float hueDegrees, float alpha = 1f)", "parameters": [{ "name": "lightness", "type": "float" }, { "name": "chroma", "type": "float" }, { "name": "hueDegrees", "type": "float" }, { "name": "alpha", "type": "float", "default": "1f" }], "summary": "A color from an OKLCH triple: perceptual lightness 0..1, chroma, hue in degrees." }, { "name": "Rgb", "kind": "method", "id": "method|Rgb|1|0|Color|uint hex||h543e7417bb161fcbb860648cc48c6488fd3fc75b0c1f4ed5e8610f2ded59938e", "signature": "static Color Rgb(uint hex)", "parameters": [{ "name": "hex", "type": "uint" }], "summary": "CUI_RGB(0xRRGGBB)." }, { "name": "Rgba", "kind": "method", "id": "method|Rgba|1|0|Color|uint hex||h87bac9115999efb2b67af0db822c527527a8ff4fe817a430cc6bab981859c081", "signature": "static Color Rgba(uint hex)", "parameters": [{ "name": "hex", "type": "uint" }], "summary": "CUI_RGBA(0xRRGGBBAA)." }, { "name": "Series", "kind": "method", "id": "method|Series|1|0|Color|int n||heb0b07e61cefa3cf19ad9e6211c83a5dda949039dc7113ac2f07028f50aaabc9", "signature": "static Color Series(int n)", "parameters": [{ "name": "n", "type": "int" }], "summary": "CUI_COLOR_SERIES(n): cycles through the six chart colors." }, { "name": "Success", "kind": "property", "id": "property|Success|1|0|Color||get;|h1a7857cace5c8053e4af308c58b784dcca6f74f79d02fe3d2691e3b08d298a06", "signature": "static Color Success { get; }" }, { "name": "Surface", "kind": "property", "id": "property|Surface|1|0|Color||get;|ha5ac90d021d286432973b34f324d49876e3b58e6994a858e997aec71bcf77e0a", "signature": "static Color Surface { get; }" }, { "name": "SurfaceMuted", "kind": "property", "id": "property|SurfaceMuted|1|0|Color||get;|h8100076ef27b6f8037d5fddb5b39bf1aaae44daf458e422e9b71baad8a021627", "signature": "static Color SurfaceMuted { get; }" }, { "name": "SurfaceRaised", "kind": "property", "id": "property|SurfaceRaised|1|0|Color||get;|h956d3794784a39d0172a10e9452ad425828960b572c73832176094c26468677a", "signature": "static Color SurfaceRaised { get; }" }, { "name": "TextMuted", "kind": "property", "id": "property|TextMuted|1|0|Color||get;|hd8390cf8a32b88e88ff1086ab26309c2b21d1a4c24e54c5c8c0c6c0d63637f98", "signature": "static Color TextMuted { get; }" }, { "name": "TextSecondary", "kind": "property", "id": "property|TextSecondary|1|0|Color||get;|hbb3e2f4e83ec7dd25e89f1fc5ce197f4710e9b590d1b5e9e7208985698669558", "signature": "static Color TextSecondary { get; }" }, { "name": "Warning", "kind": "property", "id": "property|Warning|1|0|Color||get;|ha5291a19d9e6bda4a378d3459d58dea1ae05c73025987e7c6fa0ebce10a50421", "signature": "static Color Warning { get; }" }, { "name": "!=", "kind": "operator", "id": "operator|op_Inequality|1|0|bool|Color left;Color right||hebc2849fede2e4fe5539e9aa3c9f2fba9a5d90180e268e5719934267566ffc92", "signature": "static bool operator !=(Color left, Color right)", "member": "op_Inequality", "parameters": [{ "name": "left", "type": "Color" }, { "name": "right", "type": "Color" }] }, { "name": "==", "kind": "operator", "id": "operator|op_Equality|1|0|bool|Color left;Color right||h3611153c5abbd3f552dd55727f6a9e29b6d288ce6c7951410cd8400e97ddacff", "signature": "static bool operator ==(Color left, Color right)", "member": "op_Equality", "parameters": [{ "name": "left", "type": "Color" }, { "name": "right", "type": "Color" }] }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()", "summary": "#rrggbb, the token\u0027s name, or #rrggbbaa \u2014 whichever says the colour in a debugger or a failed assertion most usefully." }] }, + { "name": "CuiSharp.Color", "displayName": "Color", "kind": "struct", "summary": "cui_color. Either four channels or a semantic token that follows the theme.", "members": [{ "name": "WithAlpha", "kind": "method", "id": "method|WithAlpha|0|0|Color|float multiplier||hd703c0157a4137aae6653d3bff5c236019738c6b77d9af6dc9d0622216c274aa", "signature": "Color WithAlpha(float multiplier)", "parameters": [{ "name": "multiplier", "type": "float" }], "summary": "Multiplies the color\u0027s alpha, for a disabled or washed-out variant." }, { "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||byte r;byte g;byte b;byte a = 255||hb2121e78947f0a93d18e10dc4600ee2b1aa6e5b3995552e2590e0df80f195aca", "signature": "Color(byte r, byte g, byte b, byte a = 255)", "parameters": [{ "name": "r", "type": "byte" }, { "name": "g", "type": "byte" }, { "name": "b", "type": "byte" }, { "name": "a", "type": "byte", "default": "255" }] }, { "name": "Equals", "kind": "method", "id": "method|Equals|0|0|bool|Color other||h5d0288e9ccfbd1184e3ecb193be0708fdc3eaf511e60bd843af50eedae64c964", "signature": "bool Equals(Color other)", "parameters": [{ "name": "other", "type": "Color" }], "summary": "The same four channels, or the same token. A token compares equal to itself and not to the channels it resolves to, because a token is what a widget draws with." }, { "name": "Equals", "kind": "method", "id": "method|Equals|0|0|bool|object? obj||hd3e92e37e2998ac34e36806ff7fcef181ad242dea4dc74cd082b2897104d07a6", "signature": "bool Equals(object? obj)", "parameters": [{ "name": "obj", "type": "object?" }] }, { "name": "IsToken", "kind": "property", "id": "property|IsToken|0|0|bool||get;|hfe9fb89ba2094af4625f9a23a8c6792c474de7efb997f176a4ebd39e6da47fed", "signature": "bool IsToken { get; }", "summary": "Whether this is a semantic token rather than four channels. CUI marks tokens with an alpha of zero and a fixed G/B pair, so the whole marker is checked; the RGB it will draw is known only while a frame is drawing." }, { "name": "GetHashCode", "kind": "method", "id": "method|GetHashCode|0|0|int|||hdfcf1984bbd53bb9079a9b702ff4724865de4dcf06bbed07c42edbc8e1085a8d", "signature": "int GetHashCode()" }, { "name": "A", "kind": "field", "id": "field|A|0|0|byte|||h5f5606c1faa3bde12e471c6d45fbdbbb7b7b13c87a84c6c14640f875f2f6a1a2", "signature": "public readonly byte A" }, { "name": "B", "kind": "field", "id": "field|B|0|0|byte|||hf5ab11f712e47d0a4a2f743383c951d49899ebc92747d616fedc0babd7e745c8", "signature": "public readonly byte B" }, { "name": "G", "kind": "field", "id": "field|G|0|0|byte|||h7d3f01d8808a41c8e556108dd87173de783385b985d8744168b3c4172bd09b35", "signature": "public readonly byte G" }, { "name": "R", "kind": "field", "id": "field|R|0|0|byte|||h985a931c98c551bd094a81b5fe443fa38d6bc2ae6f0d15f34370509fc9dcd391", "signature": "public readonly byte R" }, { "name": "Transparent", "kind": "field", "id": "field|Transparent|1|0|Color|||h41a5ec8d188cdc30049557652b76378086851889c9fa07ab8c0af7306ea12dc7", "signature": "public static readonly Color Transparent" }, { "name": "Accent", "kind": "property", "id": "property|Accent|1|0|Color||get;|h8d69f38a4f15bea2935d1d4fc3628a46cea6ccfef14de994b60ef2d6b48edeaf", "signature": "static Color Accent { get; }" }, { "name": "AccentForeground", "kind": "property", "id": "property|AccentForeground|1|0|Color||get;|h2d4a1f3fb297c595b4064f97f1ea0a76ffded41e218420716307524e3a66e7f8", "signature": "static Color AccentForeground { get; }" }, { "name": "Background", "kind": "property", "id": "property|Background|1|0|Color||get;|he51585877825bba50d9093e9da71b040d9ed6a202aaaeb8575fceea6bb9bda1f", "signature": "static Color Background { get; }" }, { "name": "Border", "kind": "property", "id": "property|Border|1|0|Color||get;|h9873c74b5f65695efeb1a893646ad9674e90d89698fdb81de2afa801815d1cb1", "signature": "static Color Border { get; }" }, { "name": "BorderStrong", "kind": "property", "id": "property|BorderStrong|1|0|Color||get;|hea830f5db3592be34f46c3ec668e30dd7ab1d912414971463ecf0fa27914c0c6", "signature": "static Color BorderStrong { get; }" }, { "name": "Danger", "kind": "property", "id": "property|Danger|1|0|Color||get;|h99cba06ef8d7ea76015c92fb6663ae7505f5e1428aa24cb43e321e5ea6e666d0", "signature": "static Color Danger { get; }" }, { "name": "For", "kind": "method", "id": "method|For|1|0|Color|Tone tone||h4412f9f23c5bd32e18e34c3075655e6fa4a4c5dbf1be06e618ae345b2bd18d4e", "signature": "static Color For(Tone tone)", "parameters": [{ "name": "tone", "type": "Tone" }], "summary": "The theme color a semantic tone stands for, for the primitives that take a Color rather than a Tone (charts, sparklines, custom canvas drawing). Accent and the extra palette tones all resolve to the accent color." }, { "name": "Foreground", "kind": "property", "id": "property|Foreground|1|0|Color||get;|hfccef401e996b9dad2ca2d8fed68a78855a702326883118da37a51295e05eb0c", "signature": "static Color Foreground { get; }" }, { "name": "FromToken", "kind": "method", "id": "method|FromToken|1|0|Color|Token t||h9eafcdf7d2dadd67ddacb8e97905ba6611fd0d1dbee51ffd82593551fb624b1a", "signature": "static Color FromToken(Token t)", "parameters": [{ "name": "t", "type": "Token" }] }, { "name": "Info", "kind": "property", "id": "property|Info|1|0|Color||get;|hfaba701f2c9544d3ff7ad2d1df8f44dd1c689753f32974967d7d9f34dac23345", "signature": "static Color Info { get; }" }, { "name": "Mix", "kind": "method", "id": "method|Mix|1|0|Color|Color a;Color b;float t||he5d58d80e6b12084051425becf17b34e792dd1f4135d5670bc53e90c31e6bf0a", "signature": "static Color Mix(Color a, Color b, float t)", "parameters": [{ "name": "a", "type": "Color" }, { "name": "b", "type": "Color" }, { "name": "t", "type": "float" }], "summary": "Blends two colors: t 0 is a, 1 is b." }, { "name": "Oklch", "kind": "method", "id": "method|Oklch|1|0|Color|float lightness;float chroma;float hueDegrees;float alpha = 1f||hf1fc322887d714152ba0c9914ce19ea5bdf45b86c818fcfecd92e03ea6cf4242", "signature": "static Color Oklch(float lightness, float chroma, float hueDegrees, float alpha = 1f)", "parameters": [{ "name": "lightness", "type": "float" }, { "name": "chroma", "type": "float" }, { "name": "hueDegrees", "type": "float" }, { "name": "alpha", "type": "float", "default": "1f" }], "summary": "A color from an OKLCH triple: perceptual lightness 0..1, chroma, hue in degrees." }, { "name": "Rgb", "kind": "method", "id": "method|Rgb|1|0|Color|uint hex||h543e7417bb161fcbb860648cc48c6488fd3fc75b0c1f4ed5e8610f2ded59938e", "signature": "static Color Rgb(uint hex)", "parameters": [{ "name": "hex", "type": "uint" }], "summary": "CUI_RGB(0xRRGGBB)." }, { "name": "Rgba", "kind": "method", "id": "method|Rgba|1|0|Color|uint hex||h87bac9115999efb2b67af0db822c527527a8ff4fe817a430cc6bab981859c081", "signature": "static Color Rgba(uint hex)", "parameters": [{ "name": "hex", "type": "uint" }], "summary": "CUI_RGBA(0xRRGGBBAA)." }, { "name": "Series", "kind": "method", "id": "method|Series|1|0|Color|int n||heb0b07e61cefa3cf19ad9e6211c83a5dda949039dc7113ac2f07028f50aaabc9", "signature": "static Color Series(int n)", "parameters": [{ "name": "n", "type": "int" }], "summary": "CUI_COLOR_SERIES(n): cycles through the six chart colors." }, { "name": "Success", "kind": "property", "id": "property|Success|1|0|Color||get;|h1a7857cace5c8053e4af308c58b784dcca6f74f79d02fe3d2691e3b08d298a06", "signature": "static Color Success { get; }" }, { "name": "Surface", "kind": "property", "id": "property|Surface|1|0|Color||get;|ha5ac90d021d286432973b34f324d49876e3b58e6994a858e997aec71bcf77e0a", "signature": "static Color Surface { get; }" }, { "name": "SurfaceMuted", "kind": "property", "id": "property|SurfaceMuted|1|0|Color||get;|h8100076ef27b6f8037d5fddb5b39bf1aaae44daf458e422e9b71baad8a021627", "signature": "static Color SurfaceMuted { get; }" }, { "name": "SurfaceRaised", "kind": "property", "id": "property|SurfaceRaised|1|0|Color||get;|h956d3794784a39d0172a10e9452ad425828960b572c73832176094c26468677a", "signature": "static Color SurfaceRaised { get; }" }, { "name": "TextMuted", "kind": "property", "id": "property|TextMuted|1|0|Color||get;|hd8390cf8a32b88e88ff1086ab26309c2b21d1a4c24e54c5c8c0c6c0d63637f98", "signature": "static Color TextMuted { get; }" }, { "name": "TextSecondary", "kind": "property", "id": "property|TextSecondary|1|0|Color||get;|hbb3e2f4e83ec7dd25e89f1fc5ce197f4710e9b590d1b5e9e7208985698669558", "signature": "static Color TextSecondary { get; }" }, { "name": "Warning", "kind": "property", "id": "property|Warning|1|0|Color||get;|ha5291a19d9e6bda4a378d3459d58dea1ae05c73025987e7c6fa0ebce10a50421", "signature": "static Color Warning { get; }" }, { "name": "!=", "kind": "operator", "id": "operator|op_Inequality|1|0|bool|Color left;Color right||hebc2849fede2e4fe5539e9aa3c9f2fba9a5d90180e268e5719934267566ffc92", "signature": "static bool operator !=(Color left, Color right)", "member": "op_Inequality", "parameters": [{ "name": "left", "type": "Color" }, { "name": "right", "type": "Color" }] }, { "name": "==", "kind": "operator", "id": "operator|op_Equality|1|0|bool|Color left;Color right||h3611153c5abbd3f552dd55727f6a9e29b6d288ce6c7951410cd8400e97ddacff", "signature": "static bool operator ==(Color left, Color right)", "member": "op_Equality", "parameters": [{ "name": "left", "type": "Color" }, { "name": "right", "type": "Color" }] }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()", "summary": "#rrggbb, the token\u0027s name, or #rrggbbaa \u2014 whichever says the colour in a debugger or a failed assertion most usefully." }] }, { "name": "CuiSharp.Command", "displayName": "Command", "kind": "struct", "summary": "Elements are copied into the frame arena by the wrapper.", "members": [{ "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||string? Title;string? Icon = null;string? Group = null;string? Shortcut = null||h6283c494eb865a4501b0d81cc6c67eea93f31757af5ee76334221efaf45e517f", "signature": "Command(string? Title, string? Icon = null, string? Group = null, string? Shortcut = null)", "parameters": [{ "name": "Title", "type": "string?" }, { "name": "Icon", "type": "string?", "default": "null" }, { "name": "Group", "type": "string?", "default": "null" }, { "name": "Shortcut", "type": "string?", "default": "null" }] }, { "name": "Group", "kind": "field", "id": "field|Group|0|0|string?|||hf3da4970c81056945d7238681c51ca4ab28004c0ca941fabfe885256c6388d9b", "signature": "public string? Group", "summary": "heading above a run of commands with the same group, shown while the search is empty" }, { "name": "Icon", "kind": "field", "id": "field|Icon|0|0|string?|||hcde1437bde43c1697295d30669c92da2e86cf40ed384690cfdabd8cbe15ff219", "signature": "public string? Icon", "summary": "const char * icon" }, { "name": "Shortcut", "kind": "field", "id": "field|Shortcut|0|0|string?|||hb24cee523e8070471058522244148c9ff58dd158ff50852f7a6257dc7fcab350", "signature": "public string? Shortcut", "summary": "const char * shortcut" }, { "name": "Title", "kind": "field", "id": "field|Title|0|0|string?|||h93a8edaa93b16842fe0ac6654a4057aba157dadc71904a5f698e3e310fc21f31", "signature": "public string? Title", "summary": "the command\u0027s text in the list; what typing in the palette searches" }] }, { "name": "CuiSharp.CommentEvents", "displayName": "CommentEvents", "kind": "enum", "summary": "Comment with replies. depth indents replies under a connector line. Returns CUI_COMMENT_LIKE or CUI_COMMENT_REPLY flags for what was clicked; *liked and *likes are updated for you.", "members": [{ "name": "Like", "kind": "enum value", "id": "enum value|Like|1|0|||1|h87cdacbf5b376ea5724eecb6ec0bc577e007cc2c6141407853fe1d6c2c70038b", "signature": "Like = 1", "value": "1" }, { "name": "None", "kind": "enum value", "id": "enum value|None|1|0|||0|h9e4e72abf0eaa3b853206f4d9ea0b0faabef40a12ba47974d4328c3a5bbf4faa", "signature": "None = 0", "value": "0" }, { "name": "Reply", "kind": "enum value", "id": "enum value|Reply|1|0|||2|h3390298ec50eb933c27c348b2dd6fd432aab04066fd68af15b17c8b8fc243129", "signature": "Reply = 2", "value": "2" }] }, { "name": "CuiSharp.CommentOpts", "displayName": "CommentOpts", "kind": "struct", "summary": "cui_comment_opts. All fields are optional; zero selects the native default.", "members": [{ "name": "Edited", "kind": "field", "id": "field|Edited|0|0|bool|||he72494a4b154ed9e062a25161fb063fdcd50128995f66884e73c7d4fbe4e7b88", "signature": "public bool Edited", "summary": "adds \u0022edited\u0022 after the time" }, { "name": "Depth", "kind": "field", "id": "field|Depth|0|0|int|||h5c000330acd96a811d204190bc527bc04dc1fb3eb86013885f00fa4eab3a4544", "signature": "public int Depth", "summary": "0 for a top level comment; each level indents a reply 44 points under a connector line" }, { "name": "Badge", "kind": "field", "id": "field|Badge|0|0|string?|||he7e7c071afd35c021d23c003aca00c74fdf6fc42e693819ce02b70951ea38c8d", "signature": "public string? Badge", "summary": "small badge after the author\u0027s name, e.g. \u0022Author\u0022" }, { "name": "Time", "kind": "field", "id": "field|Time|0|0|string?|||h3fa6df975c274c56979003cf790a67367077eb0ba02d23dac030823b376828bc", "signature": "public string? Time", "summary": "muted text after the author\u0027s name, e.g. \u00222h ago\u0022" }] }, @@ -71,7 +71,7 @@ { "name": "CuiSharp.CuiCron", "displayName": "CuiCron", "kind": "static class", "summary": "Cron schedules without a frame: when an expression runs next, using the same parser the schedule picker shows its next runs with. Five fields (minute, hour, day, month, weekday), with *, lists, ranges, steps and the month and weekday names.", "members": [{ "name": "TryNext", "kind": "method", "id": "method|TryNext|1|0|bool|string cron;DateTimeOffset after;out DateTimeOffset next;int utcOffsetMinutes = default||h45c9a2e0364603001de581bc113a9f93cd0f141398c41961947ee9675eb1e035", "signature": "static bool TryNext(string cron, DateTimeOffset after, out DateTimeOffset next, int utcOffsetMinutes = default)", "parameters": [{ "name": "cron", "type": "string" }, { "name": "after", "type": "DateTimeOffset" }, { "name": "next", "type": "out DateTimeOffset" }, { "name": "utcOffsetMinutes", "type": "int", "default": "default" }], "summary": "The first time after after that cron matches." }] }, { "name": "CuiSharp.CuiDiagnostics", "displayName": "CuiDiagnostics", "kind": "class", "summary": "One snapshot of what this process is actually running on: the renderer that was chosen, the native library it loaded, the display and dialog helper it will find. A station, a VM or a remote session fails in ways nobody can reproduce from a description, and every app ends up writing this by hand. Print it at startup, or on a --check flag, and the report says which of the two machines it came from.", "members": [{ "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||||h045f116644ce1367ba1261a3d3abff761cf164ab51083cb5b2e790184a58ae3d", "signature": "CuiDiagnostics()" }, { "name": "Equals", "kind": "method", "id": "method|Equals|0|0|bool|CuiDiagnostics? other||h8b9968c4c8748c81e7bf5fb2489be20ba189750bc9f5994e8892cff8cace8efe", "signature": "bool Equals(CuiDiagnostics? other)", "parameters": [{ "name": "other", "type": "CuiDiagnostics?" }] }, { "name": "Equals", "kind": "method", "id": "method|Equals|0|0|bool|object? obj||hd3e92e37e2998ac34e36806ff7fcef181ad242dea4dc74cd082b2897104d07a6", "signature": "bool Equals(object? obj)", "parameters": [{ "name": "obj", "type": "object?" }] }, { "name": "SoftwareRenderer", "kind": "property", "id": "property|SoftwareRenderer|0|0|bool||get;set;|h2413e0212d14e26b5f904135df3e18786ea70264e1cbe1d1c5dce0f7a6b16036", "signature": "bool SoftwareRenderer { get; init; }", "summary": "True when OpenGL was unavailable or unhelpful and the software rasterizer draws." }, { "name": "GetHashCode", "kind": "method", "id": "method|GetHashCode|0|0|int|||hdfcf1984bbd53bb9079a9b702ff4724865de4dcf06bbed07c42edbc8e1085a8d", "signature": "int GetHashCode()" }, { "name": "Report", "kind": "method", "id": "method|Report|1|0|CuiDiagnostics|CuiWindow? window = null||h1859d46f8eaf6ef17454a9b08aa5ae718920e0fde4800cdc1934a9e1746f95e9", "signature": "static CuiDiagnostics Report(CuiWindow? window = null)", "parameters": [{ "name": "window", "type": "CuiWindow?", "default": "null" }], "summary": "Reads the machine, and the window when there is one. Pass the window from WindowCreated to learn which renderer actually won." }, { "name": "!=", "kind": "operator", "id": "operator|op_Inequality|1|0|bool|CuiDiagnostics? left;CuiDiagnostics? right||h835207532afe819267c16c154792dba5fc2255f69c90f6f422ba6017fd9b8715", "signature": "static bool operator !=(CuiDiagnostics? left, CuiDiagnostics? right)", "member": "op_Inequality", "parameters": [{ "name": "left", "type": "CuiDiagnostics?" }, { "name": "right", "type": "CuiDiagnostics?" }] }, { "name": "==", "kind": "operator", "id": "operator|op_Equality|1|0|bool|CuiDiagnostics? left;CuiDiagnostics? right||h6532c2e545d825729f6674cd4a57008d1939f908c292b1baa8658168528547d0", "signature": "static bool operator ==(CuiDiagnostics? left, CuiDiagnostics? right)", "member": "op_Equality", "parameters": [{ "name": "left", "type": "CuiDiagnostics?" }, { "name": "right", "type": "CuiDiagnostics?" }] }, { "name": "Backend", "kind": "property", "id": "property|Backend|0|0|string||get;set;|h6f2bd4d265f2f26561618b557eb8ccb26ec79b8a47262646b2e1c43fb44bbd84", "signature": "string Backend { get; init; }", "summary": "The CUI backend that created the window: win32, x11, cocoa." }, { "name": "DialogHelper", "kind": "property", "id": "property|DialogHelper|0|0|string||get;set;|h73dfb3c1f64725048b8bcaa3a763d50fb742c6e1efd1dd8965296468ff0af30c", "signature": "string DialogHelper { get; init; }", "summary": "The program a Linux file dialog will shell out to, or empty when none was found." }, { "name": "Display", "kind": "property", "id": "property|Display|0|0|string||get;set;|ha88f1771bd148fcab63ebce49579a6f35fe128f2973ea441edf42aa218f80ce2", "signature": "string Display { get; init; }", "summary": "The display the window will use; empty when there is none." }, { "name": "GlibcFloor", "kind": "property", "id": "property|GlibcFloor|0|0|string||get;set;|h51b3ad0b58b2d6a41a481cf6b2bafe1d875013433317188ba6ac23c741186679", "signature": "string GlibcFloor { get; init; }", "summary": "The glibc floor the Linux binary promises; empty on other platforms." }, { "name": "Platform", "kind": "property", "id": "property|Platform|0|0|string||get;set;|h4d0689b967267a70a59520183f8d0d87f6700b4cd8bbf3f02949fca03ee76901", "signature": "string Platform { get; init; }", "summary": "The OS and runtime: win-x64, win-arm64, linux-x64, linux-arm64, osx-arm64." }, { "name": "Report", "kind": "method", "id": "method|Report|0|0|string|||hba97406277ec59b17e164b35d7746c4b0efed4bd7cedde0c4877313c6c27312a", "signature": "string Report()", "summary": "Everything above as the lines a person or a bug report reads." }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()" }, { "name": "Version", "kind": "property", "id": "property|Version|0|0|string||get;set;|h81037fde9c494ae8f88927f7d63be685a84c339cc2ff700fb5f5a30411f38873", "signature": "string Version { get; init; }", "summary": "The package version whose managed and native halves are loaded together." }] }, { "name": "CuiSharp.CuiFiles", "displayName": "CuiFiles", "kind": "static class", "summary": "The filesystem helpers CUI keeps behind the file browser, and the in-place sorts the flame graph and the trace viewer need: a directory listing with the same rule the browser uses.", "members": [{ "name": "ListDirectory", "kind": "method", "id": "method|ListDirectory|1|0|FileEntry[]|string? path;bool includeHidden = default;int maxEntries = 20000||h264fbecb79cc8c4f52483f68db652cf87fa11e191f0f30cabc8baba01d4f072b", "signature": "static FileEntry[] ListDirectory(string? path, bool includeHidden = default, int maxEntries = 20000)", "parameters": [{ "name": "path", "type": "string?" }, { "name": "includeHidden", "type": "bool", "default": "default" }, { "name": "maxEntries", "type": "int", "default": "20000" }], "summary": "Lists a directory the way the file browser does: no ./.., and hidden entries only when asked for." }, { "name": "SortFlameSpans", "kind": "method", "id": "method|SortFlameSpans|1|0|void|Span\u003CFlameSpan\u003E spans||h51d02985e086ba826919a69f5cf84fbbb07f7a38858fb4dbab08504f5d9ef66f", "signature": "static void SortFlameSpans(Span\u003CFlameSpan\u003E spans)", "parameters": [{ "name": "spans", "type": "Span\u003CFlameSpan\u003E" }], "summary": "Sorts flame graph spans by weight in place, the order the graph expects." }, { "name": "SortTraceSpans", "kind": "method", "id": "method|SortTraceSpans|1|0|void|Span\u003CTraceSpan\u003E spans||ha0c5b36c520b5a87e07a8a081d0877de8877f00c03de24905cbd24f012fdc0de", "signature": "static void SortTraceSpans(Span\u003CTraceSpan\u003E spans)", "parameters": [{ "name": "spans", "type": "Span\u003CTraceSpan\u003E" }], "summary": "Sorts trace spans by lane, depth and start, the only order the trace viewer can draw (it needs no overlap inside a depth of a lane)." }] }, - { "name": "CuiSharp.CuiHttp", "displayName": "CuiHttp", "kind": "static class", "summary": "The HTTP and URL helpers the request bar and the parameters table share: a status line\u0027s reason, a method\u0027s name, and a URL\u0027s query kept in step with a list of KeyValue pairs. They take no Ui, so they work on a click and in a unit test alike.", "members": [{ "name": "ParseQuery", "kind": "method", "id": "method|ParseQuery|1|0|KeyValue[]|string url;int capacity = 64||h5827ba954c5fea87b94c37af133a924c183a57eb2cdc41503263923eca9e4bb3", "signature": "static KeyValue[] ParseQuery(string url, int capacity = 64)", "parameters": [{ "name": "url", "type": "string" }, { "name": "capacity", "type": "int", "default": "64" }], "summary": "Decodes a URL\u0027s query into pairs, the way the request bar\u0027s parameters table shows it." }, { "name": "MethodName", "kind": "method", "id": "method|MethodName|1|0|string|HttpMethod method||hf7157dccd0f087405414e60edc1f090066a89adc9f37697fbdabc65d029b5bd2", "signature": "static string MethodName(HttpMethod method)", "parameters": [{ "name": "method", "type": "HttpMethod" }], "summary": "The name of a method, e.g. \u0022PATCH\u0022." }, { "name": "Reason", "kind": "method", "id": "method|Reason|1|0|string|int status||h0f956116af6c240b16c4b22c7308429294ef3a7c5a17a95f778ca90ddaa87098", "signature": "static string Reason(int status)", "parameters": [{ "name": "status", "type": "int" }], "summary": "The reason phrase for a status code, e.g. \u0022Not Found\u0022; empty when CUI does not know it." }, { "name": "SetQuery", "kind": "method", "id": "method|SetQuery|1|0|string?|string url;ReadOnlySpan\u003CKeyValue\u003E pairs;int capacity = 8192||hb96d7f6d8359ac28aa80d1224982bb343513758c1f9a47d37bec2d88f50e1063", "signature": "static string? SetQuery(string url, ReadOnlySpan\u003CKeyValue\u003E pairs, int capacity = 8192)", "parameters": [{ "name": "url", "type": "string" }, { "name": "pairs", "type": "ReadOnlySpan\u003CKeyValue\u003E" }, { "name": "capacity", "type": "int", "default": "8192" }], "summary": "Rewrites url\u0027s query from pairs, encoding each key and value and keeping any fragment. Disabled pairs and pairs with no key are left out, so one list can drive both a live request and a table with rows that are switched off." }] }, + { "name": "CuiSharp.CuiHttp", "displayName": "CuiHttp", "kind": "static class", "summary": "The HTTP and URL helpers the request bar and the parameters table share: a status line\u0027s reason, a method\u0027s name, and a URL\u0027s query kept in step with a list of KeyValue pairs. They take no Ui, so they work on a click and in a unit test alike.", "members": [{ "name": "ParseQuery", "kind": "method", "id": "method|ParseQuery|1|0|KeyValue[]|string url;int capacity = 64||h5827ba954c5fea87b94c37af133a924c183a57eb2cdc41503263923eca9e4bb3", "signature": "static KeyValue[] ParseQuery(string url, int capacity = 64)", "parameters": [{ "name": "url", "type": "string" }, { "name": "capacity", "type": "int", "default": "64" }], "summary": "Decodes a URL\u0027s query into pairs, the way the request bar\u0027s parameters table shows it." }, { "name": "MethodName", "kind": "method", "id": "method|MethodName|1|0|string|HttpVerb method||h77b64b51a96f7c2066d1dd866e0fd4d5db3569411e437fc2bf94fd2f6303deac", "signature": "static string MethodName(HttpVerb method)", "parameters": [{ "name": "method", "type": "HttpVerb" }], "summary": "The name of a method, e.g. \u0022PATCH\u0022." }, { "name": "Reason", "kind": "method", "id": "method|Reason|1|0|string|int status||h0f956116af6c240b16c4b22c7308429294ef3a7c5a17a95f778ca90ddaa87098", "signature": "static string Reason(int status)", "parameters": [{ "name": "status", "type": "int" }], "summary": "The reason phrase for a status code, e.g. \u0022Not Found\u0022; empty when CUI does not know it." }, { "name": "SetQuery", "kind": "method", "id": "method|SetQuery|1|0|string?|string url;ReadOnlySpan\u003CKeyValue\u003E pairs;int capacity = 8192||hb96d7f6d8359ac28aa80d1224982bb343513758c1f9a47d37bec2d88f50e1063", "signature": "static string? SetQuery(string url, ReadOnlySpan\u003CKeyValue\u003E pairs, int capacity = 8192)", "parameters": [{ "name": "url", "type": "string" }, { "name": "pairs", "type": "ReadOnlySpan\u003CKeyValue\u003E" }, { "name": "capacity", "type": "int", "default": "8192" }], "summary": "Rewrites url\u0027s query from pairs, encoding each key and value and keeping any fragment. Disabled pairs and pairs with no key are left out, so one list can drive both a live request and a table with rows that are switched off." }] }, { "name": "CuiSharp.CuiMath", "displayName": "CuiMath", "kind": "static class", "summary": "The pure helpers behind the editors: evaluating a curve or a gradient the same way the widgets do, and diffing two texts. They take no Ui, so they are usable from a component\u0027s own code or a unit test.", "members": [{ "name": "EvaluateGradient", "kind": "method", "id": "method|EvaluateGradient|1|0|Color|ReadOnlySpan\u003CGradientStop\u003E stops;float t||h2b44807e417854d66da3b7e44648829cc51ba812a19885de52ef5b1d2d91235a", "signature": "static Color EvaluateGradient(ReadOnlySpan\u003CGradientStop\u003E stops, float t)", "parameters": [{ "name": "stops", "type": "ReadOnlySpan\u003CGradientStop\u003E" }, { "name": "t", "type": "float" }], "summary": "The colour of a gradient at t (0..1), interpolated in CUI\u0027s own space." }, { "name": "DiffLines", "kind": "method", "id": "method|DiffLines|1|0|ValueTuple\u003CDiffHunk[], DiffStats\u003E|string? oldText;string? newText;bool ignoreLineEndings = default;int maxHunks = 512||h306ff2abbdd0bfe668bb6f42f65d6f3ad89619c680c4ae8d304275ef66a69925", "signature": "static ValueTuple\u003CDiffHunk[], DiffStats\u003E DiffLines(string? oldText, string? newText, bool ignoreLineEndings = default, int maxHunks = 512)", "parameters": [{ "name": "oldText", "type": "string?" }, { "name": "newText", "type": "string?" }, { "name": "ignoreLineEndings", "type": "bool", "default": "default" }, { "name": "maxHunks", "type": "int", "default": "512" }], "summary": "The hunks that turn oldText into newText, computed the way the diff view does." }, { "name": "DiffWords", "kind": "method", "id": "method|DiffWords|1|0|ValueTuple\u003CDiffRange[], DiffRange[]\u003E?|string? oldLine;string? newLine;int capacity = 64||hac1dc5f0380325206f98f860e13ae186389d887c11a10ac54104d77fdb2dc17d", "signature": "static ValueTuple\u003CDiffRange[], DiffRange[]\u003E? DiffWords(string? oldLine, string? newLine, int capacity = 64)", "parameters": [{ "name": "oldLine", "type": "string?" }, { "name": "newLine", "type": "string?" }, { "name": "capacity", "type": "int", "default": "64" }], "summary": "Marks the byte ranges of one line that changed between two versions of it, as DiffRange lists." }, { "name": "PathMatches", "kind": "method", "id": "method|PathMatches|1|0|bool|string? path;string? filter||h3335ac66a79487be310c4f9cf7d35aabb3929531be1bf828896256aab690fc9a", "signature": "static bool PathMatches(string? path, string? filter)", "parameters": [{ "name": "path", "type": "string?" }, { "name": "filter", "type": "string?" }], "summary": "True when path matches a filter such as \u0022*.png;*.jpg\u0022, using CUI\u0027s own matching rule (the one the file picker applies)." }, { "name": "EvaluateCurve", "kind": "method", "id": "method|EvaluateCurve|1|0|float|ReadOnlySpan\u003CCurveKey\u003E keys;float x||hf889b3c0250dd3a07d264198a5d7fe683b02d1d2399e47344457accb553c88bc", "signature": "static float EvaluateCurve(ReadOnlySpan\u003CCurveKey\u003E keys, float x)", "parameters": [{ "name": "keys", "type": "ReadOnlySpan\u003CCurveKey\u003E" }, { "name": "x", "type": "float" }], "summary": "The value of a bezier curve at x, exactly as the curve editor draws it: keys sorted by X, with their handles." }] }, { "name": "CuiSharp.CuiQuery", "displayName": "CuiQuery", "kind": "static class", "summary": "A filter built by the query builder, usable without a frame: the sentence it reads as, the operators a field type offers, and whether a record matches. The builder edits QueryNode values the app owns, so these take the same two arrays it draws from.", "members": [{ "name": "Match", "kind": "method", "id": "method|Match|1|0|bool|ReadOnlySpan\u003CQueryField\u003E fields;ReadOnlySpan\u003CQueryNode\u003E nodes;ReadOnlySpan\u003Cstring\u003E values||hfe5a111eb371af93ddd479c8559033524b4074d21c2ef10252a21d545327d9f8", "signature": "static bool Match(ReadOnlySpan\u003CQueryField\u003E fields, ReadOnlySpan\u003CQueryNode\u003E nodes, ReadOnlySpan\u003Cstring\u003E values)", "parameters": [{ "name": "fields", "type": "ReadOnlySpan\u003CQueryField\u003E" }, { "name": "nodes", "type": "ReadOnlySpan\u003CQueryNode\u003E" }, { "name": "values", "type": "ReadOnlySpan\u003Cstring\u003E" }], "summary": "Whether a record satisfies the nodes; values is its value for each field, as text (\u00221\u0022, \u0022true\u0022, \u0022open\u0022), so the caller decides how a record becomes text." }, { "name": "OperatorCount", "kind": "method", "id": "method|OperatorCount|1|0|int|QueryType type||h162ddc6a768bee14f6da83dc85f76d19fb3b1684d6716e077767217648284a65", "signature": "static int OperatorCount(QueryType type)", "parameters": [{ "name": "type", "type": "QueryType" }], "summary": "How many operators a field type offers, which is what the picker lists." }, { "name": "Text", "kind": "method", "id": "method|Text|1|0|string|ReadOnlySpan\u003CQueryField\u003E fields;ReadOnlySpan\u003CQueryNode\u003E nodes;int capacity = 1024||h648c3fcacc7e1fc238a6df0318764f71ca5cacefb654e336a383476bafe697cf", "signature": "static string Text(ReadOnlySpan\u003CQueryField\u003E fields, ReadOnlySpan\u003CQueryNode\u003E nodes, int capacity = 1024)", "parameters": [{ "name": "fields", "type": "ReadOnlySpan\u003CQueryField\u003E" }, { "name": "nodes", "type": "ReadOnlySpan\u003CQueryNode\u003E" }, { "name": "capacity", "type": "int", "default": "1024" }], "summary": "The nodes as one sentence, the way the builder reads them back: \u0022Status is open and priority is high\u0022." }, { "name": "OperatorName", "kind": "method", "id": "method|OperatorName|1|0|string?|QueryType type;int op||he15a9e66e87e8831a4bf64cfb27b67684b1880491d2201106cd850600c1e5820", "signature": "static string? OperatorName(QueryType type, int op)", "parameters": [{ "name": "type", "type": "QueryType" }, { "name": "op", "type": "int" }], "summary": "The name of one operator of a field type, e.g. \u0022contains\u0022; null for none." }] }, { "name": "CuiSharp.CuiRegex", "displayName": "CuiRegex", "kind": "static class", "summary": "CUI\u0027s regular expression engine, usable without a frame: the same backtracking matcher the regex tester draws its highlights with. It supports the common syntax (classes, anchors, groups and the usual quantifiers) and no lookaround or backreferences.", "members": [{ "name": "TrySearch", "kind": "method", "id": "method|TrySearch|1|0|bool|string pattern;string text;out RegexMatch match;out string? error;int from = default;RegexFlags flags = RegexFlags.None||hb2d5b003461d8b1897c2d86a3e8e5b39c0447ee43b09f0319df8b21e6a26e012", "signature": "static bool TrySearch(string pattern, string text, out RegexMatch match, out string? error, int from = default, RegexFlags flags = RegexFlags.None)", "parameters": [{ "name": "pattern", "type": "string" }, { "name": "text", "type": "string" }, { "name": "match", "type": "out RegexMatch" }, { "name": "error", "type": "out string?" }, { "name": "from", "type": "int", "default": "default" }, { "name": "flags", "type": "RegexFlags", "default": "RegexFlags.None" }], "summary": "Finds the first match of pattern in text at or after from (a byte offset)." }, { "name": "Slice", "kind": "method", "id": "method|Slice|1|0|string|string text;RegexGroup group||h2b82ba310f5930d0a5935ef237fb39a338249e8785db65743e1a58e255ccb1ff", "signature": "static string Slice(string text, RegexGroup group)", "parameters": [{ "name": "text", "type": "string" }, { "name": "group", "type": "RegexGroup" }], "summary": "One group\u0027s text, which is what a caller marking the groups wants. Nothing is encoded again, so calling it per group over one match costs one substring each." }, { "name": "Slice", "kind": "method", "id": "method|Slice|1|0|string|string text;RegexMatch match||hc3106500ab56083da4c72cdbdb2c3eb7bd26ca73028fa3e6683c72062e654e6b", "signature": "static string Slice(string text, RegexMatch match)", "parameters": [{ "name": "text", "type": "string" }, { "name": "match", "type": "RegexMatch" }], "summary": "The whole match\u0027s text." }, { "name": "Slice", "kind": "method", "id": "method|Slice|1|0|string|string text;int start;int end||h607f1e88bd9a77d1ca487c76bc09d7749148df45f3d744269c4fce5fdf263bf6", "signature": "static string Slice(string text, int start, int end)", "parameters": [{ "name": "text", "type": "string" }, { "name": "start", "type": "int" }, { "name": "end", "type": "int" }], "summary": "The text between two UTF-8 byte offsets. The engine reports bytes, so a caller holding bytes uses them directly; a caller holding a string gets the characters they cover." }] }, @@ -174,7 +174,7 @@ { "name": "CuiSharp.Hosting.Mutation\u00601", "displayName": "Mutation", "kind": "class", "summary": "One background operation owned by a component: start it, keep drawing, and see the result on a later frame. The frame loop is synchronous, so nothing inside Draw may await. A mutation is the shape that makes that safe: it runs the work on the pool, holds the outcome, and never touches a Ui from a pool thread. While the operation runs \u2014 and for the one frame its result still needs to be drawn \u2014 the host keeps requesting frames, so the state appears immediately instead of on the next mouse move. Error and IsRunning are always current and cost nothing to read, so a fire-and-forget mutation needs no bookkeeping in Draw. Pass an apply callback when the result has to change state, and Draw never polls: the callback runs on the UI thread, before the next frame draws.", "members": [{ "name": "Error", "kind": "property", "id": "property|Error|0|0|Exception?||get;|hb67d4cbeee04c77705d935c8f9afc91d020a674a85f3ebb45a3c6dfd8005cfea", "signature": "Exception? Error { get; }", "summary": "The failure that ended the last run, or null. Cached when the operation completes, so reading it every frame allocates nothing." }, { "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||Func\u003CCancellationToken, Task\u003CT\u003E\u003E work||h407c67811e4cd751644c16cd780b2aa8f6144d3999000bb9a13e4867a2511590", "signature": "Mutation\u003CT\u003E(Func\u003CCancellationToken, Task\u003CT\u003E\u003E work)", "parameters": [{ "name": "work", "type": "Func\u003CCancellationToken, Task\u003CT\u003E\u003E" }], "summary": "Creates a mutation around the work it runs." }, { "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||Func\u003CCancellationToken, Task\u003CT\u003E\u003E work;Action\u003CT\u003E? apply||h439a867bc51e16192ebb428f43d5d5ad97e83f3395e337d6fadd63dfcb5ec734", "signature": "Mutation\u003CT\u003E(Func\u003CCancellationToken, Task\u003CT\u003E\u003E work, Action\u003CT\u003E? apply)", "parameters": [{ "name": "work", "type": "Func\u003CCancellationToken, Task\u003CT\u003E\u003E" }, { "name": "apply", "type": "Action\u003CT\u003E?" }], "summary": "Creates a mutation that hands its result to apply on the UI thread, before the next frame draws." }, { "name": "IsRunning", "kind": "property", "id": "property|IsRunning|0|0|bool||get;|hdb50b35f9f11d94a95bf6f33b6d55042e6ef5b6754a94143c75a7814c03fafc3", "signature": "bool IsRunning { get; }", "summary": "True while the operation is in flight." }, { "name": "TryPublish", "kind": "method", "id": "method|TryPublish|0|0|bool|out T result||ha98becc21c9c0f32b7a93fa1ebe90da051774564169240986c82f6a725c2b6ce", "signature": "bool TryPublish(out T? result)", "parameters": [{ "name": "result", "type": "out T?" }], "summary": "Takes the result if the operation finished. Needed only when the result has no apply callback; an operation that was given one has already applied it." }, { "name": "Dispose", "kind": "method", "id": "method|Dispose|0|0|void|||h743737a1705f80570f9b0dca3334406a3351c7ecb98acd045baf6804dd060a4e", "signature": "void Dispose()", "summary": "Cancels a running operation and drops its result. Optional: a mutation that is never disposed is cancelled when the process exits, which is what an app usually wants. After this, a completion that arrives late \u2014 the work finished just before the page was navigated away from \u2014 is dropped instead of applying into a component that no longer exists." }, { "name": "Run", "kind": "method", "id": "method|Run|0|0|void|||h7fa7970a6de0dd0432fb375a6fdd0984556b406ca72f5dcb18c83b9546faba45", "signature": "void Run()", "summary": "Starts the operation \u2014 on the pool, never on the frame thread. Re-entry is ignored, so it is safe to call every frame, and a run started after Dispose is ignored too: the component that owned it is gone." }] }, { "name": "CuiSharp.Hosting.WidgetTarget", "displayName": "WidgetTarget", "kind": "struct", "summary": "One control of a frame, as something to act on: hover it, click it, read where it is.", "members": [{ "name": "ClickAndFrame", "kind": "method", "id": "method|ClickAndFrame|0|0|HeadlessApp|||h43e085aa37f6bc8677e3c93bfcfbbe3239ac58d49311d15cc64e9a3dd3a90869", "signature": "HeadlessApp ClickAndFrame()", "summary": "Clicks the widget and returns the app, whose last frame reacted to it." }, { "name": "Rect", "kind": "property", "id": "property|Rect|0|0|RectF||get;|hf755173a5fe47fca342422117b9258f72be7002a01ae38cb809f072f70e4e9a6", "signature": "RectF Rect { get; }", "summary": "Where it was laid out in the frame it was found in." }, { "name": "Click", "kind": "method", "id": "method|Click|0|0|WidgetTarget|||hfad9f154f0bc2a0506748d7415467cb904dbe6fe379b297d23818d6cfe8d4c8d", "signature": "WidgetTarget Click()", "summary": "Clicks the widget: pointer over it, a press frame, a release frame. The widget reports the click on the release, so the frame after this one shows the result." }, { "name": "Hover", "kind": "method", "id": "method|Hover|0|0|WidgetTarget|||ha21b70758524839ef7605ba94fb74e78ebfe78f13e935f313437213f5181cf7c", "signature": "WidgetTarget Hover()", "summary": "Moves the pointer to the middle of the widget and draws a frame." }, { "name": "Kind", "kind": "property", "id": "property|Kind|0|0|string||get;|h388961e1f6a3037bd4a4c8333a144e60a99cdcd3bd10798d477a76bdae288a1d", "signature": "string Kind { get; }", "summary": "The wrapper that drew it: Button, Input, ListItem." }, { "name": "Text", "kind": "property", "id": "property|Text|0|0|string||get;|h221097532e4154611cbbc42c65b80d74f8055bd282efb709184598cd9d2c27bb", "signature": "string Text { get; }", "summary": "The id, or the label when the widget takes no id." }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()" }] }, { "name": "CuiSharp.HoverCardOpts", "displayName": "HoverCardOpts", "kind": "struct", "summary": "Hover card: rich content that appears when the pointer rests on the previous component, and stays while the pointer is over either. All fields are optional; zero selects the native default.", "members": [{ "name": "Placement", "kind": "field", "id": "field|Placement|0|0|Placement|||hf195de79a8d91746df0b8c16e35ba7d16ceae982142ab61e53708b3f3c7905f1", "signature": "public Placement Placement", "summary": "cui_placement placement" }, { "name": "Delay", "kind": "field", "id": "field|Delay|0|0|float|||h3a45177d911de60d3c1058d19f965797cda6f4da3e3656b82d0a5ea6832de388", "signature": "public float Delay", "summary": "seconds the pointer must rest on the component before the card shows, default 0.45" }, { "name": "Width", "kind": "field", "id": "field|Width|0|0|float|||h09484e060a56a245cb1b8dd34046053777e40c112712137a7d87044b8d646e30", "signature": "public float Width", "summary": "float width" }] }, - { "name": "CuiSharp.HttpMethod", "displayName": "HttpMethod", "kind": "enum", "summary": "The method, the URL and Send, as in an API client. Enter in the URL sends; while \u0060loading\u0060 the button cancels. cui_response_status shows a response\u0027s status, time and size in one line. cui_url_params and cui_url_set_params move a URL\u0027s query to and from key-value pairs, decoding and encoding it, so a parameters table can stay in step with the URL.", "members": [{ "name": "Delete", "kind": "enum value", "id": "enum value|Delete|1|0|||4|h9c468745566016a9c9cd155b92c193f000d5b19f89810867856e1f2f52312bd9", "signature": "Delete = 4", "value": "4" }, { "name": "Get", "kind": "enum value", "id": "enum value|Get|1|0|||0|h9153c85d369ed9b213b8a6e77e3578dd074be635790c6a90cb0629bdc57c85cc", "signature": "Get = 0", "value": "0" }, { "name": "Head", "kind": "enum value", "id": "enum value|Head|1|0|||5|h3d6dda8de06597da50de06458717cab0b7b2c733d52a788ca282b383cf0bfb65", "signature": "Head = 5", "value": "5" }, { "name": "Options", "kind": "enum value", "id": "enum value|Options|1|0|||6|hcec4abdffc7cd43823b24cd6e2e845efc356fd48586425123fd465da5f30bce5", "signature": "Options = 6", "value": "6" }, { "name": "Patch", "kind": "enum value", "id": "enum value|Patch|1|0|||3|h8b76e70de6458fbb533b60ab1f264a9389387456acfbf14b70f1fb58e8cd5329", "signature": "Patch = 3", "value": "3" }, { "name": "Post", "kind": "enum value", "id": "enum value|Post|1|0|||1|h23f6c8de17ade41606d842189999c39a12d8f067379eed85f69c848179f5c17e", "signature": "Post = 1", "value": "1" }, { "name": "Put", "kind": "enum value", "id": "enum value|Put|1|0|||2|h9f14b11672b7c798b0eae55b6dcaa0c9d267b4df15d58a6850da1e061969155f", "signature": "Put = 2", "value": "2" }] }, + { "name": "CuiSharp.HttpVerb", "displayName": "HttpVerb", "kind": "enum", "summary": "The method, the URL and Send, as in an API client. Enter in the URL sends; while \u0060loading\u0060 the button cancels. cui_response_status shows a response\u0027s status, time and size in one line. cui_url_params and cui_url_set_params move a URL\u0027s query to and from key-value pairs, decoding and encoding it, so a parameters table can stay in step with the URL.", "members": [{ "name": "Delete", "kind": "enum value", "id": "enum value|Delete|1|0|||4|h9c468745566016a9c9cd155b92c193f000d5b19f89810867856e1f2f52312bd9", "signature": "Delete = 4", "value": "4" }, { "name": "Get", "kind": "enum value", "id": "enum value|Get|1|0|||0|h9153c85d369ed9b213b8a6e77e3578dd074be635790c6a90cb0629bdc57c85cc", "signature": "Get = 0", "value": "0" }, { "name": "Head", "kind": "enum value", "id": "enum value|Head|1|0|||5|h3d6dda8de06597da50de06458717cab0b7b2c733d52a788ca282b383cf0bfb65", "signature": "Head = 5", "value": "5" }, { "name": "Options", "kind": "enum value", "id": "enum value|Options|1|0|||6|hcec4abdffc7cd43823b24cd6e2e845efc356fd48586425123fd465da5f30bce5", "signature": "Options = 6", "value": "6" }, { "name": "Patch", "kind": "enum value", "id": "enum value|Patch|1|0|||3|h8b76e70de6458fbb533b60ab1f264a9389387456acfbf14b70f1fb58e8cd5329", "signature": "Patch = 3", "value": "3" }, { "name": "Post", "kind": "enum value", "id": "enum value|Post|1|0|||1|h23f6c8de17ade41606d842189999c39a12d8f067379eed85f69c848179f5c17e", "signature": "Post = 1", "value": "1" }, { "name": "Put", "kind": "enum value", "id": "enum value|Put|1|0|||2|h9f14b11672b7c798b0eae55b6dcaa0c9d267b4df15d58a6850da1e061969155f", "signature": "Put = 2", "value": "2" }] }, { "name": "CuiSharp.IFileDialogProvider", "displayName": "IFileDialogProvider", "kind": "interface", "summary": "Picks a file, a folder or a save path with the OS\u0027s own dialog, and returns what happened instead of a bool and an empty string. Native dialogs are modal and blocking on every platform, so call this from a button\u0027s click in a frame, never from work that has to keep drawing. The default implementation asks the OS through CUI; a test replaces it, so a picker flow can be exercised without a display or a dialog.", "members": [{ "name": "Pick", "kind": "method", "id": "method|Pick|0|0|FilePickResult|CuiWindow window;FileDialogOpts options||h9f867669da4a21c3b53bce004250b8d1847a0abeb5d7077e199bd76432ff6d37", "signature": "FilePickResult Pick(CuiWindow window, FileDialogOpts options)", "parameters": [{ "name": "window", "type": "CuiWindow" }, { "name": "options", "type": "FileDialogOpts" }], "summary": "Shows the dialog and returns the choice, or a cancelled result." }] }, { "name": "CuiSharp.Icons", "displayName": "Icons", "kind": "static class", "summary": "The Lucide glyphs CUI embeds, one private-use code point each, from CUI_ICON_* in cui_icons.h.", "members": [{ "name": "Activity", "kind": "constant", "id": "constant|Activity|1|0|string||\uE038|ha7907bd574f24d18b99f09b5096af243b50926c11d33511c745a200d37f955d7", "signature": "public const string Activity = \u0022\\uE038\u0022", "value": "\uE038" }, { "name": "AlignLeft", "kind": "constant", "id": "constant|AlignLeft|1|0|string||\uE185|h7a766b995d5357b6dd17a9951770a525188f66bec946beafd84d2732291bad82", "signature": "public const string AlignLeft = \u0022\\uE185\u0022", "value": "\uE185" }, { "name": "Archive", "kind": "constant", "id": "constant|Archive|1|0|string||\uE041|h518a1151535331e639f0d82c601c44ae3f66bbb9ce76a1aee96aed571fb5c287", "signature": "public const string Archive = \u0022\\uE041\u0022", "value": "\uE041" }, { "name": "ArrowDown", "kind": "constant", "id": "constant|ArrowDown|1|0|string||\uE042|hdf25b690f19fcdf4afd9ea8d93b9941f88bc8c2b90812df81492297dc1646d7e", "signature": "public const string ArrowDown = \u0022\\uE042\u0022", "value": "\uE042" }, { "name": "ArrowLeft", "kind": "constant", "id": "constant|ArrowLeft|1|0|string||\uE048|hb37a7fe0eb6716833ca418595a5cfac42c92ea84eb6155efbcc4465923b7108e", "signature": "public const string ArrowLeft = \u0022\\uE048\u0022", "value": "\uE048" }, { "name": "ArrowRight", "kind": "constant", "id": "constant|ArrowRight|1|0|string||\uE049|h1b4c8c2181c0d4673e998f6ab6d70c11027deab161a082150ddb40e02657ba2f", "signature": "public const string ArrowRight = \u0022\\uE049\u0022", "value": "\uE049" }, { "name": "ArrowUp", "kind": "constant", "id": "constant|ArrowUp|1|0|string||\uE04A|h9502cc62990b0cbe5369eb31b79abdabd9300969b952fc898778840a9be2c6be", "signature": "public const string ArrowUp = \u0022\\uE04A\u0022", "value": "\uE04A" }, { "name": "ArrowUpRight", "kind": "constant", "id": "constant|ArrowUpRight|1|0|string||\uE04D|h8653e745e609220a4abd6dd2d8b7c08d6f53d6a064bb1f2018fc9e3c23dc57d1", "signature": "public const string ArrowUpRight = \u0022\\uE04D\u0022", "value": "\uE04D" }, { "name": "AtSign", "kind": "constant", "id": "constant|AtSign|1|0|string||\uE04E|h36c9b528954782753b0cc938d9a630f784644313c53df2d2ee682b9269927f5e", "signature": "public const string AtSign = \u0022\\uE04E\u0022", "value": "\uE04E" }, { "name": "AudioLines", "kind": "constant", "id": "constant|AudioLines|1|0|string||\uE55A|hb46a61df71dc9d51f484b961a5d2bc9cbad8b583dcdd052e430cb73fe802ebf9", "signature": "public const string AudioLines = \u0022\\uE55A\u0022", "value": "\uE55A" }, { "name": "Award", "kind": "constant", "id": "constant|Award|1|0|string||\uE04F|h449a94806de77ccde99cb78a356b4ea3ac218d79b3afc89d80fae5b8c64bf245", "signature": "public const string Award = \u0022\\uE04F\u0022", "value": "\uE04F" }, { "name": "BadgeCheck", "kind": "constant", "id": "constant|BadgeCheck|1|0|string||\uE241|h7f131959864092141db4e64f746861f17587195d31c80a53d8a6ce29ed08062a", "signature": "public const string BadgeCheck = \u0022\\uE241\u0022", "value": "\uE241" }, { "name": "Battery", "kind": "constant", "id": "constant|Battery|1|0|string||\uE053|h047664889136f4a035c5df236cf9126031e5c095468f32738f143b58558d7616", "signature": "public const string Battery = \u0022\\uE053\u0022", "value": "\uE053" }, { "name": "Bell", "kind": "constant", "id": "constant|Bell|1|0|string||\uE059|h902e535fac72838cb18d5aeb1f89276885cc2d0b693cddf889c4181aa70e56da", "signature": "public const string Bell = \u0022\\uE059\u0022", "value": "\uE059" }, { "name": "Bold", "kind": "constant", "id": "constant|Bold|1|0|string||\uE05D|h25c22eed51c6d6db6f9f4b35040cd54f36d025c2d5b75e0c07a064d2e8084393", "signature": "public const string Bold = \u0022\\uE05D\u0022", "value": "\uE05D" }, { "name": "Bookmark", "kind": "constant", "id": "constant|Bookmark|1|0|string||\uE060|h0ae9252448b2f4f2027fc8241380ddd5c3b6c1fc0cf8808098d37c4035d69815", "signature": "public const string Bookmark = \u0022\\uE060\u0022", "value": "\uE060" }, { "name": "Box", "kind": "constant", "id": "constant|Box|1|0|string||\uE061|hceb2cc8893a1b2f4845ca28945c0201e5476a3068df8b526cc591f9c4fc18d4b", "signature": "public const string Box = \u0022\\uE061\u0022", "value": "\uE061" }, { "name": "Briefcase", "kind": "constant", "id": "constant|Briefcase|1|0|string||\uE062|h512449c1ee15adcde0a5e67cd71fb6ca413e96bf95eec2f414c7a53028aed661", "signature": "public const string Briefcase = \u0022\\uE062\u0022", "value": "\uE062" }, { "name": "Bug", "kind": "constant", "id": "constant|Bug|1|0|string||\uE20C|h9a0d1b58918909d340bf2cfa75e738a7752caa21eddf001ef55d7bde25d7669b", "signature": "public const string Bug = \u0022\\uE20C\u0022", "value": "\uE20C" }, { "name": "Building2", "kind": "constant", "id": "constant|Building2|1|0|string||\uE290|h376335730454bd030bb3e6351942ef4db138e345044ad4f9165d97834852facb", "signature": "public const string Building2 = \u0022\\uE290\u0022", "value": "\uE290" }, { "name": "Calendar", "kind": "constant", "id": "constant|Calendar|1|0|string||\uE063|hd7ab81b6b8e0878d93abf29bc5a9b65e4c0e905c1dec0d4f652673865b615a2e", "signature": "public const string Calendar = \u0022\\uE063\u0022", "value": "\uE063" }, { "name": "Camera", "kind": "constant", "id": "constant|Camera|1|0|string||\uE064|h3c761ff1290732f74654320794257e3f6b7da64929c06b8f3ec4b2466dd48492", "signature": "public const string Camera = \u0022\\uE064\u0022", "value": "\uE064" }, { "name": "ChartBar", "kind": "constant", "id": "constant|ChartBar|1|0|string||\uE2A2|h3a59e88bacd73354d2a85051a21ff4092add6725c92777c0efd1074726954ada", "signature": "public const string ChartBar = \u0022\\uE2A2\u0022", "value": "\uE2A2" }, { "name": "ChartLine", "kind": "constant", "id": "constant|ChartLine|1|0|string||\uE2A5|h3f9d7728174b49d3311af1d8ab9a2dd63d97eae61831d93766e189f1027a45d0", "signature": "public const string ChartLine = \u0022\\uE2A5\u0022", "value": "\uE2A5" }, { "name": "ChartPie", "kind": "constant", "id": "constant|ChartPie|1|0|string||\uE06B|h1c9f3fd9df9d04ac67fb3dfa67ca69523d1d5e8e48a6f7939047360ad4db4695", "signature": "public const string ChartPie = \u0022\\uE06B\u0022", "value": "\uE06B" }, { "name": "Check", "kind": "constant", "id": "constant|Check|1|0|string||\uE06C|hd34976564ca444916524a18154e5c10483c0fb8bbdcb75684db3932d38740f69", "signature": "public const string Check = \u0022\\uE06C\u0022", "value": "\uE06C" }, { "name": "CheckCheck", "kind": "constant", "id": "constant|CheckCheck|1|0|string||\uE38E|h977e2aaca3102ad60b42e8778609bb6188e0f7bdbdad7b1355d90acef63b2c02", "signature": "public const string CheckCheck = \u0022\\uE38E\u0022", "value": "\uE38E" }, { "name": "ChevronDown", "kind": "constant", "id": "constant|ChevronDown|1|0|string||\uE06D|h3efc1c9ecc669ed6019d1d73a04ce2f3b0827eced6ff4a361bf701db6dfea75e", "signature": "public const string ChevronDown = \u0022\\uE06D\u0022", "value": "\uE06D" }, { "name": "ChevronLeft", "kind": "constant", "id": "constant|ChevronLeft|1|0|string||\uE06E|h7fbd5ceefe64982355e2fe3854082aa771fb20eb7e8a4bef493e83d914ad73ee", "signature": "public const string ChevronLeft = \u0022\\uE06E\u0022", "value": "\uE06E" }, { "name": "ChevronRight", "kind": "constant", "id": "constant|ChevronRight|1|0|string||\uE06F|hdfdf63073a4888e2dc2f1c55602922b1fe51fb89500bdeee5f336bac4624a4bb", "signature": "public const string ChevronRight = \u0022\\uE06F\u0022", "value": "\uE06F" }, { "name": "ChevronUp", "kind": "constant", "id": "constant|ChevronUp|1|0|string||\uE070|h117a7a1d45bc880a715d04e07214c1fc06c788a96b64f5e520ee868912aece1b", "signature": "public const string ChevronUp = \u0022\\uE070\u0022", "value": "\uE070" }, { "name": "ChevronsLeft", "kind": "constant", "id": "constant|ChevronsLeft|1|0|string||\uE072|h66dbe21b55fd4fd3e109f1e5f34de514e2a7b5bd77983a1d246790580247aaa1", "signature": "public const string ChevronsLeft = \u0022\\uE072\u0022", "value": "\uE072" }, { "name": "ChevronsRight", "kind": "constant", "id": "constant|ChevronsRight|1|0|string||\uE073|hd9a958422253a785ef99397b252b238cd6212c87d76ab207cf10c4d262ce20d9", "signature": "public const string ChevronsRight = \u0022\\uE073\u0022", "value": "\uE073" }, { "name": "ChevronsUpDown", "kind": "constant", "id": "constant|ChevronsUpDown|1|0|string||\uE211|h1023ad06b012cbffc8d220fa5e30f13173c96bf131fb1b95d1b6dc5030a6951a", "signature": "public const string ChevronsUpDown = \u0022\\uE211\u0022", "value": "\uE211" }, { "name": "Circle", "kind": "constant", "id": "constant|Circle|1|0|string||\uE076|h89f1393951197f3182148e0a2f3483504d7e490b1f3653caeb32838a5a3df68f", "signature": "public const string Circle = \u0022\\uE076\u0022", "value": "\uE076" }, { "name": "CircleAlert", "kind": "constant", "id": "constant|CircleAlert|1|0|string||\uE077|hfa99b1ebdb0fcfc1ae26e2d4d21d34c75ed47a42a03131a155d867f18ce49d77", "signature": "public const string CircleAlert = \u0022\\uE077\u0022", "value": "\uE077" }, { "name": "CircleCheck", "kind": "constant", "id": "constant|CircleCheck|1|0|string||\uE226|hffc4a2f6068228dcecc31297556c55bdd529261e4b98e0b082fa2377011ff76a", "signature": "public const string CircleCheck = \u0022\\uE226\u0022", "value": "\uE226" }, { "name": "CircleDot", "kind": "constant", "id": "constant|CircleDot|1|0|string||\uE345|h96a35a92ebd44e133758285e82048f761728bc3b7a3aa217574e6b5977de1c09", "signature": "public const string CircleDot = \u0022\\uE345\u0022", "value": "\uE345" }, { "name": "CircleHelp", "kind": "constant", "id": "constant|CircleHelp|1|0|string||\uE082|hb2a1acfd6a631106923b6cc9ee1213fa21c077072b83efb8438e390dcab72aec", "signature": "public const string CircleHelp = \u0022\\uE082\u0022", "value": "\uE082" }, { "name": "CircleUser", "kind": "constant", "id": "constant|CircleUser|1|0|string||\uE461|h3e8493acf66d87b1581ea2a3a750281fa415aa4bf1ad639822092193d37a788b", "signature": "public const string CircleUser = \u0022\\uE461\u0022", "value": "\uE461" }, { "name": "CircleX", "kind": "constant", "id": "constant|CircleX|1|0|string||\uE084|h6f2e7f2710104b7d83523878b08d2e2affd02f7ad449f357a6e7b09ca228153d", "signature": "public const string CircleX = \u0022\\uE084\u0022", "value": "\uE084" }, { "name": "Clipboard", "kind": "constant", "id": "constant|Clipboard|1|0|string||\uE085|hed3618bcf17beb34fafc9a1d495515100066ea771a7f1f2e837be1aab67cf7e0", "signature": "public const string Clipboard = \u0022\\uE085\u0022", "value": "\uE085" }, { "name": "Clock", "kind": "constant", "id": "constant|Clock|1|0|string||\uE087|h6b25441fc9791c0be1a517f72549e15349e5b19ea3530fc72c0b77bd34f618b0", "signature": "public const string Clock = \u0022\\uE087\u0022", "value": "\uE087" }, { "name": "Cloud", "kind": "constant", "id": "constant|Cloud|1|0|string||\uE088|hef618cbd9297ae56fb3205d988657b722e0b12fef7037d98f6f89f25928491de", "signature": "public const string Cloud = \u0022\\uE088\u0022", "value": "\uE088" }, { "name": "Code", "kind": "constant", "id": "constant|Code|1|0|string||\uE093|h4feb3cb84e87a9469a6736c31dd9eafd7858ec365a4912ff3cad2a88a63f8a88", "signature": "public const string Code = \u0022\\uE093\u0022", "value": "\uE093" }, { "name": "Command", "kind": "constant", "id": "constant|Command|1|0|string||\uE09A|hb0531a0a996bd3894d4da5f7f2b9382c0a0b608f20a676d12cf9608ae35a351a", "signature": "public const string Command = \u0022\\uE09A\u0022", "value": "\uE09A" }, { "name": "Compass", "kind": "constant", "id": "constant|Compass|1|0|string||\uE09B|h3a9899c1f1292c4fdb22bba5ff8003664591991e34d08a3b882f3ad00c8b1e37", "signature": "public const string Compass = \u0022\\uE09B\u0022", "value": "\uE09B" }, { "name": "Copy", "kind": "constant", "id": "constant|Copy|1|0|string||\uE09E|hc8a19aa077bd5016fad8ff440977b53e1212f8dca3c2e6c096b14098e147e48e", "signature": "public const string Copy = \u0022\\uE09E\u0022", "value": "\uE09E" }, { "name": "Cpu", "kind": "constant", "id": "constant|Cpu|1|0|string||\uE0A9|h0c085b5ddfedec085a5ad6f2b6d07107a3ed3d81649ccb3b6bfb5debc2332dd7", "signature": "public const string Cpu = \u0022\\uE0A9\u0022", "value": "\uE0A9" }, { "name": "CreditCard", "kind": "constant", "id": "constant|CreditCard|1|0|string||\uE0AA|h35d88b9e84e51f89378532f7238532f7a74674863653a39451b79b3cd75045f8", "signature": "public const string CreditCard = \u0022\\uE0AA\u0022", "value": "\uE0AA" }, { "name": "Database", "kind": "constant", "id": "constant|Database|1|0|string||\uE0AD|h99ab2949c26829b430a1cb00f7b78e8d9f83a49f54dafea5605f1d4d5d648841", "signature": "public const string Database = \u0022\\uE0AD\u0022", "value": "\uE0AD" }, { "name": "DollarSign", "kind": "constant", "id": "constant|DollarSign|1|0|string||\uE0B1|hcbeb1942fc285ef90b52ca0c2a3c876e6347f29ab71046c2766755b0b8bf60fa", "signature": "public const string DollarSign = \u0022\\uE0B1\u0022", "value": "\uE0B1" }, { "name": "Dot", "kind": "constant", "id": "constant|Dot|1|0|string||\uE44F|h2784a915c8e8b3486f396f59c423a9986b1ad06dadfebedf3d56b61cb8ca6c82", "signature": "public const string Dot = \u0022\\uE44F\u0022", "value": "\uE44F" }, { "name": "Download", "kind": "constant", "id": "constant|Download|1|0|string||\uE0B2|h9121af1b290dc46fafb0ef11f4796322c15a232e0c1e91606108b2443c76497c", "signature": "public const string Download = \u0022\\uE0B2\u0022", "value": "\uE0B2" }, { "name": "Ellipsis", "kind": "constant", "id": "constant|Ellipsis|1|0|string||\uE0B6|h886dc6938aeda1096b683c4250a8cb91f29b258d49c67ef57bd089aed3d03ecd", "signature": "public const string Ellipsis = \u0022\\uE0B6\u0022", "value": "\uE0B6" }, { "name": "EllipsisVertical", "kind": "constant", "id": "constant|EllipsisVertical|1|0|string||\uE0B7|h73ad56a661b6fbde6027f4a7c869f765217ca2b8d24d82e4cceb75d86e764626", "signature": "public const string EllipsisVertical = \u0022\\uE0B7\u0022", "value": "\uE0B7" }, { "name": "ExternalLink", "kind": "constant", "id": "constant|ExternalLink|1|0|string||\uE0B9|h90ac89e75b91b140742adba158ac3b7cc5e66c62dd0a38e10a8fb1c378a70c2f", "signature": "public const string ExternalLink = \u0022\\uE0B9\u0022", "value": "\uE0B9" }, { "name": "Eye", "kind": "constant", "id": "constant|Eye|1|0|string||\uE0BA|hb2bb7c84b6bcd760cfde54762c69030ff9c27dcd7e0b639979d3e5b7bbd5a8ab", "signature": "public const string Eye = \u0022\\uE0BA\u0022", "value": "\uE0BA" }, { "name": "EyeOff", "kind": "constant", "id": "constant|EyeOff|1|0|string||\uE0BB|hec324931538c8f0fccdcef7ad7c4ba6fabcbb9f1e0a3c0455ba612fa8ee71292", "signature": "public const string EyeOff = \u0022\\uE0BB\u0022", "value": "\uE0BB" }, { "name": "File", "kind": "constant", "id": "constant|File|1|0|string||\uE0C0|h295e6a5c9248bd9aa0f335783c17666fb43e0da33954b0315787dbb6d0b4ced3", "signature": "public const string File = \u0022\\uE0C0\u0022", "value": "\uE0C0" }, { "name": "FileText", "kind": "constant", "id": "constant|FileText|1|0|string||\uE0CC|hff139c25d93436aa19a4eb50667b89aa66bd38ebec7d5a37a80ee6f3fc4e93e8", "signature": "public const string FileText = \u0022\\uE0CC\u0022", "value": "\uE0CC" }, { "name": "Filter", "kind": "constant", "id": "constant|Filter|1|0|string||\uE0DC|h62c1d1505d6e6d1ddc50faefc1a0029e9b39fbf429674ff3ef96e27c8418841e", "signature": "public const string Filter = \u0022\\uE0DC\u0022", "value": "\uE0DC" }, { "name": "Fingerprint", "kind": "constant", "id": "constant|Fingerprint|1|0|string||\uE2CB|h396476dd193211dfd5877370efa741fac346d97ba01b130ecb7e8e13146cfabb", "signature": "public const string Fingerprint = \u0022\\uE2CB\u0022", "value": "\uE2CB" }, { "name": "Flag", "kind": "constant", "id": "constant|Flag|1|0|string||\uE0D1|hbf886900951f7ffcccf18e63708784e5885c52c4e2c19e8fc6c9699a0a1eaf80", "signature": "public const string Flag = \u0022\\uE0D1\u0022", "value": "\uE0D1" }, { "name": "Folder", "kind": "constant", "id": "constant|Folder|1|0|string||\uE0D7|h725eff19426fbc484411c58b802e3d9977572d9dd45b06b71f97ff3559db228a", "signature": "public const string Folder = \u0022\\uE0D7\u0022", "value": "\uE0D7" }, { "name": "FolderOpen", "kind": "constant", "id": "constant|FolderOpen|1|0|string||\uE247|h0349a10c485e4f8e148f8b5cfab26020c71b40366f791eec25e5f82eba96ecdd", "signature": "public const string FolderOpen = \u0022\\uE247\u0022", "value": "\uE247" }, { "name": "Gift", "kind": "constant", "id": "constant|Gift|1|0|string||\uE0E1|ha2bd4ab8e9f99eab557c272c3e263a85b94fabcea070abfa4a8fbd5415e5d5fa", "signature": "public const string Gift = \u0022\\uE0E1\u0022", "value": "\uE0E1" }, { "name": "GitBranch", "kind": "constant", "id": "constant|GitBranch|1|0|string||\uE0E2|h6b781073ac68ad76c0494b8e3fca2a4f23eeb8c86d2607af41f0e3aadf3215a6", "signature": "public const string GitBranch = \u0022\\uE0E2\u0022", "value": "\uE0E2" }, { "name": "Globe", "kind": "constant", "id": "constant|Globe|1|0|string||\uE0E8|h8017e3336c9c8c97305d75b09b6d4fcdf9966e8f7386fcea4c895339694657b7", "signature": "public const string Globe = \u0022\\uE0E8\u0022", "value": "\uE0E8" }, { "name": "Grid3x3", "kind": "constant", "id": "constant|Grid3x3|1|0|string||\uE0E9|ha6f9668404525dc7fe99123e032a1a877ac64ab46dbd6b342523b1e34fc15d11", "signature": "public const string Grid3x3 = \u0022\\uE0E9\u0022", "value": "\uE0E9" }, { "name": "GripVertical", "kind": "constant", "id": "constant|GripVertical|1|0|string||\uE0EB|h02ad2a02250b9fd7bd57e4350af85fa06327f7018b8ef2a8d23ffd6b6253150f", "signature": "public const string GripVertical = \u0022\\uE0EB\u0022", "value": "\uE0EB" }, { "name": "Hash", "kind": "constant", "id": "constant|Hash|1|0|string||\uE0EF|he77ef05afef7c633ca9971266b2b0c172f76a64a78d61b4bad5f91527da32cb4", "signature": "public const string Hash = \u0022\\uE0EF\u0022", "value": "\uE0EF" }, { "name": "Heart", "kind": "constant", "id": "constant|Heart|1|0|string||\uE0F2|hf5a0879af47d2445973eb1fccc3871d0ac2964bd33fe10be342aa9b81e35ad05", "signature": "public const string Heart = \u0022\\uE0F2\u0022", "value": "\uE0F2" }, { "name": "History", "kind": "constant", "id": "constant|History|1|0|string||\uE1F5|hf23e7358625a1bf7978ed39d6d4da332014ca52e2cad609a451dcc43fbd84c66", "signature": "public const string History = \u0022\\uE1F5\u0022", "value": "\uE1F5" }, { "name": "House", "kind": "constant", "id": "constant|House|1|0|string||\uE0F5|hd5913d28e1bf06bbee348873bd9545adfe3d111c39e16a324e003d9cfa003be7", "signature": "public const string House = \u0022\\uE0F5\u0022", "value": "\uE0F5" }, { "name": "Image", "kind": "constant", "id": "constant|Image|1|0|string||\uE0F6|h2c369caf90e7e99b1d501b08a0d3e5897aecab4aa19a642af19d75af945aded7", "signature": "public const string Image = \u0022\\uE0F6\u0022", "value": "\uE0F6" }, { "name": "Inbox", "kind": "constant", "id": "constant|Inbox|1|0|string||\uE0F7|h61a4b0b0ed73d73cc4e84eac5270810bd38dba482d9c85f95b0a57d23097e0f8", "signature": "public const string Inbox = \u0022\\uE0F7\u0022", "value": "\uE0F7" }, { "name": "Info", "kind": "constant", "id": "constant|Info|1|0|string||\uE0F9|hcc47f2b3d80eb7a0099f5e17404d347757f3edd534b459ff618884371aad3f35", "signature": "public const string Info = \u0022\\uE0F9\u0022", "value": "\uE0F9" }, { "name": "Italic", "kind": "constant", "id": "constant|Italic|1|0|string||\uE0FB|h9e23cc60f23be4d487a863796d76cbe997909154a8e2b05ab2c9fdf8a150739b", "signature": "public const string Italic = \u0022\\uE0FB\u0022", "value": "\uE0FB" }, { "name": "KeyRound", "kind": "constant", "id": "constant|KeyRound|1|0|string||\uE4A3|ha2c187ec0b24c15950668e6e6080d92061186c6aab5aff73f4e26efc68136906", "signature": "public const string KeyRound = \u0022\\uE4A3\u0022", "value": "\uE4A3" }, { "name": "Keyboard", "kind": "constant", "id": "constant|Keyboard|1|0|string||\uE284|hdbe558dcd39818469d630854af3a116df2e8d87c17db824a926c2655332bece1", "signature": "public const string Keyboard = \u0022\\uE284\u0022", "value": "\uE284" }, { "name": "Layers", "kind": "constant", "id": "constant|Layers|1|0|string||\uE529|h882580aa55ce7fd8b90b8155517cdd2a593a293c743540155fa410822a24ab91", "signature": "public const string Layers = \u0022\\uE529\u0022", "value": "\uE529" }, { "name": "LayoutDashboard", "kind": "constant", "id": "constant|LayoutDashboard|1|0|string||\uE1C1|hdcd670f46cddd4e1af6331dcd853a801465579697f6363248ecad2a503400099", "signature": "public const string LayoutDashboard = \u0022\\uE1C1\u0022", "value": "\uE1C1" }, { "name": "Link", "kind": "constant", "id": "constant|Link|1|0|string||\uE102|h4c8a9d8944cfce5d4e29cb97808db6dba18ad8ebe1f5a48124119484d97ccd4f", "signature": "public const string Link = \u0022\\uE102\u0022", "value": "\uE102" }, { "name": "List", "kind": "constant", "id": "constant|List|1|0|string||\uE106|ha8d9b9c693a187732b2054a430ee5fe7164e2723eee57e6126008114f3193e6a", "signature": "public const string List = \u0022\\uE106\u0022", "value": "\uE106" }, { "name": "ListChecks", "kind": "constant", "id": "constant|ListChecks|1|0|string||\uE1D0|h222f2c09c86375bf219c39fde41af7162c029aef3b35fcaca0371c372b5d7eb6", "signature": "public const string ListChecks = \u0022\\uE1D0\u0022", "value": "\uE1D0" }, { "name": "LoaderCircle", "kind": "constant", "id": "constant|LoaderCircle|1|0|string||\uE10A|hfb769ba1d8de3a60d1a098816ff66f554efce27d4a86f23bc4e0b85a4aed9d67", "signature": "public const string LoaderCircle = \u0022\\uE10A\u0022", "value": "\uE10A" }, { "name": "Lock", "kind": "constant", "id": "constant|Lock|1|0|string||\uE10B|ha3caadc85e303a98036fe39a607f2648ba707148ed359155b11f556bed24b76c", "signature": "public const string Lock = \u0022\\uE10B\u0022", "value": "\uE10B" }, { "name": "LogIn", "kind": "constant", "id": "constant|LogIn|1|0|string||\uE10D|h2f4cff668340423c95e320d8109463e1b90763e18f1a4de8e6cffff83b042e73", "signature": "public const string LogIn = \u0022\\uE10D\u0022", "value": "\uE10D" }, { "name": "LogOut", "kind": "constant", "id": "constant|LogOut|1|0|string||\uE10E|h27c6bfee3565d975408ea45e163cfda17457f23a0883298e6b9d8e3cd51d069a", "signature": "public const string LogOut = \u0022\\uE10E\u0022", "value": "\uE10E" }, { "name": "Mail", "kind": "constant", "id": "constant|Mail|1|0|string||\uE10F|h74dd2c9bc04f1ca4541687c37a8c688298f8b0eb39d156de19aac76e057a6ed8", "signature": "public const string Mail = \u0022\\uE10F\u0022", "value": "\uE10F" }, { "name": "MapPin", "kind": "constant", "id": "constant|MapPin|1|0|string||\uE111|h46c60276dc7b29a9e0f43f11b814b366f6dfe7da8f8b1c1d6502fad031c77f39", "signature": "public const string MapPin = \u0022\\uE111\u0022", "value": "\uE111" }, { "name": "Maximize2", "kind": "constant", "id": "constant|Maximize2|1|0|string||\uE113|hfc0dd1c4da9b10d67a14126d6e5046d533d8646618e4c577d191f5c8315e2745", "signature": "public const string Maximize2 = \u0022\\uE113\u0022", "value": "\uE113" }, { "name": "Menu", "kind": "constant", "id": "constant|Menu|1|0|string||\uE115|h0deb4670f85d5dff72ae3bf690c41ac166e176fe413fc84d4664a87774da4dd5", "signature": "public const string Menu = \u0022\\uE115\u0022", "value": "\uE115" }, { "name": "MessageSquare", "kind": "constant", "id": "constant|MessageSquare|1|0|string||\uE117|h198c9405b406934436d0f5925acd794aeba4da4ae2f4b6f60a20c1ca6ef0d575", "signature": "public const string MessageSquare = \u0022\\uE117\u0022", "value": "\uE117" }, { "name": "Mic", "kind": "constant", "id": "constant|Mic|1|0|string||\uE118|he7b1ee946c64130a3215496e500d7647821e0f4104ce9fd9930963a69fcfb00e", "signature": "public const string Mic = \u0022\\uE118\u0022", "value": "\uE118" }, { "name": "Minimize2", "kind": "constant", "id": "constant|Minimize2|1|0|string||\uE11B|h623d79f8d006140a7f620074cd1f5d0f293d8e054db75bf3de4aa29ec72efc13", "signature": "public const string Minimize2 = \u0022\\uE11B\u0022", "value": "\uE11B" }, { "name": "Minus", "kind": "constant", "id": "constant|Minus|1|0|string||\uE11C|h8495237334def6ea617a9ddb469f297778b74b5ae102ee8ac0cd7405306d1fca", "signature": "public const string Minus = \u0022\\uE11C\u0022", "value": "\uE11C" }, { "name": "Monitor", "kind": "constant", "id": "constant|Monitor|1|0|string||\uE11D|h42da833913b88c7303ffff038609e92475244a673d4a03bf05328d5a965e715c", "signature": "public const string Monitor = \u0022\\uE11D\u0022", "value": "\uE11D" }, { "name": "Moon", "kind": "constant", "id": "constant|Moon|1|0|string||\uE11E|h8cb4045ee25477989342d9c10a4469f3eebbcc975bd4c1f88c0cdd5468e7113a", "signature": "public const string Moon = \u0022\\uE11E\u0022", "value": "\uE11E" }, { "name": "Move", "kind": "constant", "id": "constant|Move|1|0|string||\uE121|h351703b216dd622cb07832f3fd77debb3d7251abe255dad19f3dc8efec39f310", "signature": "public const string Move = \u0022\\uE121\u0022", "value": "\uE121" }, { "name": "Music", "kind": "constant", "id": "constant|Music|1|0|string||\uE122|h9e71ccd246eb53d9fb53b54a24cd5107bc9a301fb265fbf1b03d99fea425844f", "signature": "public const string Music = \u0022\\uE122\u0022", "value": "\uE122" }, { "name": "NotebookPen", "kind": "constant", "id": "constant|NotebookPen|1|0|string||\uE596|he7522254bf31d9efcd80f605faec537d3a81ea300910a97c05285e7109b717a3", "signature": "public const string NotebookPen = \u0022\\uE596\u0022", "value": "\uE596" }, { "name": "Package", "kind": "constant", "id": "constant|Package|1|0|string||\uE129|h28bf4bb7863c763f8ee4376431a0d6a65d781a7213426f15412d7b4c37453cc8", "signature": "public const string Package = \u0022\\uE129\u0022", "value": "\uE129" }, { "name": "Palette", "kind": "constant", "id": "constant|Palette|1|0|string||\uE1DD|hbb7bf1795cdebae03bacd2de7f4053bca035a34fcd905f85ecb55ede23f53511", "signature": "public const string Palette = \u0022\\uE1DD\u0022", "value": "\uE1DD" }, { "name": "PanelLeft", "kind": "constant", "id": "constant|PanelLeft|1|0|string||\uE12A|h3ec34a3b9e94863403e833ccadd51bdd2362ac3abfb1d8a66a3e55d69fbfb22b", "signature": "public const string PanelLeft = \u0022\\uE12A\u0022", "value": "\uE12A" }, { "name": "Paperclip", "kind": "constant", "id": "constant|Paperclip|1|0|string||\uE12D|hd1ea1ae433435958c3b9006a0f97fac6cc6babec85d3fad058a69bb8e6b3fc65", "signature": "public const string Paperclip = \u0022\\uE12D\u0022", "value": "\uE12D" }, { "name": "Pause", "kind": "constant", "id": "constant|Pause|1|0|string||\uE12E|h90dd32d9714518651305668ed17b05a57078f6ca2b513ebf6c8421cef7d1093d", "signature": "public const string Pause = \u0022\\uE12E\u0022", "value": "\uE12E" }, { "name": "Pencil", "kind": "constant", "id": "constant|Pencil|1|0|string||\uE1F9|h9e9c229158dbb3dc7e516bf362b9236c84022376db6b9ebd7125263e7bf187b5", "signature": "public const string Pencil = \u0022\\uE1F9\u0022", "value": "\uE1F9" }, { "name": "Percent", "kind": "constant", "id": "constant|Percent|1|0|string||\uE132|h508f809e8498c8b800612dd80253420b0ba1a4c7d4bbebfd27bf93472a910430", "signature": "public const string Percent = \u0022\\uE132\u0022", "value": "\uE132" }, { "name": "Phone", "kind": "constant", "id": "constant|Phone|1|0|string||\uE133|h331bff306f836e37141d783542e6840134bc2a8aa81be70402c100efe5e0e082", "signature": "public const string Phone = \u0022\\uE133\u0022", "value": "\uE133" }, { "name": "Play", "kind": "constant", "id": "constant|Play|1|0|string||\uE13C|h335e1fb9266c845f81cff8ef361614523089706b1f1e692196d59af9b9aadf57", "signature": "public const string Play = \u0022\\uE13C\u0022", "value": "\uE13C" }, { "name": "Plus", "kind": "constant", "id": "constant|Plus|1|0|string||\uE13D|h06bddead0a8e95082f386380dcf459ea8576b829a673b9130816ec2400b03c16", "signature": "public const string Plus = \u0022\\uE13D\u0022", "value": "\uE13D" }, { "name": "PlusCircle", "kind": "constant", "id": "constant|PlusCircle|1|0|string||\uE081|hda1d13bc58d5dee1c858b68744ab32397fd17c70e91f8effbf8c7c88d0a0e40c", "signature": "public const string PlusCircle = \u0022\\uE081\u0022", "value": "\uE081" }, { "name": "Printer", "kind": "constant", "id": "constant|Printer|1|0|string||\uE141|h515fcfc132460e684c852a21373b35511d27412f8cbff0cc806b3c64467e278e", "signature": "public const string Printer = \u0022\\uE141\u0022", "value": "\uE141" }, { "name": "Radio", "kind": "constant", "id": "constant|Radio|1|0|string||\uE142|h72aad404107aae757ac163aef6141591d2f2ce09a30a5223675eba239d29b4e3", "signature": "public const string Radio = \u0022\\uE142\u0022", "value": "\uE142" }, { "name": "Redo2", "kind": "constant", "id": "constant|Redo2|1|0|string||\uE2A0|h964646a6cf8e8b25b333268dadc4fb1edea064e60798f05728aa0da06ad85f10", "signature": "public const string Redo2 = \u0022\\uE2A0\u0022", "value": "\uE2A0" }, { "name": "RefreshCw", "kind": "constant", "id": "constant|RefreshCw|1|0|string||\uE145|h2532037d5aa2277df1b0520de1abe286da30b471ed8f724ecf1f3e46f3814788", "signature": "public const string RefreshCw = \u0022\\uE145\u0022", "value": "\uE145" }, { "name": "Repeat", "kind": "constant", "id": "constant|Repeat|1|0|string||\uE146|h26a64781c40ed42b2e13691c512e7c0a5ff4da07e5552a6f4e21fd346bddcebb", "signature": "public const string Repeat = \u0022\\uE146\u0022", "value": "\uE146" }, { "name": "Rocket", "kind": "constant", "id": "constant|Rocket|1|0|string||\uE286|ha78f55071189a3cf030284741a51bc7bb9ed27c4ad44422acab44095639a1ffc", "signature": "public const string Rocket = \u0022\\uE286\u0022", "value": "\uE286" }, { "name": "RotateCcw", "kind": "constant", "id": "constant|RotateCcw|1|0|string||\uE148|hcbcbc4a65d18d9b359f6253e74f7d5c4aca425c96b366f6d3fdaea9b2a0d8f3e", "signature": "public const string RotateCcw = \u0022\\uE148\u0022", "value": "\uE148" }, { "name": "Save", "kind": "constant", "id": "constant|Save|1|0|string||\uE14D|h24b9c87c2cef9cd3583b5b394f0a6e462516e29d4e5c758b8726af36608cd868", "signature": "public const string Save = \u0022\\uE14D\u0022", "value": "\uE14D" }, { "name": "Scissors", "kind": "constant", "id": "constant|Scissors|1|0|string||\uE14E|h9325b7687ec0c6c3bf4c7fac8c9c1c44efba6765cf5f30a6d55d1cc9bee8b6f0", "signature": "public const string Scissors = \u0022\\uE14E\u0022", "value": "\uE14E" }, { "name": "Search", "kind": "constant", "id": "constant|Search|1|0|string||\uE151|h18fab552379e40d60171c508fdf3ff9478dca979e23554b1620c0e4164555378", "signature": "public const string Search = \u0022\\uE151\u0022", "value": "\uE151" }, { "name": "Send", "kind": "constant", "id": "constant|Send|1|0|string||\uE152|h0b77d0be923a4c9bf6da00589cbf4323752c011b143b428fa19a7cc6959fcfba", "signature": "public const string Send = \u0022\\uE152\u0022", "value": "\uE152" }, { "name": "Server", "kind": "constant", "id": "constant|Server|1|0|string||\uE153|h3641c466ba976050d4c546ab79b437729624609f7aaddee86684cc06f3a23357", "signature": "public const string Server = \u0022\\uE153\u0022", "value": "\uE153" }, { "name": "Settings", "kind": "constant", "id": "constant|Settings|1|0|string||\uE154|ha1dfa80a41cfa93e688c7e8a1b06bd8ade0209ed50011e7a9bddf93c36862937", "signature": "public const string Settings = \u0022\\uE154\u0022", "value": "\uE154" }, { "name": "Share2", "kind": "constant", "id": "constant|Share2|1|0|string||\uE156|h444e447a9f9b61f2267618b7b38ba8b760f373636e2c4804b99bca18b9821a22", "signature": "public const string Share2 = \u0022\\uE156\u0022", "value": "\uE156" }, { "name": "Shield", "kind": "constant", "id": "constant|Shield|1|0|string||\uE158|h1d743c0cabff80fbdeeb4a22129b29e7d7a8fcd7164012956dfc104a5a9e244a", "signature": "public const string Shield = \u0022\\uE158\u0022", "value": "\uE158" }, { "name": "ShoppingCart", "kind": "constant", "id": "constant|ShoppingCart|1|0|string||\uE15C|hc17e8930d7d0b6501e5ebf9b349d73a2717053b7af9a473f13ae27bdc8d308c6", "signature": "public const string ShoppingCart = \u0022\\uE15C\u0022", "value": "\uE15C" }, { "name": "Shuffle", "kind": "constant", "id": "constant|Shuffle|1|0|string||\uE15E|h6bd7fd2707901794d66ce8895fd762abfe6bf945847dd32f34f738975cda559b", "signature": "public const string Shuffle = \u0022\\uE15E\u0022", "value": "\uE15E" }, { "name": "SkipBack", "kind": "constant", "id": "constant|SkipBack|1|0|string||\uE15F|hc2b533f0ef6ddd4dca3e4964825a902ecd00b5e221f9f8fcd45f0eeffd7b9c76", "signature": "public const string SkipBack = \u0022\\uE15F\u0022", "value": "\uE15F" }, { "name": "SkipForward", "kind": "constant", "id": "constant|SkipForward|1|0|string||\uE160|h19611d66a2ba3d61b5d3ff5cc3d7104097d0bb8c8beb36f9a814bf6dfab92aab", "signature": "public const string SkipForward = \u0022\\uE160\u0022", "value": "\uE160" }, { "name": "SlidersHorizontal", "kind": "constant", "id": "constant|SlidersHorizontal|1|0|string||\uE29A|h4500d15f4784c2ea6ae38aae5e5a86bfa3cb8e6cbf4009c69dc0400f4aeaae19", "signature": "public const string SlidersHorizontal = \u0022\\uE29A\u0022", "value": "\uE29A" }, { "name": "Smile", "kind": "constant", "id": "constant|Smile|1|0|string||\uE164|hae9d58f7e77003c94cd7af2d855849fd77337a48046d5918e03b3091c1efd4a7", "signature": "public const string Smile = \u0022\\uE164\u0022", "value": "\uE164" }, { "name": "Sparkles", "kind": "constant", "id": "constant|Sparkles|1|0|string||\uE412|hbf4313c2486fc9fa972d91279059edbbcea4a786ac5618875ae7fc2b84f98c2f", "signature": "public const string Sparkles = \u0022\\uE412\u0022", "value": "\uE412" }, { "name": "Square", "kind": "constant", "id": "constant|Square|1|0|string||\uE167|h4885b7f76cb0306f27ec79c3333f518dc1c9eba2bbb1436ec6917a2822f4f62a", "signature": "public const string Square = \u0022\\uE167\u0022", "value": "\uE167" }, { "name": "SquareCheck", "kind": "constant", "id": "constant|SquareCheck|1|0|string||\uE559|hef9cba6b7afd93e11e5e4d7c62ab7472b34dcfa36a2464e52ab121ef039ce896", "signature": "public const string SquareCheck = \u0022\\uE559\u0022", "value": "\uE559" }, { "name": "SquarePen", "kind": "constant", "id": "constant|SquarePen|1|0|string||\uE172|h30ca6f7be695c045b912174c930a2f581d792e680d31a13dbe556feabd86ca55", "signature": "public const string SquarePen = \u0022\\uE172\u0022", "value": "\uE172" }, { "name": "SquareTerminal", "kind": "constant", "id": "constant|SquareTerminal|1|0|string||\uE20A|h2a0267518240d2994d438edcd0ded11459f4af734f4c458aed5df302d428a470", "signature": "public const string SquareTerminal = \u0022\\uE20A\u0022", "value": "\uE20A" }, { "name": "Star", "kind": "constant", "id": "constant|Star|1|0|string||\uE176|hd978f7d25c97fd63c69c95119f71e5eae46a259ab0e2c659e77d284e5b78256e", "signature": "public const string Star = \u0022\\uE176\u0022", "value": "\uE176" }, { "name": "Sun", "kind": "constant", "id": "constant|Sun|1|0|string||\uE178|ha4ee382078ab14819babee115dbf060cfb732e84ff8e60fe9601d86c20f76c5f", "signature": "public const string Sun = \u0022\\uE178\u0022", "value": "\uE178" }, { "name": "Tag", "kind": "constant", "id": "constant|Tag|1|0|string||\uE17F|hca49e98804f2e7790148cf445b3feb3635e3433f054af46a6f3e1bdf052e107c", "signature": "public const string Tag = \u0022\\uE17F\u0022", "value": "\uE17F" }, { "name": "Target", "kind": "constant", "id": "constant|Target|1|0|string||\uE180|h3bba0fd4c0cef129f74266e3ae2f6b1b2807f49ac124dceb94ef177e6155f3d0", "signature": "public const string Target = \u0022\\uE180\u0022", "value": "\uE180" }, { "name": "Terminal", "kind": "constant", "id": "constant|Terminal|1|0|string||\uE181|hd8bbe7cd5f3714dd81b6d0e492c23c42a5bd7bfc8520b7f39d1f4000e1ad4354", "signature": "public const string Terminal = \u0022\\uE181\u0022", "value": "\uE181" }, { "name": "ThumbsDown", "kind": "constant", "id": "constant|ThumbsDown|1|0|string||\uE189|h9b5c6339ea1b0c206cd0281afcc8861b708db5aabc1b79d4aa0ff6620f5a48bc", "signature": "public const string ThumbsDown = \u0022\\uE189\u0022", "value": "\uE189" }, { "name": "ThumbsUp", "kind": "constant", "id": "constant|ThumbsUp|1|0|string||\uE18A|hce30df47f4b77cc3720c8fc07a6fe6b45ef74c84931addc58593a86014135caa", "signature": "public const string ThumbsUp = \u0022\\uE18A\u0022", "value": "\uE18A" }, { "name": "Trash2", "kind": "constant", "id": "constant|Trash2|1|0|string||\uE18E|h444799a5b8986b5b4c62700e2d91867db93020047981d83c6b9078ca828e7267", "signature": "public const string Trash2 = \u0022\\uE18E\u0022", "value": "\uE18E" }, { "name": "TrendingDown", "kind": "constant", "id": "constant|TrendingDown|1|0|string||\uE190|h6d11a36355b886e94a446a0f958fb55802c1ba9d21c06879dea99fb083b2a515", "signature": "public const string TrendingDown = \u0022\\uE190\u0022", "value": "\uE190" }, { "name": "TrendingUp", "kind": "constant", "id": "constant|TrendingUp|1|0|string||\uE191|hcde1fe51a8b18e17ed3b494c5e5a33c225936713c95b9252cc2f092ffdc89abf", "signature": "public const string TrendingUp = \u0022\\uE191\u0022", "value": "\uE191" }, { "name": "TriangleAlert", "kind": "constant", "id": "constant|TriangleAlert|1|0|string||\uE193|h963f5a130f0663fc09c97f452c07fb9fd61cb610b3d03ce63c6915a2b55af832", "signature": "public const string TriangleAlert = \u0022\\uE193\u0022", "value": "\uE193" }, { "name": "Type", "kind": "constant", "id": "constant|Type|1|0|string||\uE198|h1328c380cb91a71d7120708846dbfacd6b48b39530e94463e5851cc0873f6660", "signature": "public const string Type = \u0022\\uE198\u0022", "value": "\uE198" }, { "name": "Underline", "kind": "constant", "id": "constant|Underline|1|0|string||\uE19A|h645bace764c9e3e97933964e50d83418694fc013ded435ce785b5e615eacc063", "signature": "public const string Underline = \u0022\\uE19A\u0022", "value": "\uE19A" }, { "name": "Undo2", "kind": "constant", "id": "constant|Undo2|1|0|string||\uE2A1|h18369df45d1ccf896965e003a9522d40e1f7b6117ddf2b43f17d00960a39da02", "signature": "public const string Undo2 = \u0022\\uE2A1\u0022", "value": "\uE2A1" }, { "name": "Unlock", "kind": "constant", "id": "constant|Unlock|1|0|string||\uE10C|h15d45e734b4489f9fca4efb526cf4489b18b32c185313104fa45a65e9ee9a7a7", "signature": "public const string Unlock = \u0022\\uE10C\u0022", "value": "\uE10C" }, { "name": "Upload", "kind": "constant", "id": "constant|Upload|1|0|string||\uE19E|h01554d33f9ca872b5f8f3b204c56a26978d9c1b699eed2cd0efd08f8da8829cf", "signature": "public const string Upload = \u0022\\uE19E\u0022", "value": "\uE19E" }, { "name": "User", "kind": "constant", "id": "constant|User|1|0|string||\uE19F|h874af7f139ecc20518b3d82b1b358702caf46198cefcb78f05da9885cac701e4", "signature": "public const string User = \u0022\\uE19F\u0022", "value": "\uE19F" }, { "name": "UserPlus", "kind": "constant", "id": "constant|UserPlus|1|0|string||\uE1A2|ha433ba3eb8acfeeea9059ac9ee5011cc18b29f8d15753b4f3110300c130a6af7", "signature": "public const string UserPlus = \u0022\\uE1A2\u0022", "value": "\uE1A2" }, { "name": "Users", "kind": "constant", "id": "constant|Users|1|0|string||\uE1A4|h9ef8f13f972574e2144a7d7c4376d8fb740e719f780f2a201d4ac0d0a1b650d4", "signature": "public const string Users = \u0022\\uE1A4\u0022", "value": "\uE1A4" }, { "name": "Video", "kind": "constant", "id": "constant|Video|1|0|string||\uE1A5|h4ce3282b7aec6764a6c5cd5e66ded016bb6873a620b756c5e95b067715bf808c", "signature": "public const string Video = \u0022\\uE1A5\u0022", "value": "\uE1A5" }, { "name": "Volume2", "kind": "constant", "id": "constant|Volume2|1|0|string||\uE1AB|hfce6909e57b8242ee62e4ee6ff81ee4f6bdf024472dbb5ff69a268f5ac68d0e7", "signature": "public const string Volume2 = \u0022\\uE1AB\u0022", "value": "\uE1AB" }, { "name": "VolumeX", "kind": "constant", "id": "constant|VolumeX|1|0|string||\uE1AC|he6d8e29b018ed70f81cf793af43047bb0c79f5c2e9db95afd198dfe88868c03a", "signature": "public const string VolumeX = \u0022\\uE1AC\u0022", "value": "\uE1AC" }, { "name": "Wallet", "kind": "constant", "id": "constant|Wallet|1|0|string||\uE204|h3bd56acf73384a92b12fb1f7e381b1af46d1d98411dd52614dfd9afee68f9c27", "signature": "public const string Wallet = \u0022\\uE204\u0022", "value": "\uE204" }, { "name": "Wifi", "kind": "constant", "id": "constant|Wifi|1|0|string||\uE1AE|h800108e86f353c47649620bc8e77c4362695c9319bdfc3c7496d71a66478f76a", "signature": "public const string Wifi = \u0022\\uE1AE\u0022", "value": "\uE1AE" }, { "name": "X", "kind": "constant", "id": "constant|X|1|0|string||\uE1B2|hf735ddc7b53c38d2a3635e61f2f0afad4321b7338f78c88a2d57f8da32f7ad52", "signature": "public const string X = \u0022\\uE1B2\u0022", "value": "\uE1B2" }, { "name": "Zap", "kind": "constant", "id": "constant|Zap|1|0|string||\uE1B4|h2f90946cfe4ea40cc06b32c0a682124997026f6ce26c8548279734e25582b32f", "signature": "public const string Zap = \u0022\\uE1B4\u0022", "value": "\uE1B4" }, { "name": "ZoomIn", "kind": "constant", "id": "constant|ZoomIn|1|0|string||\uE1B6|h11291b6686a09424204df82cf2c780bbed6fd19dc05d7d0af797901d63a55e2b", "signature": "public const string ZoomIn = \u0022\\uE1B6\u0022", "value": "\uE1B6" }, { "name": "ZoomOut", "kind": "constant", "id": "constant|ZoomOut|1|0|string||\uE1B7|hf2faba0e2aae00c6f2e6c8361a09e46fff910a412b8b1566bac5285c976cb7f3", "signature": "public const string ZoomOut = \u0022\\uE1B7\u0022", "value": "\uE1B7" }] }, { "name": "CuiSharp.IdScope", "displayName": "IdScope", "kind": "ref struct", "summary": "Pushes an id onto CUI\u0027s id stack: every child created inside gets its ids mixed with this one, so identical labels in different rows stay distinct. Use using; disposal pops, including on exceptions.", "members": [{ "name": "Dispose", "kind": "method", "id": "method|Dispose|0|0|void|||h743737a1705f80570f9b0dca3334406a3351c7ecb98acd045baf6804dd060a4e", "signature": "void Dispose()", "summary": "Pops the id. Disposing the same instance again does nothing." }] }, @@ -619,7 +619,7 @@ { "name": "CuiSharp.ShortcutRecorderOpts", "displayName": "ShortcutRecorderOpts", "kind": "struct", "summary": "Shortcut recorder: click and press a key combination to record it. Backspace clears, Esc cancels. Returns true when the combination changed. cui_shortcut_label formats a combination (\u0022Ctrl Shift K\u0022). All fields are optional; zero selects the native default.", "members": [{ "name": "Width", "kind": "field", "id": "field|Width|0|0|Size|||h4006d8d1aa3607cf3007c2fd6686981e9812586a28b9a4d7a283aeadfcd379ad", "signature": "public Size Width", "summary": "cui_size width" }, { "name": "Placeholder", "kind": "field", "id": "field|Placeholder|0|0|string?|||hbe61d1785f65fabbd3ef4afbfb40a45eae9d76cb4082fe468fe662c6a46ecb72", "signature": "public string? Placeholder", "summary": "const char * placeholder" }] }, { "name": "CuiSharp.Side", "displayName": "Side", "kind": "enum", "summary": "cui_side", "members": [{ "name": "Bottom", "kind": "enum value", "id": "enum value|Bottom|1|0|||2|h0862538babcf2a086a256d007852bc8a43bf86d313ddc23c41ade284f27b2a9e", "signature": "Bottom = 2", "value": "2" }, { "name": "Left", "kind": "enum value", "id": "enum value|Left|1|0|||1|hf671bc6932922aef2ac1a4125ae2532931f30a2d397b0f0ca21018c00c6c84da", "signature": "Left = 1", "value": "1" }, { "name": "Right", "kind": "enum value", "id": "enum value|Right|1|0|||0|h08d50cb63b6adb063b6c50afa635847a93edcdfbcf063d547d6fca799afbb6d0", "signature": "Right = 0", "value": "0" }, { "name": "Top", "kind": "enum value", "id": "enum value|Top|1|0|||3|hb1ed46e3dd5f59ea3d0b551cf80d64f49880e3f6dd1eaef702171ed9a19ec755", "signature": "Top = 3", "value": "3" }] }, { "name": "CuiSharp.SignatureOpts", "displayName": "SignatureOpts", "kind": "struct", "summary": "Signature pad: draw with the mouse or a pen. The strokes are kept for you; read them with cui_signature_points (stroke_ends[i] is one past the last point of stroke i). All fields are optional; zero selects the native default.", "members": [{ "name": "Ink", "kind": "field", "id": "field|Ink|0|0|Color|||h1e489f3751f1bcc46a8bd2c784f7540a1695c7586c8c4873095168b14c285be5", "signature": "public Color Ink", "summary": "color of the strokes, default the foreground color" }, { "name": "Width", "kind": "field", "id": "field|Width|0|0|Size|||h4006d8d1aa3607cf3007c2fd6686981e9812586a28b9a4d7a283aeadfcd379ad", "signature": "public Size Width", "summary": "cui_size width" }, { "name": "Height", "kind": "field", "id": "field|Height|0|0|float|||ha333299f179a1814155cda66a26b50fd7f476d27bf3ad5ffbc147c5abc8227fd", "signature": "public float Height", "summary": "float height" }, { "name": "Placeholder", "kind": "field", "id": "field|Placeholder|0|0|string?|||hbe61d1785f65fabbd3ef4afbfb40a45eae9d76cb4082fe468fe662c6a46ecb72", "signature": "public string? Placeholder", "summary": "const char * placeholder" }] }, - { "name": "CuiSharp.Size", "displayName": "Size", "kind": "struct", "summary": "cui_size: FIT, FILL, a fixed size in points, or a percentage of the parent.", "members": [{ "name": "Fill", "kind": "field", "id": "field|Fill|1|0|Size|||h790115b6211329a34fc1b5834807c9eb7d393fea88cc38588cebb48424e35ea1", "signature": "public static readonly Size Fill" }, { "name": "Fit", "kind": "field", "id": "field|Fit|1|0|Size|||hdaa4842ff2d572e20f3cd6e736da2c5505704cc9c606c11a63518add68d41804", "signature": "public static readonly Size Fit" }, { "name": "Grow", "kind": "method", "id": "method|Grow|1|0|Size|float w||h5596ca63547629277fcdf13865a1ed206da91439840235e6710713bfd08ea4bd", "signature": "static Size Grow(float w)", "parameters": [{ "name": "w", "type": "float" }] }, { "name": "Percent", "kind": "method", "id": "method|Percent|1|0|Size|float p||heab4606395abad8b3c38a5d65afa384229a1999668ab119e49682d758090d023", "signature": "static Size Percent(float p)", "parameters": [{ "name": "p", "type": "float" }] }, { "name": "Px", "kind": "method", "id": "method|Px|1|0|Size|float v||h719d0c5ced61889c531b21ea4e449976a8a3dea18d23d3ec61f75cd39c82f204", "signature": "static Size Px(float v)", "parameters": [{ "name": "v", "type": "float" }] }, { "name": "implicit operator Size", "kind": "conversion", "id": "conversion|op_Implicit|1|0|Size|float points||haa7af4a383872bdd173c483aa2417db201ae049698d7e393bef2b4a290d48f0f", "signature": "static implicit operator Size(float points)", "member": "op_Implicit", "parameters": [{ "name": "points", "type": "float" }], "summary": "A bare number is a fixed size in points, so Width = 240 reads like every other layout value. Use Fill, Fit or Percent when the size is relative." }] }, + { "name": "CuiSharp.Size", "displayName": "Size", "kind": "struct", "summary": "cui_size: fit the content, grow into the space available, a fixed size in points, or a percentage of the parent.", "members": [{ "name": "IsFill", "kind": "property", "id": "property|IsFill|0|0|bool||get;|h7ea7772ee27da179228fc1cb356da226ebcbe5c57c8bd3397bc9c3dfbde8013f", "signature": "bool IsFill { get; }", "summary": "Whether this grows into the available space: true for Fill and for every Grow weight." }, { "name": "IsFit", "kind": "property", "id": "property|IsFit|0|0|bool||get;|ha85e0631655d0cf3295f312c8bb08ffb11a261bb633e989cff09c66fea14808e", "signature": "bool IsFit { get; }", "summary": "Whether this is Fit." }, { "name": "IsFixed", "kind": "property", "id": "property|IsFixed|0|0|bool||get;|hd17183f640dd85e92b45e6b15810b228be894865f80d4062b7d9a55681b5c586", "signature": "bool IsFixed { get; }", "summary": "Whether this is a fixed number of points." }, { "name": "IsPercent", "kind": "property", "id": "property|IsPercent|0|0|bool||get;|h68d0d92da67e9809b3482d87d078cdcc0b1bff0f3339ee20f04504bad6faa099", "signature": "bool IsPercent { get; }", "summary": "Whether this is a percentage of the parent." }, { "name": "TryGetPercent", "kind": "method", "id": "method|TryGetPercent|0|0|bool|out float percent||ha156bfec3cb3bfd6cf55ec92815fe488b420bd590509efcb93e1b4fbadad7092", "signature": "bool TryGetPercent(out float percent)", "parameters": [{ "name": "percent", "type": "out float" }], "summary": "The percentage of the parent, when IsPercent is true." }, { "name": "TryGetPoints", "kind": "method", "id": "method|TryGetPoints|0|0|bool|out float points||hd737c4cc4751ddea8a9e2c635ba0edfc1cbe8b245bf62ad25137a7b8ae93a4a7", "signature": "bool TryGetPoints(out float points)", "parameters": [{ "name": "points", "type": "out float" }], "summary": "The fixed size, when IsFixed is true." }, { "name": "Fill", "kind": "field", "id": "field|Fill|1|0|Size|||h790115b6211329a34fc1b5834807c9eb7d393fea88cc38588cebb48424e35ea1", "signature": "public static readonly Size Fill", "summary": "Grow to fill the space available, sharing it with other growing siblings." }, { "name": "Fit", "kind": "field", "id": "field|Fit|1|0|Size|||hdaa4842ff2d572e20f3cd6e736da2c5505704cc9c606c11a63518add68d41804", "signature": "public static readonly Size Fit", "summary": "As large as the content needs." }, { "name": "Grow", "kind": "method", "id": "method|Grow|1|0|Size|float weight||had87c89c835068872dc4008512a637b8b51b5f9dc01cd264ca45d3dd194a6bec", "signature": "static Size Grow(float weight)", "parameters": [{ "name": "weight", "type": "float" }], "summary": "Grow to fill, with this share of the available space among growing siblings." }, { "name": "Percent", "kind": "method", "id": "method|Percent|1|0|Size|float percent||ha0baecb58078add7018b5514cea38705db66f29d2552951bceac81fb08eae246", "signature": "static Size Percent(float percent)", "parameters": [{ "name": "percent", "type": "float" }], "summary": "percent of the parent\u0027s size, from 0 to 100." }, { "name": "Px", "kind": "method", "id": "method|Px|1|0|Size|float points||hde0183402a7d2f1bee99fefa2d8b7ff57f9118d405f398144b726245ced42803", "signature": "static Size Px(float points)", "parameters": [{ "name": "points", "type": "float" }], "summary": "A fixed size in points." }, { "name": "implicit operator Size", "kind": "conversion", "id": "conversion|op_Implicit|1|0|Size|float points||haa7af4a383872bdd173c483aa2417db201ae049698d7e393bef2b4a290d48f0f", "signature": "static implicit operator Size(float points)", "member": "op_Implicit", "parameters": [{ "name": "points", "type": "float" }], "summary": "A bare number is a fixed size in points, so Width = 240 reads like every other layout value. Use Fill, Fit or Percent when the size is relative." }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()", "summary": "Fit, Fill, 240px or 50% \u2014 what a debugger should show." }] }, { "name": "CuiSharp.SizeKind", "displayName": "SizeKind", "kind": "enum", "summary": "cui_size_kind", "members": [{ "name": "Fit", "kind": "enum value", "id": "enum value|Fit|1|0|||0|hcdd031f42e54d697a13b2efcae71f1bc9d7acfd1d0d99910b287245b73e035bc", "signature": "Fit = 0", "value": "0" }, { "name": "Fixed", "kind": "enum value", "id": "enum value|Fixed|1|0|||2|h6970e23dec123bc9a61175098a09ff33d85995ba44643367aecbdea462662478", "signature": "Fixed = 2", "value": "2" }, { "name": "Grow", "kind": "enum value", "id": "enum value|Grow|1|0|||1|h64ad9af845328d80462ccb115e33b85b01a66a2524b2116c36dc1526a4a4942a", "signature": "Grow = 1", "value": "1" }, { "name": "Percent", "kind": "enum value", "id": "enum value|Percent|1|0|||3|h335bc15932474690bbb8bf068ec30c38b8ce86636d11e701ce648866ccaf80dd", "signature": "Percent = 3", "value": "3" }] }, { "name": "CuiSharp.SliderOpts", "displayName": "SliderOpts", "kind": "struct", "summary": "cui_slider_opts. All fields are optional; zero selects the native default.", "members": [{ "name": "Width", "kind": "field", "id": "field|Width|0|0|Size|||h4006d8d1aa3607cf3007c2fd6686981e9812586a28b9a4d7a283aeadfcd379ad", "signature": "public Size Width", "summary": "cui_size width" }, { "name": "Disabled", "kind": "field", "id": "field|Disabled|0|0|bool|||h4baa107f7923040caa8203f55780aae06d0b8981825d1ea1524ec7d60ae2a53f", "signature": "public bool Disabled", "summary": "_Bool disabled" }, { "name": "ShowValue", "kind": "field", "id": "field|ShowValue|0|0|bool|||hd0974546e5f5fd0d3590998a1e541a6ef369d199dd57720a3611943d5245da68", "signature": "public bool ShowValue", "summary": "_Bool show_value" }, { "name": "Step", "kind": "field", "id": "field|Step|0|0|float|||h0c90f87a47946c37f88110bf22e34747a17db5c6eac355fefc306b7187723b09", "signature": "public float Step", "summary": "0 = continuous" }, { "name": "Format", "kind": "field", "id": "field|Format|0|0|string?|||h569c4de400fd242b777ddfec561786900d4f2ae1434374423edf8bd9ef0c421f", "signature": "public string? Format", "summary": "printf format for the value, default \u0022%.0f\u0022" }] }, { "name": "CuiSharp.Source", "displayName": "Source", "kind": "struct", "summary": "Sources: cards for the documents an answer used, and inline citations that show a card on hover. Both return true / the index when clicked. Elements are copied into the frame arena by the wrapper.", "members": [{ "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||string? Title;string? Url = null;string? Snippet = null||h39e0a65c6c954596245d39a1b9a35ef0bb8f95e8bbf5ec0920915c9468f048bf", "signature": "Source(string? Title, string? Url = null, string? Snippet = null)", "parameters": [{ "name": "Title", "type": "string?" }, { "name": "Url", "type": "string?", "default": "null" }, { "name": "Snippet", "type": "string?", "default": "null" }] }, { "name": "Snippet", "kind": "field", "id": "field|Snippet|0|0|string?|||hce8601e46b8098c0405f6b5767e2110391ffe8ecbe0d08165351569ed2e71ca2", "signature": "public string? Snippet", "summary": "an excerpt, shown in the hover card of a citation" }, { "name": "Title", "kind": "field", "id": "field|Title|0|0|string?|||h93a8edaa93b16842fe0ac6654a4057aba157dadc71904a5f698e3e310fc21f31", "signature": "public string? Title", "summary": "the card\u0027s heading; \u0060NULL\u0060 shows the URL\u0027s domain" }, { "name": "Url", "kind": "field", "id": "field|Url|0|0|string?|||h019bf1b15b950788d9efa2764da1816a2b3f9583d4fd74a01e5e11cc1ab6b5d9", "signature": "public string? Url", "summary": "the address: its domain is shown, and the whole URL as the card\u0027s tooltip" }] }, @@ -697,7 +697,7 @@ { "name": "CuiSharp.TreeTableOpts", "displayName": "TreeTableOpts", "kind": "struct", "summary": "cui_tree_table_opts. All fields are optional; zero selects the native default.", "members": [{ "name": "Height", "kind": "field", "id": "field|Height|0|0|Size|||ha64280009505e4bd6e5bbf4456fad0c2709e6a7d632627c6d242b3f0dccbcdbe", "signature": "public Size Height", "summary": "default fill" }, { "name": "Width", "kind": "field", "id": "field|Width|0|0|Size|||h4006d8d1aa3607cf3007c2fd6686981e9812586a28b9a4d7a283aeadfcd379ad", "signature": "public Size Width", "summary": "default fill" }, { "name": "Guides", "kind": "field", "id": "field|Guides|0|0|bool|||h7e9ab088cd84e6855062433d2087613e5fb8460e5ed62e343e4c52830488ac6b", "signature": "public bool Guides", "summary": "quiet vertical lines for each indentation level" }, { "name": "RowHeight", "kind": "field", "id": "field|RowHeight|0|0|float|||h5ea2104bcd7b1901e422af1ae5e7bfbafd249069750d53240ecbcc4c462a864a", "signature": "public float RowHeight", "summary": "default 32" }, { "name": "Root", "kind": "field", "id": "field|Root|0|0|int|||h6951cf8e44d999438aa751b095b478c002e3b8defd9d6fa77bc90f1c5a707dfb", "signature": "public int Root", "summary": "the first top level node, default 0" }] }, { "name": "CuiSharp.TreeTableRow", "displayName": "TreeTableRow", "kind": "delegate", "summary": "Draws one tree row: the caller writes the cells, the widget the indentation and chevron.", "members": [{ "name": "BeginInvoke", "kind": "method", "id": "method|BeginInvoke|0|0|IAsyncResult|Ui ui;int node;int depth;AsyncCallback callback;object object||hb8e87a7a2022e77c4a6ee5001cb539806ecfb6ef5552cdea8804276f71f2232c", "signature": "IAsyncResult BeginInvoke(Ui ui, int node, int depth, AsyncCallback callback, object @object)", "parameters": [{ "name": "ui", "type": "Ui" }, { "name": "node", "type": "int" }, { "name": "depth", "type": "int" }, { "name": "callback", "type": "AsyncCallback" }, { "name": "object", "type": "object" }] }, { "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||object object;nint method||he6641ea5e617ffa8974579447d4c8370257dc98cf899f5b6a348234630ca3eeb", "signature": "TreeTableRow(object @object, nint method)", "parameters": [{ "name": "object", "type": "object" }, { "name": "method", "type": "nint" }] }, { "name": "EndInvoke", "kind": "method", "id": "method|EndInvoke|0|0|void|IAsyncResult result||h477a5257f2f4c2172e54e854d9bc2f5c7bb790dade430a493c5a1c7d25248214", "signature": "void EndInvoke(IAsyncResult result)", "parameters": [{ "name": "result", "type": "IAsyncResult" }] }, { "name": "Invoke", "kind": "method", "id": "method|Invoke|0|0|void|Ui ui;int node;int depth||h9a371e5ae54502a8006d96dcddef3da1e0c9c674283682bf899a96595e9eecde", "signature": "void Invoke(Ui ui, int node, int depth)", "parameters": [{ "name": "ui", "type": "Ui" }, { "name": "node", "type": "int" }, { "name": "depth", "type": "int" }] }] }, { "name": "CuiSharp.TreemapOpts", "displayName": "TreemapOpts", "kind": "struct", "summary": "cui_treemap_opts. All fields are optional; zero selects the native default.", "members": [{ "name": "Width", "kind": "field", "id": "field|Width|0|0|Size|||h4006d8d1aa3607cf3007c2fd6686981e9812586a28b9a4d7a283aeadfcd379ad", "signature": "public Size Width", "summary": "cui_size width" }, { "name": "Height", "kind": "field", "id": "field|Height|0|0|float|||ha333299f179a1814155cda66a26b50fd7f476d27bf3ad5ffbc147c5abc8227fd", "signature": "public float Height", "summary": "float height" }, { "name": "Format", "kind": "field", "id": "field|Format|0|0|string?|||h569c4de400fd242b777ddfec561786900d4f2ae1434374423edf8bd9ef0c421f", "signature": "public string? Format", "summary": "const char * format" }] }, - { "name": "CuiSharp.Ui", "displayName": "Ui", "kind": "ref struct", "summary": "A stack-only drawing context. Do not retain it outside the current frame.", "members": [{ "name": "Accent", "kind": "property", "id": "property|Accent|0|0|Accent||get;set;|h601d9cfd9625a035242c1bcbf7277be4924bde18cceaaaa599fef54890ea0c9b", "signature": "Accent Accent { get; set; }", "summary": "The accent in use, and the way to change it. See Theme." }, { "name": "ApiExplorer", "kind": "extension", "id": "extension|ApiExplorer|0|0|ApiExplorerResult|UiText id;ReadOnlySpan\u003CApiEndpoint\u003E endpoints;ref int selected;ApiExplorerOpts o = default||h8e1274e09ed373172bec2fe1ee1969a7f9b2e594fbeed0ea8abed98302f3ed84", "signature": "ApiExplorerResult ApiExplorer(UiText id, ReadOnlySpan\u003CApiEndpoint\u003E endpoints, ref int selected, ApiExplorerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "endpoints", "type": "ReadOnlySpan\u003CApiEndpoint\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "ApiExplorerOpts", "default": "default" }], "summary": "cui_api_explorer_ex" }, { "name": "Blame", "kind": "extension", "id": "extension|Blame|0|0|BlameResult|UiText id;ReadOnlySpan\u003Cstring\u003E lines;ReadOnlySpan\u003Cint\u003E lineCommit;ReadOnlySpan\u003CBlameCommit\u003E commits;BlameOpts o = default||hdf716d42271c45696039bb07abacc01b9b0b2a935ee05dc1842213c276edf5eb", "signature": "BlameResult Blame(UiText id, ReadOnlySpan\u003Cstring\u003E lines, ReadOnlySpan\u003Cint\u003E lineCommit, ReadOnlySpan\u003CBlameCommit\u003E commits, BlameOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "lines", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "lineCommit", "type": "ReadOnlySpan\u003Cint\u003E" }, { "name": "commits", "type": "ReadOnlySpan\u003CBlameCommit\u003E" }, { "name": "o", "type": "BlameOpts", "default": "default" }], "summary": "Source with who last changed each line: lines from one commit share one gutter entry with its author, age and hash, and a bar at the edge shades newer changes stronger. Hover a gutter entry for the commit\u0027s summary and to mark its lines; click it to get the commit. Only the lines in view are built. On a phone the gutter keeps only the shade and initials." }, { "name": "Canvas", "kind": "method", "id": "method|Canvas|0|0|CanvasResult|UiText id;Size width;Size height;PaintFn paint||hf2c318f0b609f7226e807d7cf7e4edada63dc45f85bb57025ad7567a006824a0", "signature": "CanvasResult Canvas(UiText id, Size width, Size height, PaintFn paint)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "width", "type": "Size" }, { "name": "height", "type": "Size" }, { "name": "paint", "type": "PaintFn" }], "summary": "Reserves a box of the given size and lets you paint it." }, { "name": "Clip", "kind": "method", "id": "method|Clip|0|0|ClipScope|RectF r||h81bb7c5dd19720d5aa2ee17f5cb20e0238b08db45d6d0cb5700d16ce531ec5f2", "signature": "ClipScope Clip(RectF r)", "parameters": [{ "name": "r", "type": "RectF" }], "summary": "Clips subsequent drawing to a rectangle, closing the clip on dispose." }, { "name": "CodeEditor", "kind": "extension", "id": "extension|CodeEditor|0|0|CodeEditorResult|UiText id;ref string buf;int cap;CodeEditorOpts o = default||h3f99c4340c4ea2a0ae4ecc840716120045f85d30ea53f0aebe7ab1be2c09aa9a", "signature": "CodeEditorResult CodeEditor(UiText id, ref string buf, int cap, CodeEditorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }, { "name": "o", "type": "CodeEditorOpts", "default": "default" }], "summary": "cui_code_editor_ex" }, { "name": "ColorOf", "kind": "method", "id": "method|ColorOf|0|0|Color|Color color||h980f9c13c6409b9b666e72b6641e22a816c4a7d68a80eb109a44bc201bceceb0", "signature": "Color ColorOf(Color color)", "parameters": [{ "name": "color", "type": "Color" }], "summary": "Resolves a semantic token to its channels; other colors come back unchanged." }, { "name": "TokenColor", "kind": "method", "id": "method|TokenColor|0|0|Color|Token token||h0916cfc8affaa4db1788c2edd8ac85f518f146b3b691ef4d7181b7ad8ccac2fe", "signature": "Color TokenColor(Token token)", "parameters": [{ "name": "token", "type": "Token" }], "summary": "The channels a theme token resolves to this frame." }, { "name": "Comment", "kind": "extension", "id": "extension|Comment|0|0|CommentEvents|UiText id;UiText author;UiText text;ref int likes;ref bool liked;CommentOpts o = default||hd58eadbf1b4e2807aa889ed3f4c70606227f61711c62110ec27aebc46c70512c", "signature": "CommentEvents Comment(UiText id, UiText author, UiText text, ref int likes, ref bool liked, CommentOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "author", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "likes", "type": "ref int" }, { "name": "liked", "type": "ref bool" }, { "name": "o", "type": "CommentOpts", "default": "default" }], "summary": "cui_comment_ex" }, { "name": "CommitGraph", "kind": "extension", "id": "extension|CommitGraph|0|0|CommitGraphResult|UiText id;ReadOnlySpan\u003CCommit\u003E commits;ref int selected;CommitGraphOpts o = default||h8d094156c694b6c409f8abe92f01e016c9b138a44ea76b0770f70f4fd34781c7", "signature": "CommitGraphResult CommitGraph(UiText id, ReadOnlySpan\u003CCommit\u003E commits, ref int selected, CommitGraphOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "commits", "type": "ReadOnlySpan\u003CCommit\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "CommitGraphOpts", "default": "default" }], "summary": "Version history: the branch lanes drawn beside each commit, newest first, with its message, branch and tag names, author, date and short hash. Each commit names its parents by row (parents come later in the array), so merges and branches draw as lines between lanes. Only the rows in view are built. Up and Down move the selection; Enter or a double-click activates." }, { "name": "ChatComposer", "kind": "extension", "id": "extension|ChatComposer|0|0|ComposerEvents|UiText id;ref string buf;int cap;ref int removed;ref int model;ComposerOpts o = default||ha61bd40b4efb8355a255edc7d36d348178993536309ab1ee4c6c9a381fd22431", "signature": "ComposerEvents ChatComposer(UiText id, ref string buf, int cap, ref int removed, ref int model, ComposerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }, { "name": "removed", "type": "ref int" }, { "name": "model", "type": "ref int" }, { "name": "o", "type": "ComposerOpts", "default": "default" }], "summary": "cui_chat_composer_ex" }, { "name": "Coverage", "kind": "extension", "id": "extension|Coverage|0|0|CoverageResult|UiText id;ReadOnlySpan\u003CCoverageFile\u003E files;CoverageOpts o = default||h71a24310abd0377c27ded9130e91e48dc3e91a798d1a79f3563a30b446fe6a95", "signature": "CoverageResult Coverage(UiText id, ReadOnlySpan\u003CCoverageFile\u003E files, CoverageOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "files", "type": "ReadOnlySpan\u003CCoverageFile\u003E" }, { "name": "o", "type": "CoverageOpts", "default": "default" }], "summary": "Test coverage by folder and file: the files\u0027 paths make the tree, each folder sums up what it holds, and folders fold. Line coverage shows as a bar colored by thresholds, with branches and functions beside it. Click a column\u0027s title to sort. Enter or a double-click activates a file. Narrow panels show lines only." }, { "name": "Cursor", "kind": "property", "id": "property|Cursor|0|0|Cursor||get;|hc22a16db67c85c2843d2f88cc8ab464d28c155381bf1d1998e9fc4743eb42043", "signature": "Cursor Cursor { get; }", "summary": "The cursor the UI asked for last frame, for a backend that draws its own." }, { "name": "CurveEditor", "kind": "extension", "id": "extension|CurveEditor|0|0|CurveResult|UiText id;Span\u003CCurveKey\u003E keys;ref int count;ref int selected;CurveOpts o = default||h39773d299469a65f6696e9dc3fbe9375a8f18a602c2b96d77d1eee0c01377f62", "signature": "CurveResult CurveEditor(UiText id, Span\u003CCurveKey\u003E keys, ref int count, ref int selected, CurveOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "keys", "type": "Span\u003CCurveKey\u003E" }, { "name": "count", "type": "ref int" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "CurveOpts", "default": "default" }], "summary": "cui_curve_editor_ex" }, { "name": "DiffView", "kind": "extension", "id": "extension|DiffView|0|0|DiffResult|UiText id;UiText oldText;UiText newText;ref int current;DiffOpts o = default||h1928b65f5fa6dc715c0e20351e64a90a55ca9b8fd792c4a9a6e3df7545ba072a", "signature": "DiffResult DiffView(UiText id, UiText oldText, UiText newText, ref int current, DiffOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "oldText", "type": "UiText" }, { "name": "newText", "type": "UiText" }, { "name": "current", "type": "ref int" }, { "name": "o", "type": "DiffOpts", "default": "default" }], "summary": "cui_diff_view_ex" }, { "name": "Disabled", "kind": "method", "id": "method|Disabled|0|0|DisabledScope|bool disabled||h3a515a3de1d8d0205d97aef4118bf5ab6c5af12e051d859d3b8cabae81fb9db1", "signature": "DisabledScope Disabled(bool disabled)", "parameters": [{ "name": "disabled", "type": "bool" }], "summary": "Opens a disabled gate that using closes." }, { "name": "Disabled", "kind": "method", "id": "method|Disabled|0|0|DisabledScope|bool disabled;DrawFn body||hcc29e71513d0c4970a98faee97bed37a754ecae1da31ed37b95a7e3588c336d9", "signature": "DisabledScope Disabled(bool disabled, DrawFn body)", "parameters": [{ "name": "disabled", "type": "bool" }, { "name": "body", "type": "DrawFn" }], "summary": "Draws body with every control inside it disabled: it still lays out and paints, but clicks, keys and hover do nothing." }, { "name": "DocTabs", "kind": "extension", "id": "extension|DocTabs|0|0|DocTabsResult|UiText id;ReadOnlySpan\u003CDocTab\u003E tabs;ref int selected;DocTabsOpts o = default||hdb202a4c9e42fa362479fb5e674bee39fa9949e204316f94f4197f0a54fe4c83", "signature": "DocTabsResult DocTabs(UiText id, ReadOnlySpan\u003CDocTab\u003E tabs, ref int selected, DocTabsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tabs", "type": "ReadOnlySpan\u003CDocTab\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "DocTabsOpts", "default": "default" }], "summary": "Document tabs: editor style tabs. Clicking selects (*selected is updated), the x or a middle click asks to close, dragging reorders, and the strip scrolls sideways when the tabs do not fit. A dirty tab shows a dot that turns into the close button under the pointer. The selected tab is filled with the surface color so it joins the content below; the strip itself has no fill, like the other bars. Tabs keep their state by title, so give two tabs with the same name a key: \u0022main.c##src\u0022. The component never removes or moves your tabs itself: it reports a close or a move in the result and you apply it (selection already follows a move). With keyboard focus on the strip, Left and Right select, Home and End jump, Shift\u002BLeft/Right move the tab and Delete closes it. With \u0060shortcuts\u0060 set it also answers Ctrl\u002BTab, Ctrl\u002BShift\u002BTab, Ctrl\u002BPageUp/Down and Ctrl\u002BW (Cmd\u002BW on macOS) from anywhere in the window." }, { "name": "DotChart", "kind": "method", "id": "method|DotChart|0|0|DotChartResult|UiText id;ReadOnlySpan\u003CDotSeries\u003E series;int count;DotChartOpts o = default||h83e83d00645373641fe3f26a3fedf035305cc683a48a4802e1ebb7d5c572f881", "signature": "DotChartResult DotChart(UiText id, ReadOnlySpan\u003CDotSeries\u003E series, int count, DotChartOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "ReadOnlySpan\u003CDotSeries\u003E" }, { "name": "count", "type": "int" }, { "name": "o", "type": "DotChartOpts", "default": "default" }], "summary": "A dot-matrix chart: values as a grid of dots, lit up to each column\u0027s value. Several series stack in their own bands, and the pointer or the arrow keys show a readout of the value under it. Returns where a click landed, so an app can add something there." }, { "name": "EventTrack", "kind": "extension", "id": "extension|EventTrack|0|0|EventTrackResult|UiText id;Span\u003Cdouble\u003E times;ref int count;double min;double max;ref int selected;EventTrackOpts o = default||h552c584d56c0bad07e42547a610e3888e7ecda2c1a64bab104fa79448d19086c", "signature": "EventTrackResult EventTrack(UiText id, Span\u003Cdouble\u003E times, ref int count, double min, double max, ref int selected, EventTrackOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "times", "type": "Span\u003Cdouble\u003E" }, { "name": "count", "type": "ref int" }, { "name": "min", "type": "double" }, { "name": "max", "type": "double" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "EventTrackOpts", "default": "default" }], "summary": "Event track: moments on a time axis, as dots you drag along it. A click on an empty spot adds an event there and a double-click on one removes it. You own the array: the track keeps it sorted, edits it in place and never grows it past \u0060capacity\u0060." }, { "name": "FeatureFlags", "kind": "extension", "id": "extension|FeatureFlags|0|0|FeatureFlagsResult|UiText id;Span\u003CFeatureFlag\u003E flags;ReadOnlySpan\u003Cstring\u003E envs;FeatureFlagsOpts o = default||h1c2c043a1a911bf524b328f35cfa7f2ee4862adfb16f1b0cbd98cf1077245b34", "signature": "FeatureFlagsResult FeatureFlags(UiText id, Span\u003CFeatureFlag\u003E flags, ReadOnlySpan\u003Cstring\u003E envs, FeatureFlagsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "flags", "type": "Span\u003CFeatureFlag\u003E" }, { "name": "envs", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "o", "type": "FeatureFlagsOpts", "default": "default" }], "summary": "cui_feature_flags_ex" }, { "name": "FileBrowser", "kind": "extension", "id": "extension|FileBrowser|0|0|FileBrowserResult|UiText id;ref string path;int pathCap = 1024;FileBrowserOpts o = default||hdcc3319728f0b23560a33e9d8c875e4b5389d816f8e66b4e3630e917284e3bf8", "signature": "FileBrowserResult FileBrowser(UiText id, ref string path, int pathCap = 1024, FileBrowserOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "path", "type": "ref string" }, { "name": "pathCap", "type": "int", "default": "1024" }, { "name": "o", "type": "FileBrowserOpts", "default": "default" }], "summary": "path: the folder shown, yours; the browser writes it as you move around." }, { "name": "FlameGraph", "kind": "extension", "id": "extension|FlameGraph|0|0|FlameResult|UiText id;ReadOnlySpan\u003CFlameSpan\u003E spans;ref FlameView view;ref int selected;FlameOpts o = default||h825a9e17f3b7381f2b9b6b4244a8edbabda629701c297e3c877a4e13fc43e98c", "signature": "FlameResult FlameGraph(UiText id, ReadOnlySpan\u003CFlameSpan\u003E spans, ref FlameView view, ref int selected, FlameOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "spans", "type": "ReadOnlySpan\u003CFlameSpan\u003E" }, { "name": "view", "type": "ref FlameView" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "FlameOpts", "default": "default" }], "summary": "selected: index into spans, -1 for none (may be NULL)." }, { "name": "LoadFont", "kind": "extension", "id": "extension|LoadFont|0|0|Font|ReadOnlySpan\u003Cbyte\u003E data;bool copy = true||h73d65ad67f9acdd48823d96c747c086a24a1625658056e8af856a3bd4d554241", "signature": "Font LoadFont(ReadOnlySpan\u003Cbyte\u003E data, bool copy = true)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "data", "type": "ReadOnlySpan\u003Cbyte\u003E" }, { "name": "copy", "type": "bool", "default": "true" }], "summary": "Loads a font from memory and returns a handle for SetFont." }, { "name": "LoadFont", "kind": "extension", "id": "extension|LoadFont|0|0|Font|UiText path||h5faed851de772ad862622c3312f2aeae3c81ef7915ae305e81bb638cf9b3b107", "signature": "Font LoadFont(UiText path)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "path", "type": "UiText" }], "summary": "Loads a font file (TTF/OTF) and returns a handle for SetFont." }, { "name": "UseSystemFontFallback", "kind": "extension", "id": "extension|UseSystemFontFallback|0|0|Font|string sample||h718698d4ba3dba692a0bf04e8e6729a2aae4ac8563689108bb00fdf124984df6", "signature": "Font UseSystemFontFallback(string sample)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "sample", "type": "string" }], "summary": "Finds a face on this machine that can draw sample and registers it as a fallback for the app\u0027s roles, so a UI in a script the bundled faces do not cover renders instead of going blank." }, { "name": "GradientEditor", "kind": "extension", "id": "extension|GradientEditor|0|0|GradientResult|UiText id;Span\u003CGradientStop\u003E stops;ref int count;ref int selected;GradientOpts o = default||h840bbab777b2202298d9b5a0d6519bc52d291ff2a13de0a26b88f92a8379b841", "signature": "GradientResult GradientEditor(UiText id, Span\u003CGradientStop\u003E stops, ref int count, ref int selected, GradientOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "stops", "type": "Span\u003CGradientStop\u003E" }, { "name": "count", "type": "ref int" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "GradientOpts", "default": "default" }], "summary": "cui_gradient_editor_ex" }, { "name": "GraphView", "kind": "extension", "id": "extension|GraphView|0|0|GraphResult|UiText id;ReadOnlySpan\u003CGraphNode\u003E nodes;ReadOnlySpan\u003CGraphEdge\u003E edges;ref int selected;GraphOpts o = default||hbce489b5fa6d64979be674221b7ae61e945b26d0224773080270c2c7dfd8b3bc", "signature": "GraphResult GraphView(UiText id, ReadOnlySpan\u003CGraphNode\u003E nodes, ReadOnlySpan\u003CGraphEdge\u003E edges, ref int selected, GraphOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "nodes", "type": "ReadOnlySpan\u003CGraphNode\u003E" }, { "name": "edges", "type": "ReadOnlySpan\u003CGraphEdge\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "GraphOpts", "default": "default" }], "summary": "Nodes and directed edges laid out in layers (each edge points to a later layer, cycles are broken), for build targets, packages, services or call graphs. The layout is computed when the graph changes. Wheel zooms, drag pans, click selects; hovering a node lights up what it depends on and what depends on it. F fits the graph." }, { "name": "DataGrid", "kind": "extension", "id": "extension|DataGrid|0|0|GridScope|UiText id;ReadOnlySpan\u003CGridColumn\u003E columns;int rowCount;GridState state;GridOpts o = default||hae20817285aa5f5ee430918dd512e707df8a0306e32777f0e13839f607262829", "signature": "GridScope DataGrid(UiText id, ReadOnlySpan\u003CGridColumn\u003E columns, int rowCount, GridState state, GridOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CGridColumn\u003E" }, { "name": "rowCount", "type": "int" }, { "name": "state", "type": "GridState" }, { "name": "o", "type": "GridOpts", "default": "default" }], "summary": "Opens a virtualized grid; draw rows in [state.First, state.Last)." }, { "name": "HexView", "kind": "extension", "id": "extension|HexView|0|0|HexResult|UiText id;Span\u003Cbyte\u003E bytes;ref HexSelection selection;HexViewOpts o = default||hb82ecf6f9d8a58d5c2bce7702bd188c8bb502de7a2d696f1a0af827be5fa22d9", "signature": "HexResult HexView(UiText id, Span\u003Cbyte\u003E bytes, ref HexSelection selection, HexViewOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "bytes", "type": "Span\u003Cbyte\u003E" }, { "name": "selection", "type": "ref HexSelection" }, { "name": "o", "type": "HexViewOpts", "default": "default" }], "summary": "Draws bytes and lets the user overwrite them in place." }, { "name": "Id", "kind": "method", "id": "method|Id|0|0|IdScope|UiText id||hf913a0d346bf51d9f7a0e55299041c30e8aa0eeb2f93eadbe20cad0c4ae3879b", "signature": "IdScope Id(UiText id)", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "Pushes a string id for the widgets drawn inside the scope." }, { "name": "Id", "kind": "method", "id": "method|Id|0|0|IdScope|int key||h3b4b6991acded6793bc66a091956c19c02661da15fabdf72db107273b8ed3d1b", "signature": "IdScope Id(int key)", "parameters": [{ "name": "key", "type": "int" }], "summary": "Pushes an integer id, typically a row or item index." }, { "name": "Input", "kind": "method", "id": "method|Input|0|0|InputResult|UiText id;ref string value;InputOpts o = default||he495e19d9d5cb23d03e35f0f55ea0ebafd853d7386ae9e4989697b39cec38980", "signature": "InputResult Input(UiText id, ref string value, InputOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "o", "type": "InputOpts", "default": "default" }], "summary": "A single-line text field. Assign the string; CUI edits it in place and the new value comes back through value on the frames it changed." }, { "name": "Search", "kind": "method", "id": "method|Search|0|0|InputResult|UiText id;ref string value;InputOpts o = default||h11bb746b263541b15457e9933eac6e37a6cdfac44547449d0d7375a7431b87da", "signature": "InputResult Search(UiText id, ref string value, InputOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "o", "type": "InputOpts", "default": "default" }], "summary": "A search field. See Input." }, { "name": "TextArea", "kind": "method", "id": "method|TextArea|0|0|InputResult|UiText id;ref string value;InputOpts o = default||ha0535c062baff5583884fcf6394397476e4b2a40ee79b643e731e601e2daad5c", "signature": "InputResult TextArea(UiText id, ref string value, InputOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "o", "type": "InputOpts", "default": "default" }], "summary": "A multi-line text field. See Input." }, { "name": "Keyed", "kind": "method", "id": "method|Keyed|0|1|KeyedScope\u003CT\u003E|T[] items;KeyFn\u003CT\u003E key||h3645b3dae05812e37fd01340a5693892b688bf1436826030f83bf34e5dca43f8", "signature": "KeyedScope\u003CT\u003E Keyed\u003CT\u003E(T[] items, KeyFn\u003CT\u003E key)", "parameters": [{ "name": "items", "type": "T[]" }, { "name": "key", "type": "KeyFn\u003CT\u003E" }], "summary": "Enumerates items, each inside its own id scope derived from key." }, { "name": "Keymap", "kind": "extension", "id": "extension|Keymap|0|0|KeymapResult|UiText id;ReadOnlySpan\u003CKeymapBinding\u003E bindings;ref Mods mods;KeymapOpts o = default||h986c8ea2572b42d56814a32427ed89b00db2a4a2ff3ba6c7a4711a66da3c0bae", "signature": "KeymapResult Keymap(UiText id, ReadOnlySpan\u003CKeymapBinding\u003E bindings, ref Mods mods, KeymapOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "bindings", "type": "ReadOnlySpan\u003CKeymapBinding\u003E" }, { "name": "mods", "type": "ref Mods" }, { "name": "o", "type": "KeymapOpts", "default": "default" }], "summary": "A keyboard with your shortcuts on it: each bound key shows its action and the color of its category, for the modifiers chosen above it. Keys bound twice are marked as conflicts. Hover a key for every binding on it; click it to get the key (to rebind it). The keyboard keeps its own layout in a right-to-left interface and scales to the width it gets." }, { "name": "Box", "kind": "extension", "id": "extension|Box|0|0|LayoutScope|Box o = default||haec5c052acbeeaca94cb5a10a37f80e98abc85d069b6fa9aec58cf20715c0a06", "signature": "LayoutScope Box(Box o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Box", "default": "default" }], "summary": "cui_box_begin" }, { "name": "ButtonGroup", "kind": "extension", "id": "extension|ButtonGroup|0|0|LayoutScope|||h8a2a0872d3ba1595bf0e1d9ad5860dfa36735b0ac74178a57cc8157b6493d6d4", "signature": "LayoutScope ButtonGroup()", "extensionOn": "CuiSharp.Ui", "summary": "Connected buttons. Put buttons between begin and end." }, { "name": "Card", "kind": "extension", "id": "extension|Card|0|0|LayoutScope|Card o = default||hb8d0387f360f71c39f098c9de712bb4aa0eb22a25fffee4615049459c0cc224e", "signature": "LayoutScope Card(Card o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Card", "default": "default" }], "summary": "returns true when clicked (hoverable)" }, { "name": "Card", "kind": "extension", "id": "extension|Card|0|0|LayoutScope|Card o;out bool clicked||he64474f809036667bb19ed0028db705f58a61d124f67b6520b26f73775ae32e5", "signature": "LayoutScope Card(Card o, out bool clicked)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Card" }, { "name": "clicked", "type": "out bool" }], "summary": "Always opens the container; clicked reports its interaction result." }, { "name": "CardStackItem", "kind": "extension", "id": "extension|CardStackItem|0|0|LayoutScope|int depth||h6f29f3239b665449b7d0d9b4e5177cb4099b541e3423fcb9d1a9b14fb1f686d0", "signature": "LayoutScope CardStackItem(int depth)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "depth", "type": "int" }], "summary": "cui_card_stack_item_begin" }, { "name": "CarouselSlide", "kind": "extension", "id": "extension|CarouselSlide|0|0|LayoutScope|||h9755b016a070064271f7e45738238254443cdfcb4d22aca524774095031595ec", "signature": "LayoutScope CarouselSlide()", "extensionOn": "CuiSharp.Ui", "summary": "cui_carousel_slide_begin" }, { "name": "Column", "kind": "extension", "id": "extension|Column|0|0|LayoutScope|Box o = default||h78447c50c087189e1c45a5984115c6b2709affec511cf6ab6521254dd0406549", "signature": "LayoutScope Column(Box o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Box", "default": "default" }], "summary": "cui_column_begin" }, { "name": "DialogFooter", "kind": "extension", "id": "extension|DialogFooter|0|0|LayoutScope|||hea62c5e329105c7d787894e1fbdbbd9b079d2910e82c4be61263045ff18c81f3", "signature": "LayoutScope DialogFooter()", "extensionOn": "CuiSharp.Ui", "summary": "A right-aligned row for dialog actions." }, { "name": "Dock", "kind": "extension", "id": "extension|Dock|0|0|LayoutScope|UiText id;DockOpts o = default||ha8052963c653afff4ec2b3304515265b67454d94f44ee3c01d076c1e27148816", "signature": "LayoutScope Dock(UiText id, DockOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "DockOpts", "default": "default" }], "summary": "Dock: a row of icons that grow as the pointer passes, with labels and a dot under the running ones. Each item returns true when clicked." }, { "name": "Dockspace", "kind": "extension", "id": "extension|Dockspace|0|0|LayoutScope|UiText id;DockspaceOpts o = default||hd8cabbad4df58a75fbb1e93299868d95ae7671ca676e01478b8c6067ace5a82d", "signature": "LayoutScope Dockspace(UiText id, DockspaceOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "DockspaceOpts", "default": "default" }], "summary": "Dockspace: an IDE style workspace that lays out your panels in a tree of resizable splits whose leaves hold one or more panels as document tabs. Submit every panel each frame between cui_dockspace_begin and cui_dockspace_end; the dockspace decides where it goes, and a panel\u0027s content is built only while its tab is the one showing:" }, { "name": "KanbanCard", "kind": "extension", "id": "extension|KanbanCard|0|0|LayoutScope|int cardId||h04d36b815b7f14d7d624e0b56c06560e052f6458aecd5cd68f485e0c8dc64b11", "signature": "LayoutScope KanbanCard(int cardId)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "cardId", "type": "int" }], "summary": "true when clicked" }, { "name": "KanbanCard", "kind": "extension", "id": "extension|KanbanCard|0|0|LayoutScope|int cardId;out bool clicked||h0ef9ec0801ab926804d1119b9bc9dc886afc490850829ed33cad336f7ee94f50", "signature": "LayoutScope KanbanCard(int cardId, out bool clicked)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "cardId", "type": "int" }, { "name": "clicked", "type": "out bool" }], "summary": "Always opens the container; clicked reports its interaction result." }, { "name": "KanbanColumn", "kind": "extension", "id": "extension|KanbanColumn|0|0|LayoutScope|UiText title;int cardCount;KanbanColumnOpts o = default||hd3dcefdc81fb36dfee31edd1754914e0453a4c7e0b1bb4c4b2b20b542eb8adaa", "signature": "LayoutScope KanbanColumn(UiText title, int cardCount, KanbanColumnOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "cardCount", "type": "int" }, { "name": "o", "type": "KanbanColumnOpts", "default": "default" }], "summary": "true: \u0022\u002B\u0022 clicked" }, { "name": "KanbanColumn", "kind": "extension", "id": "extension|KanbanColumn|0|0|LayoutScope|UiText title;int cardCount;KanbanColumnOpts o;out bool clicked||h7c9ca66f79f064c49eed8f4544d8fea1ed3304dc45d84e5ec067d319ed4ea113", "signature": "LayoutScope KanbanColumn(UiText title, int cardCount, KanbanColumnOpts o, out bool clicked)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "cardCount", "type": "int" }, { "name": "o", "type": "KanbanColumnOpts" }, { "name": "clicked", "type": "out bool" }], "summary": "Always opens the container; clicked reports its interaction result." }, { "name": "MenuBar", "kind": "extension", "id": "extension|MenuBar|0|0|LayoutScope|UiText id;MenuBarOpts o = default||h29b57cc387904e3c1d3083b170ceaa309e6bc4a2535b4c27f22ecd482570e152", "signature": "LayoutScope MenuBar(UiText id, MenuBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "MenuBarOpts", "default": "default" }], "summary": "Menu bar: File / Edit / View along the top of a window. Each menu holds the usual menu items (cui_menu_item, cui_menu_separator, cui_menu_label). Once a menu is open, hovering another one switches to it. Alt (on its own) or F10 focuses the bar; arrows move between menus and items, Enter chooses, Esc steps back. Alt \u002B a menu\u0027s mnemonic letter opens it (the first letter of its label unless \u0060mnemonic\u0060 says otherwise)." }, { "name": "NodeContent", "kind": "extension", "id": "extension|NodeContent|0|0|LayoutScope|||h6a09d812c8b6d9c4a4f2fc6aedc000b977da707334c08c94ee4e6dd62573dd59", "signature": "LayoutScope NodeContent()", "extensionOn": "CuiSharp.Ui", "summary": "A row for ordinary components. They are laid out at 100% and scaled with the view, so their text is sharpest at 100% zoom and below." }, { "name": "ReorderItem", "kind": "method", "id": "method|ReorderItem|0|0|LayoutScope|int position||h407076f847f4d4f606b87a109b5a505ca525179c0bff6726382889745d33f038", "signature": "LayoutScope ReorderItem(int position)", "parameters": [{ "name": "position", "type": "int" }] }, { "name": "Row", "kind": "extension", "id": "extension|Row|0|0|LayoutScope|Box o = default||ha02204054f3ea32388e8e24fc8038f253dd0b3504b0e01b650d69265773cb67e", "signature": "LayoutScope Row(Box o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Box", "default": "default" }], "summary": "cui_row_begin" }, { "name": "Scroll", "kind": "extension", "id": "extension|Scroll|0|0|LayoutScope|ScrollOpts o = default||h7aa8eed4bb32b5efc54efbe5c6c7c19215ddf1d8ffed8dfc60e0c8d5234bc6f7", "signature": "LayoutScope Scroll(ScrollOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "ScrollOpts", "default": "default" }], "summary": "Scroll area with smooth scrolling and overlay scrollbars." }, { "name": "Split", "kind": "extension", "id": "extension|Split|0|0|LayoutScope|UiText id;ref float ratio;SplitOpts o = default||h83e75ece850ab88dc38fde4b7d1d8ae789128ab387c95d8025b6302e8f59269f", "signature": "LayoutScope Split(UiText id, ref float ratio, SplitOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "ratio", "type": "ref float" }, { "name": "o", "type": "SplitOpts", "default": "default" }], "summary": "Resizable split view: two panes with a draggable divider. \u0060ratio\u0060 is the size of the first pane in 0..1. Call cui_split_next between the panes." }, { "name": "Spotlight", "kind": "extension", "id": "extension|Spotlight|0|0|LayoutScope|UiText id;SpotlightOpts o = default||hfb70f807d4c0a2d5450e1ff296551adc78a8733ed06c6b0cb9ed7427add12f16", "signature": "LayoutScope Spotlight(UiText id, SpotlightOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "SpotlightOpts", "default": "default" }], "summary": "Spotlight card: a soft light follows the pointer across the card and lights the nearest stretch of its border. beam sends a light around the edge." }, { "name": "StatusBar", "kind": "extension", "id": "extension|StatusBar|0|0|LayoutScope|UiText id;StatusBarOpts o = default||h394ecf13ba82c0abd4bdf1a5b7cb5fce6102392c5a87cea283bc38fd2213e96a", "signature": "LayoutScope StatusBar(UiText id, StatusBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "StatusBarOpts", "default": "default" }], "summary": "Status bar: a thin bar along the bottom of a window, with a hairline on top and no fill of its own (put it in a box with the background you want). Items go left to right; cui_status_bar_spacer sends the rest to the right edge." }, { "name": "Toolbar", "kind": "extension", "id": "extension|Toolbar|0|0|LayoutScope|UiText id;ToolbarOpts o = default||hc5826ec43e3d8bf178cfa9f1605bd29bded229aae82424077aa18e1ae7e9cc61", "signature": "LayoutScope Toolbar(UiText id, ToolbarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "ToolbarOpts", "default": "default" }], "summary": "Toolbar: a row of compact icon buttons, toggles, separators and small text buttons. Icon only buttons show their tooltip as their name. Items that do not fit collapse, from the end, into a \u0022more\u0022 menu; an item chosen there returns true on the next frame." }, { "name": "VirtualList", "kind": "extension", "id": "extension|VirtualList|0|0|LayoutScope|UiText id;int count;float rowHeight;Size height;out int first;out int last||h90165d4490987ebd4d90276d5b449695a1f58d89f212149090827bfd08a055f2", "signature": "LayoutScope VirtualList(UiText id, int count, float rowHeight, Size height, out int first, out int last)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "count", "type": "int" }, { "name": "rowHeight", "type": "float" }, { "name": "height", "type": "Size" }, { "name": "first", "type": "out int" }, { "name": "last", "type": "out int" }], "summary": "Virtual list: only the visible rows are built, so lists with a million rows stay fast. Fills first/last with the visible range." }, { "name": "Localization", "kind": "property", "id": "property|Localization|0|0|Localization?||get;|h0a921bf7a95ff40f095f5e7f43cc6d636b74f025ae427be1edbd250e93f88e54", "signature": "Localization? Localization { get; }", "summary": "The table this surface published, or null for English." }, { "name": "Markdown", "kind": "extension", "id": "extension|Markdown|0|0|MarkdownResult|UiText id;UiText text;MarkdownOpts o = default||h61fdb7c6fb770f95ff734bbdf7b607bad9e23af8b25df034da34f408eed536fa", "signature": "MarkdownResult Markdown(UiText id, UiText text, MarkdownOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "MarkdownOpts", "default": "default" }], "summary": "Markdown view: renders your markdown text (UTF-8) as native content, every frame, without keeping a copy:" }, { "name": "Modifiers", "kind": "property", "id": "property|Modifiers|0|0|Mods||get;|h994504ae5710377741956558b3dae0b4e2fc318f73c5408e701c6675295af911", "signature": "Mods Modifiers { get; }", "summary": "The modifier keys held right now." }, { "name": "MonthCalendar", "kind": "extension", "id": "extension|MonthCalendar|0|0|MonthResult|UiText id;ref Date month;ReadOnlySpan\u003CMonthEvent\u003E events;ref Date selected;MonthOpts o = default||hacb7fb0b706addd9098a1569df3adbf8cff5b20d3b0bf01f49970bd839da7523", "signature": "MonthResult MonthCalendar(UiText id, ref Date month, ReadOnlySpan\u003CMonthEvent\u003E events, ref Date selected, MonthOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "month", "type": "ref Date" }, { "name": "events", "type": "ReadOnlySpan\u003CMonthEvent\u003E" }, { "name": "selected", "type": "ref Date" }, { "name": "o", "type": "MonthOpts", "default": "default" }], "summary": "Month calendar: a month grid with events. All-day and multi-day events are bars across the days they cover; timed events are a dot, a time and a title. A day with more than fits says \u0022\u002BN more\u0022 and opens a list of them. On a narrow screen the cells show colored dots and the selected day\u0027s events are listed under the grid." }, { "name": "Accordion", "kind": "extension", "id": "extension|Accordion|0|0|OpenScope|UiText title;ref bool open||h485829d02ee323bfa485f05285d6b19d78dcf02ed0a36c9ca4b1da7e70f540e5", "signature": "OpenScope Accordion(UiText title, ref bool open)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }], "summary": "Accordion / disclosure. Content animates its height." }, { "name": "Carousel", "kind": "extension", "id": "extension|Carousel|0|0|OpenScope|UiText id;int count;ref int index;CarouselOpts o = default||hbcf0bd0059da4b82e6417513dac4646a1ad558c1f46fc3c55b233c3367ef0a4e", "signature": "OpenScope Carousel(UiText id, int count, ref int index, CarouselOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "count", "type": "int" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "CarouselOpts", "default": "default" }], "summary": "Carousel: slides that you swipe, drag, scroll or page with the arrows and dots. Build every slide between begin and end: cui_carousel(ui, \u0022tour\u0022, 4, \u0026index, .height = 220) { for (int k = 0; k \u003C 4; k\u002B\u002B) cui_carousel_slide(ui) { ... } }" }, { "name": "ContextMenu", "kind": "extension", "id": "extension|ContextMenu|0|0|OpenScope|UiText id||hb5be2e863b82aa032d3281886a07b75e6a10932b22c9c06daa36e6ec8460b9c3", "signature": "OpenScope ContextMenu(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "Context menu: opens on right click over the previous component." }, { "name": "Dialog", "kind": "extension", "id": "extension|Dialog|0|0|OpenScope|UiText title;ref bool open;DialogOpts o = default||h08e9cf3a4bf5178fc47947da0ad76b53486c74b4ebd9c7e92e078d4cb3653668", "signature": "OpenScope Dialog(UiText title, ref bool open, DialogOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "DialogOpts", "default": "default" }], "summary": "Modal dialog. Shown while *open is true; closing sets it to false." }, { "name": "DockPanel", "kind": "extension", "id": "extension|DockPanel|0|0|OpenScope|UiText title;ref bool open;DockPanelOpts o = default||h983b85f4b88defb64e03c80c7fd67832cccc8b15fa3b11e9e9c8954cdd239b75", "signature": "OpenScope DockPanel(UiText title, ref bool open, DockPanelOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "DockPanelOpts", "default": "default" }], "summary": "Returns true while the panel\u0027s content should be built; then call cui_dock_panel_end." }, { "name": "ExpandableCard", "kind": "extension", "id": "extension|ExpandableCard|0|0|OpenScope|UiText title;ref bool open;ExpandableCardOpts o = default||h19637d079a2ee9821dfa4b6223ecf9694471f6157ed61e0139e207c045d56878", "signature": "OpenScope ExpandableCard(UiText title, ref bool open, ExpandableCardOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "ExpandableCardOpts", "default": "default" }], "summary": "Expandable card: a card whose header opens a body with a height spring." }, { "name": "HoverCard", "kind": "extension", "id": "extension|HoverCard|0|0|OpenScope|UiText id;HoverCardOpts o = default||hd31fbafd01c517229f3a54d9fbeed478689533294a82e16da99cb56ed4b82d37", "signature": "OpenScope HoverCard(UiText id, HoverCardOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "HoverCardOpts", "default": "default" }], "summary": "Hover card: rich content that appears when the pointer rests on the previous component, and stays while the pointer is over either." }, { "name": "Inspector", "kind": "extension", "id": "extension|Inspector|0|0|OpenScope|UiText id;InspectorOpts o = default||hdb3db7ec75e95846d7b987536583618b0b9445c2deb40a5f16828b5d2d735020", "signature": "OpenScope Inspector(UiText id, InspectorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "InspectorOpts", "default": "default" }], "summary": "Property inspector: labelled rows in folding groups, a label column on the left (drag the line between the columns to resize it) and an editor on the right. Every row returns true when its value changed. Groups end at the next group or at cui_inspector_end." }, { "name": "Menu", "kind": "extension", "id": "extension|Menu|0|0|OpenScope|UiText label;MenuOpts o = default||hec1b2b131f19c8f1eb37269016b963aed4449341b367ca89e175c1940294ab63", "signature": "OpenScope Menu(UiText label, MenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "MenuOpts", "default": "default" }], "summary": "Dropdown menu: a button that opens a menu. Items return true when chosen." }, { "name": "MenuBarMenu", "kind": "extension", "id": "extension|MenuBarMenu|0|0|OpenScope|UiText label;MenuBarMenuOpts o = default||h32c463fd3c1d7fa382d82e43f75326d1e14efad5ce907db7337df9ba3480688b", "signature": "OpenScope MenuBarMenu(UiText label, MenuBarMenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "MenuBarMenuOpts", "default": "default" }], "summary": "One menu of the bar. Returns true while its items should be built; call cui_menu_bar_menu_end only then." }, { "name": "Node", "kind": "extension", "id": "extension|Node|0|0|OpenScope|int nodeId;ref float x;ref float y;UiText title;NodeOpts o = default||hb7439d9c37ecca24fb0858272f81826919b789149f2a34acd1e1c44ff3266f62", "signature": "OpenScope Node(int nodeId, ref float x, ref float y, UiText title, NodeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "nodeId", "type": "int" }, { "name": "x", "type": "ref float" }, { "name": "y", "type": "ref float" }, { "name": "title", "type": "UiText" }, { "name": "o", "type": "NodeOpts", "default": "default" }], "summary": "A node at canvas position (*x, *y), updated while it is dragged. Returns true while the node is selected." }, { "name": "NodeEditor", "kind": "extension", "id": "extension|NodeEditor|0|0|OpenScope|UiText id;ref NodeView view;NodeEditorOpts o = default||h4e3c9c7bbaa0ed5b0750957f90a5c6c86f0fbfea8e96d4a8cacd68503ae7ad85", "signature": "OpenScope NodeEditor(UiText id, ref NodeView view, NodeEditorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "view", "type": "ref NodeView" }, { "name": "o", "type": "NodeEditorOpts", "default": "default" }], "summary": "Node editor: nodes with input and output pins on a canvas that pans and zooms, joined by curved links. You own the nodes, pins and links; the editor moves the node positions you pass and reports what the user did:" }, { "name": "PathBarMenu", "kind": "extension", "id": "extension|PathBarMenu|0|0|OpenScope|UiText id;ref int segment||h2aeb15441c53f332d451a287be64ba38ecdb4c05be10ad0f8a2412b04c3ad51a", "signature": "OpenScope PathBarMenu(UiText id, ref int segment)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "segment", "type": "ref int" }], "summary": "True while the menu of separator *segment is showing: build menu items for the children of that segment, then call cui_path_bar_menu_end." }, { "name": "Popover", "kind": "extension", "id": "extension|Popover|0|0|OpenScope|UiText id;PopoverOpts o = default||had5881283c2885b236d342cac799068e3bd7a8c2d4272ceb08bf27aa60e812f7", "signature": "OpenScope Popover(UiText id, PopoverOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "PopoverOpts", "default": "default" }], "summary": "Popover anchored to the previous component. Toggle it with cui_popover_toggle / cui_popover_open." }, { "name": "Reasoning", "kind": "extension", "id": "extension|Reasoning|0|0|OpenScope|UiText id;ReasoningOpts o = default||hd8c6837b660811abb55b30c3bcc35eb42dd2099f40a5a73eb35972aca384d12b", "signature": "OpenScope Reasoning(UiText id, ReasoningOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "ReasoningOpts", "default": "default" }], "summary": "Reasoning: a model\u0027s thinking. While thinking, the header shimmers and counts the seconds; afterwards it reads \u0022Thought for 12s\u0022 and the body folds away. Click the header to open or close it. Put text inside." }, { "name": "Sheet", "kind": "extension", "id": "extension|Sheet|0|0|OpenScope|UiText title;ref bool open;SheetOpts o = default||heb98d14c7c6250a83593cac259a583d17aa8636e9eaa839b64b4b5e3db2551d7", "signature": "OpenScope Sheet(UiText title, ref bool open, SheetOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "SheetOpts", "default": "default" }], "summary": "cui_sheet_begin" }, { "name": "Table", "kind": "extension", "id": "extension|Table|0|0|OpenScope|UiText id;ReadOnlySpan\u003CTableColumn\u003E columns;TableOpts o = default||hfd909896b0ab780a5093f3e917adaa2e23e03121d3b8e920a5305582c66486d0", "signature": "OpenScope Table(UiText id, ReadOnlySpan\u003CTableColumn\u003E columns, TableOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CTableColumn\u003E" }, { "name": "o", "type": "TableOpts", "default": "default" }], "summary": "Same as the overload with ref sort, but reports nothing back: the state pointer is null, so the widget stores no state the caller could read." }, { "name": "Table", "kind": "extension", "id": "extension|Table|0|0|OpenScope|UiText id;ReadOnlySpan\u003CTableColumn\u003E columns;ref TableSort sort;TableOpts o = default||hfda1db8518191e5d1de411deaefeed0d0f8d6838a3a1398abfa10ad4b36ff692", "signature": "OpenScope Table(UiText id, ReadOnlySpan\u003CTableColumn\u003E columns, ref TableSort sort, TableOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CTableColumn\u003E" }, { "name": "sort", "type": "ref TableSort" }, { "name": "o", "type": "TableOpts", "default": "default" }], "summary": "cui_table_begin_ex" }, { "name": "Tree", "kind": "extension", "id": "extension|Tree|0|0|OpenScope|UiText label;ref bool open;TreeOpts o = default||h4406f8e6a4e0d2f04e9468f25ca87def814144056b1780a4e869ea86998fdd10", "signature": "OpenScope Tree(UiText label, ref bool open, TreeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "TreeOpts", "default": "default" }], "summary": "cui_tree_begin" }, { "name": "UserMenu", "kind": "extension", "id": "extension|UserMenu|0|0|OpenScope|UiText name;UserMenuOpts o = default||h5323b7ef69eef4b5689f61a0c79b09355b7d2e1579ced7536bd574838f5eb096", "signature": "OpenScope UserMenu(UiText name, UserMenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "name", "type": "UiText" }, { "name": "o", "type": "UserMenuOpts", "default": "default" }], "summary": "User menu: an avatar, a name and a line of detail that opens a menu of account actions. Put menu items between begin and end." }, { "name": "PathBar", "kind": "extension", "id": "extension|PathBar|0|0|PathBarResult|UiText id;ReadOnlySpan\u003Cstring\u003E segments;PathBarOpts o = default||h5256da01c2004bf6922b836f1b3e9fbc43ed881a67e823c1895ab05f0949dd56", "signature": "PathBarResult PathBar(UiText id, ReadOnlySpan\u003Cstring\u003E segments, PathBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "segments", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "o", "type": "PathBarOpts", "default": "default" }], "summary": "Path bar: a breadcrumb for file and scene paths. Segments are clickable, the last one is the current place. Middle segments that do not fit collapse into a \u0022...\u0022 menu. With .menus, the chevron after segment k opens a menu you fill with the children of segment k (cui_path_bar_menu_begin). Click the empty part (or the current segment), or press Ctrl\u002BL, to type a path: Enter submits it, Esc or clicking away cancels." }, { "name": "Pipeline", "kind": "extension", "id": "extension|Pipeline|0|0|PipelineResult|UiText id;ReadOnlySpan\u003Cstring\u003E stages;ReadOnlySpan\u003CPipelineJob\u003E jobs;ref int selected;PipelineOpts o = default||h57164c455b64addad840b532dee1f4eb3acaba49d3b9d3b92afbab5d775aa6e7", "signature": "PipelineResult Pipeline(UiText id, ReadOnlySpan\u003Cstring\u003E stages, ReadOnlySpan\u003CPipelineJob\u003E jobs, ref int selected, PipelineOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "stages", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "jobs", "type": "ReadOnlySpan\u003CPipelineJob\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "PipelineOpts", "default": "default" }], "summary": "cui_pipeline_ex" }, { "name": "NowPlaying", "kind": "extension", "id": "extension|NowPlaying|0|0|PlayerEvents|UiText id;ref NowPlayingState np;NowPlayingOpts o = default||h9fae980dc34277b737fa803cbecd222d9c0a4c796e96fa70b56eeeefd0df2b25", "signature": "PlayerEvents NowPlaying(UiText id, ref NowPlayingState np, NowPlayingOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "np", "type": "ref NowPlayingState" }, { "name": "o", "type": "NowPlayingOpts", "default": "default" }], "summary": "Now playing card: artwork, title, artist, a scrubber and transport buttons." }, { "name": "Problems", "kind": "extension", "id": "extension|Problems|0|0|ProblemsResult|UiText id;ReadOnlySpan\u003CProblemItem\u003E diags;ProblemsOpts o = default||h6893f9c629255366d4079d33866236777cdcf107644e4109933ef620b8022eed", "signature": "ProblemsResult Problems(UiText id, ReadOnlySpan\u003CProblemItem\u003E diags, ProblemsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "diags", "type": "ReadOnlySpan\u003CProblemItem\u003E" }, { "name": "o", "type": "ProblemsOpts", "default": "default" }], "summary": "cui_problems_ex" }, { "name": "FlameSpanRect", "kind": "extension", "id": "extension|FlameSpanRect|0|0|RectF|uint flame;in FlameSpan span||haa242a01ec7cc85ea2f271378c3c8c334942d3f054714bdc41b27574a4327c82", "signature": "RectF FlameSpanRect(uint flame, in FlameSpan span)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "flame", "type": "uint" }, { "name": "span", "type": "in FlameSpan" }], "summary": "Where a span was drawn in the latest frame, in points (zero size when out of view). flame is the graph\u0027s id: cui_last_id(ui) right after the call." }, { "name": "LastRect", "kind": "property", "id": "property|LastRect|0|0|RectF||get;|ha796a249509c6af4a48352050e2d549bf5de307702a0f97fbc12276bc4b72b7b", "signature": "RectF LastRect { get; }", "summary": "Rectangle of the most recent component." }, { "name": "RectOf", "kind": "method", "id": "method|RectOf|0|0|RectF|UiText id||hf03418b016be6b023e965616caed52e5a7dd6a367152691bc14de3eb646ed966", "signature": "RectF RectOf(UiText id)", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "Rectangle of the widget with this string id." }, { "name": "RectOf", "kind": "method", "id": "method|RectOf|0|0|RectF|uint id||hc518e049cee7502b5770da6d0349e6e1b3764c8cc67fc33e3a92b5006d46ad99", "signature": "RectF RectOf(uint id)", "parameters": [{ "name": "id", "type": "uint" }], "summary": "Rectangle of any widget by id, for hit tests and overlays." }, { "name": "RegexTester", "kind": "extension", "id": "extension|RegexTester|0|0|RegexTesterResult|UiText id;ref string pattern;int patternCap;ref string text;int textCap;ref RegexFlags flags;RegexTesterOpts o = default||h53b2155ffb50f74e3cdbeb47580968a3b4c6256e0cbe584d8955de62e7015f50", "signature": "RegexTesterResult RegexTester(UiText id, ref string pattern, int patternCap, ref string text, int textCap, ref RegexFlags flags, RegexTesterOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "pattern", "type": "ref string" }, { "name": "patternCap", "type": "int" }, { "name": "text", "type": "ref string" }, { "name": "textCap", "type": "int" }, { "name": "flags", "type": "ref RegexFlags" }, { "name": "o", "type": "RegexTesterOpts", "default": "default" }], "summary": "A pattern field with flags over a test text: every match is highlighted in the text and its groups in their own colors, and the list below shows each match with its groups. Errors show under the pattern. Both buffers are yours and edited in place." }, { "name": "RequestBar", "kind": "extension", "id": "extension|RequestBar|0|0|RequestBarResult|UiText id;ref HttpMethod method;ref string url;int cap = 2048;RequestBarOpts o = default||h400ba2e5c7aed931b8c2e5897d16438378b1652b5dfca8f9a1057e88fcb46043", "signature": "RequestBarResult RequestBar(UiText id, ref HttpMethod method, ref string url, int cap = 2048, RequestBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "method", "type": "ref HttpMethod" }, { "name": "url", "type": "ref string" }, { "name": "cap", "type": "int", "default": "2048" }, { "name": "o", "type": "RequestBarOpts", "default": "default" }], "summary": "cui_request_bar_ex" }, { "name": "ResponseActions", "kind": "extension", "id": "extension|ResponseActions|0|0|ResponseEvents|UiText id;ref int vote;ResponseActionsOpts o = default||hc81149b07827af0f59a3269486e0d44858ac9bb48073ed5150872c876c11984c", "signature": "ResponseEvents ResponseActions(UiText id, ref int vote, ResponseActionsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "vote", "type": "ref int" }, { "name": "o", "type": "ResponseActionsOpts", "default": "default" }], "summary": "cui_response_actions_ex" }, { "name": "SchedulePicker", "kind": "extension", "id": "extension|SchedulePicker|0|0|ScheduleResult|UiText id;ref string cron;int cap = 128;ScheduleOpts o = default||h5e149aabf00cdaf3e05fa29f62f956e474f8fee28641ae71fde4eaaeb8801f91", "signature": "ScheduleResult SchedulePicker(UiText id, ref string cron, int cap = 128, ScheduleOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "cron", "type": "ref string" }, { "name": "cap", "type": "int", "default": "128" }, { "name": "o", "type": "ScheduleOpts", "default": "default" }], "summary": "A cron schedule edited the friendly way: every N minutes, hourly at a minute, daily at a time, weekly on chosen days, monthly on a day, or a custom expression. It reads and writes \u0060cron\u0060 (five fields: minute hour day month weekday) and shows what it means and when it runs next. Weekday and month names come from cui_set_strings." }, { "name": "State", "kind": "method", "id": "method|State|0|1|Span\u003CT\u003E|UiText id||h8505c3ecbdde9acd049fc2d5d47e3c43d0545b89b2b78cc39c0a3993049107cf", "signature": "Span\u003CT\u003E State\u003CT\u003E(UiText id) where T : unmanaged", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "Persistent, zeroed storage for a widget id, for values that must survive between frames (animation phases, drag state, hit-test scratch)." }, { "name": "State", "kind": "method", "id": "method|State|0|1|Span\u003CT\u003E|UiText id;Action onFree||hbfa4567fbf2313cbdd3cc11d8daae823c35ccab56e58f7f91c8635a98f228824", "signature": "Span\u003CT\u003E State\u003CT\u003E(UiText id, Action onFree) where T : unmanaged", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "onFree", "type": "Action" }], "summary": "Persistent, zeroed storage for a widget id, with a callback CUI runs when it throws that id\u0027s state away (about five idle seconds, or when the window closes)." }, { "name": "StackTrace", "kind": "extension", "id": "extension|StackTrace|0|0|StackTraceResult|UiText id;ReadOnlySpan\u003CStackFrame\u003E frames;StackTraceOpts o = default||h31d88e2151b353d79ca390bcbc46b17c2882a950f9cf2239a266b97eeaa36a9b", "signature": "StackTraceResult StackTrace(UiText id, ReadOnlySpan\u003CStackFrame\u003E frames, StackTraceOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "frames", "type": "ReadOnlySpan\u003CStackFrame\u003E" }, { "name": "o", "type": "StackTraceOpts", "default": "default" }], "summary": "An exception and its call stack: the error\u0027s type and message, then each frame\u0027s function and position. Runs of library frames fold into one row. A frame with source opens to show the lines around it, the failing line marked; the first frame of your own code starts open. A button copies the whole trace as text." }, { "name": "Terminal", "kind": "extension", "id": "extension|Terminal|0|0|TerminalResult|UiText id;Terminal terminal;TerminalOpts o = default||h3bb90fc3e22f3e909beb279d5867cc2751b7287513f1480f8c73f2e7405f14d7", "signature": "TerminalResult Terminal(UiText id, Terminal terminal, TerminalOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "terminal", "type": "Terminal" }, { "name": "o", "type": "TerminalOpts", "default": "default" }], "summary": "Draws terminal and reports what the user did in it." }, { "name": "TestExplorer", "kind": "extension", "id": "extension|TestExplorer|0|0|TestExplorerResult|UiText id;ReadOnlySpan\u003CTestItem\u003E items;TestExplorerOpts o = default||h9eeb18e60e88e82a908b873a27468f9699a55c61fb36da8ff356557f102e3862", "signature": "TestExplorerResult TestExplorer(UiText id, ReadOnlySpan\u003CTestItem\u003E items, TestExplorerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CTestItem\u003E" }, { "name": "o", "type": "TestExplorerOpts", "default": "default" }], "summary": "Test results as a tree: suites fold, each test shows its status and time, and a failure shows its message under it. A suite\u0027s status sums up its tests. The toolbar runs everything, counts results and filters by status and by name. Hover a row for its run button. Only the rows in view are built. Up and Down move, Left and Right fold, Enter activates. Items are in tree order with their depth; the statuses are the pipeline\u0027s." }, { "name": "MeasureText", "kind": "method", "id": "method|MeasureText|0|0|TextMetrics|UiText text;float size = 12f;Font font = Font.Body||h992b53c9418ee9ba19c1fd34ea05dca44fabbaac335e2ecdd31ccf760fd4f66f", "signature": "TextMetrics MeasureText(UiText text, float size = 12f, Font font = Font.Body)", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "size", "type": "float", "default": "12f" }, { "name": "font", "type": "Font", "default": "Font.Body" }], "summary": "Width and height of a single line of text, without wrapping." }, { "name": "Theme", "kind": "property", "id": "property|Theme|0|0|Theme||get;set;|h898a02cacbcba9a905f94fba0740f328f89ab1e042e5fea5ff9d21a93e3e297d", "signature": "Theme Theme { get; set; }", "summary": "The theme this frame draws with. Assign to switch, from anywhere inside a frame." }, { "name": "Style", "kind": "property", "id": "property|Style|0|0|ThemeStyle||get;|h4a1ba7271e3ed1e378ccdc5f7d6055b8fea5756bf3605b1214e29e77e4e7860a", "signature": "ThemeStyle Style { get; }", "summary": "The design tokens this frame draws with \u2014 radii, control heights, text and heading sizes, the motion multiplier and the palette \u2014 as a live view to read and to assign." }, { "name": "TimeHistogram", "kind": "extension", "id": "extension|TimeHistogram|0|0|TimeHistogramResult|UiText id;double start;double bucketSeconds;int buckets;ReadOnlySpan\u003CHistogramSeries\u003E series;ref double selStart;ref double selEnd;TimeHistogramOpts o = default||hfc0784cb52bfd6a3615191c61545b37c444f2ce965ef93b671333df27d4bf165", "signature": "TimeHistogramResult TimeHistogram(UiText id, double start, double bucketSeconds, int buckets, ReadOnlySpan\u003CHistogramSeries\u003E series, ref double selStart, ref double selEnd, TimeHistogramOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "start", "type": "double" }, { "name": "bucketSeconds", "type": "double" }, { "name": "buckets", "type": "int" }, { "name": "series", "type": "ReadOnlySpan\u003CHistogramSeries\u003E" }, { "name": "selStart", "type": "ref double" }, { "name": "selEnd", "type": "ref double" }, { "name": "o", "type": "TimeHistogramOpts", "default": "default" }], "summary": "Event counts over time, stacked by series (log levels, status classes), as above a log search. Drag across it to select a time range, click to clear. Hover a bar for its time and counts. Times are Unix seconds." }, { "name": "Tour", "kind": "extension", "id": "extension|Tour|0|0|TourAction|UiText id;ReadOnlySpan\u003CTourStep\u003E steps;ref int step;TourOpts o = default||h7a480bb022c619036d7ca1d19006a7d5aa923a84ea3fc62b5eae88ea7b1088c8", "signature": "TourAction Tour(UiText id, ReadOnlySpan\u003CTourStep\u003E steps, ref int step, TourOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "steps", "type": "ReadOnlySpan\u003CTourStep\u003E" }, { "name": "step", "type": "ref int" }, { "name": "o", "type": "TourOpts", "default": "default" }], "summary": "What happened this frame: one of CUI_TOUR_*." }, { "name": "TraceView", "kind": "extension", "id": "extension|TraceView|0|0|TraceResult|UiText id;ReadOnlySpan\u003CTraceTrack\u003E tracks;ReadOnlySpan\u003CTraceSpan\u003E spans;ref TraceViewState view;ref int selected;TraceOpts o = default||h7ab8ce526cada0bd73b947180d909dfa39f159b47ac14940ec53b67f28158b92", "signature": "TraceResult TraceView(UiText id, ReadOnlySpan\u003CTraceTrack\u003E tracks, ReadOnlySpan\u003CTraceSpan\u003E spans, ref TraceViewState view, ref int selected, TraceOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tracks", "type": "ReadOnlySpan\u003CTraceTrack\u003E" }, { "name": "spans", "type": "ReadOnlySpan\u003CTraceSpan\u003E" }, { "name": "view", "type": "ref TraceViewState" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "TraceOpts", "default": "default" }], "summary": "A tracing timeline: one lane per thread, process or service, each with its nested spans, on one time ruler, with markers (frames, GC pauses, deploys) drawn across every lane. Wheel zooms around the pointer, Shift\u002Bwheel or a drag pans, click selects a span, Shift\u002Bdrag measures a time range. A lane\u0027s name folds it. Keys: Left and Right step through the selected span\u0027s lane, \u002B and - zoom, F fits, Esc clears. Spans must be sorted by track, depth and start (cui_trace_sort), with no overlap within a depth of a track. Like the flame graph, only what is in view is visited." }, { "name": "TreeTable", "kind": "extension", "id": "extension|TreeTable|0|0|TreeTableEvents|UiText id;ReadOnlySpan\u003CGridColumn\u003E columns;TreeNode[] nodes;TreeTableRow row;TreeTableOpts o = default;Func\u003Cint, string?\u003E? label = null||h5ad3a7ebd26d1298c20becc826efa4b5392b7ddbca0d68cfbb1f162eb572fd75", "signature": "TreeTableEvents TreeTable(UiText id, ReadOnlySpan\u003CGridColumn\u003E columns, TreeNode[] nodes, TreeTableRow row, TreeTableOpts o = default, Func\u003Cint, string?\u003E? label = null)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CGridColumn\u003E" }, { "name": "nodes", "type": "TreeNode[]" }, { "name": "row", "type": "TreeTableRow" }, { "name": "o", "type": "TreeTableOpts", "default": "default" }, { "name": "label", "type": "Func\u003Cint, string?\u003E?", "default": "null" }], "summary": "Draws a tree without sort or keyboard state: the table keeps no per-id interaction state, which is all a static tree needs." }, { "name": "TreeTable", "kind": "extension", "id": "extension|TreeTable|0|0|TreeTableEvents|UiText id;ReadOnlySpan\u003CGridColumn\u003E columns;TreeNode[] nodes;TreeTableRow row;ref TableSort sort;ref int cursor;TreeTableOpts o = default;Func\u003Cint, string?\u003E? label = null||hdc8db941f4c0a5cc7a1e81a316f1e56fbc2468020569fb6cacf3307bec596a1d", "signature": "TreeTableEvents TreeTable(UiText id, ReadOnlySpan\u003CGridColumn\u003E columns, TreeNode[] nodes, TreeTableRow row, ref TableSort sort, ref int cursor, TreeTableOpts o = default, Func\u003Cint, string?\u003E? label = null)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CGridColumn\u003E" }, { "name": "nodes", "type": "TreeNode[]" }, { "name": "row", "type": "TreeTableRow" }, { "name": "sort", "type": "ref TableSort" }, { "name": "cursor", "type": "ref int" }, { "name": "o", "type": "TreeTableOpts", "default": "default" }, { "name": "label", "type": "Func\u003Cint, string?\u003E?", "default": "null" }], "summary": "Draws nodes as a tree with columns, calling row once per visible node to fill its cells." }, { "name": "Uptime", "kind": "extension", "id": "extension|Uptime|0|0|UptimeResult|UiText id;ReadOnlySpan\u003CUptimeService\u003E services;UptimeOpts o = default||h60131e1db59b8a809d222a6d6dee840e1ccde25607a2c4178418eef8a488dccb", "signature": "UptimeResult Uptime(UiText id, ReadOnlySpan\u003CUptimeService\u003E services, UptimeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "services", "type": "ReadOnlySpan\u003CUptimeService\u003E" }, { "name": "o", "type": "UptimeOpts", "default": "default" }], "summary": "A status page: each service with its current state, its uptime over the period, and one bar per day colored by availability (gray without data). Hover a bar for its day and uptime. On a narrow panel only the most recent days that fit are shown." }, { "name": "MousePosition", "kind": "property", "id": "property|MousePosition|0|0|ValueTuple\u003Cfloat, float\u003E||get;|h02b51b7243b762c56e53482522c31644d844cd12e36381af09a9700cd549db93", "signature": "ValueTuple\u003Cfloat, float\u003E MousePosition { get; }", "summary": "Pointer position in points, top-left origin." }, { "name": "ViewportSize", "kind": "method", "id": "method|ViewportSize|0|0|ValueTuple\u003Cfloat, float\u003E|||h7a26e2e5e6b39edb5a26a6e7adde40edf0bcd8599f3d7629ea37d02c109493a2", "signature": "ValueTuple\u003Cfloat, float\u003E ViewportSize()" }, { "name": "Waterfall", "kind": "extension", "id": "extension|Waterfall|0|0|WaterfallResult|UiText id;ReadOnlySpan\u003CNetRequest\u003E requests;ref int selected;WaterfallOpts o = default||h419b5ccb1a80d64ac3cce058fa79a3ac44664f29e8c9685c083cf8552c6714e6", "signature": "WaterfallResult Waterfall(UiText id, ReadOnlySpan\u003CNetRequest\u003E requests, ref int selected, WaterfallOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "requests", "type": "ReadOnlySpan\u003CNetRequest\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "WaterfallOpts", "default": "default" }], "summary": "HTTP requests as a table with a timing bar each: queued, DNS, connect, TLS, waiting for the first byte and downloading, on one time scale with the page\u0027s DOMContentLoaded and load lines. Hover a bar for the breakdown. Narrow panels drop the type and size columns. Only the rows in view are built. Up and Down move the selection." }, { "name": "Alert", "kind": "extension", "id": "extension|Alert|0|0|bool|UiText title;AlertOpts o = default||hb9b8786bcd05d91b48b9d5b7e7c8dfe99eab8a18cccf61ee5708920e8c2c65a0", "signature": "bool Alert(UiText title, AlertOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "AlertOpts", "default": "default" }], "summary": "Inline alert. Returns false once dismissed (when dismissible)." }, { "name": "Banner", "kind": "extension", "id": "extension|Banner|0|0|bool|UiText text;ref bool open;BannerOpts o = default||hded3699dd8c0717c5f0d2f8a60f5b76364aaa539a156402e1d68fed1e8b19dd6", "signature": "bool Banner(UiText text, ref bool open, BannerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "BannerOpts", "default": "default" }], "summary": "Announcement banner across the top of a view. Collapses smoothly when dismissed (*open becomes false). Returns true when the action is clicked." }, { "name": "Button", "kind": "extension", "id": "extension|Button|0|0|bool|UiText label;ButtonOpts o = default||h0824ce1ee9db1a3102bbbc57b5f43c838d0aac0c456dc9d0f5ddf3a8bb9eaae3", "signature": "bool Button(UiText label, ButtonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "ButtonOpts", "default": "default" }], "summary": "cui_button_ex" }, { "name": "Calendar", "kind": "extension", "id": "extension|Calendar|0|0|bool|UiText id;ref Date value||he2d734019c4ba63e626cffe267911189a15dbf5b403eff0fc6fd9898d4334662", "signature": "bool Calendar(UiText id, ref Date value)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref Date" }], "summary": "cui_calendar" }, { "name": "Checkbox", "kind": "extension", "id": "extension|Checkbox|0|0|bool|UiText label;ref bool value;CheckOpts o = default||h5e553956f3358e286491451619c072577baad5689e0ba2b38257460dced857ee", "signature": "bool Checkbox(UiText label, ref bool value, CheckOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref bool" }, { "name": "o", "type": "CheckOpts", "default": "default" }], "summary": "cui_checkbox_ex" }, { "name": "Chip", "kind": "extension", "id": "extension|Chip|0|0|bool|UiText label;ref bool selected;ChipOpts o = default||h4ff38ab2a9a818e7526990ee6c9e6f19f63a1138e5fb79d08917e25c0d0a78ee", "signature": "bool Chip(UiText label, ref bool selected, ChipOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "selected", "type": "ref bool" }, { "name": "o", "type": "ChipOpts", "default": "default" }], "summary": "cui_chip_ex" }, { "name": "Citation", "kind": "extension", "id": "extension|Citation|0|0|bool|int number;in Source source||ha19b93ee36f160c6271aaa8db69ab4937531c6d0be1bdcd8e208aa7eb206aee7", "signature": "bool Citation(int number, in Source source)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "number", "type": "int" }, { "name": "source", "type": "in Source" }], "summary": "cui_citation" }, { "name": "ColorPicker", "kind": "extension", "id": "extension|ColorPicker|0|0|bool|UiText id;ref Color value||h337517bd7bbb67ac9f2a0f2cd3561338116b8bbce4aab6736de92c41bd706e10", "signature": "bool ColorPicker(UiText id, ref Color value)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref Color" }], "summary": "cui_color_picker" }, { "name": "ConfirmButton", "kind": "extension", "id": "extension|ConfirmButton|0|0|bool|UiText label;ConfirmOpts o = default||ha173e8d04000010db239a95f45b5a65630e6c3a32565f48acd835a79732b2383", "signature": "bool ConfirmButton(UiText label, ConfirmOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "ConfirmOpts", "default": "default" }], "summary": "Two step destructive button: the first click morphs it into a confirm state with a countdown, the second click confirms. Returns true once." }, { "name": "ConfirmPopover", "kind": "extension", "id": "extension|ConfirmPopover|0|0|bool|UiText id;ConfirmPopoverOpts o = default||h1c2e0982b9c59e893eae1a02030bc1dcf3a82997c3f51101dbeae1b45e768ee2", "signature": "bool ConfirmPopover(UiText id, ConfirmPopoverOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "ConfirmPopoverOpts", "default": "default" }], "summary": "Confirm popover: a small question anchored to the previous component. Open it with cui_popover_open(ui, id). Returns true when confirmed." }, { "name": "ControlTile", "kind": "extension", "id": "extension|ControlTile|0|0|bool|UiText label;ref bool on;TileOpts o = default||h030def7b2183e0b26721bad6afc91a710eb6f7cf309e2889db383c64f1477cbd", "signature": "bool ControlTile(UiText label, ref bool on, TileOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "on", "type": "ref bool" }, { "name": "o", "type": "TileOpts", "default": "default" }], "summary": "Control tile: a large toggle with an icon, a label and a state line." }, { "name": "CopyButton", "kind": "extension", "id": "extension|CopyButton|0|0|bool|UiText id;UiText text||hbc740c15d3716aa5400fb730217b29b8462ce4a82a1b3b2c9884600f4fbfe844", "signature": "bool CopyButton(UiText id, UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }], "summary": "Icon button that copies text to the clipboard and confirms with a check. Keyboard focus stays on the button when the check appears or disappears." }, { "name": "Cropper", "kind": "extension", "id": "extension|Cropper|0|0|bool|UiText id;ulong tex;int imageW;int imageH;ref RectF crop;CropperOpts o = default||hc4433b320e719d68cf000799d9f75543139b19ed26265d5d5b7ef0e7cb29a2cf", "signature": "bool Cropper(UiText id, ulong tex, int imageW, int imageH, ref RectF crop, CropperOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tex", "type": "ulong" }, { "name": "imageW", "type": "int" }, { "name": "imageH", "type": "int" }, { "name": "crop", "type": "ref RectF" }, { "name": "o", "type": "CropperOpts", "default": "default" }], "summary": "Returns true when the crop changed." }, { "name": "DataGridCellEdit", "kind": "extension", "id": "extension|DataGridCellEdit|0|0|bool|ref string buf;int cap||h36d248e6c06ee8f7c129163000d2afe51274d879f2f2a6dd8f75e48579c04c63", "signature": "bool DataGridCellEdit(ref string buf, int cap)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }], "summary": "Editable text cell: double click (or Enter on the cursor row) to edit, Enter or clicking away commits, Esc reverts. True when committed." }, { "name": "DataGridEdit", "kind": "extension", "id": "extension|DataGridEdit|0|0|bool|ref string buf;int cap||h4a0248a3c48520cf419b921b7953de24c458026bb86ab7bd00ba08e5d194ef65", "signature": "bool DataGridEdit(ref string buf, int cap)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }], "summary": "The same editable text, inside the current cell (after an avatar, say)." }, { "name": "DataGridRow", "kind": "extension", "id": "extension|DataGridRow|0|0|bool|int row||h5fe4fdf7429d5b5aac0325fa0af56631c8d8a1ff342c03251fe30d766d9f9225", "signature": "bool DataGridRow(int row)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "row", "type": "int" }], "summary": "true when the row was clicked" }, { "name": "DatePicker", "kind": "extension", "id": "extension|DatePicker|0|0|bool|UiText id;ref Date value;DateOpts o = default||h993523ace680cddb6c1434059ef52f3fb34d716bed495d79d97b148118785ee2", "signature": "bool DatePicker(UiText id, ref Date value, DateOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref Date" }, { "name": "o", "type": "DateOpts", "default": "default" }], "summary": "cui_date_picker_ex" }, { "name": "DateRangePicker", "kind": "extension", "id": "extension|DateRangePicker|0|0|bool|UiText id;ref DateRange range;DateRangeOpts o = default||h9daa98cbb5461612c53362c329641eba719561905ce1865087421113c0ee84d1", "signature": "bool DateRangePicker(UiText id, ref DateRange range, DateRangeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "range", "type": "ref DateRange" }, { "name": "o", "type": "DateRangeOpts", "default": "default" }], "summary": "cui_date_range_picker_ex" }, { "name": "DateToday", "kind": "method", "id": "method|DateToday|0|0|bool|out Date value||h2030bff62c6a99d4c47e3fa2a09f8c125232327d048faf8c41c853eeafa84679", "signature": "bool DateToday(out Date value)", "parameters": [{ "name": "value", "type": "out Date" }] }, { "name": "DockItem", "kind": "extension", "id": "extension|DockItem|0|0|bool|UiText icon;UiText label;DockItemOpts o = default||h6868974ee881c1a4f660ae0207737b226f6822fd1064babdbda9860825db89d1", "signature": "bool DockItem(UiText icon, UiText label, DockItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "label", "type": "UiText" }, { "name": "o", "type": "DockItemOpts", "default": "default" }], "summary": "cui_dock_item_ex" }, { "name": "DockLoad", "kind": "extension", "id": "extension|DockLoad|0|0|bool|UiText id;UiText text||hffd91787faf77c3d390dfe7deb8bb16df93eb717a31ba3fd4130eac2e2e134b4", "signature": "bool DockLoad(UiText id, UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }], "summary": "cui_dock_load" }, { "name": "EmojiFontLoadFile", "kind": "extension", "id": "extension|EmojiFontLoadFile|0|0|bool|UiText path||hf9ed3d99d8c528c9df41c7bca5721cb0eb461686e0a48bc35d1cf718f13ba0f6", "signature": "bool EmojiFontLoadFile(UiText path)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "path", "type": "UiText" }], "summary": "Color emoji come from an emoji font: the system\u0027s (cui_emoji_font_load_system, which the picker calls by itself when nothing is loaded) or one the app ships. Bitmap color fonts (sbix as on macOS, CBDT as on Linux and Android) and layered ones (COLR version 0, as on Windows) are read, as is a plain outline font for one-color emoji. Sequences with skin tones, joined people and flags are looked up through the font\u0027s ligatures. Big fonts are read from the file as needed rather than loaded whole. Drawn emoji are kept in one texture and reused." }, { "name": "EmojiFontLoadMemory", "kind": "extension", "id": "extension|EmojiFontLoadMemory|0|0|bool|ReadOnlySpan\u003Cbyte\u003E data;bool copy||h8f31cf994f46f3f46e0c7fdefbd7d39be865056bcb0700421f0fee7be7142342", "signature": "bool EmojiFontLoadMemory(ReadOnlySpan\u003Cbyte\u003E data, bool copy)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "data", "type": "ReadOnlySpan\u003Cbyte\u003E" }, { "name": "copy", "type": "bool" }], "summary": "cui_emoji_font_load_memory" }, { "name": "EmojiFontLoadSystem", "kind": "extension", "id": "extension|EmojiFontLoadSystem|0|0|bool|||he4386dbb08b9f31fd0c23d6cb333b56d4babcbd26d5e38fa72a56bc89a6bac12", "signature": "bool EmojiFontLoadSystem()", "extensionOn": "CuiSharp.Ui", "summary": "cui_emoji_font_load_system" }, { "name": "EmojiSupported", "kind": "extension", "id": "extension|EmojiSupported|0|0|bool|UiText utf8||he0adda46557f9d84dbc4c6feb4f995d99998ffae9bdabd33371c8df1fc7899fb", "signature": "bool EmojiSupported(UiText utf8)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "utf8", "type": "UiText" }], "summary": "the font (or platform) can draw it" }, { "name": "EmptyState", "kind": "extension", "id": "extension|EmptyState|0|0|bool|UiText title;EmptyOpts o = default||h3447935b9ffe834dcbe57094c2bd062fa6216fbbd3d59e4e2527f7da36f6f369", "signature": "bool EmptyState(UiText title, EmptyOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "EmptyOpts", "default": "default" }], "summary": "Empty state. Returns true when its action button is clicked." }, { "name": "ExpandableText", "kind": "extension", "id": "extension|ExpandableText|0|0|bool|UiText id;UiText text;ExpandableTextOpts o = default||h0853336278f85890679dc7cd1bc9eb77a34f2cf61567d87164045778c0f8d6ad", "signature": "bool ExpandableText(UiText id, UiText text, ExpandableTextOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "ExpandableTextOpts", "default": "default" }], "summary": "Text clamped to a few lines with a fade and Show more / Show less." }, { "name": "Fader", "kind": "extension", "id": "extension|Fader|0|0|bool|UiText id;ref float value;float min;float max;FaderOpts o = default||h8266bbe632feda1ec1b4b87bd7f41cc9e107e496de7dfb957c9d87f1e63f8835", "signature": "bool Fader(UiText id, ref float value, float min, float max, FaderOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "FaderOpts", "default": "default" }], "summary": "cui_fader_ex" }, { "name": "FileDragActive", "kind": "property", "id": "property|FileDragActive|0|0|bool||get;|hc2e815e1a71bc6a75b5e19ff96d7c1ef201253bc7b4d7f60949c96df158538ac", "signature": "bool FileDragActive { get; }", "summary": "True while files are being dragged over the window, for a drop target to light up." }, { "name": "FilePicker", "kind": "extension", "id": "extension|FilePicker|0|0|bool|UiText id;ref bool open;ref string out;int outCap = 1024;FilePickerOpts o = default||hb1ce6182678b8b2ca569fff7fdf6d4a781314228ed80d25a4c02a48b368dd07f", "signature": "bool FilePicker(UiText id, ref bool open, ref string @out, int outCap = 1024, FilePickerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "out", "type": "ref string" }, { "name": "outCap", "type": "int", "default": "1024" }, { "name": "o", "type": "FilePickerOpts", "default": "default" }], "summary": "True once, with the chosen path in out, when the dialog is confirmed; *open turns false then, or on Cancel and Esc." }, { "name": "FilterBar", "kind": "method", "id": "method|FilterBar|0|0|bool|UiText id;ReadOnlySpan\u003CFilterField\u003E fields;Span\u003Cuint\u003E selected;ref string search;int searchCap = 256||h05b35fdecfc879680ca00e844554bef0fb0d2b9ee533e72f50a25b4cb5e4be7a", "signature": "bool FilterBar(UiText id, ReadOnlySpan\u003CFilterField\u003E fields, Span\u003Cuint\u003E selected, ref string search, int searchCap = 256)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "fields", "type": "ReadOnlySpan\u003CFilterField\u003E" }, { "name": "selected", "type": "Span\u003Cuint\u003E" }, { "name": "search", "type": "ref string" }, { "name": "searchCap", "type": "int", "default": "256" }], "summary": "Filter chips, one dropdown per field plus a search. selected holds one option bitmask per field; returns true on any change." }, { "name": "HistogramSlider", "kind": "extension", "id": "extension|HistogramSlider|0|0|bool|UiText label;ReadOnlySpan\u003Cfloat\u003E bins;ref float lo;ref float hi;float min;float max;HistogramOpts o = default||h72cc41a613543670d7d773f53d3ed618f4ca5dda5c9cf710a8ea0c0745f9816a", "signature": "bool HistogramSlider(UiText label, ReadOnlySpan\u003Cfloat\u003E bins, ref float lo, ref float hi, float min, float max, HistogramOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "bins", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "lo", "type": "ref float" }, { "name": "hi", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "HistogramOpts", "default": "default" }], "summary": "Range slider over a histogram of the data it filters." }, { "name": "HoldButton", "kind": "extension", "id": "extension|HoldButton|0|0|bool|UiText label;HoldOpts o = default||ha44fcfbb972ecfbea614fbc280b43abd9c243c1e05ac46d39ac240667e1b2a30", "signature": "bool HoldButton(UiText label, HoldOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "HoldOpts", "default": "default" }], "summary": "Hold to confirm: a destructive action that fills while held and fires when full. Returns true once." }, { "name": "IconButton", "kind": "extension", "id": "extension|IconButton|0|0|bool|UiText icon;ButtonOpts o = default||h5215045b3b917c5c328653c82d759d884c905c9bee3fd2bcae9c23b95552a5e2", "signature": "bool IconButton(UiText icon, ButtonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "o", "type": "ButtonOpts", "default": "default" }], "summary": "Square/round button with only an icon. Give it a tooltip so it has a name." }, { "name": "ImageCompare", "kind": "extension", "id": "extension|ImageCompare|0|0|bool|UiText id;ulong before;ulong after;ref float pos;CompareOpts o = default||hbf70b5332c704791b825e9cb8d9e14cd4661dfc72efb9bed54e7afc61aac7221", "signature": "bool ImageCompare(UiText id, ulong before, ulong after, ref float pos, CompareOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "before", "type": "ulong" }, { "name": "after", "type": "ulong" }, { "name": "pos", "type": "ref float" }, { "name": "o", "type": "CompareOpts", "default": "default" }], "summary": "Before and after: drag the divider to compare two images. *pos is 0..1." }, { "name": "ImageViewer", "kind": "extension", "id": "extension|ImageViewer|0|0|bool|UiText id;ulong tex;int imageW;int imageH;ref ImageView view;ImageViewerOpts o = default||hfd49614f5ed12268c88fafc87f200f9ba92c7a0989e02c2476dadf0bb0fab3b3", "signature": "bool ImageViewer(UiText id, ulong tex, int imageW, int imageH, ref ImageView view, ImageViewerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tex", "type": "ulong" }, { "name": "imageW", "type": "int" }, { "name": "imageH", "type": "int" }, { "name": "view", "type": "ref ImageView" }, { "name": "o", "type": "ImageViewerOpts", "default": "default" }], "summary": "Returns true when the view changed." }, { "name": "InspectorGroup", "kind": "extension", "id": "extension|InspectorGroup|0|0|bool|UiText title;ref bool open||hba33317836e4529b513b762245b52b82d2fc8fd252b7ae2174d7ffdf7ff08018", "signature": "bool InspectorGroup(UiText title, ref bool open)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }], "summary": "A folding group header. Build its rows only when this returns true (it stays true while the group animates closed). open may be NULL for a plain section that does not fold." }, { "name": "IsDisabled", "kind": "property", "id": "property|IsDisabled|0|0|bool||get;|h66819bb8e34991aa0b9a8fdf312d84bcc577f1aed8196c14e9cfc9792bab4b6e", "signature": "bool IsDisabled { get; }", "summary": "True inside a Disabled scope (or one a parent opened)." }, { "name": "JsonView", "kind": "extension", "id": "extension|JsonView|0|0|bool|UiText id;UiText json;JsonOpts o = default||h206112d6d2798b04c8b2e35b11a492fe5022438268206f218c32f29f9efa0bbf", "signature": "bool JsonView(UiText id, UiText json, JsonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "json", "type": "UiText" }, { "name": "o", "type": "JsonOpts", "default": "default" }], "summary": "JSON viewer: a collapsible tree with typed colors and item counts. Returns false when the text is not valid JSON (and shows the error)." }, { "name": "Kanban", "kind": "extension", "id": "extension|Kanban|0|0|bool|UiText id;out KanbanMove kanbanmove;DrawFn body||h06459ebde22b2b48e212f80454450eb468aac078e18e50dee8f7aa756afdbe5e", "signature": "bool Kanban(UiText id, out KanbanMove kanbanmove, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "kanbanmove", "type": "out KanbanMove" }, { "name": "body", "type": "DrawFn" }], "summary": "cui_kanban_begin The card was dropped into another column, and the move is written into the out parameter." }, { "name": "KeyDown", "kind": "method", "id": "method|KeyDown|0|0|bool|Key key||h8b8a390f57bfe976c9fae2d30fec99be77322f69944968534c26bc08482cb159", "signature": "bool KeyDown(Key key)", "parameters": [{ "name": "key", "type": "Key" }], "summary": "True while the key is held (with auto-repeat)." }, { "name": "KeyPressed", "kind": "method", "id": "method|KeyPressed|0|0|bool|Key key||hd4bc534b9e8b12976f0c38f87635500fca89a9d6949ea0a103354f41e6d39700", "signature": "bool KeyPressed(Key key)", "parameters": [{ "name": "key", "type": "Key" }], "summary": "True on the frame the key went down, including repeats." }, { "name": "Knob", "kind": "extension", "id": "extension|Knob|0|0|bool|UiText id;ref float value;float min;float max;KnobOpts o = default||hfceb051da509c5e36d4bd22400b42f24a8cc0da8ba2c27a23c8e378855c66680", "signature": "bool Knob(UiText id, ref float value, float min, float max, KnobOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "KnobOpts", "default": "default" }], "summary": "Knob, fader and level meter: the controls of audio, synth and mixer panels." }, { "name": "KvEditor", "kind": "extension", "id": "extension|KvEditor|0|0|bool|UiText id;Span\u003CKeyValue\u003E pairs;ref int count;KvEditorOpts o = default||h33bb0c1c82dae67745ff12456422881b7a82c634ea86250511129fa68d145901", "signature": "bool KvEditor(UiText id, Span\u003CKeyValue\u003E pairs, ref int count, KvEditorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "pairs", "type": "Span\u003CKeyValue\u003E" }, { "name": "count", "type": "ref int" }, { "name": "o", "type": "KvEditorOpts", "default": "default" }], "summary": "cui_kv_editor_ex" }, { "name": "LevelMeter", "kind": "extension", "id": "extension|LevelMeter|0|0|bool|UiText id;ReadOnlySpan\u003Cfloat\u003E levels;LevelMeterOpts o = default||he2b90272968549a2bc948844fa0f2e5fcb787783f5c0716cf3d8c48db532ab7e", "signature": "bool LevelMeter(UiText id, ReadOnlySpan\u003Cfloat\u003E levels, LevelMeterOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "levels", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "o", "type": "LevelMeterOpts", "default": "default" }], "summary": "Returns true when the clip light was clicked to clear it." }, { "name": "Link", "kind": "extension", "id": "extension|Link|0|0|bool|UiText text||h20b90df40ad793aa00f00bae1aeddd8c78d8d1ee7eccdf7f709db8b78317b57a", "signature": "bool Link(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "cui_link" }, { "name": "ListItem", "kind": "extension", "id": "extension|ListItem|0|0|bool|UiText title;ListItemOpts o = default||h59240e7a8fd8d1115830e25d32bfc60e47f14e4645e8e48b58281c710be7f5c9", "signature": "bool ListItem(UiText title, ListItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "ListItemOpts", "default": "default" }], "summary": "List item: a selectable row with optional icon, subtitle and trailing text." }, { "name": "LoadImage", "kind": "method", "id": "method|LoadImage|0|0|bool|UiText path;out ulong texture;out int width;out int height||hfe19783db558936a04580a0831ac4289470f120ccd1ef3163fcee3e05649da1f", "signature": "bool LoadImage(UiText path, out ulong texture, out int width, out int height)", "parameters": [{ "name": "path", "type": "UiText" }, { "name": "texture", "type": "out ulong" }, { "name": "width", "type": "out int" }, { "name": "height", "type": "out int" }], "summary": "Decodes a PNG or JPEG from disk into a texture and reports its pixel size. Returns false when the file cannot be read or decoded; the texture is then 0. Release it with DestroyImage." }, { "name": "MenuItem", "kind": "extension", "id": "extension|MenuItem|0|0|bool|UiText label;MenuItemOpts o = default||h6f02a24b8c3e14f743f1164e34c40e0c32e7647a378fc18f6fac4bd77708b604", "signature": "bool MenuItem(UiText label, MenuItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "MenuItemOpts", "default": "default" }], "summary": "cui_menu_item_ex" }, { "name": "ModelPicker", "kind": "extension", "id": "extension|ModelPicker|0|0|bool|UiText id;ReadOnlySpan\u003CModel\u003E models;ref int selected;ModelPickerOpts o = default||h30f09bcdbcd0511d67feaab5ce1eb2d84b0769c8eb387e2675cdc4b9faf9d869", "signature": "bool ModelPicker(UiText id, ReadOnlySpan\u003CModel\u003E models, ref int selected, ModelPickerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "models", "type": "ReadOnlySpan\u003CModel\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "ModelPickerOpts", "default": "default" }], "summary": "Model picker: the current model on a button; a list with details opens." }, { "name": "MoneyInput", "kind": "extension", "id": "extension|MoneyInput|0|0|bool|UiText id;ref double value;MoneyOpts o = default||hd65fb688e51d9a482d2f9031cdb57646790ad85a3c809e961601a8725a753b42", "signature": "bool MoneyInput(UiText id, ref double value, MoneyOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref double" }, { "name": "o", "type": "MoneyOpts", "default": "default" }], "summary": "Money field: shows the amount with thousands separators, edits as plain digits, keeps a fixed number of decimals." }, { "name": "MouseClicked", "kind": "method", "id": "method|MouseClicked|0|0|bool|MouseButton button||h8e0f0ad614e613c5c152543c9917af645f5ae90299577124c2da8f7863f69862", "signature": "bool MouseClicked(MouseButton button)", "parameters": [{ "name": "button", "type": "MouseButton" }], "summary": "True on the frame a mouse button went down." }, { "name": "MouseDown", "kind": "method", "id": "method|MouseDown|0|0|bool|MouseButton button||hf67b74dbd9e44892fdb6b384ac7537f75c21e2054ec9267ee7cf800f77c4c81d", "signature": "bool MouseDown(MouseButton button)", "parameters": [{ "name": "button", "type": "MouseButton" }], "summary": "True while a mouse button is held." }, { "name": "MultiSelect", "kind": "method", "id": "method|MultiSelect|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;Span\u003Cbool\u003E selected;MultiSelectOpts o = default||h3e128721808f3d5d3438e029c09a821039a75342e2851271e35420570d1affca", "signature": "bool MultiSelect(UiText id, ReadOnlySpan\u003Cstring\u003E items, Span\u003Cbool\u003E selected, MultiSelectOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "selected", "type": "Span\u003Cbool\u003E" }, { "name": "o", "type": "MultiSelectOpts", "default": "default" }], "summary": "A searchable list with one checkbox per item and chips for the chosen ones. Returns true on the frame an entry flips." }, { "name": "NavItem", "kind": "extension", "id": "extension|NavItem|0|0|bool|UiText label;NavOpts o = default||h163b7c5bf544cc2227cbef6b64c928a89e62b8536a9e4ab947179a86d455c59d", "signature": "bool NavItem(UiText label, NavOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "NavOpts", "default": "default" }], "summary": "Sidebar navigation item with a gliding selection highlight shared by all items in the same group." }, { "name": "NeedsRedraw", "kind": "property", "id": "property|NeedsRedraw|0|0|bool||get;|h5aadd05568570958d5b9529ecc317e3ce874d6c40baa003636859fb90a0da9fc", "signature": "bool NeedsRedraw { get; }" }, { "name": "NodeDeleted", "kind": "extension", "id": "extension|NodeDeleted|0|0|bool|ref int nodeId||hc3cfc3ad4c4fc3a042b1dbb26d3de5739a59ee9b1e9f8c1741f772a5e535d6bc", "signature": "bool NodeDeleted(ref int nodeId)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "nodeId", "type": "ref int" }], "summary": "cui_node_deleted" }, { "name": "NodeInput", "kind": "extension", "id": "extension|NodeInput|0|0|bool|int pinId;UiText label;PinOpts o = default||hd37a374006c3c8cd18c68d9d7503bd5160359d3f3e458d3531e756c52700b1f0", "signature": "bool NodeInput(int pinId, UiText label, PinOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "pinId", "type": "int" }, { "name": "label", "type": "UiText" }, { "name": "o", "type": "PinOpts", "default": "default" }], "summary": "A row with a pin on the left (input) or right (output). type picks the pin color from the series palette and limits links to pins of the same type (0 connects to anything). Returns true when the pin has a link." }, { "name": "NodeLink", "kind": "extension", "id": "extension|NodeLink|0|0|bool|int linkId;int fromPin;int toPin||hab2ff05d12c3863dc35ff7ced8cdef83783fba6a2e16dbd81214feb3eaf01910", "signature": "bool NodeLink(int linkId, int fromPin, int toPin)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "linkId", "type": "int" }, { "name": "fromPin", "type": "int" }, { "name": "toPin", "type": "int" }], "summary": "A link from an output pin to an input pin. Returns true while it is selected." }, { "name": "NodeLinkCreated", "kind": "extension", "id": "extension|NodeLinkCreated|0|0|bool|ref int fromPin;ref int toPin||h7c136a895333c132f83c1d99cf5809163d5430c0060eaaedcf7bbe0f15f462bd", "signature": "bool NodeLinkCreated(ref int fromPin, ref int toPin)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "fromPin", "type": "ref int" }, { "name": "toPin", "type": "ref int" }], "summary": "What the user did this frame, one event per call; call them after cui_node_editor_begin (and up to the end of the frame)." }, { "name": "NodeLinkRemoved", "kind": "extension", "id": "extension|NodeLinkRemoved|0|0|bool|ref int linkId||h8cf7097abf407418a15af49e45ee086b240ec03b1e130c7888ce620da1bbadca", "signature": "bool NodeLinkRemoved(ref int linkId)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "linkId", "type": "ref int" }], "summary": "Part of cui_node_link \u2014 A link from an output pin to an input pin. Returns true while it is selected." }, { "name": "NodeOutput", "kind": "extension", "id": "extension|NodeOutput|0|0|bool|int pinId;UiText label;PinOpts o = default||h3750efacdd047bf840c0482278adf33fa6dd72ffa3acb6bf2c1afd789b95d351", "signature": "bool NodeOutput(int pinId, UiText label, PinOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "pinId", "type": "int" }, { "name": "label", "type": "UiText" }, { "name": "o", "type": "PinOpts", "default": "default" }], "summary": "A row with a pin on the left (input) or right (output). type picks the pin color from the series palette and limits links to pins of the same type (0 connects to anything). Returns true when the pin has a link." }, { "name": "Number", "kind": "method", "id": "method|Number|0|0|bool|UiText id;ref double value;double min;double max;NumberOpts o = default||h695eacf696437442db4c71e212e9d772037965f7b79fa0164581c32f72012f09", "signature": "bool Number(UiText id, ref double value, double min, double max, NumberOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref double" }, { "name": "min", "type": "double" }, { "name": "max", "type": "double" }, { "name": "o", "type": "NumberOpts", "default": "default" }] }, { "name": "OtpInput", "kind": "method", "id": "method|OtpInput|0|0|bool|UiText id;ref string value;int length||h8029c922f0c302147b4a9d172f51e477cf692656857072b2505965f1cc911eaf", "signature": "bool OtpInput(UiText id, ref string value, int length)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "length", "type": "int" }], "summary": "One-time code input: length boxes, buffer length \u002B 1." }, { "name": "Pagination", "kind": "extension", "id": "extension|Pagination|0|0|bool|UiText id;ref int page;int pageCount||h79ccb8aea896cd889c714acd8763edcf22dbbfb029a1dbd70ed9639354c6b6c8", "signature": "bool Pagination(UiText id, ref int page, int pageCount)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "page", "type": "ref int" }, { "name": "pageCount", "type": "int" }], "summary": "page is 0 based" }, { "name": "PopoverIsOpen", "kind": "extension", "id": "extension|PopoverIsOpen|0|0|bool|UiText id||h83722811a2be8261fbe93cc555b026a4a1e130ec294d2cd25013358d929a3c0e", "signature": "bool PopoverIsOpen(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_popover_is_open" }, { "name": "PropBool", "kind": "extension", "id": "extension|PropBool|0|0|bool|UiText label;ref bool value;PropOpts o = default||h121ac40771efea9741585563443f4c4687f7a10d137ffd9d268555b5501ddd64", "signature": "bool PropBool(UiText label, ref bool value, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref bool" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_bool_ex" }, { "name": "PropColor", "kind": "extension", "id": "extension|PropColor|0|0|bool|UiText label;ref Color value;PropOpts o = default||h6ca0bc5ddc35dae8cf9131bd28c26cd31e497e501164de0d50828fb7983a1cc2", "signature": "bool PropColor(UiText label, ref Color value, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref Color" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "A swatch and hex value that opens the color picker." }, { "name": "PropEnum", "kind": "extension", "id": "extension|PropEnum|0|0|bool|UiText label;ReadOnlySpan\u003Cstring\u003E items;ref int index;PropOpts o = default||h241aa42ffd01f5c7a9fadb861af4a608b0c8a014ae458b62692370d10cf009d8", "signature": "bool PropEnum(UiText label, ReadOnlySpan\u003Cstring\u003E items, ref int index, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_enum_ex" }, { "name": "PropFloat", "kind": "extension", "id": "extension|PropFloat|0|0|bool|UiText label;ref float value;PropOpts o = default||hc8efd7345903f342766598358e2e5c0998eb7933cf7f5cec0429b86873ff6ccf", "signature": "bool PropFloat(UiText label, ref float value, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_float_ex" }, { "name": "PropInt", "kind": "extension", "id": "extension|PropInt|0|0|bool|UiText label;ref int value;PropOpts o = default||hd93df8234e1afb0dba5df9a1531c8936c732948e17db67e12102617d568c305b", "signature": "bool PropInt(UiText label, ref int value, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref int" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_int_ex" }, { "name": "PropText", "kind": "extension", "id": "extension|PropText|0|0|bool|UiText label;ref string buf;int cap;PropOpts o = default||h46a1a717145b1f3a7800e8921d45ea9b002d8c2fdf5958fbf3c03f97fc47d1db", "signature": "bool PropText(UiText label, ref string buf, int cap, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_text_ex" }, { "name": "PropVec", "kind": "extension", "id": "extension|PropVec|0|0|bool|UiText label;ref float value;int components;PropOpts o = default||h57600f963270b3c592fd247d9b1f943533361ae615e7b6ca52e287fa289a67b2", "signature": "bool PropVec(UiText label, ref float value, int components, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "components", "type": "int" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "Compact X, Y (Z, W) scrub fields side by side; value holds 2, 3 or 4 floats." }, { "name": "QueryBuilder", "kind": "extension", "id": "extension|QueryBuilder|0|0|bool|UiText id;ReadOnlySpan\u003CQueryField\u003E fields;Span\u003CQueryNode\u003E nodes;ref int count;QueryOpts o = default||hf3edbb954d2f83ed4e81805130275cc7c0ef85dc162f7e4b8a07a3d9d533090f", "signature": "bool QueryBuilder(UiText id, ReadOnlySpan\u003CQueryField\u003E fields, Span\u003CQueryNode\u003E nodes, ref int count, QueryOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "fields", "type": "ReadOnlySpan\u003CQueryField\u003E" }, { "name": "nodes", "type": "Span\u003CQueryNode\u003E" }, { "name": "count", "type": "ref int" }, { "name": "o", "type": "QueryOpts", "default": "default" }], "summary": "cui_query_builder_ex" }, { "name": "Radio", "kind": "extension", "id": "extension|Radio|0|0|bool|UiText label;ref int value;int option;CheckOpts o = default||h837451b9483026bc7e273c76e5251c0de524d770f182a8365674ac44553130ee", "signature": "bool Radio(UiText label, ref int value, int option, CheckOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref int" }, { "name": "option", "type": "int" }, { "name": "o", "type": "CheckOpts", "default": "default" }], "summary": "cui_radio_ex" }, { "name": "RadioCards", "kind": "extension", "id": "extension|RadioCards|0|0|bool|UiText id;ReadOnlySpan\u003CChoice\u003E choices;ref int index;RadioCardsOpts o = default||h277ecfd91b4ab6ad87556ac5585d5014c5f8f4b70743ded6f2d33b25b513c439", "signature": "bool RadioCards(UiText id, ReadOnlySpan\u003CChoice\u003E choices, ref int index, RadioCardsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "choices", "type": "ReadOnlySpan\u003CChoice\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "RadioCardsOpts", "default": "default" }], "summary": "Radio cards: larger selectable cards for choices that need a description (plans, templates)." }, { "name": "RadioGroup", "kind": "extension", "id": "extension|RadioGroup|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index||h13b5e8871098bf87979cd713e4fa844042e8066de15ba83cf7b5cda071897cee", "signature": "bool RadioGroup(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }], "summary": "cui_radio_group" }, { "name": "RangeCalendar", "kind": "extension", "id": "extension|RangeCalendar|0|0|bool|UiText id;ref DateRange range;int months||h8c74871e3d5b09aa52567046cfb0cacddba5d6bd45af5a0343aa6ea880da3344", "signature": "bool RangeCalendar(UiText id, ref DateRange range, int months)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "range", "type": "ref DateRange" }, { "name": "months", "type": "int" }], "summary": "One or two months side by side; click a start and an end." }, { "name": "RangeSlider", "kind": "extension", "id": "extension|RangeSlider|0|0|bool|UiText label;ref float lo;ref float hi;float min;float max||h431a1c22347795ecfaf7422d776daf2552ad13b1bbafc0b34e7ddfbb9f6fca1e", "signature": "bool RangeSlider(UiText label, ref float lo, ref float hi, float min, float max)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "lo", "type": "ref float" }, { "name": "hi", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }], "summary": "cui_range_slider" }, { "name": "Rating", "kind": "extension", "id": "extension|Rating|0|0|bool|UiText id;ref int value;int max = 5||ha54ef468c924f3613d361d9d3e4ba18c9bed4ef0f7d7dd855532a052b89231ce", "signature": "bool Rating(UiText id, ref int value, int max = 5)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref int" }, { "name": "max", "type": "int", "default": "5" }], "summary": "cui_rating" }, { "name": "ReorderEnd", "kind": "method", "id": "method|ReorderEnd|0|0|bool|||h289d889249190a219f4708d3f6a34916df30d8dccdd623b1af17d06cf7ad4fe9", "signature": "bool ReorderEnd()" }, { "name": "RulerSlider", "kind": "extension", "id": "extension|RulerSlider|0|0|bool|UiText label;ref float value;float min;float max;RulerOpts o = default||hda8dec175710635b7de7215517d587b9a5332ed440922d693ed02813d9c4deb7", "signature": "bool RulerSlider(UiText label, ref float value, float min, float max, RulerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "RulerOpts", "default": "default" }], "summary": "Ruler slider: a tape measure that slides under a fixed marker, with momentum and snapping to step." }, { "name": "Scrub", "kind": "extension", "id": "extension|Scrub|0|0|bool|UiText label;ref float value;float min;float max;ScrubOpts o = default||h816f9787704b09241842573d59264e0cc5674f4a764e0ae2054b721f3ad20a7b", "signature": "bool Scrub(UiText label, ref float value, float min, float max, ScrubOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "ScrubOpts", "default": "default" }], "summary": "Scrub field: drag sideways anywhere on it to change the value (Shift for fine steps), or click to type a number. Arrow keys step when focused." }, { "name": "Segmented", "kind": "extension", "id": "extension|Segmented|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index;SegmentedOpts o = default||h8452b4d90fbd938f7492782df2bfd7e49e6f17b79bb32a7fa92536dbbc52bbfb", "signature": "bool Segmented(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index, SegmentedOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "SegmentedOpts", "default": "default" }], "summary": "Segmented control: a row of options with a gliding highlight." }, { "name": "Select", "kind": "extension", "id": "extension|Select|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index;SelectOpts o = default||h4546d9051044aa80f649b171897799d53c415b998250abdc626bf84e5341bea3", "signature": "bool Select(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index, SelectOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "SelectOpts", "default": "default" }], "summary": "cui_select_ex" }, { "name": "Shortcut", "kind": "method", "id": "method|Shortcut|0|0|bool|Mods mods;Key key||h23544d98ad9364c783897d23b07d28fd4c4889f44ac4f6b734142ae19cee295a", "signature": "bool Shortcut(Mods mods, Key key)", "parameters": [{ "name": "mods", "type": "Mods" }, { "name": "key", "type": "Key" }] }, { "name": "ShortcutRecorder", "kind": "extension", "id": "extension|ShortcutRecorder|0|0|bool|UiText id;ref KeyCombo combo;ShortcutRecorderOpts o = default||h22c067848057da16592bf471e38a3d5c8d3e7a976928a24a34dda5e650586e2a", "signature": "bool ShortcutRecorder(UiText id, ref KeyCombo combo, ShortcutRecorderOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "combo", "type": "ref KeyCombo" }, { "name": "o", "type": "ShortcutRecorderOpts", "default": "default" }], "summary": "Shortcut recorder: click and press a key combination to record it. Backspace clears, Esc cancels. Returns true when the combination changed. cui_shortcut_label formats a combination (\u0022Ctrl Shift K\u0022)." }, { "name": "SignaturePad", "kind": "extension", "id": "extension|SignaturePad|0|0|bool|UiText id;SignatureOpts o = default||h26a7180ac812cfc40208765b73de3283d8bdc2a773db48e467c36bfac61e2f47", "signature": "bool SignaturePad(UiText id, SignatureOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "SignatureOpts", "default": "default" }], "summary": "Signature pad: draw with the mouse or a pen. The strokes are kept for you; read them with cui_signature_points (stroke_ends[i] is one past the last point of stroke i)." }, { "name": "Slider", "kind": "extension", "id": "extension|Slider|0|0|bool|UiText label;ref float value;float min;float max;SliderOpts o = default||h07890e859be8c8053afac54f6a7ef888728ac54358e77cca1a0c6f9d5936fcd0", "signature": "bool Slider(UiText label, ref float value, float min, float max, SliderOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "SliderOpts", "default": "default" }], "summary": "Elastic slider: the track stretches like rubber when dragged past its ends." }, { "name": "StatusBarItem", "kind": "extension", "id": "extension|StatusBarItem|0|0|bool|UiText label;StatusItemOpts o = default||h35fa1b9b36f005ceff913dc858202baee2f50d4678537b369e987582020f4d84", "signature": "bool StatusBarItem(UiText label, StatusItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "StatusItemOpts", "default": "default" }], "summary": "A small clickable item (\u0022Ln 12, Col 4\u0022, \u0022UTF-8\u0022). Returns true when clicked." }, { "name": "StatusButton", "kind": "extension", "id": "extension|StatusButton|0|0|bool|UiText label;Status status;StatusButtonOpts o = default||h5c9d9e2cd49f70a00398d2fe51ccf1933f78becdf2d7e5b610c5e2427ee30722", "signature": "bool StatusButton(UiText label, Status status, StatusButtonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "status", "type": "Status" }, { "name": "o", "type": "StatusButtonOpts", "default": "default" }], "summary": "cui_status_button_ex" }, { "name": "Switch", "kind": "extension", "id": "extension|Switch|0|0|bool|UiText label;ref bool value;CheckOpts o = default||he58bf080044a84430ae1c50aae77072ba3e8bc1dc7ad4f8576f39e74324cd486", "signature": "bool Switch(UiText label, ref bool value, CheckOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref bool" }, { "name": "o", "type": "CheckOpts", "default": "default" }], "summary": "cui_switch_ex" }, { "name": "TabBar", "kind": "extension", "id": "extension|TabBar|0|0|bool|UiText id;ReadOnlySpan\u003CTabBarItem\u003E items;ref int selected;TabBarOpts o = default||h3b532a1edd39eaf1a6db4278f4c3c26674c9a67777ba72dd890ca8c67ecbb0d8", "signature": "bool TabBar(UiText id, ReadOnlySpan\u003CTabBarItem\u003E items, ref int selected, TabBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CTabBarItem\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "TabBarOpts", "default": "default" }], "summary": "Bottom tab bar for compact layouts, with a pill that glides to the selection." }, { "name": "TableRow", "kind": "extension", "id": "extension|TableRow|0|0|bool|bool selected||h5862a1074065231ee67e616f36b6ef2708e5a53d06e9c647dfc4e50f9f54feb9", "signature": "bool TableRow(bool selected)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "selected", "type": "bool" }], "summary": "Begin a row. Returns true when the row is clicked." }, { "name": "Tabs", "kind": "extension", "id": "extension|Tabs|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index;TabsOpts o = default||h44602f1d285b43ccb2a4a3f04fc10eeb9824d034d9c4786918ec03417b25d800", "signature": "bool Tabs(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index, TabsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "TabsOpts", "default": "default" }], "summary": "cui_tabs_ex" }, { "name": "TagInput", "kind": "method", "id": "method|TagInput|0|0|bool|UiText id;ref string value;TagOpts o = default||h7d78f96fc27b022e7ce11dd6a4742470284f57dc2e17866e76fb8b61780bf9f0", "signature": "bool TagInput(UiText id, ref string value, TagOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "o", "type": "TagOpts", "default": "default" }], "summary": "Comma-separated tags in one field; enter or comma adds, backspace removes." }, { "name": "ThemeSwitcher", "kind": "extension", "id": "extension|ThemeSwitcher|0|0|bool|ref int mode;bool withSystem||h6ac2911103fa89f29df34fe5abd3737f62b03fad01ac2c5f7ce9f96f81466e7b", "signature": "bool ThemeSwitcher(ref int mode, bool withSystem)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "mode", "type": "ref int" }, { "name": "withSystem", "type": "bool" }], "summary": "Theme switcher: light, dark and (optionally) system, as a compact icon segmented control. mode is 0 light, 1 dark, 2 system. Light and dark are applied for you; for system call cui_set_theme with the OS setting. Returns true when mode changed." }, { "name": "ThemeToggle", "kind": "extension", "id": "extension|ThemeToggle|0|0|bool|||hac003993a346e758ec03a7b5cae2fbd886929a7ae077d9f9459a78e6cb9e9028", "signature": "bool ThemeToggle()", "extensionOn": "CuiSharp.Ui", "summary": "Sun and moon icon button that toggles the theme with a morph." }, { "name": "TimeDial", "kind": "extension", "id": "extension|TimeDial|0|0|bool|UiText id;ref int hour;ref int minute;float size||hc81f9c9c6cda6a218a1a97579124c3a6415d5a3bec246c2545e9638a3cbefadc", "signature": "bool TimeDial(UiText id, ref int hour, ref int minute, float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "hour", "type": "ref int" }, { "name": "minute", "type": "ref int" }, { "name": "size", "type": "float" }], "summary": "Time dial: a clock face. Drag the hand to set hours, then minutes." }, { "name": "TimePicker", "kind": "extension", "id": "extension|TimePicker|0|0|bool|UiText id;ref int hour;ref int minute;TimeOpts o = default||h2f5e91438efc0191e949769048849a3fb8bb629993aef37fa50790655d5a16e2", "signature": "bool TimePicker(UiText id, ref int hour, ref int minute, TimeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "hour", "type": "ref int" }, { "name": "minute", "type": "ref int" }, { "name": "o", "type": "TimeOpts", "default": "default" }], "summary": "Time picker: a field that opens hour and minute columns. hour is 0..23." }, { "name": "ToastActionClicked", "kind": "extension", "id": "extension|ToastActionClicked|0|0|bool|int handle||h80802ec80123dda69208be2582b05ccc3d887063aa242cdb0a7d5f946417cce1", "signature": "bool ToastActionClicked(int handle)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "handle", "type": "int" }], "summary": "cui_toast_action_clicked" }, { "name": "ToggleGroup", "kind": "method", "id": "method|ToggleGroup|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E labels;Span\u003Cbool\u003E values;ToggleGroupOpts o = default||hbf4630396185f73a4900042d74fe62f684385217a55457d20067677982015437", "signature": "bool ToggleGroup(UiText id, ReadOnlySpan\u003Cstring\u003E labels, Span\u003Cbool\u003E values, ToggleGroupOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "labels", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "values", "type": "Span\u003Cbool\u003E" }, { "name": "o", "type": "ToggleGroupOpts", "default": "default" }], "summary": "A row of toggle buttons sharing one bool per label. Independent by default; Exclusive makes them behave like radio buttons. Returns true on the frame an entry flips." }, { "name": "ToolbarButton", "kind": "extension", "id": "extension|ToolbarButton|0|0|bool|UiText icon;ref bool toggle;ToolOpts o = default||h280488daf404cebc0318d20c1e09b3000ff82103111371b7fdf8c2735fe2c970", "signature": "bool ToolbarButton(UiText icon, ref bool toggle, ToolOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "toggle", "type": "ref bool" }, { "name": "o", "type": "ToolOpts", "default": "default" }], "summary": "cui_toolbar_button_ex" }, { "name": "TreeCell", "kind": "extension", "id": "extension|TreeCell|0|0|bool|UiText label;int depth;bool hasChildren;ref bool open;UiText icon||h7d87cfa9d747ede3646c93ffc4296bb6d158f59a36670c943b38b8891f9a08bd", "signature": "bool TreeCell(UiText label, int depth, bool hasChildren, ref bool open, UiText icon)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "depth", "type": "int" }, { "name": "hasChildren", "type": "bool" }, { "name": "open", "type": "ref bool" }, { "name": "icon", "type": "UiText" }], "summary": "Tree cell: indentation, a disclosure chevron and a label, for tree tables (use it in a table or grid cell). Returns true when *open toggled." }, { "name": "TreeClicked", "kind": "extension", "id": "extension|TreeClicked|0|0|bool|||he0d6c1a473304bfa16c30035268639d026f37ddeade6a53e36b6a43056ea0039", "signature": "bool TreeClicked()", "extensionOn": "CuiSharp.Ui", "summary": "the node created by the last cui_tree_begin was clicked" }, { "name": "Typewriter", "kind": "extension", "id": "extension|Typewriter|0|0|bool|UiText id;UiText text;TextFxOpts o = default||hd2793d1d9701d6e1c2de232ed4163f8a0a17de8606e1a0c00033798e26804d7b", "signature": "bool Typewriter(UiText id, UiText text, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "Types the text out. When the text grows (streamed tokens) it carries on from where it was; other changes start over. Returns true once complete." }, { "name": "VoiceOrb", "kind": "extension", "id": "extension|VoiceOrb|0|0|bool|UiText id;VoiceState state;float level;VoiceOrbOpts o = default||h55678c858554bd6ffbc3fbad4b03aeb90fff9d582a2dad8b10090a9496cf7d41", "signature": "bool VoiceOrb(UiText id, VoiceState state, float level, VoiceOrbOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "state", "type": "VoiceState" }, { "name": "level", "type": "float" }, { "name": "o", "type": "VoiceOrbOpts", "default": "default" }], "summary": "cui_voice_orb_ex" }, { "name": "WantsKeyboard", "kind": "property", "id": "property|WantsKeyboard|0|0|bool||get;|h9fd1d2033ea34ec49759c84f9a199c15d92ad7e28a6a1a4cc3ebee535bec764b", "signature": "bool WantsKeyboard { get; }" }, { "name": "WantsMouse", "kind": "property", "id": "property|WantsMouse|0|0|bool||get;|h88ad7771300bfdd824d0527cc05ab2978f5a741b34494adb9660c29ae0fd53b7", "signature": "bool WantsMouse { get; }", "summary": "True when the pointer is over this window and the UI wants it." }, { "name": "Waveform", "kind": "extension", "id": "extension|Waveform|0|0|bool|UiText id;ReadOnlySpan\u003Cfloat\u003E peaks;ref float progress;WaveformOpts o = default||h82b5eb85d1dd0e891471303dae6af8ef45f993a4522c265b5380640be5f95a34", "signature": "bool Waveform(UiText id, ReadOnlySpan\u003Cfloat\u003E peaks, ref float progress, WaveformOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "peaks", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "progress", "type": "ref float" }, { "name": "o", "type": "WaveformOpts", "default": "default" }], "summary": "Waveform: bars from peaks (0..1). With progress, the played part is colored and clicking or dragging seeks; returns true when it did." }, { "name": "WheelPicker", "kind": "extension", "id": "extension|WheelPicker|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index;WheelOpts o = default||h6e20c98f3670a089db93c4a37a910bd23a7f6b3a8ad5c2cd67e1294d58a2fae4", "signature": "bool WheelPicker(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index, WheelOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "WheelOpts", "default": "default" }], "summary": "Wheel picker: a drum of options that you drag, scroll or arrow through. Several side by side make a date or time reel. join_left / join_right square off the selection band so wheels placed side by side share one continuous band." }, { "name": "Time", "kind": "property", "id": "property|Time|0|0|double||get;|h59d804a6c66b43aad6ffe38fb8d686d405da1f1e73a127a3af738e7ba55df397", "signature": "double Time { get; }", "summary": "Seconds since the app started. Monotonic; use it for animation phases." }, { "name": "Animate", "kind": "method", "id": "method|Animate|0|0|float|UiText id;float target||h6aa8f80b2f784f8d21be090f3514e71ea8c5c9e820fb1fc041073b0956552fa8", "signature": "float Animate(UiText id, float target)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "target", "type": "float" }], "summary": "Moves a value toward target with a spring, keyed by id." }, { "name": "AnimateSpring", "kind": "method", "id": "method|AnimateSpring|0|0|float|UiText id;float target;float duration;float bounce||h18961b791dced18013209a15d6f4c3ea989233c2d507d6986cf80ff8eea91b47", "signature": "float AnimateSpring(UiText id, float target, float duration, float bounce)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "target", "type": "float" }, { "name": "duration", "type": "float" }, { "name": "bounce", "type": "float" }], "summary": "Moves a value toward target with a spring of the given duration and bounce." }, { "name": "DeltaTime", "kind": "property", "id": "property|DeltaTime|0|0|float||get;|h9b38e45e1e2ffd64837bd659bc02203c5bcd38701ca6046589022c3424ef1a09", "signature": "float DeltaTime { get; }", "summary": "Seconds since the previous frame, clamped by the host." }, { "name": "DpiScale", "kind": "property", "id": "property|DpiScale|0|0|float||get;|hd6fea6745004ce2bacbb8eac54eebd74e77705ff2605b31ccb4a18c241ebb063", "signature": "float DpiScale { get; }", "summary": "Device pixels per logical point for the window this frame draws into." }, { "name": "ActivityRings", "kind": "extension", "id": "extension|ActivityRings|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E rings;RingsOpts o = default||he739303ba236c8b2947fe3ee08443b09f019e41b8acac0f7da681d197ae0307e", "signature": "int ActivityRings(UiText id, ReadOnlySpan\u003CVizItem\u003E rings, RingsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "rings", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "RingsOpts", "default": "default" }], "summary": "Activity rings: concentric progress rings; values past 1 keep winding." }, { "name": "AgentPlan", "kind": "extension", "id": "extension|AgentPlan|0|0|int|UiText id;ReadOnlySpan\u003CPlanStep\u003E steps;AgentPlanOpts o = default||h6067d2501a7a26bcccda0db7d672b245a2fcff12d68ede6c491d265a45d1b4b9", "signature": "int AgentPlan(UiText id, ReadOnlySpan\u003CPlanStep\u003E steps, AgentPlanOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "steps", "type": "ReadOnlySpan\u003CPlanStep\u003E" }, { "name": "o", "type": "AgentPlanOpts", "default": "default" }], "summary": "Agent plan: steps with their status on a connected rail, and progress." }, { "name": "AvatarUpload", "kind": "extension", "id": "extension|AvatarUpload|0|0|int|UiText id;UiText name;ref ulong image;float size||h2032bcd7f55566afffa2cde5d86987aa5b1a36719844c8d755d13b19b16255bb", "signature": "int AvatarUpload(UiText id, UiText name, ref ulong image, float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "name", "type": "UiText" }, { "name": "image", "type": "ref ulong" }, { "name": "size", "type": "float" }], "summary": "Avatar upload: a round avatar that takes a dropped image, with a camera badge on hover. Returns 1 when *image changed, -1 when clicked (browse), 0 otherwise. A dropped image is loaded with cui_image_load." }, { "name": "BarList", "kind": "extension", "id": "extension|BarList|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E items;BarListOpts o = default||h0e2abad96db38540b47d6c74f2cc68369ed40c046f6bf6c2d2dea3c10d465680", "signature": "int BarList(UiText id, ReadOnlySpan\u003CVizItem\u003E items, BarListOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "BarListOpts", "default": "default" }], "summary": "Bar list: ranked horizontal bars. Rows are keyed by label, so when the values change the bars grow and the rows slide to their new rank." }, { "name": "Breadcrumb", "kind": "extension", "id": "extension|Breadcrumb|0|0|int|ReadOnlySpan\u003Cstring\u003E items||h7e5435f64395bbaf15f18d4923a996c88ca3bd79318405fd33733751c65e8682", "signature": "int Breadcrumb(ReadOnlySpan\u003Cstring\u003E items)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }], "summary": "returns clicked index or -1" }, { "name": "CalendarHeatmap", "kind": "extension", "id": "extension|CalendarHeatmap|0|0|int|UiText id;Date start;ReadOnlySpan\u003Cfloat\u003E values;CalendarHeatmapOpts o = default||hdf61b9c82e018ac6c9a5f0797950a2a53c4826b47594dd073d18121a1691e796", "signature": "int CalendarHeatmap(UiText id, Date start, ReadOnlySpan\u003Cfloat\u003E values, CalendarHeatmapOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "start", "type": "Date" }, { "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "o", "type": "CalendarHeatmapOpts", "default": "default" }], "summary": "Calendar heatmap: one cell per day from start, weeks as columns, in five levels, with month and weekday labels and a Less / More legend." }, { "name": "Candlestick", "kind": "extension", "id": "extension|Candlestick|0|0|int|UiText id;ReadOnlySpan\u003CCandle\u003E candles;CandlestickOpts o = default||hdab8fd71be859d6cc56de05a9e2feb81a2532c176230e766fa2ba67fa5260e3c", "signature": "int Candlestick(UiText id, ReadOnlySpan\u003CCandle\u003E candles, CandlestickOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "candles", "type": "ReadOnlySpan\u003CCandle\u003E" }, { "name": "o", "type": "CandlestickOpts", "default": "default" }], "summary": "Returns the candle under the crosshair (pointer or keys), or -1." }, { "name": "CardStack", "kind": "extension", "id": "extension|CardStack|0|0|int|UiText id;int count;DrawFn body;CardStackOpts o = default||h2dadbccb1e5391a98cfda3530cd5b460c17e79dd01b6927d2346f58287b56332", "signature": "int CardStack(UiText id, int count, DrawFn body, CardStackOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "count", "type": "int" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "CardStackOpts", "default": "default" }], "summary": "Card stack: a deck where the top card can be flicked away left or right. Build \u0060count\u0060 cards; card 0 is the top. end returns -1 or 1 on the frame the top card leaves (to the left or right), else 0. The end call reports which card in the stack is active, or -1, so the body overload returns it." }, { "name": "Checklist", "kind": "extension", "id": "extension|Checklist|0|0|int|UiText id;ReadOnlySpan\u003CCheckStep\u003E steps;ChecklistOpts o = default||hb1cdf5bee54759618ba4c2e6386ab30794ff911948e833f0610afb911e63f554", "signature": "int Checklist(UiText id, ReadOnlySpan\u003CCheckStep\u003E steps, ChecklistOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "steps", "type": "ReadOnlySpan\u003CCheckStep\u003E" }, { "name": "o", "type": "ChecklistOpts", "default": "default" }], "summary": "Onboarding checklist: a card with progress and steps. The first open step shows its description and action. Clicking a step\u0027s circle toggles done. Returns the index whose action was clicked, or -1." }, { "name": "CommandPalette", "kind": "extension", "id": "extension|CommandPalette|0|0|int|ref bool open;ReadOnlySpan\u003CCommand\u003E commands||h001b59aa0ea6df8a0ea3d57d57bc1d6c25690db136f11ce1d794c93d9c7bbfc3", "signature": "int CommandPalette(ref bool open, ReadOnlySpan\u003CCommand\u003E commands)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "open", "type": "ref bool" }, { "name": "commands", "type": "ReadOnlySpan\u003CCommand\u003E" }], "summary": "Spotlight style command palette. Returns the index of the chosen command, or -1. Open it with a shortcut: if (cui_shortcut(ui, CUI_MOD_PRIMARY, CUI_KEY_K)) open = true;" }, { "name": "DiffRows", "kind": "extension", "id": "extension|DiffRows|0|0|int|UiText id;Span\u003CDiffRow\u003E rows;int first = default||h5c94a97ef7958912de5bdb07673a9402664eef62f0238701e95229d154b6ac95", "signature": "int DiffRows(UiText id, Span\u003CDiffRow\u003E rows, int first = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "rows", "type": "Span\u003CDiffRow\u003E" }, { "name": "first", "type": "int", "default": "default" }], "summary": "Copies up to rows.Length of the diff view\u0027s rows into rows, starting at row first." }, { "name": "DroppedFileCount", "kind": "property", "id": "property|DroppedFileCount|0|0|int||get;|h5421210a1933793fbee263cb811628208321526d954709ce2c6f023389dc8e5d", "signature": "int DroppedFileCount { get; }", "summary": "Number of files the window is tracking as dropped; a dropzone reports them first." }, { "name": "Dropzone", "kind": "extension", "id": "extension|Dropzone|0|0|int|UiText id;DropzoneOpts o = default||h1a4c314252379bc356942c2d624bf8dc2388e096a816cda96c08748d80f874cf", "signature": "int Dropzone(UiText id, DropzoneOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "DropzoneOpts", "default": "default" }], "summary": "Dropzone: drop files from the OS, or click to browse. Returns the number of files dropped on it this frame (read them with cui_dropped_file), -1 when clicked (open a file dialog), 0 otherwise. accept filters by extension, e.g. \u0022png;jpg;pdf\u0022." }, { "name": "Funnel", "kind": "extension", "id": "extension|Funnel|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E stages;FunnelOpts o = default||he5202d3e37c12c123db9bc8dddaf33f25d6ee0d1790d21a12846d2233ba2f5e4", "signature": "int Funnel(UiText id, ReadOnlySpan\u003CVizItem\u003E stages, FunnelOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "stages", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "FunnelOpts", "default": "default" }], "summary": "Funnel: stages narrowing by value, with the conversion between them." }, { "name": "Gantt", "kind": "extension", "id": "extension|Gantt|0|0|int|UiText id;Span\u003CGanttTask\u003E tasks;Date origin;int days;GanttOpts o = default||h6405eb5f36078bd6c78b652a408e39c0fdb1c3a89355a3c7e0368f5d2306981a", "signature": "int Gantt(UiText id, Span\u003CGanttTask\u003E tasks, Date origin, int days, GanttOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tasks", "type": "Span\u003CGanttTask\u003E" }, { "name": "origin", "type": "Date" }, { "name": "days", "type": "int" }, { "name": "o", "type": "GanttOpts", "default": "default" }], "summary": "Gantt chart: a task list beside a timeline of bars. Drag a bar to move it, its ends to resize it. Dependencies are drawn as elbow arrows. Returns the index of a clicked task, or -1." }, { "name": "Heatmap", "kind": "extension", "id": "extension|Heatmap|0|0|int|UiText id;ReadOnlySpan\u003Cfloat\u003E values;int rows;int cols;HeatmapOpts o = default||hb23a8befed5cb93e645e80d3a23d15bd4f06bdbf22a6f65815edb1bef4129225", "signature": "int Heatmap(UiText id, ReadOnlySpan\u003Cfloat\u003E values, int rows, int cols, HeatmapOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "rows", "type": "int" }, { "name": "cols", "type": "int" }, { "name": "o", "type": "HeatmapOpts", "default": "default" }], "summary": "Heatmap: a rows x cols matrix (values[row * cols \u002B col]) on one hue, light to dark, with a scale below." }, { "name": "InlineEdit", "kind": "extension", "id": "extension|InlineEdit|0|0|int|UiText id;ref string buf;int cap = 256;InlineEditOpts o = default||hdc2fcc11f00fc875b370e784540495eec9451da64bf16b076e0bf19bfc7c475a", "signature": "int InlineEdit(UiText id, ref string buf, int cap = 256, InlineEditOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int", "default": "256" }, { "name": "o", "type": "InlineEditOpts", "default": "default" }], "summary": "Inline edit: text that turns into a field in place. Click (or Enter when focused) to edit, Enter or clicking away saves, Esc cancels. Returns CUI_CHANGED when an edit is committed." }, { "name": "PasswordStrength", "kind": "extension", "id": "extension|PasswordStrength|0|0|int|UiText password||h485b27b320ae208ea07b64ec8e1f317ab018ad6465c8ddb02cd01a4424689adb", "signature": "int PasswordStrength(UiText password)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "password", "type": "UiText" }], "summary": "Password strength meter (0 weak .. 4 strong). Returns the score." }, { "name": "PromptSuggestions", "kind": "extension", "id": "extension|PromptSuggestions|0|0|int|UiText id;ReadOnlySpan\u003CPromptSuggestion\u003E items;PromptSuggestionsOpts o = default||ha7ba62105e302f4fa64dd30bf005d6217ab47f44b8de4dcb382d55bb8686de65", "signature": "int PromptSuggestions(UiText id, ReadOnlySpan\u003CPromptSuggestion\u003E items, PromptSuggestionsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CPromptSuggestion\u003E" }, { "name": "o", "type": "PromptSuggestionsOpts", "default": "default" }], "summary": "Prompt suggestions: cards to start a conversation with." }, { "name": "RadarChart", "kind": "extension", "id": "extension|RadarChart|0|0|int|UiText id;ReadOnlySpan\u003CSeries\u003E series;ReadOnlySpan\u003Cstring\u003E axes;RadarOpts o = default||hc3ad2df41c9c6b26dc90f3b916ae531651d598ceef8ab541dd035331b9ea768a", "signature": "int RadarChart(UiText id, ReadOnlySpan\u003CSeries\u003E series, ReadOnlySpan\u003Cstring\u003E axes, RadarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "ReadOnlySpan\u003CSeries\u003E" }, { "name": "axes", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "o", "type": "RadarOpts", "default": "default" }], "summary": "Radar chart: series over shared axes (series[i].values[axis])." }, { "name": "Reactions", "kind": "extension", "id": "extension|Reactions|0|0|int|UiText id;Span\u003CReaction\u003E items||h7528193af8d452456269a4867874808d1a14d9b9b10f82f0f851537b4f5fcc31", "signature": "int Reactions(UiText id, Span\u003CReaction\u003E items)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "Span\u003CReaction\u003E" }], "summary": "Reactions: icon pills with counts. Clicking toggles \u0060active\u0060 and adjusts the count. Returns the index that changed, or -1." }, { "name": "Sankey", "kind": "extension", "id": "extension|Sankey|0|0|int|UiText id;ReadOnlySpan\u003Cstring\u003E nodes;ReadOnlySpan\u003CSankeyLink\u003E links;SankeyOpts o = default||h54e60f881596c8425c36f81063bcf3bca0ae525a5cb9acb9d9291c93343d590b", "signature": "int Sankey(UiText id, ReadOnlySpan\u003Cstring\u003E nodes, ReadOnlySpan\u003CSankeyLink\u003E links, SankeyOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "nodes", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "links", "type": "ReadOnlySpan\u003CSankeyLink\u003E" }, { "name": "o", "type": "SankeyOpts", "default": "default" }], "summary": "Sankey: flows between nodes; columns follow the links from the sources." }, { "name": "ScatterChart", "kind": "extension", "id": "extension|ScatterChart|0|0|int|UiText id;ReadOnlySpan\u003CScatterSeries\u003E series;ScatterOpts o = default||hff3593e05140bd9fcdc8f3c4f996ca064ecb18c59024984a51431c04b86145eb", "signature": "int ScatterChart(UiText id, ReadOnlySpan\u003CScatterSeries\u003E series, ScatterOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "ReadOnlySpan\u003CScatterSeries\u003E" }, { "name": "o", "type": "ScatterOpts", "default": "default" }], "summary": "Scatter (or bubble) chart: points per series, optional sizes." }, { "name": "SourceList", "kind": "extension", "id": "extension|SourceList|0|0|int|UiText id;ReadOnlySpan\u003CSource\u003E sources||h6f59cfee8fa72dc7eca177af354e0a6f666d1ec1975ff987f31f00841dd57a41", "signature": "int SourceList(UiText id, ReadOnlySpan\u003CSource\u003E sources)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "sources", "type": "ReadOnlySpan\u003CSource\u003E" }], "summary": "cui_source_list" }, { "name": "SpeedDial", "kind": "extension", "id": "extension|SpeedDial|0|0|int|UiText id;ReadOnlySpan\u003CSpeedAction\u003E actions;SpeedDialOpts o = default||h8f3dcc4f3e218426dd87000bfe603cd7a2a64cc3cdaa021cbc2dea064de87347", "signature": "int SpeedDial(UiText id, ReadOnlySpan\u003CSpeedAction\u003E actions, SpeedDialOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "actions", "type": "ReadOnlySpan\u003CSpeedAction\u003E" }, { "name": "o", "type": "SpeedDialOpts", "default": "default" }], "summary": "Speed dial: a round floating action button that fans out related actions. Returns the chosen action index, or -1." }, { "name": "SplitBar", "kind": "extension", "id": "extension|SplitBar|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E items;SplitBarOpts o = default||h16bc37b28b54a3959b1ffffa5d212e2ce5767fa384b82e9693cfc0cf3ecba083", "signature": "int SplitBar(UiText id, ReadOnlySpan\u003CVizItem\u003E items, SplitBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "SplitBarOpts", "default": "default" }], "summary": "Split bar: one bar split into parts, with a legend of values and shares." }, { "name": "SplitButton", "kind": "extension", "id": "extension|SplitButton|0|0|int|UiText label;ReadOnlySpan\u003Cstring\u003E items;SplitButtonOpts o = default||hab5170280449718e8bb4e18299a9939e8c4585d7f457498a1884dce52f1a5b83", "signature": "int SplitButton(UiText label, ReadOnlySpan\u003Cstring\u003E items, SplitButtonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "o", "type": "SplitButtonOpts", "default": "default" }], "summary": "Split button: a main action with a menu of related actions on the chevron. Returns 0 when the main part is clicked, 1 \u002B i when menu item i is chosen and -1 otherwise." }, { "name": "SwipeItem", "kind": "extension", "id": "extension|SwipeItem|0|0|int|UiText id;ReadOnlySpan\u003CSwipeAction\u003E left;ReadOnlySpan\u003CSwipeAction\u003E right;DrawFn body||hde404a799a1b468b7df4ac9ce65a247c02d83d6788917c5eb60378cb5ebf709d", "signature": "int SwipeItem(UiText id, ReadOnlySpan\u003CSwipeAction\u003E left, ReadOnlySpan\u003CSwipeAction\u003E right, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "left", "type": "ReadOnlySpan\u003CSwipeAction\u003E" }, { "name": "right", "type": "ReadOnlySpan\u003CSwipeAction\u003E" }, { "name": "body", "type": "DrawFn" }], "summary": "Swipe actions: drag a row sideways (or swipe on a trackpad) to reveal actions behind it. A long swipe triggers the first action. The row content goes between begin and end; end returns the chosen action: 0..left_count-1 for left actions, 100 \u002B i for right actions, or -1. The end call reports which swipe action was taken, or -1, so the body overload returns it." }, { "name": "Toast", "kind": "extension", "id": "extension|Toast|0|0|int|UiText title;ToastOpts o = default||hf3201662ddfe1d84b58e5851658ccd1e36ba6d53acdb101b80df283a2f0ee264", "signature": "int Toast(UiText title, ToastOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "ToastOpts", "default": "default" }], "summary": "Queue a toast. Returns a handle; cui_toast_action_clicked(handle) tells whether its action button was pressed." }, { "name": "Toc", "kind": "extension", "id": "extension|Toc|0|0|int|UiText scrollId;ReadOnlySpan\u003CTocItem\u003E items||h226d5cf4f0b7b58f3c7df69b1762d483d977d46968c43d4468a7db886e3771f0", "signature": "int Toc(UiText scrollId, ReadOnlySpan\u003CTocItem\u003E items)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "scrollId", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CTocItem\u003E" }], "summary": "Table of contents for a scroll area: highlights the section in view on a progress rail, and scrolls to a section when clicked. Put cui_toc_anchor(ui, \u0022anchor\u0022) at each heading inside the scroll area, and call cui_toc in the same scope as the scroll area. Returns the active index." }, { "name": "TreeTableDepth", "kind": "extension", "id": "extension|TreeTableDepth|0|0|int|||h6f4316e2e33c3ebb9b14932b5fc588d50a9b4b5b52a70f672523341f85c34b6b", "signature": "int TreeTableDepth()", "extensionOn": "CuiSharp.Ui", "summary": "depth of the current row, 0 at the top" }, { "name": "TreeTableRow", "kind": "extension", "id": "extension|TreeTableRow|0|0|int|||h6f0d82997cbd7dfd529bd1d04c7fd279173e864794b9acde1a6f8cf0deb80e45", "signature": "int TreeTableRow()", "extensionOn": "CuiSharp.Ui", "summary": "The next row in view: returns its node, or -1 when done. Then build its cells: cui_tree_table_name first, then cui_data_grid_cell(_text)." }, { "name": "Treemap", "kind": "extension", "id": "extension|Treemap|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E items;TreemapOpts o = default||hea14dd60cbeb36d78c486e9549f6917d7d431d80c23f54fe86c191e4e647a6e4", "signature": "int Treemap(UiText id, ReadOnlySpan\u003CVizItem\u003E items, TreemapOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "TreemapOpts", "default": "default" }], "summary": "cui_treemap_ex" }, { "name": "Waffle", "kind": "extension", "id": "extension|Waffle|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E items;WaffleOpts o = default||hbb9c8a5b82ec5547e3c36f001de128742bbee117c0a3da39be26ed99600e3617", "signature": "int Waffle(UiText id, ReadOnlySpan\u003CVizItem\u003E items, WaffleOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "WaffleOpts", "default": "default" }], "summary": "Waffle: a 10 x 10 grid of squares split by share, with a legend." }, { "name": "WeekCalendar", "kind": "extension", "id": "extension|WeekCalendar|0|0|int|UiText id;Date weekStart;Span\u003CCalendarEvent\u003E events;WeekOpts o = default||h6ebe88be9f390e98d2c4c1e3f796e62f09b23309fe4f21093ce3e1e506653fc9", "signature": "int WeekCalendar(UiText id, Date weekStart, Span\u003CCalendarEvent\u003E events, WeekOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "weekStart", "type": "Date" }, { "name": "events", "type": "Span\u003CCalendarEvent\u003E" }, { "name": "o", "type": "WeekOpts", "default": "default" }], "summary": "Week calendar: seven day columns on an hour grid. Drag an event to move it (15 minute steps), drag its bottom edge to resize it. Returns the index of a clicked event, or -1." }, { "name": "Segmented", "kind": "extension", "id": "extension|Segmented|0|0|int?|UiText id;ReadOnlySpan\u003Cstring\u003E items;int value;SegmentedOpts o = default||hfb54a79c3ab77ad5f8295229f391ceafab348451a898c9a700f5adccce24a7a9", "signature": "int? Segmented(UiText id, ReadOnlySpan\u003Cstring\u003E items, int value, SegmentedOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "value", "type": "int" }, { "name": "o", "type": "SegmentedOpts", "default": "default" }], "summary": "Returns the chosen index on a change, otherwise null." }, { "name": "AccentName", "kind": "method", "id": "method|AccentName|1|0|string|Accent accent||h0e37f10433228fc19b1442b10a947b92a35e4c1252d1688e2237e77f9c961f50", "signature": "static string AccentName(Accent accent)", "parameters": [{ "name": "accent", "type": "Accent" }], "summary": "The name of an accent as the UI shows it: \u0022Violet\u0022." }, { "name": "KeyName", "kind": "method", "id": "method|KeyName|1|0|string|Key key||ha31820aa00db9a4c2b6c84c51b79eb08b079cecb712605806d2763204d3f8fc8", "signature": "static string KeyName(Key key)", "parameters": [{ "name": "key", "type": "Key" }], "summary": "The name of a key as the UI shows it: A, Space, F5." }, { "name": "CronDescribe", "kind": "extension", "id": "extension|CronDescribe|0|0|string?|UiText cron||hd4c9ada55bcf91c1c683541837ecf35a841f847a3eee89aabbb26c529db1cd47", "signature": "string? CronDescribe(UiText cron)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "cron", "type": "UiText" }], "summary": "\u0022Every weekday at 09:30\u0022, in frame memory; NULL when invalid." }, { "name": "DroppedFile", "kind": "method", "id": "method|DroppedFile|0|0|string?|int index||hadc15393659f2bdf4574fe25868fce27bf8d063345e13c4c1b9285ed95d06a8e", "signature": "string? DroppedFile(int index)", "parameters": [{ "name": "index", "type": "int" }], "summary": "The path of a dropped file, or null when the index is out of range." }, { "name": "EmojiPicker", "kind": "extension", "id": "extension|EmojiPicker|0|0|string?|UiText id;ref string recent;ref int tone;EmojiPickerOpts o = default||h15890f303b9bfcb523f735ab2f9e6844938b14c17122927fe58f4714c2d1577c", "signature": "string? EmojiPicker(UiText id, ref string recent, ref int tone, EmojiPickerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "recent", "type": "ref string" }, { "name": "tone", "type": "ref int" }, { "name": "o", "type": "EmojiPickerOpts", "default": "default" }], "summary": "Emoji picker: search, groups with tabs, recent emoji, skin tones and a preview with the name. Returns the emoji picked this frame (UTF-8, valid until the next frame) or NULL. Put it in a popover to open it from a button." }, { "name": "ShortcutLabel", "kind": "extension", "id": "extension|ShortcutLabel|0|0|string?|KeyCombo combo||hbc2b6ede54efc1cdfc932533bfaa02df6e2091b08013ed268adaeb5f70fe77fd", "signature": "string? ShortcutLabel(KeyCombo combo)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "combo", "type": "KeyCombo" }], "summary": "cui_shortcut_label" }, { "name": "LastId", "kind": "property", "id": "property|LastId|0|0|uint||get;|hb45a60a2627c7935e56a964ff3d4b23b89b21d8a180962ea221f54c95e1e68d2", "signature": "uint LastId { get; }", "summary": "The id of the widget drawn last, which is what Target and the other \u0022point at this\u0022 APIs take. Read it immediately after the control." }, { "name": "MakeId", "kind": "method", "id": "method|MakeId|0|0|uint|UiText id||hf729d2c0f406a6b883b2cbb0e869941e897aaaef891e76b22daa8e479857208d", "signature": "uint MakeId(UiText id)", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "A stable cui_id for a string, for Animate and State callers." }, { "name": "CreateImage", "kind": "method", "id": "method|CreateImage|0|0|ulong|int width;int height;ReadOnlySpan\u003Cbyte\u003E rgba||h5ee4689276531d64da132f6a1cc9e229a83100259c335ca4ab5a007c20a68ce7", "signature": "ulong CreateImage(int width, int height, ReadOnlySpan\u003Cbyte\u003E rgba)", "parameters": [{ "name": "width", "type": "int" }, { "name": "height", "type": "int" }, { "name": "rgba", "type": "ReadOnlySpan\u003Cbyte\u003E" }], "summary": "Uploads RGBA8 pixels as a texture. The pixels are copied, so the span may live on the stack. Release the handle with DestroyImage when the page that shows it is done with it \u2014 State\u0060\u00601 with an onFree callback is the usual owner." }, { "name": "DockSave", "kind": "extension", "id": "extension|DockSave|0|0|ulong|UiText id;ref string buf;int cap||h10c71156edbbe3c5e529016814c796584f469d6d0b0b7466e4bde6ba2b0893b4", "signature": "ulong DockSave(UiText id, ref string buf, int cap)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }], "summary": "Saved layout: one line, e.g. dock1 h0.22([*Scene tree,Assets],v0.7([*Viewport],[*Log,-Console])) h splits side by side and v stacks, the number is the first child\u0027s share, [..] is a leaf\u0027s tabs in order, * the selected tab, - a closed panel; a backslash escapes , [ ] ( ) and itself in names. cui_dock_save returns the full length (as snprintf does) and writes what fits, or 0 when there is no layout. cui_dock_load replaces the layout (and sets each panel\u0027s *open from it on its next frame); names it does not know yet are kept for when they appear. Malformed text returns false and changes nothing." }, { "name": "FrameCount", "kind": "property", "id": "property|FrameCount|0|0|ulong||get;|h7254dceb0c426d20c644d45bf8a5ca3e9a444a54dee4128f0adcf9db4b00c8fc", "signature": "ulong FrameCount { get; }", "summary": "Frames presented so far, counted by CUI." }, { "name": "Accordion", "kind": "extension", "id": "extension|Accordion|0|0|void|UiText title;ref bool open;DrawFn body||h5a6e18ec6c43cdc43af8a25085ec728fca441d6f03d65c135ac01415603bdc5b", "signature": "void Accordion(UiText title, ref bool open, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "AddFontFallback", "kind": "extension", "id": "extension|AddFontFallback|0|0|void|Font font;Font fallback||h046e79521dc69de86a794461399d269a9ea51fd36fd162afddde019ca45934e1", "signature": "void AddFontFallback(Font font, Font fallback)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "font", "type": "Font" }, { "name": "fallback", "type": "Font" }], "summary": "Adds a fallback CUI reaches for when font has no glyph. The chain holds at most four fallbacks; when it is exhausted CUI scans every other loaded face before giving up. A glyph no face has draws nothing at all \u2014 not even a .notdef box in every font \u2014 so an untranslated screen comes up blank with no warning. UseSystemFontFallback is the check for that, and the bundled faces are Latin. The glyph atlas is what a large script actually costs: one texture of CUI_ATLAS_MAX (4096) pixels per side, with the frame\u0027s glyph cache reset between frames, so a font that makes every frame load new glyphs is the expensive case. Register the faces a language needs at startup, not per frame." }, { "name": "AgentStatus", "kind": "extension", "id": "extension|AgentStatus|0|0|void|UiText text;AgentStatusOpts o = default||h61ac25149bb714e9244c62474d67f93158a7f9bd1583135da08e6b32a5ac5120", "signature": "void AgentStatus(UiText text, AgentStatusOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "AgentStatusOpts", "default": "default" }], "summary": "Agent status pill: what the agent is doing right now and for how long." }, { "name": "Avatar", "kind": "extension", "id": "extension|Avatar|0|0|void|UiText name;AvatarOpts o = default||h86ad06b6f35491ed7cd4f337c2a2688db37d73bfec4c164c7b90267365ce8af2", "signature": "void Avatar(UiText name, AvatarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "name", "type": "UiText" }, { "name": "o", "type": "AvatarOpts", "default": "default" }], "summary": "cui_avatar_ex" }, { "name": "AvatarGroup", "kind": "extension", "id": "extension|AvatarGroup|0|0|void|ReadOnlySpan\u003Cstring\u003E names;int maxVisible = 4;float size = 32f||h2aebe32a1e3101b42a18771fc77f1b10cb011e17bea49c9f7cbf01e0be5ca252", "signature": "void AvatarGroup(ReadOnlySpan\u003Cstring\u003E names, int maxVisible = 4, float size = 32f)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "names", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "maxVisible", "type": "int", "default": "4" }, { "name": "size", "type": "float", "default": "32f" }], "summary": "cui_avatar_group" }, { "name": "Badge", "kind": "extension", "id": "extension|Badge|0|0|void|UiText text;BadgeOpts o = default||h2e146cbd498ce9ebfdcbb978fe8414bd9ff4389e1361c02fa453b24fcfc15d1c", "signature": "void Badge(UiText text, BadgeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "BadgeOpts", "default": "default" }], "summary": "cui_badge_ex" }, { "name": "BarChart", "kind": "method", "id": "method|BarChart|0|0|void|UiText id;ReadOnlySpan\u003Cfloat\u003E values;ChartOpts o = default;Color color = default||hdd24ad8679c5e482e048ed73ce69225b69c19ad5704a83f9a427093e4551242a", "signature": "void BarChart(UiText id, ReadOnlySpan\u003Cfloat\u003E values, ChartOpts o = default, Color color = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "o", "type": "ChartOpts", "default": "default" }, { "name": "color", "type": "Color", "default": "default" }], "summary": "A bar chart of one series. See LineChart." }, { "name": "BarChart", "kind": "method", "id": "method|BarChart|0|0|void|UiText id;Series[] series;ChartOpts o = default||h8d42b4d0a483459731da6ec00c3001f0d1f69bd28a07b4618095e800910f67c7", "signature": "void BarChart(UiText id, Series[] series, ChartOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "Series[]" }, { "name": "o", "type": "ChartOpts", "default": "default" }] }, { "name": "Carousel", "kind": "extension", "id": "extension|Carousel|0|0|void|UiText id;int count;ref int index;DrawFn body;CarouselOpts o = default||haf6583b1edd10132a276ed92f3c7cc7b139b36644ab8586eadce1ce1ae7cf431", "signature": "void Carousel(UiText id, int count, ref int index, DrawFn body, CarouselOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "count", "type": "int" }, { "name": "index", "type": "ref int" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "CarouselOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "ChatDivider", "kind": "extension", "id": "extension|ChatDivider|0|0|void|UiText label||hdb17d96dbafb815bdf9d77a06116d1a2d004dbf0c4190716f604d7f7503032a5", "signature": "void ChatDivider(UiText label)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }], "summary": "\u0022Today\u0022" }, { "name": "ChatMessage", "kind": "extension", "id": "extension|ChatMessage|0|0|void|UiText text;ChatOpts o = default||h0067e7f3c9a991c64026e5433bcd84d614a634bb99011d70cf7548c49b4d0e46", "signature": "void ChatMessage(UiText text, ChatOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "ChatOpts", "default": "default" }], "summary": "Same as the overload with ref markdownResult, but reports nothing back: the state pointer is null, so the widget stores no state the caller could read." }, { "name": "ChatMessage", "kind": "extension", "id": "extension|ChatMessage|0|0|void|UiText text;ref MarkdownResult markdownResult;ChatOpts o = default||he419f66e4261e2e5f8341890ace8476938bbabe2ce7747bb1cf378821e824da4", "signature": "void ChatMessage(UiText text, ref MarkdownResult markdownResult, ChatOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "markdownResult", "type": "ref MarkdownResult" }, { "name": "o", "type": "ChatOpts", "default": "default" }], "summary": "Chat message bubble. Consecutive messages from one person set grouped so they stack tightly and show the avatar once." }, { "name": "Code", "kind": "extension", "id": "extension|Code|0|0|void|UiText text||heb5c95cf0725be5b6a3d5d064b904bf47fbe9b2889e74bd910d61b666764b439", "signature": "void Code(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "inline code" }, { "name": "CodeBlock", "kind": "extension", "id": "extension|CodeBlock|0|0|void|UiText id;UiText code;CodeOpts o = default||h649344835854747b9cbde6157eb263d70a9df1f246e3854f21806fef682fedac", "signature": "void CodeBlock(UiText id, UiText code, CodeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "code", "type": "UiText" }, { "name": "o", "type": "CodeOpts", "default": "default" }], "summary": "Code block with syntax highlighting (lang: \u0022c\u0022, \u0022cpp\u0022, \u0022js\u0022, \u0022ts\u0022, \u0022python\u0022, \u0022rust\u0022, \u0022go\u0022, \u0022json\u0022, \u0022shell\u0022, or \u0022text\u0022 for none), line numbers, a title bar and a copy button. Long lines scroll sideways." }, { "name": "CodeEditorFind", "kind": "extension", "id": "extension|CodeEditorFind|0|0|void|UiText id;UiText query||ha5ad5e0daacc15247f7497756195d2f521b1676f4f4275c1360e7dd6a099a27e", "signature": "void CodeEditorFind(UiText id, UiText query)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "query", "type": "UiText" }], "summary": "Opens the find bar with query and selects the next match (NULL closes)." }, { "name": "CodeEditorGoto", "kind": "extension", "id": "extension|CodeEditorGoto|0|0|void|UiText id;int line;int column||he046da323e1fb441003f0aff4a8b1fb21892920cc0d306e08811c4d4b477dfae", "signature": "void CodeEditorGoto(UiText id, int line, int column)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "line", "type": "int" }, { "name": "column", "type": "int" }], "summary": "On the editor\u0027s next frame: put the caret at a line and column (1 based), focus the editor and scroll there. Call from the same id scope." }, { "name": "CodeEditorSelect", "kind": "extension", "id": "extension|CodeEditorSelect|0|0|void|UiText id;int anchor;int cursor||hbae83fe5ce54e61f495c10224f17c5f97155815624a80c230f94b710bbd25bbc", "signature": "void CodeEditorSelect(UiText id, int anchor, int cursor)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "anchor", "type": "int" }, { "name": "cursor", "type": "int" }], "summary": "On the next frame: select bytes anchor..cursor, focus and scroll there." }, { "name": "Component", "kind": "extension", "id": "extension|Component|0|0|void|Component component||h848740a50a9eb8dc56641315816144114376ac9c315542b20691de3cbc9300d4", "signature": "void Component(Component component)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "component", "type": "Component" }], "summary": "Draws component, with its own error boundary." }, { "name": "ContextMenu", "kind": "extension", "id": "extension|ContextMenu|0|0|void|UiText id;DrawFn body||h639ca26a4859a28b5d0c68a17b414a22b59f92e32460ae828991807709b85741", "signature": "void ContextMenu(UiText id, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "ContextMeter", "kind": "extension", "id": "extension|ContextMeter|0|0|void|UiText id;float used;float limit;ContextOpts o = default||h19d9530359d94af2f36c2f8a876d49576ae0e0c4c67e5270f45fdf36934d1c78", "signature": "void ContextMeter(UiText id, float used, float limit, ContextOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "used", "type": "float" }, { "name": "limit", "type": "float" }, { "name": "o", "type": "ContextOpts", "default": "default" }], "summary": "Context meter: a small ring of how full the context is; hover for a breakdown. It turns amber past 80% and red past 95%." }, { "name": "Countdown", "kind": "extension", "id": "extension|Countdown|0|0|void|UiText id;double secondsLeft;CountdownOpts o = default||h821d564a1492fd931adfbbc43d4c182d207343abf289fdf0702df537f77d848a", "signature": "void Countdown(UiText id, double secondsLeft, CountdownOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "secondsLeft", "type": "double" }, { "name": "o", "type": "CountdownOpts", "default": "default" }], "summary": "Countdown: days, hours, minutes and seconds as tiles whose digits roll." }, { "name": "Counter", "kind": "extension", "id": "extension|Counter|0|0|void|UiText id;double value;CounterOpts o = default||h0b05971fdda28297316e6f4447ca5d501aa7a11fe9da2f3bdc3756e5b7c5ffd3", "signature": "void Counter(UiText id, double value, CounterOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "double" }, { "name": "o", "type": "CounterOpts", "default": "default" }], "summary": "Odometer: a number whose digits roll to their new values." }, { "name": "DataGrid", "kind": "extension", "id": "extension|DataGrid|0|0|void|UiText id;ReadOnlySpan\u003CGridColumn\u003E columns;int rowCount;GridState state;DrawFn body;GridOpts o = default||h9c456dfa1016ff4f42bd0014595270a05519919f42743036e5fc9f8cb8147c63", "signature": "void DataGrid(UiText id, ReadOnlySpan\u003CGridColumn\u003E columns, int rowCount, GridState state, DrawFn body, GridOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CGridColumn\u003E" }, { "name": "rowCount", "type": "int" }, { "name": "state", "type": "GridState" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "GridOpts", "default": "default" }], "summary": "Draws the body only when open; closes and publishes state even on exceptions." }, { "name": "DataGridCell", "kind": "extension", "id": "extension|DataGridCell|0|0|void|||h17266c47617cb3e20e5aafb4e0740fb451853300d3ea2f4cf357c27f4e0c97e5", "signature": "void DataGridCell()", "extensionOn": "CuiSharp.Ui", "summary": "next cell; put components inside" }, { "name": "DataGridCellText", "kind": "extension", "id": "extension|DataGridCellText|0|0|void|UiText text||hbc15a57820d975503239bf1e6c43046de51dd25c53400b94dc05e4c5ec821c22", "signature": "void DataGridCellText(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "cui_data_grid_cell_text" }, { "name": "DestroyImage", "kind": "method", "id": "method|DestroyImage|0|0|void|ulong texture||h233513e5e0f04cab6a29321054080d17776d33b361cec53060f335038ac6c4f4", "signature": "void DestroyImage(ulong texture)", "parameters": [{ "name": "texture", "type": "ulong" }], "summary": "Frees a texture obtained from CreateImage, LoadImage or a widget that loaded one for you (the avatar upload). Passing 0 does nothing, so a field can be cleared and released in one step." }, { "name": "Dialog", "kind": "extension", "id": "extension|Dialog|0|0|void|UiText title;ref bool open;DrawFn body;DialogOpts o = default||hb9a2198e7b3396b3f8e81f53972b52816f4e10d0c965758cb0b8e59b20c0dad6", "signature": "void Dialog(UiText title, ref bool open, DrawFn body, DialogOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "DialogOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "DockPanel", "kind": "extension", "id": "extension|DockPanel|0|0|void|UiText title;ref bool open;DrawFn body;DockPanelOpts o = default||haec3aec1f30c0641ff9d8d21ef9827c8984e582f195575f5bdafa8e30c26bf47", "signature": "void DockPanel(UiText title, ref bool open, DrawFn body, DockPanelOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "DockPanelOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "DockSeparator", "kind": "extension", "id": "extension|DockSeparator|0|0|void|||h4f7b4ffb27ff0752d3414c6e36155f014d64756d9c99299d0061f4d3b662e948", "signature": "void DockSeparator()", "extensionOn": "CuiSharp.Ui", "summary": "cui_dock_separator" }, { "name": "DonutChart", "kind": "method", "id": "method|DonutChart|0|0|void|UiText id;float[] values;string[]? labels = null;ChartOpts o = default||h105b6ba9a48212810ca8eaa543dfd59b8bcbb7a078d6d00c43caa8337cf3e984", "signature": "void DonutChart(UiText id, float[] values, string[]? labels = null, ChartOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "values", "type": "float[]" }, { "name": "labels", "type": "string[]?", "default": "null" }, { "name": "o", "type": "ChartOpts", "default": "default" }] }, { "name": "DotDisplay", "kind": "extension", "id": "extension|DotDisplay|0|0|void|UiText text;DotDisplayOpts o = default||h69cc0b3822b72c2d91c328a3999ec76dc3ab49fb7d2667722d67fca441b5fa7a", "signature": "void DotDisplay(UiText text, DotDisplayOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "DotDisplayOpts", "default": "default" }], "summary": "Dot-matrix display: text drawn with a 5 by 7 dot font, for clocks, counters and status lines. Printable ASCII, the degree sign and the middle dot have glyphs; anything else is a box. Unlit dots show dimly unless \u0060no_dim\u0060 is set. In a box narrower than the text, the dots shrink to fit, or with \u0060marquee\u0060 the text scrolls." }, { "name": "DrawArc", "kind": "method", "id": "method|DrawArc|0|0|void|float cx;float cy;float radius;float fromRadians;float toRadians;float thickness;Color color||h75c08329ccf02db7c649c3de4062b857fcb9fb9b5607cc0cdc3ffa02cdd3a32a", "signature": "void DrawArc(float cx, float cy, float radius, float fromRadians, float toRadians, float thickness, Color color)", "parameters": [{ "name": "cx", "type": "float" }, { "name": "cy", "type": "float" }, { "name": "radius", "type": "float" }, { "name": "fromRadians", "type": "float" }, { "name": "toRadians", "type": "float" }, { "name": "thickness", "type": "float" }, { "name": "color", "type": "Color" }], "summary": "An arc from fromRadians to toRadians." }, { "name": "DrawCircle", "kind": "method", "id": "method|DrawCircle|0|0|void|float cx;float cy;float radius;Color color||hb1d4daba0313192a47661dfdcba2bbea774eacd066b6e992e4b4698dddcde09a", "signature": "void DrawCircle(float cx, float cy, float radius, Color color)", "parameters": [{ "name": "cx", "type": "float" }, { "name": "cy", "type": "float" }, { "name": "radius", "type": "float" }, { "name": "color", "type": "Color" }], "summary": "A filled circle." }, { "name": "DrawEmoji", "kind": "extension", "id": "extension|DrawEmoji|0|0|void|UiText utf8;RectF r||ha6979720ffa9f6b639eedcdc2f34912ae99c3e8f6db6d29d49b7a755626e5e61", "signature": "void DrawEmoji(UiText utf8, RectF r)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "utf8", "type": "UiText" }, { "name": "r", "type": "RectF" }], "summary": "cui_draw_emoji" }, { "name": "DrawIcon", "kind": "method", "id": "method|DrawIcon|0|0|void|UiText icon;RectF r;Color color;float size = 16f||hd54b671c520dcce41f616162ba2038b0604408edb2178e4e538b9fd737631621", "signature": "void DrawIcon(UiText icon, RectF r, Color color, float size = 16f)", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "r", "type": "RectF" }, { "name": "color", "type": "Color" }, { "name": "size", "type": "float", "default": "16f" }], "summary": "Draws an icon glyph into a rectangle." }, { "name": "DrawImage", "kind": "method", "id": "method|DrawImage|0|0|void|ulong texture;RectF destination;Color tint;float radius = default||h02908132cac945b65c579f6460fda70375b546d9df86cb8e4446b3d6369a8ad2", "signature": "void DrawImage(ulong texture, RectF destination, Color tint, float radius = default)", "parameters": [{ "name": "texture", "type": "ulong" }, { "name": "destination", "type": "RectF" }, { "name": "tint", "type": "Color" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Draws the whole texture into destination." }, { "name": "DrawImage", "kind": "method", "id": "method|DrawImage|0|0|void|ulong texture;RectF destination;RectF uv;Color tint;float radius = default||h19922f36165664b04b3f13745794f29cd576c87d690e38abfacd839c9eebe6ea", "signature": "void DrawImage(ulong texture, RectF destination, RectF uv, Color tint, float radius = default)", "parameters": [{ "name": "texture", "type": "ulong" }, { "name": "destination", "type": "RectF" }, { "name": "uv", "type": "RectF" }, { "name": "tint", "type": "Color" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Draws a texture into destination, sampling uv in 0..1 texture coordinates." }, { "name": "DrawLine", "kind": "method", "id": "method|DrawLine|0|0|void|float x0;float y0;float x1;float y1;float thickness;Color color||h7c718f3cf261fcdd9890ecc99c37b4c7ef88951855160bbd3b4b84bbb0906183", "signature": "void DrawLine(float x0, float y0, float x1, float y1, float thickness, Color color)", "parameters": [{ "name": "x0", "type": "float" }, { "name": "y0", "type": "float" }, { "name": "x1", "type": "float" }, { "name": "y1", "type": "float" }, { "name": "thickness", "type": "float" }, { "name": "color", "type": "Color" }], "summary": "A line between two points." }, { "name": "DrawPolygon", "kind": "method", "id": "method|DrawPolygon|0|0|void|ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E points;Color color||h0a35ee50b137930776943658c6a4b0a802340e6fc1443224120f511919b82309", "signature": "void DrawPolygon(ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E points, Color color)", "parameters": [{ "name": "points", "type": "ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E" }, { "name": "color", "type": "Color" }], "summary": "A convex polygon through the given x/y pairs." }, { "name": "DrawPolyline", "kind": "method", "id": "method|DrawPolyline|0|0|void|ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E points;float thickness;Color color;bool closed = default||h4c7f07e3c9fc697e544cc98214f394946bae499ac03450d9e5812ced69ce04e9", "signature": "void DrawPolyline(ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E points, float thickness, Color color, bool closed = default)", "parameters": [{ "name": "points", "type": "ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E" }, { "name": "thickness", "type": "float" }, { "name": "color", "type": "Color" }, { "name": "closed", "type": "bool", "default": "default" }], "summary": "A polyline through the given x/y pairs." }, { "name": "DrawRect", "kind": "method", "id": "method|DrawRect|0|0|void|RectF r;Color fill;Color border;float borderWidth;float radius = default||h4ba9a89c0df1a36edef3bc858b12de8bb1c2d9020a801bc38d101b16e9839611", "signature": "void DrawRect(RectF r, Color fill, Color border, float borderWidth, float radius = default)", "parameters": [{ "name": "r", "type": "RectF" }, { "name": "fill", "type": "Color" }, { "name": "border", "type": "Color" }, { "name": "borderWidth", "type": "float" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Fills a rounded rectangle and strokes its border." }, { "name": "DrawRect", "kind": "method", "id": "method|DrawRect|0|0|void|RectF r;Color fill;float radius = default||hbede7dc4a83173600f87c3151cfb881b786025c1a85bfc6cfd41ac9c76b997ec", "signature": "void DrawRect(RectF r, Color fill, float radius = default)", "parameters": [{ "name": "r", "type": "RectF" }, { "name": "fill", "type": "Color" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Fills a rounded rectangle." }, { "name": "DrawRectGradient", "kind": "method", "id": "method|DrawRectGradient|0|0|void|RectF r;Color top;Color bottom;float radius = default||hdfb2b1697ea2ab6d38c629c2592cb4496e061c2c2d2d73080e90e315c179fa59", "signature": "void DrawRectGradient(RectF r, Color top, Color bottom, float radius = default)", "parameters": [{ "name": "r", "type": "RectF" }, { "name": "top", "type": "Color" }, { "name": "bottom", "type": "Color" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Fills a rounded rectangle with a vertical gradient." }, { "name": "DrawShadow", "kind": "method", "id": "method|DrawShadow|0|0|void|RectF r;Color color;float blur = 12f;float spread = default;float dx = default;float dy = 2f;float radius = default||hd608a1aa394a6724e278bdd79827b6dd27fa0b58389aad230a6976a37e6e1bc9", "signature": "void DrawShadow(RectF r, Color color, float blur = 12f, float spread = default, float dx = default, float dy = 2f, float radius = default)", "parameters": [{ "name": "r", "type": "RectF" }, { "name": "color", "type": "Color" }, { "name": "blur", "type": "float", "default": "12f" }, { "name": "spread", "type": "float", "default": "default" }, { "name": "dx", "type": "float", "default": "default" }, { "name": "dy", "type": "float", "default": "2f" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "A soft drop shadow behind a rounded rectangle." }, { "name": "DrawText", "kind": "method", "id": "method|DrawText|0|0|void|UiText text;float x;float y;Color color;float size = 12f;Font font = Font.Body||ha379555b96749e8089ccd4a67f9f06f0c97c8e3bf6628a829212e087cdf44073", "signature": "void DrawText(UiText text, float x, float y, Color color, float size = 12f, Font font = Font.Body)", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "x", "type": "float" }, { "name": "y", "type": "float" }, { "name": "color", "type": "Color" }, { "name": "size", "type": "float", "default": "12f" }, { "name": "font", "type": "Font", "default": "Font.Body" }], "summary": "Draws text outside layout, from a string, UTF-8 bytes, or interpolation." }, { "name": "Emoji", "kind": "extension", "id": "extension|Emoji|0|0|void|UiText utf8;float size||hcce49478392e105a5082cf12fe2c18e8a68954f1395b48ec19c91052abdbfa90", "signature": "void Emoji(UiText utf8, float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "utf8", "type": "UiText" }, { "name": "size", "type": "float" }], "summary": "one emoji as a component" }, { "name": "ExpandableCard", "kind": "extension", "id": "extension|ExpandableCard|0|0|void|UiText title;ref bool open;DrawFn body;ExpandableCardOpts o = default||h45a44cd40dda73a400ba664b3783303201ba3f221c6a0c0021b4519c21652a83", "signature": "void ExpandableCard(UiText title, ref bool open, DrawFn body, ExpandableCardOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "ExpandableCardOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "Gap", "kind": "extension", "id": "extension|Gap|0|0|void|float size||h89c0f099b911f74a22d756328dc6f8c634ce4e2561cfb7403549af06bfe120d2", "signature": "void Gap(float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "size", "type": "float" }], "summary": "fixed space" }, { "name": "Gauge", "kind": "extension", "id": "extension|Gauge|0|0|void|UiText label;float value;float size = 130f||h0d866db02a3773b1f94110de3177536a50289e2eb2f4f1328d5ea96164ce0e3d", "signature": "void Gauge(UiText label, float value, float size = 130f)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "float" }, { "name": "size", "type": "float", "default": "130f" }], "summary": "cui_gauge" }, { "name": "GradientText", "kind": "extension", "id": "extension|GradientText|0|0|void|UiText text;GradientTextOpts o = default||h3f77173db929d5d0326fb0d6aacd31968c768ec86de8e25973b46685c05898a0", "signature": "void GradientText(UiText text, GradientTextOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "GradientTextOpts", "default": "default" }], "summary": "Text painted with a gradient from one color to another; animate makes it drift." }, { "name": "Heading", "kind": "extension", "id": "extension|Heading|0|0|void|UiText text;int level = 2||h557aed71184ccf0f99a503a8e9e31f47bd8f19daa88deaf28acbf6bd2f58da8f", "signature": "void Heading(UiText text, int level = 2)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "level", "type": "int", "default": "2" }], "summary": "1..4" }, { "name": "HexViewGoto", "kind": "extension", "id": "extension|HexViewGoto|0|0|void|UiText id;ulong offset||he99988413132b927d206b59bb10ff266913c4aed14642da49708324af5d3a4ea", "signature": "void HexViewGoto(UiText id, ulong offset)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "offset", "type": "ulong" }], "summary": "Go to offset: on the view\u0027s next frame its cursor moves to offset, that byte becomes the selection and it scrolls into view (to the middle when it was out of sight). Wire a \u0022Go to\u0022 field to it; it is safe to call every frame." }, { "name": "HoverCard", "kind": "extension", "id": "extension|HoverCard|0|0|void|UiText id;DrawFn body;HoverCardOpts o = default||h1feb5df25fc90d51f65ce5d548e1c92a15c20d4dbcfb120ec57197031f6bf861", "signature": "void HoverCard(UiText id, DrawFn body, HoverCardOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "HoverCardOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "Icon", "kind": "method", "id": "method|Icon|0|0|void|UiText icon;float size = 16f;Color color = default||ha3c2c3c378676921960172e72c0cd75e176f823d910f148819cb62c5c07fcdb7", "signature": "void Icon(UiText icon, float size = 16f, Color color = default)", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "size", "type": "float", "default": "16f" }, { "name": "color", "type": "Color", "default": "default" }] }, { "name": "Image", "kind": "extension", "id": "extension|Image|0|0|void|ulong tex;ImageOpts o = default||h4aba4bdd877e6dfb8e45ba090aba9ec93a98e0c6441d125c9038d1be437dc417", "signature": "void Image(ulong tex, ImageOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "tex", "type": "ulong" }, { "name": "o", "type": "ImageOpts", "default": "default" }], "summary": "cui_image_ex" }, { "name": "Inspector", "kind": "extension", "id": "extension|Inspector|0|0|void|UiText id;DrawFn body;InspectorOpts o = default||h841cdf7d1c9125bb04f373e4d2f93c10eccdb9bcbb43da0de7dccc3769b41a32", "signature": "void Inspector(UiText id, DrawFn body, InspectorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "InspectorOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "Kbd", "kind": "extension", "id": "extension|Kbd|0|0|void|UiText keys||h417076fb4869022dd26ff1c344a189d091fce7e448e96c96224d62f1a451f6d1", "signature": "void Kbd(UiText keys)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "keys", "type": "UiText" }], "summary": "keyboard keycap, e.g. \u0022Ctrl K\u0022" }, { "name": "Label", "kind": "extension", "id": "extension|Label|0|0|void|UiText text||h72e24445b52f829a1571cbd68c5c6fac6835700a497232df3ad518950a463221", "signature": "void Label(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "medium weight" }, { "name": "LineChart", "kind": "method", "id": "method|LineChart|0|0|void|UiText id;ReadOnlySpan\u003Cfloat\u003E values;ChartOpts o = default;Color color = default||h3cdc2012853a1aaf00f86229fc128bb443d3b47540340bb22a37e12c48168603", "signature": "void LineChart(UiText id, ReadOnlySpan\u003Cfloat\u003E values, ChartOpts o = default, Color color = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "o", "type": "ChartOpts", "default": "default" }, { "name": "color", "type": "Color", "default": "default" }], "summary": "A line chart of one series. This is the overload most charts want: the samples are passed directly, and an empty span draws nothing at all." }, { "name": "LineChart", "kind": "method", "id": "method|LineChart|0|0|void|UiText id;Series[] series;ChartOpts o = default||hc086d5dcd804a5f509ce75cc8bee9f3f8667a55ceb50af4ffaabadafd4609ad0", "signature": "void LineChart(UiText id, Series[] series, ChartOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "Series[]" }, { "name": "o", "type": "ChartOpts", "default": "default" }] }, { "name": "Loader", "kind": "extension", "id": "extension|Loader|0|0|void|LoaderOpts o = default||h5945e358ac0fbf3d0cb4c3df6db1ab5234d41a31263116b2fb63eee24b3e9451", "signature": "void Loader(LoaderOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "LoaderOpts", "default": "default" }], "summary": "cui_loader_ex" }, { "name": "LogView", "kind": "extension", "id": "extension|LogView|0|0|void|UiText id;LogBuffer log;LogViewOpts o = default||h629acfd43966ab117356ba793bd70ad6b9dfe93587dd289ab839a823556ecc7b", "signature": "void LogView(UiText id, LogBuffer log, LogViewOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "log", "type": "LogBuffer" }, { "name": "o", "type": "LogViewOpts", "default": "default" }], "summary": "Draws log with its toolbar: level filters, search with highlight, Follow, Copy and Clear. Scrolling up turns Follow off; reaching the bottom turns it back on." }, { "name": "MarkReady", "kind": "method", "id": "method|MarkReady|0|0|void|||h8dc4126f75765e5089f4b5e2bbbb22f0fc14d612aafd61d5d0998543d5b212d0", "signature": "void MarkReady()", "summary": "Declares that this frame shows complete, current app data. This is what dotnet cui --wait ready waits for: readiness is a property of the frame that marks it, so the next frame starts unready and a screen that goes back to loading is never seen as ready on the strength of an older mark." }, { "name": "Menu", "kind": "extension", "id": "extension|Menu|0|0|void|UiText label;DrawFn body;MenuOpts o = default||h46a55ef5a629d54cea211e8cff97db0e260e3c390254e4a74263ef25c2b8fe9d", "signature": "void Menu(UiText label, DrawFn body, MenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "MenuOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "MenuBarMenu", "kind": "extension", "id": "extension|MenuBarMenu|0|0|void|UiText label;DrawFn body;MenuBarMenuOpts o = default||h1b1bac394be04ea33333eee937841b7391a0fc642ea6951788ddb9eb4b199110", "signature": "void MenuBarMenu(UiText label, DrawFn body, MenuBarMenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "MenuBarMenuOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "MenuLabel", "kind": "extension", "id": "extension|MenuLabel|0|0|void|UiText text||h55d6bbe5cef52bef1137dee2490a736200d78319bc81b81cdd5d2b7fbe16d2b6", "signature": "void MenuLabel(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "cui_menu_label" }, { "name": "MenuSeparator", "kind": "extension", "id": "extension|MenuSeparator|0|0|void|||h7babb70cb1540862bd8b5e000e173763dc48b627688082cf19bcc2e23c25ba73", "signature": "void MenuSeparator()", "extensionOn": "CuiSharp.Ui", "summary": "cui_menu_separator" }, { "name": "Meter", "kind": "extension", "id": "extension|Meter|0|0|void|UiText label;float used;float total;UiText unit = default||h1d8b4e728d051b711957aa7fbc9bcf832cd505900fdce01a27a79bdc8e9d89fa", "signature": "void Meter(UiText label, float used, float total, UiText unit = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "used", "type": "float" }, { "name": "total", "type": "float" }, { "name": "unit", "type": "UiText", "default": "default" }], "summary": "cui_meter" }, { "name": "Metric", "kind": "extension", "id": "extension|Metric|0|0|void|UiText label;UiText value;MetricOpts o = default||h9bab4a4dc12d3dace12e7106ac89323fdbfdf7c56bba9a0e2f0c40e9c95fbef6", "signature": "void Metric(UiText label, UiText value, MetricOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "UiText" }, { "name": "o", "type": "MetricOpts", "default": "default" }], "summary": "cui_metric_ex" }, { "name": "Muted", "kind": "extension", "id": "extension|Muted|0|0|void|UiText text||haf3dda321d9292f4d904d1870d8bb5dea3c49cb695524acb75572822bff2f9b8", "signature": "void Muted(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "small, muted" }, { "name": "NavSection", "kind": "extension", "id": "extension|NavSection|0|0|void|UiText title||hf901052c3e5ba17c7b523058746a19e11e181239069f2b8fbb43adfafdbdcafc", "signature": "void NavSection(UiText title)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }], "summary": "cui_nav_section" }, { "name": "Node", "kind": "extension", "id": "extension|Node|0|0|void|int nodeId;ref float x;ref float y;UiText title;DrawFn body;NodeOpts o = default||he2a131c3e341325536d7aaaafc4f83046a7d7e9c45eead6545f141826f6d7e82", "signature": "void Node(int nodeId, ref float x, ref float y, UiText title, DrawFn body, NodeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "nodeId", "type": "int" }, { "name": "x", "type": "ref float" }, { "name": "y", "type": "ref float" }, { "name": "title", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "NodeOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "NodeEditor", "kind": "extension", "id": "extension|NodeEditor|0|0|void|UiText id;ref NodeView view;DrawFn body;NodeEditorOpts o = default||h5854f9b818a6cafa92571b34f94f5f0c435142d546b6f628a1174b1effe7ac67", "signature": "void NodeEditor(UiText id, ref NodeView view, DrawFn body, NodeEditorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "view", "type": "ref NodeView" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "NodeEditorOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "NumberRoll", "kind": "extension", "id": "extension|NumberRoll|0|0|void|UiText id;UiText text;TextFxOpts o = default||h67c63e017e57f215b45262ce043c429d9ff6e486e3c507e0c84f3d5daa53a5bf", "signature": "void NumberRoll(UiText id, UiText text, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "A figure whose changed digits roll into place: up when the value rises, down when it falls, a beat apart from the left; unchanged characters stay still. Pass the formatted text (\u0022$64,210\u0022, \u00221.2k\u0022); digits are tabular." }, { "name": "PathBarMenu", "kind": "extension", "id": "extension|PathBarMenu|0|0|void|UiText id;ref int segment;DrawFn body||h875759cac9f5832bcb6782caaa672db98fbc277a19f31017d3155a38c398dce5", "signature": "void PathBarMenu(UiText id, ref int segment, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "segment", "type": "ref int" }, { "name": "body", "type": "DrawFn" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "PopClip", "kind": "method", "id": "method|PopClip|0|0|void|||hd223700ffd7f730814c69ec5bd11dae3b4dd4a7a738e754b775a351e0c980575", "signature": "void PopClip()", "summary": "Ends the clip opened by PushClip." }, { "name": "Popover", "kind": "extension", "id": "extension|Popover|0|0|void|UiText id;DrawFn body;PopoverOpts o = default||h597b85fb0e87089ca73543226f68a70b713ea0f9c949974f2c0425c7028438f3", "signature": "void Popover(UiText id, DrawFn body, PopoverOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "PopoverOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "PopoverClose", "kind": "extension", "id": "extension|PopoverClose|0|0|void|UiText id||hca913fedac00c0c27ef6b37fb3f90cb88cd76862d0e5884e8f4e8dac8ba415b3", "signature": "void PopoverClose(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_popover_close" }, { "name": "PopoverOpen", "kind": "extension", "id": "extension|PopoverOpen|0|0|void|UiText id||h424af0f304196b1a039d033eb75b4bff9dca251d0232dbc683699a925dfaa16d", "signature": "void PopoverOpen(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_popover_open" }, { "name": "PopoverToggle", "kind": "extension", "id": "extension|PopoverToggle|0|0|void|UiText id||h58628645f47f2c9c2896b1ec70e7d661c861b7abb26420d9b750e21380db5e02", "signature": "void PopoverToggle(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_popover_toggle" }, { "name": "Presence", "kind": "extension", "id": "extension|Presence|0|0|void|UiText id;ReadOnlySpan\u003CPresenceUser\u003E users;int maxVisible;float size||h33db1325c05049463f7c9a97e3df833a114732c8a156f6ee2d775dad7a69c214", "signature": "void Presence(UiText id, ReadOnlySpan\u003CPresenceUser\u003E users, int maxVisible, float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "users", "type": "ReadOnlySpan\u003CPresenceUser\u003E" }, { "name": "maxVisible", "type": "int" }, { "name": "size", "type": "float" }], "summary": "Presence: who is here now. Overlapping avatars with a colored ring each, that spread out on hover and name themselves." }, { "name": "Progress", "kind": "extension", "id": "extension|Progress|0|0|void|float value;ProgressOpts o = default||h811e97c08fde2498427fc6a279e22a1c2ea3bc1ce69c3d642c73832f10623d4d", "signature": "void Progress(float value, ProgressOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "value", "type": "float" }, { "name": "o", "type": "ProgressOpts", "default": "default" }], "summary": "cui_progress_ex" }, { "name": "ProgressRing", "kind": "extension", "id": "extension|ProgressRing|0|0|void|UiText label;float value;float size = 104f||h2e30430280ecfbc1925c0164f0bb59a54da3003b073ef1535c6cb3c2d4e8e057", "signature": "void ProgressRing(UiText label, float value, float size = 104f)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "float" }, { "name": "size", "type": "float", "default": "104f" }], "summary": "Circular progress with the value in the middle." }, { "name": "PushClip", "kind": "method", "id": "method|PushClip|0|0|void|RectF r||h95bac6dcebf24b24b986a596422f965edfee8cd616663a1e59d0da09a9bd3efb", "signature": "void PushClip(RectF r)", "parameters": [{ "name": "r", "type": "RectF" }], "summary": "Clips subsequent drawing to a rectangle. Pair with PopClip." }, { "name": "RadialGauge", "kind": "extension", "id": "extension|RadialGauge|0|0|void|UiText id;float value;float min;float max;RadialGaugeOpts o = default||h69d72defa0179e7173e927724367a4bb9575a2e75bbd9949225f9eab886c2992", "signature": "void RadialGauge(UiText id, float value, float min, float max, RadialGaugeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "RadialGaugeOpts", "default": "default" }], "summary": "cui_radial_gauge_ex" }, { "name": "Readout", "kind": "extension", "id": "extension|Readout|0|0|void|UiText label;UiText value;ReadoutOpts o = default||h88673692487a3fc220702b7f3a45a3b5fc3f80bc6eab7e144728a19666b2f88f", "signature": "void Readout(UiText label, UiText value, ReadoutOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "UiText" }, { "name": "o", "type": "ReadoutOpts", "default": "default" }], "summary": "Readout: one figure as an instrument shows it. A small label, the value in the monospaced font with its unit, and a muted line of context under it." }, { "name": "Reasoning", "kind": "extension", "id": "extension|Reasoning|0|0|void|UiText id;DrawFn body;ReasoningOpts o = default||h892c50fc79e75386733c9149e18f72832dbdccb2d31c29b39a76a16ea185386e", "signature": "void Reasoning(UiText id, DrawFn body, ReasoningOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "ReasoningOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "ReorderBegin", "kind": "method", "id": "method|ReorderBegin|0|0|void|UiText id;int[] order||hb312c00b771ad378a0324c96198659487c28a3c21c9d71a96e3f595957ffe21f", "signature": "void ReorderBegin(UiText id, int[] order)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "order", "type": "int[]" }] }, { "name": "RequestRedraw", "kind": "method", "id": "method|RequestRedraw|0|0|void|||h4986f5ad7c5201d2830f1dee1e374ca29980fe9c408b3ef833336aabba3ed66c", "signature": "void RequestRedraw()", "summary": "Requests another frame; call only from the synchronous draw path." }, { "name": "RequestWakeup", "kind": "extension", "id": "extension|RequestWakeup|0|0|void|float seconds||h1e8d82035be8a5e226207bb6bd0874265dba29cf4b6a4779f60b95ab7cc567f7", "signature": "void RequestWakeup(float seconds)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "seconds", "type": "float" }], "summary": "Asks for one more frame after seconds, even when nothing else would wake the window. Use it for a timer, a toast timeout or a poll interval." }, { "name": "ResponseStatus", "kind": "extension", "id": "extension|ResponseStatus|0|0|void|int status;double seconds;double bytes||h63e7c9d5181d7379043415c904edf88e89db4e9781c0577d221801f58399a1cf", "signature": "void ResponseStatus(int status, double seconds, double bytes)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "status", "type": "int" }, { "name": "seconds", "type": "double" }, { "name": "bytes", "type": "double" }], "summary": "cui_response_status" }, { "name": "ScrollTo", "kind": "extension", "id": "extension|ScrollTo|0|0|void|UiText scrollId;float y||h795b4245740f616fce2565ac40d5ea6dfa995143af81eedbc7067db0b0f1e7c0", "signature": "void ScrollTo(UiText scrollId, float y)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "scrollId", "type": "UiText" }, { "name": "y", "type": "float" }], "summary": "cui_scroll_to" }, { "name": "Secondary", "kind": "extension", "id": "extension|Secondary|0|0|void|UiText text||h4f32c253f11a19b26ceb397d205e5e2d5c6c8e5db01a0ef2e8984e0a2c78ef46", "signature": "void Secondary(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "secondary color" }, { "name": "Separator", "kind": "extension", "id": "extension|Separator|0|0|void|||h913edddc60366f9044c6b66111a5672080bdd3cb042c5febb3487cac873e4f6b", "signature": "void Separator()", "extensionOn": "CuiSharp.Ui", "summary": "hairline, follows the parent direction" }, { "name": "SetFont", "kind": "extension", "id": "extension|SetFont|0|0|void|Font role;Font font||hcab29e22e2019bb3b541b3254c5e4027f76d357aa2ea4e762ced8560cad6c652", "signature": "void SetFont(Font role, Font font)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "role", "type": "Font" }, { "name": "font", "type": "Font" }], "summary": "Makes font the face every widget using role draws with." }, { "name": "SetLocalization", "kind": "method", "id": "method|SetLocalization|0|0|void|Localization? table||h9b1e18df8b05e42ae28fc53a566e5014c93cf59eea849033c0ab9f19b6bae9bd", "signature": "void SetLocalization(Localization? table)", "parameters": [{ "name": "table", "type": "Localization?" }], "summary": "Sets the month, weekday and \u0022Today\u0022 names the date components show, and returns to English with null." }, { "name": "SetReducedMotion", "kind": "method", "id": "method|SetReducedMotion|0|0|void|bool reduced||hae4b830dd1026084cab290fac44e758b675baf93c35f70486ffa7547f059af88", "signature": "void SetReducedMotion(bool reduced)", "parameters": [{ "name": "reduced", "type": "bool" }], "summary": "Turns off animation (transitions, springs and spinners) for accessibility." }, { "name": "Sheet", "kind": "extension", "id": "extension|Sheet|0|0|void|UiText title;ref bool open;DrawFn body;SheetOpts o = default||h65c09301eb5dd69c80862865570241bbd654452c640464cf772559af8fc6bf22", "signature": "void Sheet(UiText title, ref bool open, DrawFn body, SheetOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "SheetOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "ShimmerText", "kind": "extension", "id": "extension|ShimmerText|0|0|void|UiText text;TextFxOpts o = default||h10fe1a4021ac0e8c72d7fdf6f3cb558e9a8c622c13f4749b7ac3d5d402cb9f57", "signature": "void ShimmerText(UiText text, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "Text with a highlight sweeping across it, for \u0022Thinking...\u0022 states." }, { "name": "SignatureClear", "kind": "extension", "id": "extension|SignatureClear|0|0|void|UiText id||hf23272f80768839b31369fdd5a82c42808ef1d11985d804d96d54c704b0de8bf", "signature": "void SignatureClear(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_signature_clear" }, { "name": "Skeleton", "kind": "extension", "id": "extension|Skeleton|0|0|void|Size width;float height||h9a80641f8540ed71174043f46e0ff5190568ee803a507a52125ab6fd1ccd12ec", "signature": "void Skeleton(Size width, float height)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "width", "type": "Size" }, { "name": "height", "type": "float" }], "summary": "cui_skeleton" }, { "name": "Spacer", "kind": "extension", "id": "extension|Spacer|0|0|void|||h8df9fad32f644fb75d2f19ff5d3057f2529306e3edc1921a901da58f59bdf332", "signature": "void Spacer()", "extensionOn": "CuiSharp.Ui", "summary": "flexible space" }, { "name": "Sparkline", "kind": "extension", "id": "extension|Sparkline|0|0|void|ReadOnlySpan\u003Cfloat\u003E values;Size width;float height;Color color||hf5e74b2ae617ca510b0dea71f3513379b77ff9597fa28585678fd9d5dc90c297", "signature": "void Sparkline(ReadOnlySpan\u003Cfloat\u003E values, Size width, float height, Color color)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "width", "type": "Size" }, { "name": "height", "type": "float" }, { "name": "color", "type": "Color" }], "summary": "cui_sparkline" }, { "name": "Spinner", "kind": "extension", "id": "extension|Spinner|0|0|void|float size = 16f||h910bfa94c12faa6f479982793408735550b3b41b6f58bf9d2ecbd8fbd8d537f9", "signature": "void Spinner(float size = 16f)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "size", "type": "float", "default": "16f" }], "summary": "cui_spinner" }, { "name": "SplitNext", "kind": "extension", "id": "extension|SplitNext|0|0|void|||h2e9b4df1853b9715ec487e793813aebc81a3f6ac93bd19f40400a8b7db5e57b1", "signature": "void SplitNext()", "extensionOn": "CuiSharp.Ui", "summary": "cui_split_next" }, { "name": "StatusBarProgress", "kind": "extension", "id": "extension|StatusBarProgress|0|0|void|float value;StatusProgressOpts o = default||h0d89461fbae2cb62b010aaa92c832f76c787764ad8bf6a7f6f3b2352d43eb62e", "signature": "void StatusBarProgress(float value, StatusProgressOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "value", "type": "float" }, { "name": "o", "type": "StatusProgressOpts", "default": "default" }], "summary": "A small progress bar with an optional label. value is 0..1." }, { "name": "StatusBarSpacer", "kind": "extension", "id": "extension|StatusBarSpacer|0|0|void|||hff79ec75c75a5a4046a3afdf7908bfa1687f1fccc3cca35aa6a3c05e5696b38d", "signature": "void StatusBarSpacer()", "extensionOn": "CuiSharp.Ui", "summary": "cui_status_bar_spacer" }, { "name": "StatusBarText", "kind": "extension", "id": "extension|StatusBarText|0|0|void|UiText text;StatusItemOpts o = default||hf5288fddf236ac4166245c73e6f33c7b59cd60825aad4b4b26f2a62615179863", "signature": "void StatusBarText(UiText text, StatusItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "StatusItemOpts", "default": "default" }], "summary": "A message; \u0060tone\u0060 colors its icon." }, { "name": "Stepper", "kind": "extension", "id": "extension|Stepper|0|0|void|ReadOnlySpan\u003Cstring\u003E steps;int current||h80f2e80af6bf18ef466ffe2f62937141940d661367c04989db4a52915786a5ca", "signature": "void Stepper(ReadOnlySpan\u003Cstring\u003E steps, int current)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "steps", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "current", "type": "int" }], "summary": "cui_stepper" }, { "name": "Table", "kind": "extension", "id": "extension|Table|0|0|void|UiText id;ReadOnlySpan\u003CTableColumn\u003E columns;ref TableSort sort;DrawFn body;TableOpts o = default||h7968ef7a646f0817ff9658c4cbca9383316e49dd9c742c9662b2ff3812b0fd0a", "signature": "void Table(UiText id, ReadOnlySpan\u003CTableColumn\u003E columns, ref TableSort sort, DrawFn body, TableOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CTableColumn\u003E" }, { "name": "sort", "type": "ref TableSort" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "TableOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "TableCell", "kind": "extension", "id": "extension|TableCell|0|0|void|||h7206d360daa4de79037d61b719094d0baea2de5a24e5aeb9f04149502f3db3bc", "signature": "void TableCell()", "extensionOn": "CuiSharp.Ui", "summary": "Next cell; put any components inside, or use cui_table_cell_text." }, { "name": "TableCellText", "kind": "extension", "id": "extension|TableCellText|0|0|void|UiText text||h7ed6f22b1e22b71ecfb331830e30c25829c7af8fec09d3b888c861bbb28793a6", "signature": "void TableCellText(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "Part of cui_table_cell \u2014 Next cell; put any components inside, or use cui_table_cell_text." }, { "name": "Text", "kind": "extension", "id": "extension|Text|0|0|void|UiText text;TextOpts o = default||h098380135ff70fa9e6364b4f5cb5baaa3d0d23bb4e06916511f00c01e904dcb6", "signature": "void Text(UiText text, TextOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "TextOpts", "default": "default" }], "summary": "cui_text_ex" }, { "name": "TextReveal", "kind": "extension", "id": "extension|TextReveal|0|0|void|UiText id;UiText text;TextFxOpts o = default||h7f99ba4d6b24021ea0f87d36914931f6994d1962327a22f1e8b4caad0115cafe", "signature": "void TextReveal(UiText id, UiText text, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "Words fade and rise into place one after another, when first shown and again whenever the text changes." }, { "name": "Ticker", "kind": "extension", "id": "extension|Ticker|0|0|void|UiText id;ReadOnlySpan\u003CTickerItem\u003E items;TickerOpts o = default||h62c76d0d359572be4036b278345efbeac770ba89bef0d4343912d1b51ea0fc23", "signature": "void Ticker(UiText id, ReadOnlySpan\u003CTickerItem\u003E items, TickerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CTickerItem\u003E" }, { "name": "o", "type": "TickerOpts", "default": "default" }], "summary": "Ticker: items that scroll by continuously, pausing on hover." }, { "name": "TimelineItem", "kind": "extension", "id": "extension|TimelineItem|0|0|void|UiText title;TimelineOpts o = default||hd57ae894fcdcf6a57e4008b86ca1e4a0ea3d920a1be7b0beead7f0c64dce9b25", "signature": "void TimelineItem(UiText title, TimelineOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "TimelineOpts", "default": "default" }], "summary": "cui_timeline_item_ex" }, { "name": "ToastDismiss", "kind": "extension", "id": "extension|ToastDismiss|0|0|void|int handle||h6a894b14bc221b765154e4ee9cf6cdd1812f544772192205c25a197be8077904", "signature": "void ToastDismiss(int handle)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "handle", "type": "int" }], "summary": "cui_toast_dismiss" }, { "name": "TocAnchor", "kind": "extension", "id": "extension|TocAnchor|0|0|void|UiText anchor||h474d1046a90fd952ce1996c9a0f04e59d8090e886222bfa8a62b08c2d191127c", "signature": "void TocAnchor(UiText anchor)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "anchor", "type": "UiText" }], "summary": "cui_toc_anchor" }, { "name": "ToggleTheme", "kind": "method", "id": "method|ToggleTheme|0|0|void|||h9c315cf4c8d3ce0774082f4db1c10fdcde1dfdef8503f7e49968fc73805e19e8", "signature": "void ToggleTheme()", "summary": "Switches to the other theme: what a \u0022dark mode\u0022 command is." }, { "name": "ToolCall", "kind": "extension", "id": "extension|ToolCall|0|0|void|UiText id;UiText name;ToolCallOpts o = default||h16a78d12e8afd01cd74d0ff79d04eab871b3602eb401436850ec64b67c8d437d", "signature": "void ToolCall(UiText id, UiText name, ToolCallOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "name", "type": "UiText" }, { "name": "o", "type": "ToolCallOpts", "default": "default" }], "summary": "cui_tool_call_ex" }, { "name": "ToolbarSeparator", "kind": "extension", "id": "extension|ToolbarSeparator|0|0|void|||h1ac04b800f486b06135932d0c44c42e77b107a635f62f0ebe94dc31f9e99b9a6", "signature": "void ToolbarSeparator()", "extensionOn": "CuiSharp.Ui", "summary": "cui_toolbar_separator" }, { "name": "ToolbarSpacer", "kind": "extension", "id": "extension|ToolbarSpacer|0|0|void|||h494edd9bb119d78eaa1c281a125dd1a9effb7a85caa35e4b35c4253376bb92f3", "signature": "void ToolbarSpacer()", "extensionOn": "CuiSharp.Ui", "summary": "pushes the following items to the right" }, { "name": "Tooltip", "kind": "extension", "id": "extension|Tooltip|0|0|void|UiText text||h5665aef7d99446eea8e623f0f1227e52e0512f331e35936232eb9a28aa7f3634", "signature": "void Tooltip(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "Tooltip for the previous component, shown after a short hover delay." }, { "name": "Tree", "kind": "extension", "id": "extension|Tree|0|0|void|UiText label;ref bool open;DrawFn body;TreeOpts o = default||he13b4bfd412c90e5210ac7a3109d12fb25e4a2280312b5257572daebbb5bbd95", "signature": "void Tree(UiText label, ref bool open, DrawFn body, TreeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "TreeOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "TreeTableName", "kind": "extension", "id": "extension|TreeTableName|0|0|void|UiText label;UiText icon||h1db08630dbcd5478e4543d6fc7df51dec714a4cefea2efb55e95ec44273c7151", "signature": "void TreeTableName(UiText label, UiText icon)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "icon", "type": "UiText" }], "summary": "The first cell: indentation, guides, the chevron, an icon and the name (cut short with a tooltip of the whole name when it does not fit)." }, { "name": "TypingIndicator", "kind": "extension", "id": "extension|TypingIndicator|0|0|void|UiText name||h29e1190d004ef9cf04c8fb3bb6772b74ea89a31b5105bb6fe5d65e29383b006a", "signature": "void TypingIndicator(UiText name)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "name", "type": "UiText" }], "summary": "bouncing dots" }, { "name": "UserMenu", "kind": "extension", "id": "extension|UserMenu|0|0|void|UiText name;DrawFn body;UserMenuOpts o = default||h1d302e00c446dbae93ac0347cf4063547177c7d4c68194db26c7ca15c8128f8c", "signature": "void UserMenu(UiText name, DrawFn body, UserMenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "name", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "UserMenuOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "WordRotate", "kind": "extension", "id": "extension|WordRotate|0|0|void|UiText id;ReadOnlySpan\u003Cstring\u003E words;float interval;TextFxOpts o = default||he53938c5acb8d2d7786cb08323a565882c4e7c01bc50637a3c5c0d9131734da4", "signature": "void WordRotate(UiText id, ReadOnlySpan\u003Cstring\u003E words, float interval, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "words", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "interval", "type": "float" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "One word at a time; the next one rolls up into place and the width follows." }] }, + { "name": "CuiSharp.Ui", "displayName": "Ui", "kind": "ref struct", "summary": "A stack-only drawing context. Do not retain it outside the current frame.", "members": [{ "name": "Accent", "kind": "property", "id": "property|Accent|0|0|Accent||get;set;|h601d9cfd9625a035242c1bcbf7277be4924bde18cceaaaa599fef54890ea0c9b", "signature": "Accent Accent { get; set; }", "summary": "The accent in use, and the way to change it. See Theme." }, { "name": "ApiExplorer", "kind": "extension", "id": "extension|ApiExplorer|0|0|ApiExplorerResult|UiText id;ReadOnlySpan\u003CApiEndpoint\u003E endpoints;ref int selected;ApiExplorerOpts o = default||h8e1274e09ed373172bec2fe1ee1969a7f9b2e594fbeed0ea8abed98302f3ed84", "signature": "ApiExplorerResult ApiExplorer(UiText id, ReadOnlySpan\u003CApiEndpoint\u003E endpoints, ref int selected, ApiExplorerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "endpoints", "type": "ReadOnlySpan\u003CApiEndpoint\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "ApiExplorerOpts", "default": "default" }], "summary": "cui_api_explorer_ex" }, { "name": "Blame", "kind": "extension", "id": "extension|Blame|0|0|BlameResult|UiText id;ReadOnlySpan\u003Cstring\u003E lines;ReadOnlySpan\u003Cint\u003E lineCommit;ReadOnlySpan\u003CBlameCommit\u003E commits;BlameOpts o = default||hdf716d42271c45696039bb07abacc01b9b0b2a935ee05dc1842213c276edf5eb", "signature": "BlameResult Blame(UiText id, ReadOnlySpan\u003Cstring\u003E lines, ReadOnlySpan\u003Cint\u003E lineCommit, ReadOnlySpan\u003CBlameCommit\u003E commits, BlameOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "lines", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "lineCommit", "type": "ReadOnlySpan\u003Cint\u003E" }, { "name": "commits", "type": "ReadOnlySpan\u003CBlameCommit\u003E" }, { "name": "o", "type": "BlameOpts", "default": "default" }], "summary": "Source with who last changed each line: lines from one commit share one gutter entry with its author, age and hash, and a bar at the edge shades newer changes stronger. Hover a gutter entry for the commit\u0027s summary and to mark its lines; click it to get the commit. Only the lines in view are built. On a phone the gutter keeps only the shade and initials." }, { "name": "Canvas", "kind": "method", "id": "method|Canvas|0|0|CanvasResult|UiText id;Size width;Size height;PaintFn paint||hf2c318f0b609f7226e807d7cf7e4edada63dc45f85bb57025ad7567a006824a0", "signature": "CanvasResult Canvas(UiText id, Size width, Size height, PaintFn paint)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "width", "type": "Size" }, { "name": "height", "type": "Size" }, { "name": "paint", "type": "PaintFn" }], "summary": "Reserves a box of the given size and lets you paint it." }, { "name": "Clip", "kind": "method", "id": "method|Clip|0|0|ClipScope|RectF r||h81bb7c5dd19720d5aa2ee17f5cb20e0238b08db45d6d0cb5700d16ce531ec5f2", "signature": "ClipScope Clip(RectF r)", "parameters": [{ "name": "r", "type": "RectF" }], "summary": "Clips subsequent drawing to a rectangle, closing the clip on dispose." }, { "name": "CodeEditor", "kind": "extension", "id": "extension|CodeEditor|0|0|CodeEditorResult|UiText id;ref string buf;int cap;CodeEditorOpts o = default||h3f99c4340c4ea2a0ae4ecc840716120045f85d30ea53f0aebe7ab1be2c09aa9a", "signature": "CodeEditorResult CodeEditor(UiText id, ref string buf, int cap, CodeEditorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }, { "name": "o", "type": "CodeEditorOpts", "default": "default" }], "summary": "cui_code_editor_ex" }, { "name": "ColorOf", "kind": "method", "id": "method|ColorOf|0|0|Color|Color color||h980f9c13c6409b9b666e72b6641e22a816c4a7d68a80eb109a44bc201bceceb0", "signature": "Color ColorOf(Color color)", "parameters": [{ "name": "color", "type": "Color" }], "summary": "Resolves a semantic token to its channels; other colors come back unchanged." }, { "name": "TokenColor", "kind": "method", "id": "method|TokenColor|0|0|Color|Token token||h0916cfc8affaa4db1788c2edd8ac85f518f146b3b691ef4d7181b7ad8ccac2fe", "signature": "Color TokenColor(Token token)", "parameters": [{ "name": "token", "type": "Token" }], "summary": "The channels a theme token resolves to this frame." }, { "name": "Comment", "kind": "extension", "id": "extension|Comment|0|0|CommentEvents|UiText id;UiText author;UiText text;ref int likes;ref bool liked;CommentOpts o = default||hd58eadbf1b4e2807aa889ed3f4c70606227f61711c62110ec27aebc46c70512c", "signature": "CommentEvents Comment(UiText id, UiText author, UiText text, ref int likes, ref bool liked, CommentOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "author", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "likes", "type": "ref int" }, { "name": "liked", "type": "ref bool" }, { "name": "o", "type": "CommentOpts", "default": "default" }], "summary": "cui_comment_ex" }, { "name": "CommitGraph", "kind": "extension", "id": "extension|CommitGraph|0|0|CommitGraphResult|UiText id;ReadOnlySpan\u003CCommit\u003E commits;ref int selected;CommitGraphOpts o = default||h8d094156c694b6c409f8abe92f01e016c9b138a44ea76b0770f70f4fd34781c7", "signature": "CommitGraphResult CommitGraph(UiText id, ReadOnlySpan\u003CCommit\u003E commits, ref int selected, CommitGraphOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "commits", "type": "ReadOnlySpan\u003CCommit\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "CommitGraphOpts", "default": "default" }], "summary": "Version history: the branch lanes drawn beside each commit, newest first, with its message, branch and tag names, author, date and short hash. Each commit names its parents by row (parents come later in the array), so merges and branches draw as lines between lanes. Only the rows in view are built. Up and Down move the selection; Enter or a double-click activates." }, { "name": "ChatComposer", "kind": "extension", "id": "extension|ChatComposer|0|0|ComposerEvents|UiText id;ref string buf;int cap;ref int removed;ref int model;ComposerOpts o = default||ha61bd40b4efb8355a255edc7d36d348178993536309ab1ee4c6c9a381fd22431", "signature": "ComposerEvents ChatComposer(UiText id, ref string buf, int cap, ref int removed, ref int model, ComposerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }, { "name": "removed", "type": "ref int" }, { "name": "model", "type": "ref int" }, { "name": "o", "type": "ComposerOpts", "default": "default" }], "summary": "cui_chat_composer_ex" }, { "name": "Coverage", "kind": "extension", "id": "extension|Coverage|0|0|CoverageResult|UiText id;ReadOnlySpan\u003CCoverageFile\u003E files;CoverageOpts o = default||h71a24310abd0377c27ded9130e91e48dc3e91a798d1a79f3563a30b446fe6a95", "signature": "CoverageResult Coverage(UiText id, ReadOnlySpan\u003CCoverageFile\u003E files, CoverageOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "files", "type": "ReadOnlySpan\u003CCoverageFile\u003E" }, { "name": "o", "type": "CoverageOpts", "default": "default" }], "summary": "Test coverage by folder and file: the files\u0027 paths make the tree, each folder sums up what it holds, and folders fold. Line coverage shows as a bar colored by thresholds, with branches and functions beside it. Click a column\u0027s title to sort. Enter or a double-click activates a file. Narrow panels show lines only." }, { "name": "Cursor", "kind": "property", "id": "property|Cursor|0|0|Cursor||get;|hc22a16db67c85c2843d2f88cc8ab464d28c155381bf1d1998e9fc4743eb42043", "signature": "Cursor Cursor { get; }", "summary": "The cursor the UI asked for last frame, for a backend that draws its own." }, { "name": "CurveEditor", "kind": "extension", "id": "extension|CurveEditor|0|0|CurveResult|UiText id;Span\u003CCurveKey\u003E keys;ref int count;ref int selected;CurveOpts o = default||h39773d299469a65f6696e9dc3fbe9375a8f18a602c2b96d77d1eee0c01377f62", "signature": "CurveResult CurveEditor(UiText id, Span\u003CCurveKey\u003E keys, ref int count, ref int selected, CurveOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "keys", "type": "Span\u003CCurveKey\u003E" }, { "name": "count", "type": "ref int" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "CurveOpts", "default": "default" }], "summary": "cui_curve_editor_ex" }, { "name": "DiffView", "kind": "extension", "id": "extension|DiffView|0|0|DiffResult|UiText id;UiText oldText;UiText newText;ref int current;DiffOpts o = default||h1928b65f5fa6dc715c0e20351e64a90a55ca9b8fd792c4a9a6e3df7545ba072a", "signature": "DiffResult DiffView(UiText id, UiText oldText, UiText newText, ref int current, DiffOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "oldText", "type": "UiText" }, { "name": "newText", "type": "UiText" }, { "name": "current", "type": "ref int" }, { "name": "o", "type": "DiffOpts", "default": "default" }], "summary": "cui_diff_view_ex" }, { "name": "Disabled", "kind": "method", "id": "method|Disabled|0|0|DisabledScope|bool disabled||h3a515a3de1d8d0205d97aef4118bf5ab6c5af12e051d859d3b8cabae81fb9db1", "signature": "DisabledScope Disabled(bool disabled)", "parameters": [{ "name": "disabled", "type": "bool" }], "summary": "Opens a disabled gate that using closes." }, { "name": "Disabled", "kind": "method", "id": "method|Disabled|0|0|DisabledScope|bool disabled;DrawFn body||hcc29e71513d0c4970a98faee97bed37a754ecae1da31ed37b95a7e3588c336d9", "signature": "DisabledScope Disabled(bool disabled, DrawFn body)", "parameters": [{ "name": "disabled", "type": "bool" }, { "name": "body", "type": "DrawFn" }], "summary": "Draws body with every control inside it disabled: it still lays out and paints, but clicks, keys and hover do nothing." }, { "name": "DocTabs", "kind": "extension", "id": "extension|DocTabs|0|0|DocTabsResult|UiText id;ReadOnlySpan\u003CDocTab\u003E tabs;ref int selected;DocTabsOpts o = default||hdb202a4c9e42fa362479fb5e674bee39fa9949e204316f94f4197f0a54fe4c83", "signature": "DocTabsResult DocTabs(UiText id, ReadOnlySpan\u003CDocTab\u003E tabs, ref int selected, DocTabsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tabs", "type": "ReadOnlySpan\u003CDocTab\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "DocTabsOpts", "default": "default" }], "summary": "Document tabs: editor style tabs. Clicking selects (*selected is updated), the x or a middle click asks to close, dragging reorders, and the strip scrolls sideways when the tabs do not fit. A dirty tab shows a dot that turns into the close button under the pointer. The selected tab is filled with the surface color so it joins the content below; the strip itself has no fill, like the other bars. Tabs keep their state by title, so give two tabs with the same name a key: \u0022main.c##src\u0022. The component never removes or moves your tabs itself: it reports a close or a move in the result and you apply it (selection already follows a move). With keyboard focus on the strip, Left and Right select, Home and End jump, Shift\u002BLeft/Right move the tab and Delete closes it. With \u0060shortcuts\u0060 set it also answers Ctrl\u002BTab, Ctrl\u002BShift\u002BTab, Ctrl\u002BPageUp/Down and Ctrl\u002BW (Cmd\u002BW on macOS) from anywhere in the window." }, { "name": "DotChart", "kind": "method", "id": "method|DotChart|0|0|DotChartResult|UiText id;ReadOnlySpan\u003CDotSeries\u003E series;int count;DotChartOpts o = default||h83e83d00645373641fe3f26a3fedf035305cc683a48a4802e1ebb7d5c572f881", "signature": "DotChartResult DotChart(UiText id, ReadOnlySpan\u003CDotSeries\u003E series, int count, DotChartOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "ReadOnlySpan\u003CDotSeries\u003E" }, { "name": "count", "type": "int" }, { "name": "o", "type": "DotChartOpts", "default": "default" }], "summary": "A dot-matrix chart: values as a grid of dots, lit up to each column\u0027s value. Several series stack in their own bands, and the pointer or the arrow keys show a readout of the value under it. Returns where a click landed, so an app can add something there." }, { "name": "EventTrack", "kind": "extension", "id": "extension|EventTrack|0|0|EventTrackResult|UiText id;Span\u003Cdouble\u003E times;ref int count;double min;double max;ref int selected;EventTrackOpts o = default||h552c584d56c0bad07e42547a610e3888e7ecda2c1a64bab104fa79448d19086c", "signature": "EventTrackResult EventTrack(UiText id, Span\u003Cdouble\u003E times, ref int count, double min, double max, ref int selected, EventTrackOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "times", "type": "Span\u003Cdouble\u003E" }, { "name": "count", "type": "ref int" }, { "name": "min", "type": "double" }, { "name": "max", "type": "double" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "EventTrackOpts", "default": "default" }], "summary": "Event track: moments on a time axis, as dots you drag along it. A click on an empty spot adds an event there and a double-click on one removes it. You own the array: the track keeps it sorted, edits it in place and never grows it past \u0060capacity\u0060." }, { "name": "FeatureFlags", "kind": "extension", "id": "extension|FeatureFlags|0|0|FeatureFlagsResult|UiText id;Span\u003CFeatureFlag\u003E flags;ReadOnlySpan\u003Cstring\u003E envs;FeatureFlagsOpts o = default||h1c2c043a1a911bf524b328f35cfa7f2ee4862adfb16f1b0cbd98cf1077245b34", "signature": "FeatureFlagsResult FeatureFlags(UiText id, Span\u003CFeatureFlag\u003E flags, ReadOnlySpan\u003Cstring\u003E envs, FeatureFlagsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "flags", "type": "Span\u003CFeatureFlag\u003E" }, { "name": "envs", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "o", "type": "FeatureFlagsOpts", "default": "default" }], "summary": "cui_feature_flags_ex" }, { "name": "FileBrowser", "kind": "extension", "id": "extension|FileBrowser|0|0|FileBrowserResult|UiText id;ref string path;int pathCap = 1024;FileBrowserOpts o = default||hdcc3319728f0b23560a33e9d8c875e4b5389d816f8e66b4e3630e917284e3bf8", "signature": "FileBrowserResult FileBrowser(UiText id, ref string path, int pathCap = 1024, FileBrowserOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "path", "type": "ref string" }, { "name": "pathCap", "type": "int", "default": "1024" }, { "name": "o", "type": "FileBrowserOpts", "default": "default" }], "summary": "path: the folder shown, yours; the browser writes it as you move around." }, { "name": "FlameGraph", "kind": "extension", "id": "extension|FlameGraph|0|0|FlameResult|UiText id;ReadOnlySpan\u003CFlameSpan\u003E spans;ref FlameView view;ref int selected;FlameOpts o = default||h825a9e17f3b7381f2b9b6b4244a8edbabda629701c297e3c877a4e13fc43e98c", "signature": "FlameResult FlameGraph(UiText id, ReadOnlySpan\u003CFlameSpan\u003E spans, ref FlameView view, ref int selected, FlameOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "spans", "type": "ReadOnlySpan\u003CFlameSpan\u003E" }, { "name": "view", "type": "ref FlameView" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "FlameOpts", "default": "default" }], "summary": "selected: index into spans, -1 for none (may be NULL)." }, { "name": "LoadFont", "kind": "extension", "id": "extension|LoadFont|0|0|Font|ReadOnlySpan\u003Cbyte\u003E data;bool copy = true||h73d65ad67f9acdd48823d96c747c086a24a1625658056e8af856a3bd4d554241", "signature": "Font LoadFont(ReadOnlySpan\u003Cbyte\u003E data, bool copy = true)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "data", "type": "ReadOnlySpan\u003Cbyte\u003E" }, { "name": "copy", "type": "bool", "default": "true" }], "summary": "Loads a font from memory and returns a handle for SetFont." }, { "name": "LoadFont", "kind": "extension", "id": "extension|LoadFont|0|0|Font|UiText path||h5faed851de772ad862622c3312f2aeae3c81ef7915ae305e81bb638cf9b3b107", "signature": "Font LoadFont(UiText path)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "path", "type": "UiText" }], "summary": "Loads a font file (TTF/OTF) and returns a handle for SetFont." }, { "name": "UseSystemFontFallback", "kind": "extension", "id": "extension|UseSystemFontFallback|0|0|Font|string sample||h718698d4ba3dba692a0bf04e8e6729a2aae4ac8563689108bb00fdf124984df6", "signature": "Font UseSystemFontFallback(string sample)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "sample", "type": "string" }], "summary": "Finds a face on this machine that can draw sample and registers it as a fallback for the app\u0027s roles, so a UI in a script the bundled faces do not cover renders instead of going blank." }, { "name": "GradientEditor", "kind": "extension", "id": "extension|GradientEditor|0|0|GradientResult|UiText id;Span\u003CGradientStop\u003E stops;ref int count;ref int selected;GradientOpts o = default||h840bbab777b2202298d9b5a0d6519bc52d291ff2a13de0a26b88f92a8379b841", "signature": "GradientResult GradientEditor(UiText id, Span\u003CGradientStop\u003E stops, ref int count, ref int selected, GradientOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "stops", "type": "Span\u003CGradientStop\u003E" }, { "name": "count", "type": "ref int" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "GradientOpts", "default": "default" }], "summary": "cui_gradient_editor_ex" }, { "name": "GraphView", "kind": "extension", "id": "extension|GraphView|0|0|GraphResult|UiText id;ReadOnlySpan\u003CGraphNode\u003E nodes;ReadOnlySpan\u003CGraphEdge\u003E edges;ref int selected;GraphOpts o = default||hbce489b5fa6d64979be674221b7ae61e945b26d0224773080270c2c7dfd8b3bc", "signature": "GraphResult GraphView(UiText id, ReadOnlySpan\u003CGraphNode\u003E nodes, ReadOnlySpan\u003CGraphEdge\u003E edges, ref int selected, GraphOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "nodes", "type": "ReadOnlySpan\u003CGraphNode\u003E" }, { "name": "edges", "type": "ReadOnlySpan\u003CGraphEdge\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "GraphOpts", "default": "default" }], "summary": "Nodes and directed edges laid out in layers (each edge points to a later layer, cycles are broken), for build targets, packages, services or call graphs. The layout is computed when the graph changes. Wheel zooms, drag pans, click selects; hovering a node lights up what it depends on and what depends on it. F fits the graph." }, { "name": "DataGrid", "kind": "extension", "id": "extension|DataGrid|0|0|GridScope|UiText id;ReadOnlySpan\u003CGridColumn\u003E columns;int rowCount;GridState state;GridOpts o = default||hae20817285aa5f5ee430918dd512e707df8a0306e32777f0e13839f607262829", "signature": "GridScope DataGrid(UiText id, ReadOnlySpan\u003CGridColumn\u003E columns, int rowCount, GridState state, GridOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CGridColumn\u003E" }, { "name": "rowCount", "type": "int" }, { "name": "state", "type": "GridState" }, { "name": "o", "type": "GridOpts", "default": "default" }], "summary": "Opens a virtualized grid; draw rows in [state.First, state.Last)." }, { "name": "HexView", "kind": "extension", "id": "extension|HexView|0|0|HexResult|UiText id;Span\u003Cbyte\u003E bytes;ref HexSelection selection;HexViewOpts o = default||hb82ecf6f9d8a58d5c2bce7702bd188c8bb502de7a2d696f1a0af827be5fa22d9", "signature": "HexResult HexView(UiText id, Span\u003Cbyte\u003E bytes, ref HexSelection selection, HexViewOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "bytes", "type": "Span\u003Cbyte\u003E" }, { "name": "selection", "type": "ref HexSelection" }, { "name": "o", "type": "HexViewOpts", "default": "default" }], "summary": "Draws bytes and lets the user overwrite them in place." }, { "name": "Id", "kind": "method", "id": "method|Id|0|0|IdScope|UiText id||hf913a0d346bf51d9f7a0e55299041c30e8aa0eeb2f93eadbe20cad0c4ae3879b", "signature": "IdScope Id(UiText id)", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "Pushes a string id for the widgets drawn inside the scope." }, { "name": "Id", "kind": "method", "id": "method|Id|0|0|IdScope|int key||h3b4b6991acded6793bc66a091956c19c02661da15fabdf72db107273b8ed3d1b", "signature": "IdScope Id(int key)", "parameters": [{ "name": "key", "type": "int" }], "summary": "Pushes an integer id, typically a row or item index." }, { "name": "Input", "kind": "method", "id": "method|Input|0|0|InputResult|UiText id;ref string value;InputOpts o = default||he495e19d9d5cb23d03e35f0f55ea0ebafd853d7386ae9e4989697b39cec38980", "signature": "InputResult Input(UiText id, ref string value, InputOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "o", "type": "InputOpts", "default": "default" }], "summary": "A single-line text field. Assign the string; CUI edits it in place and the new value comes back through value on the frames it changed." }, { "name": "Search", "kind": "method", "id": "method|Search|0|0|InputResult|UiText id;ref string value;InputOpts o = default||h11bb746b263541b15457e9933eac6e37a6cdfac44547449d0d7375a7431b87da", "signature": "InputResult Search(UiText id, ref string value, InputOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "o", "type": "InputOpts", "default": "default" }], "summary": "A search field. See Input." }, { "name": "TextArea", "kind": "method", "id": "method|TextArea|0|0|InputResult|UiText id;ref string value;InputOpts o = default||ha0535c062baff5583884fcf6394397476e4b2a40ee79b643e731e601e2daad5c", "signature": "InputResult TextArea(UiText id, ref string value, InputOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "o", "type": "InputOpts", "default": "default" }], "summary": "A multi-line text field. See Input." }, { "name": "Keyed", "kind": "method", "id": "method|Keyed|0|1|KeyedScope\u003CT\u003E|T[] items;KeyFn\u003CT\u003E key||h3645b3dae05812e37fd01340a5693892b688bf1436826030f83bf34e5dca43f8", "signature": "KeyedScope\u003CT\u003E Keyed\u003CT\u003E(T[] items, KeyFn\u003CT\u003E key)", "parameters": [{ "name": "items", "type": "T[]" }, { "name": "key", "type": "KeyFn\u003CT\u003E" }], "summary": "Enumerates items, each inside its own id scope derived from key." }, { "name": "Keymap", "kind": "extension", "id": "extension|Keymap|0|0|KeymapResult|UiText id;ReadOnlySpan\u003CKeymapBinding\u003E bindings;ref Mods mods;KeymapOpts o = default||h986c8ea2572b42d56814a32427ed89b00db2a4a2ff3ba6c7a4711a66da3c0bae", "signature": "KeymapResult Keymap(UiText id, ReadOnlySpan\u003CKeymapBinding\u003E bindings, ref Mods mods, KeymapOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "bindings", "type": "ReadOnlySpan\u003CKeymapBinding\u003E" }, { "name": "mods", "type": "ref Mods" }, { "name": "o", "type": "KeymapOpts", "default": "default" }], "summary": "A keyboard with your shortcuts on it: each bound key shows its action and the color of its category, for the modifiers chosen above it. Keys bound twice are marked as conflicts. Hover a key for every binding on it; click it to get the key (to rebind it). The keyboard keeps its own layout in a right-to-left interface and scales to the width it gets." }, { "name": "Box", "kind": "extension", "id": "extension|Box|0|0|LayoutScope|Box o = default||haec5c052acbeeaca94cb5a10a37f80e98abc85d069b6fa9aec58cf20715c0a06", "signature": "LayoutScope Box(Box o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Box", "default": "default" }], "summary": "cui_box_begin" }, { "name": "ButtonGroup", "kind": "extension", "id": "extension|ButtonGroup|0|0|LayoutScope|||h8a2a0872d3ba1595bf0e1d9ad5860dfa36735b0ac74178a57cc8157b6493d6d4", "signature": "LayoutScope ButtonGroup()", "extensionOn": "CuiSharp.Ui", "summary": "Connected buttons. Put buttons between begin and end." }, { "name": "Card", "kind": "extension", "id": "extension|Card|0|0|LayoutScope|Card o = default||hb8d0387f360f71c39f098c9de712bb4aa0eb22a25fffee4615049459c0cc224e", "signature": "LayoutScope Card(Card o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Card", "default": "default" }], "summary": "returns true when clicked (hoverable)" }, { "name": "Card", "kind": "extension", "id": "extension|Card|0|0|LayoutScope|Card o;out bool clicked||he64474f809036667bb19ed0028db705f58a61d124f67b6520b26f73775ae32e5", "signature": "LayoutScope Card(Card o, out bool clicked)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Card" }, { "name": "clicked", "type": "out bool" }], "summary": "Always opens the container; clicked reports its interaction result." }, { "name": "CardStackItem", "kind": "extension", "id": "extension|CardStackItem|0|0|LayoutScope|int depth||h6f29f3239b665449b7d0d9b4e5177cb4099b541e3423fcb9d1a9b14fb1f686d0", "signature": "LayoutScope CardStackItem(int depth)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "depth", "type": "int" }], "summary": "cui_card_stack_item_begin" }, { "name": "CarouselSlide", "kind": "extension", "id": "extension|CarouselSlide|0|0|LayoutScope|||h9755b016a070064271f7e45738238254443cdfcb4d22aca524774095031595ec", "signature": "LayoutScope CarouselSlide()", "extensionOn": "CuiSharp.Ui", "summary": "cui_carousel_slide_begin" }, { "name": "Column", "kind": "extension", "id": "extension|Column|0|0|LayoutScope|Box o = default||h78447c50c087189e1c45a5984115c6b2709affec511cf6ab6521254dd0406549", "signature": "LayoutScope Column(Box o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Box", "default": "default" }], "summary": "cui_column_begin" }, { "name": "DialogFooter", "kind": "extension", "id": "extension|DialogFooter|0|0|LayoutScope|||hea62c5e329105c7d787894e1fbdbbd9b079d2910e82c4be61263045ff18c81f3", "signature": "LayoutScope DialogFooter()", "extensionOn": "CuiSharp.Ui", "summary": "A right-aligned row for dialog actions." }, { "name": "Dock", "kind": "extension", "id": "extension|Dock|0|0|LayoutScope|UiText id;DockOpts o = default||ha8052963c653afff4ec2b3304515265b67454d94f44ee3c01d076c1e27148816", "signature": "LayoutScope Dock(UiText id, DockOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "DockOpts", "default": "default" }], "summary": "Dock: a row of icons that grow as the pointer passes, with labels and a dot under the running ones. Each item returns true when clicked." }, { "name": "Dockspace", "kind": "extension", "id": "extension|Dockspace|0|0|LayoutScope|UiText id;DockspaceOpts o = default||hd8cabbad4df58a75fbb1e93299868d95ae7671ca676e01478b8c6067ace5a82d", "signature": "LayoutScope Dockspace(UiText id, DockspaceOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "DockspaceOpts", "default": "default" }], "summary": "Dockspace: an IDE style workspace that lays out your panels in a tree of resizable splits whose leaves hold one or more panels as document tabs. Submit every panel each frame between cui_dockspace_begin and cui_dockspace_end; the dockspace decides where it goes, and a panel\u0027s content is built only while its tab is the one showing:" }, { "name": "KanbanCard", "kind": "extension", "id": "extension|KanbanCard|0|0|LayoutScope|int cardId||h04d36b815b7f14d7d624e0b56c06560e052f6458aecd5cd68f485e0c8dc64b11", "signature": "LayoutScope KanbanCard(int cardId)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "cardId", "type": "int" }], "summary": "true when clicked" }, { "name": "KanbanCard", "kind": "extension", "id": "extension|KanbanCard|0|0|LayoutScope|int cardId;out bool clicked||h0ef9ec0801ab926804d1119b9bc9dc886afc490850829ed33cad336f7ee94f50", "signature": "LayoutScope KanbanCard(int cardId, out bool clicked)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "cardId", "type": "int" }, { "name": "clicked", "type": "out bool" }], "summary": "Always opens the container; clicked reports its interaction result." }, { "name": "KanbanColumn", "kind": "extension", "id": "extension|KanbanColumn|0|0|LayoutScope|UiText title;int cardCount;KanbanColumnOpts o = default||hd3dcefdc81fb36dfee31edd1754914e0453a4c7e0b1bb4c4b2b20b542eb8adaa", "signature": "LayoutScope KanbanColumn(UiText title, int cardCount, KanbanColumnOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "cardCount", "type": "int" }, { "name": "o", "type": "KanbanColumnOpts", "default": "default" }], "summary": "true: \u0022\u002B\u0022 clicked" }, { "name": "KanbanColumn", "kind": "extension", "id": "extension|KanbanColumn|0|0|LayoutScope|UiText title;int cardCount;KanbanColumnOpts o;out bool clicked||h7c9ca66f79f064c49eed8f4544d8fea1ed3304dc45d84e5ec067d319ed4ea113", "signature": "LayoutScope KanbanColumn(UiText title, int cardCount, KanbanColumnOpts o, out bool clicked)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "cardCount", "type": "int" }, { "name": "o", "type": "KanbanColumnOpts" }, { "name": "clicked", "type": "out bool" }], "summary": "Always opens the container; clicked reports its interaction result." }, { "name": "MenuBar", "kind": "extension", "id": "extension|MenuBar|0|0|LayoutScope|UiText id;MenuBarOpts o = default||h29b57cc387904e3c1d3083b170ceaa309e6bc4a2535b4c27f22ecd482570e152", "signature": "LayoutScope MenuBar(UiText id, MenuBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "MenuBarOpts", "default": "default" }], "summary": "Menu bar: File / Edit / View along the top of a window. Each menu holds the usual menu items (cui_menu_item, cui_menu_separator, cui_menu_label). Once a menu is open, hovering another one switches to it. Alt (on its own) or F10 focuses the bar; arrows move between menus and items, Enter chooses, Esc steps back. Alt \u002B a menu\u0027s mnemonic letter opens it (the first letter of its label unless \u0060mnemonic\u0060 says otherwise)." }, { "name": "NodeContent", "kind": "extension", "id": "extension|NodeContent|0|0|LayoutScope|||h6a09d812c8b6d9c4a4f2fc6aedc000b977da707334c08c94ee4e6dd62573dd59", "signature": "LayoutScope NodeContent()", "extensionOn": "CuiSharp.Ui", "summary": "A row for ordinary components. They are laid out at 100% and scaled with the view, so their text is sharpest at 100% zoom and below." }, { "name": "ReorderItem", "kind": "method", "id": "method|ReorderItem|0|0|LayoutScope|int position||h407076f847f4d4f606b87a109b5a505ca525179c0bff6726382889745d33f038", "signature": "LayoutScope ReorderItem(int position)", "parameters": [{ "name": "position", "type": "int" }] }, { "name": "Row", "kind": "extension", "id": "extension|Row|0|0|LayoutScope|Box o = default||ha02204054f3ea32388e8e24fc8038f253dd0b3504b0e01b650d69265773cb67e", "signature": "LayoutScope Row(Box o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Box", "default": "default" }], "summary": "cui_row_begin" }, { "name": "Scroll", "kind": "extension", "id": "extension|Scroll|0|0|LayoutScope|ScrollOpts o = default||h7aa8eed4bb32b5efc54efbe5c6c7c19215ddf1d8ffed8dfc60e0c8d5234bc6f7", "signature": "LayoutScope Scroll(ScrollOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "ScrollOpts", "default": "default" }], "summary": "Scroll area with smooth scrolling and overlay scrollbars." }, { "name": "Split", "kind": "extension", "id": "extension|Split|0|0|LayoutScope|UiText id;ref float ratio;SplitOpts o = default||h83e75ece850ab88dc38fde4b7d1d8ae789128ab387c95d8025b6302e8f59269f", "signature": "LayoutScope Split(UiText id, ref float ratio, SplitOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "ratio", "type": "ref float" }, { "name": "o", "type": "SplitOpts", "default": "default" }], "summary": "Resizable split view: two panes with a draggable divider. \u0060ratio\u0060 is the size of the first pane in 0..1. Call cui_split_next between the panes." }, { "name": "Spotlight", "kind": "extension", "id": "extension|Spotlight|0|0|LayoutScope|UiText id;SpotlightOpts o = default||hfb70f807d4c0a2d5450e1ff296551adc78a8733ed06c6b0cb9ed7427add12f16", "signature": "LayoutScope Spotlight(UiText id, SpotlightOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "SpotlightOpts", "default": "default" }], "summary": "Spotlight card: a soft light follows the pointer across the card and lights the nearest stretch of its border. beam sends a light around the edge." }, { "name": "StatusBar", "kind": "extension", "id": "extension|StatusBar|0|0|LayoutScope|UiText id;StatusBarOpts o = default||h394ecf13ba82c0abd4bdf1a5b7cb5fce6102392c5a87cea283bc38fd2213e96a", "signature": "LayoutScope StatusBar(UiText id, StatusBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "StatusBarOpts", "default": "default" }], "summary": "Status bar: a thin bar along the bottom of a window, with a hairline on top and no fill of its own (put it in a box with the background you want). Items go left to right; cui_status_bar_spacer sends the rest to the right edge." }, { "name": "Toolbar", "kind": "extension", "id": "extension|Toolbar|0|0|LayoutScope|UiText id;ToolbarOpts o = default||hc5826ec43e3d8bf178cfa9f1605bd29bded229aae82424077aa18e1ae7e9cc61", "signature": "LayoutScope Toolbar(UiText id, ToolbarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "ToolbarOpts", "default": "default" }], "summary": "Toolbar: a row of compact icon buttons, toggles, separators and small text buttons. Icon only buttons show their tooltip as their name. Items that do not fit collapse, from the end, into a \u0022more\u0022 menu; an item chosen there returns true on the next frame." }, { "name": "VirtualList", "kind": "extension", "id": "extension|VirtualList|0|0|LayoutScope|UiText id;int count;float rowHeight;Size height;out int first;out int last||h90165d4490987ebd4d90276d5b449695a1f58d89f212149090827bfd08a055f2", "signature": "LayoutScope VirtualList(UiText id, int count, float rowHeight, Size height, out int first, out int last)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "count", "type": "int" }, { "name": "rowHeight", "type": "float" }, { "name": "height", "type": "Size" }, { "name": "first", "type": "out int" }, { "name": "last", "type": "out int" }], "summary": "Virtual list: only the visible rows are built, so lists with a million rows stay fast. Fills first/last with the visible range." }, { "name": "Localization", "kind": "property", "id": "property|Localization|0|0|Localization?||get;|h0a921bf7a95ff40f095f5e7f43cc6d636b74f025ae427be1edbd250e93f88e54", "signature": "Localization? Localization { get; }", "summary": "The table this surface published, or null for English." }, { "name": "Markdown", "kind": "extension", "id": "extension|Markdown|0|0|MarkdownResult|UiText id;UiText text;MarkdownOpts o = default||h61fdb7c6fb770f95ff734bbdf7b607bad9e23af8b25df034da34f408eed536fa", "signature": "MarkdownResult Markdown(UiText id, UiText text, MarkdownOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "MarkdownOpts", "default": "default" }], "summary": "Markdown view: renders your markdown text (UTF-8) as native content, every frame, without keeping a copy:" }, { "name": "Modifiers", "kind": "property", "id": "property|Modifiers|0|0|Mods||get;|h994504ae5710377741956558b3dae0b4e2fc318f73c5408e701c6675295af911", "signature": "Mods Modifiers { get; }", "summary": "The modifier keys held right now." }, { "name": "MonthCalendar", "kind": "extension", "id": "extension|MonthCalendar|0|0|MonthResult|UiText id;ref Date month;ReadOnlySpan\u003CMonthEvent\u003E events;ref Date selected;MonthOpts o = default||hacb7fb0b706addd9098a1569df3adbf8cff5b20d3b0bf01f49970bd839da7523", "signature": "MonthResult MonthCalendar(UiText id, ref Date month, ReadOnlySpan\u003CMonthEvent\u003E events, ref Date selected, MonthOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "month", "type": "ref Date" }, { "name": "events", "type": "ReadOnlySpan\u003CMonthEvent\u003E" }, { "name": "selected", "type": "ref Date" }, { "name": "o", "type": "MonthOpts", "default": "default" }], "summary": "Month calendar: a month grid with events. All-day and multi-day events are bars across the days they cover; timed events are a dot, a time and a title. A day with more than fits says \u0022\u002BN more\u0022 and opens a list of them. On a narrow screen the cells show colored dots and the selected day\u0027s events are listed under the grid." }, { "name": "Accordion", "kind": "extension", "id": "extension|Accordion|0|0|OpenScope|UiText title;ref bool open||h485829d02ee323bfa485f05285d6b19d78dcf02ed0a36c9ca4b1da7e70f540e5", "signature": "OpenScope Accordion(UiText title, ref bool open)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }], "summary": "Accordion / disclosure. Content animates its height." }, { "name": "Carousel", "kind": "extension", "id": "extension|Carousel|0|0|OpenScope|UiText id;int count;ref int index;CarouselOpts o = default||hbcf0bd0059da4b82e6417513dac4646a1ad558c1f46fc3c55b233c3367ef0a4e", "signature": "OpenScope Carousel(UiText id, int count, ref int index, CarouselOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "count", "type": "int" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "CarouselOpts", "default": "default" }], "summary": "Carousel: slides that you swipe, drag, scroll or page with the arrows and dots. Build every slide between begin and end: cui_carousel(ui, \u0022tour\u0022, 4, \u0026index, .height = 220) { for (int k = 0; k \u003C 4; k\u002B\u002B) cui_carousel_slide(ui) { ... } }" }, { "name": "ContextMenu", "kind": "extension", "id": "extension|ContextMenu|0|0|OpenScope|UiText id||hb5be2e863b82aa032d3281886a07b75e6a10932b22c9c06daa36e6ec8460b9c3", "signature": "OpenScope ContextMenu(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "Context menu: opens on right click over the previous component." }, { "name": "Dialog", "kind": "extension", "id": "extension|Dialog|0|0|OpenScope|UiText title;ref bool open;DialogOpts o = default||h08e9cf3a4bf5178fc47947da0ad76b53486c74b4ebd9c7e92e078d4cb3653668", "signature": "OpenScope Dialog(UiText title, ref bool open, DialogOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "DialogOpts", "default": "default" }], "summary": "Modal dialog. Shown while *open is true; closing sets it to false." }, { "name": "DockPanel", "kind": "extension", "id": "extension|DockPanel|0|0|OpenScope|UiText title;ref bool open;DockPanelOpts o = default||h983b85f4b88defb64e03c80c7fd67832cccc8b15fa3b11e9e9c8954cdd239b75", "signature": "OpenScope DockPanel(UiText title, ref bool open, DockPanelOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "DockPanelOpts", "default": "default" }], "summary": "Returns true while the panel\u0027s content should be built; then call cui_dock_panel_end." }, { "name": "ExpandableCard", "kind": "extension", "id": "extension|ExpandableCard|0|0|OpenScope|UiText title;ref bool open;ExpandableCardOpts o = default||h19637d079a2ee9821dfa4b6223ecf9694471f6157ed61e0139e207c045d56878", "signature": "OpenScope ExpandableCard(UiText title, ref bool open, ExpandableCardOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "ExpandableCardOpts", "default": "default" }], "summary": "Expandable card: a card whose header opens a body with a height spring." }, { "name": "HoverCard", "kind": "extension", "id": "extension|HoverCard|0|0|OpenScope|UiText id;HoverCardOpts o = default||hd31fbafd01c517229f3a54d9fbeed478689533294a82e16da99cb56ed4b82d37", "signature": "OpenScope HoverCard(UiText id, HoverCardOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "HoverCardOpts", "default": "default" }], "summary": "Hover card: rich content that appears when the pointer rests on the previous component, and stays while the pointer is over either." }, { "name": "Inspector", "kind": "extension", "id": "extension|Inspector|0|0|OpenScope|UiText id;InspectorOpts o = default||hdb3db7ec75e95846d7b987536583618b0b9445c2deb40a5f16828b5d2d735020", "signature": "OpenScope Inspector(UiText id, InspectorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "InspectorOpts", "default": "default" }], "summary": "Property inspector: labelled rows in folding groups, a label column on the left (drag the line between the columns to resize it) and an editor on the right. Every row returns true when its value changed. Groups end at the next group or at cui_inspector_end." }, { "name": "Menu", "kind": "extension", "id": "extension|Menu|0|0|OpenScope|UiText label;MenuOpts o = default||hec1b2b131f19c8f1eb37269016b963aed4449341b367ca89e175c1940294ab63", "signature": "OpenScope Menu(UiText label, MenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "MenuOpts", "default": "default" }], "summary": "Dropdown menu: a button that opens a menu. Items return true when chosen." }, { "name": "MenuBarMenu", "kind": "extension", "id": "extension|MenuBarMenu|0|0|OpenScope|UiText label;MenuBarMenuOpts o = default||h32c463fd3c1d7fa382d82e43f75326d1e14efad5ce907db7337df9ba3480688b", "signature": "OpenScope MenuBarMenu(UiText label, MenuBarMenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "MenuBarMenuOpts", "default": "default" }], "summary": "One menu of the bar. Returns true while its items should be built; call cui_menu_bar_menu_end only then." }, { "name": "Node", "kind": "extension", "id": "extension|Node|0|0|OpenScope|int nodeId;ref float x;ref float y;UiText title;NodeOpts o = default||hb7439d9c37ecca24fb0858272f81826919b789149f2a34acd1e1c44ff3266f62", "signature": "OpenScope Node(int nodeId, ref float x, ref float y, UiText title, NodeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "nodeId", "type": "int" }, { "name": "x", "type": "ref float" }, { "name": "y", "type": "ref float" }, { "name": "title", "type": "UiText" }, { "name": "o", "type": "NodeOpts", "default": "default" }], "summary": "A node at canvas position (*x, *y), updated while it is dragged. Returns true while the node is selected." }, { "name": "NodeEditor", "kind": "extension", "id": "extension|NodeEditor|0|0|OpenScope|UiText id;ref NodeView view;NodeEditorOpts o = default||h4e3c9c7bbaa0ed5b0750957f90a5c6c86f0fbfea8e96d4a8cacd68503ae7ad85", "signature": "OpenScope NodeEditor(UiText id, ref NodeView view, NodeEditorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "view", "type": "ref NodeView" }, { "name": "o", "type": "NodeEditorOpts", "default": "default" }], "summary": "Node editor: nodes with input and output pins on a canvas that pans and zooms, joined by curved links. You own the nodes, pins and links; the editor moves the node positions you pass and reports what the user did:" }, { "name": "PathBarMenu", "kind": "extension", "id": "extension|PathBarMenu|0|0|OpenScope|UiText id;ref int segment||h2aeb15441c53f332d451a287be64ba38ecdb4c05be10ad0f8a2412b04c3ad51a", "signature": "OpenScope PathBarMenu(UiText id, ref int segment)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "segment", "type": "ref int" }], "summary": "True while the menu of separator *segment is showing: build menu items for the children of that segment, then call cui_path_bar_menu_end." }, { "name": "Popover", "kind": "extension", "id": "extension|Popover|0|0|OpenScope|UiText id;PopoverOpts o = default||had5881283c2885b236d342cac799068e3bd7a8c2d4272ceb08bf27aa60e812f7", "signature": "OpenScope Popover(UiText id, PopoverOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "PopoverOpts", "default": "default" }], "summary": "Popover anchored to the previous component. Toggle it with cui_popover_toggle / cui_popover_open." }, { "name": "Reasoning", "kind": "extension", "id": "extension|Reasoning|0|0|OpenScope|UiText id;ReasoningOpts o = default||hd8c6837b660811abb55b30c3bcc35eb42dd2099f40a5a73eb35972aca384d12b", "signature": "OpenScope Reasoning(UiText id, ReasoningOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "ReasoningOpts", "default": "default" }], "summary": "Reasoning: a model\u0027s thinking. While thinking, the header shimmers and counts the seconds; afterwards it reads \u0022Thought for 12s\u0022 and the body folds away. Click the header to open or close it. Put text inside." }, { "name": "Sheet", "kind": "extension", "id": "extension|Sheet|0|0|OpenScope|UiText title;ref bool open;SheetOpts o = default||heb98d14c7c6250a83593cac259a583d17aa8636e9eaa839b64b4b5e3db2551d7", "signature": "OpenScope Sheet(UiText title, ref bool open, SheetOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "SheetOpts", "default": "default" }], "summary": "cui_sheet_begin" }, { "name": "Table", "kind": "extension", "id": "extension|Table|0|0|OpenScope|UiText id;ReadOnlySpan\u003CTableColumn\u003E columns;TableOpts o = default||hfd909896b0ab780a5093f3e917adaa2e23e03121d3b8e920a5305582c66486d0", "signature": "OpenScope Table(UiText id, ReadOnlySpan\u003CTableColumn\u003E columns, TableOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CTableColumn\u003E" }, { "name": "o", "type": "TableOpts", "default": "default" }], "summary": "Same as the overload with ref sort, but reports nothing back: the state pointer is null, so the widget stores no state the caller could read." }, { "name": "Table", "kind": "extension", "id": "extension|Table|0|0|OpenScope|UiText id;ReadOnlySpan\u003CTableColumn\u003E columns;ref TableSort sort;TableOpts o = default||hfda1db8518191e5d1de411deaefeed0d0f8d6838a3a1398abfa10ad4b36ff692", "signature": "OpenScope Table(UiText id, ReadOnlySpan\u003CTableColumn\u003E columns, ref TableSort sort, TableOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CTableColumn\u003E" }, { "name": "sort", "type": "ref TableSort" }, { "name": "o", "type": "TableOpts", "default": "default" }], "summary": "cui_table_begin_ex" }, { "name": "Tree", "kind": "extension", "id": "extension|Tree|0|0|OpenScope|UiText label;ref bool open;TreeOpts o = default||h4406f8e6a4e0d2f04e9468f25ca87def814144056b1780a4e869ea86998fdd10", "signature": "OpenScope Tree(UiText label, ref bool open, TreeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "TreeOpts", "default": "default" }], "summary": "cui_tree_begin" }, { "name": "UserMenu", "kind": "extension", "id": "extension|UserMenu|0|0|OpenScope|UiText name;UserMenuOpts o = default||h5323b7ef69eef4b5689f61a0c79b09355b7d2e1579ced7536bd574838f5eb096", "signature": "OpenScope UserMenu(UiText name, UserMenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "name", "type": "UiText" }, { "name": "o", "type": "UserMenuOpts", "default": "default" }], "summary": "User menu: an avatar, a name and a line of detail that opens a menu of account actions. Put menu items between begin and end." }, { "name": "PathBar", "kind": "extension", "id": "extension|PathBar|0|0|PathBarResult|UiText id;ReadOnlySpan\u003Cstring\u003E segments;PathBarOpts o = default||h5256da01c2004bf6922b836f1b3e9fbc43ed881a67e823c1895ab05f0949dd56", "signature": "PathBarResult PathBar(UiText id, ReadOnlySpan\u003Cstring\u003E segments, PathBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "segments", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "o", "type": "PathBarOpts", "default": "default" }], "summary": "Path bar: a breadcrumb for file and scene paths. Segments are clickable, the last one is the current place. Middle segments that do not fit collapse into a \u0022...\u0022 menu. With .menus, the chevron after segment k opens a menu you fill with the children of segment k (cui_path_bar_menu_begin). Click the empty part (or the current segment), or press Ctrl\u002BL, to type a path: Enter submits it, Esc or clicking away cancels." }, { "name": "Pipeline", "kind": "extension", "id": "extension|Pipeline|0|0|PipelineResult|UiText id;ReadOnlySpan\u003Cstring\u003E stages;ReadOnlySpan\u003CPipelineJob\u003E jobs;ref int selected;PipelineOpts o = default||h57164c455b64addad840b532dee1f4eb3acaba49d3b9d3b92afbab5d775aa6e7", "signature": "PipelineResult Pipeline(UiText id, ReadOnlySpan\u003Cstring\u003E stages, ReadOnlySpan\u003CPipelineJob\u003E jobs, ref int selected, PipelineOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "stages", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "jobs", "type": "ReadOnlySpan\u003CPipelineJob\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "PipelineOpts", "default": "default" }], "summary": "cui_pipeline_ex" }, { "name": "NowPlaying", "kind": "extension", "id": "extension|NowPlaying|0|0|PlayerEvents|UiText id;ref NowPlayingState np;NowPlayingOpts o = default||h9fae980dc34277b737fa803cbecd222d9c0a4c796e96fa70b56eeeefd0df2b25", "signature": "PlayerEvents NowPlaying(UiText id, ref NowPlayingState np, NowPlayingOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "np", "type": "ref NowPlayingState" }, { "name": "o", "type": "NowPlayingOpts", "default": "default" }], "summary": "Now playing card: artwork, title, artist, a scrubber and transport buttons." }, { "name": "Problems", "kind": "extension", "id": "extension|Problems|0|0|ProblemsResult|UiText id;ReadOnlySpan\u003CProblemItem\u003E diags;ProblemsOpts o = default||h6893f9c629255366d4079d33866236777cdcf107644e4109933ef620b8022eed", "signature": "ProblemsResult Problems(UiText id, ReadOnlySpan\u003CProblemItem\u003E diags, ProblemsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "diags", "type": "ReadOnlySpan\u003CProblemItem\u003E" }, { "name": "o", "type": "ProblemsOpts", "default": "default" }], "summary": "cui_problems_ex" }, { "name": "FlameSpanRect", "kind": "extension", "id": "extension|FlameSpanRect|0|0|RectF|uint flame;in FlameSpan span||haa242a01ec7cc85ea2f271378c3c8c334942d3f054714bdc41b27574a4327c82", "signature": "RectF FlameSpanRect(uint flame, in FlameSpan span)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "flame", "type": "uint" }, { "name": "span", "type": "in FlameSpan" }], "summary": "Where a span was drawn in the latest frame, in points (zero size when out of view). flame is the graph\u0027s id: cui_last_id(ui) right after the call." }, { "name": "LastRect", "kind": "property", "id": "property|LastRect|0|0|RectF||get;|ha796a249509c6af4a48352050e2d549bf5de307702a0f97fbc12276bc4b72b7b", "signature": "RectF LastRect { get; }", "summary": "Rectangle of the most recent component." }, { "name": "RectOf", "kind": "method", "id": "method|RectOf|0|0|RectF|UiText id||hf03418b016be6b023e965616caed52e5a7dd6a367152691bc14de3eb646ed966", "signature": "RectF RectOf(UiText id)", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "Rectangle of the widget with this string id." }, { "name": "RectOf", "kind": "method", "id": "method|RectOf|0|0|RectF|uint id||hc518e049cee7502b5770da6d0349e6e1b3764c8cc67fc33e3a92b5006d46ad99", "signature": "RectF RectOf(uint id)", "parameters": [{ "name": "id", "type": "uint" }], "summary": "Rectangle of any widget by id, for hit tests and overlays." }, { "name": "RegexTester", "kind": "extension", "id": "extension|RegexTester|0|0|RegexTesterResult|UiText id;ref string pattern;int patternCap;ref string text;int textCap;ref RegexFlags flags;RegexTesterOpts o = default||h53b2155ffb50f74e3cdbeb47580968a3b4c6256e0cbe584d8955de62e7015f50", "signature": "RegexTesterResult RegexTester(UiText id, ref string pattern, int patternCap, ref string text, int textCap, ref RegexFlags flags, RegexTesterOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "pattern", "type": "ref string" }, { "name": "patternCap", "type": "int" }, { "name": "text", "type": "ref string" }, { "name": "textCap", "type": "int" }, { "name": "flags", "type": "ref RegexFlags" }, { "name": "o", "type": "RegexTesterOpts", "default": "default" }], "summary": "A pattern field with flags over a test text: every match is highlighted in the text and its groups in their own colors, and the list below shows each match with its groups. Errors show under the pattern. Both buffers are yours and edited in place." }, { "name": "RequestBar", "kind": "extension", "id": "extension|RequestBar|0|0|RequestBarResult|UiText id;ref HttpVerb method;ref string url;int cap = 2048;RequestBarOpts o = default||h0205ed79feda109fdd72fefcdf633adeeb5507caf75681da3bf23d2cf5bcf561", "signature": "RequestBarResult RequestBar(UiText id, ref HttpVerb method, ref string url, int cap = 2048, RequestBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "method", "type": "ref HttpVerb" }, { "name": "url", "type": "ref string" }, { "name": "cap", "type": "int", "default": "2048" }, { "name": "o", "type": "RequestBarOpts", "default": "default" }], "summary": "cui_request_bar_ex" }, { "name": "ResponseActions", "kind": "extension", "id": "extension|ResponseActions|0|0|ResponseEvents|UiText id;ref int vote;ResponseActionsOpts o = default||hc81149b07827af0f59a3269486e0d44858ac9bb48073ed5150872c876c11984c", "signature": "ResponseEvents ResponseActions(UiText id, ref int vote, ResponseActionsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "vote", "type": "ref int" }, { "name": "o", "type": "ResponseActionsOpts", "default": "default" }], "summary": "cui_response_actions_ex" }, { "name": "SchedulePicker", "kind": "extension", "id": "extension|SchedulePicker|0|0|ScheduleResult|UiText id;ref string cron;int cap = 128;ScheduleOpts o = default||h5e149aabf00cdaf3e05fa29f62f956e474f8fee28641ae71fde4eaaeb8801f91", "signature": "ScheduleResult SchedulePicker(UiText id, ref string cron, int cap = 128, ScheduleOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "cron", "type": "ref string" }, { "name": "cap", "type": "int", "default": "128" }, { "name": "o", "type": "ScheduleOpts", "default": "default" }], "summary": "A cron schedule edited the friendly way: every N minutes, hourly at a minute, daily at a time, weekly on chosen days, monthly on a day, or a custom expression. It reads and writes \u0060cron\u0060 (five fields: minute hour day month weekday) and shows what it means and when it runs next. Weekday and month names come from cui_set_strings." }, { "name": "State", "kind": "method", "id": "method|State|0|1|Span\u003CT\u003E|UiText id||h8505c3ecbdde9acd049fc2d5d47e3c43d0545b89b2b78cc39c0a3993049107cf", "signature": "Span\u003CT\u003E State\u003CT\u003E(UiText id) where T : unmanaged", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "Persistent, zeroed storage for a widget id, for values that must survive between frames (animation phases, drag state, hit-test scratch)." }, { "name": "State", "kind": "method", "id": "method|State|0|1|Span\u003CT\u003E|UiText id;Action onFree||hbfa4567fbf2313cbdd3cc11d8daae823c35ccab56e58f7f91c8635a98f228824", "signature": "Span\u003CT\u003E State\u003CT\u003E(UiText id, Action onFree) where T : unmanaged", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "onFree", "type": "Action" }], "summary": "Persistent, zeroed storage for a widget id, with a callback CUI runs when it throws that id\u0027s state away (about five idle seconds, or when the window closes)." }, { "name": "StackTrace", "kind": "extension", "id": "extension|StackTrace|0|0|StackTraceResult|UiText id;ReadOnlySpan\u003CStackFrame\u003E frames;StackTraceOpts o = default||h31d88e2151b353d79ca390bcbc46b17c2882a950f9cf2239a266b97eeaa36a9b", "signature": "StackTraceResult StackTrace(UiText id, ReadOnlySpan\u003CStackFrame\u003E frames, StackTraceOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "frames", "type": "ReadOnlySpan\u003CStackFrame\u003E" }, { "name": "o", "type": "StackTraceOpts", "default": "default" }], "summary": "An exception and its call stack: the error\u0027s type and message, then each frame\u0027s function and position. Runs of library frames fold into one row. A frame with source opens to show the lines around it, the failing line marked; the first frame of your own code starts open. A button copies the whole trace as text." }, { "name": "Terminal", "kind": "extension", "id": "extension|Terminal|0|0|TerminalResult|UiText id;Terminal terminal;TerminalOpts o = default||h3bb90fc3e22f3e909beb279d5867cc2751b7287513f1480f8c73f2e7405f14d7", "signature": "TerminalResult Terminal(UiText id, Terminal terminal, TerminalOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "terminal", "type": "Terminal" }, { "name": "o", "type": "TerminalOpts", "default": "default" }], "summary": "Draws terminal and reports what the user did in it." }, { "name": "TestExplorer", "kind": "extension", "id": "extension|TestExplorer|0|0|TestExplorerResult|UiText id;ReadOnlySpan\u003CTestItem\u003E items;TestExplorerOpts o = default||h9eeb18e60e88e82a908b873a27468f9699a55c61fb36da8ff356557f102e3862", "signature": "TestExplorerResult TestExplorer(UiText id, ReadOnlySpan\u003CTestItem\u003E items, TestExplorerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CTestItem\u003E" }, { "name": "o", "type": "TestExplorerOpts", "default": "default" }], "summary": "Test results as a tree: suites fold, each test shows its status and time, and a failure shows its message under it. A suite\u0027s status sums up its tests. The toolbar runs everything, counts results and filters by status and by name. Hover a row for its run button. Only the rows in view are built. Up and Down move, Left and Right fold, Enter activates. Items are in tree order with their depth; the statuses are the pipeline\u0027s." }, { "name": "MeasureText", "kind": "method", "id": "method|MeasureText|0|0|TextMetrics|UiText text;float size = 12f;Font font = Font.Body||h992b53c9418ee9ba19c1fd34ea05dca44fabbaac335e2ecdd31ccf760fd4f66f", "signature": "TextMetrics MeasureText(UiText text, float size = 12f, Font font = Font.Body)", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "size", "type": "float", "default": "12f" }, { "name": "font", "type": "Font", "default": "Font.Body" }], "summary": "Width and height of a single line of text, without wrapping." }, { "name": "Theme", "kind": "property", "id": "property|Theme|0|0|Theme||get;set;|h898a02cacbcba9a905f94fba0740f328f89ab1e042e5fea5ff9d21a93e3e297d", "signature": "Theme Theme { get; set; }", "summary": "The theme this frame draws with. Assign to switch, from anywhere inside a frame." }, { "name": "Style", "kind": "property", "id": "property|Style|0|0|ThemeStyle||get;|h4a1ba7271e3ed1e378ccdc5f7d6055b8fea5756bf3605b1214e29e77e4e7860a", "signature": "ThemeStyle Style { get; }", "summary": "The design tokens this frame draws with \u2014 radii, control heights, text and heading sizes, the motion multiplier and the palette \u2014 as a live view to read and to assign." }, { "name": "TimeHistogram", "kind": "extension", "id": "extension|TimeHistogram|0|0|TimeHistogramResult|UiText id;double start;double bucketSeconds;int buckets;ReadOnlySpan\u003CHistogramSeries\u003E series;ref double selStart;ref double selEnd;TimeHistogramOpts o = default||hfc0784cb52bfd6a3615191c61545b37c444f2ce965ef93b671333df27d4bf165", "signature": "TimeHistogramResult TimeHistogram(UiText id, double start, double bucketSeconds, int buckets, ReadOnlySpan\u003CHistogramSeries\u003E series, ref double selStart, ref double selEnd, TimeHistogramOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "start", "type": "double" }, { "name": "bucketSeconds", "type": "double" }, { "name": "buckets", "type": "int" }, { "name": "series", "type": "ReadOnlySpan\u003CHistogramSeries\u003E" }, { "name": "selStart", "type": "ref double" }, { "name": "selEnd", "type": "ref double" }, { "name": "o", "type": "TimeHistogramOpts", "default": "default" }], "summary": "Event counts over time, stacked by series (log levels, status classes), as above a log search. Drag across it to select a time range, click to clear. Hover a bar for its time and counts. Times are Unix seconds." }, { "name": "Tour", "kind": "extension", "id": "extension|Tour|0|0|TourAction|UiText id;ReadOnlySpan\u003CTourStep\u003E steps;ref int step;TourOpts o = default||h7a480bb022c619036d7ca1d19006a7d5aa923a84ea3fc62b5eae88ea7b1088c8", "signature": "TourAction Tour(UiText id, ReadOnlySpan\u003CTourStep\u003E steps, ref int step, TourOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "steps", "type": "ReadOnlySpan\u003CTourStep\u003E" }, { "name": "step", "type": "ref int" }, { "name": "o", "type": "TourOpts", "default": "default" }], "summary": "What happened this frame: one of CUI_TOUR_*." }, { "name": "TraceView", "kind": "extension", "id": "extension|TraceView|0|0|TraceResult|UiText id;ReadOnlySpan\u003CTraceTrack\u003E tracks;ReadOnlySpan\u003CTraceSpan\u003E spans;ref TraceViewState view;ref int selected;TraceOpts o = default||h7ab8ce526cada0bd73b947180d909dfa39f159b47ac14940ec53b67f28158b92", "signature": "TraceResult TraceView(UiText id, ReadOnlySpan\u003CTraceTrack\u003E tracks, ReadOnlySpan\u003CTraceSpan\u003E spans, ref TraceViewState view, ref int selected, TraceOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tracks", "type": "ReadOnlySpan\u003CTraceTrack\u003E" }, { "name": "spans", "type": "ReadOnlySpan\u003CTraceSpan\u003E" }, { "name": "view", "type": "ref TraceViewState" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "TraceOpts", "default": "default" }], "summary": "A tracing timeline: one lane per thread, process or service, each with its nested spans, on one time ruler, with markers (frames, GC pauses, deploys) drawn across every lane. Wheel zooms around the pointer, Shift\u002Bwheel or a drag pans, click selects a span, Shift\u002Bdrag measures a time range. A lane\u0027s name folds it. Keys: Left and Right step through the selected span\u0027s lane, \u002B and - zoom, F fits, Esc clears. Spans must be sorted by track, depth and start (cui_trace_sort), with no overlap within a depth of a track. Like the flame graph, only what is in view is visited." }, { "name": "TreeTable", "kind": "extension", "id": "extension|TreeTable|0|0|TreeTableEvents|UiText id;ReadOnlySpan\u003CGridColumn\u003E columns;TreeNode[] nodes;TreeTableRow row;TreeTableOpts o = default;Func\u003Cint, string?\u003E? label = null||h5ad3a7ebd26d1298c20becc826efa4b5392b7ddbca0d68cfbb1f162eb572fd75", "signature": "TreeTableEvents TreeTable(UiText id, ReadOnlySpan\u003CGridColumn\u003E columns, TreeNode[] nodes, TreeTableRow row, TreeTableOpts o = default, Func\u003Cint, string?\u003E? label = null)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CGridColumn\u003E" }, { "name": "nodes", "type": "TreeNode[]" }, { "name": "row", "type": "TreeTableRow" }, { "name": "o", "type": "TreeTableOpts", "default": "default" }, { "name": "label", "type": "Func\u003Cint, string?\u003E?", "default": "null" }], "summary": "Draws a tree without sort or keyboard state: the table keeps no per-id interaction state, which is all a static tree needs." }, { "name": "TreeTable", "kind": "extension", "id": "extension|TreeTable|0|0|TreeTableEvents|UiText id;ReadOnlySpan\u003CGridColumn\u003E columns;TreeNode[] nodes;TreeTableRow row;ref TableSort sort;ref int cursor;TreeTableOpts o = default;Func\u003Cint, string?\u003E? label = null||hdc8db941f4c0a5cc7a1e81a316f1e56fbc2468020569fb6cacf3307bec596a1d", "signature": "TreeTableEvents TreeTable(UiText id, ReadOnlySpan\u003CGridColumn\u003E columns, TreeNode[] nodes, TreeTableRow row, ref TableSort sort, ref int cursor, TreeTableOpts o = default, Func\u003Cint, string?\u003E? label = null)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CGridColumn\u003E" }, { "name": "nodes", "type": "TreeNode[]" }, { "name": "row", "type": "TreeTableRow" }, { "name": "sort", "type": "ref TableSort" }, { "name": "cursor", "type": "ref int" }, { "name": "o", "type": "TreeTableOpts", "default": "default" }, { "name": "label", "type": "Func\u003Cint, string?\u003E?", "default": "null" }], "summary": "Draws nodes as a tree with columns, calling row once per visible node to fill its cells." }, { "name": "Uptime", "kind": "extension", "id": "extension|Uptime|0|0|UptimeResult|UiText id;ReadOnlySpan\u003CUptimeService\u003E services;UptimeOpts o = default||h60131e1db59b8a809d222a6d6dee840e1ccde25607a2c4178418eef8a488dccb", "signature": "UptimeResult Uptime(UiText id, ReadOnlySpan\u003CUptimeService\u003E services, UptimeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "services", "type": "ReadOnlySpan\u003CUptimeService\u003E" }, { "name": "o", "type": "UptimeOpts", "default": "default" }], "summary": "A status page: each service with its current state, its uptime over the period, and one bar per day colored by availability (gray without data). Hover a bar for its day and uptime. On a narrow panel only the most recent days that fit are shown." }, { "name": "MousePosition", "kind": "property", "id": "property|MousePosition|0|0|ValueTuple\u003Cfloat, float\u003E||get;|h02b51b7243b762c56e53482522c31644d844cd12e36381af09a9700cd549db93", "signature": "ValueTuple\u003Cfloat, float\u003E MousePosition { get; }", "summary": "Pointer position in points, top-left origin." }, { "name": "ViewportSize", "kind": "method", "id": "method|ViewportSize|0|0|ValueTuple\u003Cfloat, float\u003E|||h7a26e2e5e6b39edb5a26a6e7adde40edf0bcd8599f3d7629ea37d02c109493a2", "signature": "ValueTuple\u003Cfloat, float\u003E ViewportSize()" }, { "name": "Waterfall", "kind": "extension", "id": "extension|Waterfall|0|0|WaterfallResult|UiText id;ReadOnlySpan\u003CNetRequest\u003E requests;ref int selected;WaterfallOpts o = default||h419b5ccb1a80d64ac3cce058fa79a3ac44664f29e8c9685c083cf8552c6714e6", "signature": "WaterfallResult Waterfall(UiText id, ReadOnlySpan\u003CNetRequest\u003E requests, ref int selected, WaterfallOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "requests", "type": "ReadOnlySpan\u003CNetRequest\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "WaterfallOpts", "default": "default" }], "summary": "HTTP requests as a table with a timing bar each: queued, DNS, connect, TLS, waiting for the first byte and downloading, on one time scale with the page\u0027s DOMContentLoaded and load lines. Hover a bar for the breakdown. Narrow panels drop the type and size columns. Only the rows in view are built. Up and Down move the selection." }, { "name": "Alert", "kind": "extension", "id": "extension|Alert|0|0|bool|UiText title;AlertOpts o = default||hb9b8786bcd05d91b48b9d5b7e7c8dfe99eab8a18cccf61ee5708920e8c2c65a0", "signature": "bool Alert(UiText title, AlertOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "AlertOpts", "default": "default" }], "summary": "Inline alert. Returns false once dismissed (when dismissible)." }, { "name": "Banner", "kind": "extension", "id": "extension|Banner|0|0|bool|UiText text;ref bool open;BannerOpts o = default||hded3699dd8c0717c5f0d2f8a60f5b76364aaa539a156402e1d68fed1e8b19dd6", "signature": "bool Banner(UiText text, ref bool open, BannerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "BannerOpts", "default": "default" }], "summary": "Announcement banner across the top of a view. Collapses smoothly when dismissed (*open becomes false). Returns true when the action is clicked." }, { "name": "Button", "kind": "extension", "id": "extension|Button|0|0|bool|UiText label;ButtonOpts o = default||h0824ce1ee9db1a3102bbbc57b5f43c838d0aac0c456dc9d0f5ddf3a8bb9eaae3", "signature": "bool Button(UiText label, ButtonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "ButtonOpts", "default": "default" }], "summary": "cui_button_ex" }, { "name": "Calendar", "kind": "extension", "id": "extension|Calendar|0|0|bool|UiText id;ref Date value||he2d734019c4ba63e626cffe267911189a15dbf5b403eff0fc6fd9898d4334662", "signature": "bool Calendar(UiText id, ref Date value)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref Date" }], "summary": "cui_calendar" }, { "name": "Checkbox", "kind": "extension", "id": "extension|Checkbox|0|0|bool|UiText label;ref bool value;CheckOpts o = default||h5e553956f3358e286491451619c072577baad5689e0ba2b38257460dced857ee", "signature": "bool Checkbox(UiText label, ref bool value, CheckOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref bool" }, { "name": "o", "type": "CheckOpts", "default": "default" }], "summary": "cui_checkbox_ex" }, { "name": "Chip", "kind": "extension", "id": "extension|Chip|0|0|bool|UiText label;ref bool selected;ChipOpts o = default||h4ff38ab2a9a818e7526990ee6c9e6f19f63a1138e5fb79d08917e25c0d0a78ee", "signature": "bool Chip(UiText label, ref bool selected, ChipOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "selected", "type": "ref bool" }, { "name": "o", "type": "ChipOpts", "default": "default" }], "summary": "cui_chip_ex" }, { "name": "Citation", "kind": "extension", "id": "extension|Citation|0|0|bool|int number;in Source source||ha19b93ee36f160c6271aaa8db69ab4937531c6d0be1bdcd8e208aa7eb206aee7", "signature": "bool Citation(int number, in Source source)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "number", "type": "int" }, { "name": "source", "type": "in Source" }], "summary": "cui_citation" }, { "name": "ColorPicker", "kind": "extension", "id": "extension|ColorPicker|0|0|bool|UiText id;ref Color value||h337517bd7bbb67ac9f2a0f2cd3561338116b8bbce4aab6736de92c41bd706e10", "signature": "bool ColorPicker(UiText id, ref Color value)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref Color" }], "summary": "cui_color_picker" }, { "name": "ConfirmButton", "kind": "extension", "id": "extension|ConfirmButton|0|0|bool|UiText label;ConfirmOpts o = default||ha173e8d04000010db239a95f45b5a65630e6c3a32565f48acd835a79732b2383", "signature": "bool ConfirmButton(UiText label, ConfirmOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "ConfirmOpts", "default": "default" }], "summary": "Two step destructive button: the first click morphs it into a confirm state with a countdown, the second click confirms. Returns true once." }, { "name": "ConfirmPopover", "kind": "extension", "id": "extension|ConfirmPopover|0|0|bool|UiText id;ConfirmPopoverOpts o = default||h1c2e0982b9c59e893eae1a02030bc1dcf3a82997c3f51101dbeae1b45e768ee2", "signature": "bool ConfirmPopover(UiText id, ConfirmPopoverOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "ConfirmPopoverOpts", "default": "default" }], "summary": "Confirm popover: a small question anchored to the previous component. Open it with cui_popover_open(ui, id). Returns true when confirmed." }, { "name": "ControlTile", "kind": "extension", "id": "extension|ControlTile|0|0|bool|UiText label;ref bool on;TileOpts o = default||h030def7b2183e0b26721bad6afc91a710eb6f7cf309e2889db383c64f1477cbd", "signature": "bool ControlTile(UiText label, ref bool on, TileOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "on", "type": "ref bool" }, { "name": "o", "type": "TileOpts", "default": "default" }], "summary": "Control tile: a large toggle with an icon, a label and a state line." }, { "name": "CopyButton", "kind": "extension", "id": "extension|CopyButton|0|0|bool|UiText id;UiText text||hbc740c15d3716aa5400fb730217b29b8462ce4a82a1b3b2c9884600f4fbfe844", "signature": "bool CopyButton(UiText id, UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }], "summary": "Icon button that copies text to the clipboard and confirms with a check. Keyboard focus stays on the button when the check appears or disappears." }, { "name": "Cropper", "kind": "extension", "id": "extension|Cropper|0|0|bool|UiText id;ulong tex;int imageW;int imageH;ref RectF crop;CropperOpts o = default||hc4433b320e719d68cf000799d9f75543139b19ed26265d5d5b7ef0e7cb29a2cf", "signature": "bool Cropper(UiText id, ulong tex, int imageW, int imageH, ref RectF crop, CropperOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tex", "type": "ulong" }, { "name": "imageW", "type": "int" }, { "name": "imageH", "type": "int" }, { "name": "crop", "type": "ref RectF" }, { "name": "o", "type": "CropperOpts", "default": "default" }], "summary": "Returns true when the crop changed." }, { "name": "DataGridCellEdit", "kind": "extension", "id": "extension|DataGridCellEdit|0|0|bool|ref string buf;int cap||h36d248e6c06ee8f7c129163000d2afe51274d879f2f2a6dd8f75e48579c04c63", "signature": "bool DataGridCellEdit(ref string buf, int cap)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }], "summary": "Editable text cell: double click (or Enter on the cursor row) to edit, Enter or clicking away commits, Esc reverts. True when committed." }, { "name": "DataGridEdit", "kind": "extension", "id": "extension|DataGridEdit|0|0|bool|ref string buf;int cap||h4a0248a3c48520cf419b921b7953de24c458026bb86ab7bd00ba08e5d194ef65", "signature": "bool DataGridEdit(ref string buf, int cap)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }], "summary": "The same editable text, inside the current cell (after an avatar, say)." }, { "name": "DataGridRow", "kind": "extension", "id": "extension|DataGridRow|0|0|bool|int row||h5fe4fdf7429d5b5aac0325fa0af56631c8d8a1ff342c03251fe30d766d9f9225", "signature": "bool DataGridRow(int row)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "row", "type": "int" }], "summary": "true when the row was clicked" }, { "name": "DatePicker", "kind": "extension", "id": "extension|DatePicker|0|0|bool|UiText id;ref Date value;DateOpts o = default||h993523ace680cddb6c1434059ef52f3fb34d716bed495d79d97b148118785ee2", "signature": "bool DatePicker(UiText id, ref Date value, DateOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref Date" }, { "name": "o", "type": "DateOpts", "default": "default" }], "summary": "cui_date_picker_ex" }, { "name": "DateRangePicker", "kind": "extension", "id": "extension|DateRangePicker|0|0|bool|UiText id;ref DateRange range;DateRangeOpts o = default||h9daa98cbb5461612c53362c329641eba719561905ce1865087421113c0ee84d1", "signature": "bool DateRangePicker(UiText id, ref DateRange range, DateRangeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "range", "type": "ref DateRange" }, { "name": "o", "type": "DateRangeOpts", "default": "default" }], "summary": "cui_date_range_picker_ex" }, { "name": "DateToday", "kind": "method", "id": "method|DateToday|0|0|bool|out Date value||h2030bff62c6a99d4c47e3fa2a09f8c125232327d048faf8c41c853eeafa84679", "signature": "bool DateToday(out Date value)", "parameters": [{ "name": "value", "type": "out Date" }] }, { "name": "DockItem", "kind": "extension", "id": "extension|DockItem|0|0|bool|UiText icon;UiText label;DockItemOpts o = default||h6868974ee881c1a4f660ae0207737b226f6822fd1064babdbda9860825db89d1", "signature": "bool DockItem(UiText icon, UiText label, DockItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "label", "type": "UiText" }, { "name": "o", "type": "DockItemOpts", "default": "default" }], "summary": "cui_dock_item_ex" }, { "name": "DockLoad", "kind": "extension", "id": "extension|DockLoad|0|0|bool|UiText id;UiText text||hffd91787faf77c3d390dfe7deb8bb16df93eb717a31ba3fd4130eac2e2e134b4", "signature": "bool DockLoad(UiText id, UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }], "summary": "cui_dock_load" }, { "name": "EmojiFontLoadFile", "kind": "extension", "id": "extension|EmojiFontLoadFile|0|0|bool|UiText path||hf9ed3d99d8c528c9df41c7bca5721cb0eb461686e0a48bc35d1cf718f13ba0f6", "signature": "bool EmojiFontLoadFile(UiText path)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "path", "type": "UiText" }], "summary": "Color emoji come from an emoji font: the system\u0027s (cui_emoji_font_load_system, which the picker calls by itself when nothing is loaded) or one the app ships. Bitmap color fonts (sbix as on macOS, CBDT as on Linux and Android) and layered ones (COLR version 0, as on Windows) are read, as is a plain outline font for one-color emoji. Sequences with skin tones, joined people and flags are looked up through the font\u0027s ligatures. Big fonts are read from the file as needed rather than loaded whole. Drawn emoji are kept in one texture and reused." }, { "name": "EmojiFontLoadMemory", "kind": "extension", "id": "extension|EmojiFontLoadMemory|0|0|bool|ReadOnlySpan\u003Cbyte\u003E data;bool copy||h8f31cf994f46f3f46e0c7fdefbd7d39be865056bcb0700421f0fee7be7142342", "signature": "bool EmojiFontLoadMemory(ReadOnlySpan\u003Cbyte\u003E data, bool copy)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "data", "type": "ReadOnlySpan\u003Cbyte\u003E" }, { "name": "copy", "type": "bool" }], "summary": "cui_emoji_font_load_memory" }, { "name": "EmojiFontLoadSystem", "kind": "extension", "id": "extension|EmojiFontLoadSystem|0|0|bool|||he4386dbb08b9f31fd0c23d6cb333b56d4babcbd26d5e38fa72a56bc89a6bac12", "signature": "bool EmojiFontLoadSystem()", "extensionOn": "CuiSharp.Ui", "summary": "cui_emoji_font_load_system" }, { "name": "EmojiSupported", "kind": "extension", "id": "extension|EmojiSupported|0|0|bool|UiText utf8||he0adda46557f9d84dbc4c6feb4f995d99998ffae9bdabd33371c8df1fc7899fb", "signature": "bool EmojiSupported(UiText utf8)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "utf8", "type": "UiText" }], "summary": "the font (or platform) can draw it" }, { "name": "EmptyState", "kind": "extension", "id": "extension|EmptyState|0|0|bool|UiText title;EmptyOpts o = default||h3447935b9ffe834dcbe57094c2bd062fa6216fbbd3d59e4e2527f7da36f6f369", "signature": "bool EmptyState(UiText title, EmptyOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "EmptyOpts", "default": "default" }], "summary": "Empty state. Returns true when its action button is clicked." }, { "name": "ExpandableText", "kind": "extension", "id": "extension|ExpandableText|0|0|bool|UiText id;UiText text;ExpandableTextOpts o = default||h0853336278f85890679dc7cd1bc9eb77a34f2cf61567d87164045778c0f8d6ad", "signature": "bool ExpandableText(UiText id, UiText text, ExpandableTextOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "ExpandableTextOpts", "default": "default" }], "summary": "Text clamped to a few lines with a fade and Show more / Show less." }, { "name": "Fader", "kind": "extension", "id": "extension|Fader|0|0|bool|UiText id;ref float value;float min;float max;FaderOpts o = default||h8266bbe632feda1ec1b4b87bd7f41cc9e107e496de7dfb957c9d87f1e63f8835", "signature": "bool Fader(UiText id, ref float value, float min, float max, FaderOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "FaderOpts", "default": "default" }], "summary": "cui_fader_ex" }, { "name": "FileDragActive", "kind": "property", "id": "property|FileDragActive|0|0|bool||get;|hc2e815e1a71bc6a75b5e19ff96d7c1ef201253bc7b4d7f60949c96df158538ac", "signature": "bool FileDragActive { get; }", "summary": "True while files are being dragged over the window, for a drop target to light up." }, { "name": "FilePicker", "kind": "extension", "id": "extension|FilePicker|0|0|bool|UiText id;ref bool open;ref string out;int outCap = 1024;FilePickerOpts o = default||hb1ce6182678b8b2ca569fff7fdf6d4a781314228ed80d25a4c02a48b368dd07f", "signature": "bool FilePicker(UiText id, ref bool open, ref string @out, int outCap = 1024, FilePickerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "out", "type": "ref string" }, { "name": "outCap", "type": "int", "default": "1024" }, { "name": "o", "type": "FilePickerOpts", "default": "default" }], "summary": "True once, with the chosen path in out, when the dialog is confirmed; *open turns false then, or on Cancel and Esc." }, { "name": "FilterBar", "kind": "method", "id": "method|FilterBar|0|0|bool|UiText id;ReadOnlySpan\u003CFilterField\u003E fields;Span\u003Cuint\u003E selected;ref string search;int searchCap = 256||h05b35fdecfc879680ca00e844554bef0fb0d2b9ee533e72f50a25b4cb5e4be7a", "signature": "bool FilterBar(UiText id, ReadOnlySpan\u003CFilterField\u003E fields, Span\u003Cuint\u003E selected, ref string search, int searchCap = 256)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "fields", "type": "ReadOnlySpan\u003CFilterField\u003E" }, { "name": "selected", "type": "Span\u003Cuint\u003E" }, { "name": "search", "type": "ref string" }, { "name": "searchCap", "type": "int", "default": "256" }], "summary": "Filter chips, one dropdown per field plus a search. selected holds one option bitmask per field; returns true on any change." }, { "name": "HistogramSlider", "kind": "extension", "id": "extension|HistogramSlider|0|0|bool|UiText label;ReadOnlySpan\u003Cfloat\u003E bins;ref float lo;ref float hi;float min;float max;HistogramOpts o = default||h72cc41a613543670d7d773f53d3ed618f4ca5dda5c9cf710a8ea0c0745f9816a", "signature": "bool HistogramSlider(UiText label, ReadOnlySpan\u003Cfloat\u003E bins, ref float lo, ref float hi, float min, float max, HistogramOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "bins", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "lo", "type": "ref float" }, { "name": "hi", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "HistogramOpts", "default": "default" }], "summary": "Range slider over a histogram of the data it filters." }, { "name": "HoldButton", "kind": "extension", "id": "extension|HoldButton|0|0|bool|UiText label;HoldOpts o = default||ha44fcfbb972ecfbea614fbc280b43abd9c243c1e05ac46d39ac240667e1b2a30", "signature": "bool HoldButton(UiText label, HoldOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "HoldOpts", "default": "default" }], "summary": "Hold to confirm: a destructive action that fills while held and fires when full. Returns true once." }, { "name": "IconButton", "kind": "extension", "id": "extension|IconButton|0|0|bool|UiText icon;ButtonOpts o = default||h5215045b3b917c5c328653c82d759d884c905c9bee3fd2bcae9c23b95552a5e2", "signature": "bool IconButton(UiText icon, ButtonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "o", "type": "ButtonOpts", "default": "default" }], "summary": "Square/round button with only an icon. Give it a tooltip so it has a name." }, { "name": "ImageCompare", "kind": "extension", "id": "extension|ImageCompare|0|0|bool|UiText id;ulong before;ulong after;ref float pos;CompareOpts o = default||hbf70b5332c704791b825e9cb8d9e14cd4661dfc72efb9bed54e7afc61aac7221", "signature": "bool ImageCompare(UiText id, ulong before, ulong after, ref float pos, CompareOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "before", "type": "ulong" }, { "name": "after", "type": "ulong" }, { "name": "pos", "type": "ref float" }, { "name": "o", "type": "CompareOpts", "default": "default" }], "summary": "Before and after: drag the divider to compare two images. *pos is 0..1." }, { "name": "ImageViewer", "kind": "extension", "id": "extension|ImageViewer|0|0|bool|UiText id;ulong tex;int imageW;int imageH;ref ImageView view;ImageViewerOpts o = default||hfd49614f5ed12268c88fafc87f200f9ba92c7a0989e02c2476dadf0bb0fab3b3", "signature": "bool ImageViewer(UiText id, ulong tex, int imageW, int imageH, ref ImageView view, ImageViewerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tex", "type": "ulong" }, { "name": "imageW", "type": "int" }, { "name": "imageH", "type": "int" }, { "name": "view", "type": "ref ImageView" }, { "name": "o", "type": "ImageViewerOpts", "default": "default" }], "summary": "Returns true when the view changed." }, { "name": "InspectorGroup", "kind": "extension", "id": "extension|InspectorGroup|0|0|bool|UiText title;ref bool open||hba33317836e4529b513b762245b52b82d2fc8fd252b7ae2174d7ffdf7ff08018", "signature": "bool InspectorGroup(UiText title, ref bool open)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }], "summary": "A folding group header. Build its rows only when this returns true (it stays true while the group animates closed). open may be NULL for a plain section that does not fold." }, { "name": "IsDisabled", "kind": "property", "id": "property|IsDisabled|0|0|bool||get;|h66819bb8e34991aa0b9a8fdf312d84bcc577f1aed8196c14e9cfc9792bab4b6e", "signature": "bool IsDisabled { get; }", "summary": "True inside a Disabled scope (or one a parent opened)." }, { "name": "JsonView", "kind": "extension", "id": "extension|JsonView|0|0|bool|UiText id;UiText json;JsonOpts o = default||h206112d6d2798b04c8b2e35b11a492fe5022438268206f218c32f29f9efa0bbf", "signature": "bool JsonView(UiText id, UiText json, JsonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "json", "type": "UiText" }, { "name": "o", "type": "JsonOpts", "default": "default" }], "summary": "JSON viewer: a collapsible tree with typed colors and item counts. Returns false when the text is not valid JSON (and shows the error)." }, { "name": "Kanban", "kind": "extension", "id": "extension|Kanban|0|0|bool|UiText id;out KanbanMove kanbanmove;DrawFn body||h06459ebde22b2b48e212f80454450eb468aac078e18e50dee8f7aa756afdbe5e", "signature": "bool Kanban(UiText id, out KanbanMove kanbanmove, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "kanbanmove", "type": "out KanbanMove" }, { "name": "body", "type": "DrawFn" }], "summary": "cui_kanban_begin The card was dropped into another column, and the move is written into the out parameter." }, { "name": "KeyDown", "kind": "method", "id": "method|KeyDown|0|0|bool|Key key||h8b8a390f57bfe976c9fae2d30fec99be77322f69944968534c26bc08482cb159", "signature": "bool KeyDown(Key key)", "parameters": [{ "name": "key", "type": "Key" }], "summary": "True while the key is held (with auto-repeat)." }, { "name": "KeyPressed", "kind": "method", "id": "method|KeyPressed|0|0|bool|Key key||hd4bc534b9e8b12976f0c38f87635500fca89a9d6949ea0a103354f41e6d39700", "signature": "bool KeyPressed(Key key)", "parameters": [{ "name": "key", "type": "Key" }], "summary": "True on the frame the key went down, including repeats." }, { "name": "Knob", "kind": "extension", "id": "extension|Knob|0|0|bool|UiText id;ref float value;float min;float max;KnobOpts o = default||hfceb051da509c5e36d4bd22400b42f24a8cc0da8ba2c27a23c8e378855c66680", "signature": "bool Knob(UiText id, ref float value, float min, float max, KnobOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "KnobOpts", "default": "default" }], "summary": "Knob, fader and level meter: the controls of audio, synth and mixer panels." }, { "name": "KvEditor", "kind": "extension", "id": "extension|KvEditor|0|0|bool|UiText id;Span\u003CKeyValue\u003E pairs;ref int count;KvEditorOpts o = default||h33bb0c1c82dae67745ff12456422881b7a82c634ea86250511129fa68d145901", "signature": "bool KvEditor(UiText id, Span\u003CKeyValue\u003E pairs, ref int count, KvEditorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "pairs", "type": "Span\u003CKeyValue\u003E" }, { "name": "count", "type": "ref int" }, { "name": "o", "type": "KvEditorOpts", "default": "default" }], "summary": "cui_kv_editor_ex" }, { "name": "LevelMeter", "kind": "extension", "id": "extension|LevelMeter|0|0|bool|UiText id;ReadOnlySpan\u003Cfloat\u003E levels;LevelMeterOpts o = default||he2b90272968549a2bc948844fa0f2e5fcb787783f5c0716cf3d8c48db532ab7e", "signature": "bool LevelMeter(UiText id, ReadOnlySpan\u003Cfloat\u003E levels, LevelMeterOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "levels", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "o", "type": "LevelMeterOpts", "default": "default" }], "summary": "Returns true when the clip light was clicked to clear it." }, { "name": "Link", "kind": "extension", "id": "extension|Link|0|0|bool|UiText text||h20b90df40ad793aa00f00bae1aeddd8c78d8d1ee7eccdf7f709db8b78317b57a", "signature": "bool Link(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "cui_link" }, { "name": "ListItem", "kind": "extension", "id": "extension|ListItem|0|0|bool|UiText title;ListItemOpts o = default||h59240e7a8fd8d1115830e25d32bfc60e47f14e4645e8e48b58281c710be7f5c9", "signature": "bool ListItem(UiText title, ListItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "ListItemOpts", "default": "default" }], "summary": "List item: a selectable row with optional icon, subtitle and trailing text." }, { "name": "LoadImage", "kind": "method", "id": "method|LoadImage|0|0|bool|UiText path;out ulong texture;out int width;out int height||hfe19783db558936a04580a0831ac4289470f120ccd1ef3163fcee3e05649da1f", "signature": "bool LoadImage(UiText path, out ulong texture, out int width, out int height)", "parameters": [{ "name": "path", "type": "UiText" }, { "name": "texture", "type": "out ulong" }, { "name": "width", "type": "out int" }, { "name": "height", "type": "out int" }], "summary": "Decodes a PNG or JPEG from disk into a texture and reports its pixel size. Returns false when the file cannot be read or decoded; the texture is then 0. Release it with DestroyImage." }, { "name": "MenuItem", "kind": "extension", "id": "extension|MenuItem|0|0|bool|UiText label;MenuItemOpts o = default||h6f02a24b8c3e14f743f1164e34c40e0c32e7647a378fc18f6fac4bd77708b604", "signature": "bool MenuItem(UiText label, MenuItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "MenuItemOpts", "default": "default" }], "summary": "cui_menu_item_ex" }, { "name": "ModelPicker", "kind": "extension", "id": "extension|ModelPicker|0|0|bool|UiText id;ReadOnlySpan\u003CModel\u003E models;ref int selected;ModelPickerOpts o = default||h30f09bcdbcd0511d67feaab5ce1eb2d84b0769c8eb387e2675cdc4b9faf9d869", "signature": "bool ModelPicker(UiText id, ReadOnlySpan\u003CModel\u003E models, ref int selected, ModelPickerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "models", "type": "ReadOnlySpan\u003CModel\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "ModelPickerOpts", "default": "default" }], "summary": "Model picker: the current model on a button; a list with details opens." }, { "name": "MoneyInput", "kind": "extension", "id": "extension|MoneyInput|0|0|bool|UiText id;ref double value;MoneyOpts o = default||hd65fb688e51d9a482d2f9031cdb57646790ad85a3c809e961601a8725a753b42", "signature": "bool MoneyInput(UiText id, ref double value, MoneyOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref double" }, { "name": "o", "type": "MoneyOpts", "default": "default" }], "summary": "Money field: shows the amount with thousands separators, edits as plain digits, keeps a fixed number of decimals." }, { "name": "MouseClicked", "kind": "method", "id": "method|MouseClicked|0|0|bool|MouseButton button||h8e0f0ad614e613c5c152543c9917af645f5ae90299577124c2da8f7863f69862", "signature": "bool MouseClicked(MouseButton button)", "parameters": [{ "name": "button", "type": "MouseButton" }], "summary": "True on the frame a mouse button went down." }, { "name": "MouseDown", "kind": "method", "id": "method|MouseDown|0|0|bool|MouseButton button||hf67b74dbd9e44892fdb6b384ac7537f75c21e2054ec9267ee7cf800f77c4c81d", "signature": "bool MouseDown(MouseButton button)", "parameters": [{ "name": "button", "type": "MouseButton" }], "summary": "True while a mouse button is held." }, { "name": "MultiSelect", "kind": "method", "id": "method|MultiSelect|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;Span\u003Cbool\u003E selected;MultiSelectOpts o = default||h3e128721808f3d5d3438e029c09a821039a75342e2851271e35420570d1affca", "signature": "bool MultiSelect(UiText id, ReadOnlySpan\u003Cstring\u003E items, Span\u003Cbool\u003E selected, MultiSelectOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "selected", "type": "Span\u003Cbool\u003E" }, { "name": "o", "type": "MultiSelectOpts", "default": "default" }], "summary": "A searchable list with one checkbox per item and chips for the chosen ones. Returns true on the frame an entry flips." }, { "name": "NavItem", "kind": "extension", "id": "extension|NavItem|0|0|bool|UiText label;NavOpts o = default||h163b7c5bf544cc2227cbef6b64c928a89e62b8536a9e4ab947179a86d455c59d", "signature": "bool NavItem(UiText label, NavOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "NavOpts", "default": "default" }], "summary": "Sidebar navigation item with a gliding selection highlight shared by all items in the same group." }, { "name": "NeedsRedraw", "kind": "property", "id": "property|NeedsRedraw|0|0|bool||get;|h5aadd05568570958d5b9529ecc317e3ce874d6c40baa003636859fb90a0da9fc", "signature": "bool NeedsRedraw { get; }" }, { "name": "NodeDeleted", "kind": "extension", "id": "extension|NodeDeleted|0|0|bool|ref int nodeId||hc3cfc3ad4c4fc3a042b1dbb26d3de5739a59ee9b1e9f8c1741f772a5e535d6bc", "signature": "bool NodeDeleted(ref int nodeId)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "nodeId", "type": "ref int" }], "summary": "cui_node_deleted" }, { "name": "NodeInput", "kind": "extension", "id": "extension|NodeInput|0|0|bool|int pinId;UiText label;PinOpts o = default||hd37a374006c3c8cd18c68d9d7503bd5160359d3f3e458d3531e756c52700b1f0", "signature": "bool NodeInput(int pinId, UiText label, PinOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "pinId", "type": "int" }, { "name": "label", "type": "UiText" }, { "name": "o", "type": "PinOpts", "default": "default" }], "summary": "A row with a pin on the left (input) or right (output). type picks the pin color from the series palette and limits links to pins of the same type (0 connects to anything). Returns true when the pin has a link." }, { "name": "NodeLink", "kind": "extension", "id": "extension|NodeLink|0|0|bool|int linkId;int fromPin;int toPin||hab2ff05d12c3863dc35ff7ced8cdef83783fba6a2e16dbd81214feb3eaf01910", "signature": "bool NodeLink(int linkId, int fromPin, int toPin)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "linkId", "type": "int" }, { "name": "fromPin", "type": "int" }, { "name": "toPin", "type": "int" }], "summary": "A link from an output pin to an input pin. Returns true while it is selected." }, { "name": "NodeLinkCreated", "kind": "extension", "id": "extension|NodeLinkCreated|0|0|bool|ref int fromPin;ref int toPin||h7c136a895333c132f83c1d99cf5809163d5430c0060eaaedcf7bbe0f15f462bd", "signature": "bool NodeLinkCreated(ref int fromPin, ref int toPin)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "fromPin", "type": "ref int" }, { "name": "toPin", "type": "ref int" }], "summary": "What the user did this frame, one event per call; call them after cui_node_editor_begin (and up to the end of the frame)." }, { "name": "NodeLinkRemoved", "kind": "extension", "id": "extension|NodeLinkRemoved|0|0|bool|ref int linkId||h8cf7097abf407418a15af49e45ee086b240ec03b1e130c7888ce620da1bbadca", "signature": "bool NodeLinkRemoved(ref int linkId)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "linkId", "type": "ref int" }], "summary": "Part of cui_node_link \u2014 A link from an output pin to an input pin. Returns true while it is selected." }, { "name": "NodeOutput", "kind": "extension", "id": "extension|NodeOutput|0|0|bool|int pinId;UiText label;PinOpts o = default||h3750efacdd047bf840c0482278adf33fa6dd72ffa3acb6bf2c1afd789b95d351", "signature": "bool NodeOutput(int pinId, UiText label, PinOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "pinId", "type": "int" }, { "name": "label", "type": "UiText" }, { "name": "o", "type": "PinOpts", "default": "default" }], "summary": "A row with a pin on the left (input) or right (output). type picks the pin color from the series palette and limits links to pins of the same type (0 connects to anything). Returns true when the pin has a link." }, { "name": "Number", "kind": "method", "id": "method|Number|0|0|bool|UiText id;ref double value;double min;double max;NumberOpts o = default||h695eacf696437442db4c71e212e9d772037965f7b79fa0164581c32f72012f09", "signature": "bool Number(UiText id, ref double value, double min, double max, NumberOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref double" }, { "name": "min", "type": "double" }, { "name": "max", "type": "double" }, { "name": "o", "type": "NumberOpts", "default": "default" }] }, { "name": "OtpInput", "kind": "method", "id": "method|OtpInput|0|0|bool|UiText id;ref string value;int length||h8029c922f0c302147b4a9d172f51e477cf692656857072b2505965f1cc911eaf", "signature": "bool OtpInput(UiText id, ref string value, int length)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "length", "type": "int" }], "summary": "One-time code input: length boxes, buffer length \u002B 1." }, { "name": "Pagination", "kind": "extension", "id": "extension|Pagination|0|0|bool|UiText id;ref int page;int pageCount||h79ccb8aea896cd889c714acd8763edcf22dbbfb029a1dbd70ed9639354c6b6c8", "signature": "bool Pagination(UiText id, ref int page, int pageCount)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "page", "type": "ref int" }, { "name": "pageCount", "type": "int" }], "summary": "page is 0 based" }, { "name": "PopoverIsOpen", "kind": "extension", "id": "extension|PopoverIsOpen|0|0|bool|UiText id||h83722811a2be8261fbe93cc555b026a4a1e130ec294d2cd25013358d929a3c0e", "signature": "bool PopoverIsOpen(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_popover_is_open" }, { "name": "PropBool", "kind": "extension", "id": "extension|PropBool|0|0|bool|UiText label;ref bool value;PropOpts o = default||h121ac40771efea9741585563443f4c4687f7a10d137ffd9d268555b5501ddd64", "signature": "bool PropBool(UiText label, ref bool value, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref bool" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_bool_ex" }, { "name": "PropColor", "kind": "extension", "id": "extension|PropColor|0|0|bool|UiText label;ref Color value;PropOpts o = default||h6ca0bc5ddc35dae8cf9131bd28c26cd31e497e501164de0d50828fb7983a1cc2", "signature": "bool PropColor(UiText label, ref Color value, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref Color" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "A swatch and hex value that opens the color picker." }, { "name": "PropEnum", "kind": "extension", "id": "extension|PropEnum|0|0|bool|UiText label;ReadOnlySpan\u003Cstring\u003E items;ref int index;PropOpts o = default||h241aa42ffd01f5c7a9fadb861af4a608b0c8a014ae458b62692370d10cf009d8", "signature": "bool PropEnum(UiText label, ReadOnlySpan\u003Cstring\u003E items, ref int index, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_enum_ex" }, { "name": "PropFloat", "kind": "extension", "id": "extension|PropFloat|0|0|bool|UiText label;ref float value;PropOpts o = default||hc8efd7345903f342766598358e2e5c0998eb7933cf7f5cec0429b86873ff6ccf", "signature": "bool PropFloat(UiText label, ref float value, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_float_ex" }, { "name": "PropInt", "kind": "extension", "id": "extension|PropInt|0|0|bool|UiText label;ref int value;PropOpts o = default||hd93df8234e1afb0dba5df9a1531c8936c732948e17db67e12102617d568c305b", "signature": "bool PropInt(UiText label, ref int value, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref int" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_int_ex" }, { "name": "PropText", "kind": "extension", "id": "extension|PropText|0|0|bool|UiText label;ref string buf;int cap;PropOpts o = default||h46a1a717145b1f3a7800e8921d45ea9b002d8c2fdf5958fbf3c03f97fc47d1db", "signature": "bool PropText(UiText label, ref string buf, int cap, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_text_ex" }, { "name": "PropVec", "kind": "extension", "id": "extension|PropVec|0|0|bool|UiText label;ref float value;int components;PropOpts o = default||h57600f963270b3c592fd247d9b1f943533361ae615e7b6ca52e287fa289a67b2", "signature": "bool PropVec(UiText label, ref float value, int components, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "components", "type": "int" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "Compact X, Y (Z, W) scrub fields side by side; value holds 2, 3 or 4 floats." }, { "name": "QueryBuilder", "kind": "extension", "id": "extension|QueryBuilder|0|0|bool|UiText id;ReadOnlySpan\u003CQueryField\u003E fields;Span\u003CQueryNode\u003E nodes;ref int count;QueryOpts o = default||hf3edbb954d2f83ed4e81805130275cc7c0ef85dc162f7e4b8a07a3d9d533090f", "signature": "bool QueryBuilder(UiText id, ReadOnlySpan\u003CQueryField\u003E fields, Span\u003CQueryNode\u003E nodes, ref int count, QueryOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "fields", "type": "ReadOnlySpan\u003CQueryField\u003E" }, { "name": "nodes", "type": "Span\u003CQueryNode\u003E" }, { "name": "count", "type": "ref int" }, { "name": "o", "type": "QueryOpts", "default": "default" }], "summary": "cui_query_builder_ex" }, { "name": "Radio", "kind": "extension", "id": "extension|Radio|0|0|bool|UiText label;ref int value;int option;CheckOpts o = default||h837451b9483026bc7e273c76e5251c0de524d770f182a8365674ac44553130ee", "signature": "bool Radio(UiText label, ref int value, int option, CheckOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref int" }, { "name": "option", "type": "int" }, { "name": "o", "type": "CheckOpts", "default": "default" }], "summary": "cui_radio_ex" }, { "name": "RadioCards", "kind": "extension", "id": "extension|RadioCards|0|0|bool|UiText id;ReadOnlySpan\u003CChoice\u003E choices;ref int index;RadioCardsOpts o = default||h277ecfd91b4ab6ad87556ac5585d5014c5f8f4b70743ded6f2d33b25b513c439", "signature": "bool RadioCards(UiText id, ReadOnlySpan\u003CChoice\u003E choices, ref int index, RadioCardsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "choices", "type": "ReadOnlySpan\u003CChoice\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "RadioCardsOpts", "default": "default" }], "summary": "Radio cards: larger selectable cards for choices that need a description (plans, templates)." }, { "name": "RadioGroup", "kind": "extension", "id": "extension|RadioGroup|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index||h13b5e8871098bf87979cd713e4fa844042e8066de15ba83cf7b5cda071897cee", "signature": "bool RadioGroup(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }], "summary": "cui_radio_group" }, { "name": "RangeCalendar", "kind": "extension", "id": "extension|RangeCalendar|0|0|bool|UiText id;ref DateRange range;int months||h8c74871e3d5b09aa52567046cfb0cacddba5d6bd45af5a0343aa6ea880da3344", "signature": "bool RangeCalendar(UiText id, ref DateRange range, int months)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "range", "type": "ref DateRange" }, { "name": "months", "type": "int" }], "summary": "One or two months side by side; click a start and an end." }, { "name": "RangeSlider", "kind": "extension", "id": "extension|RangeSlider|0|0|bool|UiText label;ref float lo;ref float hi;float min;float max||h431a1c22347795ecfaf7422d776daf2552ad13b1bbafc0b34e7ddfbb9f6fca1e", "signature": "bool RangeSlider(UiText label, ref float lo, ref float hi, float min, float max)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "lo", "type": "ref float" }, { "name": "hi", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }], "summary": "cui_range_slider" }, { "name": "Rating", "kind": "extension", "id": "extension|Rating|0|0|bool|UiText id;ref int value;int max = 5||ha54ef468c924f3613d361d9d3e4ba18c9bed4ef0f7d7dd855532a052b89231ce", "signature": "bool Rating(UiText id, ref int value, int max = 5)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref int" }, { "name": "max", "type": "int", "default": "5" }], "summary": "cui_rating" }, { "name": "ReorderEnd", "kind": "method", "id": "method|ReorderEnd|0|0|bool|||h289d889249190a219f4708d3f6a34916df30d8dccdd623b1af17d06cf7ad4fe9", "signature": "bool ReorderEnd()" }, { "name": "RulerSlider", "kind": "extension", "id": "extension|RulerSlider|0|0|bool|UiText label;ref float value;float min;float max;RulerOpts o = default||hda8dec175710635b7de7215517d587b9a5332ed440922d693ed02813d9c4deb7", "signature": "bool RulerSlider(UiText label, ref float value, float min, float max, RulerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "RulerOpts", "default": "default" }], "summary": "Ruler slider: a tape measure that slides under a fixed marker, with momentum and snapping to step." }, { "name": "Scrub", "kind": "extension", "id": "extension|Scrub|0|0|bool|UiText label;ref float value;float min;float max;ScrubOpts o = default||h816f9787704b09241842573d59264e0cc5674f4a764e0ae2054b721f3ad20a7b", "signature": "bool Scrub(UiText label, ref float value, float min, float max, ScrubOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "ScrubOpts", "default": "default" }], "summary": "Scrub field: drag sideways anywhere on it to change the value (Shift for fine steps), or click to type a number. Arrow keys step when focused." }, { "name": "Segmented", "kind": "extension", "id": "extension|Segmented|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index;SegmentedOpts o = default||h8452b4d90fbd938f7492782df2bfd7e49e6f17b79bb32a7fa92536dbbc52bbfb", "signature": "bool Segmented(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index, SegmentedOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "SegmentedOpts", "default": "default" }], "summary": "Segmented control: a row of options with a gliding highlight." }, { "name": "Select", "kind": "extension", "id": "extension|Select|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index;SelectOpts o = default||h4546d9051044aa80f649b171897799d53c415b998250abdc626bf84e5341bea3", "signature": "bool Select(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index, SelectOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "SelectOpts", "default": "default" }], "summary": "cui_select_ex" }, { "name": "Shortcut", "kind": "method", "id": "method|Shortcut|0|0|bool|Mods mods;Key key||h23544d98ad9364c783897d23b07d28fd4c4889f44ac4f6b734142ae19cee295a", "signature": "bool Shortcut(Mods mods, Key key)", "parameters": [{ "name": "mods", "type": "Mods" }, { "name": "key", "type": "Key" }] }, { "name": "ShortcutRecorder", "kind": "extension", "id": "extension|ShortcutRecorder|0|0|bool|UiText id;ref KeyCombo combo;ShortcutRecorderOpts o = default||h22c067848057da16592bf471e38a3d5c8d3e7a976928a24a34dda5e650586e2a", "signature": "bool ShortcutRecorder(UiText id, ref KeyCombo combo, ShortcutRecorderOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "combo", "type": "ref KeyCombo" }, { "name": "o", "type": "ShortcutRecorderOpts", "default": "default" }], "summary": "Shortcut recorder: click and press a key combination to record it. Backspace clears, Esc cancels. Returns true when the combination changed. cui_shortcut_label formats a combination (\u0022Ctrl Shift K\u0022)." }, { "name": "SignaturePad", "kind": "extension", "id": "extension|SignaturePad|0|0|bool|UiText id;SignatureOpts o = default||h26a7180ac812cfc40208765b73de3283d8bdc2a773db48e467c36bfac61e2f47", "signature": "bool SignaturePad(UiText id, SignatureOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "SignatureOpts", "default": "default" }], "summary": "Signature pad: draw with the mouse or a pen. The strokes are kept for you; read them with cui_signature_points (stroke_ends[i] is one past the last point of stroke i)." }, { "name": "Slider", "kind": "extension", "id": "extension|Slider|0|0|bool|UiText label;ref float value;float min;float max;SliderOpts o = default||h07890e859be8c8053afac54f6a7ef888728ac54358e77cca1a0c6f9d5936fcd0", "signature": "bool Slider(UiText label, ref float value, float min, float max, SliderOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "SliderOpts", "default": "default" }], "summary": "Elastic slider: the track stretches like rubber when dragged past its ends." }, { "name": "StatusBarItem", "kind": "extension", "id": "extension|StatusBarItem|0|0|bool|UiText label;StatusItemOpts o = default||h35fa1b9b36f005ceff913dc858202baee2f50d4678537b369e987582020f4d84", "signature": "bool StatusBarItem(UiText label, StatusItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "StatusItemOpts", "default": "default" }], "summary": "A small clickable item (\u0022Ln 12, Col 4\u0022, \u0022UTF-8\u0022). Returns true when clicked." }, { "name": "StatusButton", "kind": "extension", "id": "extension|StatusButton|0|0|bool|UiText label;Status status;StatusButtonOpts o = default||h5c9d9e2cd49f70a00398d2fe51ccf1933f78becdf2d7e5b610c5e2427ee30722", "signature": "bool StatusButton(UiText label, Status status, StatusButtonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "status", "type": "Status" }, { "name": "o", "type": "StatusButtonOpts", "default": "default" }], "summary": "cui_status_button_ex" }, { "name": "Switch", "kind": "extension", "id": "extension|Switch|0|0|bool|UiText label;ref bool value;CheckOpts o = default||he58bf080044a84430ae1c50aae77072ba3e8bc1dc7ad4f8576f39e74324cd486", "signature": "bool Switch(UiText label, ref bool value, CheckOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref bool" }, { "name": "o", "type": "CheckOpts", "default": "default" }], "summary": "cui_switch_ex" }, { "name": "TabBar", "kind": "extension", "id": "extension|TabBar|0|0|bool|UiText id;ReadOnlySpan\u003CTabBarItem\u003E items;ref int selected;TabBarOpts o = default||h3b532a1edd39eaf1a6db4278f4c3c26674c9a67777ba72dd890ca8c67ecbb0d8", "signature": "bool TabBar(UiText id, ReadOnlySpan\u003CTabBarItem\u003E items, ref int selected, TabBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CTabBarItem\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "TabBarOpts", "default": "default" }], "summary": "Bottom tab bar for compact layouts, with a pill that glides to the selection." }, { "name": "TableRow", "kind": "extension", "id": "extension|TableRow|0|0|bool|bool selected||h5862a1074065231ee67e616f36b6ef2708e5a53d06e9c647dfc4e50f9f54feb9", "signature": "bool TableRow(bool selected)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "selected", "type": "bool" }], "summary": "Begin a row. Returns true when the row is clicked." }, { "name": "Tabs", "kind": "extension", "id": "extension|Tabs|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index;TabsOpts o = default||h44602f1d285b43ccb2a4a3f04fc10eeb9824d034d9c4786918ec03417b25d800", "signature": "bool Tabs(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index, TabsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "TabsOpts", "default": "default" }], "summary": "cui_tabs_ex" }, { "name": "TagInput", "kind": "method", "id": "method|TagInput|0|0|bool|UiText id;ref string value;TagOpts o = default||h7d78f96fc27b022e7ce11dd6a4742470284f57dc2e17866e76fb8b61780bf9f0", "signature": "bool TagInput(UiText id, ref string value, TagOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "o", "type": "TagOpts", "default": "default" }], "summary": "Comma-separated tags in one field; enter or comma adds, backspace removes." }, { "name": "ThemeSwitcher", "kind": "extension", "id": "extension|ThemeSwitcher|0|0|bool|ref int mode;bool withSystem||h6ac2911103fa89f29df34fe5abd3737f62b03fad01ac2c5f7ce9f96f81466e7b", "signature": "bool ThemeSwitcher(ref int mode, bool withSystem)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "mode", "type": "ref int" }, { "name": "withSystem", "type": "bool" }], "summary": "Theme switcher: light, dark and (optionally) system, as a compact icon segmented control. mode is 0 light, 1 dark, 2 system. Light and dark are applied for you; for system call cui_set_theme with the OS setting. Returns true when mode changed." }, { "name": "ThemeToggle", "kind": "extension", "id": "extension|ThemeToggle|0|0|bool|||hac003993a346e758ec03a7b5cae2fbd886929a7ae077d9f9459a78e6cb9e9028", "signature": "bool ThemeToggle()", "extensionOn": "CuiSharp.Ui", "summary": "Sun and moon icon button that toggles the theme with a morph." }, { "name": "TimeDial", "kind": "extension", "id": "extension|TimeDial|0|0|bool|UiText id;ref int hour;ref int minute;float size||hc81f9c9c6cda6a218a1a97579124c3a6415d5a3bec246c2545e9638a3cbefadc", "signature": "bool TimeDial(UiText id, ref int hour, ref int minute, float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "hour", "type": "ref int" }, { "name": "minute", "type": "ref int" }, { "name": "size", "type": "float" }], "summary": "Time dial: a clock face. Drag the hand to set hours, then minutes." }, { "name": "TimePicker", "kind": "extension", "id": "extension|TimePicker|0|0|bool|UiText id;ref int hour;ref int minute;TimeOpts o = default||h2f5e91438efc0191e949769048849a3fb8bb629993aef37fa50790655d5a16e2", "signature": "bool TimePicker(UiText id, ref int hour, ref int minute, TimeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "hour", "type": "ref int" }, { "name": "minute", "type": "ref int" }, { "name": "o", "type": "TimeOpts", "default": "default" }], "summary": "Time picker: a field that opens hour and minute columns. hour is 0..23." }, { "name": "ToastActionClicked", "kind": "extension", "id": "extension|ToastActionClicked|0|0|bool|int handle||h80802ec80123dda69208be2582b05ccc3d887063aa242cdb0a7d5f946417cce1", "signature": "bool ToastActionClicked(int handle)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "handle", "type": "int" }], "summary": "cui_toast_action_clicked" }, { "name": "ToggleGroup", "kind": "method", "id": "method|ToggleGroup|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E labels;Span\u003Cbool\u003E values;ToggleGroupOpts o = default||hbf4630396185f73a4900042d74fe62f684385217a55457d20067677982015437", "signature": "bool ToggleGroup(UiText id, ReadOnlySpan\u003Cstring\u003E labels, Span\u003Cbool\u003E values, ToggleGroupOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "labels", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "values", "type": "Span\u003Cbool\u003E" }, { "name": "o", "type": "ToggleGroupOpts", "default": "default" }], "summary": "A row of toggle buttons sharing one bool per label. Independent by default; Exclusive makes them behave like radio buttons. Returns true on the frame an entry flips." }, { "name": "ToolbarButton", "kind": "extension", "id": "extension|ToolbarButton|0|0|bool|UiText icon;ref bool toggle;ToolOpts o = default||h280488daf404cebc0318d20c1e09b3000ff82103111371b7fdf8c2735fe2c970", "signature": "bool ToolbarButton(UiText icon, ref bool toggle, ToolOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "toggle", "type": "ref bool" }, { "name": "o", "type": "ToolOpts", "default": "default" }], "summary": "cui_toolbar_button_ex" }, { "name": "TreeCell", "kind": "extension", "id": "extension|TreeCell|0|0|bool|UiText label;int depth;bool hasChildren;ref bool open;UiText icon||h7d87cfa9d747ede3646c93ffc4296bb6d158f59a36670c943b38b8891f9a08bd", "signature": "bool TreeCell(UiText label, int depth, bool hasChildren, ref bool open, UiText icon)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "depth", "type": "int" }, { "name": "hasChildren", "type": "bool" }, { "name": "open", "type": "ref bool" }, { "name": "icon", "type": "UiText" }], "summary": "Tree cell: indentation, a disclosure chevron and a label, for tree tables (use it in a table or grid cell). Returns true when *open toggled." }, { "name": "TreeClicked", "kind": "extension", "id": "extension|TreeClicked|0|0|bool|||he0d6c1a473304bfa16c30035268639d026f37ddeade6a53e36b6a43056ea0039", "signature": "bool TreeClicked()", "extensionOn": "CuiSharp.Ui", "summary": "the node created by the last cui_tree_begin was clicked" }, { "name": "Typewriter", "kind": "extension", "id": "extension|Typewriter|0|0|bool|UiText id;UiText text;TextFxOpts o = default||hd2793d1d9701d6e1c2de232ed4163f8a0a17de8606e1a0c00033798e26804d7b", "signature": "bool Typewriter(UiText id, UiText text, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "Types the text out. When the text grows (streamed tokens) it carries on from where it was; other changes start over. Returns true once complete." }, { "name": "VoiceOrb", "kind": "extension", "id": "extension|VoiceOrb|0|0|bool|UiText id;VoiceState state;float level;VoiceOrbOpts o = default||h55678c858554bd6ffbc3fbad4b03aeb90fff9d582a2dad8b10090a9496cf7d41", "signature": "bool VoiceOrb(UiText id, VoiceState state, float level, VoiceOrbOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "state", "type": "VoiceState" }, { "name": "level", "type": "float" }, { "name": "o", "type": "VoiceOrbOpts", "default": "default" }], "summary": "cui_voice_orb_ex" }, { "name": "WantsKeyboard", "kind": "property", "id": "property|WantsKeyboard|0|0|bool||get;|h9fd1d2033ea34ec49759c84f9a199c15d92ad7e28a6a1a4cc3ebee535bec764b", "signature": "bool WantsKeyboard { get; }" }, { "name": "WantsMouse", "kind": "property", "id": "property|WantsMouse|0|0|bool||get;|h88ad7771300bfdd824d0527cc05ab2978f5a741b34494adb9660c29ae0fd53b7", "signature": "bool WantsMouse { get; }", "summary": "True when the pointer is over this window and the UI wants it." }, { "name": "Waveform", "kind": "extension", "id": "extension|Waveform|0|0|bool|UiText id;ReadOnlySpan\u003Cfloat\u003E peaks;ref float progress;WaveformOpts o = default||h82b5eb85d1dd0e891471303dae6af8ef45f993a4522c265b5380640be5f95a34", "signature": "bool Waveform(UiText id, ReadOnlySpan\u003Cfloat\u003E peaks, ref float progress, WaveformOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "peaks", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "progress", "type": "ref float" }, { "name": "o", "type": "WaveformOpts", "default": "default" }], "summary": "Waveform: bars from peaks (0..1). With progress, the played part is colored and clicking or dragging seeks; returns true when it did." }, { "name": "WheelPicker", "kind": "extension", "id": "extension|WheelPicker|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index;WheelOpts o = default||h6e20c98f3670a089db93c4a37a910bd23a7f6b3a8ad5c2cd67e1294d58a2fae4", "signature": "bool WheelPicker(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index, WheelOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "WheelOpts", "default": "default" }], "summary": "Wheel picker: a drum of options that you drag, scroll or arrow through. Several side by side make a date or time reel. join_left / join_right square off the selection band so wheels placed side by side share one continuous band." }, { "name": "Time", "kind": "property", "id": "property|Time|0|0|double||get;|h59d804a6c66b43aad6ffe38fb8d686d405da1f1e73a127a3af738e7ba55df397", "signature": "double Time { get; }", "summary": "Seconds since the app started. Monotonic; use it for animation phases." }, { "name": "Animate", "kind": "method", "id": "method|Animate|0|0|float|UiText id;float target||h6aa8f80b2f784f8d21be090f3514e71ea8c5c9e820fb1fc041073b0956552fa8", "signature": "float Animate(UiText id, float target)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "target", "type": "float" }], "summary": "Moves a value toward target with a spring, keyed by id." }, { "name": "AnimateSpring", "kind": "method", "id": "method|AnimateSpring|0|0|float|UiText id;float target;float duration;float bounce||h18961b791dced18013209a15d6f4c3ea989233c2d507d6986cf80ff8eea91b47", "signature": "float AnimateSpring(UiText id, float target, float duration, float bounce)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "target", "type": "float" }, { "name": "duration", "type": "float" }, { "name": "bounce", "type": "float" }], "summary": "Moves a value toward target with a spring of the given duration and bounce." }, { "name": "DeltaTime", "kind": "property", "id": "property|DeltaTime|0|0|float||get;|h9b38e45e1e2ffd64837bd659bc02203c5bcd38701ca6046589022c3424ef1a09", "signature": "float DeltaTime { get; }", "summary": "Seconds since the previous frame, clamped by the host." }, { "name": "DpiScale", "kind": "property", "id": "property|DpiScale|0|0|float||get;|hd6fea6745004ce2bacbb8eac54eebd74e77705ff2605b31ccb4a18c241ebb063", "signature": "float DpiScale { get; }", "summary": "Device pixels per logical point for the window this frame draws into." }, { "name": "ActivityRings", "kind": "extension", "id": "extension|ActivityRings|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E rings;RingsOpts o = default||he739303ba236c8b2947fe3ee08443b09f019e41b8acac0f7da681d197ae0307e", "signature": "int ActivityRings(UiText id, ReadOnlySpan\u003CVizItem\u003E rings, RingsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "rings", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "RingsOpts", "default": "default" }], "summary": "Activity rings: concentric progress rings; values past 1 keep winding." }, { "name": "AgentPlan", "kind": "extension", "id": "extension|AgentPlan|0|0|int|UiText id;ReadOnlySpan\u003CPlanStep\u003E steps;AgentPlanOpts o = default||h6067d2501a7a26bcccda0db7d672b245a2fcff12d68ede6c491d265a45d1b4b9", "signature": "int AgentPlan(UiText id, ReadOnlySpan\u003CPlanStep\u003E steps, AgentPlanOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "steps", "type": "ReadOnlySpan\u003CPlanStep\u003E" }, { "name": "o", "type": "AgentPlanOpts", "default": "default" }], "summary": "Agent plan: steps with their status on a connected rail, and progress." }, { "name": "AvatarUpload", "kind": "extension", "id": "extension|AvatarUpload|0|0|int|UiText id;UiText name;ref ulong image;float size||h2032bcd7f55566afffa2cde5d86987aa5b1a36719844c8d755d13b19b16255bb", "signature": "int AvatarUpload(UiText id, UiText name, ref ulong image, float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "name", "type": "UiText" }, { "name": "image", "type": "ref ulong" }, { "name": "size", "type": "float" }], "summary": "Avatar upload: a round avatar that takes a dropped image, with a camera badge on hover. Returns 1 when *image changed, -1 when clicked (browse), 0 otherwise. A dropped image is loaded with cui_image_load." }, { "name": "BarList", "kind": "extension", "id": "extension|BarList|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E items;BarListOpts o = default||h0e2abad96db38540b47d6c74f2cc68369ed40c046f6bf6c2d2dea3c10d465680", "signature": "int BarList(UiText id, ReadOnlySpan\u003CVizItem\u003E items, BarListOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "BarListOpts", "default": "default" }], "summary": "Bar list: ranked horizontal bars. Rows are keyed by label, so when the values change the bars grow and the rows slide to their new rank." }, { "name": "Breadcrumb", "kind": "extension", "id": "extension|Breadcrumb|0|0|int|ReadOnlySpan\u003Cstring\u003E items||h7e5435f64395bbaf15f18d4923a996c88ca3bd79318405fd33733751c65e8682", "signature": "int Breadcrumb(ReadOnlySpan\u003Cstring\u003E items)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }], "summary": "returns clicked index or -1" }, { "name": "CalendarHeatmap", "kind": "extension", "id": "extension|CalendarHeatmap|0|0|int|UiText id;Date start;ReadOnlySpan\u003Cfloat\u003E values;CalendarHeatmapOpts o = default||hdf61b9c82e018ac6c9a5f0797950a2a53c4826b47594dd073d18121a1691e796", "signature": "int CalendarHeatmap(UiText id, Date start, ReadOnlySpan\u003Cfloat\u003E values, CalendarHeatmapOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "start", "type": "Date" }, { "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "o", "type": "CalendarHeatmapOpts", "default": "default" }], "summary": "Calendar heatmap: one cell per day from start, weeks as columns, in five levels, with month and weekday labels and a Less / More legend." }, { "name": "Candlestick", "kind": "extension", "id": "extension|Candlestick|0|0|int|UiText id;ReadOnlySpan\u003CCandle\u003E candles;CandlestickOpts o = default||hdab8fd71be859d6cc56de05a9e2feb81a2532c176230e766fa2ba67fa5260e3c", "signature": "int Candlestick(UiText id, ReadOnlySpan\u003CCandle\u003E candles, CandlestickOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "candles", "type": "ReadOnlySpan\u003CCandle\u003E" }, { "name": "o", "type": "CandlestickOpts", "default": "default" }], "summary": "Returns the candle under the crosshair (pointer or keys), or -1." }, { "name": "CardStack", "kind": "extension", "id": "extension|CardStack|0|0|int|UiText id;int count;DrawFn body;CardStackOpts o = default||h2dadbccb1e5391a98cfda3530cd5b460c17e79dd01b6927d2346f58287b56332", "signature": "int CardStack(UiText id, int count, DrawFn body, CardStackOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "count", "type": "int" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "CardStackOpts", "default": "default" }], "summary": "Card stack: a deck where the top card can be flicked away left or right. Build \u0060count\u0060 cards; card 0 is the top. end returns -1 or 1 on the frame the top card leaves (to the left or right), else 0. The end call reports which card in the stack is active, or -1, so the body overload returns it." }, { "name": "Checklist", "kind": "extension", "id": "extension|Checklist|0|0|int|UiText id;ReadOnlySpan\u003CCheckStep\u003E steps;ChecklistOpts o = default||hb1cdf5bee54759618ba4c2e6386ab30794ff911948e833f0610afb911e63f554", "signature": "int Checklist(UiText id, ReadOnlySpan\u003CCheckStep\u003E steps, ChecklistOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "steps", "type": "ReadOnlySpan\u003CCheckStep\u003E" }, { "name": "o", "type": "ChecklistOpts", "default": "default" }], "summary": "Onboarding checklist: a card with progress and steps. The first open step shows its description and action. Clicking a step\u0027s circle toggles done. Returns the index whose action was clicked, or -1." }, { "name": "CommandPalette", "kind": "extension", "id": "extension|CommandPalette|0|0|int|ref bool open;ReadOnlySpan\u003CCommand\u003E commands||h001b59aa0ea6df8a0ea3d57d57bc1d6c25690db136f11ce1d794c93d9c7bbfc3", "signature": "int CommandPalette(ref bool open, ReadOnlySpan\u003CCommand\u003E commands)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "open", "type": "ref bool" }, { "name": "commands", "type": "ReadOnlySpan\u003CCommand\u003E" }], "summary": "Spotlight style command palette. Returns the index of the chosen command, or -1. Open it with a shortcut: if (cui_shortcut(ui, CUI_MOD_PRIMARY, CUI_KEY_K)) open = true;" }, { "name": "DiffRows", "kind": "extension", "id": "extension|DiffRows|0|0|int|UiText id;Span\u003CDiffRow\u003E rows;int first = default||h5c94a97ef7958912de5bdb07673a9402664eef62f0238701e95229d154b6ac95", "signature": "int DiffRows(UiText id, Span\u003CDiffRow\u003E rows, int first = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "rows", "type": "Span\u003CDiffRow\u003E" }, { "name": "first", "type": "int", "default": "default" }], "summary": "Copies up to rows.Length of the diff view\u0027s rows into rows, starting at row first." }, { "name": "DroppedFileCount", "kind": "property", "id": "property|DroppedFileCount|0|0|int||get;|h5421210a1933793fbee263cb811628208321526d954709ce2c6f023389dc8e5d", "signature": "int DroppedFileCount { get; }", "summary": "Number of files the window is tracking as dropped; a dropzone reports them first." }, { "name": "Dropzone", "kind": "extension", "id": "extension|Dropzone|0|0|int|UiText id;DropzoneOpts o = default||h1a4c314252379bc356942c2d624bf8dc2388e096a816cda96c08748d80f874cf", "signature": "int Dropzone(UiText id, DropzoneOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "DropzoneOpts", "default": "default" }], "summary": "Dropzone: drop files from the OS, or click to browse. Returns the number of files dropped on it this frame (read them with cui_dropped_file), -1 when clicked (open a file dialog), 0 otherwise. accept filters by extension, e.g. \u0022png;jpg;pdf\u0022." }, { "name": "Funnel", "kind": "extension", "id": "extension|Funnel|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E stages;FunnelOpts o = default||he5202d3e37c12c123db9bc8dddaf33f25d6ee0d1790d21a12846d2233ba2f5e4", "signature": "int Funnel(UiText id, ReadOnlySpan\u003CVizItem\u003E stages, FunnelOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "stages", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "FunnelOpts", "default": "default" }], "summary": "Funnel: stages narrowing by value, with the conversion between them." }, { "name": "Gantt", "kind": "extension", "id": "extension|Gantt|0|0|int|UiText id;Span\u003CGanttTask\u003E tasks;Date origin;int days;GanttOpts o = default||h6405eb5f36078bd6c78b652a408e39c0fdb1c3a89355a3c7e0368f5d2306981a", "signature": "int Gantt(UiText id, Span\u003CGanttTask\u003E tasks, Date origin, int days, GanttOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tasks", "type": "Span\u003CGanttTask\u003E" }, { "name": "origin", "type": "Date" }, { "name": "days", "type": "int" }, { "name": "o", "type": "GanttOpts", "default": "default" }], "summary": "Gantt chart: a task list beside a timeline of bars. Drag a bar to move it, its ends to resize it. Dependencies are drawn as elbow arrows. Returns the index of a clicked task, or -1." }, { "name": "Heatmap", "kind": "extension", "id": "extension|Heatmap|0|0|int|UiText id;ReadOnlySpan\u003Cfloat\u003E values;int rows;int cols;HeatmapOpts o = default||hb23a8befed5cb93e645e80d3a23d15bd4f06bdbf22a6f65815edb1bef4129225", "signature": "int Heatmap(UiText id, ReadOnlySpan\u003Cfloat\u003E values, int rows, int cols, HeatmapOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "rows", "type": "int" }, { "name": "cols", "type": "int" }, { "name": "o", "type": "HeatmapOpts", "default": "default" }], "summary": "Heatmap: a rows x cols matrix (values[row * cols \u002B col]) on one hue, light to dark, with a scale below." }, { "name": "InlineEdit", "kind": "extension", "id": "extension|InlineEdit|0|0|int|UiText id;ref string buf;int cap = 256;InlineEditOpts o = default||hdc2fcc11f00fc875b370e784540495eec9451da64bf16b076e0bf19bfc7c475a", "signature": "int InlineEdit(UiText id, ref string buf, int cap = 256, InlineEditOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int", "default": "256" }, { "name": "o", "type": "InlineEditOpts", "default": "default" }], "summary": "Inline edit: text that turns into a field in place. Click (or Enter when focused) to edit, Enter or clicking away saves, Esc cancels. Returns CUI_CHANGED when an edit is committed." }, { "name": "PasswordStrength", "kind": "extension", "id": "extension|PasswordStrength|0|0|int|UiText password||h485b27b320ae208ea07b64ec8e1f317ab018ad6465c8ddb02cd01a4424689adb", "signature": "int PasswordStrength(UiText password)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "password", "type": "UiText" }], "summary": "Password strength meter (0 weak .. 4 strong). Returns the score." }, { "name": "PromptSuggestions", "kind": "extension", "id": "extension|PromptSuggestions|0|0|int|UiText id;ReadOnlySpan\u003CPromptSuggestion\u003E items;PromptSuggestionsOpts o = default||ha7ba62105e302f4fa64dd30bf005d6217ab47f44b8de4dcb382d55bb8686de65", "signature": "int PromptSuggestions(UiText id, ReadOnlySpan\u003CPromptSuggestion\u003E items, PromptSuggestionsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CPromptSuggestion\u003E" }, { "name": "o", "type": "PromptSuggestionsOpts", "default": "default" }], "summary": "Prompt suggestions: cards to start a conversation with." }, { "name": "RadarChart", "kind": "extension", "id": "extension|RadarChart|0|0|int|UiText id;ReadOnlySpan\u003CSeries\u003E series;ReadOnlySpan\u003Cstring\u003E axes;RadarOpts o = default||hc3ad2df41c9c6b26dc90f3b916ae531651d598ceef8ab541dd035331b9ea768a", "signature": "int RadarChart(UiText id, ReadOnlySpan\u003CSeries\u003E series, ReadOnlySpan\u003Cstring\u003E axes, RadarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "ReadOnlySpan\u003CSeries\u003E" }, { "name": "axes", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "o", "type": "RadarOpts", "default": "default" }], "summary": "Radar chart: series over shared axes (series[i].values[axis])." }, { "name": "Reactions", "kind": "extension", "id": "extension|Reactions|0|0|int|UiText id;Span\u003CReaction\u003E items||h7528193af8d452456269a4867874808d1a14d9b9b10f82f0f851537b4f5fcc31", "signature": "int Reactions(UiText id, Span\u003CReaction\u003E items)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "Span\u003CReaction\u003E" }], "summary": "Reactions: icon pills with counts. Clicking toggles \u0060active\u0060 and adjusts the count. Returns the index that changed, or -1." }, { "name": "Sankey", "kind": "extension", "id": "extension|Sankey|0|0|int|UiText id;ReadOnlySpan\u003Cstring\u003E nodes;ReadOnlySpan\u003CSankeyLink\u003E links;SankeyOpts o = default||h54e60f881596c8425c36f81063bcf3bca0ae525a5cb9acb9d9291c93343d590b", "signature": "int Sankey(UiText id, ReadOnlySpan\u003Cstring\u003E nodes, ReadOnlySpan\u003CSankeyLink\u003E links, SankeyOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "nodes", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "links", "type": "ReadOnlySpan\u003CSankeyLink\u003E" }, { "name": "o", "type": "SankeyOpts", "default": "default" }], "summary": "Sankey: flows between nodes; columns follow the links from the sources." }, { "name": "ScatterChart", "kind": "extension", "id": "extension|ScatterChart|0|0|int|UiText id;ReadOnlySpan\u003CScatterSeries\u003E series;ScatterOpts o = default||hff3593e05140bd9fcdc8f3c4f996ca064ecb18c59024984a51431c04b86145eb", "signature": "int ScatterChart(UiText id, ReadOnlySpan\u003CScatterSeries\u003E series, ScatterOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "ReadOnlySpan\u003CScatterSeries\u003E" }, { "name": "o", "type": "ScatterOpts", "default": "default" }], "summary": "Scatter (or bubble) chart: points per series, optional sizes." }, { "name": "SourceList", "kind": "extension", "id": "extension|SourceList|0|0|int|UiText id;ReadOnlySpan\u003CSource\u003E sources||h6f59cfee8fa72dc7eca177af354e0a6f666d1ec1975ff987f31f00841dd57a41", "signature": "int SourceList(UiText id, ReadOnlySpan\u003CSource\u003E sources)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "sources", "type": "ReadOnlySpan\u003CSource\u003E" }], "summary": "cui_source_list" }, { "name": "SpeedDial", "kind": "extension", "id": "extension|SpeedDial|0|0|int|UiText id;ReadOnlySpan\u003CSpeedAction\u003E actions;SpeedDialOpts o = default||h8f3dcc4f3e218426dd87000bfe603cd7a2a64cc3cdaa021cbc2dea064de87347", "signature": "int SpeedDial(UiText id, ReadOnlySpan\u003CSpeedAction\u003E actions, SpeedDialOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "actions", "type": "ReadOnlySpan\u003CSpeedAction\u003E" }, { "name": "o", "type": "SpeedDialOpts", "default": "default" }], "summary": "Speed dial: a round floating action button that fans out related actions. Returns the chosen action index, or -1." }, { "name": "SplitBar", "kind": "extension", "id": "extension|SplitBar|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E items;SplitBarOpts o = default||h16bc37b28b54a3959b1ffffa5d212e2ce5767fa384b82e9693cfc0cf3ecba083", "signature": "int SplitBar(UiText id, ReadOnlySpan\u003CVizItem\u003E items, SplitBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "SplitBarOpts", "default": "default" }], "summary": "Split bar: one bar split into parts, with a legend of values and shares." }, { "name": "SplitButton", "kind": "extension", "id": "extension|SplitButton|0|0|int|UiText label;ReadOnlySpan\u003Cstring\u003E items;SplitButtonOpts o = default||hab5170280449718e8bb4e18299a9939e8c4585d7f457498a1884dce52f1a5b83", "signature": "int SplitButton(UiText label, ReadOnlySpan\u003Cstring\u003E items, SplitButtonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "o", "type": "SplitButtonOpts", "default": "default" }], "summary": "Split button: a main action with a menu of related actions on the chevron. Returns 0 when the main part is clicked, 1 \u002B i when menu item i is chosen and -1 otherwise." }, { "name": "SwipeItem", "kind": "extension", "id": "extension|SwipeItem|0|0|int|UiText id;ReadOnlySpan\u003CSwipeAction\u003E left;ReadOnlySpan\u003CSwipeAction\u003E right;DrawFn body||hde404a799a1b468b7df4ac9ce65a247c02d83d6788917c5eb60378cb5ebf709d", "signature": "int SwipeItem(UiText id, ReadOnlySpan\u003CSwipeAction\u003E left, ReadOnlySpan\u003CSwipeAction\u003E right, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "left", "type": "ReadOnlySpan\u003CSwipeAction\u003E" }, { "name": "right", "type": "ReadOnlySpan\u003CSwipeAction\u003E" }, { "name": "body", "type": "DrawFn" }], "summary": "Swipe actions: drag a row sideways (or swipe on a trackpad) to reveal actions behind it. A long swipe triggers the first action. The row content goes between begin and end; end returns the chosen action: 0..left_count-1 for left actions, 100 \u002B i for right actions, or -1. The end call reports which swipe action was taken, or -1, so the body overload returns it." }, { "name": "Toast", "kind": "extension", "id": "extension|Toast|0|0|int|UiText title;ToastOpts o = default||hf3201662ddfe1d84b58e5851658ccd1e36ba6d53acdb101b80df283a2f0ee264", "signature": "int Toast(UiText title, ToastOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "ToastOpts", "default": "default" }], "summary": "Queue a toast. Returns a handle; cui_toast_action_clicked(handle) tells whether its action button was pressed." }, { "name": "Toc", "kind": "extension", "id": "extension|Toc|0|0|int|UiText scrollId;ReadOnlySpan\u003CTocItem\u003E items||h226d5cf4f0b7b58f3c7df69b1762d483d977d46968c43d4468a7db886e3771f0", "signature": "int Toc(UiText scrollId, ReadOnlySpan\u003CTocItem\u003E items)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "scrollId", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CTocItem\u003E" }], "summary": "Table of contents for a scroll area: highlights the section in view on a progress rail, and scrolls to a section when clicked. Put cui_toc_anchor(ui, \u0022anchor\u0022) at each heading inside the scroll area, and call cui_toc in the same scope as the scroll area. Returns the active index." }, { "name": "TreeTableDepth", "kind": "extension", "id": "extension|TreeTableDepth|0|0|int|||h6f4316e2e33c3ebb9b14932b5fc588d50a9b4b5b52a70f672523341f85c34b6b", "signature": "int TreeTableDepth()", "extensionOn": "CuiSharp.Ui", "summary": "depth of the current row, 0 at the top" }, { "name": "TreeTableRow", "kind": "extension", "id": "extension|TreeTableRow|0|0|int|||h6f0d82997cbd7dfd529bd1d04c7fd279173e864794b9acde1a6f8cf0deb80e45", "signature": "int TreeTableRow()", "extensionOn": "CuiSharp.Ui", "summary": "The next row in view: returns its node, or -1 when done. Then build its cells: cui_tree_table_name first, then cui_data_grid_cell(_text)." }, { "name": "Treemap", "kind": "extension", "id": "extension|Treemap|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E items;TreemapOpts o = default||hea14dd60cbeb36d78c486e9549f6917d7d431d80c23f54fe86c191e4e647a6e4", "signature": "int Treemap(UiText id, ReadOnlySpan\u003CVizItem\u003E items, TreemapOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "TreemapOpts", "default": "default" }], "summary": "cui_treemap_ex" }, { "name": "Waffle", "kind": "extension", "id": "extension|Waffle|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E items;WaffleOpts o = default||hbb9c8a5b82ec5547e3c36f001de128742bbee117c0a3da39be26ed99600e3617", "signature": "int Waffle(UiText id, ReadOnlySpan\u003CVizItem\u003E items, WaffleOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "WaffleOpts", "default": "default" }], "summary": "Waffle: a 10 x 10 grid of squares split by share, with a legend." }, { "name": "WeekCalendar", "kind": "extension", "id": "extension|WeekCalendar|0|0|int|UiText id;Date weekStart;Span\u003CCalendarEvent\u003E events;WeekOpts o = default||h6ebe88be9f390e98d2c4c1e3f796e62f09b23309fe4f21093ce3e1e506653fc9", "signature": "int WeekCalendar(UiText id, Date weekStart, Span\u003CCalendarEvent\u003E events, WeekOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "weekStart", "type": "Date" }, { "name": "events", "type": "Span\u003CCalendarEvent\u003E" }, { "name": "o", "type": "WeekOpts", "default": "default" }], "summary": "Week calendar: seven day columns on an hour grid. Drag an event to move it (15 minute steps), drag its bottom edge to resize it. Returns the index of a clicked event, or -1." }, { "name": "Segmented", "kind": "extension", "id": "extension|Segmented|0|0|int?|UiText id;ReadOnlySpan\u003Cstring\u003E items;int value;SegmentedOpts o = default||hfb54a79c3ab77ad5f8295229f391ceafab348451a898c9a700f5adccce24a7a9", "signature": "int? Segmented(UiText id, ReadOnlySpan\u003Cstring\u003E items, int value, SegmentedOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "value", "type": "int" }, { "name": "o", "type": "SegmentedOpts", "default": "default" }], "summary": "Returns the chosen index on a change, otherwise null." }, { "name": "AccentName", "kind": "method", "id": "method|AccentName|1|0|string|Accent accent||h0e37f10433228fc19b1442b10a947b92a35e4c1252d1688e2237e77f9c961f50", "signature": "static string AccentName(Accent accent)", "parameters": [{ "name": "accent", "type": "Accent" }], "summary": "The name of an accent as the UI shows it: \u0022Violet\u0022." }, { "name": "KeyName", "kind": "method", "id": "method|KeyName|1|0|string|Key key||ha31820aa00db9a4c2b6c84c51b79eb08b079cecb712605806d2763204d3f8fc8", "signature": "static string KeyName(Key key)", "parameters": [{ "name": "key", "type": "Key" }], "summary": "The name of a key as the UI shows it: A, Space, F5." }, { "name": "CronDescribe", "kind": "extension", "id": "extension|CronDescribe|0|0|string?|UiText cron||hd4c9ada55bcf91c1c683541837ecf35a841f847a3eee89aabbb26c529db1cd47", "signature": "string? CronDescribe(UiText cron)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "cron", "type": "UiText" }], "summary": "\u0022Every weekday at 09:30\u0022, in frame memory; NULL when invalid." }, { "name": "DroppedFile", "kind": "method", "id": "method|DroppedFile|0|0|string?|int index||hadc15393659f2bdf4574fe25868fce27bf8d063345e13c4c1b9285ed95d06a8e", "signature": "string? DroppedFile(int index)", "parameters": [{ "name": "index", "type": "int" }], "summary": "The path of a dropped file, or null when the index is out of range." }, { "name": "EmojiPicker", "kind": "extension", "id": "extension|EmojiPicker|0|0|string?|UiText id;ref string recent;ref int tone;EmojiPickerOpts o = default||h15890f303b9bfcb523f735ab2f9e6844938b14c17122927fe58f4714c2d1577c", "signature": "string? EmojiPicker(UiText id, ref string recent, ref int tone, EmojiPickerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "recent", "type": "ref string" }, { "name": "tone", "type": "ref int" }, { "name": "o", "type": "EmojiPickerOpts", "default": "default" }], "summary": "Emoji picker: search, groups with tabs, recent emoji, skin tones and a preview with the name. Returns the emoji picked this frame (UTF-8, valid until the next frame) or NULL. Put it in a popover to open it from a button." }, { "name": "ShortcutLabel", "kind": "extension", "id": "extension|ShortcutLabel|0|0|string?|KeyCombo combo||hbc2b6ede54efc1cdfc932533bfaa02df6e2091b08013ed268adaeb5f70fe77fd", "signature": "string? ShortcutLabel(KeyCombo combo)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "combo", "type": "KeyCombo" }], "summary": "cui_shortcut_label" }, { "name": "LastId", "kind": "property", "id": "property|LastId|0|0|uint||get;|hb45a60a2627c7935e56a964ff3d4b23b89b21d8a180962ea221f54c95e1e68d2", "signature": "uint LastId { get; }", "summary": "The id of the widget drawn last, which is what Target and the other \u0022point at this\u0022 APIs take. Read it immediately after the control." }, { "name": "MakeId", "kind": "method", "id": "method|MakeId|0|0|uint|UiText id||hf729d2c0f406a6b883b2cbb0e869941e897aaaef891e76b22daa8e479857208d", "signature": "uint MakeId(UiText id)", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "A stable cui_id for a string, for Animate and State callers." }, { "name": "CreateImage", "kind": "method", "id": "method|CreateImage|0|0|ulong|int width;int height;ReadOnlySpan\u003Cbyte\u003E rgba||h5ee4689276531d64da132f6a1cc9e229a83100259c335ca4ab5a007c20a68ce7", "signature": "ulong CreateImage(int width, int height, ReadOnlySpan\u003Cbyte\u003E rgba)", "parameters": [{ "name": "width", "type": "int" }, { "name": "height", "type": "int" }, { "name": "rgba", "type": "ReadOnlySpan\u003Cbyte\u003E" }], "summary": "Uploads RGBA8 pixels as a texture. The pixels are copied, so the span may live on the stack. Release the handle with DestroyImage when the page that shows it is done with it \u2014 State\u0060\u00601 with an onFree callback is the usual owner." }, { "name": "DockSave", "kind": "extension", "id": "extension|DockSave|0|0|ulong|UiText id;ref string buf;int cap||h10c71156edbbe3c5e529016814c796584f469d6d0b0b7466e4bde6ba2b0893b4", "signature": "ulong DockSave(UiText id, ref string buf, int cap)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }], "summary": "Saved layout: one line, e.g. dock1 h0.22([*Scene tree,Assets],v0.7([*Viewport],[*Log,-Console])) h splits side by side and v stacks, the number is the first child\u0027s share, [..] is a leaf\u0027s tabs in order, * the selected tab, - a closed panel; a backslash escapes , [ ] ( ) and itself in names. cui_dock_save returns the full length (as snprintf does) and writes what fits, or 0 when there is no layout. cui_dock_load replaces the layout (and sets each panel\u0027s *open from it on its next frame); names it does not know yet are kept for when they appear. Malformed text returns false and changes nothing." }, { "name": "FrameCount", "kind": "property", "id": "property|FrameCount|0|0|ulong||get;|h7254dceb0c426d20c644d45bf8a5ca3e9a444a54dee4128f0adcf9db4b00c8fc", "signature": "ulong FrameCount { get; }", "summary": "Frames presented so far, counted by CUI." }, { "name": "Accordion", "kind": "extension", "id": "extension|Accordion|0|0|void|UiText title;ref bool open;DrawFn body||h5a6e18ec6c43cdc43af8a25085ec728fca441d6f03d65c135ac01415603bdc5b", "signature": "void Accordion(UiText title, ref bool open, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "AddFontFallback", "kind": "extension", "id": "extension|AddFontFallback|0|0|void|Font font;Font fallback||h046e79521dc69de86a794461399d269a9ea51fd36fd162afddde019ca45934e1", "signature": "void AddFontFallback(Font font, Font fallback)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "font", "type": "Font" }, { "name": "fallback", "type": "Font" }], "summary": "Adds a fallback CUI reaches for when font has no glyph. The chain holds at most four fallbacks; when it is exhausted CUI scans every other loaded face before giving up. A glyph no face has draws nothing at all \u2014 not even a .notdef box in every font \u2014 so an untranslated screen comes up blank with no warning. UseSystemFontFallback is the check for that, and the bundled faces are Latin. The glyph atlas is what a large script actually costs: one texture of CUI_ATLAS_MAX (4096) pixels per side, with the frame\u0027s glyph cache reset between frames, so a font that makes every frame load new glyphs is the expensive case. Register the faces a language needs at startup, not per frame." }, { "name": "AgentStatus", "kind": "extension", "id": "extension|AgentStatus|0|0|void|UiText text;AgentStatusOpts o = default||h61ac25149bb714e9244c62474d67f93158a7f9bd1583135da08e6b32a5ac5120", "signature": "void AgentStatus(UiText text, AgentStatusOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "AgentStatusOpts", "default": "default" }], "summary": "Agent status pill: what the agent is doing right now and for how long." }, { "name": "Avatar", "kind": "extension", "id": "extension|Avatar|0|0|void|UiText name;AvatarOpts o = default||h86ad06b6f35491ed7cd4f337c2a2688db37d73bfec4c164c7b90267365ce8af2", "signature": "void Avatar(UiText name, AvatarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "name", "type": "UiText" }, { "name": "o", "type": "AvatarOpts", "default": "default" }], "summary": "cui_avatar_ex" }, { "name": "AvatarGroup", "kind": "extension", "id": "extension|AvatarGroup|0|0|void|ReadOnlySpan\u003Cstring\u003E names;int maxVisible = 4;float size = 32f||h2aebe32a1e3101b42a18771fc77f1b10cb011e17bea49c9f7cbf01e0be5ca252", "signature": "void AvatarGroup(ReadOnlySpan\u003Cstring\u003E names, int maxVisible = 4, float size = 32f)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "names", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "maxVisible", "type": "int", "default": "4" }, { "name": "size", "type": "float", "default": "32f" }], "summary": "cui_avatar_group" }, { "name": "Badge", "kind": "extension", "id": "extension|Badge|0|0|void|UiText text;BadgeOpts o = default||h2e146cbd498ce9ebfdcbb978fe8414bd9ff4389e1361c02fa453b24fcfc15d1c", "signature": "void Badge(UiText text, BadgeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "BadgeOpts", "default": "default" }], "summary": "cui_badge_ex" }, { "name": "BarChart", "kind": "method", "id": "method|BarChart|0|0|void|UiText id;ReadOnlySpan\u003Cfloat\u003E values;ChartOpts o = default;Color color = default||hdd24ad8679c5e482e048ed73ce69225b69c19ad5704a83f9a427093e4551242a", "signature": "void BarChart(UiText id, ReadOnlySpan\u003Cfloat\u003E values, ChartOpts o = default, Color color = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "o", "type": "ChartOpts", "default": "default" }, { "name": "color", "type": "Color", "default": "default" }], "summary": "A bar chart of one series. See LineChart." }, { "name": "BarChart", "kind": "method", "id": "method|BarChart|0|0|void|UiText id;Series[] series;ChartOpts o = default||h8d42b4d0a483459731da6ec00c3001f0d1f69bd28a07b4618095e800910f67c7", "signature": "void BarChart(UiText id, Series[] series, ChartOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "Series[]" }, { "name": "o", "type": "ChartOpts", "default": "default" }] }, { "name": "Carousel", "kind": "extension", "id": "extension|Carousel|0|0|void|UiText id;int count;ref int index;DrawFn body;CarouselOpts o = default||haf6583b1edd10132a276ed92f3c7cc7b139b36644ab8586eadce1ce1ae7cf431", "signature": "void Carousel(UiText id, int count, ref int index, DrawFn body, CarouselOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "count", "type": "int" }, { "name": "index", "type": "ref int" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "CarouselOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "ChatDivider", "kind": "extension", "id": "extension|ChatDivider|0|0|void|UiText label||hdb17d96dbafb815bdf9d77a06116d1a2d004dbf0c4190716f604d7f7503032a5", "signature": "void ChatDivider(UiText label)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }], "summary": "\u0022Today\u0022" }, { "name": "ChatMessage", "kind": "extension", "id": "extension|ChatMessage|0|0|void|UiText text;ChatOpts o = default||h0067e7f3c9a991c64026e5433bcd84d614a634bb99011d70cf7548c49b4d0e46", "signature": "void ChatMessage(UiText text, ChatOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "ChatOpts", "default": "default" }], "summary": "Same as the overload with ref markdownResult, but reports nothing back: the state pointer is null, so the widget stores no state the caller could read." }, { "name": "ChatMessage", "kind": "extension", "id": "extension|ChatMessage|0|0|void|UiText text;ref MarkdownResult markdownResult;ChatOpts o = default||he419f66e4261e2e5f8341890ace8476938bbabe2ce7747bb1cf378821e824da4", "signature": "void ChatMessage(UiText text, ref MarkdownResult markdownResult, ChatOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "markdownResult", "type": "ref MarkdownResult" }, { "name": "o", "type": "ChatOpts", "default": "default" }], "summary": "Chat message bubble. Consecutive messages from one person set grouped so they stack tightly and show the avatar once." }, { "name": "Code", "kind": "extension", "id": "extension|Code|0|0|void|UiText text||heb5c95cf0725be5b6a3d5d064b904bf47fbe9b2889e74bd910d61b666764b439", "signature": "void Code(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "inline code" }, { "name": "CodeBlock", "kind": "extension", "id": "extension|CodeBlock|0|0|void|UiText id;UiText code;CodeOpts o = default||h649344835854747b9cbde6157eb263d70a9df1f246e3854f21806fef682fedac", "signature": "void CodeBlock(UiText id, UiText code, CodeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "code", "type": "UiText" }, { "name": "o", "type": "CodeOpts", "default": "default" }], "summary": "Code block with syntax highlighting (lang: \u0022c\u0022, \u0022cpp\u0022, \u0022js\u0022, \u0022ts\u0022, \u0022python\u0022, \u0022rust\u0022, \u0022go\u0022, \u0022json\u0022, \u0022shell\u0022, or \u0022text\u0022 for none), line numbers, a title bar and a copy button. Long lines scroll sideways." }, { "name": "CodeEditorFind", "kind": "extension", "id": "extension|CodeEditorFind|0|0|void|UiText id;UiText query||ha5ad5e0daacc15247f7497756195d2f521b1676f4f4275c1360e7dd6a099a27e", "signature": "void CodeEditorFind(UiText id, UiText query)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "query", "type": "UiText" }], "summary": "Opens the find bar with query and selects the next match (NULL closes)." }, { "name": "CodeEditorGoto", "kind": "extension", "id": "extension|CodeEditorGoto|0|0|void|UiText id;int line;int column||he046da323e1fb441003f0aff4a8b1fb21892920cc0d306e08811c4d4b477dfae", "signature": "void CodeEditorGoto(UiText id, int line, int column)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "line", "type": "int" }, { "name": "column", "type": "int" }], "summary": "On the editor\u0027s next frame: put the caret at a line and column (1 based), focus the editor and scroll there. Call from the same id scope." }, { "name": "CodeEditorSelect", "kind": "extension", "id": "extension|CodeEditorSelect|0|0|void|UiText id;int anchor;int cursor||hbae83fe5ce54e61f495c10224f17c5f97155815624a80c230f94b710bbd25bbc", "signature": "void CodeEditorSelect(UiText id, int anchor, int cursor)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "anchor", "type": "int" }, { "name": "cursor", "type": "int" }], "summary": "On the next frame: select bytes anchor..cursor, focus and scroll there." }, { "name": "Component", "kind": "extension", "id": "extension|Component|0|0|void|Component component||h848740a50a9eb8dc56641315816144114376ac9c315542b20691de3cbc9300d4", "signature": "void Component(Component component)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "component", "type": "Component" }], "summary": "Draws component, with its own error boundary." }, { "name": "ContextMenu", "kind": "extension", "id": "extension|ContextMenu|0|0|void|UiText id;DrawFn body||h639ca26a4859a28b5d0c68a17b414a22b59f92e32460ae828991807709b85741", "signature": "void ContextMenu(UiText id, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "ContextMeter", "kind": "extension", "id": "extension|ContextMeter|0|0|void|UiText id;float used;float limit;ContextOpts o = default||h19d9530359d94af2f36c2f8a876d49576ae0e0c4c67e5270f45fdf36934d1c78", "signature": "void ContextMeter(UiText id, float used, float limit, ContextOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "used", "type": "float" }, { "name": "limit", "type": "float" }, { "name": "o", "type": "ContextOpts", "default": "default" }], "summary": "Context meter: a small ring of how full the context is; hover for a breakdown. It turns amber past 80% and red past 95%." }, { "name": "Countdown", "kind": "extension", "id": "extension|Countdown|0|0|void|UiText id;double secondsLeft;CountdownOpts o = default||h821d564a1492fd931adfbbc43d4c182d207343abf289fdf0702df537f77d848a", "signature": "void Countdown(UiText id, double secondsLeft, CountdownOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "secondsLeft", "type": "double" }, { "name": "o", "type": "CountdownOpts", "default": "default" }], "summary": "Countdown: days, hours, minutes and seconds as tiles whose digits roll." }, { "name": "Counter", "kind": "extension", "id": "extension|Counter|0|0|void|UiText id;double value;CounterOpts o = default||h0b05971fdda28297316e6f4447ca5d501aa7a11fe9da2f3bdc3756e5b7c5ffd3", "signature": "void Counter(UiText id, double value, CounterOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "double" }, { "name": "o", "type": "CounterOpts", "default": "default" }], "summary": "Odometer: a number whose digits roll to their new values." }, { "name": "DataGrid", "kind": "extension", "id": "extension|DataGrid|0|0|void|UiText id;ReadOnlySpan\u003CGridColumn\u003E columns;int rowCount;GridState state;DrawFn body;GridOpts o = default||h9c456dfa1016ff4f42bd0014595270a05519919f42743036e5fc9f8cb8147c63", "signature": "void DataGrid(UiText id, ReadOnlySpan\u003CGridColumn\u003E columns, int rowCount, GridState state, DrawFn body, GridOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CGridColumn\u003E" }, { "name": "rowCount", "type": "int" }, { "name": "state", "type": "GridState" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "GridOpts", "default": "default" }], "summary": "Draws the body only when open; closes and publishes state even on exceptions." }, { "name": "DataGridCell", "kind": "extension", "id": "extension|DataGridCell|0|0|void|||h17266c47617cb3e20e5aafb4e0740fb451853300d3ea2f4cf357c27f4e0c97e5", "signature": "void DataGridCell()", "extensionOn": "CuiSharp.Ui", "summary": "next cell; put components inside" }, { "name": "DataGridCellText", "kind": "extension", "id": "extension|DataGridCellText|0|0|void|UiText text||hbc15a57820d975503239bf1e6c43046de51dd25c53400b94dc05e4c5ec821c22", "signature": "void DataGridCellText(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "cui_data_grid_cell_text" }, { "name": "DestroyImage", "kind": "method", "id": "method|DestroyImage|0|0|void|ulong texture||h233513e5e0f04cab6a29321054080d17776d33b361cec53060f335038ac6c4f4", "signature": "void DestroyImage(ulong texture)", "parameters": [{ "name": "texture", "type": "ulong" }], "summary": "Frees a texture obtained from CreateImage, LoadImage or a widget that loaded one for you (the avatar upload). Passing 0 does nothing, so a field can be cleared and released in one step." }, { "name": "Dialog", "kind": "extension", "id": "extension|Dialog|0|0|void|UiText title;ref bool open;DrawFn body;DialogOpts o = default||hb9a2198e7b3396b3f8e81f53972b52816f4e10d0c965758cb0b8e59b20c0dad6", "signature": "void Dialog(UiText title, ref bool open, DrawFn body, DialogOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "DialogOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "DockPanel", "kind": "extension", "id": "extension|DockPanel|0|0|void|UiText title;ref bool open;DrawFn body;DockPanelOpts o = default||haec3aec1f30c0641ff9d8d21ef9827c8984e582f195575f5bdafa8e30c26bf47", "signature": "void DockPanel(UiText title, ref bool open, DrawFn body, DockPanelOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "DockPanelOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "DockSeparator", "kind": "extension", "id": "extension|DockSeparator|0|0|void|||h4f7b4ffb27ff0752d3414c6e36155f014d64756d9c99299d0061f4d3b662e948", "signature": "void DockSeparator()", "extensionOn": "CuiSharp.Ui", "summary": "cui_dock_separator" }, { "name": "DonutChart", "kind": "method", "id": "method|DonutChart|0|0|void|UiText id;float[] values;string[]? labels = null;ChartOpts o = default||h105b6ba9a48212810ca8eaa543dfd59b8bcbb7a078d6d00c43caa8337cf3e984", "signature": "void DonutChart(UiText id, float[] values, string[]? labels = null, ChartOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "values", "type": "float[]" }, { "name": "labels", "type": "string[]?", "default": "null" }, { "name": "o", "type": "ChartOpts", "default": "default" }] }, { "name": "DotDisplay", "kind": "extension", "id": "extension|DotDisplay|0|0|void|UiText text;DotDisplayOpts o = default||h69cc0b3822b72c2d91c328a3999ec76dc3ab49fb7d2667722d67fca441b5fa7a", "signature": "void DotDisplay(UiText text, DotDisplayOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "DotDisplayOpts", "default": "default" }], "summary": "Dot-matrix display: text drawn with a 5 by 7 dot font, for clocks, counters and status lines. Printable ASCII, the degree sign and the middle dot have glyphs; anything else is a box. Unlit dots show dimly unless \u0060no_dim\u0060 is set. In a box narrower than the text, the dots shrink to fit, or with \u0060marquee\u0060 the text scrolls." }, { "name": "DrawArc", "kind": "method", "id": "method|DrawArc|0|0|void|float cx;float cy;float radius;float fromRadians;float toRadians;float thickness;Color color||h75c08329ccf02db7c649c3de4062b857fcb9fb9b5607cc0cdc3ffa02cdd3a32a", "signature": "void DrawArc(float cx, float cy, float radius, float fromRadians, float toRadians, float thickness, Color color)", "parameters": [{ "name": "cx", "type": "float" }, { "name": "cy", "type": "float" }, { "name": "radius", "type": "float" }, { "name": "fromRadians", "type": "float" }, { "name": "toRadians", "type": "float" }, { "name": "thickness", "type": "float" }, { "name": "color", "type": "Color" }], "summary": "An arc from fromRadians to toRadians." }, { "name": "DrawCircle", "kind": "method", "id": "method|DrawCircle|0|0|void|float cx;float cy;float radius;Color color||hb1d4daba0313192a47661dfdcba2bbea774eacd066b6e992e4b4698dddcde09a", "signature": "void DrawCircle(float cx, float cy, float radius, Color color)", "parameters": [{ "name": "cx", "type": "float" }, { "name": "cy", "type": "float" }, { "name": "radius", "type": "float" }, { "name": "color", "type": "Color" }], "summary": "A filled circle." }, { "name": "DrawEmoji", "kind": "extension", "id": "extension|DrawEmoji|0|0|void|UiText utf8;RectF r||ha6979720ffa9f6b639eedcdc2f34912ae99c3e8f6db6d29d49b7a755626e5e61", "signature": "void DrawEmoji(UiText utf8, RectF r)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "utf8", "type": "UiText" }, { "name": "r", "type": "RectF" }], "summary": "cui_draw_emoji" }, { "name": "DrawIcon", "kind": "method", "id": "method|DrawIcon|0|0|void|UiText icon;RectF r;Color color;float size = 16f||hd54b671c520dcce41f616162ba2038b0604408edb2178e4e538b9fd737631621", "signature": "void DrawIcon(UiText icon, RectF r, Color color, float size = 16f)", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "r", "type": "RectF" }, { "name": "color", "type": "Color" }, { "name": "size", "type": "float", "default": "16f" }], "summary": "Draws an icon glyph into a rectangle." }, { "name": "DrawImage", "kind": "method", "id": "method|DrawImage|0|0|void|ulong texture;RectF destination;Color tint;float radius = default||h02908132cac945b65c579f6460fda70375b546d9df86cb8e4446b3d6369a8ad2", "signature": "void DrawImage(ulong texture, RectF destination, Color tint, float radius = default)", "parameters": [{ "name": "texture", "type": "ulong" }, { "name": "destination", "type": "RectF" }, { "name": "tint", "type": "Color" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Draws the whole texture into destination." }, { "name": "DrawImage", "kind": "method", "id": "method|DrawImage|0|0|void|ulong texture;RectF destination;RectF uv;Color tint;float radius = default||h19922f36165664b04b3f13745794f29cd576c87d690e38abfacd839c9eebe6ea", "signature": "void DrawImage(ulong texture, RectF destination, RectF uv, Color tint, float radius = default)", "parameters": [{ "name": "texture", "type": "ulong" }, { "name": "destination", "type": "RectF" }, { "name": "uv", "type": "RectF" }, { "name": "tint", "type": "Color" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Draws a texture into destination, sampling uv in 0..1 texture coordinates." }, { "name": "DrawLine", "kind": "method", "id": "method|DrawLine|0|0|void|float x0;float y0;float x1;float y1;float thickness;Color color||h7c718f3cf261fcdd9890ecc99c37b4c7ef88951855160bbd3b4b84bbb0906183", "signature": "void DrawLine(float x0, float y0, float x1, float y1, float thickness, Color color)", "parameters": [{ "name": "x0", "type": "float" }, { "name": "y0", "type": "float" }, { "name": "x1", "type": "float" }, { "name": "y1", "type": "float" }, { "name": "thickness", "type": "float" }, { "name": "color", "type": "Color" }], "summary": "A line between two points." }, { "name": "DrawPolygon", "kind": "method", "id": "method|DrawPolygon|0|0|void|ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E points;Color color||h0a35ee50b137930776943658c6a4b0a802340e6fc1443224120f511919b82309", "signature": "void DrawPolygon(ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E points, Color color)", "parameters": [{ "name": "points", "type": "ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E" }, { "name": "color", "type": "Color" }], "summary": "A convex polygon through the given x/y pairs." }, { "name": "DrawPolyline", "kind": "method", "id": "method|DrawPolyline|0|0|void|ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E points;float thickness;Color color;bool closed = default||h4c7f07e3c9fc697e544cc98214f394946bae499ac03450d9e5812ced69ce04e9", "signature": "void DrawPolyline(ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E points, float thickness, Color color, bool closed = default)", "parameters": [{ "name": "points", "type": "ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E" }, { "name": "thickness", "type": "float" }, { "name": "color", "type": "Color" }, { "name": "closed", "type": "bool", "default": "default" }], "summary": "A polyline through the given x/y pairs." }, { "name": "DrawRect", "kind": "method", "id": "method|DrawRect|0|0|void|RectF r;Color fill;Color border;float borderWidth;float radius = default||h4ba9a89c0df1a36edef3bc858b12de8bb1c2d9020a801bc38d101b16e9839611", "signature": "void DrawRect(RectF r, Color fill, Color border, float borderWidth, float radius = default)", "parameters": [{ "name": "r", "type": "RectF" }, { "name": "fill", "type": "Color" }, { "name": "border", "type": "Color" }, { "name": "borderWidth", "type": "float" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Fills a rounded rectangle and strokes its border." }, { "name": "DrawRect", "kind": "method", "id": "method|DrawRect|0|0|void|RectF r;Color fill;float radius = default||hbede7dc4a83173600f87c3151cfb881b786025c1a85bfc6cfd41ac9c76b997ec", "signature": "void DrawRect(RectF r, Color fill, float radius = default)", "parameters": [{ "name": "r", "type": "RectF" }, { "name": "fill", "type": "Color" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Fills a rounded rectangle." }, { "name": "DrawRectGradient", "kind": "method", "id": "method|DrawRectGradient|0|0|void|RectF r;Color top;Color bottom;float radius = default||hdfb2b1697ea2ab6d38c629c2592cb4496e061c2c2d2d73080e90e315c179fa59", "signature": "void DrawRectGradient(RectF r, Color top, Color bottom, float radius = default)", "parameters": [{ "name": "r", "type": "RectF" }, { "name": "top", "type": "Color" }, { "name": "bottom", "type": "Color" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Fills a rounded rectangle with a vertical gradient." }, { "name": "DrawShadow", "kind": "method", "id": "method|DrawShadow|0|0|void|RectF r;Color color;float blur = 12f;float spread = default;float dx = default;float dy = 2f;float radius = default||hd608a1aa394a6724e278bdd79827b6dd27fa0b58389aad230a6976a37e6e1bc9", "signature": "void DrawShadow(RectF r, Color color, float blur = 12f, float spread = default, float dx = default, float dy = 2f, float radius = default)", "parameters": [{ "name": "r", "type": "RectF" }, { "name": "color", "type": "Color" }, { "name": "blur", "type": "float", "default": "12f" }, { "name": "spread", "type": "float", "default": "default" }, { "name": "dx", "type": "float", "default": "default" }, { "name": "dy", "type": "float", "default": "2f" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "A soft drop shadow behind a rounded rectangle." }, { "name": "DrawText", "kind": "method", "id": "method|DrawText|0|0|void|UiText text;float x;float y;Color color;float size = 12f;Font font = Font.Body||ha379555b96749e8089ccd4a67f9f06f0c97c8e3bf6628a829212e087cdf44073", "signature": "void DrawText(UiText text, float x, float y, Color color, float size = 12f, Font font = Font.Body)", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "x", "type": "float" }, { "name": "y", "type": "float" }, { "name": "color", "type": "Color" }, { "name": "size", "type": "float", "default": "12f" }, { "name": "font", "type": "Font", "default": "Font.Body" }], "summary": "Draws text outside layout, from a string, UTF-8 bytes, or interpolation." }, { "name": "Emoji", "kind": "extension", "id": "extension|Emoji|0|0|void|UiText utf8;float size||hcce49478392e105a5082cf12fe2c18e8a68954f1395b48ec19c91052abdbfa90", "signature": "void Emoji(UiText utf8, float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "utf8", "type": "UiText" }, { "name": "size", "type": "float" }], "summary": "one emoji as a component" }, { "name": "ExpandableCard", "kind": "extension", "id": "extension|ExpandableCard|0|0|void|UiText title;ref bool open;DrawFn body;ExpandableCardOpts o = default||h45a44cd40dda73a400ba664b3783303201ba3f221c6a0c0021b4519c21652a83", "signature": "void ExpandableCard(UiText title, ref bool open, DrawFn body, ExpandableCardOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "ExpandableCardOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "Gap", "kind": "extension", "id": "extension|Gap|0|0|void|float size||h89c0f099b911f74a22d756328dc6f8c634ce4e2561cfb7403549af06bfe120d2", "signature": "void Gap(float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "size", "type": "float" }], "summary": "fixed space" }, { "name": "Gauge", "kind": "extension", "id": "extension|Gauge|0|0|void|UiText label;float value;float size = 130f||h0d866db02a3773b1f94110de3177536a50289e2eb2f4f1328d5ea96164ce0e3d", "signature": "void Gauge(UiText label, float value, float size = 130f)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "float" }, { "name": "size", "type": "float", "default": "130f" }], "summary": "cui_gauge" }, { "name": "GradientText", "kind": "extension", "id": "extension|GradientText|0|0|void|UiText text;GradientTextOpts o = default||h3f77173db929d5d0326fb0d6aacd31968c768ec86de8e25973b46685c05898a0", "signature": "void GradientText(UiText text, GradientTextOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "GradientTextOpts", "default": "default" }], "summary": "Text painted with a gradient from one color to another; animate makes it drift." }, { "name": "Heading", "kind": "extension", "id": "extension|Heading|0|0|void|UiText text;int level = 2||h557aed71184ccf0f99a503a8e9e31f47bd8f19daa88deaf28acbf6bd2f58da8f", "signature": "void Heading(UiText text, int level = 2)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "level", "type": "int", "default": "2" }], "summary": "1..4" }, { "name": "HexViewGoto", "kind": "extension", "id": "extension|HexViewGoto|0|0|void|UiText id;ulong offset||he99988413132b927d206b59bb10ff266913c4aed14642da49708324af5d3a4ea", "signature": "void HexViewGoto(UiText id, ulong offset)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "offset", "type": "ulong" }], "summary": "Go to offset: on the view\u0027s next frame its cursor moves to offset, that byte becomes the selection and it scrolls into view (to the middle when it was out of sight). Wire a \u0022Go to\u0022 field to it; it is safe to call every frame." }, { "name": "HoverCard", "kind": "extension", "id": "extension|HoverCard|0|0|void|UiText id;DrawFn body;HoverCardOpts o = default||h1feb5df25fc90d51f65ce5d548e1c92a15c20d4dbcfb120ec57197031f6bf861", "signature": "void HoverCard(UiText id, DrawFn body, HoverCardOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "HoverCardOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "Icon", "kind": "method", "id": "method|Icon|0|0|void|UiText icon;float size = 16f;Color color = default||ha3c2c3c378676921960172e72c0cd75e176f823d910f148819cb62c5c07fcdb7", "signature": "void Icon(UiText icon, float size = 16f, Color color = default)", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "size", "type": "float", "default": "16f" }, { "name": "color", "type": "Color", "default": "default" }] }, { "name": "Image", "kind": "extension", "id": "extension|Image|0|0|void|ulong tex;ImageOpts o = default||h4aba4bdd877e6dfb8e45ba090aba9ec93a98e0c6441d125c9038d1be437dc417", "signature": "void Image(ulong tex, ImageOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "tex", "type": "ulong" }, { "name": "o", "type": "ImageOpts", "default": "default" }], "summary": "cui_image_ex" }, { "name": "Inspector", "kind": "extension", "id": "extension|Inspector|0|0|void|UiText id;DrawFn body;InspectorOpts o = default||h841cdf7d1c9125bb04f373e4d2f93c10eccdb9bcbb43da0de7dccc3769b41a32", "signature": "void Inspector(UiText id, DrawFn body, InspectorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "InspectorOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "Kbd", "kind": "extension", "id": "extension|Kbd|0|0|void|UiText keys||h417076fb4869022dd26ff1c344a189d091fce7e448e96c96224d62f1a451f6d1", "signature": "void Kbd(UiText keys)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "keys", "type": "UiText" }], "summary": "keyboard keycap, e.g. \u0022Ctrl K\u0022" }, { "name": "Label", "kind": "extension", "id": "extension|Label|0|0|void|UiText text||h72e24445b52f829a1571cbd68c5c6fac6835700a497232df3ad518950a463221", "signature": "void Label(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "medium weight" }, { "name": "LineChart", "kind": "method", "id": "method|LineChart|0|0|void|UiText id;ReadOnlySpan\u003Cfloat\u003E values;ChartOpts o = default;Color color = default||h3cdc2012853a1aaf00f86229fc128bb443d3b47540340bb22a37e12c48168603", "signature": "void LineChart(UiText id, ReadOnlySpan\u003Cfloat\u003E values, ChartOpts o = default, Color color = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "o", "type": "ChartOpts", "default": "default" }, { "name": "color", "type": "Color", "default": "default" }], "summary": "A line chart of one series. This is the overload most charts want: the samples are passed directly, and an empty span draws nothing at all." }, { "name": "LineChart", "kind": "method", "id": "method|LineChart|0|0|void|UiText id;Series[] series;ChartOpts o = default||hc086d5dcd804a5f509ce75cc8bee9f3f8667a55ceb50af4ffaabadafd4609ad0", "signature": "void LineChart(UiText id, Series[] series, ChartOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "Series[]" }, { "name": "o", "type": "ChartOpts", "default": "default" }] }, { "name": "Loader", "kind": "extension", "id": "extension|Loader|0|0|void|LoaderOpts o = default||h5945e358ac0fbf3d0cb4c3df6db1ab5234d41a31263116b2fb63eee24b3e9451", "signature": "void Loader(LoaderOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "LoaderOpts", "default": "default" }], "summary": "cui_loader_ex" }, { "name": "LogView", "kind": "extension", "id": "extension|LogView|0|0|void|UiText id;LogBuffer log;LogViewOpts o = default||h629acfd43966ab117356ba793bd70ad6b9dfe93587dd289ab839a823556ecc7b", "signature": "void LogView(UiText id, LogBuffer log, LogViewOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "log", "type": "LogBuffer" }, { "name": "o", "type": "LogViewOpts", "default": "default" }], "summary": "Draws log with its toolbar: level filters, search with highlight, Follow, Copy and Clear. Scrolling up turns Follow off; reaching the bottom turns it back on." }, { "name": "MarkReady", "kind": "method", "id": "method|MarkReady|0|0|void|||h8dc4126f75765e5089f4b5e2bbbb22f0fc14d612aafd61d5d0998543d5b212d0", "signature": "void MarkReady()", "summary": "Declares that this frame shows complete, current app data. This is what dotnet cui --wait ready waits for: readiness is a property of the frame that marks it, so the next frame starts unready and a screen that goes back to loading is never seen as ready on the strength of an older mark." }, { "name": "Menu", "kind": "extension", "id": "extension|Menu|0|0|void|UiText label;DrawFn body;MenuOpts o = default||h46a55ef5a629d54cea211e8cff97db0e260e3c390254e4a74263ef25c2b8fe9d", "signature": "void Menu(UiText label, DrawFn body, MenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "MenuOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "MenuBarMenu", "kind": "extension", "id": "extension|MenuBarMenu|0|0|void|UiText label;DrawFn body;MenuBarMenuOpts o = default||h1b1bac394be04ea33333eee937841b7391a0fc642ea6951788ddb9eb4b199110", "signature": "void MenuBarMenu(UiText label, DrawFn body, MenuBarMenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "MenuBarMenuOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "MenuLabel", "kind": "extension", "id": "extension|MenuLabel|0|0|void|UiText text||h55d6bbe5cef52bef1137dee2490a736200d78319bc81b81cdd5d2b7fbe16d2b6", "signature": "void MenuLabel(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "cui_menu_label" }, { "name": "MenuSeparator", "kind": "extension", "id": "extension|MenuSeparator|0|0|void|||h7babb70cb1540862bd8b5e000e173763dc48b627688082cf19bcc2e23c25ba73", "signature": "void MenuSeparator()", "extensionOn": "CuiSharp.Ui", "summary": "cui_menu_separator" }, { "name": "Meter", "kind": "extension", "id": "extension|Meter|0|0|void|UiText label;float used;float total;UiText unit = default||h1d8b4e728d051b711957aa7fbc9bcf832cd505900fdce01a27a79bdc8e9d89fa", "signature": "void Meter(UiText label, float used, float total, UiText unit = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "used", "type": "float" }, { "name": "total", "type": "float" }, { "name": "unit", "type": "UiText", "default": "default" }], "summary": "cui_meter" }, { "name": "Metric", "kind": "extension", "id": "extension|Metric|0|0|void|UiText label;UiText value;MetricOpts o = default||h9bab4a4dc12d3dace12e7106ac89323fdbfdf7c56bba9a0e2f0c40e9c95fbef6", "signature": "void Metric(UiText label, UiText value, MetricOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "UiText" }, { "name": "o", "type": "MetricOpts", "default": "default" }], "summary": "cui_metric_ex" }, { "name": "Muted", "kind": "extension", "id": "extension|Muted|0|0|void|UiText text||haf3dda321d9292f4d904d1870d8bb5dea3c49cb695524acb75572822bff2f9b8", "signature": "void Muted(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "small, muted" }, { "name": "NavSection", "kind": "extension", "id": "extension|NavSection|0|0|void|UiText title||hf901052c3e5ba17c7b523058746a19e11e181239069f2b8fbb43adfafdbdcafc", "signature": "void NavSection(UiText title)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }], "summary": "cui_nav_section" }, { "name": "Node", "kind": "extension", "id": "extension|Node|0|0|void|int nodeId;ref float x;ref float y;UiText title;DrawFn body;NodeOpts o = default||he2a131c3e341325536d7aaaafc4f83046a7d7e9c45eead6545f141826f6d7e82", "signature": "void Node(int nodeId, ref float x, ref float y, UiText title, DrawFn body, NodeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "nodeId", "type": "int" }, { "name": "x", "type": "ref float" }, { "name": "y", "type": "ref float" }, { "name": "title", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "NodeOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "NodeEditor", "kind": "extension", "id": "extension|NodeEditor|0|0|void|UiText id;ref NodeView view;DrawFn body;NodeEditorOpts o = default||h5854f9b818a6cafa92571b34f94f5f0c435142d546b6f628a1174b1effe7ac67", "signature": "void NodeEditor(UiText id, ref NodeView view, DrawFn body, NodeEditorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "view", "type": "ref NodeView" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "NodeEditorOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "NumberRoll", "kind": "extension", "id": "extension|NumberRoll|0|0|void|UiText id;UiText text;TextFxOpts o = default||h67c63e017e57f215b45262ce043c429d9ff6e486e3c507e0c84f3d5daa53a5bf", "signature": "void NumberRoll(UiText id, UiText text, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "A figure whose changed digits roll into place: up when the value rises, down when it falls, a beat apart from the left; unchanged characters stay still. Pass the formatted text (\u0022$64,210\u0022, \u00221.2k\u0022); digits are tabular." }, { "name": "PathBarMenu", "kind": "extension", "id": "extension|PathBarMenu|0|0|void|UiText id;ref int segment;DrawFn body||h875759cac9f5832bcb6782caaa672db98fbc277a19f31017d3155a38c398dce5", "signature": "void PathBarMenu(UiText id, ref int segment, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "segment", "type": "ref int" }, { "name": "body", "type": "DrawFn" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "PopClip", "kind": "method", "id": "method|PopClip|0|0|void|||hd223700ffd7f730814c69ec5bd11dae3b4dd4a7a738e754b775a351e0c980575", "signature": "void PopClip()", "summary": "Ends the clip opened by PushClip." }, { "name": "Popover", "kind": "extension", "id": "extension|Popover|0|0|void|UiText id;DrawFn body;PopoverOpts o = default||h597b85fb0e87089ca73543226f68a70b713ea0f9c949974f2c0425c7028438f3", "signature": "void Popover(UiText id, DrawFn body, PopoverOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "PopoverOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "PopoverClose", "kind": "extension", "id": "extension|PopoverClose|0|0|void|UiText id||hca913fedac00c0c27ef6b37fb3f90cb88cd76862d0e5884e8f4e8dac8ba415b3", "signature": "void PopoverClose(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_popover_close" }, { "name": "PopoverOpen", "kind": "extension", "id": "extension|PopoverOpen|0|0|void|UiText id||h424af0f304196b1a039d033eb75b4bff9dca251d0232dbc683699a925dfaa16d", "signature": "void PopoverOpen(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_popover_open" }, { "name": "PopoverToggle", "kind": "extension", "id": "extension|PopoverToggle|0|0|void|UiText id||h58628645f47f2c9c2896b1ec70e7d661c861b7abb26420d9b750e21380db5e02", "signature": "void PopoverToggle(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_popover_toggle" }, { "name": "Presence", "kind": "extension", "id": "extension|Presence|0|0|void|UiText id;ReadOnlySpan\u003CPresenceUser\u003E users;int maxVisible;float size||h33db1325c05049463f7c9a97e3df833a114732c8a156f6ee2d775dad7a69c214", "signature": "void Presence(UiText id, ReadOnlySpan\u003CPresenceUser\u003E users, int maxVisible, float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "users", "type": "ReadOnlySpan\u003CPresenceUser\u003E" }, { "name": "maxVisible", "type": "int" }, { "name": "size", "type": "float" }], "summary": "Presence: who is here now. Overlapping avatars with a colored ring each, that spread out on hover and name themselves." }, { "name": "Progress", "kind": "extension", "id": "extension|Progress|0|0|void|float value;ProgressOpts o = default||h811e97c08fde2498427fc6a279e22a1c2ea3bc1ce69c3d642c73832f10623d4d", "signature": "void Progress(float value, ProgressOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "value", "type": "float" }, { "name": "o", "type": "ProgressOpts", "default": "default" }], "summary": "cui_progress_ex" }, { "name": "ProgressRing", "kind": "extension", "id": "extension|ProgressRing|0|0|void|UiText label;float value;float size = 104f||h2e30430280ecfbc1925c0164f0bb59a54da3003b073ef1535c6cb3c2d4e8e057", "signature": "void ProgressRing(UiText label, float value, float size = 104f)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "float" }, { "name": "size", "type": "float", "default": "104f" }], "summary": "Circular progress with the value in the middle." }, { "name": "PushClip", "kind": "method", "id": "method|PushClip|0|0|void|RectF r||h95bac6dcebf24b24b986a596422f965edfee8cd616663a1e59d0da09a9bd3efb", "signature": "void PushClip(RectF r)", "parameters": [{ "name": "r", "type": "RectF" }], "summary": "Clips subsequent drawing to a rectangle. Pair with PopClip." }, { "name": "RadialGauge", "kind": "extension", "id": "extension|RadialGauge|0|0|void|UiText id;float value;float min;float max;RadialGaugeOpts o = default||h69d72defa0179e7173e927724367a4bb9575a2e75bbd9949225f9eab886c2992", "signature": "void RadialGauge(UiText id, float value, float min, float max, RadialGaugeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "RadialGaugeOpts", "default": "default" }], "summary": "cui_radial_gauge_ex" }, { "name": "Readout", "kind": "extension", "id": "extension|Readout|0|0|void|UiText label;UiText value;ReadoutOpts o = default||h88673692487a3fc220702b7f3a45a3b5fc3f80bc6eab7e144728a19666b2f88f", "signature": "void Readout(UiText label, UiText value, ReadoutOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "UiText" }, { "name": "o", "type": "ReadoutOpts", "default": "default" }], "summary": "Readout: one figure as an instrument shows it. A small label, the value in the monospaced font with its unit, and a muted line of context under it." }, { "name": "Reasoning", "kind": "extension", "id": "extension|Reasoning|0|0|void|UiText id;DrawFn body;ReasoningOpts o = default||h892c50fc79e75386733c9149e18f72832dbdccb2d31c29b39a76a16ea185386e", "signature": "void Reasoning(UiText id, DrawFn body, ReasoningOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "ReasoningOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "ReorderBegin", "kind": "method", "id": "method|ReorderBegin|0|0|void|UiText id;int[] order||hb312c00b771ad378a0324c96198659487c28a3c21c9d71a96e3f595957ffe21f", "signature": "void ReorderBegin(UiText id, int[] order)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "order", "type": "int[]" }] }, { "name": "RequestRedraw", "kind": "method", "id": "method|RequestRedraw|0|0|void|||h4986f5ad7c5201d2830f1dee1e374ca29980fe9c408b3ef833336aabba3ed66c", "signature": "void RequestRedraw()", "summary": "Requests another frame; call only from the synchronous draw path." }, { "name": "RequestWakeup", "kind": "extension", "id": "extension|RequestWakeup|0|0|void|float seconds||h1e8d82035be8a5e226207bb6bd0874265dba29cf4b6a4779f60b95ab7cc567f7", "signature": "void RequestWakeup(float seconds)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "seconds", "type": "float" }], "summary": "Asks for one more frame after seconds, even when nothing else would wake the window. Use it for a timer, a toast timeout or a poll interval." }, { "name": "ResponseStatus", "kind": "extension", "id": "extension|ResponseStatus|0|0|void|int status;double seconds;double bytes||h63e7c9d5181d7379043415c904edf88e89db4e9781c0577d221801f58399a1cf", "signature": "void ResponseStatus(int status, double seconds, double bytes)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "status", "type": "int" }, { "name": "seconds", "type": "double" }, { "name": "bytes", "type": "double" }], "summary": "cui_response_status" }, { "name": "ScrollTo", "kind": "extension", "id": "extension|ScrollTo|0|0|void|UiText scrollId;float y||h795b4245740f616fce2565ac40d5ea6dfa995143af81eedbc7067db0b0f1e7c0", "signature": "void ScrollTo(UiText scrollId, float y)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "scrollId", "type": "UiText" }, { "name": "y", "type": "float" }], "summary": "cui_scroll_to" }, { "name": "Secondary", "kind": "extension", "id": "extension|Secondary|0|0|void|UiText text||h4f32c253f11a19b26ceb397d205e5e2d5c6c8e5db01a0ef2e8984e0a2c78ef46", "signature": "void Secondary(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "secondary color" }, { "name": "Separator", "kind": "extension", "id": "extension|Separator|0|0|void|||h913edddc60366f9044c6b66111a5672080bdd3cb042c5febb3487cac873e4f6b", "signature": "void Separator()", "extensionOn": "CuiSharp.Ui", "summary": "hairline, follows the parent direction" }, { "name": "SetFont", "kind": "extension", "id": "extension|SetFont|0|0|void|Font role;Font font||hcab29e22e2019bb3b541b3254c5e4027f76d357aa2ea4e762ced8560cad6c652", "signature": "void SetFont(Font role, Font font)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "role", "type": "Font" }, { "name": "font", "type": "Font" }], "summary": "Makes font the face every widget using role draws with." }, { "name": "SetLocalization", "kind": "method", "id": "method|SetLocalization|0|0|void|Localization? table||h9b1e18df8b05e42ae28fc53a566e5014c93cf59eea849033c0ab9f19b6bae9bd", "signature": "void SetLocalization(Localization? table)", "parameters": [{ "name": "table", "type": "Localization?" }], "summary": "Sets the month, weekday and \u0022Today\u0022 names the date components show, and returns to English with null." }, { "name": "SetReducedMotion", "kind": "method", "id": "method|SetReducedMotion|0|0|void|bool reduced||hae4b830dd1026084cab290fac44e758b675baf93c35f70486ffa7547f059af88", "signature": "void SetReducedMotion(bool reduced)", "parameters": [{ "name": "reduced", "type": "bool" }], "summary": "Turns off animation (transitions, springs and spinners) for accessibility." }, { "name": "Sheet", "kind": "extension", "id": "extension|Sheet|0|0|void|UiText title;ref bool open;DrawFn body;SheetOpts o = default||h65c09301eb5dd69c80862865570241bbd654452c640464cf772559af8fc6bf22", "signature": "void Sheet(UiText title, ref bool open, DrawFn body, SheetOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "SheetOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "ShimmerText", "kind": "extension", "id": "extension|ShimmerText|0|0|void|UiText text;TextFxOpts o = default||h10fe1a4021ac0e8c72d7fdf6f3cb558e9a8c622c13f4749b7ac3d5d402cb9f57", "signature": "void ShimmerText(UiText text, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "Text with a highlight sweeping across it, for \u0022Thinking...\u0022 states." }, { "name": "SignatureClear", "kind": "extension", "id": "extension|SignatureClear|0|0|void|UiText id||hf23272f80768839b31369fdd5a82c42808ef1d11985d804d96d54c704b0de8bf", "signature": "void SignatureClear(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_signature_clear" }, { "name": "Skeleton", "kind": "extension", "id": "extension|Skeleton|0|0|void|Size width;float height||h9a80641f8540ed71174043f46e0ff5190568ee803a507a52125ab6fd1ccd12ec", "signature": "void Skeleton(Size width, float height)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "width", "type": "Size" }, { "name": "height", "type": "float" }], "summary": "cui_skeleton" }, { "name": "Spacer", "kind": "extension", "id": "extension|Spacer|0|0|void|||h8df9fad32f644fb75d2f19ff5d3057f2529306e3edc1921a901da58f59bdf332", "signature": "void Spacer()", "extensionOn": "CuiSharp.Ui", "summary": "flexible space" }, { "name": "Sparkline", "kind": "extension", "id": "extension|Sparkline|0|0|void|ReadOnlySpan\u003Cfloat\u003E values;Size width;float height;Color color||hf5e74b2ae617ca510b0dea71f3513379b77ff9597fa28585678fd9d5dc90c297", "signature": "void Sparkline(ReadOnlySpan\u003Cfloat\u003E values, Size width, float height, Color color)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "width", "type": "Size" }, { "name": "height", "type": "float" }, { "name": "color", "type": "Color" }], "summary": "cui_sparkline" }, { "name": "Spinner", "kind": "extension", "id": "extension|Spinner|0|0|void|float size = 16f||h910bfa94c12faa6f479982793408735550b3b41b6f58bf9d2ecbd8fbd8d537f9", "signature": "void Spinner(float size = 16f)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "size", "type": "float", "default": "16f" }], "summary": "cui_spinner" }, { "name": "SplitNext", "kind": "extension", "id": "extension|SplitNext|0|0|void|||h2e9b4df1853b9715ec487e793813aebc81a3f6ac93bd19f40400a8b7db5e57b1", "signature": "void SplitNext()", "extensionOn": "CuiSharp.Ui", "summary": "cui_split_next" }, { "name": "StatusBarProgress", "kind": "extension", "id": "extension|StatusBarProgress|0|0|void|float value;StatusProgressOpts o = default||h0d89461fbae2cb62b010aaa92c832f76c787764ad8bf6a7f6f3b2352d43eb62e", "signature": "void StatusBarProgress(float value, StatusProgressOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "value", "type": "float" }, { "name": "o", "type": "StatusProgressOpts", "default": "default" }], "summary": "A small progress bar with an optional label. value is 0..1." }, { "name": "StatusBarSpacer", "kind": "extension", "id": "extension|StatusBarSpacer|0|0|void|||hff79ec75c75a5a4046a3afdf7908bfa1687f1fccc3cca35aa6a3c05e5696b38d", "signature": "void StatusBarSpacer()", "extensionOn": "CuiSharp.Ui", "summary": "cui_status_bar_spacer" }, { "name": "StatusBarText", "kind": "extension", "id": "extension|StatusBarText|0|0|void|UiText text;StatusItemOpts o = default||hf5288fddf236ac4166245c73e6f33c7b59cd60825aad4b4b26f2a62615179863", "signature": "void StatusBarText(UiText text, StatusItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "StatusItemOpts", "default": "default" }], "summary": "A message; \u0060tone\u0060 colors its icon." }, { "name": "Stepper", "kind": "extension", "id": "extension|Stepper|0|0|void|ReadOnlySpan\u003Cstring\u003E steps;int current||h80f2e80af6bf18ef466ffe2f62937141940d661367c04989db4a52915786a5ca", "signature": "void Stepper(ReadOnlySpan\u003Cstring\u003E steps, int current)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "steps", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "current", "type": "int" }], "summary": "cui_stepper" }, { "name": "Table", "kind": "extension", "id": "extension|Table|0|0|void|UiText id;ReadOnlySpan\u003CTableColumn\u003E columns;ref TableSort sort;DrawFn body;TableOpts o = default||h7968ef7a646f0817ff9658c4cbca9383316e49dd9c742c9662b2ff3812b0fd0a", "signature": "void Table(UiText id, ReadOnlySpan\u003CTableColumn\u003E columns, ref TableSort sort, DrawFn body, TableOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CTableColumn\u003E" }, { "name": "sort", "type": "ref TableSort" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "TableOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "TableCell", "kind": "extension", "id": "extension|TableCell|0|0|void|||h7206d360daa4de79037d61b719094d0baea2de5a24e5aeb9f04149502f3db3bc", "signature": "void TableCell()", "extensionOn": "CuiSharp.Ui", "summary": "Next cell; put any components inside, or use cui_table_cell_text." }, { "name": "TableCellText", "kind": "extension", "id": "extension|TableCellText|0|0|void|UiText text||h7ed6f22b1e22b71ecfb331830e30c25829c7af8fec09d3b888c861bbb28793a6", "signature": "void TableCellText(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "Part of cui_table_cell \u2014 Next cell; put any components inside, or use cui_table_cell_text." }, { "name": "Text", "kind": "extension", "id": "extension|Text|0|0|void|UiText text;TextOpts o = default||h098380135ff70fa9e6364b4f5cb5baaa3d0d23bb4e06916511f00c01e904dcb6", "signature": "void Text(UiText text, TextOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "TextOpts", "default": "default" }], "summary": "cui_text_ex" }, { "name": "TextReveal", "kind": "extension", "id": "extension|TextReveal|0|0|void|UiText id;UiText text;TextFxOpts o = default||h7f99ba4d6b24021ea0f87d36914931f6994d1962327a22f1e8b4caad0115cafe", "signature": "void TextReveal(UiText id, UiText text, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "Words fade and rise into place one after another, when first shown and again whenever the text changes." }, { "name": "Ticker", "kind": "extension", "id": "extension|Ticker|0|0|void|UiText id;ReadOnlySpan\u003CTickerItem\u003E items;TickerOpts o = default||h62c76d0d359572be4036b278345efbeac770ba89bef0d4343912d1b51ea0fc23", "signature": "void Ticker(UiText id, ReadOnlySpan\u003CTickerItem\u003E items, TickerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CTickerItem\u003E" }, { "name": "o", "type": "TickerOpts", "default": "default" }], "summary": "Ticker: items that scroll by continuously, pausing on hover." }, { "name": "TimelineItem", "kind": "extension", "id": "extension|TimelineItem|0|0|void|UiText title;TimelineOpts o = default||hd57ae894fcdcf6a57e4008b86ca1e4a0ea3d920a1be7b0beead7f0c64dce9b25", "signature": "void TimelineItem(UiText title, TimelineOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "TimelineOpts", "default": "default" }], "summary": "cui_timeline_item_ex" }, { "name": "ToastDismiss", "kind": "extension", "id": "extension|ToastDismiss|0|0|void|int handle||h6a894b14bc221b765154e4ee9cf6cdd1812f544772192205c25a197be8077904", "signature": "void ToastDismiss(int handle)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "handle", "type": "int" }], "summary": "cui_toast_dismiss" }, { "name": "TocAnchor", "kind": "extension", "id": "extension|TocAnchor|0|0|void|UiText anchor||h474d1046a90fd952ce1996c9a0f04e59d8090e886222bfa8a62b08c2d191127c", "signature": "void TocAnchor(UiText anchor)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "anchor", "type": "UiText" }], "summary": "cui_toc_anchor" }, { "name": "ToggleTheme", "kind": "method", "id": "method|ToggleTheme|0|0|void|||h9c315cf4c8d3ce0774082f4db1c10fdcde1dfdef8503f7e49968fc73805e19e8", "signature": "void ToggleTheme()", "summary": "Switches to the other theme: what a \u0022dark mode\u0022 command is." }, { "name": "ToolCall", "kind": "extension", "id": "extension|ToolCall|0|0|void|UiText id;UiText name;ToolCallOpts o = default||h16a78d12e8afd01cd74d0ff79d04eab871b3602eb401436850ec64b67c8d437d", "signature": "void ToolCall(UiText id, UiText name, ToolCallOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "name", "type": "UiText" }, { "name": "o", "type": "ToolCallOpts", "default": "default" }], "summary": "cui_tool_call_ex" }, { "name": "ToolbarSeparator", "kind": "extension", "id": "extension|ToolbarSeparator|0|0|void|||h1ac04b800f486b06135932d0c44c42e77b107a635f62f0ebe94dc31f9e99b9a6", "signature": "void ToolbarSeparator()", "extensionOn": "CuiSharp.Ui", "summary": "cui_toolbar_separator" }, { "name": "ToolbarSpacer", "kind": "extension", "id": "extension|ToolbarSpacer|0|0|void|||h494edd9bb119d78eaa1c281a125dd1a9effb7a85caa35e4b35c4253376bb92f3", "signature": "void ToolbarSpacer()", "extensionOn": "CuiSharp.Ui", "summary": "pushes the following items to the right" }, { "name": "Tooltip", "kind": "extension", "id": "extension|Tooltip|0|0|void|UiText text||h5665aef7d99446eea8e623f0f1227e52e0512f331e35936232eb9a28aa7f3634", "signature": "void Tooltip(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "Tooltip for the previous component, shown after a short hover delay." }, { "name": "Tree", "kind": "extension", "id": "extension|Tree|0|0|void|UiText label;ref bool open;DrawFn body;TreeOpts o = default||he13b4bfd412c90e5210ac7a3109d12fb25e4a2280312b5257572daebbb5bbd95", "signature": "void Tree(UiText label, ref bool open, DrawFn body, TreeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "TreeOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "TreeTableName", "kind": "extension", "id": "extension|TreeTableName|0|0|void|UiText label;UiText icon||h1db08630dbcd5478e4543d6fc7df51dec714a4cefea2efb55e95ec44273c7151", "signature": "void TreeTableName(UiText label, UiText icon)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "icon", "type": "UiText" }], "summary": "The first cell: indentation, guides, the chevron, an icon and the name (cut short with a tooltip of the whole name when it does not fit)." }, { "name": "TypingIndicator", "kind": "extension", "id": "extension|TypingIndicator|0|0|void|UiText name||h29e1190d004ef9cf04c8fb3bb6772b74ea89a31b5105bb6fe5d65e29383b006a", "signature": "void TypingIndicator(UiText name)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "name", "type": "UiText" }], "summary": "bouncing dots" }, { "name": "UserMenu", "kind": "extension", "id": "extension|UserMenu|0|0|void|UiText name;DrawFn body;UserMenuOpts o = default||h1d302e00c446dbae93ac0347cf4063547177c7d4c68194db26c7ca15c8128f8c", "signature": "void UserMenu(UiText name, DrawFn body, UserMenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "name", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "UserMenuOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "WordRotate", "kind": "extension", "id": "extension|WordRotate|0|0|void|UiText id;ReadOnlySpan\u003Cstring\u003E words;float interval;TextFxOpts o = default||he53938c5acb8d2d7786cb08323a565882c4e7c01bc50637a3c5c0d9131734da4", "signature": "void WordRotate(UiText id, ReadOnlySpan\u003Cstring\u003E words, float interval, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "words", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "interval", "type": "float" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "One word at a time; the next one rolls up into place and the width follows." }] }, { "name": "CuiSharp.UiText", "displayName": "UiText", "kind": "ref struct", "summary": "Frame-local text: a string, UTF-8 bytes, or interpolation. All UI text parameters accept this type; interpolated values format directly into the frame arena without creating a managed string.", "members": [{ "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||int literalLength;int formattedCount||h9d129c9e8c13f816fed4fd270b6f7361e24da4313ad96ee28152fbfd2d443819", "signature": "UiText(int literalLength, int formattedCount)", "parameters": [{ "name": "literalLength", "type": "int" }, { "name": "formattedCount", "type": "int" }], "summary": "Called by the compiler for interpolated text." }, { "name": "implicit operator UiText", "kind": "conversion", "id": "conversion|op_Implicit|1|0|UiText|ReadOnlySpan\u003Cbyte\u003E text||hd1579173337f67b3bf25d622e86eb7f148007c45b2d398328924b26ef41bed1a", "signature": "static implicit operator UiText(ReadOnlySpan\u003Cbyte\u003E text)", "member": "op_Implicit", "parameters": [{ "name": "text", "type": "ReadOnlySpan\u003Cbyte\u003E" }], "summary": "Copies pre-encoded UTF-8 into the frame arena." }, { "name": "implicit operator UiText", "kind": "conversion", "id": "conversion|op_Implicit|1|0|UiText|string? text||ha192bca6069ef409f9cb822e5f7d0eaa3554d027fa4199e7d57af82030fd6b75", "signature": "static implicit operator UiText(string? text)", "member": "op_Implicit", "parameters": [{ "name": "text", "type": "string?" }], "summary": "Copies a managed string into the frame arena; null means empty." }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|ReadOnlySpan\u003Cbyte\u003E value||hef829454fbde18245e3b8ef1227cc657c7d0c8b8ac6043baddcb203e4e89ce11", "signature": "void AppendFormatted(ReadOnlySpan\u003Cbyte\u003E value)", "parameters": [{ "name": "value", "type": "ReadOnlySpan\u003Cbyte\u003E" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|ReadOnlySpan\u003Cchar\u003E value||h512a8c46c33dd443943ef420e735689596e3dd472b3a96689fcb02b2ba852201", "signature": "void AppendFormatted(ReadOnlySpan\u003Cchar\u003E value)", "parameters": [{ "name": "value", "type": "ReadOnlySpan\u003Cchar\u003E" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|ReadOnlySpan\u003Cchar\u003E value;int alignment||h982dbe4e0a26fe044f09d75a4d1104d13f46fc199f6c695c3782505e26cfbb9b", "signature": "void AppendFormatted(ReadOnlySpan\u003Cchar\u003E value, int alignment)", "parameters": [{ "name": "value", "type": "ReadOnlySpan\u003Cchar\u003E" }, { "name": "alignment", "type": "int" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|UiText value||h5e44e320cfaa7bde5f1329fb6b53cbdd46d63a7584a2c0fc9033ba79744123a3", "signature": "void AppendFormatted(UiText value)", "parameters": [{ "name": "value", "type": "UiText" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|bool value||h720aa8df35eebbf6f0d5f648fc9a056d974eb609b0040ec2c42fd468a06693a0", "signature": "void AppendFormatted(bool value)", "parameters": [{ "name": "value", "type": "bool" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|char value||h9d680ea6dfe9dbec87b517cb2cbddc8218746befbf6dd2ee68b35e855f8057ae", "signature": "void AppendFormatted(char value)", "parameters": [{ "name": "value", "type": "char" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|object? value||hf93e8db4d0924f08e67f1ef03109839f6c73f17ad46779c6b8b380b8e05c7218", "signature": "void AppendFormatted(object? value)", "parameters": [{ "name": "value", "type": "object?" }], "summary": "Fallback for other values; their ToString() may allocate." }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|object? value;int alignment;string? format = null||h059572468f1cfeb9ca57651003cde79067a087f489ab6d52b658fb044b3526ed", "signature": "void AppendFormatted(object? value, int alignment, string? format = null)", "parameters": [{ "name": "value", "type": "object?" }, { "name": "alignment", "type": "int" }, { "name": "format", "type": "string?", "default": "null" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|object? value;string? format||h9d8fbb16f8627e1d56ead9a8606ba99da5f85ef91fd9b3771d29f8c5e4c7e462", "signature": "void AppendFormatted(object? value, string? format)", "parameters": [{ "name": "value", "type": "object?" }, { "name": "format", "type": "string?" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|string? value||h7ed9ddb298ac718e41c3694b560ffb5c9d2bc9abccaaeedd72c1132bffd4b796", "signature": "void AppendFormatted(string? value)", "parameters": [{ "name": "value", "type": "string?" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|string? value;int alignment||h51c88640d936ec7475bf76cd319665175a79b5198d79ca7c1a3ba95a51998749", "signature": "void AppendFormatted(string? value, int alignment)", "parameters": [{ "name": "value", "type": "string?" }, { "name": "alignment", "type": "int" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|1|void|T value||h65df985b422ddbac895e2b797462d95fb3f98bb9ce9ccf9782ec6763b6832437", "signature": "void AppendFormatted\u003CT\u003E(T value) where T : IUtf8SpanFormattable", "parameters": [{ "name": "value", "type": "T" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|1|void|T value;int alignment||h6468da91f19f1efef869ac4b11f9ff350163d77d76e6db4819ce47eefce59a06", "signature": "void AppendFormatted\u003CT\u003E(T value, int alignment) where T : IUtf8SpanFormattable", "parameters": [{ "name": "value", "type": "T" }, { "name": "alignment", "type": "int" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|1|void|T value;int alignment;string? format||h1004c4617ff18f4ce7f5dfd22cacb4983c1cb3ae5b0581f5cdcfadab89abcd35", "signature": "void AppendFormatted\u003CT\u003E(T value, int alignment, string? format) where T : IUtf8SpanFormattable", "parameters": [{ "name": "value", "type": "T" }, { "name": "alignment", "type": "int" }, { "name": "format", "type": "string?" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|1|void|T value;string? format||h2fc49aa45e0e759e36dd6df0e6e9d6157eff303a310b2b52f64f0ffa2635a4ad", "signature": "void AppendFormatted\u003CT\u003E(T value, string? format) where T : IUtf8SpanFormattable", "parameters": [{ "name": "value", "type": "T" }, { "name": "format", "type": "string?" }] }, { "name": "AppendLiteral", "kind": "method", "id": "method|AppendLiteral|0|0|void|string value||h91e764bb2eb76e141ff133bb474648f96920b1561f73237554f400e459d22437", "signature": "void AppendLiteral(string value)", "parameters": [{ "name": "value", "type": "string" }] }] }, { "name": "CuiSharp.UptimeOpts", "displayName": "UptimeOpts", "kind": "struct", "summary": "A status page: each service with its current state, its uptime over the period, and one bar per day colored by availability (gray without data). Hover a bar for its day and uptime. On a narrow panel only the most recent days that fit are shown. All fields are optional; zero selects the native default.", "members": [{ "name": "LastDay", "kind": "field", "id": "field|LastDay|0|0|Date|||ha3f645ffdf8751c48a7a18f62ca5d5d533c04d6ba810e7a5b9e3d210de69be6b", "signature": "public Date LastDay", "summary": "the date of the last value, for the tooltips" }, { "name": "Width", "kind": "field", "id": "field|Width|0|0|Size|||h4006d8d1aa3607cf3007c2fd6686981e9812586a28b9a4d7a283aeadfcd379ad", "signature": "public Size Width", "summary": "the date of the last value, for the tooltips" }] }, { "name": "CuiSharp.UptimeResult", "displayName": "UptimeResult", "kind": "struct", "summary": "Elements are copied into the frame arena by the wrapper.", "members": [{ "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||int Service;int Day = default||h4ee9e7c7a585a544f5268afb6a64a28897b9938d387b9170a817e81d7915e91b", "signature": "UptimeResult(int Service, int Day = default)", "parameters": [{ "name": "Service", "type": "int" }, { "name": "Day", "type": "int", "default": "default" }] }, { "name": "Day", "kind": "field", "id": "field|Day|0|0|int|||h40d69339a69f05f7a1cf0fdcf537358258767e30cc6d07e430cb48196d28a0e1", "signature": "public int Day", "summary": "under the pointer, or -1" }, { "name": "Service", "kind": "field", "id": "field|Service|0|0|int|||hba0d1bf399894e025b711a3e44f55e40012b5deae721403f37ad45df303a1b8b", "signature": "public int Service", "summary": "under the pointer, or -1" }] }, diff --git a/skills/cui-dotnet/llms.txt b/skills/cui-dotnet/llms.txt index 9bcbb2a..00bdb74 100644 --- a/skills/cui-dotnet/llms.txt +++ b/skills/cui-dotnet/llms.txt @@ -179,7 +179,7 @@ - `ui.Spinner(float size = 16)` → `void` ([Feedback and display](api/FeedbackAndDisplay.md)) - `ui.FlameGraph(UiText id, ReadOnlySpan spans, ref FlameView view, ref int selected, FlameOpts o = default)` → `FlameResult` — selected: index into spans, -1 for none (may be NULL). ([Flame graph](api/FlameGraph.md)) - `ui.FlameSpanRect(uint flame, in FlameSpan span)` → `RectF` — Where a span was drawn in the latest frame, in points (zero size when out of view). flame is the graph's id: cui_last_id(ui) right after the call. ([Flame graph](api/FlameGraph.md)) -- `ui.RequestBar(UiText id, ref HttpMethod method, ref string url, int cap = 2048, RequestBarOpts o = default)` → `RequestBarResult` ([HTTP request bar](api/HttpRequestBar.md)) +- `ui.RequestBar(UiText id, ref HttpVerb method, ref string url, int cap = 2048, RequestBarOpts o = default)` → `RequestBarResult` ([HTTP request bar](api/HttpRequestBar.md)) - `ui.ResponseStatus(int status, double seconds, double bytes)` → `void` ([HTTP request bar](api/HttpRequestBar.md)) - `ui.HexViewGoto(UiText id, ulong offset)` → `void` — Go to offset: on the view's next frame its cursor moves to offset, that byte becomes the selection and it scrolls into view (to the middle when it was out of sight). Wire a "Go to" field to it; it is safe to call every frame. ([Hex viewer](api/HexViewer.md)) - `ui.DotDisplay(UiText text, DotDisplayOpts o = default)` → `void` — Dot-matrix display: text drawn with a 5 by 7 dot font, for clocks, counters and status lines. Printable ASCII, the degree sign and the middle dot have glyphs; anything else is a box. Unlit dots show dimly unless `no_dim` is set. In a box narrower than the text, the dots shrink to fit, or with `marquee` the text scrolls. ([Instruments: dot-matrix chart, event track, readout, dot-matrix display](api/Instruments.md)) diff --git a/src/CuiSharp.Templates/CuiSharp.App/AGENTS.md b/src/CuiSharp.Templates/CuiSharp.App/AGENTS.md index 19382ca..50b018a 100644 --- a/src/CuiSharp.Templates/CuiSharp.App/AGENTS.md +++ b/src/CuiSharp.Templates/CuiSharp.App/AGENTS.md @@ -40,4 +40,4 @@ expressions for branching on a value, primary constructors for pages and service `dotnet test` and `dotnet build -warnaserror` after every change. When the question is what the app really draws, `dotnet cui tree -p CuiSharp.App` is one build and one answer, and -`dotnet cui session -p CuiSharp.App < cmds.txt` keeps a multi-step flow in one process. +`dotnet cui session -p CuiSharp.App --script cmds.txt` keeps a multi-step flow in one process. diff --git a/src/CuiSharp.Templates/CuiSharp.App/README.md b/src/CuiSharp.Templates/CuiSharp.App/README.md index a446fb3..dc3b156 100644 --- a/src/CuiSharp.Templates/CuiSharp.App/README.md +++ b/src/CuiSharp.Templates/CuiSharp.App/README.md @@ -24,7 +24,7 @@ dotnet cui tree -p CuiSharp.App # the frame's controls, nested dotnet cui click 'Tab "Markets"' -p CuiSharp.App # click one, print the frame that reacted dotnet cui png shot.png -p CuiSharp.App # the frame as an image dotnet cui layout -p CuiSharp.App # rectangles, and anything that overflowed -dotnet cui session -p CuiSharp.App < steps.txt # many commands, one process +dotnet cui session -p CuiSharp.App --script steps.txt # many commands, one process dotnet cui docs # the framework guide, offline ``` diff --git a/src/CuiSharp.Templates/CuiSharp.Mini/MiniApp.cs b/src/CuiSharp.Templates/CuiSharp.Mini/MiniApp.cs index f69a797..0709198 100644 --- a/src/CuiSharp.Templates/CuiSharp.Mini/MiniApp.cs +++ b/src/CuiSharp.Templates/CuiSharp.Mini/MiniApp.cs @@ -12,7 +12,7 @@ // window of your own — the tool builds it, runs it headless and prints the frame: // dotnet cui tree -p MiniApp.cs // dotnet cui click Increment -p MiniApp.cs -// dotnet cui session -p MiniApp.cs < steps.txt +// dotnet cui session -p MiniApp.cs --script steps.txt // dotnet cui docs // // One command is one process, starting at frame 1; a session keeps its lines in one process, so diff --git a/src/CuiSharp.Tests/DeveloperToolTests.cs b/src/CuiSharp.Tests/DeveloperToolTests.cs index 085bd49..3bcc8a4 100644 --- a/src/CuiSharp.Tests/DeveloperToolTests.cs +++ b/src/CuiSharp.Tests/DeveloperToolTests.cs @@ -220,7 +220,7 @@ public void TheReportingToolsDrawAndReportNothingWhenNothingWasClicked() var pattern = @"\b(\w+)@(\w+)\.com\b"; var text = "ada@example.com and grace@navy.mil"; var flags = RegexFlags.IgnoreCase; - var method = HttpMethod.Get; + var method = HttpVerb.Get; var url = "https://api.example.com/frames?state=open"; var apiSelected = -1; var lines = new[] { "int main(void) {", " return 0;", "}" }; @@ -307,7 +307,7 @@ public void TheReportingToolsDrawAndReportNothingWhenNothingWasClicked() // The two rented text buffers come back with what they went in with. Assert.Equal(@"\b(\w+)@(\w+)\.com\b", pattern); Assert.Equal("https://api.example.com/frames?state=open", url); - Assert.Equal(HttpMethod.Get, method); + Assert.Equal(HttpVerb.Get, method); Assert.Equal(RegexFlags.IgnoreCase, flags); } @@ -345,7 +345,7 @@ public void TheAnalysisPagesCostNothingPerFrame() var pattern = @"(\w+)"; var regexText = "abc def"; var regexFlags = RegexFlags.None; - var method = HttpMethod.Get; + var method = HttpVerb.Get; var url = "https://example.com?a=1"; var apiSelected = -1; var endpoints = new ApiEndpoint[] { new("GET", "/v1", "List", "Tag", false) }; @@ -518,7 +518,7 @@ public void UrlHelpersDecodeAndReencodeQueryParameters() Assert.Equal("Not Found", CuiHttp.Reason(404)); Assert.Equal("", CuiHttp.Reason(999)); - Assert.Equal("PATCH", CuiHttp.MethodName(HttpMethod.Patch)); + Assert.Equal("PATCH", CuiHttp.MethodName(HttpVerb.Patch)); } [Fact] diff --git a/src/CuiSharp.Tests/DoctorTests.cs b/src/CuiSharp.Tests/DoctorTests.cs new file mode 100644 index 0000000..f8cfac4 --- /dev/null +++ b/src/CuiSharp.Tests/DoctorTests.cs @@ -0,0 +1,204 @@ +using CuiSharp.Tools; + +namespace CuiSharp.Tests; + +/// +/// What dotnet cui doctor reads from MSBuild and a restore, and what it says about it. The +/// command is deliberately allowed to answer with warnings: a floating package version and a +/// missing icon are facts about the app, not a reason to hide the rest of the report. +/// +public class DoctorTests +{ + [Fact] + public void AFileBasedAppsWildcardVersionIsReportedAsFloating() + { + const string report = """ + { + "Properties": { + "TargetFramework": "net10.0", + "ProjectAssetsFile": "" + }, + "Items": { + "PackageReference": [ + { "Identity": "CuiSharp", "Version": "*" } + ], + "ProjectReference": [] + } + } + """; + AppLocator.Inspection inspection = AppLocator.ParseInspection(fileBased: true, report); + var checks = new List(); + + Doctor.CheckReferences(checks, inspection, "0.4.2"); + + Doctor.Check warning = Assert.Single(checks, check => check.Level == Doctor.Level.Warning); + Assert.Contains("floats", warning.Message, StringComparison.Ordinal); + Assert.Contains("pin", warning.Fix, StringComparison.Ordinal); + } + + [Fact] + public void ARestoreThatChoseAnotherVersionIsComparedWithTheTool() + { + string folder = Directory.CreateTempSubdirectory("cui-doctor-assets-").FullName; + try + { + string assets = Path.Combine(folder, "project.assets.json"); + File.WriteAllText(assets, """ + { + "version": 3, + "libraries": { + "CuiSharp/0.4.3": { "type": "package" }, + "CuiSharp.Testing/0.4.3": { "type": "package" } + } + } + """); + var inspection = new AppLocator.Inspection( + false, + new Dictionary { ["ProjectAssetsFile"] = assets }, + [new Dictionary { ["Identity"] = "CuiSharp", ["Version"] = "0.4.2" }], + []); + var checks = new List(); + + Doctor.CheckReferences(checks, inspection, "0.4.2"); + + // The declared version agrees with the tool, but the restore under the tree does not: + // the app is about to run code the catalog does not describe. + Doctor.Check warning = Assert.Single(checks, check => check.Level == Doctor.Level.Warning); + Assert.Contains("0.4.3", warning.Message, StringComparison.Ordinal); + Assert.Contains("dotnet tool update", warning.Fix, StringComparison.Ordinal); + } + finally + { + Directory.Delete(folder, recursive: true); + } + } + + [Fact] + public void AnIconPropertyThatNamesNoFileIsAnError() + { + string folder = Directory.CreateTempSubdirectory("cui-doctor-icon-").FullName; + try + { + string project = Path.Combine(folder, "App.csproj"); + File.WriteAllText(project, ""); + + Doctor.Check missing = Doctor.IconCheck(project, "App.ico"); + Assert.Equal(Doctor.Level.Error, missing.Level); + Assert.Contains("does not exist", missing.Message, StringComparison.Ordinal); + + File.WriteAllBytes(Path.Combine(folder, "App.ico"), [0, 0, 1, 0, 1, 0]); + Doctor.Check present = Doctor.IconCheck(project, "App.ico"); + Assert.Equal(Doctor.Level.Ok, present.Level); + } + finally + { + Directory.Delete(folder, recursive: true); + } + } + + [Fact] + public void NativeAotWarningsAreNamedWithoutQuotingTheWholePublish() + { + const string log = """ + App -> C:\src\App.dll + C:\src\Json.cs(12,5): warning IL2026: Using member 'JsonSerializer.Serialize' is not trim safe. + C:\src\Json.cs(12,5): warning IL2026: Using member 'JsonSerializer.Serialize' is not trim safe. + C:\src\Frame.cs(9,1): warning CUI008: reflection-based JSON serialization under AOT. + C:\src\Other.cs(2,2): warning CS0168: the variable is declared but never used. + C:\src\App.cs(3,3): error IL3050: A member was found that requires dynamic code. + """; + + string[] warnings = Doctor.AotWarnings(log); + + Assert.Equal(2, warnings.Length); + Assert.Contains("IL2026", warnings[0], StringComparison.Ordinal); + Assert.Contains("CUI008", warnings[1], StringComparison.Ordinal); + } + + [Fact] + public void AWindowsAuthoredProjectReferenceIsStillRecognised() + { + // A csproj has no reason to rewrite its separators when it is built on Linux. + Assert.True(Doctor.IsCuiSharpProject( + new Dictionary { ["Identity"] = @"..\..\src\CuiSharp\CuiSharp.csproj" })); + Assert.True(Doctor.IsCuiSharpProject( + new Dictionary { ["FullPath"] = "/src/CuiSharp/CuiSharp.csproj" })); + Assert.False(Doctor.IsCuiSharpProject( + new Dictionary { ["Identity"] = "..\\src\\CuiSharp.Testing\\CuiSharp.Testing.csproj" })); + } + + [Fact] + public void VersionMetadataDoesNotMakeAnOlderCatalogLookNewer() + { + Assert.True(Doctor.SameVersion("0.4.2", "0.4.2")); + Assert.True(Doctor.SameVersion("0.4.2.0", "0.4.2")); + Assert.True(Doctor.SameVersion("0.4.2+fc6d4e4", "0.4.2")); + Assert.False(Doctor.SameVersion("0.4.1", "0.4.2")); + } + + [Fact] + public void AotRefusesAnAppThatNeverOptedInInsteadOfForcingTheToolchainOnIt() + { + string folder = Directory.CreateTempSubdirectory("cui-doctor-noaot-").FullName; + try + { + string project = Path.Combine(folder, "NoAot.csproj"); + File.WriteAllText(project, """ + + + net10.0 + + + + + + """); + var output = new StringWriter(); + var error = new StringWriter(); + + int exit = Cli.Run(["doctor", "--project", project, "--aot"], output, error); + + Assert.Equal(1, exit); + Assert.Contains("does not enable PublishAot", output.ToString(), StringComparison.Ordinal); + Assert.DoesNotContain("NativeAOT publish for", output.ToString(), StringComparison.Ordinal); + } + finally + { + Directory.Delete(folder, recursive: true); + } + } + + [Fact] + public void TheDoctorReportsTheProjectAndItsCuiSharpPackage() + { + string folder = Directory.CreateTempSubdirectory("cui-doctor-project-").FullName; + try + { + string project = Path.Combine(folder, "DoctorProbe.csproj"); + File.WriteAllText(project, """ + + + net10.0 + + + + + + """); + var output = new StringWriter(); + var error = new StringWriter(); + + int exit = Cli.Run(["doctor", "--project", project, "--json"], output, error); + + Assert.True(exit == 0, $"the package should pass its checks: {error}"); + string json = output.ToString(); + Assert.Contains("\"project\":", json, StringComparison.Ordinal); + Assert.Contains("DoctorProbe.csproj", json, StringComparison.Ordinal); + Assert.Contains("CuiSharp 0.4.2 (package)", json, StringComparison.Ordinal); + } + finally + { + Directory.Delete(folder, recursive: true); + } + } +} diff --git a/src/CuiSharp.Tests/HandWrittenApiTests.cs b/src/CuiSharp.Tests/HandWrittenApiTests.cs index df3dbb6..9a912d7 100644 --- a/src/CuiSharp.Tests/HandWrittenApiTests.cs +++ b/src/CuiSharp.Tests/HandWrittenApiTests.cs @@ -77,10 +77,39 @@ public void ColorMathsAndKeyNamesResolve() var faded = new Color(10, 20, 30, 255).WithAlpha(0.5f); Assert.InRange(faded.A, 100, 155); + // A token has no channels to fade before a frame resolves it; WithAlpha must not turn + // Color.Accent into a transparent colour, and the token marker includes alpha. + Assert.True(Color.Accent.IsToken); + Assert.Equal(Color.Accent, Color.Accent.WithAlpha(0.1f)); + Assert.False(new Color(5, 0xC5, 0x1D, 255).IsToken); + Assert.Equal("A", Ui.KeyName(Key.A)); Assert.False(string.IsNullOrEmpty(Ui.AccentName(Accent.Violet))); } + [Fact] + public void SizesDescribeTheirKindWithoutReachingIntoNativeState() + { + Assert.True(Size.Fit.IsFit); + Assert.True(Size.Fill.IsFill); + Assert.True(Size.Grow(2).IsFill); + Assert.True(Size.Px(240).IsFixed); + Assert.True(Size.Percent(50).IsPercent); + + Assert.True(Size.Px(240).TryGetPoints(out float points)); + Assert.Equal(240f, points); + Assert.False(Size.Fill.TryGetPoints(out _)); + + Assert.True(Size.Percent(50).TryGetPercent(out float percent)); + Assert.Equal(50f, percent); + Assert.False(Size.Px(240).TryGetPercent(out _)); + + Assert.Equal("Fit", Size.Fit.ToString()); + Assert.Equal("Fill", Size.Fill.ToString()); + Assert.Equal("240px", Size.Px(240).ToString()); + Assert.Equal("50%", Size.Percent(50).ToString()); + } + [Fact] public void CurveGradientAndDiffHelpersEvaluate() { diff --git a/src/CuiSharp.Tests/ToolArgumentTests.cs b/src/CuiSharp.Tests/ToolArgumentTests.cs index c0ff968..4265569 100644 --- a/src/CuiSharp.Tests/ToolArgumentTests.cs +++ b/src/CuiSharp.Tests/ToolArgumentTests.cs @@ -358,6 +358,57 @@ public void AWaitCoexistsWithFramesInASession() Assert.Equal("wait 10", parsed.Options.WaitLine); } + [Fact] + public void ASessionCanNameItsScriptInsteadOfNeedingShellRedirection() + { + // Windows PowerShell has no `<`, so a portable session has to be able to name its file. + Grammar.Parsed parsed = Grammar.Parse(["session", "--script", "steps.txt", "--project", "App.cs"]); + + Assert.Empty(parsed.Errors); + Assert.Equal("session", parsed.Options!.Command); + Assert.Equal("steps.txt", parsed.Options.Script); + Assert.Equal("App.cs", parsed.Options.Project); + } + + [Fact] + public void ASessionScriptIsReadInOrderBeforeTheAppStarts() + { + string project = Path.Combine(TestPaths.RepositoryRoot, "src", "CuiSharp.Tests", "TestApps", "ReadyProbe"); + string script = Path.Combine(Path.GetTempPath(), $"cui-script-{Guid.NewGuid():N}.txt"); + File.WriteAllText(script, "tree\nframe 2\ntree\n"); + + try + { + var output = new StringWriter(); + var error = new StringWriter(); + int exit = Cli.Run( + ["session", "--script", script, "--project", project, "--wait", "ready", "--wait-timeout", "20", "--", "--ready-after", "3"], + output, + error); + + Assert.True(exit == 0, $"the script should relay all three answers: {error}"); + Assert.Equal(3, output.ToString().Split("Frame", StringSplitOptions.None).Length - 1); + } + finally + { + File.Delete(script); + } + } + + [Fact] + public void AMissingSessionScriptNamesTheFileAndStartsNoApp() + { + string missing = Path.Combine(Path.GetTempPath(), $"cui-missing-{Guid.NewGuid():N}.txt"); + var output = new StringWriter(); + var error = new StringWriter(); + + int exit = Cli.Run(["session", "--script", missing, "--project", "nothing-here"], output, error); + + Assert.Equal(1, exit); + Assert.Contains(missing, error.ToString(), StringComparison.Ordinal); + Assert.Contains("session script", error.ToString(), StringComparison.Ordinal); + } + [Fact] public void ASessionCannotBeGivenACommandWordToIgnore() { diff --git a/src/CuiSharp.Tools/AppLocator.cs b/src/CuiSharp.Tools/AppLocator.cs index dab1fb1..74a7d47 100644 --- a/src/CuiSharp.Tools/AppLocator.cs +++ b/src/CuiSharp.Tools/AppLocator.cs @@ -43,6 +43,24 @@ internal sealed record BuildRequest( string? Framework = null, string? BaseOutputPath = null); + /// + /// What MSBuild evaluates about a project without building it: the properties and the two + /// reference item lists the doctor reads. Keeping it separate from + /// means the driver's target resolution keeps asking for exactly the four properties it needs. + /// + internal sealed record Inspection( + bool FileBased, + IReadOnlyDictionary Properties, + IReadOnlyList> Packages, + IReadOnlyList> ProjectReferences) + { + internal string Property(string name) => Properties.GetValueOrDefault(name, ""); + + internal IEnumerable> PackagesNamed(string identity) => + Packages.Where(package => + package.GetValueOrDefault("Identity", "").Equals(identity, StringComparison.OrdinalIgnoreCase)); + } + /// The assembly to run, or null when there is no project here. /// A project file, a file-based .cs app, or the directory to look in. /// Use the last build instead of building. @@ -283,6 +301,78 @@ internal static BuildTarget Describe(string project, BuildRequest request) return ParseDescription(report, request.Framework); } + /// + /// Asks MSBuild for the properties and references doctor checks, without building. The + /// runtime identifier is passed when the caller wants RID-conditional properties (the + /// templates set PublishAot only then) evaluated the way a publish would see them. + /// + internal static Inspection Inspect(string project, BuildRequest request, string? runtimeIdentifier = null) + { + project = Path.GetFullPath(project); + bool fileBased = project.EndsWith(".cs", StringComparison.OrdinalIgnoreCase); + List arguments = fileBased + ? ["build", project, "-c", request.Configuration, "--nologo"] + : ["msbuild", project, "-nologo", $"-p:Configuration={request.Configuration}"]; + arguments.AddRange( + [ + "-getProperty:TargetPath", + "-getProperty:TargetFramework", + "-getProperty:TargetFrameworks", + "-getProperty:RuntimeIdentifier", + "-getProperty:PublishAot", + "-getProperty:SelfContained", + "-getProperty:ApplicationIcon", + "-getProperty:CuiSharpVersion", + "-getProperty:ProjectAssetsFile", + "-getProperty:UseLocalCuiSharp", + "-getItem:PackageReference", + "-getItem:ProjectReference", + ]); + if (request.Framework is not null) arguments.Add($"-p:TargetFramework={request.Framework}"); + if (request.BaseOutputPath is not null) arguments.Add($"-p:BaseOutputPath={request.BaseOutputPath}"); + if (!string.IsNullOrEmpty(runtimeIdentifier)) arguments.Add($"-p:RuntimeIdentifier={runtimeIdentifier}"); + + (int exit, string report, string complaints) = Run("dotnet", arguments, SourceDirectory(project)); + if (exit != 0) + { + throw new ToolException( + $"Could not inspect `{Path.GetFileName(project)}`:" + + $"{Environment.NewLine}{complaints.Trim()}{Environment.NewLine}{report.Trim()}"); + } + + return ParseInspection(fileBased, report); + } + + /// + /// The properties and reference items out of MSBuild's JSON answer. A project with one target + /// framework and no references still answers with the same shape; anything else is reported as + /// the host's answer rather than treated as an empty project. + /// + internal static Inspection ParseInspection(bool fileBased, string report) + { + string text = report.Trim(); + if (!text.StartsWith('{')) + { + throw new ToolException(UnreadableAnswer(text, "the answer is not an object of properties and items")); + } + + try + { + using JsonDocument document = JsonDocument.Parse(text); + JsonElement root = document.RootElement; + Dictionary properties = ReadProperties(root, text); + return new Inspection( + fileBased, + properties, + ReadItems(root, "PackageReference", text), + ReadItems(root, "ProjectReference", text)); + } + catch (JsonException malformed) + { + throw new ToolException(UnreadableAnswer(text, malformed.Message)); + } + } + /// /// The properties out of MSBuild's own text. One property prints its value, several print a /// JSON object; both are answered, so the parsing is testable without a project on disk. @@ -326,15 +416,20 @@ internal static BuildTarget ParseDescription(string report, string? framework) /// private static Dictionary ReadProperties(string text) { - var properties = new Dictionary(StringComparer.Ordinal); using JsonDocument document = JsonDocument.Parse(text); - if (document.RootElement.ValueKind != JsonValueKind.Object) + return ReadProperties(document.RootElement, text); + } + + private static Dictionary ReadProperties(JsonElement root, string text) + { + var properties = new Dictionary(StringComparer.Ordinal); + if (root.ValueKind != JsonValueKind.Object) { throw new ToolException(UnreadableAnswer( - text, $"the answer is {document.RootElement.ValueKind}, not an object")); + text, $"the answer is {root.ValueKind}, not an object")); } - if (!document.RootElement.TryGetProperty("Properties", out JsonElement found)) return properties; + if (!root.TryGetProperty("Properties", out JsonElement found)) return properties; if (found.ValueKind != JsonValueKind.Object) { throw new ToolException(UnreadableAnswer( @@ -355,6 +450,51 @@ private static Dictionary ReadProperties(string text) return properties; } + /// + /// One item list out of MSBuild's answer. Item metadata is read as string values; metadata a + /// future SDK emits in another shape is ignored rather than made a parse failure, because the + /// doctor only needs identity and version and an extra boolean must not hide the app. + /// + private static List> ReadItems(JsonElement root, string name, string text) + { + var items = new List>(); + if (!root.TryGetProperty("Items", out JsonElement all) || all.ValueKind == JsonValueKind.Null) return items; + if (all.ValueKind != JsonValueKind.Object) + { + throw new ToolException(UnreadableAnswer( + text, $"`Items` is {all.ValueKind}, not an object of item lists")); + } + + if (!all.TryGetProperty(name, out JsonElement found) || found.ValueKind == JsonValueKind.Null) return items; + if (found.ValueKind != JsonValueKind.Array) + { + throw new ToolException(UnreadableAnswer( + text, $"`Items.{name}` is {found.ValueKind}, not an array")); + } + + foreach (JsonElement item in found.EnumerateArray()) + { + if (item.ValueKind != JsonValueKind.Object) + { + throw new ToolException(UnreadableAnswer( + text, $"an item in `Items.{name}` is {item.ValueKind}, not an object")); + } + + var values = new Dictionary(StringComparer.Ordinal); + foreach (JsonProperty metadata in item.EnumerateObject()) + { + if (metadata.Value.ValueKind == JsonValueKind.String) + values[metadata.Name] = metadata.Value.GetString() ?? ""; + else if (metadata.Value.ValueKind == JsonValueKind.Null) + values[metadata.Name] = ""; + } + + items.Add(values); + } + + return items; + } + /// /// The one failure wording for an answer this tool cannot read. Both halves of it come from /// outside — the quoted text and any name quoted inside the reason — so the whole diagnostic @@ -418,6 +558,27 @@ private static void Build(string project, BuildRequest request, TextWriter log) } } + /// + /// Publishes the project for one runtime identifier into a caller-owned directory. Kept here + /// with the other MSBuild calls so doctor --aot inherits the same UTF-8 pipe handling, + /// the same failure wording, and the same "stderr is part of the report" rule. + /// + internal static (int Exit, string Out, string Error) PublishAot( + string project, BuildRequest request, string runtimeIdentifier, string output) + { + project = Path.GetFullPath(project); + // PublishAot is deliberately not forced here: a command-line property is global, so it + // would also switch AOT on for referenced analyzer projects and fail a publish the app + // itself can do. Doctor only publishes an app that says it is AOT in its own project. + List arguments = + [ + "publish", project, "-c", request.Configuration, "-r", runtimeIdentifier, + "-o", output, "--nologo", "-v", "minimal", + ]; + if (request.Framework is not null) arguments.AddRange(["-f", request.Framework]); + return Run("dotnet", arguments, SourceDirectory(project)); + } + /// The folder the SDK should be run from: the one holding the app's configuration. private static string SourceDirectory(string project) => Path.GetDirectoryName(Path.GetFullPath(project)) ?? Directory.GetCurrentDirectory(); diff --git a/src/CuiSharp.Tools/Cli.cs b/src/CuiSharp.Tools/Cli.cs index 6d31434..7f6d8d1 100644 --- a/src/CuiSharp.Tools/Cli.cs +++ b/src/CuiSharp.Tools/Cli.cs @@ -28,6 +28,9 @@ internal static class Cli private static readonly Lazy BundledDocs = new(DocLibrary.LoadEmbedded); + /// The catalog this tool ships, shared with doctor so one bad resource is one error. + internal static ApiCatalog Catalog => EmbeddedCatalog.Value; + /// Runs the tool; the return value is the process exit code. internal static int Run(string[] args, TextWriter output, TextWriter error, TextReader? input = null) { @@ -74,6 +77,11 @@ internal static int Run(string[] args, TextWriter output, TextWriter error, Text return 0; } + if (options.Command == "doctor") return Doctor.Run(options, output); + + if (options.Command == "session" && options.Script is { Length: > 0 } script) + input = new StringReader(ReadScript(script)); + if (options.Viewports.Length > 1) return RunViewports(options, output, error); @@ -274,7 +282,24 @@ internal static bool PassPreconditions(HeadlessClient client, Options options, T return true; } - /// Feeds commands from stdin to one app session and prints each answer in order. + /// + /// A session script, read before the app starts so a typo in the path is one sentence rather + /// than a process that starts, waits for its banner, and then fails to read its first line. + /// + internal static string ReadScript(string path) + { + try + { + return File.ReadAllText(path); + } + catch (Exception failure) + when (failure is ArgumentException or IOException or UnauthorizedAccessException or NotSupportedException) + { + throw new ToolException($"Could not read the session script `{path}`: {failure.Message}"); + } + } + + /// Feeds commands from stdin or a script to one app session and prints each answer in order. internal static int Relay(HeadlessClient client, TextReader? input, TextWriter output, TextWriter error) { TextReader source = input ?? Console.In; @@ -416,6 +441,12 @@ internal sealed record Options internal string? State { get; init; } + internal string? Script { get; init; } + + internal bool Aot { get; init; } + + internal bool Strict { get; init; } + internal string Line => Argument.Length == 0 ? Command : $"{Command} {Argument}"; /// How long dwell should keep drawing. diff --git a/src/CuiSharp.Tools/Doctor.cs b/src/CuiSharp.Tools/Doctor.cs new file mode 100644 index 0000000..570eb81 --- /dev/null +++ b/src/CuiSharp.Tools/Doctor.cs @@ -0,0 +1,548 @@ +using System.Buffers; +using System.Globalization; +using System.Runtime.InteropServices; +using System.Text; +using System.Text.Json; +using System.Text.RegularExpressions; + +namespace CuiSharp.Tools; + +/// +/// dotnet cui doctor: the questions that decide whether this tool and an app agree before +/// a screenshot or a bug report is worth taking — the tool's own version, the reference the app +/// resolves, the icon it thinks it ships, and whether a NativeAOT publish is configured (and, with +/// --aot, what that publish actually warned about). +/// +/// The checks are deliberately separate from the driver: doctor evaluates a project with MSBuild +/// and reads one restore file, but starts no app and needs no native library. +/// +/// +internal static class Doctor +{ + internal enum Level + { + Ok, + Info, + Warning, + Error, + } + + internal sealed record Check(string Name, Level Level, string Message, string? Fix = null); + + internal sealed record Report( + string Tool, + string Catalog, + string? Project, + IReadOnlyList Checks) + { + internal bool Failed => Checks.Any(check => check.Level == Level.Error); + + internal bool Warned => Checks.Any(check => check.Level == Level.Warning); + } + + /// Runs the checks and writes the report; the return value is the process exit code. + internal static int Run(Cli.Options options, TextWriter output) + { + Report report = Examine(options); + output.WriteLine(options.Json ? RenderJson(report) : Render(report)); + return report.Failed || (options.Strict && report.Warned) ? 1 : 0; + } + + /// Everything doctor knows, without a process and without a frame. + internal static Report Examine(Cli.Options options) + { + string tool = DocLibrary.Version; + string catalog; + var checks = new List(); + try + { + catalog = Cli.Catalog.Version; + checks.Add(new Check( + "tool", + SameVersion(tool, catalog) ? Level.Ok : Level.Error, + SameVersion(tool, catalog) + ? $"CuiSharp.Tools {tool}, API catalog {catalog}" + : $"CuiSharp.Tools is {tool} but its bundled API catalog is {catalog}: this install is inconsistent", + SameVersion(tool, catalog) + ? null + : "reinstall the tool: dotnet tool update -g CuiSharp.Tools")); + } + catch (ToolException broken) + { + catalog = "unknown"; + checks.Add(new Check("tool", Level.Error, broken.Message, "reinstall the tool: dotnet tool update -g CuiSharp.Tools")); + } + + string? project = null; + try + { + project = AppLocator.FindProject(options.Project ?? Directory.GetCurrentDirectory()); + } + catch (ToolException failure) + { + checks.Add(new Check("project", Level.Error, failure.Message, "name the app with --project")); + return new Report(tool, catalog, null, checks); + } + + if (project is null) + { + checks.Add(new Check( + "project", + Level.Error, + $"no .csproj and no file-based .cs app at {DisplayPath(options.Project ?? Directory.GetCurrentDirectory())}", + "name the app with --project ")); + return new Report(tool, catalog, null, checks); + } + + AppLocator.Inspection inspection; + try + { + inspection = AppLocator.Inspect( + project, + new AppLocator.BuildRequest(Framework: options.Framework), + RuntimeInformation.RuntimeIdentifier); + } + catch (ToolException failure) + { + checks.Add(new Check("project", Level.Error, failure.Message, "fix the project, then run doctor again")); + return new Report(tool, catalog, Path.GetFullPath(project), checks); + } + + string framework = inspection.Property("TargetFramework"); + string frameworks = inspection.Property("TargetFrameworks"); + string kind = inspection.FileBased ? "file-based app" : "project"; + checks.Add(new Check( + "project", + Level.Ok, + $"{DisplayPath(project)} ({kind}{(framework.Length > 0 ? ", " + framework : "")})")); + + if (frameworks.Length > 0 && framework.Length == 0) + { + checks.Add(new Check( + "project", + Level.Error, + $"targets several frameworks ({frameworks}); doctor reads one at a time", + "choose one: dotnet cui doctor --framework ")); + } + + CheckReferences(checks, inspection, catalog); + checks.Add(IconCheck(project, inspection.Property("ApplicationIcon"))); + checks.AddRange(AotChecks(project, inspection, options, framework)); + return new Report(tool, catalog, Path.GetFullPath(project), checks); + } + + /// + /// The app's CuiSharp reference. A package is the normal case; a project reference is how the + /// repository builds its own samples, and it is not a version disagreement when the source is + /// what the app runs. + /// + internal static void CheckReferences( + List checks, AppLocator.Inspection inspection, string catalog) + { + List> packages = [.. inspection.PackagesNamed("CuiSharp")]; + List> projects = + [.. inspection.ProjectReferences.Where(IsCuiSharpProject)]; + + if (packages.Count == 0 && projects.Count == 0) + { + checks.Add(new Check( + "reference", + Level.Error, + "the app has no CuiSharp package or project reference", + "add one: dotnet add package CuiSharp")); + return; + } + + string? resolved = ResolvedVersion(inspection.Property("ProjectAssetsFile")); + foreach (IReadOnlyDictionary package in packages) + { + string declared = FirstNonEmpty( + package.GetValueOrDefault("Version", ""), + package.GetValueOrDefault("VersionOverride", "")); + bool floating = declared.Length == 0 || declared.Contains('*'); + + if (declared.Length == 0) + { + checks.Add(new Check( + "reference", + Level.Info, + "CuiSharp's version is supplied outside PackageReference (central package management?)", + null)); + } + else if (floating) + { + string now = resolved is null ? "" : $"; the last restore resolved {resolved}"; + checks.Add(new Check( + "reference", + Level.Warning, + $"CuiSharp@{declared} floats to the newest stable{now}", + "pin it for a build that does not move under you: #:package CuiSharp@ or \">")); + } + else + { + checks.Add(new Check("reference", Level.Ok, $"CuiSharp {declared} (package)")); + } + + string effective = resolved ?? (floating ? "" : declared); + if (effective.Length > 0 && !SameVersion(effective, catalog)) + { + checks.Add(new Check( + "reference", + Level.Warning, + $"the app resolves CuiSharp {effective}, but this tool carries the {catalog} API catalog", + $"update the tool: dotnet tool update -g CuiSharp.Tools --version {effective}")); + } + } + + foreach (IReadOnlyDictionary reference in projects) + { + string path = reference.GetValueOrDefault("FullPath", reference.GetValueOrDefault("Identity", "CuiSharp.csproj")); + checks.Add(new Check("reference", Level.Ok, $"CuiSharp project reference: {DisplayPath(path)}")); + } + + string localVersion = inspection.Property("CuiSharpVersion"); + if (projects.Count > 0 && localVersion.Length > 0 && !SameVersion(localVersion, catalog)) + { + checks.Add(new Check( + "reference", + Level.Warning, + $"the project's CuiSharpVersion is {localVersion}, but this tool carries the {catalog} API catalog", + $"update the tool: dotnet tool update -g CuiSharp.Tools --version {localVersion}")); + } + } + + /// + /// Whether a project reference names CuiSharp. The full path MSBuild evaluated is preferred; + /// the raw identity is normalised because a Windows-authored csproj keeps backslashes when it + /// is read on Linux or macOS. + /// + internal static bool IsCuiSharpProject(IReadOnlyDictionary reference) + { + string full = reference.GetValueOrDefault("FullPath", ""); + string candidate = (full.Length > 0 ? full : reference.GetValueOrDefault("Identity", "")) + .Replace('\\', Path.DirectorySeparatorChar) + .Replace('/', Path.DirectorySeparatorChar); + return Path.GetFileNameWithoutExtension(candidate).Equals("CuiSharp", StringComparison.OrdinalIgnoreCase); + } + + /// + /// The executable icon: a path the build accepts but a file that is not there is a warning on + /// a good day and a publish failure on Windows, so it is checked as a file, not a property. + /// + internal static Check IconCheck(string project, string icon) + { + if (string.IsNullOrWhiteSpace(icon)) + { + return new Check( + "icon", + Level.Info, + "no ApplicationIcon; the executable uses the platform default", + null); + } + + string directory = Path.GetDirectoryName(Path.GetFullPath(project)) ?? Directory.GetCurrentDirectory(); + string relative = icon + .Replace('\\', Path.DirectorySeparatorChar) + .Replace('/', Path.DirectorySeparatorChar); + string full; + try + { + full = Path.GetFullPath(Path.Combine(directory, relative)); + } + catch (Exception failure) when (failure is ArgumentException or IOException or NotSupportedException) + { + return new Check( + "icon", + Level.Error, + $"ApplicationIcon `{icon}` is not a path this machine can resolve: {failure.Message}", + "point ApplicationIcon at a .ico beside the project"); + } + + if (!File.Exists(full)) + { + return new Check( + "icon", + Level.Error, + $"ApplicationIcon `{icon}` points at {DisplayPath(full)}, which does not exist", + "restore the .ico or remove ApplicationIcon"); + } + + return new Check("icon", Level.Ok, $"{DisplayPath(full)} ({new FileInfo(full).Length.ToString("N0", CultureInfo.InvariantCulture)} B)"); + } + + /// + /// NativeAOT configuration, and with --aot the publish itself. The base check reads the + /// property a publish with the current RID would see, so the templates' condition on + /// RuntimeIdentifier is judged the way the build judges it. + /// + private static IEnumerable AotChecks( + string project, AppLocator.Inspection inspection, Cli.Options options, string framework) + { + bool configured = IsTrue(inspection.Property("PublishAot")); + string rid = FirstNonEmpty(inspection.Property("RuntimeIdentifier"), RuntimeInformation.RuntimeIdentifier); + if (!configured) + { + yield return new Check( + "aot", + options.Aot ? Level.Error : Level.Info, + options.Aot + ? "this app does not enable PublishAot, so --aot has no native compilation to inspect" + : "PublishAot is off, so a publish keeps the .NET runtime beside the app", + "add true under the RuntimeIdentifier condition, or #:property PublishAot=true"); + yield break; + } + + yield return new Check( + "aot", + Level.Ok, + options.Aot + ? $"PublishAot for {rid}; IL2xxx/IL3xxx warnings appear only in a publish" + : $"PublishAot for {rid}; run `dotnet cui doctor --aot` to check IL2xxx/IL3xxx warnings"); + + if (!options.Aot) yield break; + + if (framework.Length == 0) + { + yield return new Check( + "aot", + Level.Error, + "cannot publish without a resolved target framework", + "choose one: dotnet cui doctor --framework --aot"); + yield break; + } + + DirectoryInfo scratch = Directory.CreateTempSubdirectory("cui-doctor-"); + try + { + (int exit, string report, string complaints) = AppLocator.PublishAot( + project, new AppLocator.BuildRequest(Framework: options.Framework), rid, scratch.FullName); + string[] warnings = AotWarnings(report + Environment.NewLine + complaints); + + if (exit != 0) + { + yield return new Check( + "aot", + Level.Error, + $"NativeAOT publish for {rid} failed:{Environment.NewLine}{Clip((complaints + Environment.NewLine + report).Trim())}", + $"run it yourself for the full log: dotnet publish -c Release -r {rid}"); + } + else if (warnings.Length == 0) + { + yield return new Check("aot", Level.Ok, $"NativeAOT publish for {rid}: no IL2xxx/IL3xxx warnings"); + } + else + { + for (int i = 0; i < Math.Min(warnings.Length, 12); i++) + { + yield return new Check("aot", Level.Warning, Clip(warnings[i], 320)); + } + + if (warnings.Length > 12) + { + yield return new Check("aot", Level.Warning, $"{warnings.Length - 12} more AOT warnings; run the publish for the full log"); + } + } + } + finally + { + try + { + scratch.Delete(recursive: true); + } + catch (Exception cleanup) when (cleanup is IOException or UnauthorizedAccessException) + { + // A temporary publish left behind is not a reason to lose the report it produced. + } + } + } + + /// + /// The NativeAOT, trim and CuiSharp analyzer warnings in a publish log, de-duplicated in the + /// order they appeared. Only warnings a person can act on by name are kept; the rest of a + /// verbose publish would drown the one line that matters. + /// + internal static string[] AotWarnings(string report) + { + var seen = new HashSet(StringComparer.Ordinal); + var warnings = new List(); + foreach (string raw in report.Split(['\r', '\n'], StringSplitOptions.RemoveEmptyEntries)) + { + string line = raw.Trim(); + if (!Regex.IsMatch(line, @"\bwarning\s+(IL[23]\d{3}|CUI\d{3})\b", RegexOptions.IgnoreCase | RegexOptions.CultureInvariant)) + continue; + if (seen.Add(line)) warnings.Add(line); + } + + return [.. warnings]; + } + + /// The version a restore actually chose, from the assets file the evaluation named. + internal static string? ResolvedVersion(string assetsFile) + { + if (string.IsNullOrEmpty(assetsFile) || !File.Exists(assetsFile)) return null; + try + { + using JsonDocument document = JsonDocument.Parse(File.ReadAllBytes(assetsFile)); + if (!document.RootElement.TryGetProperty("libraries", out JsonElement libraries) + || libraries.ValueKind != JsonValueKind.Object) + { + return null; + } + + foreach (JsonProperty library in libraries.EnumerateObject()) + { + const string prefix = "CuiSharp/"; + if (library.Name.StartsWith(prefix, StringComparison.OrdinalIgnoreCase)) + return library.Name[prefix.Length..]; + } + } + catch (Exception failure) when (failure is IOException or UnauthorizedAccessException or JsonException) + { + // A stale or half-written assets file cannot answer, and doctor still has the declared + // reference and the tool version to compare; the tree is not worth a stack trace. + } + + return null; + } + + /// + /// Whether two package versions name the same build. File versions carry an extra zero + /// (`0.4.2.0`), and a restore may carry a prerelease suffix; those are not a mismatch. + /// + internal static bool SameVersion(string left, string right) + { + static string Normalize(string value) + { + string version = value.Trim(); + if (version.StartsWith('v')) version = version[1..]; + + int metadata = version.IndexOf('+'); + if (metadata >= 0) version = version[..metadata]; + + string numeric = version; + string suffix = ""; + int prerelease = version.IndexOf('-'); + if (prerelease >= 0) + { + numeric = version[..prerelease]; + suffix = version[prerelease..]; + } + + if (Version.TryParse(numeric, out Version? parsed)) + { + numeric = parsed.Revision > 0 ? parsed.ToString(4) + : parsed.Build >= 0 ? parsed.ToString(3) + : parsed.ToString(2); + } + + return numeric + suffix; + } + + return Normalize(left).Equals(Normalize(right), StringComparison.OrdinalIgnoreCase); + } + + private static bool IsTrue(string value) => + value.Equals("true", StringComparison.OrdinalIgnoreCase) || value.Equals("1", StringComparison.Ordinal); + + private static string FirstNonEmpty(string first, string second) => + first.Length > 0 ? first : second; + + private static string Clip(string text, int budget = 1_200) => + text.Length > budget ? text[..budget] + "…" : text; + + /// A path a person can read: relative while it is under the current directory. + internal static string DisplayPath(string path) + { + try + { + string full = Path.GetFullPath(path); + string relative = Path.GetRelativePath(Directory.GetCurrentDirectory(), full); + if (relative == ".") return "."; + bool outside = relative == ".." + || relative.StartsWith(".." + Path.DirectorySeparatorChar, StringComparison.Ordinal) + || Path.IsPathRooted(relative); + return outside ? full : relative; + } + catch (Exception failure) when (failure is ArgumentException or IOException or NotSupportedException) + { + return path; + } + } + + internal static string Render(Report report) + { + var text = new StringBuilder(); + text.Append("CuiSharp doctor tool ") + .Append(report.Tool) + .Append(" catalog ") + .Append(report.Catalog) + .AppendLine(); + + foreach (Check check in report.Checks) + { + string level = check.Level switch + { + Level.Ok => "ok", + Level.Info => "info", + Level.Warning => "warn", + _ => "fail", + }; + text.Append(level.PadRight(5)) + .Append(" ") + .Append(check.Name.PadRight(10)) + .AppendLine(Indent(check.Message, 17)); + if (check.Fix is { Length: > 0 } fix) + { + text.Append(" ") + .Append("fix".PadRight(10)) + .AppendLine(Indent(fix, 17)); + } + } + + int errors = report.Checks.Count(check => check.Level == Level.Error); + int warnings = report.Checks.Count(check => check.Level == Level.Warning); + text.AppendLine(); + text.Append(errors > 0 + ? $"{errors} error{(errors == 1 ? "" : "s")}, {warnings} warning{(warnings == 1 ? "" : "s")}." + : warnings > 0 + ? $"{warnings} warning{(warnings == 1 ? "" : "s")}; --strict makes doctor fail on them." + : "no problems found."); + return text.ToString().TrimEnd(); + + static string Indent(string value, int width) => + value.ReplaceLineEndings("\n").Replace("\n", "\n" + new string(' ', width), StringComparison.Ordinal); + } + + internal static string RenderJson(Report report) + { + var buffer = new ArrayBufferWriter(); + using (var writer = new Utf8JsonWriter(buffer)) + { + writer.WriteStartObject(); + writer.WriteString("tool", report.Tool); + writer.WriteString("catalog", report.Catalog); + if (report.Project is null) writer.WriteNull("project"); + else writer.WriteString("project", report.Project); + writer.WriteBoolean("ok", !report.Failed); + writer.WriteStartArray("checks"); + foreach (Check check in report.Checks) + { + writer.WriteStartObject(); + writer.WriteString("name", check.Name); + writer.WriteString("level", check.Level.ToString().ToLowerInvariant() switch + { + "warning" => "warn", + _ => check.Level.ToString().ToLowerInvariant(), + }); + writer.WriteString("message", check.Message); + if (check.Fix is { Length: > 0 } fix) writer.WriteString("fix", fix); + writer.WriteEndObject(); + } + + writer.WriteEndArray(); + writer.WriteEndObject(); + } + + return Encoding.UTF8.GetString(buffer.WrittenSpan); + } +} diff --git a/src/CuiSharp.Tools/Grammar.cs b/src/CuiSharp.Tools/Grammar.cs index b4058a7..75408bf 100644 --- a/src/CuiSharp.Tools/Grammar.cs +++ b/src/CuiSharp.Tools/Grammar.cs @@ -124,6 +124,26 @@ private sealed class Symbols HelpName = "dir", }; + // Windows PowerShell has no `<` input redirection, so a session has to be able to name + // its script instead of needing a POSIX shell in front of it. + internal Option Script = new("--script") + { + Description = "read the session's protocol commands from this file instead of stdin", + HelpName = "file", + }; + + // ---- doctor checks ------------------------------------------------------------------- + + internal Option Aot = new("--aot") + { + Description = "publish an app that enables NativeAOT and report IL2xxx/IL3xxx warnings (slow)", + }; + + internal Option Strict = new("--strict") + { + Description = "exit 1 when a check warns, not only when it fails", + }; + // ---- what has to be true before the command runs ------------------------------------ internal Option Frames = new("--frames") @@ -300,19 +320,34 @@ private static (Symbols Symbols, RootCommand Root) Build() var session = new Command( "session", - "read one protocol command per line from stdin, against one build and one app: " - + "`dotnet cui session < commands.txt`"); + "read one protocol command per line from stdin or --script, against one build and one app: " + + "`dotnet cui session --script commands.txt`"); foreach (Option option in symbols.AppOptions) session.Options.Add(option); + session.Options.Add(symbols.Script); root.Subcommands.Add(session); root.Subcommands.Add(Ps(symbols)); root.Subcommands.Add(Api(symbols)); root.Subcommands.Add(Icons(symbols)); root.Subcommands.Add(Docs(symbols)); + root.Subcommands.Add(Doctor(symbols)); return (symbols, root); } + private static Command Doctor(Symbols symbols) + { + var doctor = new Command( + "doctor", + "check this tool against the app's CuiSharp reference, icon and NativeAOT setup"); + doctor.Options.Add(symbols.Project); + doctor.Options.Add(symbols.Framework); + doctor.Options.Add(symbols.Json()); + doctor.Options.Add(symbols.Aot); + doctor.Options.Add(symbols.Strict); + return doctor; + } + private static Command Ps(Symbols symbols) { var ps = new Command("ps", "list running live CuiSharp windows (started with --live)"); @@ -710,6 +745,9 @@ internal static Cli.Options Resolve(ParseResult result, string[] appArguments) Viewports = viewports, Environment = ReadEnvironment(result.GetValue(S.Env)), State = result.GetValue(S.State), + Script = result.GetValue(S.Script), + Aot = result.GetValue(S.Aot), + Strict = result.GetValue(S.Strict), Seconds = command == "dwell" ? double.Parse(argument, CultureInfo.InvariantCulture) : 0, WaitSeconds = waiting ? waitSeconds : 0, WaitLine = waitLine, diff --git a/src/CuiSharp/Interop/Enums.g.cs b/src/CuiSharp/Interop/Enums.g.cs index 04e53e7..64e0ca9 100644 --- a/src/CuiSharp/Interop/Enums.g.cs +++ b/src/CuiSharp/Interop/Enums.g.cs @@ -449,7 +449,7 @@ public enum QueryType } /// The method, the URL and Send, as in an API client. Enter in the URL sends; while `loading` the button cancels. cui_response_status shows a response's status, time and size in one line. cui_url_params and cui_url_set_params move a URL's query to and from key-value pairs, decoding and encoding it, so a parameters table can stay in step with the URL. -public enum HttpMethod +public enum HttpVerb { Get = 0, Post = 1, diff --git a/src/CuiSharp/Interop/Types.cs b/src/CuiSharp/Interop/Types.cs index 16f5ebd..0938a93 100644 --- a/src/CuiSharp/Interop/Types.cs +++ b/src/CuiSharp/Interop/Types.cs @@ -1,3 +1,4 @@ +using System.Globalization; using CuiSharp.Interop; // Hand-written value types. Enums, structs, functions and icons are generated: @@ -73,10 +74,20 @@ public static Color Mix(Color a, Color b, float t) => UiMarshal.FromNative(Native.Mix(UiMarshal.ToNative(a), UiMarshal.ToNative(b), t)); /// Multiplies the color's alpha, for a disabled or washed-out variant. + /// + /// A theme token has no channels to multiply until CUI resolves it, so a token is returned + /// unchanged. Resolve it in a frame first when the tint itself has to be translucent: + /// ui.TokenColor(Token.Accent).WithAlpha(0.14f). + /// public Color WithAlpha(float multiplier) => - UiMarshal.FromNative(Native.Alpha(UiMarshal.ToNative(this), multiplier)); + IsToken ? this : UiMarshal.FromNative(Native.Alpha(UiMarshal.ToNative(this), multiplier)); - public bool IsToken => G == 0xC5 && B == 0x1D; + /// + /// Whether this is a semantic token rather than four channels. CUI marks tokens with an alpha + /// of zero and a fixed G/B pair, so the whole marker is checked; the RGB it will draw is + /// known only while a frame is drawing. + /// + public bool IsToken => A == 0 && G == 0xC5 && B == 0x1D && R != 0; /// /// The same four channels, or the same token. A token compares equal to itself and not to the @@ -102,7 +113,10 @@ public override string ToString() => : A == 255 ? $"#{R:x2}{G:x2}{B:x2}" : $"#{R:x2}{G:x2}{B:x2}{A:x2}"; } -/// cui_size: FIT, FILL, a fixed size in points, or a percentage of the parent. +/// +/// cui_size: fit the content, grow into the space available, a fixed size in points, or a +/// percentage of the parent. +/// public readonly struct Size { internal readonly SizeKind Kind; @@ -110,11 +124,49 @@ public readonly struct Size private Size(SizeKind kind, float value) { Kind = kind; Value = value; } + /// As large as the content needs. public static readonly Size Fit = new(SizeKind.Fit, 0); + + /// Grow to fill the space available, sharing it with other growing siblings. public static readonly Size Fill = new(SizeKind.Grow, 1); - public static Size Grow(float w) => new(SizeKind.Grow, w); - public static Size Px(float v) => new(SizeKind.Fixed, v); - public static Size Percent(float p) => new(SizeKind.Percent, p); + + /// Grow to fill, with this share of the available space among growing siblings. + public static Size Grow(float weight) => new(SizeKind.Grow, weight); + + /// A fixed size in points. + public static Size Px(float points) => new(SizeKind.Fixed, points); + + /// of the parent's size, from 0 to 100. + public static Size Percent(float percent) => new(SizeKind.Percent, percent); + + /// Whether this is . + public bool IsFit => Kind == SizeKind.Fit; + + /// + /// Whether this grows into the available space: true for and for every + /// weight. + /// + public bool IsFill => Kind == SizeKind.Grow; + + /// Whether this is a fixed number of points. + public bool IsFixed => Kind == SizeKind.Fixed; + + /// Whether this is a percentage of the parent. + public bool IsPercent => Kind == SizeKind.Percent; + + /// The fixed size, when is true. + public bool TryGetPoints(out float points) + { + points = IsFixed ? Value : 0; + return IsFixed; + } + + /// The percentage of the parent, when is true. + public bool TryGetPercent(out float percent) + { + percent = IsPercent ? Value : 0; + return IsPercent; + } /// /// A bare number is a fixed size in points, so Width = 240 reads like @@ -124,6 +176,16 @@ public readonly struct Size public static implicit operator Size(float points) => Px(points); internal static Size FromParts(SizeKind kind, float value) => new(kind, value); + + /// Fit, Fill, 240px or 50% — what a debugger should show. + public override string ToString() => Kind switch + { + SizeKind.Fit => "Fit", + SizeKind.Grow => Value == 1 ? "Fill" : $"Grow({Value.ToString("0.###", CultureInfo.InvariantCulture)})", + SizeKind.Fixed => $"{Value.ToString("0.###", CultureInfo.InvariantCulture)}px", + SizeKind.Percent => $"{Value.ToString("0.###", CultureInfo.InvariantCulture)}%", + _ => $"{Kind} {Value.ToString("0.###", CultureInfo.InvariantCulture)}", + }; } diff --git a/src/CuiSharp/Ui/CuiHttp.cs b/src/CuiSharp/Ui/CuiHttp.cs index 5e9808d..b96269f 100644 --- a/src/CuiSharp/Ui/CuiHttp.cs +++ b/src/CuiSharp/Ui/CuiHttp.cs @@ -15,7 +15,7 @@ public static unsafe class CuiHttp public static string Reason(int status) => Marshal.PtrToStringUTF8(Native.HttpReason(status)) ?? ""; /// The name of a method, e.g. "PATCH". - public static string MethodName(HttpMethod method) => Marshal.PtrToStringUTF8(Native.HttpMethodName((int)method)) ?? ""; + public static string MethodName(HttpVerb method) => Marshal.PtrToStringUTF8(Native.HttpMethodName((int)method)) ?? ""; /// /// Decodes a URL's query into pairs, the way the request bar's parameters table shows it. diff --git a/src/CuiSharp/Ui/HttpRequestBar.g.cs b/src/CuiSharp/Ui/HttpRequestBar.g.cs index efc8ae0..2cf1d19 100644 --- a/src/CuiSharp/Ui/HttpRequestBar.g.cs +++ b/src/CuiSharp/Ui/HttpRequestBar.g.cs @@ -14,13 +14,13 @@ public static unsafe class HttpRequestBarUiExtensions extension(Ui ui) { /// cui_request_bar_ex - public RequestBarResult RequestBar(UiText id, ref HttpMethod method, ref string url, int cap = 2048, RequestBarOpts o = default) + public RequestBarResult RequestBar(UiText id, ref HttpVerb method, ref string url, int cap = 2048, RequestBarOpts o = default) { int __method = (int)method; var __urlSlot = ui.RentText(Native.MakeId(ui.Handle, Utf8.Get(id)) ^ 0x19448d47u, ref url, (int)cap); var __opts = o.ToNative(); var __result = Native.RequestBar(ui.Handle, Utf8.Get(id), ref __method, (nint)__urlSlot.Buffer, (nuint)__urlSlot.Capacity, in __opts); - method = (HttpMethod)__method; + method = (HttpVerb)__method; if (Ui.TextChanged(__urlSlot)) url = Ui.DecodeText(__urlSlot); WidgetRecorder.Note(ui.Handle, "RequestBar", id); return RequestBarResult.FromNative(__result); From b4a66820cee50a044e8caa3d42eae98d3f0a2128 Mon Sep 17 00:00:00 2001 From: slaveoftime Date: Sun, 15 Nov 2026 18:58:55 +0800 Subject: [PATCH 4/5] Add semantic roles, values and automation ids - record role, name, value, state and automation id on every node - add ui.Automation and make ui.Id/Keyed supply stable automation ids - capture text, numeric and toggle values in generated wrappers without frame allocations - add tree --details and find/click --role, --value and --id - project the tree with SemanticNode.ToAccessibility for future platform adapters --- CHANGELOG.md | 5 + README.md | 3 + docs/API-SURFACE.txt | 90 ++++++- docs/ARCHITECTURE.md | 11 +- skills/cui-dotnet/SKILL.md | 30 +++ skills/cui-dotnet/api/catalog.json | 20 +- skills/cui-dotnet/llms.txt | 1 + src/CuiSharp.Tests/HeadlessLoopTests.cs | 22 ++ src/CuiSharp.Tests/SemanticTreeTests.cs | 111 +++++++++ src/CuiSharp.Tests/ToolArgumentTests.cs | 49 +++- src/CuiSharp.Tests/WidgetQueryTests.cs | 25 ++ src/CuiSharp.Tools/Grammar.cs | 99 +++++++- src/CuiSharp/Hosting/HeadlessApp.cs | 31 ++- src/CuiSharp/Hosting/HeadlessLoop.cs | 4 +- src/CuiSharp/Hosting/LiveSession.cs | 6 +- src/CuiSharp/Semantics/SemanticNode.cs | 129 +++++++++- src/CuiSharp/Semantics/SemanticRole.cs | 199 +++++++++++++++ src/CuiSharp/Semantics/WidgetQuery.cs | 86 +++++-- src/CuiSharp/Semantics/WidgetRecorder.cs | 227 ++++++++++++++++-- src/CuiSharp/Ui/AiInterfaces.g.cs | 4 +- src/CuiSharp/Ui/ApiExplorer.g.cs | 2 +- ...meMenuBarToolbarStatusBarDocumentTabs.g.cs | 4 +- src/CuiSharp/Ui/Buttons.g.cs | 2 +- src/CuiSharp/Ui/CodeEditor.g.cs | 2 +- src/CuiSharp/Ui/CommitGraph.g.cs | 2 +- src/CuiSharp/Ui/Conversation.g.cs | 2 +- src/CuiSharp/Ui/CurveAndGradientEditors.g.cs | 4 +- src/CuiSharp/Ui/DataGrid.g.cs | 2 +- src/CuiSharp/Ui/DependencyGraph.g.cs | 2 +- src/CuiSharp/Ui/Docking.g.cs | 16 +- src/CuiSharp/Ui/Emoji.g.cs | 2 +- src/CuiSharp/Ui/FlameGraph.g.cs | 2 +- src/CuiSharp/Ui/HttpRequestBar.g.cs | 2 +- ...hartEventTrackReadoutDotMatrixDisplay.g.cs | 2 +- src/CuiSharp/Ui/MoreComponents.g.cs | 2 +- src/CuiSharp/Ui/MoreFeedback.g.cs | 2 +- src/CuiSharp/Ui/MoreInputs.g.cs | 6 +- src/CuiSharp/Ui/MotionAndTextEffects.g.cs | 6 +- src/CuiSharp/Ui/Navigation.g.cs | 2 +- src/CuiSharp/Ui/NetworkWaterfall.g.cs | 2 +- src/CuiSharp/Ui/Pickers.g.cs | 8 +- src/CuiSharp/Ui/Pipeline.g.cs | 2 +- .../RegularExpressionsAndTheRegexTester.g.cs | 2 +- src/CuiSharp/Ui/SchedulePicker.g.cs | 2 +- src/CuiSharp/Ui/SelectComboboxDatePicker.g.cs | 2 +- src/CuiSharp/Ui/SelectionControls.g.cs | 14 +- src/CuiSharp/Ui/TraceViewer.g.cs | 2 +- src/CuiSharp/Ui/TreeTableAndPathBar.g.cs | 4 +- src/CuiSharp/Ui/Ui.IdScopes.cs | 34 ++- src/CuiSharp/Ui/Ui.Overlays.cs | 24 +- src/CuiSharp/Ui/Ui.cs | 10 +- tools/bindgen.cs | 52 +++- 52 files changed, 1229 insertions(+), 145 deletions(-) create mode 100644 src/CuiSharp/Semantics/SemanticRole.cs diff --git a/CHANGELOG.md b/CHANGELOG.md index 05905b9..c5377c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,11 @@ different things. environment, and a refusal to guess between equally good matches. `CUISHARP_VIEWPORT` makes a headless frame the requested size; `ui.MarkReady()` and `--wait ready` replace frame counting for async data. +- **Semantic roles, values, state and automation ids.** Every recorded node now exposes `Role`, + `Name`, `Value`, `SemanticState` and `AutomationId`; `ui.Id` and `ui.Automation` name a control + independently of its label, and `SemanticNode.ToAccessibility()` is the projection a platform + accessibility adapter will consume. `dotnet cui tree --details` prints the metadata, and + `find`/`click` accept `--role`, `--value` and `--id` as well as the existing query text. ### Changed diff --git a/README.md b/README.md index e7a3ba2..d5e7e49 100644 --- a/README.md +++ b/README.md @@ -220,6 +220,9 @@ Assert.True(app.PaintedAnything()); ```sh dotnet cui tree # the controls of the last frame, nested +dotnet cui tree --details # …with role, automation id, value and state +dotnet cui find --role button Save # find by semantic role and label +dotnet cui find --value Milk # find by the value a field holds dotnet cui click Save # click a control, print the frame it produced dotnet cui click "Button Save" # …when a heading says the same word dotnet cui click "editor > Save" # …or the path to the control diff --git a/docs/API-SURFACE.txt b/docs/API-SURFACE.txt index 99b71d6..e4e31db 100644 --- a/docs/API-SURFACE.txt +++ b/docs/API-SURFACE.txt @@ -114,6 +114,8 @@ class CuiSharp.AppChromeMenuBarToolbarStatusBarDocumentTabsUiExtensions+$2E78 Void ToolbarSeparator() Void ToolbarSpacer() class CuiSharp.AppChromeMenuBarToolbarStatusBarDocumentTabsUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4+$D152016828D0F2CB0A8B78500F4F70D3 +struct CuiSharp.AutomationScope + Void Dispose() struct CuiSharp.AvatarOpts field Boolean Square field Single Size @@ -1534,7 +1536,7 @@ class CuiSharp.Hosting.HeadlessApp HeadlessApp ScrollAt(Single, Single, Single, Single) HeadlessApp Type(String) Int32 Settle(Int32, Nullable) - String Print(Boolean) + String Print(Boolean, Boolean) String PrintLayout() String SavePng(String, Boolean) String ToString() @@ -1593,8 +1595,12 @@ struct CuiSharp.Hosting.WidgetTarget WidgetTarget Click() WidgetTarget Hover() property RectF Rect { get; } + property SemanticRole Role { get; } + property SemanticState State { get; } + property String AutomationId { get; } property String Kind { get; } property String Text { get; } + property String Value { get; } struct CuiSharp.HoverCardOpts field Placement Placement field Single Delay @@ -5460,23 +5466,93 @@ class CuiSharp.SelectionControlsUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B Boolean Slider(UiText, ref Single, Single, Single, SliderOpts) Boolean Switch(UiText, ref Boolean, CheckOpts) class CuiSharp.SelectionControlsUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4+$D152016828D0F2CB0A8B78500F4F70D3 +class CuiSharp.SemanticAccessibilityNode + Boolean Equals(Object) + Boolean Equals(SemanticAccessibilityNode) + Int32 GetHashCode() + SemanticAccessibilityNode $() + String ToString() + Void Deconstruct(out SemanticRole, out String, out String, out SemanticState, out String, out RectF, out IReadOnlyList) + ctor(SemanticRole, String, String, SemanticState, String, RectF, IReadOnlyList) + property IReadOnlyList Children { get; set; } + property RectF Bounds { get; set; } + property SemanticRole Role { get; set; } + property SemanticState State { get; set; } + property String AutomationId { get; set; } + property String Name { get; set; } + property String Value { get; set; } class CuiSharp.SemanticNode Boolean TryFind(String, out SemanticNode) IEnumerable Descendants() + SemanticAccessibilityNode ToAccessibility() SemanticNode Find(String) - String Print(Boolean) + String Describe() + String Print(Boolean, Boolean) String ToString() property Boolean Detached { get; } property Boolean HasOwnRect { get; } property Boolean IsContainer { get; set; } + property Boolean IsEnabled { get; } + property Boolean IsFocused { get; } property IReadOnlyList Children { get; } property Int32 Depth { get; } property RectF Rect { get; } property SemanticNode Parent { get; } + property SemanticRole Role { get; } + property SemanticState State { get; } + property String AutomationId { get; } property String Kind { get; } + property String Name { get; } property String Path { get; } property String Text { get; } + property String Value { get; } property UInt32 Id { get; } +enum CuiSharp.SemanticRole + Button + CheckBox + ComboBox + Container + Dialog + Frame + Heading + Image + Link + List + ListItem + Menu + MenuItem + None + Other + ProgressBar + RadioButton + Separator + Slider + SpinButton + Switch + Tab + TabList + Table + TableCell + TableRow + Text + TextBox + Tooltip + Tree + TreeItem +class CuiSharp.SemanticRoles + static Boolean TryParse(String, out SemanticRole) + static SemanticRole Of(String) + static String Name(SemanticRole) +enum CuiSharp.SemanticState + Checked + Enabled + Expanded + Focused + None + ReadOnly + Selected +class CuiSharp.SemanticStates + static String Format(SemanticState) struct CuiSharp.SemanticWidget Boolean Contains(Single, Single) String ToString() @@ -5485,8 +5561,11 @@ struct CuiSharp.SemanticWidget field Boolean IsContainer field Int32 Depth field RectF Rect + field SemanticState State + field String AutomationId field String Kind field String Text + field String Value field UInt32 Id property ValueTuple Center { get; } struct CuiSharp.Series @@ -6113,6 +6192,7 @@ struct CuiSharp.TreemapOpts field Size Width field String Format struct CuiSharp.Ui + AutomationScope Automation(UiText) Boolean DateToday(out Date) Boolean FilterBar(UiText, ReadOnlySpan, Span, ref String, Int32) Boolean KeyDown(Key) @@ -6294,10 +6374,16 @@ struct CuiSharp.WheelOpts field Size Width struct CuiSharp.WidgetQuery String ToString() + property Nullable Role { get; } property String Kind { get; } property String Text { get; } + property String Value { get; } property String[] Path { get; } static WidgetQuery Parse(String) class CuiSharp.WidgetRecorder property Boolean Enabled { get; } static Void Note(IntPtr, String, UiText) + static Void Note(IntPtr, String, UiText, SemanticState) + static Void NoteValue(IntPtr, String, UiText, Boolean, SemanticState) + static Void NoteValue(IntPtr, String, UiText, Double, SemanticState) + static Void NoteValue(IntPtr, String, UiText, String, SemanticState) diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index 9df9562..cb11d49 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -277,8 +277,15 @@ makes a frame allocate. The snapshot itself is data that outlives the frame, so outside the window `FrameStats` measures. `SemanticNode` rebuilds that nesting; `WidgetQuery` is the vocabulary a search uses (a label, a -kind and a label, or a path) and it ranks: exact before prefix before substring, and an actionable -control before static text at the same tier. +kind and a label, a role, a value, or a path) and it ranks: exact before prefix before substring, +and an actionable control before static text at the same tier. A node also carries the +`SemanticRole`, an optional `Value`, `SemanticState` flags and an optional `AutomationId`: a +`ui.Id` scope supplies the native identity and the automation id together, while `ui.Automation` +supplies only the latter. `SemanticNode.ToAccessibility()` is the projection a UIA, AT-SPI or +NSAccessibility adapter consumes; the platform layers themselves stay ahead, not implied by the +recording layer. Values are captured as the wrapper already has them (a text field's string, a +slider's number, a toggle's bool) and formatted after the frame, so recording still adds 0 B to the +draw. ## Tests diff --git a/skills/cui-dotnet/SKILL.md b/skills/cui-dotnet/SKILL.md index 757fd41..678977e 100644 --- a/skills/cui-dotnet/SKILL.md +++ b/skills/cui-dotnet/SKILL.md @@ -642,11 +642,15 @@ speaks one command per line. No window, no code added to the app. ```sh dotnet cui tree # the controls of the last frame, nested +dotnet cui tree --details # …with role, automation id, value and state dotnet cui find Save # one control: kind, label, rectangle dotnet cui find id:draft # or by the id the app gave it, in any language +dotnet cui find --role button Save # by semantic role, with an optional label +dotnet cui find --value Milk # by the value a field or slider holds dotnet cui click Save # click it, print the frame that reacted dotnet cui click "Button Save type" # be specific when a label is ambiguous dotnet cui click "editor > Save" # or the path to the control, containers bare +dotnet cui click --id pause:42 # a stable automation id, independent of the label dotnet cui type Milk # type into the focused control dotnet cui key Tab # a key by name dotnet cui png frame.png # the frame as a PNG, to look at @@ -694,6 +698,32 @@ not in the app's folder. save about 180 KB (`docs/SIZE.md`): publish with `-p:CuiSharpHeadless=true` before pointing `--app` at it. +### Roles, values and stable automation ids + +Every recorded node has a `Role` (`button`, `textbox`, `checkbox`, `tab`, `menuitem`, `dialog`, …), +a `Name`, an optional `Value`, `SemanticState` flags and an optional `AutomationId`. The plain tree +keeps its short `Button "Save"` form; `tree --details` adds the rest: + +```sh +dotnet cui tree --details +dotnet cui find --role button Save +dotnet cui find --value Milk +dotnet cui find --id pause:42 +``` + +`ui.Id` gives the native state and the automation id the same stable key. When the label is +translated but the native identity must not change, use the smaller scope: + +```csharp +using (ui.Automation("pause:42")) + ui.IconButton(Icons.Pause, new ButtonOpts { Tooltip = "Pause" }); +``` + +`ui.Keyed(items, key)` gives each row the integer automation id `#`. The same data is exposed +in-process as `SemanticNode.Role`/`Value`/`State`/`AutomationId`, and +`SemanticNode.ToAccessibility()` projects it into the flat record a UIA, AT-SPI or NSAccessibility +adapter will consume; the platform adapters themselves are not implemented yet. + ## Headless viewports, state and readiness A headless run takes its frame size from `CUISHARP_VIEWPORT`, not from the app's own diff --git a/skills/cui-dotnet/api/catalog.json b/skills/cui-dotnet/api/catalog.json index 105a490..11dfe2b 100644 --- a/skills/cui-dotnet/api/catalog.json +++ b/skills/cui-dotnet/api/catalog.json @@ -14,6 +14,7 @@ { "name": "CuiSharp.ApiExplorerOpts", "displayName": "ApiExplorerOpts", "kind": "struct", "summary": "cui_api_explorer_opts. All fields are optional; zero selects the native default.", "members": [{ "name": "Width", "kind": "field", "id": "field|Width|0|0|Size|||h4006d8d1aa3607cf3007c2fd6686981e9812586a28b9a4d7a283aeadfcd379ad", "signature": "public Size Width", "summary": "cui_size width" }, { "name": "Height", "kind": "field", "id": "field|Height|0|0|float|||ha333299f179a1814155cda66a26b50fd7f476d27bf3ad5ffbc147c5abc8227fd", "signature": "public float Height", "summary": "float height" }] }, { "name": "CuiSharp.ApiExplorerResult", "displayName": "ApiExplorerResult", "kind": "struct", "summary": "Elements are copied into the frame arena by the wrapper.", "members": [{ "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||int Selected;int TryIt = default||hac6596a15f6063fe4ce04a8c27bf6079bd6cc12e30e980f4bae515c0fdc822bd", "signature": "ApiExplorerResult(int Selected, int TryIt = default)", "parameters": [{ "name": "Selected", "type": "int" }, { "name": "TryIt", "type": "int", "default": "default" }] }, { "name": "Selected", "kind": "field", "id": "field|Selected|0|0|int|||hd98912bfc567742bd8241eb3f21d509fffc5e92c09441b5ff08a59d14bcf1553", "signature": "public int Selected", "summary": "the selected endpoint, or -1" }, { "name": "TryIt", "kind": "field", "id": "field|TryIt|0|0|int|||h5b7497c7ff57eca579c0220484ed786050570c5aa1615b0f5118bc1ae8af3b74", "signature": "public int TryIt", "summary": "endpoint, or -1" }] }, { "name": "CuiSharp.ApiParam", "displayName": "ApiParam", "kind": "struct", "summary": "Endpoints grouped by tag, each with its method, its path (parameters marked) and its summary; deprecated ones are struck through. A click opens an endpoint\u0027s parameters and a Try it button. A field filters by path or summary. Up and Down move, Enter opens. Elements are copied into the frame arena by the wrapper.", "members": [{ "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||string? Name;string? In = null;string? Type = null;bool Required = default;string? Description = null||h91ef145f6fd0be325481474d76af2a84766c93ba0b369ce9adf437fdd41951aa", "signature": "ApiParam(string? Name, string? In = null, string? Type = null, bool Required = default, string? Description = null)", "parameters": [{ "name": "Name", "type": "string?" }, { "name": "In", "type": "string?", "default": "null" }, { "name": "Type", "type": "string?", "default": "null" }, { "name": "Required", "type": "bool", "default": "default" }, { "name": "Description", "type": "string?", "default": "null" }] }, { "name": "Required", "kind": "field", "id": "field|Required|0|0|bool|||hb6aec04b549eaa0bb337715fa9a3aaa889086dfc1dbd6d0b555826d7ce836b48", "signature": "public bool Required", "summary": "a red asterisk after the name" }, { "name": "Description", "kind": "field", "id": "field|Description|0|0|string?|||he31fdab720a891b12b69abe8267791cc6b93ee9c503db7db243823da82f3928d", "signature": "public string? Description", "summary": "what the parameter is for, shown after its type and place; may be \u0060NULL\u0060" }, { "name": "In", "kind": "field", "id": "field|In|0|0|string?|||h5311dc7b652ebc0c442baa10c3ef5359c19f57d1feeb1a212fba7e36a425a488", "signature": "public string? In", "summary": "where it goes: \u0022path\u0022, \u0022query\u0022, \u0022header\u0022 or \u0022body\u0022" }, { "name": "Name", "kind": "field", "id": "field|Name|0|0|string?|||hcbdb244d52a3792efd9959d43171bf3259e059aed2be3877936b4e392b4df7e7", "signature": "public string? Name", "summary": "the parameter\u0027s name, in the code font" }, { "name": "Type", "kind": "field", "id": "field|Type|0|0|string?|||hd13f10c6a1a43e5dad4e56f1c9942eeda7e31c88858c2d5b682e8c3bf87faf1f", "signature": "public string? Type", "summary": "e.g. \u0022string\u0022; shown before where it goes" }] }, + { "name": "CuiSharp.AutomationScope", "displayName": "AutomationScope", "kind": "ref struct", "summary": "A stable automation id for the widgets drawn inside it. Unlike Id this does not change CUI\u0027s native identity, so it can name a button whose label is already unique without changing its state key.", "members": [{ "name": "Dispose", "kind": "method", "id": "method|Dispose|0|0|void|||h743737a1705f80570f9b0dca3334406a3351c7ecb98acd045baf6804dd060a4e", "signature": "void Dispose()", "summary": "Pops the automation id. Disposing twice does nothing." }] }, { "name": "CuiSharp.AvatarOpts", "displayName": "AvatarOpts", "kind": "struct", "summary": "cui_avatar_opts. All fields are optional; zero selects the native default.", "members": [{ "name": "Square", "kind": "field", "id": "field|Square|0|0|bool|||h3398a8febfe56ac8052a2486a1cba1999b01c4910184d7a2b01bd9600e1ed263", "signature": "public bool Square", "summary": "rounded square instead of a circle" }, { "name": "Size", "kind": "field", "id": "field|Size|0|0|float|||h6a7994d51dd3609f0c6e82fd31943ebae3ebffffaa8f0910f7f745869078fb26", "signature": "public float Size", "summary": "float size" }, { "name": "Status", "kind": "field", "id": "field|Status|0|0|string?|||hea5150ac3e746a684c3b4c0832cabdae145da44e92c85bb412cef107598a117e", "signature": "public string? Status", "summary": "a dot at the bottom right: \u0022online\u0022 green, \u0022busy\u0022 red, \u0022away\u0022 amber, anything else gray" }, { "name": "Image", "kind": "field", "id": "field|Image|0|0|ulong|||he25dd60d612e9a06babb072bcf3c76754f6f813f5113d829ed08e969dc20f672", "signature": "public ulong Image", "summary": "picture to show instead of the initials of the name" }] }, { "name": "CuiSharp.AxisUnits", "displayName": "AxisUnits", "kind": "enum", "summary": "How an axis labels its values.", "members": [{ "name": "Hours", "kind": "enum value", "id": "enum value|Hours|1|0|||1|h2e6397363f85a55fab4cc07f0d8856167670796247dfd4d56322b5c0bef244fb", "signature": "Hours = 1", "summary": "hours shown as a time of day: 12.25 is 12:15, and 30 is 06:00 the next day", "value": "1" }, { "name": "Number", "kind": "enum value", "id": "enum value|Number|1|0|||0|ha89ea5252d4f981da6eac106b65a3b7e3f0db07159a95fcb9e536f5d78d51bb9", "signature": "Number = 0", "summary": "numbers, printed with the axis format (default \u0022%g\u0022)", "value": "0" }] }, { "name": "CuiSharp.BadgeOpts", "displayName": "BadgeOpts", "kind": "struct", "summary": "cui_badge_opts. All fields are optional; zero selects the native default.", "members": [{ "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||Tone tone = Tone.Neutral||hf41ea10b22440a272ef4b1ca8ad61390d4b0450f2767621ad1e0bae737d0936f", "signature": "BadgeOpts(Tone tone = Tone.Neutral)", "parameters": [{ "name": "tone", "type": "Tone", "default": "Tone.Neutral" }], "summary": "A badge in one word: ui.Badge(\u0022Updating\u0022, new(Tone.Danger)). Every other field keeps its native default, exactly as the equivalent object initializer." }, { "name": "Size", "kind": "field", "id": "field|Size|0|0|ControlSize|||h32de9b14a4bf8f7cd9d51ddf122308c327f7d5cddfa2b057d7d9d10409d1283b", "signature": "public ControlSize Size", "summary": "cui_control_size size" }, { "name": "Tone", "kind": "field", "id": "field|Tone|0|0|Tone|||h34cf99709011d80e01e30e5f5f32dd42fc736257abef30989bc1bdf182b7842e", "signature": "public Tone Tone", "summary": "cui_tone tone" }, { "name": "Dot", "kind": "field", "id": "field|Dot|0|0|bool|||h2c1cc597459b498ce2f3dd2878d6499c9cf8ef48c0603c3a097c5f56751d30d9", "signature": "public bool Dot", "summary": "a small dot before the text, in the tone\u0027s color" }, { "name": "Solid", "kind": "field", "id": "field|Solid|0|0|bool|||h938690fcaa55f8f20d4eb1f6bdad82856b9119192f5dd841daa133c854056596", "signature": "public bool Solid", "summary": "filled with the tone\u0027s color instead of a light tint of it" }, { "name": "Icon", "kind": "field", "id": "field|Icon|0|0|string?|||hcde1437bde43c1697295d30669c92da2e86cf40ed384690cfdabd8cbe15ff219", "signature": "public string? Icon", "summary": "const char * icon" }] }, @@ -167,12 +168,12 @@ { "name": "CuiSharp.Hosting.CuiApplicationBuilder", "displayName": "CuiApplicationBuilder", "kind": "class", "summary": "Collects services and window options before the window exists.", "members": [{ "name": "Window", "kind": "property", "id": "property|Window|0|0|CuiAppOptions||get;set;|hb4f402a692934c77e62da0173ddd890f74e45c40f58fa933ff2536baedc0fe79", "signature": "CuiAppOptions Window { get; set; }", "summary": "Window options: title, size, renderer, theme, accent." }, { "name": "Build", "kind": "method", "id": "method|Build|0|0|CuiApplication|||h9d2e6ba46af012770ff325c47a1dd1a56cfe59b9a18204feffa806a963f69a68", "signature": "CuiApplication Build()", "summary": "Builds the container. The window itself is created by Run\u0060\u00601." }, { "name": "Services", "kind": "property", "id": "property|Services|0|0|IServiceCollection||get;|h0f02e1c313ac8a81062e4bd937a51a3b05a63a9a49ae45ff523b68ec55bf3e96", "signature": "IServiceCollection Services { get; }", "summary": "The container. Register services and components here." }, { "name": "Args", "kind": "property", "id": "property|Args|0|0|string[]||get;|h7a56b0f7d1c60a9bad709dda1a5112461efb41c9711599d27545d3a75b062410", "signature": "string[] Args { get; }", "summary": "Command-line arguments, as handed to the process." }] }, { "name": "CuiSharp.Hosting.FrameSample", "displayName": "FrameSample", "kind": "struct", "summary": "What one frame cost. FrameStats holds the last one in the process.", "members": [{ "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||long Frames;double FrameMs;double DrawMs;long AllocatedBytes;double Fps;bool IsLive||h1f4338d9ac6a5eac1c91dc224727f64973ef42b2881098fdca3e8dca2b2b6eef", "signature": "FrameSample(long Frames, double FrameMs, double DrawMs, long AllocatedBytes, double Fps, bool IsLive)", "parameters": [{ "name": "Frames", "type": "long" }, { "name": "FrameMs", "type": "double" }, { "name": "DrawMs", "type": "double" }, { "name": "AllocatedBytes", "type": "long" }, { "name": "Fps", "type": "double" }, { "name": "IsLive", "type": "bool" }], "summary": "What one frame cost. FrameStats holds the last one in the process." }, { "name": "Equals", "kind": "method", "id": "method|Equals|0|0|bool|FrameSample other||h6b5e8e167a39bfe41c6778b24750f83049be7b632bb609b3b315f8433032f6df", "signature": "bool Equals(FrameSample other)", "parameters": [{ "name": "other", "type": "FrameSample" }] }, { "name": "Equals", "kind": "method", "id": "method|Equals|0|0|bool|object obj||hdf2fccef3fb95cd65c067116b7fab214698fd62b7ba7acf819e39cecdecd49f0", "signature": "bool Equals(object obj)", "parameters": [{ "name": "obj", "type": "object" }] }, { "name": "IsLive", "kind": "property", "id": "property|IsLive|0|0|bool||get;set;|h6fb5ef11f1ee36bb8cc50da3708ecc7839b9ea761592d6eec3068c2daf512df2", "signature": "bool IsLive { get; init; }", "summary": "Whether anything asked for this frame." }, { "name": "DrawMs", "kind": "property", "id": "property|DrawMs|0|0|double||get;set;|h412ea96c16410ddaf605871b1b505bc8ccd9dfb2a05fa7c70f60311dae4dd9e3", "signature": "double DrawMs { get; init; }", "summary": "Time spent drawing this frame\u0027s components." }, { "name": "Fps", "kind": "property", "id": "property|Fps|0|0|double||get;set;|h32cd94cea8713530575a786026ed29b0ecca6c7fc6ec78a6aa22a19f614a3e43", "signature": "double Fps { get; init; }", "summary": "Smoothed frame rate of the run this frame belongs to." }, { "name": "FrameMs", "kind": "property", "id": "property|FrameMs|0|0|double||get;set;|h3f5dccbe685e3fd6ac024b48e5ab7029dbb34dadb3f73e5bc2ea02482f41568a", "signature": "double FrameMs { get; init; }", "summary": "Wall-clock time between this frame and the previous one." }, { "name": "GetHashCode", "kind": "method", "id": "method|GetHashCode|0|0|int|||hdfcf1984bbd53bb9079a9b702ff4724865de4dcf06bbed07c42edbc8e1085a8d", "signature": "int GetHashCode()" }, { "name": "AllocatedBytes", "kind": "property", "id": "property|AllocatedBytes|0|0|long||get;set;|ha2f53be0b74179c0733ded33b815505ae61640803eca28ca76e7151842f6a916", "signature": "long AllocatedBytes { get; init; }", "summary": "Managed bytes allocated while drawing it." }, { "name": "Frames", "kind": "property", "id": "property|Frames|0|0|long||get;set;|h6b895a790d6a6e62dac0164488207995443321314ea277546d53964ebee21474", "signature": "long Frames { get; init; }", "summary": "Frames rendered since the process started." }, { "name": "!=", "kind": "operator", "id": "operator|op_Inequality|1|0|bool|FrameSample left;FrameSample right||h1621bbc9c95d57d2b3212169f2f018f2560446a437bf869ca714e562ce6b341d", "signature": "static bool operator !=(FrameSample left, FrameSample right)", "member": "op_Inequality", "parameters": [{ "name": "left", "type": "FrameSample" }, { "name": "right", "type": "FrameSample" }] }, { "name": "==", "kind": "operator", "id": "operator|op_Equality|1|0|bool|FrameSample left;FrameSample right||hcae28c34e7edfb01c0b5ee5beed82a18fbfbfef921183af0ec80a036a4f505e4", "signature": "static bool operator ==(FrameSample left, FrameSample right)", "member": "op_Equality", "parameters": [{ "name": "left", "type": "FrameSample" }, { "name": "right", "type": "FrameSample" }] }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()" }, { "name": "Deconstruct", "kind": "method", "id": "method|Deconstruct|0|0|void|out long Frames;out double FrameMs;out double DrawMs;out long AllocatedBytes;out double Fps;out bool IsLive||h505ffebce7d4ff615c36f2202efa12440c4b4131624dfc04cebe36b338a5c8e3", "signature": "void Deconstruct(out long Frames, out double FrameMs, out double DrawMs, out long AllocatedBytes, out double Fps, out bool IsLive)", "parameters": [{ "name": "Frames", "type": "out long" }, { "name": "FrameMs", "type": "out double" }, { "name": "DrawMs", "type": "out double" }, { "name": "AllocatedBytes", "type": "out long" }, { "name": "Fps", "type": "out double" }, { "name": "IsLive", "type": "out bool" }] }] }, { "name": "CuiSharp.Hosting.FrameStats", "displayName": "FrameStats", "kind": "static class", "summary": "Per-frame numbers for the frame that just rendered, so a footer or a trace can show them without every app measuring the clock itself. The host fills these in around each component render; nothing here allocates.", "members": [{ "name": "IsLive", "kind": "property", "id": "property|IsLive|1|0|bool||get;|h444d8f50956934219eebcfcb5639eae0c5423d84c4df24bee7585d9a3fe41f3a", "signature": "static bool IsLive { get; }", "summary": "True when something asked for this frame: a component that changes on its own (WantsFrames) or work that is still in flight. An app that says false is asleep between input, so a frame rate would be a number about nothing." }, { "name": "DrawMs", "kind": "property", "id": "property|DrawMs|1|0|double||get;|h3fbf0f50fafa5b894128da08fec11f4bb522f7c4091b33f87829fe96f1bd3527", "signature": "static double DrawMs { get; }", "summary": "Time spent drawing this frame\u0027s components." }, { "name": "Fps", "kind": "property", "id": "property|Fps|1|0|double||get;|h935cbfa0adde0346221a688f7ba88d870a04f16531a1627c79bac153f42a8dd7", "signature": "static double Fps { get; }", "summary": "Frames per second, smoothed over the frames of the current run. Zero until there is something to average, and unchanged while the app is asleep \u2014 see the remarks on this type." }, { "name": "FrameMs", "kind": "property", "id": "property|FrameMs|1|0|double||get;|hd346decc3ed1e65d26fbd6ac1aaec24590a9299477bd79ca99e7b533ab13f911", "signature": "static double FrameMs { get; }", "summary": "Wall-clock time between the start of this frame and the previous one." }, { "name": "AllocatedBytes", "kind": "property", "id": "property|AllocatedBytes|1|0|long||get;|h3a901b93e508e893524c27ba1fd9bbb474d30876c4140a4255359004eb69679b", "signature": "static long AllocatedBytes { get; }", "summary": "Managed bytes allocated while drawing this frame. It should read 0: the frame\u0027s own numbers are the cheapest way to notice a hidden allocation." }, { "name": "Frames", "kind": "property", "id": "property|Frames|1|0|long||get;|heb8351bd9b4d67895ea2fd8fdd741b7234e6c5709baebe7651fabe90b4558c4c", "signature": "static long Frames { get; }", "summary": "Number of frames rendered since the process started." }] }, - { "name": "CuiSharp.Hosting.HeadlessApp", "displayName": "HeadlessApp", "kind": "class", "summary": "An app drawn without a window: frames you drive, controls you find by label, and the pixels they produced.", "members": [{ "name": "Root", "kind": "property", "id": "property|Root|0|0|Component?||get;|hf43d1318450e8d46d53aed28e29e6b08c07342c8f234fd9bb9d1e8bf9399c60d", "signature": "Component? Root { get; }", "summary": "The component being drawn, if this app draws one." }, { "name": "Surface", "kind": "property", "id": "property|Surface|0|0|CuiSurface||get;|hf0799171cdc83f0900df39a80392efea137100437e738539c2a86d1ffe79fc8a", "signature": "CuiSurface Surface { get; }", "summary": "The surface underneath: pixels, viewport and the software rasterizer." }, { "name": "Advance", "kind": "method", "id": "method|Advance|0|0|HeadlessApp|TimeSpan time;int frames = 1||h626da333c8675acee966c0b66a045e0937e87454db20859c3126a6a2131aabdb", "signature": "HeadlessApp Advance(TimeSpan time, int frames = 1)", "parameters": [{ "name": "time", "type": "TimeSpan" }, { "name": "frames", "type": "int", "default": "1" }], "summary": "Moves the clock forward by time over frames frames. Frames are free but time is not: an animation is only as far along as the clock says, so a snapshot taken without advancing is a snapshot of an animation that never started." }, { "name": "Focus", "kind": "method", "id": "method|Focus|0|0|HeadlessApp|bool focused = true||h4945a8a1105ecf005cd92bad3d05dcdbd0a2541a0331e9e546561ad788d06b67", "signature": "HeadlessApp Focus(bool focused = true)", "parameters": [{ "name": "focused", "type": "bool", "default": "true" }], "summary": "Reports the window gaining focus, which a text field needs before it takes keys." }, { "name": "Frame", "kind": "method", "id": "method|Frame|0|0|HeadlessApp|int count = 1||h3eda7515dee4cdcb51e35ef741e13b3705d1e379e87fb6785baa2861f228929b", "signature": "HeadlessApp Frame(int count = 1)", "parameters": [{ "name": "count", "type": "int", "default": "1" }], "summary": "Draws one frame and returns this app, so calls chain." }, { "name": "Key", "kind": "method", "id": "method|Key|0|0|HeadlessApp|Key key;Mods mods = (Mods)0||he72d4ecc571d6f2de7a08564e0a99caeef13f5b658ae8c4df1b11ac4836ed6ed", "signature": "HeadlessApp Key(Key key, Mods mods = (Mods)0)", "parameters": [{ "name": "key", "type": "Key" }, { "name": "mods", "type": "Mods", "default": "(Mods)0" }], "summary": "Presses and releases a key, drawing a frame for each." }, { "name": "MoveTo", "kind": "method", "id": "method|MoveTo|0|0|HeadlessApp|float x;float y||ha3d010dbe8ab0243c5eae4a920c66aafbaf5c51ddd93abe3a88fa789058cce0a", "signature": "HeadlessApp MoveTo(float x, float y)", "parameters": [{ "name": "x", "type": "float" }, { "name": "y", "type": "float" }], "summary": "Moves the pointer and draws the frame that reacts to the move (hover, tooltip)." }, { "name": "ParkPointer", "kind": "method", "id": "method|ParkPointer|0|0|HeadlessApp|||hf7daf579df92089bf30365e8263d50a10ae0c71ee8d889653d46a70d05582292", "signature": "HeadlessApp ParkPointer()", "summary": "Takes the pointer off the app and draws the frame that reacts, so a screenshot is of the UI and not of the tooltip the last click left behind. SavePng does this itself." }, { "name": "Press", "kind": "method", "id": "method|Press|0|0|HeadlessApp|||hc70c9499839ffd7cca3a9e84665eebdf5c6f07debc4c1228d41459f627aacefb", "signature": "HeadlessApp Press()", "summary": "Presses the left button and draws the frame that sees the press." }, { "name": "Release", "kind": "method", "id": "method|Release|0|0|HeadlessApp|||h7fa05977d3791cb22f0fcdefe9bf86efd4ae76ad199e58772b976d73fd1740b7", "signature": "HeadlessApp Release()", "summary": "Releases the left button and draws the frame that reports the click." }, { "name": "ScrollAt", "kind": "method", "id": "method|ScrollAt|0|0|HeadlessApp|float x;float y;float dy;float dx = default||h62b831947b3ac89b348a26f2df1f78176801e668e13e4c465e94b3374218cadc", "signature": "HeadlessApp ScrollAt(float x, float y, float dy, float dx = default)", "parameters": [{ "name": "x", "type": "float" }, { "name": "y", "type": "float" }, { "name": "dy", "type": "float" }, { "name": "dx", "type": "float", "default": "default" }], "summary": "Moves the pointer to (x, y) and scrolls there: the wheel goes to whichever scroll area holds that point. The distance is in wheel notches and a positive dy scrolls up, as a real wheel does; a negative one reaches for what is below the fold. Draws the frame that shows the new offset \u2014 a spring-animated scroll needs a few Frame calls to settle where it lands." }, { "name": "Type", "kind": "method", "id": "method|Type|0|0|HeadlessApp|string text||h97a1e4d23535309d2f6404313656a2ce95275d0e1ba3c2df130c7a3f70782245", "signature": "HeadlessApp Type(string text)", "parameters": [{ "name": "text", "type": "string" }], "summary": "Types text into whatever has focus, and draws the frame that accepts it." }, { "name": "Widgets", "kind": "property", "id": "property|Widgets|0|0|IReadOnlyList\u003CSemanticWidget\u003E||get;|hf361de9bebc687bd20b11a46c2e43f178f39634686b9f3b9e71cfcf153154f67", "signature": "IReadOnlyList\u003CSemanticWidget\u003E Widgets { get; }", "summary": "Every control the last frame drew, in drawing order." }, { "name": "Faults", "kind": "property", "id": "property|Faults|0|0|IReadOnlyList\u003Cstring\u003E||get;|hcd480861b6837af5e65e0c529272438bb9a9b6d01925a764ff47a3b315d18b1d", "signature": "IReadOnlyList\u003Cstring\u003E Faults { get; }", "summary": "Exceptions a component threw while drawing; an empty list is a healthy frame." }, { "name": "RawPixels", "kind": "property", "id": "property|RawPixels|0|0|ReadOnlySpan\u003Cbyte\u003E||get;|h1595671ac794e37c504b591f4dfb0b943209a8597317f116c01dc55bd38f7c6b", "signature": "ReadOnlySpan\u003Cbyte\u003E RawPixels { get; }", "summary": "The last frame\u0027s pixels, RGBA." }, { "name": "Tree", "kind": "property", "id": "property|Tree|0|0|SemanticNode||get;|h8545f28c2f25a968c4be78d681487aa8f42df7d54f6f6f5dd1e744f429c65806", "signature": "SemanticNode Tree { get; }", "summary": "The last frame\u0027s controls nested the way the app drew them: a button inside ui.Card(new() { Id = \u0022editor\u0022 }) is a child of Card \u0022editor\u0022, even when unnamed containers sit between them." }, { "name": "WaitFor", "kind": "method", "id": "method|WaitFor|0|0|WaitOutcome|string query;TimeSpan timeout;CancellationToken cancellationToken = default||h1a2183f22c4e10789025f3ce403caa71a4adb22a527c15add25a744287d5f832", "signature": "WaitOutcome WaitFor(string query, TimeSpan timeout, CancellationToken cancellationToken = default)", "parameters": [{ "name": "query", "type": "string" }, { "name": "timeout", "type": "TimeSpan" }, { "name": "cancellationToken", "type": "CancellationToken", "default": "default" }], "summary": "Draws real frames until one draws a control that answers query (the same vocabulary as Find), or until timeout passes. The latest completed frame is asked first, so a wait for what is already on screen draws no frames at all." }, { "name": "WaitReady", "kind": "method", "id": "method|WaitReady|0|0|WaitOutcome|TimeSpan timeout;CancellationToken cancellationToken = default||h2344feda4bb984cdb8aed71ac4302bd94231f1e12e370ec3fa0b58f9a1d836d0", "signature": "WaitOutcome WaitReady(TimeSpan timeout, CancellationToken cancellationToken = default)", "parameters": [{ "name": "timeout", "type": "TimeSpan" }, { "name": "cancellationToken", "type": "CancellationToken", "default": "default" }], "summary": "Draws real frames until one completes that called MarkReady, or until timeout has passed on the wall clock. Every frame drains completed background work first, so data that arrives on a pool thread becomes visible on the frame that draws after it \u2014 which is what a wait is for. The latest completed frame may answer without another one being drawn: a wait that needs no frames reports Frames of 0 \u2014 and a window already spent when the first frame would have started is a miss that drew nothing. A draw cannot be interrupted, but a condition that turns true only after the window has passed is reported as a miss, not as a late success." }, { "name": "Find", "kind": "method", "id": "method|Find|0|0|WidgetTarget|string kind;string text||h1bb2d62f3680eb0c19900c345fda3357c44b1deeb94d6ddbbe38eb3f42fc4ffd", "signature": "WidgetTarget Find(string kind, string text)", "parameters": [{ "name": "kind", "type": "string" }, { "name": "text", "type": "string" }], "summary": "Finds a control of a kind and a label, e.g. Find(\u0022Button\u0022, \u0022Save\u0022)." }, { "name": "Find", "kind": "method", "id": "method|Find|0|0|WidgetTarget|string query||h9d9f9fac08a30a8548e9c7fbcda39ec13f1f404fa63de19b5fcee96ffd42cd91", "signature": "WidgetTarget Find(string query)", "parameters": [{ "name": "query", "type": "string" }], "summary": "Finds a control by a query: a label (Save), a kind and a label (Button \u0022Save\u0022), or a path (editor \u003E Button \u0022Save\u0022: containers are bare, only the last step names a kind)." }, { "name": "FindButton", "kind": "method", "id": "method|FindButton|0|0|WidgetTarget|string label||hbbacdbec5fb9f23bcc9d4aeb82b2fe3a5af64711fd42cce031629e935477e8c8", "signature": "WidgetTarget FindButton(string label)", "parameters": [{ "name": "label", "type": "string" }], "summary": "Finds a button by its label." }, { "name": "FindById", "kind": "method", "id": "method|FindById|0|0|WidgetTarget|string id||h0d9247bef6926b3d3b9d9c50e001208698befbb15643a9efc7dba9112efe52b6", "signature": "WidgetTarget FindById(string id)", "parameters": [{ "name": "id", "type": "string" }], "summary": "Finds a widget by the exact text the app drew it with \u2014 its id, for every widget that has one \u2014 and never by a partial or fuzzy match. This is the query to write when a label can be translated: FindById(\u0022draft\u0022) keeps working in another language, while Find(\u0022draft\u0022) was only ever guessing." }, { "name": "FindInput", "kind": "method", "id": "method|FindInput|0|0|WidgetTarget|string id||ha21d8796c2e42e310d821632148f5696664e22789d7f9fca032bccf99f5ad419", "signature": "WidgetTarget FindInput(string id)", "parameters": [{ "name": "id", "type": "string" }], "summary": "Finds a text field by its id." }, { "name": "FindItem", "kind": "method", "id": "method|FindItem|0|0|WidgetTarget|string id;int index||h58c7cbfca4332017d8867744ab1ca067e9a16b2f476dfa77500267d60c71f4e5", "signature": "WidgetTarget FindItem(string id, int index)", "parameters": [{ "name": "id", "type": "string" }, { "name": "index", "type": "int" }], "summary": "The indexth item of the multi-item widget drawn with id: a tab, a segment, a row. The label of an item is translatable, its position is not, so this is how a test names one without hard-coding the words." }, { "name": "FindUnique", "kind": "method", "id": "method|FindUnique|0|0|WidgetTarget|string query||hc721f25f0ee2ccde92a2bf1f8e285f477e0f8b22d6330a89e799472a7dc3ba74", "signature": "WidgetTarget FindUnique(string query)", "parameters": [{ "name": "query", "type": "string" }], "summary": "Finds one control and refuses when the frame draws several equally good matches. Use it for commands where guessing would act on the wrong row; Find keeps the best-ranked match for programmatic callers." }, { "name": "Animating", "kind": "property", "id": "property|Animating|0|0|bool||get;|h31a492e61fccdc7fd83e6c8ed8e83345bdfccdafc84504c3e532f94155aeda56", "signature": "bool Animating { get; }", "summary": "True when something in the last frame asked for another one: an animation in flight, a transition, work that finished on a pool thread. Settle is the loop around it." }, { "name": "PaintedAnything", "kind": "method", "id": "method|PaintedAnything|0|0|bool|||hc6a981a5d4b20d54b1b865a8ed0f5fef77d3c9f59fec3259d142b03cc512642f", "signature": "bool PaintedAnything()", "summary": "True when the last frame painted anything at all." }, { "name": "Ready", "kind": "property", "id": "property|Ready|0|0|bool||get;|h03be3cfec0542d3cf3efe6003035d3a0d2f76ef268a62ef8589ca769105bcfd6", "signature": "bool Ready { get; }", "summary": "Whether the latest completed frame declared its data ready with MarkReady. A frame that did not mark itself is not ready, whatever the frame before it claimed." }, { "name": "TryFind", "kind": "method", "id": "method|TryFind|0|0|bool|string query;out WidgetTarget widget||h392d9569dd63494ff11a7cba9bab5add41638093b36bfb0f0d11478be48eab60", "signature": "bool TryFind(string query, out WidgetTarget widget)", "parameters": [{ "name": "query", "type": "string" }, { "name": "widget", "type": "out WidgetTarget" }], "summary": "True when the last frame drew something that answers the query." }, { "name": "Height", "kind": "property", "id": "property|Height|0|0|int||get;|h6bb9d208a8c2d3f5c816b385df95628119cf129ab8d5cdd4b5e576b46037865c", "signature": "int Height { get; }", "summary": "Logical height in points." }, { "name": "Settle", "kind": "method", "id": "method|Settle|0|0|int|int maxFrames = 240;TimeSpan? step = default||h2884d1fda375f255880e29fef21977c3966174e05e4b0fda7cde38300a0612c3", "signature": "int Settle(int maxFrames = 240, TimeSpan? step = default)", "parameters": [{ "name": "maxFrames", "type": "int", "default": "240" }, { "name": "step", "type": "TimeSpan?", "default": "default" }], "summary": "Draws frames until nothing wants another one, moving the clock by step each time. This is the replacement for a sleep loop: an animation that takes half a second settles in a few milliseconds, and the count says how long it took." }, { "name": "Width", "kind": "property", "id": "property|Width|0|0|int||get;|ha0864f5f4fda3365ae1a32446710954c2726b6bf0ae6f93e7b91c06c3464059b", "signature": "int Width { get; }", "summary": "Logical width in points." }, { "name": "Start", "kind": "method", "id": "method|Start|1|0|HeadlessApp|Component root;int width = 1024;int height = 768;float scale = 1f;Theme theme = Theme.Light;Accent accent = Accent.Neutral||h1e5b5b0d7001e43da6fe7c233c65d21aef6bb43f443207e450b36d7f9bf2f5e5", "signature": "static HeadlessApp Start(Component root, int width = 1024, int height = 768, float scale = 1f, Theme theme = Theme.Light, Accent accent = Accent.Neutral)", "parameters": [{ "name": "root", "type": "Component" }, { "name": "width", "type": "int", "default": "1024" }, { "name": "height", "type": "int", "default": "768" }, { "name": "scale", "type": "float", "default": "1f" }, { "name": "theme", "type": "Theme", "default": "Theme.Light" }, { "name": "accent", "type": "Accent", "default": "Accent.Neutral" }], "summary": "Starts an app around one component, initializing it the way the host does." }, { "name": "Start", "kind": "method", "id": "method|Start|1|0|HeadlessApp|DrawFn draw;int width = 1024;int height = 768;float scale = 1f;Theme theme = Theme.Light;Accent accent = Accent.Neutral||he7844293216898ca9b0b006f61b4910517fe23935747ae7f38412d03143dbbe9", "signature": "static HeadlessApp Start(DrawFn draw, int width = 1024, int height = 768, float scale = 1f, Theme theme = Theme.Light, Accent accent = Accent.Neutral)", "parameters": [{ "name": "draw", "type": "DrawFn" }, { "name": "width", "type": "int", "default": "1024" }, { "name": "height", "type": "int", "default": "768" }, { "name": "scale", "type": "float", "default": "1f" }, { "name": "theme", "type": "Theme", "default": "Theme.Light" }, { "name": "accent", "type": "Accent", "default": "Accent.Neutral" }], "summary": "Starts an app that draws draw for every frame." }, { "name": "Print", "kind": "method", "id": "method|Print|0|0|string|bool rects = default||h06252dafaeb8005776cf294d00cc449cae2255f6fc351ae1f5be1e7d769c801e", "signature": "string Print(bool rects = default)", "parameters": [{ "name": "rects", "type": "bool", "default": "default" }], "summary": "The last frame\u0027s tree as text, which is also what ToString gives." }, { "name": "PrintLayout", "kind": "method", "id": "method|PrintLayout|0|0|string|||h1aca4fa317bff1c9a17b9ff43a8ce93464478a32b3aba59b2cd66e9b17152dd5", "signature": "string PrintLayout()", "summary": "The LayoutFormatter view of the last frame: verified rectangles, observed bounds labelled as the lower bounds they are, and unknown extents named as unknowns." }, { "name": "SavePng", "kind": "method", "id": "method|SavePng|0|0|string|string? path = null;bool parked = true||hb90d4d8b7c789b4eddcca8f1bc64ed99b3ebc8de616717d3cbba041aff978a98", "signature": "string SavePng(string? path = null, bool parked = true)", "parameters": [{ "name": "path", "type": "string?", "default": "null" }, { "name": "parked", "type": "bool", "default": "true" }], "summary": "Writes the last frame as a PNG and returns the path, for a human or an agent to look at. The pointer is taken off the UI first, so a hover tooltip left by the last click is not in the picture; pass parked = false to photograph the app as it stands." }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()" }, { "name": "Dispose", "kind": "method", "id": "method|Dispose|0|0|void|||h743737a1705f80570f9b0dca3334406a3351c7ecb98acd045baf6804dd060a4e", "signature": "void Dispose()" }] }, + { "name": "CuiSharp.Hosting.HeadlessApp", "displayName": "HeadlessApp", "kind": "class", "summary": "An app drawn without a window: frames you drive, controls you find by label, and the pixels they produced.", "members": [{ "name": "Root", "kind": "property", "id": "property|Root|0|0|Component?||get;|hf43d1318450e8d46d53aed28e29e6b08c07342c8f234fd9bb9d1e8bf9399c60d", "signature": "Component? Root { get; }", "summary": "The component being drawn, if this app draws one." }, { "name": "Surface", "kind": "property", "id": "property|Surface|0|0|CuiSurface||get;|hf0799171cdc83f0900df39a80392efea137100437e738539c2a86d1ffe79fc8a", "signature": "CuiSurface Surface { get; }", "summary": "The surface underneath: pixels, viewport and the software rasterizer." }, { "name": "Advance", "kind": "method", "id": "method|Advance|0|0|HeadlessApp|TimeSpan time;int frames = 1||h626da333c8675acee966c0b66a045e0937e87454db20859c3126a6a2131aabdb", "signature": "HeadlessApp Advance(TimeSpan time, int frames = 1)", "parameters": [{ "name": "time", "type": "TimeSpan" }, { "name": "frames", "type": "int", "default": "1" }], "summary": "Moves the clock forward by time over frames frames. Frames are free but time is not: an animation is only as far along as the clock says, so a snapshot taken without advancing is a snapshot of an animation that never started." }, { "name": "Focus", "kind": "method", "id": "method|Focus|0|0|HeadlessApp|bool focused = true||h4945a8a1105ecf005cd92bad3d05dcdbd0a2541a0331e9e546561ad788d06b67", "signature": "HeadlessApp Focus(bool focused = true)", "parameters": [{ "name": "focused", "type": "bool", "default": "true" }], "summary": "Reports the window gaining focus, which a text field needs before it takes keys." }, { "name": "Frame", "kind": "method", "id": "method|Frame|0|0|HeadlessApp|int count = 1||h3eda7515dee4cdcb51e35ef741e13b3705d1e379e87fb6785baa2861f228929b", "signature": "HeadlessApp Frame(int count = 1)", "parameters": [{ "name": "count", "type": "int", "default": "1" }], "summary": "Draws one frame and returns this app, so calls chain." }, { "name": "Key", "kind": "method", "id": "method|Key|0|0|HeadlessApp|Key key;Mods mods = (Mods)0||he72d4ecc571d6f2de7a08564e0a99caeef13f5b658ae8c4df1b11ac4836ed6ed", "signature": "HeadlessApp Key(Key key, Mods mods = (Mods)0)", "parameters": [{ "name": "key", "type": "Key" }, { "name": "mods", "type": "Mods", "default": "(Mods)0" }], "summary": "Presses and releases a key, drawing a frame for each." }, { "name": "MoveTo", "kind": "method", "id": "method|MoveTo|0|0|HeadlessApp|float x;float y||ha3d010dbe8ab0243c5eae4a920c66aafbaf5c51ddd93abe3a88fa789058cce0a", "signature": "HeadlessApp MoveTo(float x, float y)", "parameters": [{ "name": "x", "type": "float" }, { "name": "y", "type": "float" }], "summary": "Moves the pointer and draws the frame that reacts to the move (hover, tooltip)." }, { "name": "ParkPointer", "kind": "method", "id": "method|ParkPointer|0|0|HeadlessApp|||hf7daf579df92089bf30365e8263d50a10ae0c71ee8d889653d46a70d05582292", "signature": "HeadlessApp ParkPointer()", "summary": "Takes the pointer off the app and draws the frame that reacts, so a screenshot is of the UI and not of the tooltip the last click left behind. SavePng does this itself." }, { "name": "Press", "kind": "method", "id": "method|Press|0|0|HeadlessApp|||hc70c9499839ffd7cca3a9e84665eebdf5c6f07debc4c1228d41459f627aacefb", "signature": "HeadlessApp Press()", "summary": "Presses the left button and draws the frame that sees the press." }, { "name": "Release", "kind": "method", "id": "method|Release|0|0|HeadlessApp|||h7fa05977d3791cb22f0fcdefe9bf86efd4ae76ad199e58772b976d73fd1740b7", "signature": "HeadlessApp Release()", "summary": "Releases the left button and draws the frame that reports the click." }, { "name": "ScrollAt", "kind": "method", "id": "method|ScrollAt|0|0|HeadlessApp|float x;float y;float dy;float dx = default||h62b831947b3ac89b348a26f2df1f78176801e668e13e4c465e94b3374218cadc", "signature": "HeadlessApp ScrollAt(float x, float y, float dy, float dx = default)", "parameters": [{ "name": "x", "type": "float" }, { "name": "y", "type": "float" }, { "name": "dy", "type": "float" }, { "name": "dx", "type": "float", "default": "default" }], "summary": "Moves the pointer to (x, y) and scrolls there: the wheel goes to whichever scroll area holds that point. The distance is in wheel notches and a positive dy scrolls up, as a real wheel does; a negative one reaches for what is below the fold. Draws the frame that shows the new offset \u2014 a spring-animated scroll needs a few Frame calls to settle where it lands." }, { "name": "Type", "kind": "method", "id": "method|Type|0|0|HeadlessApp|string text||h97a1e4d23535309d2f6404313656a2ce95275d0e1ba3c2df130c7a3f70782245", "signature": "HeadlessApp Type(string text)", "parameters": [{ "name": "text", "type": "string" }], "summary": "Types text into whatever has focus, and draws the frame that accepts it." }, { "name": "Widgets", "kind": "property", "id": "property|Widgets|0|0|IReadOnlyList\u003CSemanticWidget\u003E||get;|hf361de9bebc687bd20b11a46c2e43f178f39634686b9f3b9e71cfcf153154f67", "signature": "IReadOnlyList\u003CSemanticWidget\u003E Widgets { get; }", "summary": "Every control the last frame drew, in drawing order." }, { "name": "Faults", "kind": "property", "id": "property|Faults|0|0|IReadOnlyList\u003Cstring\u003E||get;|hcd480861b6837af5e65e0c529272438bb9a9b6d01925a764ff47a3b315d18b1d", "signature": "IReadOnlyList\u003Cstring\u003E Faults { get; }", "summary": "Exceptions a component threw while drawing; an empty list is a healthy frame." }, { "name": "RawPixels", "kind": "property", "id": "property|RawPixels|0|0|ReadOnlySpan\u003Cbyte\u003E||get;|h1595671ac794e37c504b591f4dfb0b943209a8597317f116c01dc55bd38f7c6b", "signature": "ReadOnlySpan\u003Cbyte\u003E RawPixels { get; }", "summary": "The last frame\u0027s pixels, RGBA." }, { "name": "Tree", "kind": "property", "id": "property|Tree|0|0|SemanticNode||get;|h8545f28c2f25a968c4be78d681487aa8f42df7d54f6f6f5dd1e744f429c65806", "signature": "SemanticNode Tree { get; }", "summary": "The last frame\u0027s controls nested the way the app drew them: a button inside ui.Card(new() { Id = \u0022editor\u0022 }) is a child of Card \u0022editor\u0022, even when unnamed containers sit between them." }, { "name": "WaitFor", "kind": "method", "id": "method|WaitFor|0|0|WaitOutcome|string query;TimeSpan timeout;CancellationToken cancellationToken = default||h1a2183f22c4e10789025f3ce403caa71a4adb22a527c15add25a744287d5f832", "signature": "WaitOutcome WaitFor(string query, TimeSpan timeout, CancellationToken cancellationToken = default)", "parameters": [{ "name": "query", "type": "string" }, { "name": "timeout", "type": "TimeSpan" }, { "name": "cancellationToken", "type": "CancellationToken", "default": "default" }], "summary": "Draws real frames until one draws a control that answers query (the same vocabulary as Find), or until timeout passes. The latest completed frame is asked first, so a wait for what is already on screen draws no frames at all." }, { "name": "WaitReady", "kind": "method", "id": "method|WaitReady|0|0|WaitOutcome|TimeSpan timeout;CancellationToken cancellationToken = default||h2344feda4bb984cdb8aed71ac4302bd94231f1e12e370ec3fa0b58f9a1d836d0", "signature": "WaitOutcome WaitReady(TimeSpan timeout, CancellationToken cancellationToken = default)", "parameters": [{ "name": "timeout", "type": "TimeSpan" }, { "name": "cancellationToken", "type": "CancellationToken", "default": "default" }], "summary": "Draws real frames until one completes that called MarkReady, or until timeout has passed on the wall clock. Every frame drains completed background work first, so data that arrives on a pool thread becomes visible on the frame that draws after it \u2014 which is what a wait is for. The latest completed frame may answer without another one being drawn: a wait that needs no frames reports Frames of 0 \u2014 and a window already spent when the first frame would have started is a miss that drew nothing. A draw cannot be interrupted, but a condition that turns true only after the window has passed is reported as a miss, not as a late success." }, { "name": "Find", "kind": "method", "id": "method|Find|0|0|WidgetTarget|string kind;string text||h1bb2d62f3680eb0c19900c345fda3357c44b1deeb94d6ddbbe38eb3f42fc4ffd", "signature": "WidgetTarget Find(string kind, string text)", "parameters": [{ "name": "kind", "type": "string" }, { "name": "text", "type": "string" }], "summary": "Finds a control of a kind and a label, e.g. Find(\u0022Button\u0022, \u0022Save\u0022)." }, { "name": "Find", "kind": "method", "id": "method|Find|0|0|WidgetTarget|string query||h9d9f9fac08a30a8548e9c7fbcda39ec13f1f404fa63de19b5fcee96ffd42cd91", "signature": "WidgetTarget Find(string query)", "parameters": [{ "name": "query", "type": "string" }], "summary": "Finds a control by a query: a label (Save), a kind and a label (Button \u0022Save\u0022), or a path (editor \u003E Button \u0022Save\u0022: containers are bare, only the last step names a kind)." }, { "name": "FindButton", "kind": "method", "id": "method|FindButton|0|0|WidgetTarget|string label||hbbacdbec5fb9f23bcc9d4aeb82b2fe3a5af64711fd42cce031629e935477e8c8", "signature": "WidgetTarget FindButton(string label)", "parameters": [{ "name": "label", "type": "string" }], "summary": "Finds a button by its label." }, { "name": "FindById", "kind": "method", "id": "method|FindById|0|0|WidgetTarget|string id||h0d9247bef6926b3d3b9d9c50e001208698befbb15643a9efc7dba9112efe52b6", "signature": "WidgetTarget FindById(string id)", "parameters": [{ "name": "id", "type": "string" }], "summary": "Finds a widget by the exact text the app drew it with \u2014 its id, for every widget that has one \u2014 and never by a partial or fuzzy match. This is the query to write when a label can be translated: FindById(\u0022draft\u0022) keeps working in another language, while Find(\u0022draft\u0022) was only ever guessing." }, { "name": "FindInput", "kind": "method", "id": "method|FindInput|0|0|WidgetTarget|string id||ha21d8796c2e42e310d821632148f5696664e22789d7f9fca032bccf99f5ad419", "signature": "WidgetTarget FindInput(string id)", "parameters": [{ "name": "id", "type": "string" }], "summary": "Finds a text field by its id." }, { "name": "FindItem", "kind": "method", "id": "method|FindItem|0|0|WidgetTarget|string id;int index||h58c7cbfca4332017d8867744ab1ca067e9a16b2f476dfa77500267d60c71f4e5", "signature": "WidgetTarget FindItem(string id, int index)", "parameters": [{ "name": "id", "type": "string" }, { "name": "index", "type": "int" }], "summary": "The indexth item of the multi-item widget drawn with id: a tab, a segment, a row. The label of an item is translatable, its position is not, so this is how a test names one without hard-coding the words." }, { "name": "FindUnique", "kind": "method", "id": "method|FindUnique|0|0|WidgetTarget|string query||hc721f25f0ee2ccde92a2bf1f8e285f477e0f8b22d6330a89e799472a7dc3ba74", "signature": "WidgetTarget FindUnique(string query)", "parameters": [{ "name": "query", "type": "string" }], "summary": "Finds one control and refuses when the frame draws several equally good matches. Use it for commands where guessing would act on the wrong row; Find keeps the best-ranked match for programmatic callers." }, { "name": "Animating", "kind": "property", "id": "property|Animating|0|0|bool||get;|h31a492e61fccdc7fd83e6c8ed8e83345bdfccdafc84504c3e532f94155aeda56", "signature": "bool Animating { get; }", "summary": "True when something in the last frame asked for another one: an animation in flight, a transition, work that finished on a pool thread. Settle is the loop around it." }, { "name": "PaintedAnything", "kind": "method", "id": "method|PaintedAnything|0|0|bool|||hc6a981a5d4b20d54b1b865a8ed0f5fef77d3c9f59fec3259d142b03cc512642f", "signature": "bool PaintedAnything()", "summary": "True when the last frame painted anything at all." }, { "name": "Ready", "kind": "property", "id": "property|Ready|0|0|bool||get;|h03be3cfec0542d3cf3efe6003035d3a0d2f76ef268a62ef8589ca769105bcfd6", "signature": "bool Ready { get; }", "summary": "Whether the latest completed frame declared its data ready with MarkReady. A frame that did not mark itself is not ready, whatever the frame before it claimed." }, { "name": "TryFind", "kind": "method", "id": "method|TryFind|0|0|bool|string query;out WidgetTarget widget||h392d9569dd63494ff11a7cba9bab5add41638093b36bfb0f0d11478be48eab60", "signature": "bool TryFind(string query, out WidgetTarget widget)", "parameters": [{ "name": "query", "type": "string" }, { "name": "widget", "type": "out WidgetTarget" }], "summary": "True when the last frame drew something that answers the query." }, { "name": "Height", "kind": "property", "id": "property|Height|0|0|int||get;|h6bb9d208a8c2d3f5c816b385df95628119cf129ab8d5cdd4b5e576b46037865c", "signature": "int Height { get; }", "summary": "Logical height in points." }, { "name": "Settle", "kind": "method", "id": "method|Settle|0|0|int|int maxFrames = 240;TimeSpan? step = default||h2884d1fda375f255880e29fef21977c3966174e05e4b0fda7cde38300a0612c3", "signature": "int Settle(int maxFrames = 240, TimeSpan? step = default)", "parameters": [{ "name": "maxFrames", "type": "int", "default": "240" }, { "name": "step", "type": "TimeSpan?", "default": "default" }], "summary": "Draws frames until nothing wants another one, moving the clock by step each time. This is the replacement for a sleep loop: an animation that takes half a second settles in a few milliseconds, and the count says how long it took." }, { "name": "Width", "kind": "property", "id": "property|Width|0|0|int||get;|ha0864f5f4fda3365ae1a32446710954c2726b6bf0ae6f93e7b91c06c3464059b", "signature": "int Width { get; }", "summary": "Logical width in points." }, { "name": "Start", "kind": "method", "id": "method|Start|1|0|HeadlessApp|Component root;int width = 1024;int height = 768;float scale = 1f;Theme theme = Theme.Light;Accent accent = Accent.Neutral||h1e5b5b0d7001e43da6fe7c233c65d21aef6bb43f443207e450b36d7f9bf2f5e5", "signature": "static HeadlessApp Start(Component root, int width = 1024, int height = 768, float scale = 1f, Theme theme = Theme.Light, Accent accent = Accent.Neutral)", "parameters": [{ "name": "root", "type": "Component" }, { "name": "width", "type": "int", "default": "1024" }, { "name": "height", "type": "int", "default": "768" }, { "name": "scale", "type": "float", "default": "1f" }, { "name": "theme", "type": "Theme", "default": "Theme.Light" }, { "name": "accent", "type": "Accent", "default": "Accent.Neutral" }], "summary": "Starts an app around one component, initializing it the way the host does." }, { "name": "Start", "kind": "method", "id": "method|Start|1|0|HeadlessApp|DrawFn draw;int width = 1024;int height = 768;float scale = 1f;Theme theme = Theme.Light;Accent accent = Accent.Neutral||he7844293216898ca9b0b006f61b4910517fe23935747ae7f38412d03143dbbe9", "signature": "static HeadlessApp Start(DrawFn draw, int width = 1024, int height = 768, float scale = 1f, Theme theme = Theme.Light, Accent accent = Accent.Neutral)", "parameters": [{ "name": "draw", "type": "DrawFn" }, { "name": "width", "type": "int", "default": "1024" }, { "name": "height", "type": "int", "default": "768" }, { "name": "scale", "type": "float", "default": "1f" }, { "name": "theme", "type": "Theme", "default": "Theme.Light" }, { "name": "accent", "type": "Accent", "default": "Accent.Neutral" }], "summary": "Starts an app that draws draw for every frame." }, { "name": "Print", "kind": "method", "id": "method|Print|0|0|string|bool rects = default;bool details = default||h013936e9c6fc7069588b026ee2d24a816ecf8fff1a397f090889c17054399fe0", "signature": "string Print(bool rects = default, bool details = default)", "parameters": [{ "name": "rects", "type": "bool", "default": "default" }, { "name": "details", "type": "bool", "default": "default" }], "summary": "The last frame\u0027s tree as text, which is also what ToString gives." }, { "name": "PrintLayout", "kind": "method", "id": "method|PrintLayout|0|0|string|||h1aca4fa317bff1c9a17b9ff43a8ce93464478a32b3aba59b2cd66e9b17152dd5", "signature": "string PrintLayout()", "summary": "The LayoutFormatter view of the last frame: verified rectangles, observed bounds labelled as the lower bounds they are, and unknown extents named as unknowns." }, { "name": "SavePng", "kind": "method", "id": "method|SavePng|0|0|string|string? path = null;bool parked = true||hb90d4d8b7c789b4eddcca8f1bc64ed99b3ebc8de616717d3cbba041aff978a98", "signature": "string SavePng(string? path = null, bool parked = true)", "parameters": [{ "name": "path", "type": "string?", "default": "null" }, { "name": "parked", "type": "bool", "default": "true" }], "summary": "Writes the last frame as a PNG and returns the path, for a human or an agent to look at. The pointer is taken off the UI first, so a hover tooltip left by the last click is not in the picture; pass parked = false to photograph the app as it stands." }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()" }, { "name": "Dispose", "kind": "method", "id": "method|Dispose|0|0|void|||h743737a1705f80570f9b0dca3334406a3351c7ecb98acd045baf6804dd060a4e", "signature": "void Dispose()" }] }, { "name": "CuiSharp.Hosting.HeadlessApp\u002BWaitOutcome", "displayName": "WaitOutcome", "kind": "struct", "members": [{ "name": "Elapsed", "kind": "property", "id": "property|Elapsed|0|0|TimeSpan||get;|h943284be104648ac96f791bfd85ff89e3a5d8998ededcd19a3d86c2c5d54545f", "signature": "TimeSpan Elapsed { get; }" }, { "name": "Satisfied", "kind": "property", "id": "property|Satisfied|0|0|bool||get;|ha45053bdb077ec5171b51a538c43fc0d24edf017a9371dfc056a87f7e11ec855", "signature": "bool Satisfied { get; }" }, { "name": "Frames", "kind": "property", "id": "property|Frames|0|0|int||get;|h56bd5199d59de95a6bf113863a466497826770b49557c95cd41361a484c7fede", "signature": "int Frames { get; }" }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()" }] }, { "name": "CuiSharp.Hosting.HeadlessLoop", "displayName": "HeadlessLoop", "kind": "static class", "summary": "Runs an app with no window and answers commands on a stream, so a tool \u2014 dotnet cui, an MCP server, a shell script \u2014 can look at a frame and act on it.", "members": [{ "name": "EnvironmentVariable", "kind": "constant", "id": "constant|EnvironmentVariable|1|0|string||CUISHARP_HEADLESS|ha44e567370773145da7ebbd6ebeac9df2b8139d701bac9a4c4e3e346e91b2991", "signature": "public const string EnvironmentVariable = \u0022CUISHARP_HEADLESS\u0022", "summary": "The environment variable an app checks to run without a window.", "value": "CUISHARP_HEADLESS" }, { "name": "ViewportEnvironmentVariable", "kind": "constant", "id": "constant|ViewportEnvironmentVariable|1|0|string||CUISHARP_VIEWPORT|h6f47be7a67ac547761d671cc926d323c91f543fedab4b156772362fdbf42e7db", "signature": "public const string ViewportEnvironmentVariable = \u0022CUISHARP_VIEWPORT\u0022", "summary": "The environment variable a headless app reads for its viewport, as WxH.", "value": "CUISHARP_VIEWPORT" }, { "name": "Known", "kind": "property", "id": "property|Known|1|0|IReadOnlyList\u003Cstring\u003E||get;|h085bcbb292ce64c780e24a5c3a9f64db8dc642f5d755d39fca744503879f9a72", "signature": "static IReadOnlyList\u003Cstring\u003E Known { get; }", "summary": "The commands the loop understands, for a client that wants to list them." }, { "name": "Requested", "kind": "method", "id": "method|Requested|1|0|bool|string[]? args = null||hc0e5ea7160e0461cc5b41dbb44b88857ab431762b827314f910688ea78921a42", "signature": "static bool Requested(string[]? args = null)", "parameters": [{ "name": "args", "type": "string[]?", "default": "null" }], "summary": "True when this process was asked to run without a window." }, { "name": "Run", "kind": "method", "id": "method|Run|1|0|int|DrawFn draw;CuiAppOptions window;TextReader? input = null;TextWriter? output = null||h37edee97f7be63ccf9a98383e568e10725a14a8431d1b588b7a21cd59b07507d", "signature": "static int Run(DrawFn draw, CuiAppOptions window, TextReader? input = null, TextWriter? output = null)", "parameters": [{ "name": "draw", "type": "DrawFn" }, { "name": "window", "type": "CuiAppOptions" }, { "name": "input", "type": "TextReader?", "default": "null" }, { "name": "output", "type": "TextWriter?", "default": "null" }], "summary": "Serves commands for an app that draws with a callback: a gallery, a demo, a single-file tool, or a hosted component \u2014 the host is the callback either way." }, { "name": "Run", "kind": "method", "id": "method|Run|1|0|int|HeadlessApp app;TextReader? input = null;TextWriter? output = null||hc55d4e1df5958d2b5f8157071f361936fb2ac62ac6ea15e2bffea83d29bee6de", "signature": "static int Run(HeadlessApp app, TextReader? input = null, TextWriter? output = null)", "parameters": [{ "name": "app", "type": "HeadlessApp" }, { "name": "input", "type": "TextReader?", "default": "null" }, { "name": "output", "type": "TextWriter?", "default": "null" }], "summary": "Serves commands against an app the caller already started." }] }, { "name": "CuiSharp.Hosting.Mutation", "displayName": "Mutation", "kind": "class", "summary": "A Mutation\u00601 whose work has no result.", "members": [{ "name": "Error", "kind": "property", "id": "property|Error|0|0|Exception?||get;|hb67d4cbeee04c77705d935c8f9afc91d020a674a85f3ebb45a3c6dfd8005cfea", "signature": "Exception? Error { get; }", "summary": "The failure that ended the last run, or null. Read it every frame; it costs nothing." }, { "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||Func\u003CCancellationToken, Task\u003E work||hfcf9ec1d5f318ee6d44a793ffdd1166e6d4e6b9833fa1bcdd8717280dcbda975", "signature": "Mutation(Func\u003CCancellationToken, Task\u003E work)", "parameters": [{ "name": "work", "type": "Func\u003CCancellationToken, Task\u003E" }], "summary": "Creates a mutation around the work it runs." }, { "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||Func\u003CCancellationToken, Task\u003E work;Action? onSuccess||h089de149d2fa382d351a6f8460c423879bd62eceb657211b45a1c1b69d25f3fb", "signature": "Mutation(Func\u003CCancellationToken, Task\u003E work, Action? onSuccess)", "parameters": [{ "name": "work", "type": "Func\u003CCancellationToken, Task\u003E" }, { "name": "onSuccess", "type": "Action?" }], "summary": "Creates a mutation that calls onSuccess on the UI thread, before the next frame draws, once the work completes." }, { "name": "IsRunning", "kind": "property", "id": "property|IsRunning|0|0|bool||get;|hdb50b35f9f11d94a95bf6f33b6d55042e6ef5b6754a94143c75a7814c03fafc3", "signature": "bool IsRunning { get; }", "summary": "True while the operation is in flight." }, { "name": "Dispose", "kind": "method", "id": "method|Dispose|0|0|void|||h743737a1705f80570f9b0dca3334406a3351c7ecb98acd045baf6804dd060a4e", "signature": "void Dispose()", "summary": "Cancels a running operation. Optional." }, { "name": "Run", "kind": "method", "id": "method|Run|0|0|void|||h7fa7970a6de0dd0432fb375a6fdd0984556b406ca72f5dcb18c83b9546faba45", "signature": "void Run()", "summary": "Starts the operation. Re-entry is ignored, so it is safe to call every frame." }] }, { "name": "CuiSharp.Hosting.Mutation\u00601", "displayName": "Mutation", "kind": "class", "summary": "One background operation owned by a component: start it, keep drawing, and see the result on a later frame. The frame loop is synchronous, so nothing inside Draw may await. A mutation is the shape that makes that safe: it runs the work on the pool, holds the outcome, and never touches a Ui from a pool thread. While the operation runs \u2014 and for the one frame its result still needs to be drawn \u2014 the host keeps requesting frames, so the state appears immediately instead of on the next mouse move. Error and IsRunning are always current and cost nothing to read, so a fire-and-forget mutation needs no bookkeeping in Draw. Pass an apply callback when the result has to change state, and Draw never polls: the callback runs on the UI thread, before the next frame draws.", "members": [{ "name": "Error", "kind": "property", "id": "property|Error|0|0|Exception?||get;|hb67d4cbeee04c77705d935c8f9afc91d020a674a85f3ebb45a3c6dfd8005cfea", "signature": "Exception? Error { get; }", "summary": "The failure that ended the last run, or null. Cached when the operation completes, so reading it every frame allocates nothing." }, { "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||Func\u003CCancellationToken, Task\u003CT\u003E\u003E work||h407c67811e4cd751644c16cd780b2aa8f6144d3999000bb9a13e4867a2511590", "signature": "Mutation\u003CT\u003E(Func\u003CCancellationToken, Task\u003CT\u003E\u003E work)", "parameters": [{ "name": "work", "type": "Func\u003CCancellationToken, Task\u003CT\u003E\u003E" }], "summary": "Creates a mutation around the work it runs." }, { "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||Func\u003CCancellationToken, Task\u003CT\u003E\u003E work;Action\u003CT\u003E? apply||h439a867bc51e16192ebb428f43d5d5ad97e83f3395e337d6fadd63dfcb5ec734", "signature": "Mutation\u003CT\u003E(Func\u003CCancellationToken, Task\u003CT\u003E\u003E work, Action\u003CT\u003E? apply)", "parameters": [{ "name": "work", "type": "Func\u003CCancellationToken, Task\u003CT\u003E\u003E" }, { "name": "apply", "type": "Action\u003CT\u003E?" }], "summary": "Creates a mutation that hands its result to apply on the UI thread, before the next frame draws." }, { "name": "IsRunning", "kind": "property", "id": "property|IsRunning|0|0|bool||get;|hdb50b35f9f11d94a95bf6f33b6d55042e6ef5b6754a94143c75a7814c03fafc3", "signature": "bool IsRunning { get; }", "summary": "True while the operation is in flight." }, { "name": "TryPublish", "kind": "method", "id": "method|TryPublish|0|0|bool|out T result||ha98becc21c9c0f32b7a93fa1ebe90da051774564169240986c82f6a725c2b6ce", "signature": "bool TryPublish(out T? result)", "parameters": [{ "name": "result", "type": "out T?" }], "summary": "Takes the result if the operation finished. Needed only when the result has no apply callback; an operation that was given one has already applied it." }, { "name": "Dispose", "kind": "method", "id": "method|Dispose|0|0|void|||h743737a1705f80570f9b0dca3334406a3351c7ecb98acd045baf6804dd060a4e", "signature": "void Dispose()", "summary": "Cancels a running operation and drops its result. Optional: a mutation that is never disposed is cancelled when the process exits, which is what an app usually wants. After this, a completion that arrives late \u2014 the work finished just before the page was navigated away from \u2014 is dropped instead of applying into a component that no longer exists." }, { "name": "Run", "kind": "method", "id": "method|Run|0|0|void|||h7fa7970a6de0dd0432fb375a6fdd0984556b406ca72f5dcb18c83b9546faba45", "signature": "void Run()", "summary": "Starts the operation \u2014 on the pool, never on the frame thread. Re-entry is ignored, so it is safe to call every frame, and a run started after Dispose is ignored too: the component that owned it is gone." }] }, - { "name": "CuiSharp.Hosting.WidgetTarget", "displayName": "WidgetTarget", "kind": "struct", "summary": "One control of a frame, as something to act on: hover it, click it, read where it is.", "members": [{ "name": "ClickAndFrame", "kind": "method", "id": "method|ClickAndFrame|0|0|HeadlessApp|||h43e085aa37f6bc8677e3c93bfcfbbe3239ac58d49311d15cc64e9a3dd3a90869", "signature": "HeadlessApp ClickAndFrame()", "summary": "Clicks the widget and returns the app, whose last frame reacted to it." }, { "name": "Rect", "kind": "property", "id": "property|Rect|0|0|RectF||get;|hf755173a5fe47fca342422117b9258f72be7002a01ae38cb809f072f70e4e9a6", "signature": "RectF Rect { get; }", "summary": "Where it was laid out in the frame it was found in." }, { "name": "Click", "kind": "method", "id": "method|Click|0|0|WidgetTarget|||hfad9f154f0bc2a0506748d7415467cb904dbe6fe379b297d23818d6cfe8d4c8d", "signature": "WidgetTarget Click()", "summary": "Clicks the widget: pointer over it, a press frame, a release frame. The widget reports the click on the release, so the frame after this one shows the result." }, { "name": "Hover", "kind": "method", "id": "method|Hover|0|0|WidgetTarget|||ha21b70758524839ef7605ba94fb74e78ebfe78f13e935f313437213f5181cf7c", "signature": "WidgetTarget Hover()", "summary": "Moves the pointer to the middle of the widget and draws a frame." }, { "name": "Kind", "kind": "property", "id": "property|Kind|0|0|string||get;|h388961e1f6a3037bd4a4c8333a144e60a99cdcd3bd10798d477a76bdae288a1d", "signature": "string Kind { get; }", "summary": "The wrapper that drew it: Button, Input, ListItem." }, { "name": "Text", "kind": "property", "id": "property|Text|0|0|string||get;|h221097532e4154611cbbc42c65b80d74f8055bd282efb709184598cd9d2c27bb", "signature": "string Text { get; }", "summary": "The id, or the label when the widget takes no id." }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()" }] }, + { "name": "CuiSharp.Hosting.WidgetTarget", "displayName": "WidgetTarget", "kind": "struct", "summary": "One control of a frame, as something to act on: hover it, click it, read where it is.", "members": [{ "name": "ClickAndFrame", "kind": "method", "id": "method|ClickAndFrame|0|0|HeadlessApp|||h43e085aa37f6bc8677e3c93bfcfbbe3239ac58d49311d15cc64e9a3dd3a90869", "signature": "HeadlessApp ClickAndFrame()", "summary": "Clicks the widget and returns the app, whose last frame reacted to it." }, { "name": "Rect", "kind": "property", "id": "property|Rect|0|0|RectF||get;|hf755173a5fe47fca342422117b9258f72be7002a01ae38cb809f072f70e4e9a6", "signature": "RectF Rect { get; }", "summary": "Where it was laid out in the frame it was found in." }, { "name": "Role", "kind": "property", "id": "property|Role|0|0|SemanticRole||get;|h6f5262ec9d3be0f73145935deaa3086d26c598ad0b0ea2b3cb73c68acfc5a4bf", "signature": "SemanticRole Role { get; }", "summary": "The role its wrapper plays, e.g. Button." }, { "name": "State", "kind": "property", "id": "property|State|0|0|SemanticState||get;|h454fe9fd2cb4291afd0fed432be5b7ce97b5e2630d21be3f5426b0d186e83dce", "signature": "SemanticState State { get; }", "summary": "The state observed while it was drawn." }, { "name": "Click", "kind": "method", "id": "method|Click|0|0|WidgetTarget|||hfad9f154f0bc2a0506748d7415467cb904dbe6fe379b297d23818d6cfe8d4c8d", "signature": "WidgetTarget Click()", "summary": "Clicks the widget: pointer over it, a press frame, a release frame. The widget reports the click on the release, so the frame after this one shows the result." }, { "name": "Hover", "kind": "method", "id": "method|Hover|0|0|WidgetTarget|||ha21b70758524839ef7605ba94fb74e78ebfe78f13e935f313437213f5181cf7c", "signature": "WidgetTarget Hover()", "summary": "Moves the pointer to the middle of the widget and draws a frame." }, { "name": "Kind", "kind": "property", "id": "property|Kind|0|0|string||get;|h388961e1f6a3037bd4a4c8333a144e60a99cdcd3bd10798d477a76bdae288a1d", "signature": "string Kind { get; }", "summary": "The wrapper that drew it: Button, Input, ListItem." }, { "name": "Text", "kind": "property", "id": "property|Text|0|0|string||get;|h221097532e4154611cbbc42c65b80d74f8055bd282efb709184598cd9d2c27bb", "signature": "string Text { get; }", "summary": "The id, or the label when the widget takes no id." }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()" }, { "name": "AutomationId", "kind": "property", "id": "property|AutomationId|0|0|string?||get;|h8adba5bb44e6871965a15aca785de92cc7bae5a00b6483d3300cab9fc2f0ca77", "signature": "string? AutomationId { get; }", "summary": "An explicit id from a ui.Id or ui.Automation scope, or null." }, { "name": "Value", "kind": "property", "id": "property|Value|0|0|string?||get;|hb2b72cbd43ebe3a6038a8c9bc6b24f0c97f73a648086318667933ccac27792d8", "signature": "string? Value { get; }", "summary": "The value the control held this frame, when it exposes one." }] }, { "name": "CuiSharp.HoverCardOpts", "displayName": "HoverCardOpts", "kind": "struct", "summary": "Hover card: rich content that appears when the pointer rests on the previous component, and stays while the pointer is over either. All fields are optional; zero selects the native default.", "members": [{ "name": "Placement", "kind": "field", "id": "field|Placement|0|0|Placement|||hf195de79a8d91746df0b8c16e35ba7d16ceae982142ab61e53708b3f3c7905f1", "signature": "public Placement Placement", "summary": "cui_placement placement" }, { "name": "Delay", "kind": "field", "id": "field|Delay|0|0|float|||h3a45177d911de60d3c1058d19f965797cda6f4da3e3656b82d0a5ea6832de388", "signature": "public float Delay", "summary": "seconds the pointer must rest on the component before the card shows, default 0.45" }, { "name": "Width", "kind": "field", "id": "field|Width|0|0|float|||h09484e060a56a245cb1b8dd34046053777e40c112712137a7d87044b8d646e30", "signature": "public float Width", "summary": "float width" }] }, { "name": "CuiSharp.HttpVerb", "displayName": "HttpVerb", "kind": "enum", "summary": "The method, the URL and Send, as in an API client. Enter in the URL sends; while \u0060loading\u0060 the button cancels. cui_response_status shows a response\u0027s status, time and size in one line. cui_url_params and cui_url_set_params move a URL\u0027s query to and from key-value pairs, decoding and encoding it, so a parameters table can stay in step with the URL.", "members": [{ "name": "Delete", "kind": "enum value", "id": "enum value|Delete|1|0|||4|h9c468745566016a9c9cd155b92c193f000d5b19f89810867856e1f2f52312bd9", "signature": "Delete = 4", "value": "4" }, { "name": "Get", "kind": "enum value", "id": "enum value|Get|1|0|||0|h9153c85d369ed9b213b8a6e77e3578dd074be635790c6a90cb0629bdc57c85cc", "signature": "Get = 0", "value": "0" }, { "name": "Head", "kind": "enum value", "id": "enum value|Head|1|0|||5|h3d6dda8de06597da50de06458717cab0b7b2c733d52a788ca282b383cf0bfb65", "signature": "Head = 5", "value": "5" }, { "name": "Options", "kind": "enum value", "id": "enum value|Options|1|0|||6|hcec4abdffc7cd43823b24cd6e2e845efc356fd48586425123fd465da5f30bce5", "signature": "Options = 6", "value": "6" }, { "name": "Patch", "kind": "enum value", "id": "enum value|Patch|1|0|||3|h8b76e70de6458fbb533b60ab1f264a9389387456acfbf14b70f1fb58e8cd5329", "signature": "Patch = 3", "value": "3" }, { "name": "Post", "kind": "enum value", "id": "enum value|Post|1|0|||1|h23f6c8de17ade41606d842189999c39a12d8f067379eed85f69c848179f5c17e", "signature": "Post = 1", "value": "1" }, { "name": "Put", "kind": "enum value", "id": "enum value|Put|1|0|||2|h9f14b11672b7c798b0eae55b6dcaa0c9d267b4df15d58a6850da1e061969155f", "signature": "Put = 2", "value": "2" }] }, { "name": "CuiSharp.IFileDialogProvider", "displayName": "IFileDialogProvider", "kind": "interface", "summary": "Picks a file, a folder or a save path with the OS\u0027s own dialog, and returns what happened instead of a bool and an empty string. Native dialogs are modal and blocking on every platform, so call this from a button\u0027s click in a frame, never from work that has to keep drawing. The default implementation asks the OS through CUI; a test replaces it, so a picker flow can be exercised without a display or a dialog.", "members": [{ "name": "Pick", "kind": "method", "id": "method|Pick|0|0|FilePickResult|CuiWindow window;FileDialogOpts options||h9f867669da4a21c3b53bce004250b8d1847a0abeb5d7077e199bd76432ff6d37", "signature": "FilePickResult Pick(CuiWindow window, FileDialogOpts options)", "parameters": [{ "name": "window", "type": "CuiWindow" }, { "name": "options", "type": "FileDialogOpts" }], "summary": "Shows the dialog and returns the choice, or a cancelled result." }] }, @@ -609,8 +610,13 @@ { "name": "CuiSharp.ScrubOpts", "displayName": "ScrubOpts", "kind": "struct", "summary": "Scrub field: drag sideways anywhere on it to change the value (Shift for fine steps), or click to type a number. Arrow keys step when focused. All fields are optional; zero selects the native default.", "members": [{ "name": "Width", "kind": "field", "id": "field|Width|0|0|Size|||h4006d8d1aa3607cf3007c2fd6686981e9812586a28b9a4d7a283aeadfcd379ad", "signature": "public Size Width", "summary": "cui_size width" }, { "name": "Step", "kind": "field", "id": "field|Step|0|0|float|||h0c90f87a47946c37f88110bf22e34747a17db5c6eac355fefc306b7187723b09", "signature": "public float Step", "summary": "default (max - min) / 100" }, { "name": "Format", "kind": "field", "id": "field|Format|0|0|string?|||h569c4de400fd242b777ddfec561786900d4f2ae1434374423edf8bd9ef0c421f", "signature": "public string? Format", "summary": "default \u0022%.0f\u0022" }, { "name": "Icon", "kind": "field", "id": "field|Icon|0|0|string?|||hcde1437bde43c1697295d30669c92da2e86cf40ed384690cfdabd8cbe15ff219", "signature": "public string? Icon", "summary": "shown instead of the label" }, { "name": "Suffix", "kind": "field", "id": "field|Suffix|0|0|string?|||h2c79c464acb56463b20bda4e8b606074d49aaf774f54ac687c0b7a5ece4147df", "signature": "public string? Suffix", "summary": "e.g. \u0022px\u0022 or \u0022%\u0022" }] }, { "name": "CuiSharp.SegmentedOpts", "displayName": "SegmentedOpts", "kind": "struct", "summary": "Segmented control: a row of options with a gliding highlight. All fields are optional; zero selects the native default.", "members": [{ "name": "Size", "kind": "field", "id": "field|Size|0|0|ControlSize|||h32de9b14a4bf8f7cd9d51ddf122308c327f7d5cddfa2b057d7d9d10409d1283b", "signature": "public ControlSize Size", "summary": "cui_control_size size" }, { "name": "FullWidth", "kind": "field", "id": "field|FullWidth|0|0|bool|||hdc8aafcce927648adf0c0145203424f8957fc857f5c4d890241daae15b5eac45", "signature": "public bool FullWidth", "summary": "_Bool full_width" }, { "name": "Icons", "kind": "field", "id": "field|Icons|0|0|string[]?|||h94d3abfae1e4e3aa50724c6bacdb1588c24d26764115ffa57679ae941c7f8b22", "signature": "public string[]? Icons", "summary": "const char *const * icons" }] }, { "name": "CuiSharp.SelectOpts", "displayName": "SelectOpts", "kind": "struct", "summary": "cui_select_opts. All fields are optional; zero selects the native default.", "members": [{ "name": "Width", "kind": "field", "id": "field|Width|0|0|Size|||h4006d8d1aa3607cf3007c2fd6686981e9812586a28b9a4d7a283aeadfcd379ad", "signature": "public Size Width", "summary": "cui_size width" }, { "name": "Disabled", "kind": "field", "id": "field|Disabled|0|0|bool|||h4baa107f7923040caa8203f55780aae06d0b8981825d1ea1524ec7d60ae2a53f", "signature": "public bool Disabled", "summary": "_Bool disabled" }, { "name": "Searchable", "kind": "field", "id": "field|Searchable|0|0|bool|||he07abb6a59c4f1b548e1e75a7d0a2b5775f298d1d816b82649be0aadf7f20bc5", "signature": "public bool Searchable", "summary": "combobox: filter options by typing" }, { "name": "Label", "kind": "field", "id": "field|Label|0|0|string?|||h44009b6baf5b979302330d36c1da1d2620edd8bd8919ce2ec20fe089267e8ac3", "signature": "public string? Label", "summary": "const char * label" }, { "name": "Placeholder", "kind": "field", "id": "field|Placeholder|0|0|string?|||hbe61d1785f65fabbd3ef4afbfb40a45eae9d76cb4082fe468fe662c6a46ecb72", "signature": "public string? Placeholder", "summary": "const char * placeholder" }, { "name": "Icons", "kind": "field", "id": "field|Icons|0|0|string[]?|||h94d3abfae1e4e3aa50724c6bacdb1588c24d26764115ffa57679ae941c7f8b22", "signature": "public string[]? Icons", "summary": "const char *const * icons" }] }, - { "name": "CuiSharp.SemanticNode", "displayName": "SemanticNode", "kind": "class", "summary": "One named thing in a frame \u2014 a control, or a container the app gave an id \u2014 and everything drawn inside it.", "members": [{ "name": "Descendants", "kind": "method", "id": "method|Descendants|0|0|IEnumerable\u003CSemanticNode\u003E|||hb2e00cdf2d1e34171d687045000fe4dd6904f246cc4904cbaa8a21fdd3e29b8b", "signature": "IEnumerable\u003CSemanticNode\u003E Descendants()", "summary": "Every node below this one, depth first." }, { "name": "Children", "kind": "property", "id": "property|Children|0|0|IReadOnlyList\u003CSemanticNode\u003E||get;|h5966cf2ffc85aa0cefb339b7a12aecbb96d2e1b1cbdc4d0ae23e0a897ad1bb69", "signature": "IReadOnlyList\u003CSemanticNode\u003E Children { get; }", "summary": "Everything drawn inside it, in drawing order." }, { "name": "Rect", "kind": "property", "id": "property|Rect|0|0|RectF||get;|hf755173a5fe47fca342422117b9258f72be7002a01ae38cb809f072f70e4e9a6", "signature": "RectF Rect { get; }", "summary": "Where it was laid out, in points." }, { "name": "Find", "kind": "method", "id": "method|Find|0|0|SemanticNode|string query||h9aa27c93146559c3380a35c8c7bb7292a46ce84553a02211995082057dc09c66", "signature": "SemanticNode Find(string query)", "parameters": [{ "name": "query", "type": "string" }], "summary": "Finds a node below this one, or explains what is there instead." }, { "name": "Parent", "kind": "property", "id": "property|Parent|0|0|SemanticNode?||get;|h0a677e23dee947553b8ffbefec3d898ffd27e077224bc55a9e2bd8c65cba3b33", "signature": "SemanticNode? Parent { get; }", "summary": "The container it sits in, or null for a node at the top of the frame." }, { "name": "Detached", "kind": "property", "id": "property|Detached|0|0|bool||get;|hc64c578af9d7646df189fa7a1bdb0a3de267a533558de3b50292b286e8a16593", "signature": "bool Detached { get; }", "summary": "True when CUI draws this node on a floating layer of its own \u2014 a dialog, popover, menu, tooltip, toast or tour. The tree keeps it where the app drew it, but its geometry belongs to its own layer and says nothing about the bounds of its nesting ancestors." }, { "name": "HasOwnRect", "kind": "property", "id": "property|HasOwnRect|0|0|bool||get;|h2147106daf2920bdfba7a67efa15434b0bbc83cf365a412e6711199944e16f5e", "signature": "bool HasOwnRect { get; }", "summary": "True when the recorded id is one CUI laid this very widget out under, so its rect is its own. False means the id may belong to whatever was drawn before it: the rect is a hint, not a fact. This is geometry provenance, unrelated to how queries rank the node." }, { "name": "IsContainer", "kind": "property", "id": "property|IsContainer|0|0|bool||get;|h58e6d50111e3867dc21d8ff3f8e340fcdce36de432ab79c3dd814dea5f335c26", "signature": "bool IsContainer { get; }", "summary": "True when the app drew something inside it, so it can be a parent." }, { "name": "TryFind", "kind": "method", "id": "method|TryFind|0|0|bool|string query;out SemanticNode node||h10f68a1bf1fea034c9872526bdc9b2bebc5d2ef0e770be328c4ca3ce8928dbb7", "signature": "bool TryFind(string query, out SemanticNode node)", "parameters": [{ "name": "query", "type": "string" }, { "name": "node", "type": "out SemanticNode" }], "summary": "Finds this node or anything below it by a query: a label (Save), a kind and a label (Button \u0022Save\u0022), or a path (editor \u003E Button \u0022Save\u0022: a container is named by its id or label, and only the last step may name a kind)." }, { "name": "Depth", "kind": "property", "id": "property|Depth|0|0|int||get;|h005393779795fcee5a87d55774bb521a2fdf30d65e68e7ea958f24c21fa71717", "signature": "int Depth { get; }", "summary": "How many containers were open around it." }, { "name": "Kind", "kind": "property", "id": "property|Kind|0|0|string||get;|h388961e1f6a3037bd4a4c8333a144e60a99cdcd3bd10798d477a76bdae288a1d", "signature": "string Kind { get; }", "summary": "The wrapper that drew it: Button, Input, Card." }, { "name": "Path", "kind": "property", "id": "property|Path|0|0|string||get;|hb2d3527ced8c78e3ca97b5a77f9028096a1989cb0f7317d6116bac0bf5229f5e", "signature": "string Path { get; }", "summary": "The nesting that leads here, e.g. Card \u0022editor\u0022 \u003E Button \u0022Save\u0022: the shortest description of where a control is." }, { "name": "Print", "kind": "method", "id": "method|Print|0|0|string|bool rects = default||h06252dafaeb8005776cf294d00cc449cae2255f6fc351ae1f5be1e7d769c801e", "signature": "string Print(bool rects = default)", "parameters": [{ "name": "rects", "type": "bool", "default": "default" }], "summary": "The tree as text, one line per node: what a test prints when it fails, and what an agent reads to find out which controls a frame drew." }, { "name": "Text", "kind": "property", "id": "property|Text|0|0|string||get;|h221097532e4154611cbbc42c65b80d74f8055bd282efb709184598cd9d2c27bb", "signature": "string Text { get; }", "summary": "The label, or the id when the widget or container has one." }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()" }, { "name": "Id", "kind": "property", "id": "property|Id|0|0|uint||get;|hc3025f4e0981c7ad622608a2293f185737bdcec4eb82f21efce88bc6011cdaed", "signature": "uint Id { get; }", "summary": "The id CUI laid it out under \u2014 for an item of a tab strip or a segmented control, the id the widget derived for that item. Unrelated to the label, so it survives translation." }] }, - { "name": "CuiSharp.SemanticWidget", "displayName": "SemanticWidget", "kind": "struct", "summary": "One thing a frame recorded: a control, or a container the app gave an id, with the text that names it and where it was laid out.", "members": [{ "name": "Center", "kind": "property", "id": "property|Center|0|0|ValueTuple\u003Cfloat, float\u003E||get;|h0a928e20a77e4a851575877bd247d3e0bfd675854061d20c99152b0ee772b6a0", "signature": "ValueTuple\u003Cfloat, float\u003E Center { get; }", "summary": "The point at the middle: where a simulated click goes." }, { "name": "Contains", "kind": "method", "id": "method|Contains|0|0|bool|float x;float y||h5e2c35791a73fb0fecb5d484bb6de7e408b5219215458ddd10c4b7637a782e0b", "signature": "bool Contains(float x, float y)", "parameters": [{ "name": "x", "type": "float" }, { "name": "y", "type": "float" }], "summary": "True when the point is inside it." }, { "name": "Rect", "kind": "field", "id": "field|Rect|0|0|RectF|||h36c84f4bf259c7df4e00bfe92693bbcd043eb64d7e623295afc1e04bc98f27cf", "signature": "public readonly RectF Rect", "summary": "Where it was laid out, in points, in the frame that produced it." }, { "name": "Detached", "kind": "field", "id": "field|Detached|0|0|bool|||he6905cb36f4c3c3809678b25e7ae9d5832d501865c58ed49acedcf588989b1be", "signature": "public readonly bool Detached", "summary": "True when CUI draws this widget on a floating layer of its own \u2014 a dialog, popover, menu, tooltip, toast or tour. The recorded nesting still shows where the app drew it, but its geometry belongs to its own layer, not to the containers it is nested under." }, { "name": "HasOwnRect", "kind": "field", "id": "field|HasOwnRect|0|0|bool|||hbe275cc80db9d6625846a7ecbd505321e02f175f33417b35536afdb14ea6a8c1", "signature": "public readonly bool HasOwnRect", "summary": "True when the recorded id is one CUI laid this very widget out under \u2014 a container id its begin call returned, an id derived the way CUI derives it, or a kind proven to publish its own id as the last id. False means the id may be someone else\u0027s, so the rect is a hint about where to look, not a fact about this widget." }, { "name": "IsContainer", "kind": "field", "id": "field|IsContainer|0|0|bool|||hc7454505ba97259cb1cc992d89ed1c2a725cf4d19a0bb95b3707be1f64bc21b6", "signature": "public readonly bool IsContainer", "summary": "True for a container that recorded itself because the app named it." }, { "name": "Depth", "kind": "field", "id": "field|Depth|0|0|int|||ha8878fee53eb9cf2414e3afde3184f31a9eb3bf9f98176af4487368b5b454317", "signature": "public readonly int Depth", "summary": "How many containers were open around it: 0 for a widget at the top of the frame, 1 for one inside a card, and so on." }, { "name": "Kind", "kind": "field", "id": "field|Kind|0|0|string|||h4c541c4957c89762e7d2d2e3e33b14a44c2b1619f09f22b3a8d6e0a8c941f23c", "signature": "public readonly string Kind", "summary": "The wrapper\u0027s name: Button, Input, Card." }, { "name": "Text", "kind": "field", "id": "field|Text|0|0|string|||h68b7cc166e7738ce60e67f228271e2cb816cb8f3d6800b8f76b1b01d3a1fbf83", "signature": "public readonly string Text", "summary": "The widget\u0027s id, or its label when it has no id." }, { "name": "Id", "kind": "field", "id": "field|Id|0|0|uint|||h9c07ed1bc23d891c34bd2cf77a987ddd1ee61647bb18261e3ca19e1b6b2d6b48", "signature": "public readonly uint Id", "summary": "The id CUI laid this widget out under. Stable while the widget exists, and unrelated to the text, so it is what a test can hold on to when the label is translated." }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()", "summary": "The kind and the text, e.g. Button \u0022Save\u0022." }] }, + { "name": "CuiSharp.SemanticAccessibilityNode", "displayName": "SemanticAccessibilityNode", "kind": "class", "summary": "One node of a frame reduced to what a platform accessibility tree needs: a role, a name, an optional value, its state, an optional stable automation id, its bounds and its children.", "members": [{ "name": "Children", "kind": "property", "id": "property|Children|0|0|IReadOnlyList\u003CSemanticAccessibilityNode\u003E||get;set;|hb15644f50fae8dc9582539f4275a709853802e20b09e72adea1e326f01681caf", "signature": "IReadOnlyList\u003CSemanticAccessibilityNode\u003E Children { get; init; }" }, { "name": "Bounds", "kind": "property", "id": "property|Bounds|0|0|RectF||get;set;|h6b5d54fbd9485d14003baf558dba879bac2167e31e983f5d12f779058341eeb1", "signature": "RectF Bounds { get; init; }" }, { "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||SemanticRole Role;string Name;string? Value;SemanticState State;string? AutomationId;RectF Bounds;IReadOnlyList\u003CSemanticAccessibilityNode\u003E Children||h5385ba18c96bbbff39c6403e1c789c859d705974b16ce44a20c4fdb94ebd90e4", "signature": "SemanticAccessibilityNode(SemanticRole Role, string Name, string? Value, SemanticState State, string? AutomationId, RectF Bounds, IReadOnlyList\u003CSemanticAccessibilityNode\u003E Children)", "parameters": [{ "name": "Role", "type": "SemanticRole" }, { "name": "Name", "type": "string" }, { "name": "Value", "type": "string?" }, { "name": "State", "type": "SemanticState" }, { "name": "AutomationId", "type": "string?" }, { "name": "Bounds", "type": "RectF" }, { "name": "Children", "type": "IReadOnlyList\u003CSemanticAccessibilityNode\u003E" }], "summary": "One node of a frame reduced to what a platform accessibility tree needs: a role, a name, an optional value, its state, an optional stable automation id, its bounds and its children." }, { "name": "Role", "kind": "property", "id": "property|Role|0|0|SemanticRole||get;set;|h958f8701cec3dba2ebed020c40a701aff871de98d7933031bbe12c32ee48882e", "signature": "SemanticRole Role { get; init; }" }, { "name": "State", "kind": "property", "id": "property|State|0|0|SemanticState||get;set;|hd5e4bce4fbe7cbb9afd7cdb96a7c471ca43b1e4009a9f6d20ac4113eae2fe24c", "signature": "SemanticState State { get; init; }" }, { "name": "Equals", "kind": "method", "id": "method|Equals|0|0|bool|SemanticAccessibilityNode? other||hf54142a5e1c040ece3ea4ba18ee8116abe0de9c35d8efdb04395e9ac5dce2111", "signature": "bool Equals(SemanticAccessibilityNode? other)", "parameters": [{ "name": "other", "type": "SemanticAccessibilityNode?" }] }, { "name": "Equals", "kind": "method", "id": "method|Equals|0|0|bool|object? obj||hd3e92e37e2998ac34e36806ff7fcef181ad242dea4dc74cd082b2897104d07a6", "signature": "bool Equals(object? obj)", "parameters": [{ "name": "obj", "type": "object?" }] }, { "name": "GetHashCode", "kind": "method", "id": "method|GetHashCode|0|0|int|||hdfcf1984bbd53bb9079a9b702ff4724865de4dcf06bbed07c42edbc8e1085a8d", "signature": "int GetHashCode()" }, { "name": "!=", "kind": "operator", "id": "operator|op_Inequality|1|0|bool|SemanticAccessibilityNode? left;SemanticAccessibilityNode? right||h508e22f361a1911cccb8f03922b2a6e4fddab6b7f1e5e2b6baee0a03763c739d", "signature": "static bool operator !=(SemanticAccessibilityNode? left, SemanticAccessibilityNode? right)", "member": "op_Inequality", "parameters": [{ "name": "left", "type": "SemanticAccessibilityNode?" }, { "name": "right", "type": "SemanticAccessibilityNode?" }] }, { "name": "==", "kind": "operator", "id": "operator|op_Equality|1|0|bool|SemanticAccessibilityNode? left;SemanticAccessibilityNode? right||h79d11b9d3ed32b784c454a693a8c269ed95367451b282addbb55fd88ac987b05", "signature": "static bool operator ==(SemanticAccessibilityNode? left, SemanticAccessibilityNode? right)", "member": "op_Equality", "parameters": [{ "name": "left", "type": "SemanticAccessibilityNode?" }, { "name": "right", "type": "SemanticAccessibilityNode?" }] }, { "name": "Name", "kind": "property", "id": "property|Name|0|0|string||get;set;|hee1f0a2439f06ddec4a68e8430b59381abde606f5908eed6e421fc3615857404", "signature": "string Name { get; init; }" }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()" }, { "name": "AutomationId", "kind": "property", "id": "property|AutomationId|0|0|string?||get;set;|h056a57d6ab3ed46ad99c807e85516582ae28be3b82e80ae1619e404fe5a2a63a", "signature": "string? AutomationId { get; init; }" }, { "name": "Value", "kind": "property", "id": "property|Value|0|0|string?||get;set;|hbbe5332083e97a4f6724795a58b499ba603c427fb4d8258fd048105eab0495d8", "signature": "string? Value { get; init; }" }, { "name": "Deconstruct", "kind": "method", "id": "method|Deconstruct|0|0|void|out SemanticRole Role;out string Name;out string? Value;out SemanticState State;out string? AutomationId;out RectF Bounds;out IReadOnlyList\u003CSemanticAccessibilityNode\u003E Children||h85f72141ba7d6ccc9d6d0559fe02a9928bc3abb73b10968917e508359b830238", "signature": "void Deconstruct(out SemanticRole Role, out string Name, out string? Value, out SemanticState State, out string? AutomationId, out RectF Bounds, out IReadOnlyList\u003CSemanticAccessibilityNode\u003E Children)", "parameters": [{ "name": "Role", "type": "out SemanticRole" }, { "name": "Name", "type": "out string" }, { "name": "Value", "type": "out string?" }, { "name": "State", "type": "out SemanticState" }, { "name": "AutomationId", "type": "out string?" }, { "name": "Bounds", "type": "out RectF" }, { "name": "Children", "type": "out IReadOnlyList\u003CSemanticAccessibilityNode\u003E" }] }] }, + { "name": "CuiSharp.SemanticNode", "displayName": "SemanticNode", "kind": "class", "summary": "One named thing in a frame \u2014 a control, or a container the app gave an id \u2014 and everything drawn inside it.", "members": [{ "name": "Descendants", "kind": "method", "id": "method|Descendants|0|0|IEnumerable\u003CSemanticNode\u003E|||hb2e00cdf2d1e34171d687045000fe4dd6904f246cc4904cbaa8a21fdd3e29b8b", "signature": "IEnumerable\u003CSemanticNode\u003E Descendants()", "summary": "Every node below this one, depth first." }, { "name": "Children", "kind": "property", "id": "property|Children|0|0|IReadOnlyList\u003CSemanticNode\u003E||get;|h5966cf2ffc85aa0cefb339b7a12aecbb96d2e1b1cbdc4d0ae23e0a897ad1bb69", "signature": "IReadOnlyList\u003CSemanticNode\u003E Children { get; }", "summary": "Everything drawn inside it, in drawing order." }, { "name": "Rect", "kind": "property", "id": "property|Rect|0|0|RectF||get;|hf755173a5fe47fca342422117b9258f72be7002a01ae38cb809f072f70e4e9a6", "signature": "RectF Rect { get; }", "summary": "Where it was laid out, in points." }, { "name": "ToAccessibility", "kind": "method", "id": "method|ToAccessibility|0|0|SemanticAccessibilityNode|||ha72100f8eace6284963cd12aafa9afd2647a52fb58fe0480e6c4a75157e0ebb5", "signature": "SemanticAccessibilityNode ToAccessibility()", "summary": "Projects this frame tree onto the shape a platform accessibility layer consumes. The platform adapter (UIA, AT-SPI, NSAccessibility) is still ahead; this object is the stable data it will read, so the app does not have to expose a second tree." }, { "name": "Find", "kind": "method", "id": "method|Find|0|0|SemanticNode|string query||h9aa27c93146559c3380a35c8c7bb7292a46ce84553a02211995082057dc09c66", "signature": "SemanticNode Find(string query)", "parameters": [{ "name": "query", "type": "string" }], "summary": "Finds a node below this one, or explains what is there instead." }, { "name": "Parent", "kind": "property", "id": "property|Parent|0|0|SemanticNode?||get;|h0a677e23dee947553b8ffbefec3d898ffd27e077224bc55a9e2bd8c65cba3b33", "signature": "SemanticNode? Parent { get; }", "summary": "The container it sits in, or null for a node at the top of the frame." }, { "name": "Role", "kind": "property", "id": "property|Role|0|0|SemanticRole||get;|h6f5262ec9d3be0f73145935deaa3086d26c598ad0b0ea2b3cb73c68acfc5a4bf", "signature": "SemanticRole Role { get; }", "summary": "The role this wrapper plays, e.g. Button. The exact wrapper is still Kind; the role is what an accessibility tree, an agent or a query groups by." }, { "name": "State", "kind": "property", "id": "property|State|0|0|SemanticState||get;|h454fe9fd2cb4291afd0fed432be5b7ce97b5e2630d21be3f5426b0d186e83dce", "signature": "SemanticState State { get; }", "summary": "What was observable about the control in this frame." }, { "name": "Detached", "kind": "property", "id": "property|Detached|0|0|bool||get;|hc64c578af9d7646df189fa7a1bdb0a3de267a533558de3b50292b286e8a16593", "signature": "bool Detached { get; }", "summary": "True when CUI draws this node on a floating layer of its own \u2014 a dialog, popover, menu, tooltip, toast or tour. The tree keeps it where the app drew it, but its geometry belongs to its own layer and says nothing about the bounds of its nesting ancestors." }, { "name": "HasOwnRect", "kind": "property", "id": "property|HasOwnRect|0|0|bool||get;|h2147106daf2920bdfba7a67efa15434b0bbc83cf365a412e6711199944e16f5e", "signature": "bool HasOwnRect { get; }", "summary": "True when the recorded id is one CUI laid this very widget out under, so its rect is its own. False means the id may belong to whatever was drawn before it: the rect is a hint, not a fact. This is geometry provenance, unrelated to how queries rank the node." }, { "name": "IsContainer", "kind": "property", "id": "property|IsContainer|0|0|bool||get;|h58e6d50111e3867dc21d8ff3f8e340fcdce36de432ab79c3dd814dea5f335c26", "signature": "bool IsContainer { get; }", "summary": "True when the app drew something inside it, so it can be a parent." }, { "name": "IsEnabled", "kind": "property", "id": "property|IsEnabled|0|0|bool||get;|he81d5613dd9316d87183274455811f4f743e0fd309916d5d2c5fe6260e38cc1a", "signature": "bool IsEnabled { get; }", "summary": "True when a ui.Disabled scope did not cover the control." }, { "name": "IsFocused", "kind": "property", "id": "property|IsFocused|0|0|bool||get;|h2477580ab9ad48b650fbac6c6f30564267dabeadd1b416775a8fcfba8ab1ccb9", "signature": "bool IsFocused { get; }", "summary": "True when this frame reported keyboard focus for the control." }, { "name": "TryFind", "kind": "method", "id": "method|TryFind|0|0|bool|string query;out SemanticNode node||h10f68a1bf1fea034c9872526bdc9b2bebc5d2ef0e770be328c4ca3ce8928dbb7", "signature": "bool TryFind(string query, out SemanticNode node)", "parameters": [{ "name": "query", "type": "string" }, { "name": "node", "type": "out SemanticNode" }], "summary": "Finds this node or anything below it by a query: a label (Save), a kind and a label (Button \u0022Save\u0022), or a path (editor \u003E Button \u0022Save\u0022: a container is named by its id or label, and only the last step may name a kind)." }, { "name": "Depth", "kind": "property", "id": "property|Depth|0|0|int||get;|h005393779795fcee5a87d55774bb521a2fdf30d65e68e7ea958f24c21fa71717", "signature": "int Depth { get; }", "summary": "How many containers were open around it." }, { "name": "Describe", "kind": "method", "id": "method|Describe|0|0|string|||h8f89983200a6d6ac2e2461bbccc2fc80df8cbc14ef04b37d460de774a0408566", "signature": "string Describe()", "summary": "The compact label plus the role, automation id, value and state of this one node." }, { "name": "Kind", "kind": "property", "id": "property|Kind|0|0|string||get;|h388961e1f6a3037bd4a4c8333a144e60a99cdcd3bd10798d477a76bdae288a1d", "signature": "string Kind { get; }", "summary": "The wrapper that drew it: Button, Input, Card." }, { "name": "Name", "kind": "property", "id": "property|Name|0|0|string||get;|h7444afa0ed095830b9bd11740d4f9a8e9044736fc59c8417d6aa87f835f3d41b", "signature": "string Name { get; }", "summary": "The same thing as Text, named the way an accessibility adapter reads it." }, { "name": "Path", "kind": "property", "id": "property|Path|0|0|string||get;|hb2d3527ced8c78e3ca97b5a77f9028096a1989cb0f7317d6116bac0bf5229f5e", "signature": "string Path { get; }", "summary": "The nesting that leads here, e.g. Card \u0022editor\u0022 \u003E Button \u0022Save\u0022: the shortest description of where a control is." }, { "name": "Print", "kind": "method", "id": "method|Print|0|0|string|bool rects = default;bool details = default||h013936e9c6fc7069588b026ee2d24a816ecf8fff1a397f090889c17054399fe0", "signature": "string Print(bool rects = default, bool details = default)", "parameters": [{ "name": "rects", "type": "bool", "default": "default" }, { "name": "details", "type": "bool", "default": "default" }], "summary": "The tree as text, one line per node: what a test prints when it fails, and what an agent reads to find out which controls a frame drew." }, { "name": "Text", "kind": "property", "id": "property|Text|0|0|string||get;|h221097532e4154611cbbc42c65b80d74f8055bd282efb709184598cd9d2c27bb", "signature": "string Text { get; }", "summary": "The label, or the id when the widget or container has one." }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()" }, { "name": "AutomationId", "kind": "property", "id": "property|AutomationId|0|0|string?||get;|h8adba5bb44e6871965a15aca785de92cc7bae5a00b6483d3300cab9fc2f0ca77", "signature": "string? AutomationId { get; }", "summary": "A stable id the app (or a ui.Id / ui.Automation scope) gave this widget, independent of its label. Null when the app did not name it; id: queries also keep matching the recorded text for widgets whose text is already their id." }, { "name": "Value", "kind": "property", "id": "property|Value|0|0|string?||get;|hb2b72cbd43ebe3a6038a8c9bc6b24f0c97f73a648086318667933ccac27792d8", "signature": "string? Value { get; }", "summary": "The value a control holds this frame: a text field\u0027s text, a slider\u0027s number, a toggle\u0027s on/off." }, { "name": "Id", "kind": "property", "id": "property|Id|0|0|uint||get;|hc3025f4e0981c7ad622608a2293f185737bdcec4eb82f21efce88bc6011cdaed", "signature": "uint Id { get; }", "summary": "The id CUI laid it out under \u2014 for an item of a tab strip or a segmented control, the id the widget derived for that item. Unrelated to the label, so it survives translation." }] }, + { "name": "CuiSharp.SemanticRole", "displayName": "SemanticRole", "kind": "enum", "summary": "What a recorded node is, independent of the wrapper that drew it: the vocabulary an accessibility adapter, an agent or a test can group by.", "members": [{ "name": "Button", "kind": "enum value", "id": "enum value|Button|1|0|||3|h8915e44793f8a5b70339f46dccbc6bb27712bbbdc74d6d5bef9a3c59caf4116e", "signature": "Button = 3", "value": "3" }, { "name": "CheckBox", "kind": "enum value", "id": "enum value|CheckBox|1|0|||5|h78a3478fc5a60a87cd865be85f5a378d062d39b2f4b2d2a952ad3a54d8fc6b7f", "signature": "CheckBox = 5", "value": "5" }, { "name": "ComboBox", "kind": "enum value", "id": "enum value|ComboBox|1|0|||11|h92d62a062e9aeaa163810e92ab135c6e54e0fa0b0cbbbcacbf41aa32ec35ddd6", "signature": "ComboBox = 11", "value": "11" }, { "name": "Container", "kind": "enum value", "id": "enum value|Container|1|0|||2|h96f437ea2701ab15f04478c4e67f80959fdd0e43815656cbdef41f0b7d4caa3e", "signature": "Container = 2", "value": "2" }, { "name": "Dialog", "kind": "enum value", "id": "enum value|Dialog|1|0|||18|h279851552bdcc7e2e7c0fe9bd4269814da50027f73d1eb90b4b6140a091f8bff", "signature": "Dialog = 18", "value": "18" }, { "name": "Frame", "kind": "enum value", "id": "enum value|Frame|1|0|||1|hf594928843ca963e5213c4ed4fcc82e419b2eabb4cbe85156cc3aa4db721a64a", "signature": "Frame = 1", "value": "1" }, { "name": "Heading", "kind": "enum value", "id": "enum value|Heading|1|0|||27|h817e0484407eafd61e574f617d3783ddbbc50c92e99d4076c9a9ed461c0c67f1", "signature": "Heading = 27", "value": "27" }, { "name": "Image", "kind": "enum value", "id": "enum value|Image|1|0|||25|hd8156dea00a0412466ae173b1ee657d788ee275acef48b8d32a759ebda74d36e", "signature": "Image = 25", "value": "25" }, { "name": "Link", "kind": "enum value", "id": "enum value|Link|1|0|||4|h1a4d69fce1b84a297fe699a21668e7953a8baa52c93bb3a865196f47ac5479fc", "signature": "Link = 4", "value": "4" }, { "name": "List", "kind": "enum value", "id": "enum value|List|1|0|||14|h74a575916972003acae61b4988e00795f9d71c84c3122fdedc91068a7be392d7", "signature": "List = 14", "value": "14" }, { "name": "ListItem", "kind": "enum value", "id": "enum value|ListItem|1|0|||15|h3538ac29f98fff6c9504a18cfb241511388d13c04427158bc2cdb50d440243a0", "signature": "ListItem = 15", "value": "15" }, { "name": "Menu", "kind": "enum value", "id": "enum value|Menu|1|0|||16|hcf274839b04d7d388c30db9f2159eebe3a52760325dee179aac0c2e7fe02dd2f", "signature": "Menu = 16", "value": "16" }, { "name": "MenuItem", "kind": "enum value", "id": "enum value|MenuItem|1|0|||17|h92dae3731552403259d55364319795e1b8ad5e1369633e40afdfa2006ca72b1a", "signature": "MenuItem = 17", "value": "17" }, { "name": "None", "kind": "enum value", "id": "enum value|None|1|0|||0|h9e4e72abf0eaa3b853206f4d9ea0b0faabef40a12ba47974d4328c3a5bbf4faa", "signature": "None = 0", "value": "0" }, { "name": "Other", "kind": "enum value", "id": "enum value|Other|1|0|||30|h0f81010f5920f823684fd86291de22537079976a36356ee09fda80a492c3f3fa", "signature": "Other = 30", "value": "30" }, { "name": "ProgressBar", "kind": "enum value", "id": "enum value|ProgressBar|1|0|||28|h3c8eca1beef87f18e91a2ceae2838b2dc86718928a6dcfde0b4aa2ddd72b5519", "signature": "ProgressBar = 28", "value": "28" }, { "name": "RadioButton", "kind": "enum value", "id": "enum value|RadioButton|1|0|||6|hc973697aba80e1f984b456c0e7b8bf22d24c748a466d629e5b55ed8888c40f3c", "signature": "RadioButton = 6", "value": "6" }, { "name": "Separator", "kind": "enum value", "id": "enum value|Separator|1|0|||29|h0ca8b569185a51d178125eb324e055eca2cef212ff90449bde4316b74779f07e", "signature": "Separator = 29", "value": "29" }, { "name": "Slider", "kind": "enum value", "id": "enum value|Slider|1|0|||9|h258adf87634c3c99ed75b8134ca66518e8c726044766f86606a34c6d33ddd21b", "signature": "Slider = 9", "value": "9" }, { "name": "SpinButton", "kind": "enum value", "id": "enum value|SpinButton|1|0|||10|ha49cd1d59d54a9c82bdcaddbab1509a0514bb25b9b01c6c398b0264abebcc537", "signature": "SpinButton = 10", "value": "10" }, { "name": "Switch", "kind": "enum value", "id": "enum value|Switch|1|0|||7|hcf9bb7e7c8f24432cca9150d92d5cd3fd12ef119c7b8a8379a278173e2307cd6", "signature": "Switch = 7", "value": "7" }, { "name": "Tab", "kind": "enum value", "id": "enum value|Tab|1|0|||13|hb735b9aac1ded52969cc8125ace4c9db0793fdcc08666acd1542fef6c5fdb3f0", "signature": "Tab = 13", "value": "13" }, { "name": "TabList", "kind": "enum value", "id": "enum value|TabList|1|0|||12|h629280494609bfaba7878589895010c3e64b839958faaf33fbaed5eb5388b0ee", "signature": "TabList = 12", "value": "12" }, { "name": "Table", "kind": "enum value", "id": "enum value|Table|1|0|||20|h348c5a513704321d4319b84afc26286d88e4bbe985bb22071c2f2940e9d43634", "signature": "Table = 20", "value": "20" }, { "name": "TableCell", "kind": "enum value", "id": "enum value|TableCell|1|0|||22|h67baeeacf215634f15970f945bae7d34ef92ab1b64e0f6dc677139de747304dd", "signature": "TableCell = 22", "value": "22" }, { "name": "TableRow", "kind": "enum value", "id": "enum value|TableRow|1|0|||21|h064d8886b432268603c560781cfda85305e8ddf1f16f468456ecc9c7498c450b", "signature": "TableRow = 21", "value": "21" }, { "name": "Text", "kind": "enum value", "id": "enum value|Text|1|0|||26|h287c5f58a4130db633c23f6df9ca2b6e3b6a68e465d3f6e8ecdbc6a33e2cd6b9", "signature": "Text = 26", "value": "26" }, { "name": "TextBox", "kind": "enum value", "id": "enum value|TextBox|1|0|||8|h6842b856ada3be439916cc14640f711648b30d33459d5d7aecb94d7a6873ff6c", "signature": "TextBox = 8", "value": "8" }, { "name": "Tooltip", "kind": "enum value", "id": "enum value|Tooltip|1|0|||19|h20bfb1592a4d0bd6a708d745c9ed53a5b315ba9babbf49ff6e08ba8a27734366", "signature": "Tooltip = 19", "value": "19" }, { "name": "Tree", "kind": "enum value", "id": "enum value|Tree|1|0|||23|he83dfb9e3122a0859cf728f836be92c5c5cbd411a32025066a4b274f37eaf962", "signature": "Tree = 23", "value": "23" }, { "name": "TreeItem", "kind": "enum value", "id": "enum value|TreeItem|1|0|||24|h6d61689952741afcb8c3502106f4db7f5c76aec4ea445d54f75f41ec7d461309", "signature": "TreeItem = 24", "value": "24" }] }, + { "name": "CuiSharp.SemanticRoles", "displayName": "SemanticRoles", "kind": "static class", "summary": "The role names people and scripts type, e.g. role:button.", "members": [{ "name": "Of", "kind": "method", "id": "method|Of|1|0|SemanticRole|string kind||hd0fc813e3f0db8f86ec8a54d09c65432d6bb69dd4663c212b532d96026c82a55", "signature": "static SemanticRole Of(string kind)", "parameters": [{ "name": "kind", "type": "string" }], "summary": "The role a wrapper kind belongs to. Exact wrapper meanings win over prefixes." }, { "name": "TryParse", "kind": "method", "id": "method|TryParse|1|0|bool|string? text;out SemanticRole role||hd7d35e24997106b35000ae13936e63b2ea2f9baf934315eb7b6d6b2e27190770", "signature": "static bool TryParse(string? text, out SemanticRole role)", "parameters": [{ "name": "text", "type": "string?" }, { "name": "role", "type": "out SemanticRole" }], "summary": "Reads a role name without case sensitivity; check-box and checkbox agree." }, { "name": "Name", "kind": "method", "id": "method|Name|1|0|string|SemanticRole role||h9e9b63136a7ff095bf24a2fd9a441d52a470b52c6ba826e4e5059a93d5c7acd6", "signature": "static string Name(SemanticRole role)", "parameters": [{ "name": "role", "type": "SemanticRole" }], "summary": "The lowercase spelling a query and a detail line use." }] }, + { "name": "CuiSharp.SemanticState", "displayName": "SemanticState", "kind": "enum", "summary": "What is true of a control in the frame that recorded it.", "members": [{ "name": "Checked", "kind": "enum value", "id": "enum value|Checked|1|0|||4|h48d82a9e240644d7d9a54bfb3df8232848ce73f6b61ff5581556ca7f3b84caa4", "signature": "Checked = 4", "summary": "A checkbox, switch or toggle is on.", "value": "4" }, { "name": "Enabled", "kind": "enum value", "id": "enum value|Enabled|1|0|||1|h8f8e3002dc7990671695c54cf523e04cecf62462a89bb9ce7b9dbb27a9605424", "signature": "Enabled = 1", "summary": "The control accepts input; absent when a ui.Disabled scope drew it.", "value": "1" }, { "name": "Expanded", "kind": "enum value", "id": "enum value|Expanded|1|0|||16|h7069ff69019df064b7c2db4690988a666955a3f9975ff4fee8ba071dad1a35cc", "signature": "Expanded = 16", "summary": "A disclosure, menu, popover or picker is open.", "value": "16" }, { "name": "Focused", "kind": "enum value", "id": "enum value|Focused|1|0|||2|h27b1f54fcb0285d530dba58ae0a9e557f491ef309855f94cac0ce055612601c9", "signature": "Focused = 2", "summary": "The control gained keyboard focus in this frame.", "value": "2" }, { "name": "None", "kind": "enum value", "id": "enum value|None|1|0|||0|h9e4e72abf0eaa3b853206f4d9ea0b0faabef40a12ba47974d4328c3a5bbf4faa", "signature": "None = 0", "summary": "Nothing is known or nothing applies.", "value": "0" }, { "name": "ReadOnly", "kind": "enum value", "id": "enum value|ReadOnly|1|0|||32|h3297899d3444dcee7d1f0dd5da9e07c9067cca59761e86a9765ea5348439bcb3", "signature": "ReadOnly = 32", "summary": "The value can be read but not edited.", "value": "32" }, { "name": "Selected", "kind": "enum value", "id": "enum value|Selected|1|0|||8|h6a9f13994d0c6b253d199bd7d25948224679ab3a001680c6508c6108f95bab8a", "signature": "Selected = 8", "summary": "A tab, row, chip or segmented item is selected.", "value": "8" }] }, + { "name": "CuiSharp.SemanticStates", "displayName": "SemanticStates", "kind": "static class", "summary": "The memorable spelling of SemanticState flags.", "members": [{ "name": "Format", "kind": "method", "id": "method|Format|1|0|string|SemanticState state||h32ff7d1ebc6f2f2280e1523dd07968346ae38cc80182a0e6a6ff25dbc68d035b", "signature": "static string Format(SemanticState state)", "parameters": [{ "name": "state", "type": "SemanticState" }], "summary": "enabled, checked, focused, in a stable order." }] }, + { "name": "CuiSharp.SemanticWidget", "displayName": "SemanticWidget", "kind": "struct", "summary": "One thing a frame recorded: a control, or a container the app gave an id, with the text that names it and where it was laid out.", "members": [{ "name": "Center", "kind": "property", "id": "property|Center|0|0|ValueTuple\u003Cfloat, float\u003E||get;|h0a928e20a77e4a851575877bd247d3e0bfd675854061d20c99152b0ee772b6a0", "signature": "ValueTuple\u003Cfloat, float\u003E Center { get; }", "summary": "The point at the middle: where a simulated click goes." }, { "name": "Contains", "kind": "method", "id": "method|Contains|0|0|bool|float x;float y||h5e2c35791a73fb0fecb5d484bb6de7e408b5219215458ddd10c4b7637a782e0b", "signature": "bool Contains(float x, float y)", "parameters": [{ "name": "x", "type": "float" }, { "name": "y", "type": "float" }], "summary": "True when the point is inside it." }, { "name": "Rect", "kind": "field", "id": "field|Rect|0|0|RectF|||h36c84f4bf259c7df4e00bfe92693bbcd043eb64d7e623295afc1e04bc98f27cf", "signature": "public readonly RectF Rect", "summary": "Where it was laid out, in points, in the frame that produced it." }, { "name": "State", "kind": "field", "id": "field|State|0|0|SemanticState|||h2073dc4f4a1dea6bf19be58272614d425dcfadd6544ede79cfb61a14f02f3560", "signature": "public readonly SemanticState State", "summary": "The state observed while the control was drawn." }, { "name": "Detached", "kind": "field", "id": "field|Detached|0|0|bool|||he6905cb36f4c3c3809678b25e7ae9d5832d501865c58ed49acedcf588989b1be", "signature": "public readonly bool Detached", "summary": "True when CUI draws this widget on a floating layer of its own \u2014 a dialog, popover, menu, tooltip, toast or tour. The recorded nesting still shows where the app drew it, but its geometry belongs to its own layer, not to the containers it is nested under." }, { "name": "HasOwnRect", "kind": "field", "id": "field|HasOwnRect|0|0|bool|||hbe275cc80db9d6625846a7ecbd505321e02f175f33417b35536afdb14ea6a8c1", "signature": "public readonly bool HasOwnRect", "summary": "True when the recorded id is one CUI laid this very widget out under \u2014 a container id its begin call returned, an id derived the way CUI derives it, or a kind proven to publish its own id as the last id. False means the id may be someone else\u0027s, so the rect is a hint about where to look, not a fact about this widget." }, { "name": "IsContainer", "kind": "field", "id": "field|IsContainer|0|0|bool|||hc7454505ba97259cb1cc992d89ed1c2a725cf4d19a0bb95b3707be1f64bc21b6", "signature": "public readonly bool IsContainer", "summary": "True for a container that recorded itself because the app named it." }, { "name": "Depth", "kind": "field", "id": "field|Depth|0|0|int|||ha8878fee53eb9cf2414e3afde3184f31a9eb3bf9f98176af4487368b5b454317", "signature": "public readonly int Depth", "summary": "How many containers were open around it: 0 for a widget at the top of the frame, 1 for one inside a card, and so on." }, { "name": "Kind", "kind": "field", "id": "field|Kind|0|0|string|||h4c541c4957c89762e7d2d2e3e33b14a44c2b1619f09f22b3a8d6e0a8c941f23c", "signature": "public readonly string Kind", "summary": "The wrapper\u0027s name: Button, Input, Card." }, { "name": "Text", "kind": "field", "id": "field|Text|0|0|string|||h68b7cc166e7738ce60e67f228271e2cb816cb8f3d6800b8f76b1b01d3a1fbf83", "signature": "public readonly string Text", "summary": "The widget\u0027s id, or its label when it has no id." }, { "name": "AutomationId", "kind": "field", "id": "field|AutomationId|0|0|string?|||h8246a20bbead6c54fc895ef6661bb460cdd82db877851ff3ee892bd47a8802e4", "signature": "public readonly string? AutomationId", "summary": "A stable id from a ui.Id or ui.Automation scope, or null." }, { "name": "Value", "kind": "field", "id": "field|Value|0|0|string?|||h37d1f4426a7e185aed90b2be599d9cd52b7dfabb693b810068fe0ad5bd4ba6f4", "signature": "public readonly string? Value", "summary": "The value the control held this frame, when it exposes one." }, { "name": "Id", "kind": "field", "id": "field|Id|0|0|uint|||h9c07ed1bc23d891c34bd2cf77a987ddd1ee61647bb18261e3ca19e1b6b2d6b48", "signature": "public readonly uint Id", "summary": "The id CUI laid this widget out under. Stable while the widget exists, and unrelated to the text, so it is what a test can hold on to when the label is translated." }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()", "summary": "The kind and the text, e.g. Button \u0022Save\u0022." }] }, { "name": "CuiSharp.Series", "displayName": "Series", "kind": "struct", "summary": "Charts Elements are copied into the frame arena by the wrapper.", "members": [{ "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||string? Name;float[]? Values = null;int Count = default;Color Color = default||h9a61f1f33b52068aa9ce296dda6a5add41bce025de6a0a5bd4185bd6709f3a55", "signature": "Series(string? Name, float[]? Values = null, int Count = default, Color Color = default)", "parameters": [{ "name": "Name", "type": "string?" }, { "name": "Values", "type": "float[]?", "default": "null" }, { "name": "Count", "type": "int", "default": "default" }, { "name": "Color", "type": "Color", "default": "default" }] }, { "name": "Color", "kind": "field", "id": "field|Color|0|0|Color|||h275b313b6b736c43c952868f4256ef14616d693e4fe68ca53c7eb74f0c484c28", "signature": "public Color Color", "summary": "default: series palette" }, { "name": "Values", "kind": "field", "id": "field|Values|0|0|float[]?|||h2297887dc39e194c11ed11a1bc7d673508c8c381e7f2c43c6669bc8a49edec45", "signature": "public float[]? Values", "summary": "the series\u0027 data, one value per point" }, { "name": "Count", "kind": "field", "id": "field|Count|0|0|int|||hc275cef54f50cf3f56b3edd59bd99c83cfa813a4286599b3d70fc99d7cb42067", "signature": "public int Count", "summary": "number of \u0060values\u0060" }, { "name": "Name", "kind": "field", "id": "field|Name|0|0|string?|||hcbdb244d52a3792efd9959d43171bf3259e059aed2be3877936b4e392b4df7e7", "signature": "public string? Name", "summary": "shown in the legend and in the hover tooltip" }] }, { "name": "CuiSharp.SeriesDecimator", "displayName": "SeriesDecimator", "kind": "static class", "summary": "Reduces a long series to something a chart can draw in real time. A chart is a few hundred pixels wide, so points beyond roughly two per pixel cannot be seen \u2014 but they still cost geometry. This collapses each bucket of consecutive samples into its minimum and its maximum, in the order they occurred, which keeps spikes and gaps that plain averaging would erase. That is what financial and monitoring charts do. Copy-based and allocation-free: pass a destination span and reuse it every frame. See RequiredCapacity.", "members": [{ "name": "Decimate", "kind": "method", "id": "method|Decimate|1|0|float[]|ReadOnlySpan\u003Cfloat\u003E source;int buckets||h57be39ba7b62d04901227ad335a715cdc65b0e15d7aca2281d6671d35b6aabab", "signature": "static float[] Decimate(ReadOnlySpan\u003Cfloat\u003E source, int buckets)", "parameters": [{ "name": "source", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "buckets", "type": "int" }], "summary": "Convenience overload for callers that would rather not size a buffer. Allocates; prefer the span overload inside a frame." }, { "name": "Decimate", "kind": "method", "id": "method|Decimate|1|0|int|ReadOnlySpan\u003Cfloat\u003E source;Span\u003Cfloat\u003E destination;int buckets||h33b46cde5ca131f2feaa537df35b0d4942a589525ab6a83a0dd11cc2aafe289d", "signature": "static int Decimate(ReadOnlySpan\u003Cfloat\u003E source, Span\u003Cfloat\u003E destination, int buckets)", "parameters": [{ "name": "source", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "destination", "type": "Span\u003Cfloat\u003E" }, { "name": "buckets", "type": "int" }], "summary": "Decimates source into destination. Returns the number of points written, which is 0, source.Length when it already fits, or an even number up to buckets * 2." }, { "name": "RequiredCapacity", "kind": "method", "id": "method|RequiredCapacity|1|0|int|int buckets||h0ba19241dfd2882418a4df437ca414de20707e5ad3098dbd9ac046454f14832e", "signature": "static int RequiredCapacity(int buckets)", "parameters": [{ "name": "buckets", "type": "int" }], "summary": "Points written at most for a given bucket count." }] }, { "name": "CuiSharp.Severity", "displayName": "Severity", "kind": "enum", "summary": "Compiler and linter diagnostics, grouped by file: errors, warnings, notes and hints with their position, source and code. Toggles above filter by severity (with counts) and a field filters by text. A file\u0027s header folds its group. Up and Down move the selection, Left and Right fold and unfold, Enter or a double-click reports \u0060activated\u0060 (open the file there). Only the rows in view are built, so thousands of diagnostics stay fast. The array needs to be valid only during the call.", "members": [{ "name": "Error", "kind": "enum value", "id": "enum value|Error|1|0|||0|h1be74ca9b09430ce431ffab022c61f7d490899907fffc473c0d4263ea397cf72", "signature": "Error = 0", "value": "0" }, { "name": "Hint", "kind": "enum value", "id": "enum value|Hint|1|0|||3|h8d01460ad77a1547aaf15f014ccfbafe2609035a1d0f145ad03c97bda2143974", "signature": "Hint = 3", "value": "3" }, { "name": "Info", "kind": "enum value", "id": "enum value|Info|1|0|||2|h9d07ea1e38d6abe142845630dc2f28ea265d47cf4ff8de68a0fe4011916186d3", "signature": "Info = 2", "value": "2" }, { "name": "Warning", "kind": "enum value", "id": "enum value|Warning|1|0|||1|h3699e894f07e195e49680b995c40992a452b1434348b9c7a1704f55611bae132", "signature": "Warning = 1", "value": "1" }] }, @@ -697,7 +703,7 @@ { "name": "CuiSharp.TreeTableOpts", "displayName": "TreeTableOpts", "kind": "struct", "summary": "cui_tree_table_opts. All fields are optional; zero selects the native default.", "members": [{ "name": "Height", "kind": "field", "id": "field|Height|0|0|Size|||ha64280009505e4bd6e5bbf4456fad0c2709e6a7d632627c6d242b3f0dccbcdbe", "signature": "public Size Height", "summary": "default fill" }, { "name": "Width", "kind": "field", "id": "field|Width|0|0|Size|||h4006d8d1aa3607cf3007c2fd6686981e9812586a28b9a4d7a283aeadfcd379ad", "signature": "public Size Width", "summary": "default fill" }, { "name": "Guides", "kind": "field", "id": "field|Guides|0|0|bool|||h7e9ab088cd84e6855062433d2087613e5fb8460e5ed62e343e4c52830488ac6b", "signature": "public bool Guides", "summary": "quiet vertical lines for each indentation level" }, { "name": "RowHeight", "kind": "field", "id": "field|RowHeight|0|0|float|||h5ea2104bcd7b1901e422af1ae5e7bfbafd249069750d53240ecbcc4c462a864a", "signature": "public float RowHeight", "summary": "default 32" }, { "name": "Root", "kind": "field", "id": "field|Root|0|0|int|||h6951cf8e44d999438aa751b095b478c002e3b8defd9d6fa77bc90f1c5a707dfb", "signature": "public int Root", "summary": "the first top level node, default 0" }] }, { "name": "CuiSharp.TreeTableRow", "displayName": "TreeTableRow", "kind": "delegate", "summary": "Draws one tree row: the caller writes the cells, the widget the indentation and chevron.", "members": [{ "name": "BeginInvoke", "kind": "method", "id": "method|BeginInvoke|0|0|IAsyncResult|Ui ui;int node;int depth;AsyncCallback callback;object object||hb8e87a7a2022e77c4a6ee5001cb539806ecfb6ef5552cdea8804276f71f2232c", "signature": "IAsyncResult BeginInvoke(Ui ui, int node, int depth, AsyncCallback callback, object @object)", "parameters": [{ "name": "ui", "type": "Ui" }, { "name": "node", "type": "int" }, { "name": "depth", "type": "int" }, { "name": "callback", "type": "AsyncCallback" }, { "name": "object", "type": "object" }] }, { "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||object object;nint method||he6641ea5e617ffa8974579447d4c8370257dc98cf899f5b6a348234630ca3eeb", "signature": "TreeTableRow(object @object, nint method)", "parameters": [{ "name": "object", "type": "object" }, { "name": "method", "type": "nint" }] }, { "name": "EndInvoke", "kind": "method", "id": "method|EndInvoke|0|0|void|IAsyncResult result||h477a5257f2f4c2172e54e854d9bc2f5c7bb790dade430a493c5a1c7d25248214", "signature": "void EndInvoke(IAsyncResult result)", "parameters": [{ "name": "result", "type": "IAsyncResult" }] }, { "name": "Invoke", "kind": "method", "id": "method|Invoke|0|0|void|Ui ui;int node;int depth||h9a371e5ae54502a8006d96dcddef3da1e0c9c674283682bf899a96595e9eecde", "signature": "void Invoke(Ui ui, int node, int depth)", "parameters": [{ "name": "ui", "type": "Ui" }, { "name": "node", "type": "int" }, { "name": "depth", "type": "int" }] }] }, { "name": "CuiSharp.TreemapOpts", "displayName": "TreemapOpts", "kind": "struct", "summary": "cui_treemap_opts. All fields are optional; zero selects the native default.", "members": [{ "name": "Width", "kind": "field", "id": "field|Width|0|0|Size|||h4006d8d1aa3607cf3007c2fd6686981e9812586a28b9a4d7a283aeadfcd379ad", "signature": "public Size Width", "summary": "cui_size width" }, { "name": "Height", "kind": "field", "id": "field|Height|0|0|float|||ha333299f179a1814155cda66a26b50fd7f476d27bf3ad5ffbc147c5abc8227fd", "signature": "public float Height", "summary": "float height" }, { "name": "Format", "kind": "field", "id": "field|Format|0|0|string?|||h569c4de400fd242b777ddfec561786900d4f2ae1434374423edf8bd9ef0c421f", "signature": "public string? Format", "summary": "const char * format" }] }, - { "name": "CuiSharp.Ui", "displayName": "Ui", "kind": "ref struct", "summary": "A stack-only drawing context. Do not retain it outside the current frame.", "members": [{ "name": "Accent", "kind": "property", "id": "property|Accent|0|0|Accent||get;set;|h601d9cfd9625a035242c1bcbf7277be4924bde18cceaaaa599fef54890ea0c9b", "signature": "Accent Accent { get; set; }", "summary": "The accent in use, and the way to change it. See Theme." }, { "name": "ApiExplorer", "kind": "extension", "id": "extension|ApiExplorer|0|0|ApiExplorerResult|UiText id;ReadOnlySpan\u003CApiEndpoint\u003E endpoints;ref int selected;ApiExplorerOpts o = default||h8e1274e09ed373172bec2fe1ee1969a7f9b2e594fbeed0ea8abed98302f3ed84", "signature": "ApiExplorerResult ApiExplorer(UiText id, ReadOnlySpan\u003CApiEndpoint\u003E endpoints, ref int selected, ApiExplorerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "endpoints", "type": "ReadOnlySpan\u003CApiEndpoint\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "ApiExplorerOpts", "default": "default" }], "summary": "cui_api_explorer_ex" }, { "name": "Blame", "kind": "extension", "id": "extension|Blame|0|0|BlameResult|UiText id;ReadOnlySpan\u003Cstring\u003E lines;ReadOnlySpan\u003Cint\u003E lineCommit;ReadOnlySpan\u003CBlameCommit\u003E commits;BlameOpts o = default||hdf716d42271c45696039bb07abacc01b9b0b2a935ee05dc1842213c276edf5eb", "signature": "BlameResult Blame(UiText id, ReadOnlySpan\u003Cstring\u003E lines, ReadOnlySpan\u003Cint\u003E lineCommit, ReadOnlySpan\u003CBlameCommit\u003E commits, BlameOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "lines", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "lineCommit", "type": "ReadOnlySpan\u003Cint\u003E" }, { "name": "commits", "type": "ReadOnlySpan\u003CBlameCommit\u003E" }, { "name": "o", "type": "BlameOpts", "default": "default" }], "summary": "Source with who last changed each line: lines from one commit share one gutter entry with its author, age and hash, and a bar at the edge shades newer changes stronger. Hover a gutter entry for the commit\u0027s summary and to mark its lines; click it to get the commit. Only the lines in view are built. On a phone the gutter keeps only the shade and initials." }, { "name": "Canvas", "kind": "method", "id": "method|Canvas|0|0|CanvasResult|UiText id;Size width;Size height;PaintFn paint||hf2c318f0b609f7226e807d7cf7e4edada63dc45f85bb57025ad7567a006824a0", "signature": "CanvasResult Canvas(UiText id, Size width, Size height, PaintFn paint)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "width", "type": "Size" }, { "name": "height", "type": "Size" }, { "name": "paint", "type": "PaintFn" }], "summary": "Reserves a box of the given size and lets you paint it." }, { "name": "Clip", "kind": "method", "id": "method|Clip|0|0|ClipScope|RectF r||h81bb7c5dd19720d5aa2ee17f5cb20e0238b08db45d6d0cb5700d16ce531ec5f2", "signature": "ClipScope Clip(RectF r)", "parameters": [{ "name": "r", "type": "RectF" }], "summary": "Clips subsequent drawing to a rectangle, closing the clip on dispose." }, { "name": "CodeEditor", "kind": "extension", "id": "extension|CodeEditor|0|0|CodeEditorResult|UiText id;ref string buf;int cap;CodeEditorOpts o = default||h3f99c4340c4ea2a0ae4ecc840716120045f85d30ea53f0aebe7ab1be2c09aa9a", "signature": "CodeEditorResult CodeEditor(UiText id, ref string buf, int cap, CodeEditorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }, { "name": "o", "type": "CodeEditorOpts", "default": "default" }], "summary": "cui_code_editor_ex" }, { "name": "ColorOf", "kind": "method", "id": "method|ColorOf|0|0|Color|Color color||h980f9c13c6409b9b666e72b6641e22a816c4a7d68a80eb109a44bc201bceceb0", "signature": "Color ColorOf(Color color)", "parameters": [{ "name": "color", "type": "Color" }], "summary": "Resolves a semantic token to its channels; other colors come back unchanged." }, { "name": "TokenColor", "kind": "method", "id": "method|TokenColor|0|0|Color|Token token||h0916cfc8affaa4db1788c2edd8ac85f518f146b3b691ef4d7181b7ad8ccac2fe", "signature": "Color TokenColor(Token token)", "parameters": [{ "name": "token", "type": "Token" }], "summary": "The channels a theme token resolves to this frame." }, { "name": "Comment", "kind": "extension", "id": "extension|Comment|0|0|CommentEvents|UiText id;UiText author;UiText text;ref int likes;ref bool liked;CommentOpts o = default||hd58eadbf1b4e2807aa889ed3f4c70606227f61711c62110ec27aebc46c70512c", "signature": "CommentEvents Comment(UiText id, UiText author, UiText text, ref int likes, ref bool liked, CommentOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "author", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "likes", "type": "ref int" }, { "name": "liked", "type": "ref bool" }, { "name": "o", "type": "CommentOpts", "default": "default" }], "summary": "cui_comment_ex" }, { "name": "CommitGraph", "kind": "extension", "id": "extension|CommitGraph|0|0|CommitGraphResult|UiText id;ReadOnlySpan\u003CCommit\u003E commits;ref int selected;CommitGraphOpts o = default||h8d094156c694b6c409f8abe92f01e016c9b138a44ea76b0770f70f4fd34781c7", "signature": "CommitGraphResult CommitGraph(UiText id, ReadOnlySpan\u003CCommit\u003E commits, ref int selected, CommitGraphOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "commits", "type": "ReadOnlySpan\u003CCommit\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "CommitGraphOpts", "default": "default" }], "summary": "Version history: the branch lanes drawn beside each commit, newest first, with its message, branch and tag names, author, date and short hash. Each commit names its parents by row (parents come later in the array), so merges and branches draw as lines between lanes. Only the rows in view are built. Up and Down move the selection; Enter or a double-click activates." }, { "name": "ChatComposer", "kind": "extension", "id": "extension|ChatComposer|0|0|ComposerEvents|UiText id;ref string buf;int cap;ref int removed;ref int model;ComposerOpts o = default||ha61bd40b4efb8355a255edc7d36d348178993536309ab1ee4c6c9a381fd22431", "signature": "ComposerEvents ChatComposer(UiText id, ref string buf, int cap, ref int removed, ref int model, ComposerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }, { "name": "removed", "type": "ref int" }, { "name": "model", "type": "ref int" }, { "name": "o", "type": "ComposerOpts", "default": "default" }], "summary": "cui_chat_composer_ex" }, { "name": "Coverage", "kind": "extension", "id": "extension|Coverage|0|0|CoverageResult|UiText id;ReadOnlySpan\u003CCoverageFile\u003E files;CoverageOpts o = default||h71a24310abd0377c27ded9130e91e48dc3e91a798d1a79f3563a30b446fe6a95", "signature": "CoverageResult Coverage(UiText id, ReadOnlySpan\u003CCoverageFile\u003E files, CoverageOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "files", "type": "ReadOnlySpan\u003CCoverageFile\u003E" }, { "name": "o", "type": "CoverageOpts", "default": "default" }], "summary": "Test coverage by folder and file: the files\u0027 paths make the tree, each folder sums up what it holds, and folders fold. Line coverage shows as a bar colored by thresholds, with branches and functions beside it. Click a column\u0027s title to sort. Enter or a double-click activates a file. Narrow panels show lines only." }, { "name": "Cursor", "kind": "property", "id": "property|Cursor|0|0|Cursor||get;|hc22a16db67c85c2843d2f88cc8ab464d28c155381bf1d1998e9fc4743eb42043", "signature": "Cursor Cursor { get; }", "summary": "The cursor the UI asked for last frame, for a backend that draws its own." }, { "name": "CurveEditor", "kind": "extension", "id": "extension|CurveEditor|0|0|CurveResult|UiText id;Span\u003CCurveKey\u003E keys;ref int count;ref int selected;CurveOpts o = default||h39773d299469a65f6696e9dc3fbe9375a8f18a602c2b96d77d1eee0c01377f62", "signature": "CurveResult CurveEditor(UiText id, Span\u003CCurveKey\u003E keys, ref int count, ref int selected, CurveOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "keys", "type": "Span\u003CCurveKey\u003E" }, { "name": "count", "type": "ref int" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "CurveOpts", "default": "default" }], "summary": "cui_curve_editor_ex" }, { "name": "DiffView", "kind": "extension", "id": "extension|DiffView|0|0|DiffResult|UiText id;UiText oldText;UiText newText;ref int current;DiffOpts o = default||h1928b65f5fa6dc715c0e20351e64a90a55ca9b8fd792c4a9a6e3df7545ba072a", "signature": "DiffResult DiffView(UiText id, UiText oldText, UiText newText, ref int current, DiffOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "oldText", "type": "UiText" }, { "name": "newText", "type": "UiText" }, { "name": "current", "type": "ref int" }, { "name": "o", "type": "DiffOpts", "default": "default" }], "summary": "cui_diff_view_ex" }, { "name": "Disabled", "kind": "method", "id": "method|Disabled|0|0|DisabledScope|bool disabled||h3a515a3de1d8d0205d97aef4118bf5ab6c5af12e051d859d3b8cabae81fb9db1", "signature": "DisabledScope Disabled(bool disabled)", "parameters": [{ "name": "disabled", "type": "bool" }], "summary": "Opens a disabled gate that using closes." }, { "name": "Disabled", "kind": "method", "id": "method|Disabled|0|0|DisabledScope|bool disabled;DrawFn body||hcc29e71513d0c4970a98faee97bed37a754ecae1da31ed37b95a7e3588c336d9", "signature": "DisabledScope Disabled(bool disabled, DrawFn body)", "parameters": [{ "name": "disabled", "type": "bool" }, { "name": "body", "type": "DrawFn" }], "summary": "Draws body with every control inside it disabled: it still lays out and paints, but clicks, keys and hover do nothing." }, { "name": "DocTabs", "kind": "extension", "id": "extension|DocTabs|0|0|DocTabsResult|UiText id;ReadOnlySpan\u003CDocTab\u003E tabs;ref int selected;DocTabsOpts o = default||hdb202a4c9e42fa362479fb5e674bee39fa9949e204316f94f4197f0a54fe4c83", "signature": "DocTabsResult DocTabs(UiText id, ReadOnlySpan\u003CDocTab\u003E tabs, ref int selected, DocTabsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tabs", "type": "ReadOnlySpan\u003CDocTab\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "DocTabsOpts", "default": "default" }], "summary": "Document tabs: editor style tabs. Clicking selects (*selected is updated), the x or a middle click asks to close, dragging reorders, and the strip scrolls sideways when the tabs do not fit. A dirty tab shows a dot that turns into the close button under the pointer. The selected tab is filled with the surface color so it joins the content below; the strip itself has no fill, like the other bars. Tabs keep their state by title, so give two tabs with the same name a key: \u0022main.c##src\u0022. The component never removes or moves your tabs itself: it reports a close or a move in the result and you apply it (selection already follows a move). With keyboard focus on the strip, Left and Right select, Home and End jump, Shift\u002BLeft/Right move the tab and Delete closes it. With \u0060shortcuts\u0060 set it also answers Ctrl\u002BTab, Ctrl\u002BShift\u002BTab, Ctrl\u002BPageUp/Down and Ctrl\u002BW (Cmd\u002BW on macOS) from anywhere in the window." }, { "name": "DotChart", "kind": "method", "id": "method|DotChart|0|0|DotChartResult|UiText id;ReadOnlySpan\u003CDotSeries\u003E series;int count;DotChartOpts o = default||h83e83d00645373641fe3f26a3fedf035305cc683a48a4802e1ebb7d5c572f881", "signature": "DotChartResult DotChart(UiText id, ReadOnlySpan\u003CDotSeries\u003E series, int count, DotChartOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "ReadOnlySpan\u003CDotSeries\u003E" }, { "name": "count", "type": "int" }, { "name": "o", "type": "DotChartOpts", "default": "default" }], "summary": "A dot-matrix chart: values as a grid of dots, lit up to each column\u0027s value. Several series stack in their own bands, and the pointer or the arrow keys show a readout of the value under it. Returns where a click landed, so an app can add something there." }, { "name": "EventTrack", "kind": "extension", "id": "extension|EventTrack|0|0|EventTrackResult|UiText id;Span\u003Cdouble\u003E times;ref int count;double min;double max;ref int selected;EventTrackOpts o = default||h552c584d56c0bad07e42547a610e3888e7ecda2c1a64bab104fa79448d19086c", "signature": "EventTrackResult EventTrack(UiText id, Span\u003Cdouble\u003E times, ref int count, double min, double max, ref int selected, EventTrackOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "times", "type": "Span\u003Cdouble\u003E" }, { "name": "count", "type": "ref int" }, { "name": "min", "type": "double" }, { "name": "max", "type": "double" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "EventTrackOpts", "default": "default" }], "summary": "Event track: moments on a time axis, as dots you drag along it. A click on an empty spot adds an event there and a double-click on one removes it. You own the array: the track keeps it sorted, edits it in place and never grows it past \u0060capacity\u0060." }, { "name": "FeatureFlags", "kind": "extension", "id": "extension|FeatureFlags|0|0|FeatureFlagsResult|UiText id;Span\u003CFeatureFlag\u003E flags;ReadOnlySpan\u003Cstring\u003E envs;FeatureFlagsOpts o = default||h1c2c043a1a911bf524b328f35cfa7f2ee4862adfb16f1b0cbd98cf1077245b34", "signature": "FeatureFlagsResult FeatureFlags(UiText id, Span\u003CFeatureFlag\u003E flags, ReadOnlySpan\u003Cstring\u003E envs, FeatureFlagsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "flags", "type": "Span\u003CFeatureFlag\u003E" }, { "name": "envs", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "o", "type": "FeatureFlagsOpts", "default": "default" }], "summary": "cui_feature_flags_ex" }, { "name": "FileBrowser", "kind": "extension", "id": "extension|FileBrowser|0|0|FileBrowserResult|UiText id;ref string path;int pathCap = 1024;FileBrowserOpts o = default||hdcc3319728f0b23560a33e9d8c875e4b5389d816f8e66b4e3630e917284e3bf8", "signature": "FileBrowserResult FileBrowser(UiText id, ref string path, int pathCap = 1024, FileBrowserOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "path", "type": "ref string" }, { "name": "pathCap", "type": "int", "default": "1024" }, { "name": "o", "type": "FileBrowserOpts", "default": "default" }], "summary": "path: the folder shown, yours; the browser writes it as you move around." }, { "name": "FlameGraph", "kind": "extension", "id": "extension|FlameGraph|0|0|FlameResult|UiText id;ReadOnlySpan\u003CFlameSpan\u003E spans;ref FlameView view;ref int selected;FlameOpts o = default||h825a9e17f3b7381f2b9b6b4244a8edbabda629701c297e3c877a4e13fc43e98c", "signature": "FlameResult FlameGraph(UiText id, ReadOnlySpan\u003CFlameSpan\u003E spans, ref FlameView view, ref int selected, FlameOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "spans", "type": "ReadOnlySpan\u003CFlameSpan\u003E" }, { "name": "view", "type": "ref FlameView" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "FlameOpts", "default": "default" }], "summary": "selected: index into spans, -1 for none (may be NULL)." }, { "name": "LoadFont", "kind": "extension", "id": "extension|LoadFont|0|0|Font|ReadOnlySpan\u003Cbyte\u003E data;bool copy = true||h73d65ad67f9acdd48823d96c747c086a24a1625658056e8af856a3bd4d554241", "signature": "Font LoadFont(ReadOnlySpan\u003Cbyte\u003E data, bool copy = true)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "data", "type": "ReadOnlySpan\u003Cbyte\u003E" }, { "name": "copy", "type": "bool", "default": "true" }], "summary": "Loads a font from memory and returns a handle for SetFont." }, { "name": "LoadFont", "kind": "extension", "id": "extension|LoadFont|0|0|Font|UiText path||h5faed851de772ad862622c3312f2aeae3c81ef7915ae305e81bb638cf9b3b107", "signature": "Font LoadFont(UiText path)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "path", "type": "UiText" }], "summary": "Loads a font file (TTF/OTF) and returns a handle for SetFont." }, { "name": "UseSystemFontFallback", "kind": "extension", "id": "extension|UseSystemFontFallback|0|0|Font|string sample||h718698d4ba3dba692a0bf04e8e6729a2aae4ac8563689108bb00fdf124984df6", "signature": "Font UseSystemFontFallback(string sample)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "sample", "type": "string" }], "summary": "Finds a face on this machine that can draw sample and registers it as a fallback for the app\u0027s roles, so a UI in a script the bundled faces do not cover renders instead of going blank." }, { "name": "GradientEditor", "kind": "extension", "id": "extension|GradientEditor|0|0|GradientResult|UiText id;Span\u003CGradientStop\u003E stops;ref int count;ref int selected;GradientOpts o = default||h840bbab777b2202298d9b5a0d6519bc52d291ff2a13de0a26b88f92a8379b841", "signature": "GradientResult GradientEditor(UiText id, Span\u003CGradientStop\u003E stops, ref int count, ref int selected, GradientOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "stops", "type": "Span\u003CGradientStop\u003E" }, { "name": "count", "type": "ref int" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "GradientOpts", "default": "default" }], "summary": "cui_gradient_editor_ex" }, { "name": "GraphView", "kind": "extension", "id": "extension|GraphView|0|0|GraphResult|UiText id;ReadOnlySpan\u003CGraphNode\u003E nodes;ReadOnlySpan\u003CGraphEdge\u003E edges;ref int selected;GraphOpts o = default||hbce489b5fa6d64979be674221b7ae61e945b26d0224773080270c2c7dfd8b3bc", "signature": "GraphResult GraphView(UiText id, ReadOnlySpan\u003CGraphNode\u003E nodes, ReadOnlySpan\u003CGraphEdge\u003E edges, ref int selected, GraphOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "nodes", "type": "ReadOnlySpan\u003CGraphNode\u003E" }, { "name": "edges", "type": "ReadOnlySpan\u003CGraphEdge\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "GraphOpts", "default": "default" }], "summary": "Nodes and directed edges laid out in layers (each edge points to a later layer, cycles are broken), for build targets, packages, services or call graphs. The layout is computed when the graph changes. Wheel zooms, drag pans, click selects; hovering a node lights up what it depends on and what depends on it. F fits the graph." }, { "name": "DataGrid", "kind": "extension", "id": "extension|DataGrid|0|0|GridScope|UiText id;ReadOnlySpan\u003CGridColumn\u003E columns;int rowCount;GridState state;GridOpts o = default||hae20817285aa5f5ee430918dd512e707df8a0306e32777f0e13839f607262829", "signature": "GridScope DataGrid(UiText id, ReadOnlySpan\u003CGridColumn\u003E columns, int rowCount, GridState state, GridOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CGridColumn\u003E" }, { "name": "rowCount", "type": "int" }, { "name": "state", "type": "GridState" }, { "name": "o", "type": "GridOpts", "default": "default" }], "summary": "Opens a virtualized grid; draw rows in [state.First, state.Last)." }, { "name": "HexView", "kind": "extension", "id": "extension|HexView|0|0|HexResult|UiText id;Span\u003Cbyte\u003E bytes;ref HexSelection selection;HexViewOpts o = default||hb82ecf6f9d8a58d5c2bce7702bd188c8bb502de7a2d696f1a0af827be5fa22d9", "signature": "HexResult HexView(UiText id, Span\u003Cbyte\u003E bytes, ref HexSelection selection, HexViewOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "bytes", "type": "Span\u003Cbyte\u003E" }, { "name": "selection", "type": "ref HexSelection" }, { "name": "o", "type": "HexViewOpts", "default": "default" }], "summary": "Draws bytes and lets the user overwrite them in place." }, { "name": "Id", "kind": "method", "id": "method|Id|0|0|IdScope|UiText id||hf913a0d346bf51d9f7a0e55299041c30e8aa0eeb2f93eadbe20cad0c4ae3879b", "signature": "IdScope Id(UiText id)", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "Pushes a string id for the widgets drawn inside the scope." }, { "name": "Id", "kind": "method", "id": "method|Id|0|0|IdScope|int key||h3b4b6991acded6793bc66a091956c19c02661da15fabdf72db107273b8ed3d1b", "signature": "IdScope Id(int key)", "parameters": [{ "name": "key", "type": "int" }], "summary": "Pushes an integer id, typically a row or item index." }, { "name": "Input", "kind": "method", "id": "method|Input|0|0|InputResult|UiText id;ref string value;InputOpts o = default||he495e19d9d5cb23d03e35f0f55ea0ebafd853d7386ae9e4989697b39cec38980", "signature": "InputResult Input(UiText id, ref string value, InputOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "o", "type": "InputOpts", "default": "default" }], "summary": "A single-line text field. Assign the string; CUI edits it in place and the new value comes back through value on the frames it changed." }, { "name": "Search", "kind": "method", "id": "method|Search|0|0|InputResult|UiText id;ref string value;InputOpts o = default||h11bb746b263541b15457e9933eac6e37a6cdfac44547449d0d7375a7431b87da", "signature": "InputResult Search(UiText id, ref string value, InputOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "o", "type": "InputOpts", "default": "default" }], "summary": "A search field. See Input." }, { "name": "TextArea", "kind": "method", "id": "method|TextArea|0|0|InputResult|UiText id;ref string value;InputOpts o = default||ha0535c062baff5583884fcf6394397476e4b2a40ee79b643e731e601e2daad5c", "signature": "InputResult TextArea(UiText id, ref string value, InputOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "o", "type": "InputOpts", "default": "default" }], "summary": "A multi-line text field. See Input." }, { "name": "Keyed", "kind": "method", "id": "method|Keyed|0|1|KeyedScope\u003CT\u003E|T[] items;KeyFn\u003CT\u003E key||h3645b3dae05812e37fd01340a5693892b688bf1436826030f83bf34e5dca43f8", "signature": "KeyedScope\u003CT\u003E Keyed\u003CT\u003E(T[] items, KeyFn\u003CT\u003E key)", "parameters": [{ "name": "items", "type": "T[]" }, { "name": "key", "type": "KeyFn\u003CT\u003E" }], "summary": "Enumerates items, each inside its own id scope derived from key." }, { "name": "Keymap", "kind": "extension", "id": "extension|Keymap|0|0|KeymapResult|UiText id;ReadOnlySpan\u003CKeymapBinding\u003E bindings;ref Mods mods;KeymapOpts o = default||h986c8ea2572b42d56814a32427ed89b00db2a4a2ff3ba6c7a4711a66da3c0bae", "signature": "KeymapResult Keymap(UiText id, ReadOnlySpan\u003CKeymapBinding\u003E bindings, ref Mods mods, KeymapOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "bindings", "type": "ReadOnlySpan\u003CKeymapBinding\u003E" }, { "name": "mods", "type": "ref Mods" }, { "name": "o", "type": "KeymapOpts", "default": "default" }], "summary": "A keyboard with your shortcuts on it: each bound key shows its action and the color of its category, for the modifiers chosen above it. Keys bound twice are marked as conflicts. Hover a key for every binding on it; click it to get the key (to rebind it). The keyboard keeps its own layout in a right-to-left interface and scales to the width it gets." }, { "name": "Box", "kind": "extension", "id": "extension|Box|0|0|LayoutScope|Box o = default||haec5c052acbeeaca94cb5a10a37f80e98abc85d069b6fa9aec58cf20715c0a06", "signature": "LayoutScope Box(Box o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Box", "default": "default" }], "summary": "cui_box_begin" }, { "name": "ButtonGroup", "kind": "extension", "id": "extension|ButtonGroup|0|0|LayoutScope|||h8a2a0872d3ba1595bf0e1d9ad5860dfa36735b0ac74178a57cc8157b6493d6d4", "signature": "LayoutScope ButtonGroup()", "extensionOn": "CuiSharp.Ui", "summary": "Connected buttons. Put buttons between begin and end." }, { "name": "Card", "kind": "extension", "id": "extension|Card|0|0|LayoutScope|Card o = default||hb8d0387f360f71c39f098c9de712bb4aa0eb22a25fffee4615049459c0cc224e", "signature": "LayoutScope Card(Card o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Card", "default": "default" }], "summary": "returns true when clicked (hoverable)" }, { "name": "Card", "kind": "extension", "id": "extension|Card|0|0|LayoutScope|Card o;out bool clicked||he64474f809036667bb19ed0028db705f58a61d124f67b6520b26f73775ae32e5", "signature": "LayoutScope Card(Card o, out bool clicked)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Card" }, { "name": "clicked", "type": "out bool" }], "summary": "Always opens the container; clicked reports its interaction result." }, { "name": "CardStackItem", "kind": "extension", "id": "extension|CardStackItem|0|0|LayoutScope|int depth||h6f29f3239b665449b7d0d9b4e5177cb4099b541e3423fcb9d1a9b14fb1f686d0", "signature": "LayoutScope CardStackItem(int depth)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "depth", "type": "int" }], "summary": "cui_card_stack_item_begin" }, { "name": "CarouselSlide", "kind": "extension", "id": "extension|CarouselSlide|0|0|LayoutScope|||h9755b016a070064271f7e45738238254443cdfcb4d22aca524774095031595ec", "signature": "LayoutScope CarouselSlide()", "extensionOn": "CuiSharp.Ui", "summary": "cui_carousel_slide_begin" }, { "name": "Column", "kind": "extension", "id": "extension|Column|0|0|LayoutScope|Box o = default||h78447c50c087189e1c45a5984115c6b2709affec511cf6ab6521254dd0406549", "signature": "LayoutScope Column(Box o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Box", "default": "default" }], "summary": "cui_column_begin" }, { "name": "DialogFooter", "kind": "extension", "id": "extension|DialogFooter|0|0|LayoutScope|||hea62c5e329105c7d787894e1fbdbbd9b079d2910e82c4be61263045ff18c81f3", "signature": "LayoutScope DialogFooter()", "extensionOn": "CuiSharp.Ui", "summary": "A right-aligned row for dialog actions." }, { "name": "Dock", "kind": "extension", "id": "extension|Dock|0|0|LayoutScope|UiText id;DockOpts o = default||ha8052963c653afff4ec2b3304515265b67454d94f44ee3c01d076c1e27148816", "signature": "LayoutScope Dock(UiText id, DockOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "DockOpts", "default": "default" }], "summary": "Dock: a row of icons that grow as the pointer passes, with labels and a dot under the running ones. Each item returns true when clicked." }, { "name": "Dockspace", "kind": "extension", "id": "extension|Dockspace|0|0|LayoutScope|UiText id;DockspaceOpts o = default||hd8cabbad4df58a75fbb1e93299868d95ae7671ca676e01478b8c6067ace5a82d", "signature": "LayoutScope Dockspace(UiText id, DockspaceOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "DockspaceOpts", "default": "default" }], "summary": "Dockspace: an IDE style workspace that lays out your panels in a tree of resizable splits whose leaves hold one or more panels as document tabs. Submit every panel each frame between cui_dockspace_begin and cui_dockspace_end; the dockspace decides where it goes, and a panel\u0027s content is built only while its tab is the one showing:" }, { "name": "KanbanCard", "kind": "extension", "id": "extension|KanbanCard|0|0|LayoutScope|int cardId||h04d36b815b7f14d7d624e0b56c06560e052f6458aecd5cd68f485e0c8dc64b11", "signature": "LayoutScope KanbanCard(int cardId)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "cardId", "type": "int" }], "summary": "true when clicked" }, { "name": "KanbanCard", "kind": "extension", "id": "extension|KanbanCard|0|0|LayoutScope|int cardId;out bool clicked||h0ef9ec0801ab926804d1119b9bc9dc886afc490850829ed33cad336f7ee94f50", "signature": "LayoutScope KanbanCard(int cardId, out bool clicked)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "cardId", "type": "int" }, { "name": "clicked", "type": "out bool" }], "summary": "Always opens the container; clicked reports its interaction result." }, { "name": "KanbanColumn", "kind": "extension", "id": "extension|KanbanColumn|0|0|LayoutScope|UiText title;int cardCount;KanbanColumnOpts o = default||hd3dcefdc81fb36dfee31edd1754914e0453a4c7e0b1bb4c4b2b20b542eb8adaa", "signature": "LayoutScope KanbanColumn(UiText title, int cardCount, KanbanColumnOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "cardCount", "type": "int" }, { "name": "o", "type": "KanbanColumnOpts", "default": "default" }], "summary": "true: \u0022\u002B\u0022 clicked" }, { "name": "KanbanColumn", "kind": "extension", "id": "extension|KanbanColumn|0|0|LayoutScope|UiText title;int cardCount;KanbanColumnOpts o;out bool clicked||h7c9ca66f79f064c49eed8f4544d8fea1ed3304dc45d84e5ec067d319ed4ea113", "signature": "LayoutScope KanbanColumn(UiText title, int cardCount, KanbanColumnOpts o, out bool clicked)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "cardCount", "type": "int" }, { "name": "o", "type": "KanbanColumnOpts" }, { "name": "clicked", "type": "out bool" }], "summary": "Always opens the container; clicked reports its interaction result." }, { "name": "MenuBar", "kind": "extension", "id": "extension|MenuBar|0|0|LayoutScope|UiText id;MenuBarOpts o = default||h29b57cc387904e3c1d3083b170ceaa309e6bc4a2535b4c27f22ecd482570e152", "signature": "LayoutScope MenuBar(UiText id, MenuBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "MenuBarOpts", "default": "default" }], "summary": "Menu bar: File / Edit / View along the top of a window. Each menu holds the usual menu items (cui_menu_item, cui_menu_separator, cui_menu_label). Once a menu is open, hovering another one switches to it. Alt (on its own) or F10 focuses the bar; arrows move between menus and items, Enter chooses, Esc steps back. Alt \u002B a menu\u0027s mnemonic letter opens it (the first letter of its label unless \u0060mnemonic\u0060 says otherwise)." }, { "name": "NodeContent", "kind": "extension", "id": "extension|NodeContent|0|0|LayoutScope|||h6a09d812c8b6d9c4a4f2fc6aedc000b977da707334c08c94ee4e6dd62573dd59", "signature": "LayoutScope NodeContent()", "extensionOn": "CuiSharp.Ui", "summary": "A row for ordinary components. They are laid out at 100% and scaled with the view, so their text is sharpest at 100% zoom and below." }, { "name": "ReorderItem", "kind": "method", "id": "method|ReorderItem|0|0|LayoutScope|int position||h407076f847f4d4f606b87a109b5a505ca525179c0bff6726382889745d33f038", "signature": "LayoutScope ReorderItem(int position)", "parameters": [{ "name": "position", "type": "int" }] }, { "name": "Row", "kind": "extension", "id": "extension|Row|0|0|LayoutScope|Box o = default||ha02204054f3ea32388e8e24fc8038f253dd0b3504b0e01b650d69265773cb67e", "signature": "LayoutScope Row(Box o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Box", "default": "default" }], "summary": "cui_row_begin" }, { "name": "Scroll", "kind": "extension", "id": "extension|Scroll|0|0|LayoutScope|ScrollOpts o = default||h7aa8eed4bb32b5efc54efbe5c6c7c19215ddf1d8ffed8dfc60e0c8d5234bc6f7", "signature": "LayoutScope Scroll(ScrollOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "ScrollOpts", "default": "default" }], "summary": "Scroll area with smooth scrolling and overlay scrollbars." }, { "name": "Split", "kind": "extension", "id": "extension|Split|0|0|LayoutScope|UiText id;ref float ratio;SplitOpts o = default||h83e75ece850ab88dc38fde4b7d1d8ae789128ab387c95d8025b6302e8f59269f", "signature": "LayoutScope Split(UiText id, ref float ratio, SplitOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "ratio", "type": "ref float" }, { "name": "o", "type": "SplitOpts", "default": "default" }], "summary": "Resizable split view: two panes with a draggable divider. \u0060ratio\u0060 is the size of the first pane in 0..1. Call cui_split_next between the panes." }, { "name": "Spotlight", "kind": "extension", "id": "extension|Spotlight|0|0|LayoutScope|UiText id;SpotlightOpts o = default||hfb70f807d4c0a2d5450e1ff296551adc78a8733ed06c6b0cb9ed7427add12f16", "signature": "LayoutScope Spotlight(UiText id, SpotlightOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "SpotlightOpts", "default": "default" }], "summary": "Spotlight card: a soft light follows the pointer across the card and lights the nearest stretch of its border. beam sends a light around the edge." }, { "name": "StatusBar", "kind": "extension", "id": "extension|StatusBar|0|0|LayoutScope|UiText id;StatusBarOpts o = default||h394ecf13ba82c0abd4bdf1a5b7cb5fce6102392c5a87cea283bc38fd2213e96a", "signature": "LayoutScope StatusBar(UiText id, StatusBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "StatusBarOpts", "default": "default" }], "summary": "Status bar: a thin bar along the bottom of a window, with a hairline on top and no fill of its own (put it in a box with the background you want). Items go left to right; cui_status_bar_spacer sends the rest to the right edge." }, { "name": "Toolbar", "kind": "extension", "id": "extension|Toolbar|0|0|LayoutScope|UiText id;ToolbarOpts o = default||hc5826ec43e3d8bf178cfa9f1605bd29bded229aae82424077aa18e1ae7e9cc61", "signature": "LayoutScope Toolbar(UiText id, ToolbarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "ToolbarOpts", "default": "default" }], "summary": "Toolbar: a row of compact icon buttons, toggles, separators and small text buttons. Icon only buttons show their tooltip as their name. Items that do not fit collapse, from the end, into a \u0022more\u0022 menu; an item chosen there returns true on the next frame." }, { "name": "VirtualList", "kind": "extension", "id": "extension|VirtualList|0|0|LayoutScope|UiText id;int count;float rowHeight;Size height;out int first;out int last||h90165d4490987ebd4d90276d5b449695a1f58d89f212149090827bfd08a055f2", "signature": "LayoutScope VirtualList(UiText id, int count, float rowHeight, Size height, out int first, out int last)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "count", "type": "int" }, { "name": "rowHeight", "type": "float" }, { "name": "height", "type": "Size" }, { "name": "first", "type": "out int" }, { "name": "last", "type": "out int" }], "summary": "Virtual list: only the visible rows are built, so lists with a million rows stay fast. Fills first/last with the visible range." }, { "name": "Localization", "kind": "property", "id": "property|Localization|0|0|Localization?||get;|h0a921bf7a95ff40f095f5e7f43cc6d636b74f025ae427be1edbd250e93f88e54", "signature": "Localization? Localization { get; }", "summary": "The table this surface published, or null for English." }, { "name": "Markdown", "kind": "extension", "id": "extension|Markdown|0|0|MarkdownResult|UiText id;UiText text;MarkdownOpts o = default||h61fdb7c6fb770f95ff734bbdf7b607bad9e23af8b25df034da34f408eed536fa", "signature": "MarkdownResult Markdown(UiText id, UiText text, MarkdownOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "MarkdownOpts", "default": "default" }], "summary": "Markdown view: renders your markdown text (UTF-8) as native content, every frame, without keeping a copy:" }, { "name": "Modifiers", "kind": "property", "id": "property|Modifiers|0|0|Mods||get;|h994504ae5710377741956558b3dae0b4e2fc318f73c5408e701c6675295af911", "signature": "Mods Modifiers { get; }", "summary": "The modifier keys held right now." }, { "name": "MonthCalendar", "kind": "extension", "id": "extension|MonthCalendar|0|0|MonthResult|UiText id;ref Date month;ReadOnlySpan\u003CMonthEvent\u003E events;ref Date selected;MonthOpts o = default||hacb7fb0b706addd9098a1569df3adbf8cff5b20d3b0bf01f49970bd839da7523", "signature": "MonthResult MonthCalendar(UiText id, ref Date month, ReadOnlySpan\u003CMonthEvent\u003E events, ref Date selected, MonthOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "month", "type": "ref Date" }, { "name": "events", "type": "ReadOnlySpan\u003CMonthEvent\u003E" }, { "name": "selected", "type": "ref Date" }, { "name": "o", "type": "MonthOpts", "default": "default" }], "summary": "Month calendar: a month grid with events. All-day and multi-day events are bars across the days they cover; timed events are a dot, a time and a title. A day with more than fits says \u0022\u002BN more\u0022 and opens a list of them. On a narrow screen the cells show colored dots and the selected day\u0027s events are listed under the grid." }, { "name": "Accordion", "kind": "extension", "id": "extension|Accordion|0|0|OpenScope|UiText title;ref bool open||h485829d02ee323bfa485f05285d6b19d78dcf02ed0a36c9ca4b1da7e70f540e5", "signature": "OpenScope Accordion(UiText title, ref bool open)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }], "summary": "Accordion / disclosure. Content animates its height." }, { "name": "Carousel", "kind": "extension", "id": "extension|Carousel|0|0|OpenScope|UiText id;int count;ref int index;CarouselOpts o = default||hbcf0bd0059da4b82e6417513dac4646a1ad558c1f46fc3c55b233c3367ef0a4e", "signature": "OpenScope Carousel(UiText id, int count, ref int index, CarouselOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "count", "type": "int" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "CarouselOpts", "default": "default" }], "summary": "Carousel: slides that you swipe, drag, scroll or page with the arrows and dots. Build every slide between begin and end: cui_carousel(ui, \u0022tour\u0022, 4, \u0026index, .height = 220) { for (int k = 0; k \u003C 4; k\u002B\u002B) cui_carousel_slide(ui) { ... } }" }, { "name": "ContextMenu", "kind": "extension", "id": "extension|ContextMenu|0|0|OpenScope|UiText id||hb5be2e863b82aa032d3281886a07b75e6a10932b22c9c06daa36e6ec8460b9c3", "signature": "OpenScope ContextMenu(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "Context menu: opens on right click over the previous component." }, { "name": "Dialog", "kind": "extension", "id": "extension|Dialog|0|0|OpenScope|UiText title;ref bool open;DialogOpts o = default||h08e9cf3a4bf5178fc47947da0ad76b53486c74b4ebd9c7e92e078d4cb3653668", "signature": "OpenScope Dialog(UiText title, ref bool open, DialogOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "DialogOpts", "default": "default" }], "summary": "Modal dialog. Shown while *open is true; closing sets it to false." }, { "name": "DockPanel", "kind": "extension", "id": "extension|DockPanel|0|0|OpenScope|UiText title;ref bool open;DockPanelOpts o = default||h983b85f4b88defb64e03c80c7fd67832cccc8b15fa3b11e9e9c8954cdd239b75", "signature": "OpenScope DockPanel(UiText title, ref bool open, DockPanelOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "DockPanelOpts", "default": "default" }], "summary": "Returns true while the panel\u0027s content should be built; then call cui_dock_panel_end." }, { "name": "ExpandableCard", "kind": "extension", "id": "extension|ExpandableCard|0|0|OpenScope|UiText title;ref bool open;ExpandableCardOpts o = default||h19637d079a2ee9821dfa4b6223ecf9694471f6157ed61e0139e207c045d56878", "signature": "OpenScope ExpandableCard(UiText title, ref bool open, ExpandableCardOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "ExpandableCardOpts", "default": "default" }], "summary": "Expandable card: a card whose header opens a body with a height spring." }, { "name": "HoverCard", "kind": "extension", "id": "extension|HoverCard|0|0|OpenScope|UiText id;HoverCardOpts o = default||hd31fbafd01c517229f3a54d9fbeed478689533294a82e16da99cb56ed4b82d37", "signature": "OpenScope HoverCard(UiText id, HoverCardOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "HoverCardOpts", "default": "default" }], "summary": "Hover card: rich content that appears when the pointer rests on the previous component, and stays while the pointer is over either." }, { "name": "Inspector", "kind": "extension", "id": "extension|Inspector|0|0|OpenScope|UiText id;InspectorOpts o = default||hdb3db7ec75e95846d7b987536583618b0b9445c2deb40a5f16828b5d2d735020", "signature": "OpenScope Inspector(UiText id, InspectorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "InspectorOpts", "default": "default" }], "summary": "Property inspector: labelled rows in folding groups, a label column on the left (drag the line between the columns to resize it) and an editor on the right. Every row returns true when its value changed. Groups end at the next group or at cui_inspector_end." }, { "name": "Menu", "kind": "extension", "id": "extension|Menu|0|0|OpenScope|UiText label;MenuOpts o = default||hec1b2b131f19c8f1eb37269016b963aed4449341b367ca89e175c1940294ab63", "signature": "OpenScope Menu(UiText label, MenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "MenuOpts", "default": "default" }], "summary": "Dropdown menu: a button that opens a menu. Items return true when chosen." }, { "name": "MenuBarMenu", "kind": "extension", "id": "extension|MenuBarMenu|0|0|OpenScope|UiText label;MenuBarMenuOpts o = default||h32c463fd3c1d7fa382d82e43f75326d1e14efad5ce907db7337df9ba3480688b", "signature": "OpenScope MenuBarMenu(UiText label, MenuBarMenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "MenuBarMenuOpts", "default": "default" }], "summary": "One menu of the bar. Returns true while its items should be built; call cui_menu_bar_menu_end only then." }, { "name": "Node", "kind": "extension", "id": "extension|Node|0|0|OpenScope|int nodeId;ref float x;ref float y;UiText title;NodeOpts o = default||hb7439d9c37ecca24fb0858272f81826919b789149f2a34acd1e1c44ff3266f62", "signature": "OpenScope Node(int nodeId, ref float x, ref float y, UiText title, NodeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "nodeId", "type": "int" }, { "name": "x", "type": "ref float" }, { "name": "y", "type": "ref float" }, { "name": "title", "type": "UiText" }, { "name": "o", "type": "NodeOpts", "default": "default" }], "summary": "A node at canvas position (*x, *y), updated while it is dragged. Returns true while the node is selected." }, { "name": "NodeEditor", "kind": "extension", "id": "extension|NodeEditor|0|0|OpenScope|UiText id;ref NodeView view;NodeEditorOpts o = default||h4e3c9c7bbaa0ed5b0750957f90a5c6c86f0fbfea8e96d4a8cacd68503ae7ad85", "signature": "OpenScope NodeEditor(UiText id, ref NodeView view, NodeEditorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "view", "type": "ref NodeView" }, { "name": "o", "type": "NodeEditorOpts", "default": "default" }], "summary": "Node editor: nodes with input and output pins on a canvas that pans and zooms, joined by curved links. You own the nodes, pins and links; the editor moves the node positions you pass and reports what the user did:" }, { "name": "PathBarMenu", "kind": "extension", "id": "extension|PathBarMenu|0|0|OpenScope|UiText id;ref int segment||h2aeb15441c53f332d451a287be64ba38ecdb4c05be10ad0f8a2412b04c3ad51a", "signature": "OpenScope PathBarMenu(UiText id, ref int segment)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "segment", "type": "ref int" }], "summary": "True while the menu of separator *segment is showing: build menu items for the children of that segment, then call cui_path_bar_menu_end." }, { "name": "Popover", "kind": "extension", "id": "extension|Popover|0|0|OpenScope|UiText id;PopoverOpts o = default||had5881283c2885b236d342cac799068e3bd7a8c2d4272ceb08bf27aa60e812f7", "signature": "OpenScope Popover(UiText id, PopoverOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "PopoverOpts", "default": "default" }], "summary": "Popover anchored to the previous component. Toggle it with cui_popover_toggle / cui_popover_open." }, { "name": "Reasoning", "kind": "extension", "id": "extension|Reasoning|0|0|OpenScope|UiText id;ReasoningOpts o = default||hd8c6837b660811abb55b30c3bcc35eb42dd2099f40a5a73eb35972aca384d12b", "signature": "OpenScope Reasoning(UiText id, ReasoningOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "ReasoningOpts", "default": "default" }], "summary": "Reasoning: a model\u0027s thinking. While thinking, the header shimmers and counts the seconds; afterwards it reads \u0022Thought for 12s\u0022 and the body folds away. Click the header to open or close it. Put text inside." }, { "name": "Sheet", "kind": "extension", "id": "extension|Sheet|0|0|OpenScope|UiText title;ref bool open;SheetOpts o = default||heb98d14c7c6250a83593cac259a583d17aa8636e9eaa839b64b4b5e3db2551d7", "signature": "OpenScope Sheet(UiText title, ref bool open, SheetOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "SheetOpts", "default": "default" }], "summary": "cui_sheet_begin" }, { "name": "Table", "kind": "extension", "id": "extension|Table|0|0|OpenScope|UiText id;ReadOnlySpan\u003CTableColumn\u003E columns;TableOpts o = default||hfd909896b0ab780a5093f3e917adaa2e23e03121d3b8e920a5305582c66486d0", "signature": "OpenScope Table(UiText id, ReadOnlySpan\u003CTableColumn\u003E columns, TableOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CTableColumn\u003E" }, { "name": "o", "type": "TableOpts", "default": "default" }], "summary": "Same as the overload with ref sort, but reports nothing back: the state pointer is null, so the widget stores no state the caller could read." }, { "name": "Table", "kind": "extension", "id": "extension|Table|0|0|OpenScope|UiText id;ReadOnlySpan\u003CTableColumn\u003E columns;ref TableSort sort;TableOpts o = default||hfda1db8518191e5d1de411deaefeed0d0f8d6838a3a1398abfa10ad4b36ff692", "signature": "OpenScope Table(UiText id, ReadOnlySpan\u003CTableColumn\u003E columns, ref TableSort sort, TableOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CTableColumn\u003E" }, { "name": "sort", "type": "ref TableSort" }, { "name": "o", "type": "TableOpts", "default": "default" }], "summary": "cui_table_begin_ex" }, { "name": "Tree", "kind": "extension", "id": "extension|Tree|0|0|OpenScope|UiText label;ref bool open;TreeOpts o = default||h4406f8e6a4e0d2f04e9468f25ca87def814144056b1780a4e869ea86998fdd10", "signature": "OpenScope Tree(UiText label, ref bool open, TreeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "TreeOpts", "default": "default" }], "summary": "cui_tree_begin" }, { "name": "UserMenu", "kind": "extension", "id": "extension|UserMenu|0|0|OpenScope|UiText name;UserMenuOpts o = default||h5323b7ef69eef4b5689f61a0c79b09355b7d2e1579ced7536bd574838f5eb096", "signature": "OpenScope UserMenu(UiText name, UserMenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "name", "type": "UiText" }, { "name": "o", "type": "UserMenuOpts", "default": "default" }], "summary": "User menu: an avatar, a name and a line of detail that opens a menu of account actions. Put menu items between begin and end." }, { "name": "PathBar", "kind": "extension", "id": "extension|PathBar|0|0|PathBarResult|UiText id;ReadOnlySpan\u003Cstring\u003E segments;PathBarOpts o = default||h5256da01c2004bf6922b836f1b3e9fbc43ed881a67e823c1895ab05f0949dd56", "signature": "PathBarResult PathBar(UiText id, ReadOnlySpan\u003Cstring\u003E segments, PathBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "segments", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "o", "type": "PathBarOpts", "default": "default" }], "summary": "Path bar: a breadcrumb for file and scene paths. Segments are clickable, the last one is the current place. Middle segments that do not fit collapse into a \u0022...\u0022 menu. With .menus, the chevron after segment k opens a menu you fill with the children of segment k (cui_path_bar_menu_begin). Click the empty part (or the current segment), or press Ctrl\u002BL, to type a path: Enter submits it, Esc or clicking away cancels." }, { "name": "Pipeline", "kind": "extension", "id": "extension|Pipeline|0|0|PipelineResult|UiText id;ReadOnlySpan\u003Cstring\u003E stages;ReadOnlySpan\u003CPipelineJob\u003E jobs;ref int selected;PipelineOpts o = default||h57164c455b64addad840b532dee1f4eb3acaba49d3b9d3b92afbab5d775aa6e7", "signature": "PipelineResult Pipeline(UiText id, ReadOnlySpan\u003Cstring\u003E stages, ReadOnlySpan\u003CPipelineJob\u003E jobs, ref int selected, PipelineOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "stages", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "jobs", "type": "ReadOnlySpan\u003CPipelineJob\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "PipelineOpts", "default": "default" }], "summary": "cui_pipeline_ex" }, { "name": "NowPlaying", "kind": "extension", "id": "extension|NowPlaying|0|0|PlayerEvents|UiText id;ref NowPlayingState np;NowPlayingOpts o = default||h9fae980dc34277b737fa803cbecd222d9c0a4c796e96fa70b56eeeefd0df2b25", "signature": "PlayerEvents NowPlaying(UiText id, ref NowPlayingState np, NowPlayingOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "np", "type": "ref NowPlayingState" }, { "name": "o", "type": "NowPlayingOpts", "default": "default" }], "summary": "Now playing card: artwork, title, artist, a scrubber and transport buttons." }, { "name": "Problems", "kind": "extension", "id": "extension|Problems|0|0|ProblemsResult|UiText id;ReadOnlySpan\u003CProblemItem\u003E diags;ProblemsOpts o = default||h6893f9c629255366d4079d33866236777cdcf107644e4109933ef620b8022eed", "signature": "ProblemsResult Problems(UiText id, ReadOnlySpan\u003CProblemItem\u003E diags, ProblemsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "diags", "type": "ReadOnlySpan\u003CProblemItem\u003E" }, { "name": "o", "type": "ProblemsOpts", "default": "default" }], "summary": "cui_problems_ex" }, { "name": "FlameSpanRect", "kind": "extension", "id": "extension|FlameSpanRect|0|0|RectF|uint flame;in FlameSpan span||haa242a01ec7cc85ea2f271378c3c8c334942d3f054714bdc41b27574a4327c82", "signature": "RectF FlameSpanRect(uint flame, in FlameSpan span)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "flame", "type": "uint" }, { "name": "span", "type": "in FlameSpan" }], "summary": "Where a span was drawn in the latest frame, in points (zero size when out of view). flame is the graph\u0027s id: cui_last_id(ui) right after the call." }, { "name": "LastRect", "kind": "property", "id": "property|LastRect|0|0|RectF||get;|ha796a249509c6af4a48352050e2d549bf5de307702a0f97fbc12276bc4b72b7b", "signature": "RectF LastRect { get; }", "summary": "Rectangle of the most recent component." }, { "name": "RectOf", "kind": "method", "id": "method|RectOf|0|0|RectF|UiText id||hf03418b016be6b023e965616caed52e5a7dd6a367152691bc14de3eb646ed966", "signature": "RectF RectOf(UiText id)", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "Rectangle of the widget with this string id." }, { "name": "RectOf", "kind": "method", "id": "method|RectOf|0|0|RectF|uint id||hc518e049cee7502b5770da6d0349e6e1b3764c8cc67fc33e3a92b5006d46ad99", "signature": "RectF RectOf(uint id)", "parameters": [{ "name": "id", "type": "uint" }], "summary": "Rectangle of any widget by id, for hit tests and overlays." }, { "name": "RegexTester", "kind": "extension", "id": "extension|RegexTester|0|0|RegexTesterResult|UiText id;ref string pattern;int patternCap;ref string text;int textCap;ref RegexFlags flags;RegexTesterOpts o = default||h53b2155ffb50f74e3cdbeb47580968a3b4c6256e0cbe584d8955de62e7015f50", "signature": "RegexTesterResult RegexTester(UiText id, ref string pattern, int patternCap, ref string text, int textCap, ref RegexFlags flags, RegexTesterOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "pattern", "type": "ref string" }, { "name": "patternCap", "type": "int" }, { "name": "text", "type": "ref string" }, { "name": "textCap", "type": "int" }, { "name": "flags", "type": "ref RegexFlags" }, { "name": "o", "type": "RegexTesterOpts", "default": "default" }], "summary": "A pattern field with flags over a test text: every match is highlighted in the text and its groups in their own colors, and the list below shows each match with its groups. Errors show under the pattern. Both buffers are yours and edited in place." }, { "name": "RequestBar", "kind": "extension", "id": "extension|RequestBar|0|0|RequestBarResult|UiText id;ref HttpVerb method;ref string url;int cap = 2048;RequestBarOpts o = default||h0205ed79feda109fdd72fefcdf633adeeb5507caf75681da3bf23d2cf5bcf561", "signature": "RequestBarResult RequestBar(UiText id, ref HttpVerb method, ref string url, int cap = 2048, RequestBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "method", "type": "ref HttpVerb" }, { "name": "url", "type": "ref string" }, { "name": "cap", "type": "int", "default": "2048" }, { "name": "o", "type": "RequestBarOpts", "default": "default" }], "summary": "cui_request_bar_ex" }, { "name": "ResponseActions", "kind": "extension", "id": "extension|ResponseActions|0|0|ResponseEvents|UiText id;ref int vote;ResponseActionsOpts o = default||hc81149b07827af0f59a3269486e0d44858ac9bb48073ed5150872c876c11984c", "signature": "ResponseEvents ResponseActions(UiText id, ref int vote, ResponseActionsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "vote", "type": "ref int" }, { "name": "o", "type": "ResponseActionsOpts", "default": "default" }], "summary": "cui_response_actions_ex" }, { "name": "SchedulePicker", "kind": "extension", "id": "extension|SchedulePicker|0|0|ScheduleResult|UiText id;ref string cron;int cap = 128;ScheduleOpts o = default||h5e149aabf00cdaf3e05fa29f62f956e474f8fee28641ae71fde4eaaeb8801f91", "signature": "ScheduleResult SchedulePicker(UiText id, ref string cron, int cap = 128, ScheduleOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "cron", "type": "ref string" }, { "name": "cap", "type": "int", "default": "128" }, { "name": "o", "type": "ScheduleOpts", "default": "default" }], "summary": "A cron schedule edited the friendly way: every N minutes, hourly at a minute, daily at a time, weekly on chosen days, monthly on a day, or a custom expression. It reads and writes \u0060cron\u0060 (five fields: minute hour day month weekday) and shows what it means and when it runs next. Weekday and month names come from cui_set_strings." }, { "name": "State", "kind": "method", "id": "method|State|0|1|Span\u003CT\u003E|UiText id||h8505c3ecbdde9acd049fc2d5d47e3c43d0545b89b2b78cc39c0a3993049107cf", "signature": "Span\u003CT\u003E State\u003CT\u003E(UiText id) where T : unmanaged", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "Persistent, zeroed storage for a widget id, for values that must survive between frames (animation phases, drag state, hit-test scratch)." }, { "name": "State", "kind": "method", "id": "method|State|0|1|Span\u003CT\u003E|UiText id;Action onFree||hbfa4567fbf2313cbdd3cc11d8daae823c35ccab56e58f7f91c8635a98f228824", "signature": "Span\u003CT\u003E State\u003CT\u003E(UiText id, Action onFree) where T : unmanaged", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "onFree", "type": "Action" }], "summary": "Persistent, zeroed storage for a widget id, with a callback CUI runs when it throws that id\u0027s state away (about five idle seconds, or when the window closes)." }, { "name": "StackTrace", "kind": "extension", "id": "extension|StackTrace|0|0|StackTraceResult|UiText id;ReadOnlySpan\u003CStackFrame\u003E frames;StackTraceOpts o = default||h31d88e2151b353d79ca390bcbc46b17c2882a950f9cf2239a266b97eeaa36a9b", "signature": "StackTraceResult StackTrace(UiText id, ReadOnlySpan\u003CStackFrame\u003E frames, StackTraceOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "frames", "type": "ReadOnlySpan\u003CStackFrame\u003E" }, { "name": "o", "type": "StackTraceOpts", "default": "default" }], "summary": "An exception and its call stack: the error\u0027s type and message, then each frame\u0027s function and position. Runs of library frames fold into one row. A frame with source opens to show the lines around it, the failing line marked; the first frame of your own code starts open. A button copies the whole trace as text." }, { "name": "Terminal", "kind": "extension", "id": "extension|Terminal|0|0|TerminalResult|UiText id;Terminal terminal;TerminalOpts o = default||h3bb90fc3e22f3e909beb279d5867cc2751b7287513f1480f8c73f2e7405f14d7", "signature": "TerminalResult Terminal(UiText id, Terminal terminal, TerminalOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "terminal", "type": "Terminal" }, { "name": "o", "type": "TerminalOpts", "default": "default" }], "summary": "Draws terminal and reports what the user did in it." }, { "name": "TestExplorer", "kind": "extension", "id": "extension|TestExplorer|0|0|TestExplorerResult|UiText id;ReadOnlySpan\u003CTestItem\u003E items;TestExplorerOpts o = default||h9eeb18e60e88e82a908b873a27468f9699a55c61fb36da8ff356557f102e3862", "signature": "TestExplorerResult TestExplorer(UiText id, ReadOnlySpan\u003CTestItem\u003E items, TestExplorerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CTestItem\u003E" }, { "name": "o", "type": "TestExplorerOpts", "default": "default" }], "summary": "Test results as a tree: suites fold, each test shows its status and time, and a failure shows its message under it. A suite\u0027s status sums up its tests. The toolbar runs everything, counts results and filters by status and by name. Hover a row for its run button. Only the rows in view are built. Up and Down move, Left and Right fold, Enter activates. Items are in tree order with their depth; the statuses are the pipeline\u0027s." }, { "name": "MeasureText", "kind": "method", "id": "method|MeasureText|0|0|TextMetrics|UiText text;float size = 12f;Font font = Font.Body||h992b53c9418ee9ba19c1fd34ea05dca44fabbaac335e2ecdd31ccf760fd4f66f", "signature": "TextMetrics MeasureText(UiText text, float size = 12f, Font font = Font.Body)", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "size", "type": "float", "default": "12f" }, { "name": "font", "type": "Font", "default": "Font.Body" }], "summary": "Width and height of a single line of text, without wrapping." }, { "name": "Theme", "kind": "property", "id": "property|Theme|0|0|Theme||get;set;|h898a02cacbcba9a905f94fba0740f328f89ab1e042e5fea5ff9d21a93e3e297d", "signature": "Theme Theme { get; set; }", "summary": "The theme this frame draws with. Assign to switch, from anywhere inside a frame." }, { "name": "Style", "kind": "property", "id": "property|Style|0|0|ThemeStyle||get;|h4a1ba7271e3ed1e378ccdc5f7d6055b8fea5756bf3605b1214e29e77e4e7860a", "signature": "ThemeStyle Style { get; }", "summary": "The design tokens this frame draws with \u2014 radii, control heights, text and heading sizes, the motion multiplier and the palette \u2014 as a live view to read and to assign." }, { "name": "TimeHistogram", "kind": "extension", "id": "extension|TimeHistogram|0|0|TimeHistogramResult|UiText id;double start;double bucketSeconds;int buckets;ReadOnlySpan\u003CHistogramSeries\u003E series;ref double selStart;ref double selEnd;TimeHistogramOpts o = default||hfc0784cb52bfd6a3615191c61545b37c444f2ce965ef93b671333df27d4bf165", "signature": "TimeHistogramResult TimeHistogram(UiText id, double start, double bucketSeconds, int buckets, ReadOnlySpan\u003CHistogramSeries\u003E series, ref double selStart, ref double selEnd, TimeHistogramOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "start", "type": "double" }, { "name": "bucketSeconds", "type": "double" }, { "name": "buckets", "type": "int" }, { "name": "series", "type": "ReadOnlySpan\u003CHistogramSeries\u003E" }, { "name": "selStart", "type": "ref double" }, { "name": "selEnd", "type": "ref double" }, { "name": "o", "type": "TimeHistogramOpts", "default": "default" }], "summary": "Event counts over time, stacked by series (log levels, status classes), as above a log search. Drag across it to select a time range, click to clear. Hover a bar for its time and counts. Times are Unix seconds." }, { "name": "Tour", "kind": "extension", "id": "extension|Tour|0|0|TourAction|UiText id;ReadOnlySpan\u003CTourStep\u003E steps;ref int step;TourOpts o = default||h7a480bb022c619036d7ca1d19006a7d5aa923a84ea3fc62b5eae88ea7b1088c8", "signature": "TourAction Tour(UiText id, ReadOnlySpan\u003CTourStep\u003E steps, ref int step, TourOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "steps", "type": "ReadOnlySpan\u003CTourStep\u003E" }, { "name": "step", "type": "ref int" }, { "name": "o", "type": "TourOpts", "default": "default" }], "summary": "What happened this frame: one of CUI_TOUR_*." }, { "name": "TraceView", "kind": "extension", "id": "extension|TraceView|0|0|TraceResult|UiText id;ReadOnlySpan\u003CTraceTrack\u003E tracks;ReadOnlySpan\u003CTraceSpan\u003E spans;ref TraceViewState view;ref int selected;TraceOpts o = default||h7ab8ce526cada0bd73b947180d909dfa39f159b47ac14940ec53b67f28158b92", "signature": "TraceResult TraceView(UiText id, ReadOnlySpan\u003CTraceTrack\u003E tracks, ReadOnlySpan\u003CTraceSpan\u003E spans, ref TraceViewState view, ref int selected, TraceOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tracks", "type": "ReadOnlySpan\u003CTraceTrack\u003E" }, { "name": "spans", "type": "ReadOnlySpan\u003CTraceSpan\u003E" }, { "name": "view", "type": "ref TraceViewState" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "TraceOpts", "default": "default" }], "summary": "A tracing timeline: one lane per thread, process or service, each with its nested spans, on one time ruler, with markers (frames, GC pauses, deploys) drawn across every lane. Wheel zooms around the pointer, Shift\u002Bwheel or a drag pans, click selects a span, Shift\u002Bdrag measures a time range. A lane\u0027s name folds it. Keys: Left and Right step through the selected span\u0027s lane, \u002B and - zoom, F fits, Esc clears. Spans must be sorted by track, depth and start (cui_trace_sort), with no overlap within a depth of a track. Like the flame graph, only what is in view is visited." }, { "name": "TreeTable", "kind": "extension", "id": "extension|TreeTable|0|0|TreeTableEvents|UiText id;ReadOnlySpan\u003CGridColumn\u003E columns;TreeNode[] nodes;TreeTableRow row;TreeTableOpts o = default;Func\u003Cint, string?\u003E? label = null||h5ad3a7ebd26d1298c20becc826efa4b5392b7ddbca0d68cfbb1f162eb572fd75", "signature": "TreeTableEvents TreeTable(UiText id, ReadOnlySpan\u003CGridColumn\u003E columns, TreeNode[] nodes, TreeTableRow row, TreeTableOpts o = default, Func\u003Cint, string?\u003E? label = null)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CGridColumn\u003E" }, { "name": "nodes", "type": "TreeNode[]" }, { "name": "row", "type": "TreeTableRow" }, { "name": "o", "type": "TreeTableOpts", "default": "default" }, { "name": "label", "type": "Func\u003Cint, string?\u003E?", "default": "null" }], "summary": "Draws a tree without sort or keyboard state: the table keeps no per-id interaction state, which is all a static tree needs." }, { "name": "TreeTable", "kind": "extension", "id": "extension|TreeTable|0|0|TreeTableEvents|UiText id;ReadOnlySpan\u003CGridColumn\u003E columns;TreeNode[] nodes;TreeTableRow row;ref TableSort sort;ref int cursor;TreeTableOpts o = default;Func\u003Cint, string?\u003E? label = null||hdc8db941f4c0a5cc7a1e81a316f1e56fbc2468020569fb6cacf3307bec596a1d", "signature": "TreeTableEvents TreeTable(UiText id, ReadOnlySpan\u003CGridColumn\u003E columns, TreeNode[] nodes, TreeTableRow row, ref TableSort sort, ref int cursor, TreeTableOpts o = default, Func\u003Cint, string?\u003E? label = null)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CGridColumn\u003E" }, { "name": "nodes", "type": "TreeNode[]" }, { "name": "row", "type": "TreeTableRow" }, { "name": "sort", "type": "ref TableSort" }, { "name": "cursor", "type": "ref int" }, { "name": "o", "type": "TreeTableOpts", "default": "default" }, { "name": "label", "type": "Func\u003Cint, string?\u003E?", "default": "null" }], "summary": "Draws nodes as a tree with columns, calling row once per visible node to fill its cells." }, { "name": "Uptime", "kind": "extension", "id": "extension|Uptime|0|0|UptimeResult|UiText id;ReadOnlySpan\u003CUptimeService\u003E services;UptimeOpts o = default||h60131e1db59b8a809d222a6d6dee840e1ccde25607a2c4178418eef8a488dccb", "signature": "UptimeResult Uptime(UiText id, ReadOnlySpan\u003CUptimeService\u003E services, UptimeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "services", "type": "ReadOnlySpan\u003CUptimeService\u003E" }, { "name": "o", "type": "UptimeOpts", "default": "default" }], "summary": "A status page: each service with its current state, its uptime over the period, and one bar per day colored by availability (gray without data). Hover a bar for its day and uptime. On a narrow panel only the most recent days that fit are shown." }, { "name": "MousePosition", "kind": "property", "id": "property|MousePosition|0|0|ValueTuple\u003Cfloat, float\u003E||get;|h02b51b7243b762c56e53482522c31644d844cd12e36381af09a9700cd549db93", "signature": "ValueTuple\u003Cfloat, float\u003E MousePosition { get; }", "summary": "Pointer position in points, top-left origin." }, { "name": "ViewportSize", "kind": "method", "id": "method|ViewportSize|0|0|ValueTuple\u003Cfloat, float\u003E|||h7a26e2e5e6b39edb5a26a6e7adde40edf0bcd8599f3d7629ea37d02c109493a2", "signature": "ValueTuple\u003Cfloat, float\u003E ViewportSize()" }, { "name": "Waterfall", "kind": "extension", "id": "extension|Waterfall|0|0|WaterfallResult|UiText id;ReadOnlySpan\u003CNetRequest\u003E requests;ref int selected;WaterfallOpts o = default||h419b5ccb1a80d64ac3cce058fa79a3ac44664f29e8c9685c083cf8552c6714e6", "signature": "WaterfallResult Waterfall(UiText id, ReadOnlySpan\u003CNetRequest\u003E requests, ref int selected, WaterfallOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "requests", "type": "ReadOnlySpan\u003CNetRequest\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "WaterfallOpts", "default": "default" }], "summary": "HTTP requests as a table with a timing bar each: queued, DNS, connect, TLS, waiting for the first byte and downloading, on one time scale with the page\u0027s DOMContentLoaded and load lines. Hover a bar for the breakdown. Narrow panels drop the type and size columns. Only the rows in view are built. Up and Down move the selection." }, { "name": "Alert", "kind": "extension", "id": "extension|Alert|0|0|bool|UiText title;AlertOpts o = default||hb9b8786bcd05d91b48b9d5b7e7c8dfe99eab8a18cccf61ee5708920e8c2c65a0", "signature": "bool Alert(UiText title, AlertOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "AlertOpts", "default": "default" }], "summary": "Inline alert. Returns false once dismissed (when dismissible)." }, { "name": "Banner", "kind": "extension", "id": "extension|Banner|0|0|bool|UiText text;ref bool open;BannerOpts o = default||hded3699dd8c0717c5f0d2f8a60f5b76364aaa539a156402e1d68fed1e8b19dd6", "signature": "bool Banner(UiText text, ref bool open, BannerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "BannerOpts", "default": "default" }], "summary": "Announcement banner across the top of a view. Collapses smoothly when dismissed (*open becomes false). Returns true when the action is clicked." }, { "name": "Button", "kind": "extension", "id": "extension|Button|0|0|bool|UiText label;ButtonOpts o = default||h0824ce1ee9db1a3102bbbc57b5f43c838d0aac0c456dc9d0f5ddf3a8bb9eaae3", "signature": "bool Button(UiText label, ButtonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "ButtonOpts", "default": "default" }], "summary": "cui_button_ex" }, { "name": "Calendar", "kind": "extension", "id": "extension|Calendar|0|0|bool|UiText id;ref Date value||he2d734019c4ba63e626cffe267911189a15dbf5b403eff0fc6fd9898d4334662", "signature": "bool Calendar(UiText id, ref Date value)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref Date" }], "summary": "cui_calendar" }, { "name": "Checkbox", "kind": "extension", "id": "extension|Checkbox|0|0|bool|UiText label;ref bool value;CheckOpts o = default||h5e553956f3358e286491451619c072577baad5689e0ba2b38257460dced857ee", "signature": "bool Checkbox(UiText label, ref bool value, CheckOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref bool" }, { "name": "o", "type": "CheckOpts", "default": "default" }], "summary": "cui_checkbox_ex" }, { "name": "Chip", "kind": "extension", "id": "extension|Chip|0|0|bool|UiText label;ref bool selected;ChipOpts o = default||h4ff38ab2a9a818e7526990ee6c9e6f19f63a1138e5fb79d08917e25c0d0a78ee", "signature": "bool Chip(UiText label, ref bool selected, ChipOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "selected", "type": "ref bool" }, { "name": "o", "type": "ChipOpts", "default": "default" }], "summary": "cui_chip_ex" }, { "name": "Citation", "kind": "extension", "id": "extension|Citation|0|0|bool|int number;in Source source||ha19b93ee36f160c6271aaa8db69ab4937531c6d0be1bdcd8e208aa7eb206aee7", "signature": "bool Citation(int number, in Source source)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "number", "type": "int" }, { "name": "source", "type": "in Source" }], "summary": "cui_citation" }, { "name": "ColorPicker", "kind": "extension", "id": "extension|ColorPicker|0|0|bool|UiText id;ref Color value||h337517bd7bbb67ac9f2a0f2cd3561338116b8bbce4aab6736de92c41bd706e10", "signature": "bool ColorPicker(UiText id, ref Color value)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref Color" }], "summary": "cui_color_picker" }, { "name": "ConfirmButton", "kind": "extension", "id": "extension|ConfirmButton|0|0|bool|UiText label;ConfirmOpts o = default||ha173e8d04000010db239a95f45b5a65630e6c3a32565f48acd835a79732b2383", "signature": "bool ConfirmButton(UiText label, ConfirmOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "ConfirmOpts", "default": "default" }], "summary": "Two step destructive button: the first click morphs it into a confirm state with a countdown, the second click confirms. Returns true once." }, { "name": "ConfirmPopover", "kind": "extension", "id": "extension|ConfirmPopover|0|0|bool|UiText id;ConfirmPopoverOpts o = default||h1c2e0982b9c59e893eae1a02030bc1dcf3a82997c3f51101dbeae1b45e768ee2", "signature": "bool ConfirmPopover(UiText id, ConfirmPopoverOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "ConfirmPopoverOpts", "default": "default" }], "summary": "Confirm popover: a small question anchored to the previous component. Open it with cui_popover_open(ui, id). Returns true when confirmed." }, { "name": "ControlTile", "kind": "extension", "id": "extension|ControlTile|0|0|bool|UiText label;ref bool on;TileOpts o = default||h030def7b2183e0b26721bad6afc91a710eb6f7cf309e2889db383c64f1477cbd", "signature": "bool ControlTile(UiText label, ref bool on, TileOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "on", "type": "ref bool" }, { "name": "o", "type": "TileOpts", "default": "default" }], "summary": "Control tile: a large toggle with an icon, a label and a state line." }, { "name": "CopyButton", "kind": "extension", "id": "extension|CopyButton|0|0|bool|UiText id;UiText text||hbc740c15d3716aa5400fb730217b29b8462ce4a82a1b3b2c9884600f4fbfe844", "signature": "bool CopyButton(UiText id, UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }], "summary": "Icon button that copies text to the clipboard and confirms with a check. Keyboard focus stays on the button when the check appears or disappears." }, { "name": "Cropper", "kind": "extension", "id": "extension|Cropper|0|0|bool|UiText id;ulong tex;int imageW;int imageH;ref RectF crop;CropperOpts o = default||hc4433b320e719d68cf000799d9f75543139b19ed26265d5d5b7ef0e7cb29a2cf", "signature": "bool Cropper(UiText id, ulong tex, int imageW, int imageH, ref RectF crop, CropperOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tex", "type": "ulong" }, { "name": "imageW", "type": "int" }, { "name": "imageH", "type": "int" }, { "name": "crop", "type": "ref RectF" }, { "name": "o", "type": "CropperOpts", "default": "default" }], "summary": "Returns true when the crop changed." }, { "name": "DataGridCellEdit", "kind": "extension", "id": "extension|DataGridCellEdit|0|0|bool|ref string buf;int cap||h36d248e6c06ee8f7c129163000d2afe51274d879f2f2a6dd8f75e48579c04c63", "signature": "bool DataGridCellEdit(ref string buf, int cap)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }], "summary": "Editable text cell: double click (or Enter on the cursor row) to edit, Enter or clicking away commits, Esc reverts. True when committed." }, { "name": "DataGridEdit", "kind": "extension", "id": "extension|DataGridEdit|0|0|bool|ref string buf;int cap||h4a0248a3c48520cf419b921b7953de24c458026bb86ab7bd00ba08e5d194ef65", "signature": "bool DataGridEdit(ref string buf, int cap)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }], "summary": "The same editable text, inside the current cell (after an avatar, say)." }, { "name": "DataGridRow", "kind": "extension", "id": "extension|DataGridRow|0|0|bool|int row||h5fe4fdf7429d5b5aac0325fa0af56631c8d8a1ff342c03251fe30d766d9f9225", "signature": "bool DataGridRow(int row)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "row", "type": "int" }], "summary": "true when the row was clicked" }, { "name": "DatePicker", "kind": "extension", "id": "extension|DatePicker|0|0|bool|UiText id;ref Date value;DateOpts o = default||h993523ace680cddb6c1434059ef52f3fb34d716bed495d79d97b148118785ee2", "signature": "bool DatePicker(UiText id, ref Date value, DateOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref Date" }, { "name": "o", "type": "DateOpts", "default": "default" }], "summary": "cui_date_picker_ex" }, { "name": "DateRangePicker", "kind": "extension", "id": "extension|DateRangePicker|0|0|bool|UiText id;ref DateRange range;DateRangeOpts o = default||h9daa98cbb5461612c53362c329641eba719561905ce1865087421113c0ee84d1", "signature": "bool DateRangePicker(UiText id, ref DateRange range, DateRangeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "range", "type": "ref DateRange" }, { "name": "o", "type": "DateRangeOpts", "default": "default" }], "summary": "cui_date_range_picker_ex" }, { "name": "DateToday", "kind": "method", "id": "method|DateToday|0|0|bool|out Date value||h2030bff62c6a99d4c47e3fa2a09f8c125232327d048faf8c41c853eeafa84679", "signature": "bool DateToday(out Date value)", "parameters": [{ "name": "value", "type": "out Date" }] }, { "name": "DockItem", "kind": "extension", "id": "extension|DockItem|0|0|bool|UiText icon;UiText label;DockItemOpts o = default||h6868974ee881c1a4f660ae0207737b226f6822fd1064babdbda9860825db89d1", "signature": "bool DockItem(UiText icon, UiText label, DockItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "label", "type": "UiText" }, { "name": "o", "type": "DockItemOpts", "default": "default" }], "summary": "cui_dock_item_ex" }, { "name": "DockLoad", "kind": "extension", "id": "extension|DockLoad|0|0|bool|UiText id;UiText text||hffd91787faf77c3d390dfe7deb8bb16df93eb717a31ba3fd4130eac2e2e134b4", "signature": "bool DockLoad(UiText id, UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }], "summary": "cui_dock_load" }, { "name": "EmojiFontLoadFile", "kind": "extension", "id": "extension|EmojiFontLoadFile|0|0|bool|UiText path||hf9ed3d99d8c528c9df41c7bca5721cb0eb461686e0a48bc35d1cf718f13ba0f6", "signature": "bool EmojiFontLoadFile(UiText path)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "path", "type": "UiText" }], "summary": "Color emoji come from an emoji font: the system\u0027s (cui_emoji_font_load_system, which the picker calls by itself when nothing is loaded) or one the app ships. Bitmap color fonts (sbix as on macOS, CBDT as on Linux and Android) and layered ones (COLR version 0, as on Windows) are read, as is a plain outline font for one-color emoji. Sequences with skin tones, joined people and flags are looked up through the font\u0027s ligatures. Big fonts are read from the file as needed rather than loaded whole. Drawn emoji are kept in one texture and reused." }, { "name": "EmojiFontLoadMemory", "kind": "extension", "id": "extension|EmojiFontLoadMemory|0|0|bool|ReadOnlySpan\u003Cbyte\u003E data;bool copy||h8f31cf994f46f3f46e0c7fdefbd7d39be865056bcb0700421f0fee7be7142342", "signature": "bool EmojiFontLoadMemory(ReadOnlySpan\u003Cbyte\u003E data, bool copy)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "data", "type": "ReadOnlySpan\u003Cbyte\u003E" }, { "name": "copy", "type": "bool" }], "summary": "cui_emoji_font_load_memory" }, { "name": "EmojiFontLoadSystem", "kind": "extension", "id": "extension|EmojiFontLoadSystem|0|0|bool|||he4386dbb08b9f31fd0c23d6cb333b56d4babcbd26d5e38fa72a56bc89a6bac12", "signature": "bool EmojiFontLoadSystem()", "extensionOn": "CuiSharp.Ui", "summary": "cui_emoji_font_load_system" }, { "name": "EmojiSupported", "kind": "extension", "id": "extension|EmojiSupported|0|0|bool|UiText utf8||he0adda46557f9d84dbc4c6feb4f995d99998ffae9bdabd33371c8df1fc7899fb", "signature": "bool EmojiSupported(UiText utf8)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "utf8", "type": "UiText" }], "summary": "the font (or platform) can draw it" }, { "name": "EmptyState", "kind": "extension", "id": "extension|EmptyState|0|0|bool|UiText title;EmptyOpts o = default||h3447935b9ffe834dcbe57094c2bd062fa6216fbbd3d59e4e2527f7da36f6f369", "signature": "bool EmptyState(UiText title, EmptyOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "EmptyOpts", "default": "default" }], "summary": "Empty state. Returns true when its action button is clicked." }, { "name": "ExpandableText", "kind": "extension", "id": "extension|ExpandableText|0|0|bool|UiText id;UiText text;ExpandableTextOpts o = default||h0853336278f85890679dc7cd1bc9eb77a34f2cf61567d87164045778c0f8d6ad", "signature": "bool ExpandableText(UiText id, UiText text, ExpandableTextOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "ExpandableTextOpts", "default": "default" }], "summary": "Text clamped to a few lines with a fade and Show more / Show less." }, { "name": "Fader", "kind": "extension", "id": "extension|Fader|0|0|bool|UiText id;ref float value;float min;float max;FaderOpts o = default||h8266bbe632feda1ec1b4b87bd7f41cc9e107e496de7dfb957c9d87f1e63f8835", "signature": "bool Fader(UiText id, ref float value, float min, float max, FaderOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "FaderOpts", "default": "default" }], "summary": "cui_fader_ex" }, { "name": "FileDragActive", "kind": "property", "id": "property|FileDragActive|0|0|bool||get;|hc2e815e1a71bc6a75b5e19ff96d7c1ef201253bc7b4d7f60949c96df158538ac", "signature": "bool FileDragActive { get; }", "summary": "True while files are being dragged over the window, for a drop target to light up." }, { "name": "FilePicker", "kind": "extension", "id": "extension|FilePicker|0|0|bool|UiText id;ref bool open;ref string out;int outCap = 1024;FilePickerOpts o = default||hb1ce6182678b8b2ca569fff7fdf6d4a781314228ed80d25a4c02a48b368dd07f", "signature": "bool FilePicker(UiText id, ref bool open, ref string @out, int outCap = 1024, FilePickerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "out", "type": "ref string" }, { "name": "outCap", "type": "int", "default": "1024" }, { "name": "o", "type": "FilePickerOpts", "default": "default" }], "summary": "True once, with the chosen path in out, when the dialog is confirmed; *open turns false then, or on Cancel and Esc." }, { "name": "FilterBar", "kind": "method", "id": "method|FilterBar|0|0|bool|UiText id;ReadOnlySpan\u003CFilterField\u003E fields;Span\u003Cuint\u003E selected;ref string search;int searchCap = 256||h05b35fdecfc879680ca00e844554bef0fb0d2b9ee533e72f50a25b4cb5e4be7a", "signature": "bool FilterBar(UiText id, ReadOnlySpan\u003CFilterField\u003E fields, Span\u003Cuint\u003E selected, ref string search, int searchCap = 256)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "fields", "type": "ReadOnlySpan\u003CFilterField\u003E" }, { "name": "selected", "type": "Span\u003Cuint\u003E" }, { "name": "search", "type": "ref string" }, { "name": "searchCap", "type": "int", "default": "256" }], "summary": "Filter chips, one dropdown per field plus a search. selected holds one option bitmask per field; returns true on any change." }, { "name": "HistogramSlider", "kind": "extension", "id": "extension|HistogramSlider|0|0|bool|UiText label;ReadOnlySpan\u003Cfloat\u003E bins;ref float lo;ref float hi;float min;float max;HistogramOpts o = default||h72cc41a613543670d7d773f53d3ed618f4ca5dda5c9cf710a8ea0c0745f9816a", "signature": "bool HistogramSlider(UiText label, ReadOnlySpan\u003Cfloat\u003E bins, ref float lo, ref float hi, float min, float max, HistogramOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "bins", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "lo", "type": "ref float" }, { "name": "hi", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "HistogramOpts", "default": "default" }], "summary": "Range slider over a histogram of the data it filters." }, { "name": "HoldButton", "kind": "extension", "id": "extension|HoldButton|0|0|bool|UiText label;HoldOpts o = default||ha44fcfbb972ecfbea614fbc280b43abd9c243c1e05ac46d39ac240667e1b2a30", "signature": "bool HoldButton(UiText label, HoldOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "HoldOpts", "default": "default" }], "summary": "Hold to confirm: a destructive action that fills while held and fires when full. Returns true once." }, { "name": "IconButton", "kind": "extension", "id": "extension|IconButton|0|0|bool|UiText icon;ButtonOpts o = default||h5215045b3b917c5c328653c82d759d884c905c9bee3fd2bcae9c23b95552a5e2", "signature": "bool IconButton(UiText icon, ButtonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "o", "type": "ButtonOpts", "default": "default" }], "summary": "Square/round button with only an icon. Give it a tooltip so it has a name." }, { "name": "ImageCompare", "kind": "extension", "id": "extension|ImageCompare|0|0|bool|UiText id;ulong before;ulong after;ref float pos;CompareOpts o = default||hbf70b5332c704791b825e9cb8d9e14cd4661dfc72efb9bed54e7afc61aac7221", "signature": "bool ImageCompare(UiText id, ulong before, ulong after, ref float pos, CompareOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "before", "type": "ulong" }, { "name": "after", "type": "ulong" }, { "name": "pos", "type": "ref float" }, { "name": "o", "type": "CompareOpts", "default": "default" }], "summary": "Before and after: drag the divider to compare two images. *pos is 0..1." }, { "name": "ImageViewer", "kind": "extension", "id": "extension|ImageViewer|0|0|bool|UiText id;ulong tex;int imageW;int imageH;ref ImageView view;ImageViewerOpts o = default||hfd49614f5ed12268c88fafc87f200f9ba92c7a0989e02c2476dadf0bb0fab3b3", "signature": "bool ImageViewer(UiText id, ulong tex, int imageW, int imageH, ref ImageView view, ImageViewerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tex", "type": "ulong" }, { "name": "imageW", "type": "int" }, { "name": "imageH", "type": "int" }, { "name": "view", "type": "ref ImageView" }, { "name": "o", "type": "ImageViewerOpts", "default": "default" }], "summary": "Returns true when the view changed." }, { "name": "InspectorGroup", "kind": "extension", "id": "extension|InspectorGroup|0|0|bool|UiText title;ref bool open||hba33317836e4529b513b762245b52b82d2fc8fd252b7ae2174d7ffdf7ff08018", "signature": "bool InspectorGroup(UiText title, ref bool open)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }], "summary": "A folding group header. Build its rows only when this returns true (it stays true while the group animates closed). open may be NULL for a plain section that does not fold." }, { "name": "IsDisabled", "kind": "property", "id": "property|IsDisabled|0|0|bool||get;|h66819bb8e34991aa0b9a8fdf312d84bcc577f1aed8196c14e9cfc9792bab4b6e", "signature": "bool IsDisabled { get; }", "summary": "True inside a Disabled scope (or one a parent opened)." }, { "name": "JsonView", "kind": "extension", "id": "extension|JsonView|0|0|bool|UiText id;UiText json;JsonOpts o = default||h206112d6d2798b04c8b2e35b11a492fe5022438268206f218c32f29f9efa0bbf", "signature": "bool JsonView(UiText id, UiText json, JsonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "json", "type": "UiText" }, { "name": "o", "type": "JsonOpts", "default": "default" }], "summary": "JSON viewer: a collapsible tree with typed colors and item counts. Returns false when the text is not valid JSON (and shows the error)." }, { "name": "Kanban", "kind": "extension", "id": "extension|Kanban|0|0|bool|UiText id;out KanbanMove kanbanmove;DrawFn body||h06459ebde22b2b48e212f80454450eb468aac078e18e50dee8f7aa756afdbe5e", "signature": "bool Kanban(UiText id, out KanbanMove kanbanmove, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "kanbanmove", "type": "out KanbanMove" }, { "name": "body", "type": "DrawFn" }], "summary": "cui_kanban_begin The card was dropped into another column, and the move is written into the out parameter." }, { "name": "KeyDown", "kind": "method", "id": "method|KeyDown|0|0|bool|Key key||h8b8a390f57bfe976c9fae2d30fec99be77322f69944968534c26bc08482cb159", "signature": "bool KeyDown(Key key)", "parameters": [{ "name": "key", "type": "Key" }], "summary": "True while the key is held (with auto-repeat)." }, { "name": "KeyPressed", "kind": "method", "id": "method|KeyPressed|0|0|bool|Key key||hd4bc534b9e8b12976f0c38f87635500fca89a9d6949ea0a103354f41e6d39700", "signature": "bool KeyPressed(Key key)", "parameters": [{ "name": "key", "type": "Key" }], "summary": "True on the frame the key went down, including repeats." }, { "name": "Knob", "kind": "extension", "id": "extension|Knob|0|0|bool|UiText id;ref float value;float min;float max;KnobOpts o = default||hfceb051da509c5e36d4bd22400b42f24a8cc0da8ba2c27a23c8e378855c66680", "signature": "bool Knob(UiText id, ref float value, float min, float max, KnobOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "KnobOpts", "default": "default" }], "summary": "Knob, fader and level meter: the controls of audio, synth and mixer panels." }, { "name": "KvEditor", "kind": "extension", "id": "extension|KvEditor|0|0|bool|UiText id;Span\u003CKeyValue\u003E pairs;ref int count;KvEditorOpts o = default||h33bb0c1c82dae67745ff12456422881b7a82c634ea86250511129fa68d145901", "signature": "bool KvEditor(UiText id, Span\u003CKeyValue\u003E pairs, ref int count, KvEditorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "pairs", "type": "Span\u003CKeyValue\u003E" }, { "name": "count", "type": "ref int" }, { "name": "o", "type": "KvEditorOpts", "default": "default" }], "summary": "cui_kv_editor_ex" }, { "name": "LevelMeter", "kind": "extension", "id": "extension|LevelMeter|0|0|bool|UiText id;ReadOnlySpan\u003Cfloat\u003E levels;LevelMeterOpts o = default||he2b90272968549a2bc948844fa0f2e5fcb787783f5c0716cf3d8c48db532ab7e", "signature": "bool LevelMeter(UiText id, ReadOnlySpan\u003Cfloat\u003E levels, LevelMeterOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "levels", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "o", "type": "LevelMeterOpts", "default": "default" }], "summary": "Returns true when the clip light was clicked to clear it." }, { "name": "Link", "kind": "extension", "id": "extension|Link|0|0|bool|UiText text||h20b90df40ad793aa00f00bae1aeddd8c78d8d1ee7eccdf7f709db8b78317b57a", "signature": "bool Link(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "cui_link" }, { "name": "ListItem", "kind": "extension", "id": "extension|ListItem|0|0|bool|UiText title;ListItemOpts o = default||h59240e7a8fd8d1115830e25d32bfc60e47f14e4645e8e48b58281c710be7f5c9", "signature": "bool ListItem(UiText title, ListItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "ListItemOpts", "default": "default" }], "summary": "List item: a selectable row with optional icon, subtitle and trailing text." }, { "name": "LoadImage", "kind": "method", "id": "method|LoadImage|0|0|bool|UiText path;out ulong texture;out int width;out int height||hfe19783db558936a04580a0831ac4289470f120ccd1ef3163fcee3e05649da1f", "signature": "bool LoadImage(UiText path, out ulong texture, out int width, out int height)", "parameters": [{ "name": "path", "type": "UiText" }, { "name": "texture", "type": "out ulong" }, { "name": "width", "type": "out int" }, { "name": "height", "type": "out int" }], "summary": "Decodes a PNG or JPEG from disk into a texture and reports its pixel size. Returns false when the file cannot be read or decoded; the texture is then 0. Release it with DestroyImage." }, { "name": "MenuItem", "kind": "extension", "id": "extension|MenuItem|0|0|bool|UiText label;MenuItemOpts o = default||h6f02a24b8c3e14f743f1164e34c40e0c32e7647a378fc18f6fac4bd77708b604", "signature": "bool MenuItem(UiText label, MenuItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "MenuItemOpts", "default": "default" }], "summary": "cui_menu_item_ex" }, { "name": "ModelPicker", "kind": "extension", "id": "extension|ModelPicker|0|0|bool|UiText id;ReadOnlySpan\u003CModel\u003E models;ref int selected;ModelPickerOpts o = default||h30f09bcdbcd0511d67feaab5ce1eb2d84b0769c8eb387e2675cdc4b9faf9d869", "signature": "bool ModelPicker(UiText id, ReadOnlySpan\u003CModel\u003E models, ref int selected, ModelPickerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "models", "type": "ReadOnlySpan\u003CModel\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "ModelPickerOpts", "default": "default" }], "summary": "Model picker: the current model on a button; a list with details opens." }, { "name": "MoneyInput", "kind": "extension", "id": "extension|MoneyInput|0|0|bool|UiText id;ref double value;MoneyOpts o = default||hd65fb688e51d9a482d2f9031cdb57646790ad85a3c809e961601a8725a753b42", "signature": "bool MoneyInput(UiText id, ref double value, MoneyOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref double" }, { "name": "o", "type": "MoneyOpts", "default": "default" }], "summary": "Money field: shows the amount with thousands separators, edits as plain digits, keeps a fixed number of decimals." }, { "name": "MouseClicked", "kind": "method", "id": "method|MouseClicked|0|0|bool|MouseButton button||h8e0f0ad614e613c5c152543c9917af645f5ae90299577124c2da8f7863f69862", "signature": "bool MouseClicked(MouseButton button)", "parameters": [{ "name": "button", "type": "MouseButton" }], "summary": "True on the frame a mouse button went down." }, { "name": "MouseDown", "kind": "method", "id": "method|MouseDown|0|0|bool|MouseButton button||hf67b74dbd9e44892fdb6b384ac7537f75c21e2054ec9267ee7cf800f77c4c81d", "signature": "bool MouseDown(MouseButton button)", "parameters": [{ "name": "button", "type": "MouseButton" }], "summary": "True while a mouse button is held." }, { "name": "MultiSelect", "kind": "method", "id": "method|MultiSelect|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;Span\u003Cbool\u003E selected;MultiSelectOpts o = default||h3e128721808f3d5d3438e029c09a821039a75342e2851271e35420570d1affca", "signature": "bool MultiSelect(UiText id, ReadOnlySpan\u003Cstring\u003E items, Span\u003Cbool\u003E selected, MultiSelectOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "selected", "type": "Span\u003Cbool\u003E" }, { "name": "o", "type": "MultiSelectOpts", "default": "default" }], "summary": "A searchable list with one checkbox per item and chips for the chosen ones. Returns true on the frame an entry flips." }, { "name": "NavItem", "kind": "extension", "id": "extension|NavItem|0|0|bool|UiText label;NavOpts o = default||h163b7c5bf544cc2227cbef6b64c928a89e62b8536a9e4ab947179a86d455c59d", "signature": "bool NavItem(UiText label, NavOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "NavOpts", "default": "default" }], "summary": "Sidebar navigation item with a gliding selection highlight shared by all items in the same group." }, { "name": "NeedsRedraw", "kind": "property", "id": "property|NeedsRedraw|0|0|bool||get;|h5aadd05568570958d5b9529ecc317e3ce874d6c40baa003636859fb90a0da9fc", "signature": "bool NeedsRedraw { get; }" }, { "name": "NodeDeleted", "kind": "extension", "id": "extension|NodeDeleted|0|0|bool|ref int nodeId||hc3cfc3ad4c4fc3a042b1dbb26d3de5739a59ee9b1e9f8c1741f772a5e535d6bc", "signature": "bool NodeDeleted(ref int nodeId)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "nodeId", "type": "ref int" }], "summary": "cui_node_deleted" }, { "name": "NodeInput", "kind": "extension", "id": "extension|NodeInput|0|0|bool|int pinId;UiText label;PinOpts o = default||hd37a374006c3c8cd18c68d9d7503bd5160359d3f3e458d3531e756c52700b1f0", "signature": "bool NodeInput(int pinId, UiText label, PinOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "pinId", "type": "int" }, { "name": "label", "type": "UiText" }, { "name": "o", "type": "PinOpts", "default": "default" }], "summary": "A row with a pin on the left (input) or right (output). type picks the pin color from the series palette and limits links to pins of the same type (0 connects to anything). Returns true when the pin has a link." }, { "name": "NodeLink", "kind": "extension", "id": "extension|NodeLink|0|0|bool|int linkId;int fromPin;int toPin||hab2ff05d12c3863dc35ff7ced8cdef83783fba6a2e16dbd81214feb3eaf01910", "signature": "bool NodeLink(int linkId, int fromPin, int toPin)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "linkId", "type": "int" }, { "name": "fromPin", "type": "int" }, { "name": "toPin", "type": "int" }], "summary": "A link from an output pin to an input pin. Returns true while it is selected." }, { "name": "NodeLinkCreated", "kind": "extension", "id": "extension|NodeLinkCreated|0|0|bool|ref int fromPin;ref int toPin||h7c136a895333c132f83c1d99cf5809163d5430c0060eaaedcf7bbe0f15f462bd", "signature": "bool NodeLinkCreated(ref int fromPin, ref int toPin)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "fromPin", "type": "ref int" }, { "name": "toPin", "type": "ref int" }], "summary": "What the user did this frame, one event per call; call them after cui_node_editor_begin (and up to the end of the frame)." }, { "name": "NodeLinkRemoved", "kind": "extension", "id": "extension|NodeLinkRemoved|0|0|bool|ref int linkId||h8cf7097abf407418a15af49e45ee086b240ec03b1e130c7888ce620da1bbadca", "signature": "bool NodeLinkRemoved(ref int linkId)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "linkId", "type": "ref int" }], "summary": "Part of cui_node_link \u2014 A link from an output pin to an input pin. Returns true while it is selected." }, { "name": "NodeOutput", "kind": "extension", "id": "extension|NodeOutput|0|0|bool|int pinId;UiText label;PinOpts o = default||h3750efacdd047bf840c0482278adf33fa6dd72ffa3acb6bf2c1afd789b95d351", "signature": "bool NodeOutput(int pinId, UiText label, PinOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "pinId", "type": "int" }, { "name": "label", "type": "UiText" }, { "name": "o", "type": "PinOpts", "default": "default" }], "summary": "A row with a pin on the left (input) or right (output). type picks the pin color from the series palette and limits links to pins of the same type (0 connects to anything). Returns true when the pin has a link." }, { "name": "Number", "kind": "method", "id": "method|Number|0|0|bool|UiText id;ref double value;double min;double max;NumberOpts o = default||h695eacf696437442db4c71e212e9d772037965f7b79fa0164581c32f72012f09", "signature": "bool Number(UiText id, ref double value, double min, double max, NumberOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref double" }, { "name": "min", "type": "double" }, { "name": "max", "type": "double" }, { "name": "o", "type": "NumberOpts", "default": "default" }] }, { "name": "OtpInput", "kind": "method", "id": "method|OtpInput|0|0|bool|UiText id;ref string value;int length||h8029c922f0c302147b4a9d172f51e477cf692656857072b2505965f1cc911eaf", "signature": "bool OtpInput(UiText id, ref string value, int length)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "length", "type": "int" }], "summary": "One-time code input: length boxes, buffer length \u002B 1." }, { "name": "Pagination", "kind": "extension", "id": "extension|Pagination|0|0|bool|UiText id;ref int page;int pageCount||h79ccb8aea896cd889c714acd8763edcf22dbbfb029a1dbd70ed9639354c6b6c8", "signature": "bool Pagination(UiText id, ref int page, int pageCount)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "page", "type": "ref int" }, { "name": "pageCount", "type": "int" }], "summary": "page is 0 based" }, { "name": "PopoverIsOpen", "kind": "extension", "id": "extension|PopoverIsOpen|0|0|bool|UiText id||h83722811a2be8261fbe93cc555b026a4a1e130ec294d2cd25013358d929a3c0e", "signature": "bool PopoverIsOpen(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_popover_is_open" }, { "name": "PropBool", "kind": "extension", "id": "extension|PropBool|0|0|bool|UiText label;ref bool value;PropOpts o = default||h121ac40771efea9741585563443f4c4687f7a10d137ffd9d268555b5501ddd64", "signature": "bool PropBool(UiText label, ref bool value, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref bool" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_bool_ex" }, { "name": "PropColor", "kind": "extension", "id": "extension|PropColor|0|0|bool|UiText label;ref Color value;PropOpts o = default||h6ca0bc5ddc35dae8cf9131bd28c26cd31e497e501164de0d50828fb7983a1cc2", "signature": "bool PropColor(UiText label, ref Color value, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref Color" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "A swatch and hex value that opens the color picker." }, { "name": "PropEnum", "kind": "extension", "id": "extension|PropEnum|0|0|bool|UiText label;ReadOnlySpan\u003Cstring\u003E items;ref int index;PropOpts o = default||h241aa42ffd01f5c7a9fadb861af4a608b0c8a014ae458b62692370d10cf009d8", "signature": "bool PropEnum(UiText label, ReadOnlySpan\u003Cstring\u003E items, ref int index, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_enum_ex" }, { "name": "PropFloat", "kind": "extension", "id": "extension|PropFloat|0|0|bool|UiText label;ref float value;PropOpts o = default||hc8efd7345903f342766598358e2e5c0998eb7933cf7f5cec0429b86873ff6ccf", "signature": "bool PropFloat(UiText label, ref float value, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_float_ex" }, { "name": "PropInt", "kind": "extension", "id": "extension|PropInt|0|0|bool|UiText label;ref int value;PropOpts o = default||hd93df8234e1afb0dba5df9a1531c8936c732948e17db67e12102617d568c305b", "signature": "bool PropInt(UiText label, ref int value, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref int" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_int_ex" }, { "name": "PropText", "kind": "extension", "id": "extension|PropText|0|0|bool|UiText label;ref string buf;int cap;PropOpts o = default||h46a1a717145b1f3a7800e8921d45ea9b002d8c2fdf5958fbf3c03f97fc47d1db", "signature": "bool PropText(UiText label, ref string buf, int cap, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_text_ex" }, { "name": "PropVec", "kind": "extension", "id": "extension|PropVec|0|0|bool|UiText label;ref float value;int components;PropOpts o = default||h57600f963270b3c592fd247d9b1f943533361ae615e7b6ca52e287fa289a67b2", "signature": "bool PropVec(UiText label, ref float value, int components, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "components", "type": "int" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "Compact X, Y (Z, W) scrub fields side by side; value holds 2, 3 or 4 floats." }, { "name": "QueryBuilder", "kind": "extension", "id": "extension|QueryBuilder|0|0|bool|UiText id;ReadOnlySpan\u003CQueryField\u003E fields;Span\u003CQueryNode\u003E nodes;ref int count;QueryOpts o = default||hf3edbb954d2f83ed4e81805130275cc7c0ef85dc162f7e4b8a07a3d9d533090f", "signature": "bool QueryBuilder(UiText id, ReadOnlySpan\u003CQueryField\u003E fields, Span\u003CQueryNode\u003E nodes, ref int count, QueryOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "fields", "type": "ReadOnlySpan\u003CQueryField\u003E" }, { "name": "nodes", "type": "Span\u003CQueryNode\u003E" }, { "name": "count", "type": "ref int" }, { "name": "o", "type": "QueryOpts", "default": "default" }], "summary": "cui_query_builder_ex" }, { "name": "Radio", "kind": "extension", "id": "extension|Radio|0|0|bool|UiText label;ref int value;int option;CheckOpts o = default||h837451b9483026bc7e273c76e5251c0de524d770f182a8365674ac44553130ee", "signature": "bool Radio(UiText label, ref int value, int option, CheckOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref int" }, { "name": "option", "type": "int" }, { "name": "o", "type": "CheckOpts", "default": "default" }], "summary": "cui_radio_ex" }, { "name": "RadioCards", "kind": "extension", "id": "extension|RadioCards|0|0|bool|UiText id;ReadOnlySpan\u003CChoice\u003E choices;ref int index;RadioCardsOpts o = default||h277ecfd91b4ab6ad87556ac5585d5014c5f8f4b70743ded6f2d33b25b513c439", "signature": "bool RadioCards(UiText id, ReadOnlySpan\u003CChoice\u003E choices, ref int index, RadioCardsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "choices", "type": "ReadOnlySpan\u003CChoice\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "RadioCardsOpts", "default": "default" }], "summary": "Radio cards: larger selectable cards for choices that need a description (plans, templates)." }, { "name": "RadioGroup", "kind": "extension", "id": "extension|RadioGroup|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index||h13b5e8871098bf87979cd713e4fa844042e8066de15ba83cf7b5cda071897cee", "signature": "bool RadioGroup(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }], "summary": "cui_radio_group" }, { "name": "RangeCalendar", "kind": "extension", "id": "extension|RangeCalendar|0|0|bool|UiText id;ref DateRange range;int months||h8c74871e3d5b09aa52567046cfb0cacddba5d6bd45af5a0343aa6ea880da3344", "signature": "bool RangeCalendar(UiText id, ref DateRange range, int months)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "range", "type": "ref DateRange" }, { "name": "months", "type": "int" }], "summary": "One or two months side by side; click a start and an end." }, { "name": "RangeSlider", "kind": "extension", "id": "extension|RangeSlider|0|0|bool|UiText label;ref float lo;ref float hi;float min;float max||h431a1c22347795ecfaf7422d776daf2552ad13b1bbafc0b34e7ddfbb9f6fca1e", "signature": "bool RangeSlider(UiText label, ref float lo, ref float hi, float min, float max)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "lo", "type": "ref float" }, { "name": "hi", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }], "summary": "cui_range_slider" }, { "name": "Rating", "kind": "extension", "id": "extension|Rating|0|0|bool|UiText id;ref int value;int max = 5||ha54ef468c924f3613d361d9d3e4ba18c9bed4ef0f7d7dd855532a052b89231ce", "signature": "bool Rating(UiText id, ref int value, int max = 5)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref int" }, { "name": "max", "type": "int", "default": "5" }], "summary": "cui_rating" }, { "name": "ReorderEnd", "kind": "method", "id": "method|ReorderEnd|0|0|bool|||h289d889249190a219f4708d3f6a34916df30d8dccdd623b1af17d06cf7ad4fe9", "signature": "bool ReorderEnd()" }, { "name": "RulerSlider", "kind": "extension", "id": "extension|RulerSlider|0|0|bool|UiText label;ref float value;float min;float max;RulerOpts o = default||hda8dec175710635b7de7215517d587b9a5332ed440922d693ed02813d9c4deb7", "signature": "bool RulerSlider(UiText label, ref float value, float min, float max, RulerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "RulerOpts", "default": "default" }], "summary": "Ruler slider: a tape measure that slides under a fixed marker, with momentum and snapping to step." }, { "name": "Scrub", "kind": "extension", "id": "extension|Scrub|0|0|bool|UiText label;ref float value;float min;float max;ScrubOpts o = default||h816f9787704b09241842573d59264e0cc5674f4a764e0ae2054b721f3ad20a7b", "signature": "bool Scrub(UiText label, ref float value, float min, float max, ScrubOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "ScrubOpts", "default": "default" }], "summary": "Scrub field: drag sideways anywhere on it to change the value (Shift for fine steps), or click to type a number. Arrow keys step when focused." }, { "name": "Segmented", "kind": "extension", "id": "extension|Segmented|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index;SegmentedOpts o = default||h8452b4d90fbd938f7492782df2bfd7e49e6f17b79bb32a7fa92536dbbc52bbfb", "signature": "bool Segmented(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index, SegmentedOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "SegmentedOpts", "default": "default" }], "summary": "Segmented control: a row of options with a gliding highlight." }, { "name": "Select", "kind": "extension", "id": "extension|Select|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index;SelectOpts o = default||h4546d9051044aa80f649b171897799d53c415b998250abdc626bf84e5341bea3", "signature": "bool Select(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index, SelectOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "SelectOpts", "default": "default" }], "summary": "cui_select_ex" }, { "name": "Shortcut", "kind": "method", "id": "method|Shortcut|0|0|bool|Mods mods;Key key||h23544d98ad9364c783897d23b07d28fd4c4889f44ac4f6b734142ae19cee295a", "signature": "bool Shortcut(Mods mods, Key key)", "parameters": [{ "name": "mods", "type": "Mods" }, { "name": "key", "type": "Key" }] }, { "name": "ShortcutRecorder", "kind": "extension", "id": "extension|ShortcutRecorder|0|0|bool|UiText id;ref KeyCombo combo;ShortcutRecorderOpts o = default||h22c067848057da16592bf471e38a3d5c8d3e7a976928a24a34dda5e650586e2a", "signature": "bool ShortcutRecorder(UiText id, ref KeyCombo combo, ShortcutRecorderOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "combo", "type": "ref KeyCombo" }, { "name": "o", "type": "ShortcutRecorderOpts", "default": "default" }], "summary": "Shortcut recorder: click and press a key combination to record it. Backspace clears, Esc cancels. Returns true when the combination changed. cui_shortcut_label formats a combination (\u0022Ctrl Shift K\u0022)." }, { "name": "SignaturePad", "kind": "extension", "id": "extension|SignaturePad|0|0|bool|UiText id;SignatureOpts o = default||h26a7180ac812cfc40208765b73de3283d8bdc2a773db48e467c36bfac61e2f47", "signature": "bool SignaturePad(UiText id, SignatureOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "SignatureOpts", "default": "default" }], "summary": "Signature pad: draw with the mouse or a pen. The strokes are kept for you; read them with cui_signature_points (stroke_ends[i] is one past the last point of stroke i)." }, { "name": "Slider", "kind": "extension", "id": "extension|Slider|0|0|bool|UiText label;ref float value;float min;float max;SliderOpts o = default||h07890e859be8c8053afac54f6a7ef888728ac54358e77cca1a0c6f9d5936fcd0", "signature": "bool Slider(UiText label, ref float value, float min, float max, SliderOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "SliderOpts", "default": "default" }], "summary": "Elastic slider: the track stretches like rubber when dragged past its ends." }, { "name": "StatusBarItem", "kind": "extension", "id": "extension|StatusBarItem|0|0|bool|UiText label;StatusItemOpts o = default||h35fa1b9b36f005ceff913dc858202baee2f50d4678537b369e987582020f4d84", "signature": "bool StatusBarItem(UiText label, StatusItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "StatusItemOpts", "default": "default" }], "summary": "A small clickable item (\u0022Ln 12, Col 4\u0022, \u0022UTF-8\u0022). Returns true when clicked." }, { "name": "StatusButton", "kind": "extension", "id": "extension|StatusButton|0|0|bool|UiText label;Status status;StatusButtonOpts o = default||h5c9d9e2cd49f70a00398d2fe51ccf1933f78becdf2d7e5b610c5e2427ee30722", "signature": "bool StatusButton(UiText label, Status status, StatusButtonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "status", "type": "Status" }, { "name": "o", "type": "StatusButtonOpts", "default": "default" }], "summary": "cui_status_button_ex" }, { "name": "Switch", "kind": "extension", "id": "extension|Switch|0|0|bool|UiText label;ref bool value;CheckOpts o = default||he58bf080044a84430ae1c50aae77072ba3e8bc1dc7ad4f8576f39e74324cd486", "signature": "bool Switch(UiText label, ref bool value, CheckOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref bool" }, { "name": "o", "type": "CheckOpts", "default": "default" }], "summary": "cui_switch_ex" }, { "name": "TabBar", "kind": "extension", "id": "extension|TabBar|0|0|bool|UiText id;ReadOnlySpan\u003CTabBarItem\u003E items;ref int selected;TabBarOpts o = default||h3b532a1edd39eaf1a6db4278f4c3c26674c9a67777ba72dd890ca8c67ecbb0d8", "signature": "bool TabBar(UiText id, ReadOnlySpan\u003CTabBarItem\u003E items, ref int selected, TabBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CTabBarItem\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "TabBarOpts", "default": "default" }], "summary": "Bottom tab bar for compact layouts, with a pill that glides to the selection." }, { "name": "TableRow", "kind": "extension", "id": "extension|TableRow|0|0|bool|bool selected||h5862a1074065231ee67e616f36b6ef2708e5a53d06e9c647dfc4e50f9f54feb9", "signature": "bool TableRow(bool selected)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "selected", "type": "bool" }], "summary": "Begin a row. Returns true when the row is clicked." }, { "name": "Tabs", "kind": "extension", "id": "extension|Tabs|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index;TabsOpts o = default||h44602f1d285b43ccb2a4a3f04fc10eeb9824d034d9c4786918ec03417b25d800", "signature": "bool Tabs(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index, TabsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "TabsOpts", "default": "default" }], "summary": "cui_tabs_ex" }, { "name": "TagInput", "kind": "method", "id": "method|TagInput|0|0|bool|UiText id;ref string value;TagOpts o = default||h7d78f96fc27b022e7ce11dd6a4742470284f57dc2e17866e76fb8b61780bf9f0", "signature": "bool TagInput(UiText id, ref string value, TagOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "o", "type": "TagOpts", "default": "default" }], "summary": "Comma-separated tags in one field; enter or comma adds, backspace removes." }, { "name": "ThemeSwitcher", "kind": "extension", "id": "extension|ThemeSwitcher|0|0|bool|ref int mode;bool withSystem||h6ac2911103fa89f29df34fe5abd3737f62b03fad01ac2c5f7ce9f96f81466e7b", "signature": "bool ThemeSwitcher(ref int mode, bool withSystem)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "mode", "type": "ref int" }, { "name": "withSystem", "type": "bool" }], "summary": "Theme switcher: light, dark and (optionally) system, as a compact icon segmented control. mode is 0 light, 1 dark, 2 system. Light and dark are applied for you; for system call cui_set_theme with the OS setting. Returns true when mode changed." }, { "name": "ThemeToggle", "kind": "extension", "id": "extension|ThemeToggle|0|0|bool|||hac003993a346e758ec03a7b5cae2fbd886929a7ae077d9f9459a78e6cb9e9028", "signature": "bool ThemeToggle()", "extensionOn": "CuiSharp.Ui", "summary": "Sun and moon icon button that toggles the theme with a morph." }, { "name": "TimeDial", "kind": "extension", "id": "extension|TimeDial|0|0|bool|UiText id;ref int hour;ref int minute;float size||hc81f9c9c6cda6a218a1a97579124c3a6415d5a3bec246c2545e9638a3cbefadc", "signature": "bool TimeDial(UiText id, ref int hour, ref int minute, float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "hour", "type": "ref int" }, { "name": "minute", "type": "ref int" }, { "name": "size", "type": "float" }], "summary": "Time dial: a clock face. Drag the hand to set hours, then minutes." }, { "name": "TimePicker", "kind": "extension", "id": "extension|TimePicker|0|0|bool|UiText id;ref int hour;ref int minute;TimeOpts o = default||h2f5e91438efc0191e949769048849a3fb8bb629993aef37fa50790655d5a16e2", "signature": "bool TimePicker(UiText id, ref int hour, ref int minute, TimeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "hour", "type": "ref int" }, { "name": "minute", "type": "ref int" }, { "name": "o", "type": "TimeOpts", "default": "default" }], "summary": "Time picker: a field that opens hour and minute columns. hour is 0..23." }, { "name": "ToastActionClicked", "kind": "extension", "id": "extension|ToastActionClicked|0|0|bool|int handle||h80802ec80123dda69208be2582b05ccc3d887063aa242cdb0a7d5f946417cce1", "signature": "bool ToastActionClicked(int handle)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "handle", "type": "int" }], "summary": "cui_toast_action_clicked" }, { "name": "ToggleGroup", "kind": "method", "id": "method|ToggleGroup|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E labels;Span\u003Cbool\u003E values;ToggleGroupOpts o = default||hbf4630396185f73a4900042d74fe62f684385217a55457d20067677982015437", "signature": "bool ToggleGroup(UiText id, ReadOnlySpan\u003Cstring\u003E labels, Span\u003Cbool\u003E values, ToggleGroupOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "labels", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "values", "type": "Span\u003Cbool\u003E" }, { "name": "o", "type": "ToggleGroupOpts", "default": "default" }], "summary": "A row of toggle buttons sharing one bool per label. Independent by default; Exclusive makes them behave like radio buttons. Returns true on the frame an entry flips." }, { "name": "ToolbarButton", "kind": "extension", "id": "extension|ToolbarButton|0|0|bool|UiText icon;ref bool toggle;ToolOpts o = default||h280488daf404cebc0318d20c1e09b3000ff82103111371b7fdf8c2735fe2c970", "signature": "bool ToolbarButton(UiText icon, ref bool toggle, ToolOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "toggle", "type": "ref bool" }, { "name": "o", "type": "ToolOpts", "default": "default" }], "summary": "cui_toolbar_button_ex" }, { "name": "TreeCell", "kind": "extension", "id": "extension|TreeCell|0|0|bool|UiText label;int depth;bool hasChildren;ref bool open;UiText icon||h7d87cfa9d747ede3646c93ffc4296bb6d158f59a36670c943b38b8891f9a08bd", "signature": "bool TreeCell(UiText label, int depth, bool hasChildren, ref bool open, UiText icon)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "depth", "type": "int" }, { "name": "hasChildren", "type": "bool" }, { "name": "open", "type": "ref bool" }, { "name": "icon", "type": "UiText" }], "summary": "Tree cell: indentation, a disclosure chevron and a label, for tree tables (use it in a table or grid cell). Returns true when *open toggled." }, { "name": "TreeClicked", "kind": "extension", "id": "extension|TreeClicked|0|0|bool|||he0d6c1a473304bfa16c30035268639d026f37ddeade6a53e36b6a43056ea0039", "signature": "bool TreeClicked()", "extensionOn": "CuiSharp.Ui", "summary": "the node created by the last cui_tree_begin was clicked" }, { "name": "Typewriter", "kind": "extension", "id": "extension|Typewriter|0|0|bool|UiText id;UiText text;TextFxOpts o = default||hd2793d1d9701d6e1c2de232ed4163f8a0a17de8606e1a0c00033798e26804d7b", "signature": "bool Typewriter(UiText id, UiText text, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "Types the text out. When the text grows (streamed tokens) it carries on from where it was; other changes start over. Returns true once complete." }, { "name": "VoiceOrb", "kind": "extension", "id": "extension|VoiceOrb|0|0|bool|UiText id;VoiceState state;float level;VoiceOrbOpts o = default||h55678c858554bd6ffbc3fbad4b03aeb90fff9d582a2dad8b10090a9496cf7d41", "signature": "bool VoiceOrb(UiText id, VoiceState state, float level, VoiceOrbOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "state", "type": "VoiceState" }, { "name": "level", "type": "float" }, { "name": "o", "type": "VoiceOrbOpts", "default": "default" }], "summary": "cui_voice_orb_ex" }, { "name": "WantsKeyboard", "kind": "property", "id": "property|WantsKeyboard|0|0|bool||get;|h9fd1d2033ea34ec49759c84f9a199c15d92ad7e28a6a1a4cc3ebee535bec764b", "signature": "bool WantsKeyboard { get; }" }, { "name": "WantsMouse", "kind": "property", "id": "property|WantsMouse|0|0|bool||get;|h88ad7771300bfdd824d0527cc05ab2978f5a741b34494adb9660c29ae0fd53b7", "signature": "bool WantsMouse { get; }", "summary": "True when the pointer is over this window and the UI wants it." }, { "name": "Waveform", "kind": "extension", "id": "extension|Waveform|0|0|bool|UiText id;ReadOnlySpan\u003Cfloat\u003E peaks;ref float progress;WaveformOpts o = default||h82b5eb85d1dd0e891471303dae6af8ef45f993a4522c265b5380640be5f95a34", "signature": "bool Waveform(UiText id, ReadOnlySpan\u003Cfloat\u003E peaks, ref float progress, WaveformOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "peaks", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "progress", "type": "ref float" }, { "name": "o", "type": "WaveformOpts", "default": "default" }], "summary": "Waveform: bars from peaks (0..1). With progress, the played part is colored and clicking or dragging seeks; returns true when it did." }, { "name": "WheelPicker", "kind": "extension", "id": "extension|WheelPicker|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index;WheelOpts o = default||h6e20c98f3670a089db93c4a37a910bd23a7f6b3a8ad5c2cd67e1294d58a2fae4", "signature": "bool WheelPicker(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index, WheelOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "WheelOpts", "default": "default" }], "summary": "Wheel picker: a drum of options that you drag, scroll or arrow through. Several side by side make a date or time reel. join_left / join_right square off the selection band so wheels placed side by side share one continuous band." }, { "name": "Time", "kind": "property", "id": "property|Time|0|0|double||get;|h59d804a6c66b43aad6ffe38fb8d686d405da1f1e73a127a3af738e7ba55df397", "signature": "double Time { get; }", "summary": "Seconds since the app started. Monotonic; use it for animation phases." }, { "name": "Animate", "kind": "method", "id": "method|Animate|0|0|float|UiText id;float target||h6aa8f80b2f784f8d21be090f3514e71ea8c5c9e820fb1fc041073b0956552fa8", "signature": "float Animate(UiText id, float target)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "target", "type": "float" }], "summary": "Moves a value toward target with a spring, keyed by id." }, { "name": "AnimateSpring", "kind": "method", "id": "method|AnimateSpring|0|0|float|UiText id;float target;float duration;float bounce||h18961b791dced18013209a15d6f4c3ea989233c2d507d6986cf80ff8eea91b47", "signature": "float AnimateSpring(UiText id, float target, float duration, float bounce)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "target", "type": "float" }, { "name": "duration", "type": "float" }, { "name": "bounce", "type": "float" }], "summary": "Moves a value toward target with a spring of the given duration and bounce." }, { "name": "DeltaTime", "kind": "property", "id": "property|DeltaTime|0|0|float||get;|h9b38e45e1e2ffd64837bd659bc02203c5bcd38701ca6046589022c3424ef1a09", "signature": "float DeltaTime { get; }", "summary": "Seconds since the previous frame, clamped by the host." }, { "name": "DpiScale", "kind": "property", "id": "property|DpiScale|0|0|float||get;|hd6fea6745004ce2bacbb8eac54eebd74e77705ff2605b31ccb4a18c241ebb063", "signature": "float DpiScale { get; }", "summary": "Device pixels per logical point for the window this frame draws into." }, { "name": "ActivityRings", "kind": "extension", "id": "extension|ActivityRings|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E rings;RingsOpts o = default||he739303ba236c8b2947fe3ee08443b09f019e41b8acac0f7da681d197ae0307e", "signature": "int ActivityRings(UiText id, ReadOnlySpan\u003CVizItem\u003E rings, RingsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "rings", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "RingsOpts", "default": "default" }], "summary": "Activity rings: concentric progress rings; values past 1 keep winding." }, { "name": "AgentPlan", "kind": "extension", "id": "extension|AgentPlan|0|0|int|UiText id;ReadOnlySpan\u003CPlanStep\u003E steps;AgentPlanOpts o = default||h6067d2501a7a26bcccda0db7d672b245a2fcff12d68ede6c491d265a45d1b4b9", "signature": "int AgentPlan(UiText id, ReadOnlySpan\u003CPlanStep\u003E steps, AgentPlanOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "steps", "type": "ReadOnlySpan\u003CPlanStep\u003E" }, { "name": "o", "type": "AgentPlanOpts", "default": "default" }], "summary": "Agent plan: steps with their status on a connected rail, and progress." }, { "name": "AvatarUpload", "kind": "extension", "id": "extension|AvatarUpload|0|0|int|UiText id;UiText name;ref ulong image;float size||h2032bcd7f55566afffa2cde5d86987aa5b1a36719844c8d755d13b19b16255bb", "signature": "int AvatarUpload(UiText id, UiText name, ref ulong image, float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "name", "type": "UiText" }, { "name": "image", "type": "ref ulong" }, { "name": "size", "type": "float" }], "summary": "Avatar upload: a round avatar that takes a dropped image, with a camera badge on hover. Returns 1 when *image changed, -1 when clicked (browse), 0 otherwise. A dropped image is loaded with cui_image_load." }, { "name": "BarList", "kind": "extension", "id": "extension|BarList|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E items;BarListOpts o = default||h0e2abad96db38540b47d6c74f2cc68369ed40c046f6bf6c2d2dea3c10d465680", "signature": "int BarList(UiText id, ReadOnlySpan\u003CVizItem\u003E items, BarListOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "BarListOpts", "default": "default" }], "summary": "Bar list: ranked horizontal bars. Rows are keyed by label, so when the values change the bars grow and the rows slide to their new rank." }, { "name": "Breadcrumb", "kind": "extension", "id": "extension|Breadcrumb|0|0|int|ReadOnlySpan\u003Cstring\u003E items||h7e5435f64395bbaf15f18d4923a996c88ca3bd79318405fd33733751c65e8682", "signature": "int Breadcrumb(ReadOnlySpan\u003Cstring\u003E items)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }], "summary": "returns clicked index or -1" }, { "name": "CalendarHeatmap", "kind": "extension", "id": "extension|CalendarHeatmap|0|0|int|UiText id;Date start;ReadOnlySpan\u003Cfloat\u003E values;CalendarHeatmapOpts o = default||hdf61b9c82e018ac6c9a5f0797950a2a53c4826b47594dd073d18121a1691e796", "signature": "int CalendarHeatmap(UiText id, Date start, ReadOnlySpan\u003Cfloat\u003E values, CalendarHeatmapOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "start", "type": "Date" }, { "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "o", "type": "CalendarHeatmapOpts", "default": "default" }], "summary": "Calendar heatmap: one cell per day from start, weeks as columns, in five levels, with month and weekday labels and a Less / More legend." }, { "name": "Candlestick", "kind": "extension", "id": "extension|Candlestick|0|0|int|UiText id;ReadOnlySpan\u003CCandle\u003E candles;CandlestickOpts o = default||hdab8fd71be859d6cc56de05a9e2feb81a2532c176230e766fa2ba67fa5260e3c", "signature": "int Candlestick(UiText id, ReadOnlySpan\u003CCandle\u003E candles, CandlestickOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "candles", "type": "ReadOnlySpan\u003CCandle\u003E" }, { "name": "o", "type": "CandlestickOpts", "default": "default" }], "summary": "Returns the candle under the crosshair (pointer or keys), or -1." }, { "name": "CardStack", "kind": "extension", "id": "extension|CardStack|0|0|int|UiText id;int count;DrawFn body;CardStackOpts o = default||h2dadbccb1e5391a98cfda3530cd5b460c17e79dd01b6927d2346f58287b56332", "signature": "int CardStack(UiText id, int count, DrawFn body, CardStackOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "count", "type": "int" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "CardStackOpts", "default": "default" }], "summary": "Card stack: a deck where the top card can be flicked away left or right. Build \u0060count\u0060 cards; card 0 is the top. end returns -1 or 1 on the frame the top card leaves (to the left or right), else 0. The end call reports which card in the stack is active, or -1, so the body overload returns it." }, { "name": "Checklist", "kind": "extension", "id": "extension|Checklist|0|0|int|UiText id;ReadOnlySpan\u003CCheckStep\u003E steps;ChecklistOpts o = default||hb1cdf5bee54759618ba4c2e6386ab30794ff911948e833f0610afb911e63f554", "signature": "int Checklist(UiText id, ReadOnlySpan\u003CCheckStep\u003E steps, ChecklistOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "steps", "type": "ReadOnlySpan\u003CCheckStep\u003E" }, { "name": "o", "type": "ChecklistOpts", "default": "default" }], "summary": "Onboarding checklist: a card with progress and steps. The first open step shows its description and action. Clicking a step\u0027s circle toggles done. Returns the index whose action was clicked, or -1." }, { "name": "CommandPalette", "kind": "extension", "id": "extension|CommandPalette|0|0|int|ref bool open;ReadOnlySpan\u003CCommand\u003E commands||h001b59aa0ea6df8a0ea3d57d57bc1d6c25690db136f11ce1d794c93d9c7bbfc3", "signature": "int CommandPalette(ref bool open, ReadOnlySpan\u003CCommand\u003E commands)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "open", "type": "ref bool" }, { "name": "commands", "type": "ReadOnlySpan\u003CCommand\u003E" }], "summary": "Spotlight style command palette. Returns the index of the chosen command, or -1. Open it with a shortcut: if (cui_shortcut(ui, CUI_MOD_PRIMARY, CUI_KEY_K)) open = true;" }, { "name": "DiffRows", "kind": "extension", "id": "extension|DiffRows|0|0|int|UiText id;Span\u003CDiffRow\u003E rows;int first = default||h5c94a97ef7958912de5bdb07673a9402664eef62f0238701e95229d154b6ac95", "signature": "int DiffRows(UiText id, Span\u003CDiffRow\u003E rows, int first = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "rows", "type": "Span\u003CDiffRow\u003E" }, { "name": "first", "type": "int", "default": "default" }], "summary": "Copies up to rows.Length of the diff view\u0027s rows into rows, starting at row first." }, { "name": "DroppedFileCount", "kind": "property", "id": "property|DroppedFileCount|0|0|int||get;|h5421210a1933793fbee263cb811628208321526d954709ce2c6f023389dc8e5d", "signature": "int DroppedFileCount { get; }", "summary": "Number of files the window is tracking as dropped; a dropzone reports them first." }, { "name": "Dropzone", "kind": "extension", "id": "extension|Dropzone|0|0|int|UiText id;DropzoneOpts o = default||h1a4c314252379bc356942c2d624bf8dc2388e096a816cda96c08748d80f874cf", "signature": "int Dropzone(UiText id, DropzoneOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "DropzoneOpts", "default": "default" }], "summary": "Dropzone: drop files from the OS, or click to browse. Returns the number of files dropped on it this frame (read them with cui_dropped_file), -1 when clicked (open a file dialog), 0 otherwise. accept filters by extension, e.g. \u0022png;jpg;pdf\u0022." }, { "name": "Funnel", "kind": "extension", "id": "extension|Funnel|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E stages;FunnelOpts o = default||he5202d3e37c12c123db9bc8dddaf33f25d6ee0d1790d21a12846d2233ba2f5e4", "signature": "int Funnel(UiText id, ReadOnlySpan\u003CVizItem\u003E stages, FunnelOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "stages", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "FunnelOpts", "default": "default" }], "summary": "Funnel: stages narrowing by value, with the conversion between them." }, { "name": "Gantt", "kind": "extension", "id": "extension|Gantt|0|0|int|UiText id;Span\u003CGanttTask\u003E tasks;Date origin;int days;GanttOpts o = default||h6405eb5f36078bd6c78b652a408e39c0fdb1c3a89355a3c7e0368f5d2306981a", "signature": "int Gantt(UiText id, Span\u003CGanttTask\u003E tasks, Date origin, int days, GanttOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tasks", "type": "Span\u003CGanttTask\u003E" }, { "name": "origin", "type": "Date" }, { "name": "days", "type": "int" }, { "name": "o", "type": "GanttOpts", "default": "default" }], "summary": "Gantt chart: a task list beside a timeline of bars. Drag a bar to move it, its ends to resize it. Dependencies are drawn as elbow arrows. Returns the index of a clicked task, or -1." }, { "name": "Heatmap", "kind": "extension", "id": "extension|Heatmap|0|0|int|UiText id;ReadOnlySpan\u003Cfloat\u003E values;int rows;int cols;HeatmapOpts o = default||hb23a8befed5cb93e645e80d3a23d15bd4f06bdbf22a6f65815edb1bef4129225", "signature": "int Heatmap(UiText id, ReadOnlySpan\u003Cfloat\u003E values, int rows, int cols, HeatmapOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "rows", "type": "int" }, { "name": "cols", "type": "int" }, { "name": "o", "type": "HeatmapOpts", "default": "default" }], "summary": "Heatmap: a rows x cols matrix (values[row * cols \u002B col]) on one hue, light to dark, with a scale below." }, { "name": "InlineEdit", "kind": "extension", "id": "extension|InlineEdit|0|0|int|UiText id;ref string buf;int cap = 256;InlineEditOpts o = default||hdc2fcc11f00fc875b370e784540495eec9451da64bf16b076e0bf19bfc7c475a", "signature": "int InlineEdit(UiText id, ref string buf, int cap = 256, InlineEditOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int", "default": "256" }, { "name": "o", "type": "InlineEditOpts", "default": "default" }], "summary": "Inline edit: text that turns into a field in place. Click (or Enter when focused) to edit, Enter or clicking away saves, Esc cancels. Returns CUI_CHANGED when an edit is committed." }, { "name": "PasswordStrength", "kind": "extension", "id": "extension|PasswordStrength|0|0|int|UiText password||h485b27b320ae208ea07b64ec8e1f317ab018ad6465c8ddb02cd01a4424689adb", "signature": "int PasswordStrength(UiText password)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "password", "type": "UiText" }], "summary": "Password strength meter (0 weak .. 4 strong). Returns the score." }, { "name": "PromptSuggestions", "kind": "extension", "id": "extension|PromptSuggestions|0|0|int|UiText id;ReadOnlySpan\u003CPromptSuggestion\u003E items;PromptSuggestionsOpts o = default||ha7ba62105e302f4fa64dd30bf005d6217ab47f44b8de4dcb382d55bb8686de65", "signature": "int PromptSuggestions(UiText id, ReadOnlySpan\u003CPromptSuggestion\u003E items, PromptSuggestionsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CPromptSuggestion\u003E" }, { "name": "o", "type": "PromptSuggestionsOpts", "default": "default" }], "summary": "Prompt suggestions: cards to start a conversation with." }, { "name": "RadarChart", "kind": "extension", "id": "extension|RadarChart|0|0|int|UiText id;ReadOnlySpan\u003CSeries\u003E series;ReadOnlySpan\u003Cstring\u003E axes;RadarOpts o = default||hc3ad2df41c9c6b26dc90f3b916ae531651d598ceef8ab541dd035331b9ea768a", "signature": "int RadarChart(UiText id, ReadOnlySpan\u003CSeries\u003E series, ReadOnlySpan\u003Cstring\u003E axes, RadarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "ReadOnlySpan\u003CSeries\u003E" }, { "name": "axes", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "o", "type": "RadarOpts", "default": "default" }], "summary": "Radar chart: series over shared axes (series[i].values[axis])." }, { "name": "Reactions", "kind": "extension", "id": "extension|Reactions|0|0|int|UiText id;Span\u003CReaction\u003E items||h7528193af8d452456269a4867874808d1a14d9b9b10f82f0f851537b4f5fcc31", "signature": "int Reactions(UiText id, Span\u003CReaction\u003E items)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "Span\u003CReaction\u003E" }], "summary": "Reactions: icon pills with counts. Clicking toggles \u0060active\u0060 and adjusts the count. Returns the index that changed, or -1." }, { "name": "Sankey", "kind": "extension", "id": "extension|Sankey|0|0|int|UiText id;ReadOnlySpan\u003Cstring\u003E nodes;ReadOnlySpan\u003CSankeyLink\u003E links;SankeyOpts o = default||h54e60f881596c8425c36f81063bcf3bca0ae525a5cb9acb9d9291c93343d590b", "signature": "int Sankey(UiText id, ReadOnlySpan\u003Cstring\u003E nodes, ReadOnlySpan\u003CSankeyLink\u003E links, SankeyOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "nodes", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "links", "type": "ReadOnlySpan\u003CSankeyLink\u003E" }, { "name": "o", "type": "SankeyOpts", "default": "default" }], "summary": "Sankey: flows between nodes; columns follow the links from the sources." }, { "name": "ScatterChart", "kind": "extension", "id": "extension|ScatterChart|0|0|int|UiText id;ReadOnlySpan\u003CScatterSeries\u003E series;ScatterOpts o = default||hff3593e05140bd9fcdc8f3c4f996ca064ecb18c59024984a51431c04b86145eb", "signature": "int ScatterChart(UiText id, ReadOnlySpan\u003CScatterSeries\u003E series, ScatterOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "ReadOnlySpan\u003CScatterSeries\u003E" }, { "name": "o", "type": "ScatterOpts", "default": "default" }], "summary": "Scatter (or bubble) chart: points per series, optional sizes." }, { "name": "SourceList", "kind": "extension", "id": "extension|SourceList|0|0|int|UiText id;ReadOnlySpan\u003CSource\u003E sources||h6f59cfee8fa72dc7eca177af354e0a6f666d1ec1975ff987f31f00841dd57a41", "signature": "int SourceList(UiText id, ReadOnlySpan\u003CSource\u003E sources)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "sources", "type": "ReadOnlySpan\u003CSource\u003E" }], "summary": "cui_source_list" }, { "name": "SpeedDial", "kind": "extension", "id": "extension|SpeedDial|0|0|int|UiText id;ReadOnlySpan\u003CSpeedAction\u003E actions;SpeedDialOpts o = default||h8f3dcc4f3e218426dd87000bfe603cd7a2a64cc3cdaa021cbc2dea064de87347", "signature": "int SpeedDial(UiText id, ReadOnlySpan\u003CSpeedAction\u003E actions, SpeedDialOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "actions", "type": "ReadOnlySpan\u003CSpeedAction\u003E" }, { "name": "o", "type": "SpeedDialOpts", "default": "default" }], "summary": "Speed dial: a round floating action button that fans out related actions. Returns the chosen action index, or -1." }, { "name": "SplitBar", "kind": "extension", "id": "extension|SplitBar|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E items;SplitBarOpts o = default||h16bc37b28b54a3959b1ffffa5d212e2ce5767fa384b82e9693cfc0cf3ecba083", "signature": "int SplitBar(UiText id, ReadOnlySpan\u003CVizItem\u003E items, SplitBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "SplitBarOpts", "default": "default" }], "summary": "Split bar: one bar split into parts, with a legend of values and shares." }, { "name": "SplitButton", "kind": "extension", "id": "extension|SplitButton|0|0|int|UiText label;ReadOnlySpan\u003Cstring\u003E items;SplitButtonOpts o = default||hab5170280449718e8bb4e18299a9939e8c4585d7f457498a1884dce52f1a5b83", "signature": "int SplitButton(UiText label, ReadOnlySpan\u003Cstring\u003E items, SplitButtonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "o", "type": "SplitButtonOpts", "default": "default" }], "summary": "Split button: a main action with a menu of related actions on the chevron. Returns 0 when the main part is clicked, 1 \u002B i when menu item i is chosen and -1 otherwise." }, { "name": "SwipeItem", "kind": "extension", "id": "extension|SwipeItem|0|0|int|UiText id;ReadOnlySpan\u003CSwipeAction\u003E left;ReadOnlySpan\u003CSwipeAction\u003E right;DrawFn body||hde404a799a1b468b7df4ac9ce65a247c02d83d6788917c5eb60378cb5ebf709d", "signature": "int SwipeItem(UiText id, ReadOnlySpan\u003CSwipeAction\u003E left, ReadOnlySpan\u003CSwipeAction\u003E right, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "left", "type": "ReadOnlySpan\u003CSwipeAction\u003E" }, { "name": "right", "type": "ReadOnlySpan\u003CSwipeAction\u003E" }, { "name": "body", "type": "DrawFn" }], "summary": "Swipe actions: drag a row sideways (or swipe on a trackpad) to reveal actions behind it. A long swipe triggers the first action. The row content goes between begin and end; end returns the chosen action: 0..left_count-1 for left actions, 100 \u002B i for right actions, or -1. The end call reports which swipe action was taken, or -1, so the body overload returns it." }, { "name": "Toast", "kind": "extension", "id": "extension|Toast|0|0|int|UiText title;ToastOpts o = default||hf3201662ddfe1d84b58e5851658ccd1e36ba6d53acdb101b80df283a2f0ee264", "signature": "int Toast(UiText title, ToastOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "ToastOpts", "default": "default" }], "summary": "Queue a toast. Returns a handle; cui_toast_action_clicked(handle) tells whether its action button was pressed." }, { "name": "Toc", "kind": "extension", "id": "extension|Toc|0|0|int|UiText scrollId;ReadOnlySpan\u003CTocItem\u003E items||h226d5cf4f0b7b58f3c7df69b1762d483d977d46968c43d4468a7db886e3771f0", "signature": "int Toc(UiText scrollId, ReadOnlySpan\u003CTocItem\u003E items)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "scrollId", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CTocItem\u003E" }], "summary": "Table of contents for a scroll area: highlights the section in view on a progress rail, and scrolls to a section when clicked. Put cui_toc_anchor(ui, \u0022anchor\u0022) at each heading inside the scroll area, and call cui_toc in the same scope as the scroll area. Returns the active index." }, { "name": "TreeTableDepth", "kind": "extension", "id": "extension|TreeTableDepth|0|0|int|||h6f4316e2e33c3ebb9b14932b5fc588d50a9b4b5b52a70f672523341f85c34b6b", "signature": "int TreeTableDepth()", "extensionOn": "CuiSharp.Ui", "summary": "depth of the current row, 0 at the top" }, { "name": "TreeTableRow", "kind": "extension", "id": "extension|TreeTableRow|0|0|int|||h6f0d82997cbd7dfd529bd1d04c7fd279173e864794b9acde1a6f8cf0deb80e45", "signature": "int TreeTableRow()", "extensionOn": "CuiSharp.Ui", "summary": "The next row in view: returns its node, or -1 when done. Then build its cells: cui_tree_table_name first, then cui_data_grid_cell(_text)." }, { "name": "Treemap", "kind": "extension", "id": "extension|Treemap|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E items;TreemapOpts o = default||hea14dd60cbeb36d78c486e9549f6917d7d431d80c23f54fe86c191e4e647a6e4", "signature": "int Treemap(UiText id, ReadOnlySpan\u003CVizItem\u003E items, TreemapOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "TreemapOpts", "default": "default" }], "summary": "cui_treemap_ex" }, { "name": "Waffle", "kind": "extension", "id": "extension|Waffle|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E items;WaffleOpts o = default||hbb9c8a5b82ec5547e3c36f001de128742bbee117c0a3da39be26ed99600e3617", "signature": "int Waffle(UiText id, ReadOnlySpan\u003CVizItem\u003E items, WaffleOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "WaffleOpts", "default": "default" }], "summary": "Waffle: a 10 x 10 grid of squares split by share, with a legend." }, { "name": "WeekCalendar", "kind": "extension", "id": "extension|WeekCalendar|0|0|int|UiText id;Date weekStart;Span\u003CCalendarEvent\u003E events;WeekOpts o = default||h6ebe88be9f390e98d2c4c1e3f796e62f09b23309fe4f21093ce3e1e506653fc9", "signature": "int WeekCalendar(UiText id, Date weekStart, Span\u003CCalendarEvent\u003E events, WeekOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "weekStart", "type": "Date" }, { "name": "events", "type": "Span\u003CCalendarEvent\u003E" }, { "name": "o", "type": "WeekOpts", "default": "default" }], "summary": "Week calendar: seven day columns on an hour grid. Drag an event to move it (15 minute steps), drag its bottom edge to resize it. Returns the index of a clicked event, or -1." }, { "name": "Segmented", "kind": "extension", "id": "extension|Segmented|0|0|int?|UiText id;ReadOnlySpan\u003Cstring\u003E items;int value;SegmentedOpts o = default||hfb54a79c3ab77ad5f8295229f391ceafab348451a898c9a700f5adccce24a7a9", "signature": "int? Segmented(UiText id, ReadOnlySpan\u003Cstring\u003E items, int value, SegmentedOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "value", "type": "int" }, { "name": "o", "type": "SegmentedOpts", "default": "default" }], "summary": "Returns the chosen index on a change, otherwise null." }, { "name": "AccentName", "kind": "method", "id": "method|AccentName|1|0|string|Accent accent||h0e37f10433228fc19b1442b10a947b92a35e4c1252d1688e2237e77f9c961f50", "signature": "static string AccentName(Accent accent)", "parameters": [{ "name": "accent", "type": "Accent" }], "summary": "The name of an accent as the UI shows it: \u0022Violet\u0022." }, { "name": "KeyName", "kind": "method", "id": "method|KeyName|1|0|string|Key key||ha31820aa00db9a4c2b6c84c51b79eb08b079cecb712605806d2763204d3f8fc8", "signature": "static string KeyName(Key key)", "parameters": [{ "name": "key", "type": "Key" }], "summary": "The name of a key as the UI shows it: A, Space, F5." }, { "name": "CronDescribe", "kind": "extension", "id": "extension|CronDescribe|0|0|string?|UiText cron||hd4c9ada55bcf91c1c683541837ecf35a841f847a3eee89aabbb26c529db1cd47", "signature": "string? CronDescribe(UiText cron)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "cron", "type": "UiText" }], "summary": "\u0022Every weekday at 09:30\u0022, in frame memory; NULL when invalid." }, { "name": "DroppedFile", "kind": "method", "id": "method|DroppedFile|0|0|string?|int index||hadc15393659f2bdf4574fe25868fce27bf8d063345e13c4c1b9285ed95d06a8e", "signature": "string? DroppedFile(int index)", "parameters": [{ "name": "index", "type": "int" }], "summary": "The path of a dropped file, or null when the index is out of range." }, { "name": "EmojiPicker", "kind": "extension", "id": "extension|EmojiPicker|0|0|string?|UiText id;ref string recent;ref int tone;EmojiPickerOpts o = default||h15890f303b9bfcb523f735ab2f9e6844938b14c17122927fe58f4714c2d1577c", "signature": "string? EmojiPicker(UiText id, ref string recent, ref int tone, EmojiPickerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "recent", "type": "ref string" }, { "name": "tone", "type": "ref int" }, { "name": "o", "type": "EmojiPickerOpts", "default": "default" }], "summary": "Emoji picker: search, groups with tabs, recent emoji, skin tones and a preview with the name. Returns the emoji picked this frame (UTF-8, valid until the next frame) or NULL. Put it in a popover to open it from a button." }, { "name": "ShortcutLabel", "kind": "extension", "id": "extension|ShortcutLabel|0|0|string?|KeyCombo combo||hbc2b6ede54efc1cdfc932533bfaa02df6e2091b08013ed268adaeb5f70fe77fd", "signature": "string? ShortcutLabel(KeyCombo combo)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "combo", "type": "KeyCombo" }], "summary": "cui_shortcut_label" }, { "name": "LastId", "kind": "property", "id": "property|LastId|0|0|uint||get;|hb45a60a2627c7935e56a964ff3d4b23b89b21d8a180962ea221f54c95e1e68d2", "signature": "uint LastId { get; }", "summary": "The id of the widget drawn last, which is what Target and the other \u0022point at this\u0022 APIs take. Read it immediately after the control." }, { "name": "MakeId", "kind": "method", "id": "method|MakeId|0|0|uint|UiText id||hf729d2c0f406a6b883b2cbb0e869941e897aaaef891e76b22daa8e479857208d", "signature": "uint MakeId(UiText id)", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "A stable cui_id for a string, for Animate and State callers." }, { "name": "CreateImage", "kind": "method", "id": "method|CreateImage|0|0|ulong|int width;int height;ReadOnlySpan\u003Cbyte\u003E rgba||h5ee4689276531d64da132f6a1cc9e229a83100259c335ca4ab5a007c20a68ce7", "signature": "ulong CreateImage(int width, int height, ReadOnlySpan\u003Cbyte\u003E rgba)", "parameters": [{ "name": "width", "type": "int" }, { "name": "height", "type": "int" }, { "name": "rgba", "type": "ReadOnlySpan\u003Cbyte\u003E" }], "summary": "Uploads RGBA8 pixels as a texture. The pixels are copied, so the span may live on the stack. Release the handle with DestroyImage when the page that shows it is done with it \u2014 State\u0060\u00601 with an onFree callback is the usual owner." }, { "name": "DockSave", "kind": "extension", "id": "extension|DockSave|0|0|ulong|UiText id;ref string buf;int cap||h10c71156edbbe3c5e529016814c796584f469d6d0b0b7466e4bde6ba2b0893b4", "signature": "ulong DockSave(UiText id, ref string buf, int cap)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }], "summary": "Saved layout: one line, e.g. dock1 h0.22([*Scene tree,Assets],v0.7([*Viewport],[*Log,-Console])) h splits side by side and v stacks, the number is the first child\u0027s share, [..] is a leaf\u0027s tabs in order, * the selected tab, - a closed panel; a backslash escapes , [ ] ( ) and itself in names. cui_dock_save returns the full length (as snprintf does) and writes what fits, or 0 when there is no layout. cui_dock_load replaces the layout (and sets each panel\u0027s *open from it on its next frame); names it does not know yet are kept for when they appear. Malformed text returns false and changes nothing." }, { "name": "FrameCount", "kind": "property", "id": "property|FrameCount|0|0|ulong||get;|h7254dceb0c426d20c644d45bf8a5ca3e9a444a54dee4128f0adcf9db4b00c8fc", "signature": "ulong FrameCount { get; }", "summary": "Frames presented so far, counted by CUI." }, { "name": "Accordion", "kind": "extension", "id": "extension|Accordion|0|0|void|UiText title;ref bool open;DrawFn body||h5a6e18ec6c43cdc43af8a25085ec728fca441d6f03d65c135ac01415603bdc5b", "signature": "void Accordion(UiText title, ref bool open, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "AddFontFallback", "kind": "extension", "id": "extension|AddFontFallback|0|0|void|Font font;Font fallback||h046e79521dc69de86a794461399d269a9ea51fd36fd162afddde019ca45934e1", "signature": "void AddFontFallback(Font font, Font fallback)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "font", "type": "Font" }, { "name": "fallback", "type": "Font" }], "summary": "Adds a fallback CUI reaches for when font has no glyph. The chain holds at most four fallbacks; when it is exhausted CUI scans every other loaded face before giving up. A glyph no face has draws nothing at all \u2014 not even a .notdef box in every font \u2014 so an untranslated screen comes up blank with no warning. UseSystemFontFallback is the check for that, and the bundled faces are Latin. The glyph atlas is what a large script actually costs: one texture of CUI_ATLAS_MAX (4096) pixels per side, with the frame\u0027s glyph cache reset between frames, so a font that makes every frame load new glyphs is the expensive case. Register the faces a language needs at startup, not per frame." }, { "name": "AgentStatus", "kind": "extension", "id": "extension|AgentStatus|0|0|void|UiText text;AgentStatusOpts o = default||h61ac25149bb714e9244c62474d67f93158a7f9bd1583135da08e6b32a5ac5120", "signature": "void AgentStatus(UiText text, AgentStatusOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "AgentStatusOpts", "default": "default" }], "summary": "Agent status pill: what the agent is doing right now and for how long." }, { "name": "Avatar", "kind": "extension", "id": "extension|Avatar|0|0|void|UiText name;AvatarOpts o = default||h86ad06b6f35491ed7cd4f337c2a2688db37d73bfec4c164c7b90267365ce8af2", "signature": "void Avatar(UiText name, AvatarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "name", "type": "UiText" }, { "name": "o", "type": "AvatarOpts", "default": "default" }], "summary": "cui_avatar_ex" }, { "name": "AvatarGroup", "kind": "extension", "id": "extension|AvatarGroup|0|0|void|ReadOnlySpan\u003Cstring\u003E names;int maxVisible = 4;float size = 32f||h2aebe32a1e3101b42a18771fc77f1b10cb011e17bea49c9f7cbf01e0be5ca252", "signature": "void AvatarGroup(ReadOnlySpan\u003Cstring\u003E names, int maxVisible = 4, float size = 32f)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "names", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "maxVisible", "type": "int", "default": "4" }, { "name": "size", "type": "float", "default": "32f" }], "summary": "cui_avatar_group" }, { "name": "Badge", "kind": "extension", "id": "extension|Badge|0|0|void|UiText text;BadgeOpts o = default||h2e146cbd498ce9ebfdcbb978fe8414bd9ff4389e1361c02fa453b24fcfc15d1c", "signature": "void Badge(UiText text, BadgeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "BadgeOpts", "default": "default" }], "summary": "cui_badge_ex" }, { "name": "BarChart", "kind": "method", "id": "method|BarChart|0|0|void|UiText id;ReadOnlySpan\u003Cfloat\u003E values;ChartOpts o = default;Color color = default||hdd24ad8679c5e482e048ed73ce69225b69c19ad5704a83f9a427093e4551242a", "signature": "void BarChart(UiText id, ReadOnlySpan\u003Cfloat\u003E values, ChartOpts o = default, Color color = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "o", "type": "ChartOpts", "default": "default" }, { "name": "color", "type": "Color", "default": "default" }], "summary": "A bar chart of one series. See LineChart." }, { "name": "BarChart", "kind": "method", "id": "method|BarChart|0|0|void|UiText id;Series[] series;ChartOpts o = default||h8d42b4d0a483459731da6ec00c3001f0d1f69bd28a07b4618095e800910f67c7", "signature": "void BarChart(UiText id, Series[] series, ChartOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "Series[]" }, { "name": "o", "type": "ChartOpts", "default": "default" }] }, { "name": "Carousel", "kind": "extension", "id": "extension|Carousel|0|0|void|UiText id;int count;ref int index;DrawFn body;CarouselOpts o = default||haf6583b1edd10132a276ed92f3c7cc7b139b36644ab8586eadce1ce1ae7cf431", "signature": "void Carousel(UiText id, int count, ref int index, DrawFn body, CarouselOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "count", "type": "int" }, { "name": "index", "type": "ref int" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "CarouselOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "ChatDivider", "kind": "extension", "id": "extension|ChatDivider|0|0|void|UiText label||hdb17d96dbafb815bdf9d77a06116d1a2d004dbf0c4190716f604d7f7503032a5", "signature": "void ChatDivider(UiText label)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }], "summary": "\u0022Today\u0022" }, { "name": "ChatMessage", "kind": "extension", "id": "extension|ChatMessage|0|0|void|UiText text;ChatOpts o = default||h0067e7f3c9a991c64026e5433bcd84d614a634bb99011d70cf7548c49b4d0e46", "signature": "void ChatMessage(UiText text, ChatOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "ChatOpts", "default": "default" }], "summary": "Same as the overload with ref markdownResult, but reports nothing back: the state pointer is null, so the widget stores no state the caller could read." }, { "name": "ChatMessage", "kind": "extension", "id": "extension|ChatMessage|0|0|void|UiText text;ref MarkdownResult markdownResult;ChatOpts o = default||he419f66e4261e2e5f8341890ace8476938bbabe2ce7747bb1cf378821e824da4", "signature": "void ChatMessage(UiText text, ref MarkdownResult markdownResult, ChatOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "markdownResult", "type": "ref MarkdownResult" }, { "name": "o", "type": "ChatOpts", "default": "default" }], "summary": "Chat message bubble. Consecutive messages from one person set grouped so they stack tightly and show the avatar once." }, { "name": "Code", "kind": "extension", "id": "extension|Code|0|0|void|UiText text||heb5c95cf0725be5b6a3d5d064b904bf47fbe9b2889e74bd910d61b666764b439", "signature": "void Code(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "inline code" }, { "name": "CodeBlock", "kind": "extension", "id": "extension|CodeBlock|0|0|void|UiText id;UiText code;CodeOpts o = default||h649344835854747b9cbde6157eb263d70a9df1f246e3854f21806fef682fedac", "signature": "void CodeBlock(UiText id, UiText code, CodeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "code", "type": "UiText" }, { "name": "o", "type": "CodeOpts", "default": "default" }], "summary": "Code block with syntax highlighting (lang: \u0022c\u0022, \u0022cpp\u0022, \u0022js\u0022, \u0022ts\u0022, \u0022python\u0022, \u0022rust\u0022, \u0022go\u0022, \u0022json\u0022, \u0022shell\u0022, or \u0022text\u0022 for none), line numbers, a title bar and a copy button. Long lines scroll sideways." }, { "name": "CodeEditorFind", "kind": "extension", "id": "extension|CodeEditorFind|0|0|void|UiText id;UiText query||ha5ad5e0daacc15247f7497756195d2f521b1676f4f4275c1360e7dd6a099a27e", "signature": "void CodeEditorFind(UiText id, UiText query)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "query", "type": "UiText" }], "summary": "Opens the find bar with query and selects the next match (NULL closes)." }, { "name": "CodeEditorGoto", "kind": "extension", "id": "extension|CodeEditorGoto|0|0|void|UiText id;int line;int column||he046da323e1fb441003f0aff4a8b1fb21892920cc0d306e08811c4d4b477dfae", "signature": "void CodeEditorGoto(UiText id, int line, int column)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "line", "type": "int" }, { "name": "column", "type": "int" }], "summary": "On the editor\u0027s next frame: put the caret at a line and column (1 based), focus the editor and scroll there. Call from the same id scope." }, { "name": "CodeEditorSelect", "kind": "extension", "id": "extension|CodeEditorSelect|0|0|void|UiText id;int anchor;int cursor||hbae83fe5ce54e61f495c10224f17c5f97155815624a80c230f94b710bbd25bbc", "signature": "void CodeEditorSelect(UiText id, int anchor, int cursor)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "anchor", "type": "int" }, { "name": "cursor", "type": "int" }], "summary": "On the next frame: select bytes anchor..cursor, focus and scroll there." }, { "name": "Component", "kind": "extension", "id": "extension|Component|0|0|void|Component component||h848740a50a9eb8dc56641315816144114376ac9c315542b20691de3cbc9300d4", "signature": "void Component(Component component)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "component", "type": "Component" }], "summary": "Draws component, with its own error boundary." }, { "name": "ContextMenu", "kind": "extension", "id": "extension|ContextMenu|0|0|void|UiText id;DrawFn body||h639ca26a4859a28b5d0c68a17b414a22b59f92e32460ae828991807709b85741", "signature": "void ContextMenu(UiText id, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "ContextMeter", "kind": "extension", "id": "extension|ContextMeter|0|0|void|UiText id;float used;float limit;ContextOpts o = default||h19d9530359d94af2f36c2f8a876d49576ae0e0c4c67e5270f45fdf36934d1c78", "signature": "void ContextMeter(UiText id, float used, float limit, ContextOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "used", "type": "float" }, { "name": "limit", "type": "float" }, { "name": "o", "type": "ContextOpts", "default": "default" }], "summary": "Context meter: a small ring of how full the context is; hover for a breakdown. It turns amber past 80% and red past 95%." }, { "name": "Countdown", "kind": "extension", "id": "extension|Countdown|0|0|void|UiText id;double secondsLeft;CountdownOpts o = default||h821d564a1492fd931adfbbc43d4c182d207343abf289fdf0702df537f77d848a", "signature": "void Countdown(UiText id, double secondsLeft, CountdownOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "secondsLeft", "type": "double" }, { "name": "o", "type": "CountdownOpts", "default": "default" }], "summary": "Countdown: days, hours, minutes and seconds as tiles whose digits roll." }, { "name": "Counter", "kind": "extension", "id": "extension|Counter|0|0|void|UiText id;double value;CounterOpts o = default||h0b05971fdda28297316e6f4447ca5d501aa7a11fe9da2f3bdc3756e5b7c5ffd3", "signature": "void Counter(UiText id, double value, CounterOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "double" }, { "name": "o", "type": "CounterOpts", "default": "default" }], "summary": "Odometer: a number whose digits roll to their new values." }, { "name": "DataGrid", "kind": "extension", "id": "extension|DataGrid|0|0|void|UiText id;ReadOnlySpan\u003CGridColumn\u003E columns;int rowCount;GridState state;DrawFn body;GridOpts o = default||h9c456dfa1016ff4f42bd0014595270a05519919f42743036e5fc9f8cb8147c63", "signature": "void DataGrid(UiText id, ReadOnlySpan\u003CGridColumn\u003E columns, int rowCount, GridState state, DrawFn body, GridOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CGridColumn\u003E" }, { "name": "rowCount", "type": "int" }, { "name": "state", "type": "GridState" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "GridOpts", "default": "default" }], "summary": "Draws the body only when open; closes and publishes state even on exceptions." }, { "name": "DataGridCell", "kind": "extension", "id": "extension|DataGridCell|0|0|void|||h17266c47617cb3e20e5aafb4e0740fb451853300d3ea2f4cf357c27f4e0c97e5", "signature": "void DataGridCell()", "extensionOn": "CuiSharp.Ui", "summary": "next cell; put components inside" }, { "name": "DataGridCellText", "kind": "extension", "id": "extension|DataGridCellText|0|0|void|UiText text||hbc15a57820d975503239bf1e6c43046de51dd25c53400b94dc05e4c5ec821c22", "signature": "void DataGridCellText(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "cui_data_grid_cell_text" }, { "name": "DestroyImage", "kind": "method", "id": "method|DestroyImage|0|0|void|ulong texture||h233513e5e0f04cab6a29321054080d17776d33b361cec53060f335038ac6c4f4", "signature": "void DestroyImage(ulong texture)", "parameters": [{ "name": "texture", "type": "ulong" }], "summary": "Frees a texture obtained from CreateImage, LoadImage or a widget that loaded one for you (the avatar upload). Passing 0 does nothing, so a field can be cleared and released in one step." }, { "name": "Dialog", "kind": "extension", "id": "extension|Dialog|0|0|void|UiText title;ref bool open;DrawFn body;DialogOpts o = default||hb9a2198e7b3396b3f8e81f53972b52816f4e10d0c965758cb0b8e59b20c0dad6", "signature": "void Dialog(UiText title, ref bool open, DrawFn body, DialogOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "DialogOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "DockPanel", "kind": "extension", "id": "extension|DockPanel|0|0|void|UiText title;ref bool open;DrawFn body;DockPanelOpts o = default||haec3aec1f30c0641ff9d8d21ef9827c8984e582f195575f5bdafa8e30c26bf47", "signature": "void DockPanel(UiText title, ref bool open, DrawFn body, DockPanelOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "DockPanelOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "DockSeparator", "kind": "extension", "id": "extension|DockSeparator|0|0|void|||h4f7b4ffb27ff0752d3414c6e36155f014d64756d9c99299d0061f4d3b662e948", "signature": "void DockSeparator()", "extensionOn": "CuiSharp.Ui", "summary": "cui_dock_separator" }, { "name": "DonutChart", "kind": "method", "id": "method|DonutChart|0|0|void|UiText id;float[] values;string[]? labels = null;ChartOpts o = default||h105b6ba9a48212810ca8eaa543dfd59b8bcbb7a078d6d00c43caa8337cf3e984", "signature": "void DonutChart(UiText id, float[] values, string[]? labels = null, ChartOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "values", "type": "float[]" }, { "name": "labels", "type": "string[]?", "default": "null" }, { "name": "o", "type": "ChartOpts", "default": "default" }] }, { "name": "DotDisplay", "kind": "extension", "id": "extension|DotDisplay|0|0|void|UiText text;DotDisplayOpts o = default||h69cc0b3822b72c2d91c328a3999ec76dc3ab49fb7d2667722d67fca441b5fa7a", "signature": "void DotDisplay(UiText text, DotDisplayOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "DotDisplayOpts", "default": "default" }], "summary": "Dot-matrix display: text drawn with a 5 by 7 dot font, for clocks, counters and status lines. Printable ASCII, the degree sign and the middle dot have glyphs; anything else is a box. Unlit dots show dimly unless \u0060no_dim\u0060 is set. In a box narrower than the text, the dots shrink to fit, or with \u0060marquee\u0060 the text scrolls." }, { "name": "DrawArc", "kind": "method", "id": "method|DrawArc|0|0|void|float cx;float cy;float radius;float fromRadians;float toRadians;float thickness;Color color||h75c08329ccf02db7c649c3de4062b857fcb9fb9b5607cc0cdc3ffa02cdd3a32a", "signature": "void DrawArc(float cx, float cy, float radius, float fromRadians, float toRadians, float thickness, Color color)", "parameters": [{ "name": "cx", "type": "float" }, { "name": "cy", "type": "float" }, { "name": "radius", "type": "float" }, { "name": "fromRadians", "type": "float" }, { "name": "toRadians", "type": "float" }, { "name": "thickness", "type": "float" }, { "name": "color", "type": "Color" }], "summary": "An arc from fromRadians to toRadians." }, { "name": "DrawCircle", "kind": "method", "id": "method|DrawCircle|0|0|void|float cx;float cy;float radius;Color color||hb1d4daba0313192a47661dfdcba2bbea774eacd066b6e992e4b4698dddcde09a", "signature": "void DrawCircle(float cx, float cy, float radius, Color color)", "parameters": [{ "name": "cx", "type": "float" }, { "name": "cy", "type": "float" }, { "name": "radius", "type": "float" }, { "name": "color", "type": "Color" }], "summary": "A filled circle." }, { "name": "DrawEmoji", "kind": "extension", "id": "extension|DrawEmoji|0|0|void|UiText utf8;RectF r||ha6979720ffa9f6b639eedcdc2f34912ae99c3e8f6db6d29d49b7a755626e5e61", "signature": "void DrawEmoji(UiText utf8, RectF r)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "utf8", "type": "UiText" }, { "name": "r", "type": "RectF" }], "summary": "cui_draw_emoji" }, { "name": "DrawIcon", "kind": "method", "id": "method|DrawIcon|0|0|void|UiText icon;RectF r;Color color;float size = 16f||hd54b671c520dcce41f616162ba2038b0604408edb2178e4e538b9fd737631621", "signature": "void DrawIcon(UiText icon, RectF r, Color color, float size = 16f)", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "r", "type": "RectF" }, { "name": "color", "type": "Color" }, { "name": "size", "type": "float", "default": "16f" }], "summary": "Draws an icon glyph into a rectangle." }, { "name": "DrawImage", "kind": "method", "id": "method|DrawImage|0|0|void|ulong texture;RectF destination;Color tint;float radius = default||h02908132cac945b65c579f6460fda70375b546d9df86cb8e4446b3d6369a8ad2", "signature": "void DrawImage(ulong texture, RectF destination, Color tint, float radius = default)", "parameters": [{ "name": "texture", "type": "ulong" }, { "name": "destination", "type": "RectF" }, { "name": "tint", "type": "Color" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Draws the whole texture into destination." }, { "name": "DrawImage", "kind": "method", "id": "method|DrawImage|0|0|void|ulong texture;RectF destination;RectF uv;Color tint;float radius = default||h19922f36165664b04b3f13745794f29cd576c87d690e38abfacd839c9eebe6ea", "signature": "void DrawImage(ulong texture, RectF destination, RectF uv, Color tint, float radius = default)", "parameters": [{ "name": "texture", "type": "ulong" }, { "name": "destination", "type": "RectF" }, { "name": "uv", "type": "RectF" }, { "name": "tint", "type": "Color" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Draws a texture into destination, sampling uv in 0..1 texture coordinates." }, { "name": "DrawLine", "kind": "method", "id": "method|DrawLine|0|0|void|float x0;float y0;float x1;float y1;float thickness;Color color||h7c718f3cf261fcdd9890ecc99c37b4c7ef88951855160bbd3b4b84bbb0906183", "signature": "void DrawLine(float x0, float y0, float x1, float y1, float thickness, Color color)", "parameters": [{ "name": "x0", "type": "float" }, { "name": "y0", "type": "float" }, { "name": "x1", "type": "float" }, { "name": "y1", "type": "float" }, { "name": "thickness", "type": "float" }, { "name": "color", "type": "Color" }], "summary": "A line between two points." }, { "name": "DrawPolygon", "kind": "method", "id": "method|DrawPolygon|0|0|void|ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E points;Color color||h0a35ee50b137930776943658c6a4b0a802340e6fc1443224120f511919b82309", "signature": "void DrawPolygon(ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E points, Color color)", "parameters": [{ "name": "points", "type": "ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E" }, { "name": "color", "type": "Color" }], "summary": "A convex polygon through the given x/y pairs." }, { "name": "DrawPolyline", "kind": "method", "id": "method|DrawPolyline|0|0|void|ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E points;float thickness;Color color;bool closed = default||h4c7f07e3c9fc697e544cc98214f394946bae499ac03450d9e5812ced69ce04e9", "signature": "void DrawPolyline(ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E points, float thickness, Color color, bool closed = default)", "parameters": [{ "name": "points", "type": "ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E" }, { "name": "thickness", "type": "float" }, { "name": "color", "type": "Color" }, { "name": "closed", "type": "bool", "default": "default" }], "summary": "A polyline through the given x/y pairs." }, { "name": "DrawRect", "kind": "method", "id": "method|DrawRect|0|0|void|RectF r;Color fill;Color border;float borderWidth;float radius = default||h4ba9a89c0df1a36edef3bc858b12de8bb1c2d9020a801bc38d101b16e9839611", "signature": "void DrawRect(RectF r, Color fill, Color border, float borderWidth, float radius = default)", "parameters": [{ "name": "r", "type": "RectF" }, { "name": "fill", "type": "Color" }, { "name": "border", "type": "Color" }, { "name": "borderWidth", "type": "float" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Fills a rounded rectangle and strokes its border." }, { "name": "DrawRect", "kind": "method", "id": "method|DrawRect|0|0|void|RectF r;Color fill;float radius = default||hbede7dc4a83173600f87c3151cfb881b786025c1a85bfc6cfd41ac9c76b997ec", "signature": "void DrawRect(RectF r, Color fill, float radius = default)", "parameters": [{ "name": "r", "type": "RectF" }, { "name": "fill", "type": "Color" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Fills a rounded rectangle." }, { "name": "DrawRectGradient", "kind": "method", "id": "method|DrawRectGradient|0|0|void|RectF r;Color top;Color bottom;float radius = default||hdfb2b1697ea2ab6d38c629c2592cb4496e061c2c2d2d73080e90e315c179fa59", "signature": "void DrawRectGradient(RectF r, Color top, Color bottom, float radius = default)", "parameters": [{ "name": "r", "type": "RectF" }, { "name": "top", "type": "Color" }, { "name": "bottom", "type": "Color" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Fills a rounded rectangle with a vertical gradient." }, { "name": "DrawShadow", "kind": "method", "id": "method|DrawShadow|0|0|void|RectF r;Color color;float blur = 12f;float spread = default;float dx = default;float dy = 2f;float radius = default||hd608a1aa394a6724e278bdd79827b6dd27fa0b58389aad230a6976a37e6e1bc9", "signature": "void DrawShadow(RectF r, Color color, float blur = 12f, float spread = default, float dx = default, float dy = 2f, float radius = default)", "parameters": [{ "name": "r", "type": "RectF" }, { "name": "color", "type": "Color" }, { "name": "blur", "type": "float", "default": "12f" }, { "name": "spread", "type": "float", "default": "default" }, { "name": "dx", "type": "float", "default": "default" }, { "name": "dy", "type": "float", "default": "2f" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "A soft drop shadow behind a rounded rectangle." }, { "name": "DrawText", "kind": "method", "id": "method|DrawText|0|0|void|UiText text;float x;float y;Color color;float size = 12f;Font font = Font.Body||ha379555b96749e8089ccd4a67f9f06f0c97c8e3bf6628a829212e087cdf44073", "signature": "void DrawText(UiText text, float x, float y, Color color, float size = 12f, Font font = Font.Body)", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "x", "type": "float" }, { "name": "y", "type": "float" }, { "name": "color", "type": "Color" }, { "name": "size", "type": "float", "default": "12f" }, { "name": "font", "type": "Font", "default": "Font.Body" }], "summary": "Draws text outside layout, from a string, UTF-8 bytes, or interpolation." }, { "name": "Emoji", "kind": "extension", "id": "extension|Emoji|0|0|void|UiText utf8;float size||hcce49478392e105a5082cf12fe2c18e8a68954f1395b48ec19c91052abdbfa90", "signature": "void Emoji(UiText utf8, float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "utf8", "type": "UiText" }, { "name": "size", "type": "float" }], "summary": "one emoji as a component" }, { "name": "ExpandableCard", "kind": "extension", "id": "extension|ExpandableCard|0|0|void|UiText title;ref bool open;DrawFn body;ExpandableCardOpts o = default||h45a44cd40dda73a400ba664b3783303201ba3f221c6a0c0021b4519c21652a83", "signature": "void ExpandableCard(UiText title, ref bool open, DrawFn body, ExpandableCardOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "ExpandableCardOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "Gap", "kind": "extension", "id": "extension|Gap|0|0|void|float size||h89c0f099b911f74a22d756328dc6f8c634ce4e2561cfb7403549af06bfe120d2", "signature": "void Gap(float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "size", "type": "float" }], "summary": "fixed space" }, { "name": "Gauge", "kind": "extension", "id": "extension|Gauge|0|0|void|UiText label;float value;float size = 130f||h0d866db02a3773b1f94110de3177536a50289e2eb2f4f1328d5ea96164ce0e3d", "signature": "void Gauge(UiText label, float value, float size = 130f)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "float" }, { "name": "size", "type": "float", "default": "130f" }], "summary": "cui_gauge" }, { "name": "GradientText", "kind": "extension", "id": "extension|GradientText|0|0|void|UiText text;GradientTextOpts o = default||h3f77173db929d5d0326fb0d6aacd31968c768ec86de8e25973b46685c05898a0", "signature": "void GradientText(UiText text, GradientTextOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "GradientTextOpts", "default": "default" }], "summary": "Text painted with a gradient from one color to another; animate makes it drift." }, { "name": "Heading", "kind": "extension", "id": "extension|Heading|0|0|void|UiText text;int level = 2||h557aed71184ccf0f99a503a8e9e31f47bd8f19daa88deaf28acbf6bd2f58da8f", "signature": "void Heading(UiText text, int level = 2)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "level", "type": "int", "default": "2" }], "summary": "1..4" }, { "name": "HexViewGoto", "kind": "extension", "id": "extension|HexViewGoto|0|0|void|UiText id;ulong offset||he99988413132b927d206b59bb10ff266913c4aed14642da49708324af5d3a4ea", "signature": "void HexViewGoto(UiText id, ulong offset)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "offset", "type": "ulong" }], "summary": "Go to offset: on the view\u0027s next frame its cursor moves to offset, that byte becomes the selection and it scrolls into view (to the middle when it was out of sight). Wire a \u0022Go to\u0022 field to it; it is safe to call every frame." }, { "name": "HoverCard", "kind": "extension", "id": "extension|HoverCard|0|0|void|UiText id;DrawFn body;HoverCardOpts o = default||h1feb5df25fc90d51f65ce5d548e1c92a15c20d4dbcfb120ec57197031f6bf861", "signature": "void HoverCard(UiText id, DrawFn body, HoverCardOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "HoverCardOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "Icon", "kind": "method", "id": "method|Icon|0|0|void|UiText icon;float size = 16f;Color color = default||ha3c2c3c378676921960172e72c0cd75e176f823d910f148819cb62c5c07fcdb7", "signature": "void Icon(UiText icon, float size = 16f, Color color = default)", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "size", "type": "float", "default": "16f" }, { "name": "color", "type": "Color", "default": "default" }] }, { "name": "Image", "kind": "extension", "id": "extension|Image|0|0|void|ulong tex;ImageOpts o = default||h4aba4bdd877e6dfb8e45ba090aba9ec93a98e0c6441d125c9038d1be437dc417", "signature": "void Image(ulong tex, ImageOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "tex", "type": "ulong" }, { "name": "o", "type": "ImageOpts", "default": "default" }], "summary": "cui_image_ex" }, { "name": "Inspector", "kind": "extension", "id": "extension|Inspector|0|0|void|UiText id;DrawFn body;InspectorOpts o = default||h841cdf7d1c9125bb04f373e4d2f93c10eccdb9bcbb43da0de7dccc3769b41a32", "signature": "void Inspector(UiText id, DrawFn body, InspectorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "InspectorOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "Kbd", "kind": "extension", "id": "extension|Kbd|0|0|void|UiText keys||h417076fb4869022dd26ff1c344a189d091fce7e448e96c96224d62f1a451f6d1", "signature": "void Kbd(UiText keys)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "keys", "type": "UiText" }], "summary": "keyboard keycap, e.g. \u0022Ctrl K\u0022" }, { "name": "Label", "kind": "extension", "id": "extension|Label|0|0|void|UiText text||h72e24445b52f829a1571cbd68c5c6fac6835700a497232df3ad518950a463221", "signature": "void Label(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "medium weight" }, { "name": "LineChart", "kind": "method", "id": "method|LineChart|0|0|void|UiText id;ReadOnlySpan\u003Cfloat\u003E values;ChartOpts o = default;Color color = default||h3cdc2012853a1aaf00f86229fc128bb443d3b47540340bb22a37e12c48168603", "signature": "void LineChart(UiText id, ReadOnlySpan\u003Cfloat\u003E values, ChartOpts o = default, Color color = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "o", "type": "ChartOpts", "default": "default" }, { "name": "color", "type": "Color", "default": "default" }], "summary": "A line chart of one series. This is the overload most charts want: the samples are passed directly, and an empty span draws nothing at all." }, { "name": "LineChart", "kind": "method", "id": "method|LineChart|0|0|void|UiText id;Series[] series;ChartOpts o = default||hc086d5dcd804a5f509ce75cc8bee9f3f8667a55ceb50af4ffaabadafd4609ad0", "signature": "void LineChart(UiText id, Series[] series, ChartOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "Series[]" }, { "name": "o", "type": "ChartOpts", "default": "default" }] }, { "name": "Loader", "kind": "extension", "id": "extension|Loader|0|0|void|LoaderOpts o = default||h5945e358ac0fbf3d0cb4c3df6db1ab5234d41a31263116b2fb63eee24b3e9451", "signature": "void Loader(LoaderOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "LoaderOpts", "default": "default" }], "summary": "cui_loader_ex" }, { "name": "LogView", "kind": "extension", "id": "extension|LogView|0|0|void|UiText id;LogBuffer log;LogViewOpts o = default||h629acfd43966ab117356ba793bd70ad6b9dfe93587dd289ab839a823556ecc7b", "signature": "void LogView(UiText id, LogBuffer log, LogViewOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "log", "type": "LogBuffer" }, { "name": "o", "type": "LogViewOpts", "default": "default" }], "summary": "Draws log with its toolbar: level filters, search with highlight, Follow, Copy and Clear. Scrolling up turns Follow off; reaching the bottom turns it back on." }, { "name": "MarkReady", "kind": "method", "id": "method|MarkReady|0|0|void|||h8dc4126f75765e5089f4b5e2bbbb22f0fc14d612aafd61d5d0998543d5b212d0", "signature": "void MarkReady()", "summary": "Declares that this frame shows complete, current app data. This is what dotnet cui --wait ready waits for: readiness is a property of the frame that marks it, so the next frame starts unready and a screen that goes back to loading is never seen as ready on the strength of an older mark." }, { "name": "Menu", "kind": "extension", "id": "extension|Menu|0|0|void|UiText label;DrawFn body;MenuOpts o = default||h46a55ef5a629d54cea211e8cff97db0e260e3c390254e4a74263ef25c2b8fe9d", "signature": "void Menu(UiText label, DrawFn body, MenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "MenuOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "MenuBarMenu", "kind": "extension", "id": "extension|MenuBarMenu|0|0|void|UiText label;DrawFn body;MenuBarMenuOpts o = default||h1b1bac394be04ea33333eee937841b7391a0fc642ea6951788ddb9eb4b199110", "signature": "void MenuBarMenu(UiText label, DrawFn body, MenuBarMenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "MenuBarMenuOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "MenuLabel", "kind": "extension", "id": "extension|MenuLabel|0|0|void|UiText text||h55d6bbe5cef52bef1137dee2490a736200d78319bc81b81cdd5d2b7fbe16d2b6", "signature": "void MenuLabel(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "cui_menu_label" }, { "name": "MenuSeparator", "kind": "extension", "id": "extension|MenuSeparator|0|0|void|||h7babb70cb1540862bd8b5e000e173763dc48b627688082cf19bcc2e23c25ba73", "signature": "void MenuSeparator()", "extensionOn": "CuiSharp.Ui", "summary": "cui_menu_separator" }, { "name": "Meter", "kind": "extension", "id": "extension|Meter|0|0|void|UiText label;float used;float total;UiText unit = default||h1d8b4e728d051b711957aa7fbc9bcf832cd505900fdce01a27a79bdc8e9d89fa", "signature": "void Meter(UiText label, float used, float total, UiText unit = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "used", "type": "float" }, { "name": "total", "type": "float" }, { "name": "unit", "type": "UiText", "default": "default" }], "summary": "cui_meter" }, { "name": "Metric", "kind": "extension", "id": "extension|Metric|0|0|void|UiText label;UiText value;MetricOpts o = default||h9bab4a4dc12d3dace12e7106ac89323fdbfdf7c56bba9a0e2f0c40e9c95fbef6", "signature": "void Metric(UiText label, UiText value, MetricOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "UiText" }, { "name": "o", "type": "MetricOpts", "default": "default" }], "summary": "cui_metric_ex" }, { "name": "Muted", "kind": "extension", "id": "extension|Muted|0|0|void|UiText text||haf3dda321d9292f4d904d1870d8bb5dea3c49cb695524acb75572822bff2f9b8", "signature": "void Muted(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "small, muted" }, { "name": "NavSection", "kind": "extension", "id": "extension|NavSection|0|0|void|UiText title||hf901052c3e5ba17c7b523058746a19e11e181239069f2b8fbb43adfafdbdcafc", "signature": "void NavSection(UiText title)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }], "summary": "cui_nav_section" }, { "name": "Node", "kind": "extension", "id": "extension|Node|0|0|void|int nodeId;ref float x;ref float y;UiText title;DrawFn body;NodeOpts o = default||he2a131c3e341325536d7aaaafc4f83046a7d7e9c45eead6545f141826f6d7e82", "signature": "void Node(int nodeId, ref float x, ref float y, UiText title, DrawFn body, NodeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "nodeId", "type": "int" }, { "name": "x", "type": "ref float" }, { "name": "y", "type": "ref float" }, { "name": "title", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "NodeOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "NodeEditor", "kind": "extension", "id": "extension|NodeEditor|0|0|void|UiText id;ref NodeView view;DrawFn body;NodeEditorOpts o = default||h5854f9b818a6cafa92571b34f94f5f0c435142d546b6f628a1174b1effe7ac67", "signature": "void NodeEditor(UiText id, ref NodeView view, DrawFn body, NodeEditorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "view", "type": "ref NodeView" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "NodeEditorOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "NumberRoll", "kind": "extension", "id": "extension|NumberRoll|0|0|void|UiText id;UiText text;TextFxOpts o = default||h67c63e017e57f215b45262ce043c429d9ff6e486e3c507e0c84f3d5daa53a5bf", "signature": "void NumberRoll(UiText id, UiText text, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "A figure whose changed digits roll into place: up when the value rises, down when it falls, a beat apart from the left; unchanged characters stay still. Pass the formatted text (\u0022$64,210\u0022, \u00221.2k\u0022); digits are tabular." }, { "name": "PathBarMenu", "kind": "extension", "id": "extension|PathBarMenu|0|0|void|UiText id;ref int segment;DrawFn body||h875759cac9f5832bcb6782caaa672db98fbc277a19f31017d3155a38c398dce5", "signature": "void PathBarMenu(UiText id, ref int segment, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "segment", "type": "ref int" }, { "name": "body", "type": "DrawFn" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "PopClip", "kind": "method", "id": "method|PopClip|0|0|void|||hd223700ffd7f730814c69ec5bd11dae3b4dd4a7a738e754b775a351e0c980575", "signature": "void PopClip()", "summary": "Ends the clip opened by PushClip." }, { "name": "Popover", "kind": "extension", "id": "extension|Popover|0|0|void|UiText id;DrawFn body;PopoverOpts o = default||h597b85fb0e87089ca73543226f68a70b713ea0f9c949974f2c0425c7028438f3", "signature": "void Popover(UiText id, DrawFn body, PopoverOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "PopoverOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "PopoverClose", "kind": "extension", "id": "extension|PopoverClose|0|0|void|UiText id||hca913fedac00c0c27ef6b37fb3f90cb88cd76862d0e5884e8f4e8dac8ba415b3", "signature": "void PopoverClose(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_popover_close" }, { "name": "PopoverOpen", "kind": "extension", "id": "extension|PopoverOpen|0|0|void|UiText id||h424af0f304196b1a039d033eb75b4bff9dca251d0232dbc683699a925dfaa16d", "signature": "void PopoverOpen(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_popover_open" }, { "name": "PopoverToggle", "kind": "extension", "id": "extension|PopoverToggle|0|0|void|UiText id||h58628645f47f2c9c2896b1ec70e7d661c861b7abb26420d9b750e21380db5e02", "signature": "void PopoverToggle(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_popover_toggle" }, { "name": "Presence", "kind": "extension", "id": "extension|Presence|0|0|void|UiText id;ReadOnlySpan\u003CPresenceUser\u003E users;int maxVisible;float size||h33db1325c05049463f7c9a97e3df833a114732c8a156f6ee2d775dad7a69c214", "signature": "void Presence(UiText id, ReadOnlySpan\u003CPresenceUser\u003E users, int maxVisible, float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "users", "type": "ReadOnlySpan\u003CPresenceUser\u003E" }, { "name": "maxVisible", "type": "int" }, { "name": "size", "type": "float" }], "summary": "Presence: who is here now. Overlapping avatars with a colored ring each, that spread out on hover and name themselves." }, { "name": "Progress", "kind": "extension", "id": "extension|Progress|0|0|void|float value;ProgressOpts o = default||h811e97c08fde2498427fc6a279e22a1c2ea3bc1ce69c3d642c73832f10623d4d", "signature": "void Progress(float value, ProgressOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "value", "type": "float" }, { "name": "o", "type": "ProgressOpts", "default": "default" }], "summary": "cui_progress_ex" }, { "name": "ProgressRing", "kind": "extension", "id": "extension|ProgressRing|0|0|void|UiText label;float value;float size = 104f||h2e30430280ecfbc1925c0164f0bb59a54da3003b073ef1535c6cb3c2d4e8e057", "signature": "void ProgressRing(UiText label, float value, float size = 104f)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "float" }, { "name": "size", "type": "float", "default": "104f" }], "summary": "Circular progress with the value in the middle." }, { "name": "PushClip", "kind": "method", "id": "method|PushClip|0|0|void|RectF r||h95bac6dcebf24b24b986a596422f965edfee8cd616663a1e59d0da09a9bd3efb", "signature": "void PushClip(RectF r)", "parameters": [{ "name": "r", "type": "RectF" }], "summary": "Clips subsequent drawing to a rectangle. Pair with PopClip." }, { "name": "RadialGauge", "kind": "extension", "id": "extension|RadialGauge|0|0|void|UiText id;float value;float min;float max;RadialGaugeOpts o = default||h69d72defa0179e7173e927724367a4bb9575a2e75bbd9949225f9eab886c2992", "signature": "void RadialGauge(UiText id, float value, float min, float max, RadialGaugeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "RadialGaugeOpts", "default": "default" }], "summary": "cui_radial_gauge_ex" }, { "name": "Readout", "kind": "extension", "id": "extension|Readout|0|0|void|UiText label;UiText value;ReadoutOpts o = default||h88673692487a3fc220702b7f3a45a3b5fc3f80bc6eab7e144728a19666b2f88f", "signature": "void Readout(UiText label, UiText value, ReadoutOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "UiText" }, { "name": "o", "type": "ReadoutOpts", "default": "default" }], "summary": "Readout: one figure as an instrument shows it. A small label, the value in the monospaced font with its unit, and a muted line of context under it." }, { "name": "Reasoning", "kind": "extension", "id": "extension|Reasoning|0|0|void|UiText id;DrawFn body;ReasoningOpts o = default||h892c50fc79e75386733c9149e18f72832dbdccb2d31c29b39a76a16ea185386e", "signature": "void Reasoning(UiText id, DrawFn body, ReasoningOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "ReasoningOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "ReorderBegin", "kind": "method", "id": "method|ReorderBegin|0|0|void|UiText id;int[] order||hb312c00b771ad378a0324c96198659487c28a3c21c9d71a96e3f595957ffe21f", "signature": "void ReorderBegin(UiText id, int[] order)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "order", "type": "int[]" }] }, { "name": "RequestRedraw", "kind": "method", "id": "method|RequestRedraw|0|0|void|||h4986f5ad7c5201d2830f1dee1e374ca29980fe9c408b3ef833336aabba3ed66c", "signature": "void RequestRedraw()", "summary": "Requests another frame; call only from the synchronous draw path." }, { "name": "RequestWakeup", "kind": "extension", "id": "extension|RequestWakeup|0|0|void|float seconds||h1e8d82035be8a5e226207bb6bd0874265dba29cf4b6a4779f60b95ab7cc567f7", "signature": "void RequestWakeup(float seconds)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "seconds", "type": "float" }], "summary": "Asks for one more frame after seconds, even when nothing else would wake the window. Use it for a timer, a toast timeout or a poll interval." }, { "name": "ResponseStatus", "kind": "extension", "id": "extension|ResponseStatus|0|0|void|int status;double seconds;double bytes||h63e7c9d5181d7379043415c904edf88e89db4e9781c0577d221801f58399a1cf", "signature": "void ResponseStatus(int status, double seconds, double bytes)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "status", "type": "int" }, { "name": "seconds", "type": "double" }, { "name": "bytes", "type": "double" }], "summary": "cui_response_status" }, { "name": "ScrollTo", "kind": "extension", "id": "extension|ScrollTo|0|0|void|UiText scrollId;float y||h795b4245740f616fce2565ac40d5ea6dfa995143af81eedbc7067db0b0f1e7c0", "signature": "void ScrollTo(UiText scrollId, float y)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "scrollId", "type": "UiText" }, { "name": "y", "type": "float" }], "summary": "cui_scroll_to" }, { "name": "Secondary", "kind": "extension", "id": "extension|Secondary|0|0|void|UiText text||h4f32c253f11a19b26ceb397d205e5e2d5c6c8e5db01a0ef2e8984e0a2c78ef46", "signature": "void Secondary(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "secondary color" }, { "name": "Separator", "kind": "extension", "id": "extension|Separator|0|0|void|||h913edddc60366f9044c6b66111a5672080bdd3cb042c5febb3487cac873e4f6b", "signature": "void Separator()", "extensionOn": "CuiSharp.Ui", "summary": "hairline, follows the parent direction" }, { "name": "SetFont", "kind": "extension", "id": "extension|SetFont|0|0|void|Font role;Font font||hcab29e22e2019bb3b541b3254c5e4027f76d357aa2ea4e762ced8560cad6c652", "signature": "void SetFont(Font role, Font font)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "role", "type": "Font" }, { "name": "font", "type": "Font" }], "summary": "Makes font the face every widget using role draws with." }, { "name": "SetLocalization", "kind": "method", "id": "method|SetLocalization|0|0|void|Localization? table||h9b1e18df8b05e42ae28fc53a566e5014c93cf59eea849033c0ab9f19b6bae9bd", "signature": "void SetLocalization(Localization? table)", "parameters": [{ "name": "table", "type": "Localization?" }], "summary": "Sets the month, weekday and \u0022Today\u0022 names the date components show, and returns to English with null." }, { "name": "SetReducedMotion", "kind": "method", "id": "method|SetReducedMotion|0|0|void|bool reduced||hae4b830dd1026084cab290fac44e758b675baf93c35f70486ffa7547f059af88", "signature": "void SetReducedMotion(bool reduced)", "parameters": [{ "name": "reduced", "type": "bool" }], "summary": "Turns off animation (transitions, springs and spinners) for accessibility." }, { "name": "Sheet", "kind": "extension", "id": "extension|Sheet|0|0|void|UiText title;ref bool open;DrawFn body;SheetOpts o = default||h65c09301eb5dd69c80862865570241bbd654452c640464cf772559af8fc6bf22", "signature": "void Sheet(UiText title, ref bool open, DrawFn body, SheetOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "SheetOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "ShimmerText", "kind": "extension", "id": "extension|ShimmerText|0|0|void|UiText text;TextFxOpts o = default||h10fe1a4021ac0e8c72d7fdf6f3cb558e9a8c622c13f4749b7ac3d5d402cb9f57", "signature": "void ShimmerText(UiText text, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "Text with a highlight sweeping across it, for \u0022Thinking...\u0022 states." }, { "name": "SignatureClear", "kind": "extension", "id": "extension|SignatureClear|0|0|void|UiText id||hf23272f80768839b31369fdd5a82c42808ef1d11985d804d96d54c704b0de8bf", "signature": "void SignatureClear(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_signature_clear" }, { "name": "Skeleton", "kind": "extension", "id": "extension|Skeleton|0|0|void|Size width;float height||h9a80641f8540ed71174043f46e0ff5190568ee803a507a52125ab6fd1ccd12ec", "signature": "void Skeleton(Size width, float height)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "width", "type": "Size" }, { "name": "height", "type": "float" }], "summary": "cui_skeleton" }, { "name": "Spacer", "kind": "extension", "id": "extension|Spacer|0|0|void|||h8df9fad32f644fb75d2f19ff5d3057f2529306e3edc1921a901da58f59bdf332", "signature": "void Spacer()", "extensionOn": "CuiSharp.Ui", "summary": "flexible space" }, { "name": "Sparkline", "kind": "extension", "id": "extension|Sparkline|0|0|void|ReadOnlySpan\u003Cfloat\u003E values;Size width;float height;Color color||hf5e74b2ae617ca510b0dea71f3513379b77ff9597fa28585678fd9d5dc90c297", "signature": "void Sparkline(ReadOnlySpan\u003Cfloat\u003E values, Size width, float height, Color color)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "width", "type": "Size" }, { "name": "height", "type": "float" }, { "name": "color", "type": "Color" }], "summary": "cui_sparkline" }, { "name": "Spinner", "kind": "extension", "id": "extension|Spinner|0|0|void|float size = 16f||h910bfa94c12faa6f479982793408735550b3b41b6f58bf9d2ecbd8fbd8d537f9", "signature": "void Spinner(float size = 16f)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "size", "type": "float", "default": "16f" }], "summary": "cui_spinner" }, { "name": "SplitNext", "kind": "extension", "id": "extension|SplitNext|0|0|void|||h2e9b4df1853b9715ec487e793813aebc81a3f6ac93bd19f40400a8b7db5e57b1", "signature": "void SplitNext()", "extensionOn": "CuiSharp.Ui", "summary": "cui_split_next" }, { "name": "StatusBarProgress", "kind": "extension", "id": "extension|StatusBarProgress|0|0|void|float value;StatusProgressOpts o = default||h0d89461fbae2cb62b010aaa92c832f76c787764ad8bf6a7f6f3b2352d43eb62e", "signature": "void StatusBarProgress(float value, StatusProgressOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "value", "type": "float" }, { "name": "o", "type": "StatusProgressOpts", "default": "default" }], "summary": "A small progress bar with an optional label. value is 0..1." }, { "name": "StatusBarSpacer", "kind": "extension", "id": "extension|StatusBarSpacer|0|0|void|||hff79ec75c75a5a4046a3afdf7908bfa1687f1fccc3cca35aa6a3c05e5696b38d", "signature": "void StatusBarSpacer()", "extensionOn": "CuiSharp.Ui", "summary": "cui_status_bar_spacer" }, { "name": "StatusBarText", "kind": "extension", "id": "extension|StatusBarText|0|0|void|UiText text;StatusItemOpts o = default||hf5288fddf236ac4166245c73e6f33c7b59cd60825aad4b4b26f2a62615179863", "signature": "void StatusBarText(UiText text, StatusItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "StatusItemOpts", "default": "default" }], "summary": "A message; \u0060tone\u0060 colors its icon." }, { "name": "Stepper", "kind": "extension", "id": "extension|Stepper|0|0|void|ReadOnlySpan\u003Cstring\u003E steps;int current||h80f2e80af6bf18ef466ffe2f62937141940d661367c04989db4a52915786a5ca", "signature": "void Stepper(ReadOnlySpan\u003Cstring\u003E steps, int current)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "steps", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "current", "type": "int" }], "summary": "cui_stepper" }, { "name": "Table", "kind": "extension", "id": "extension|Table|0|0|void|UiText id;ReadOnlySpan\u003CTableColumn\u003E columns;ref TableSort sort;DrawFn body;TableOpts o = default||h7968ef7a646f0817ff9658c4cbca9383316e49dd9c742c9662b2ff3812b0fd0a", "signature": "void Table(UiText id, ReadOnlySpan\u003CTableColumn\u003E columns, ref TableSort sort, DrawFn body, TableOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CTableColumn\u003E" }, { "name": "sort", "type": "ref TableSort" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "TableOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "TableCell", "kind": "extension", "id": "extension|TableCell|0|0|void|||h7206d360daa4de79037d61b719094d0baea2de5a24e5aeb9f04149502f3db3bc", "signature": "void TableCell()", "extensionOn": "CuiSharp.Ui", "summary": "Next cell; put any components inside, or use cui_table_cell_text." }, { "name": "TableCellText", "kind": "extension", "id": "extension|TableCellText|0|0|void|UiText text||h7ed6f22b1e22b71ecfb331830e30c25829c7af8fec09d3b888c861bbb28793a6", "signature": "void TableCellText(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "Part of cui_table_cell \u2014 Next cell; put any components inside, or use cui_table_cell_text." }, { "name": "Text", "kind": "extension", "id": "extension|Text|0|0|void|UiText text;TextOpts o = default||h098380135ff70fa9e6364b4f5cb5baaa3d0d23bb4e06916511f00c01e904dcb6", "signature": "void Text(UiText text, TextOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "TextOpts", "default": "default" }], "summary": "cui_text_ex" }, { "name": "TextReveal", "kind": "extension", "id": "extension|TextReveal|0|0|void|UiText id;UiText text;TextFxOpts o = default||h7f99ba4d6b24021ea0f87d36914931f6994d1962327a22f1e8b4caad0115cafe", "signature": "void TextReveal(UiText id, UiText text, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "Words fade and rise into place one after another, when first shown and again whenever the text changes." }, { "name": "Ticker", "kind": "extension", "id": "extension|Ticker|0|0|void|UiText id;ReadOnlySpan\u003CTickerItem\u003E items;TickerOpts o = default||h62c76d0d359572be4036b278345efbeac770ba89bef0d4343912d1b51ea0fc23", "signature": "void Ticker(UiText id, ReadOnlySpan\u003CTickerItem\u003E items, TickerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CTickerItem\u003E" }, { "name": "o", "type": "TickerOpts", "default": "default" }], "summary": "Ticker: items that scroll by continuously, pausing on hover." }, { "name": "TimelineItem", "kind": "extension", "id": "extension|TimelineItem|0|0|void|UiText title;TimelineOpts o = default||hd57ae894fcdcf6a57e4008b86ca1e4a0ea3d920a1be7b0beead7f0c64dce9b25", "signature": "void TimelineItem(UiText title, TimelineOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "TimelineOpts", "default": "default" }], "summary": "cui_timeline_item_ex" }, { "name": "ToastDismiss", "kind": "extension", "id": "extension|ToastDismiss|0|0|void|int handle||h6a894b14bc221b765154e4ee9cf6cdd1812f544772192205c25a197be8077904", "signature": "void ToastDismiss(int handle)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "handle", "type": "int" }], "summary": "cui_toast_dismiss" }, { "name": "TocAnchor", "kind": "extension", "id": "extension|TocAnchor|0|0|void|UiText anchor||h474d1046a90fd952ce1996c9a0f04e59d8090e886222bfa8a62b08c2d191127c", "signature": "void TocAnchor(UiText anchor)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "anchor", "type": "UiText" }], "summary": "cui_toc_anchor" }, { "name": "ToggleTheme", "kind": "method", "id": "method|ToggleTheme|0|0|void|||h9c315cf4c8d3ce0774082f4db1c10fdcde1dfdef8503f7e49968fc73805e19e8", "signature": "void ToggleTheme()", "summary": "Switches to the other theme: what a \u0022dark mode\u0022 command is." }, { "name": "ToolCall", "kind": "extension", "id": "extension|ToolCall|0|0|void|UiText id;UiText name;ToolCallOpts o = default||h16a78d12e8afd01cd74d0ff79d04eab871b3602eb401436850ec64b67c8d437d", "signature": "void ToolCall(UiText id, UiText name, ToolCallOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "name", "type": "UiText" }, { "name": "o", "type": "ToolCallOpts", "default": "default" }], "summary": "cui_tool_call_ex" }, { "name": "ToolbarSeparator", "kind": "extension", "id": "extension|ToolbarSeparator|0|0|void|||h1ac04b800f486b06135932d0c44c42e77b107a635f62f0ebe94dc31f9e99b9a6", "signature": "void ToolbarSeparator()", "extensionOn": "CuiSharp.Ui", "summary": "cui_toolbar_separator" }, { "name": "ToolbarSpacer", "kind": "extension", "id": "extension|ToolbarSpacer|0|0|void|||h494edd9bb119d78eaa1c281a125dd1a9effb7a85caa35e4b35c4253376bb92f3", "signature": "void ToolbarSpacer()", "extensionOn": "CuiSharp.Ui", "summary": "pushes the following items to the right" }, { "name": "Tooltip", "kind": "extension", "id": "extension|Tooltip|0|0|void|UiText text||h5665aef7d99446eea8e623f0f1227e52e0512f331e35936232eb9a28aa7f3634", "signature": "void Tooltip(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "Tooltip for the previous component, shown after a short hover delay." }, { "name": "Tree", "kind": "extension", "id": "extension|Tree|0|0|void|UiText label;ref bool open;DrawFn body;TreeOpts o = default||he13b4bfd412c90e5210ac7a3109d12fb25e4a2280312b5257572daebbb5bbd95", "signature": "void Tree(UiText label, ref bool open, DrawFn body, TreeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "TreeOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "TreeTableName", "kind": "extension", "id": "extension|TreeTableName|0|0|void|UiText label;UiText icon||h1db08630dbcd5478e4543d6fc7df51dec714a4cefea2efb55e95ec44273c7151", "signature": "void TreeTableName(UiText label, UiText icon)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "icon", "type": "UiText" }], "summary": "The first cell: indentation, guides, the chevron, an icon and the name (cut short with a tooltip of the whole name when it does not fit)." }, { "name": "TypingIndicator", "kind": "extension", "id": "extension|TypingIndicator|0|0|void|UiText name||h29e1190d004ef9cf04c8fb3bb6772b74ea89a31b5105bb6fe5d65e29383b006a", "signature": "void TypingIndicator(UiText name)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "name", "type": "UiText" }], "summary": "bouncing dots" }, { "name": "UserMenu", "kind": "extension", "id": "extension|UserMenu|0|0|void|UiText name;DrawFn body;UserMenuOpts o = default||h1d302e00c446dbae93ac0347cf4063547177c7d4c68194db26c7ca15c8128f8c", "signature": "void UserMenu(UiText name, DrawFn body, UserMenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "name", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "UserMenuOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "WordRotate", "kind": "extension", "id": "extension|WordRotate|0|0|void|UiText id;ReadOnlySpan\u003Cstring\u003E words;float interval;TextFxOpts o = default||he53938c5acb8d2d7786cb08323a565882c4e7c01bc50637a3c5c0d9131734da4", "signature": "void WordRotate(UiText id, ReadOnlySpan\u003Cstring\u003E words, float interval, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "words", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "interval", "type": "float" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "One word at a time; the next one rolls up into place and the width follows." }] }, + { "name": "CuiSharp.Ui", "displayName": "Ui", "kind": "ref struct", "summary": "A stack-only drawing context. Do not retain it outside the current frame.", "members": [{ "name": "Accent", "kind": "property", "id": "property|Accent|0|0|Accent||get;set;|h601d9cfd9625a035242c1bcbf7277be4924bde18cceaaaa599fef54890ea0c9b", "signature": "Accent Accent { get; set; }", "summary": "The accent in use, and the way to change it. See Theme." }, { "name": "ApiExplorer", "kind": "extension", "id": "extension|ApiExplorer|0|0|ApiExplorerResult|UiText id;ReadOnlySpan\u003CApiEndpoint\u003E endpoints;ref int selected;ApiExplorerOpts o = default||h8e1274e09ed373172bec2fe1ee1969a7f9b2e594fbeed0ea8abed98302f3ed84", "signature": "ApiExplorerResult ApiExplorer(UiText id, ReadOnlySpan\u003CApiEndpoint\u003E endpoints, ref int selected, ApiExplorerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "endpoints", "type": "ReadOnlySpan\u003CApiEndpoint\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "ApiExplorerOpts", "default": "default" }], "summary": "cui_api_explorer_ex" }, { "name": "Automation", "kind": "method", "id": "method|Automation|0|0|AutomationScope|UiText id||hd57993910d23acdd48c6a4f1765881747e9eccec5e5c6717c87bd9e4ece2397f", "signature": "AutomationScope Automation(UiText id)", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "Names the widgets drawn inside this scope for automation without changing their native identity. Use it when a label is readable but not unique; use Id when the native state also has to be separated by the same key." }, { "name": "Blame", "kind": "extension", "id": "extension|Blame|0|0|BlameResult|UiText id;ReadOnlySpan\u003Cstring\u003E lines;ReadOnlySpan\u003Cint\u003E lineCommit;ReadOnlySpan\u003CBlameCommit\u003E commits;BlameOpts o = default||hdf716d42271c45696039bb07abacc01b9b0b2a935ee05dc1842213c276edf5eb", "signature": "BlameResult Blame(UiText id, ReadOnlySpan\u003Cstring\u003E lines, ReadOnlySpan\u003Cint\u003E lineCommit, ReadOnlySpan\u003CBlameCommit\u003E commits, BlameOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "lines", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "lineCommit", "type": "ReadOnlySpan\u003Cint\u003E" }, { "name": "commits", "type": "ReadOnlySpan\u003CBlameCommit\u003E" }, { "name": "o", "type": "BlameOpts", "default": "default" }], "summary": "Source with who last changed each line: lines from one commit share one gutter entry with its author, age and hash, and a bar at the edge shades newer changes stronger. Hover a gutter entry for the commit\u0027s summary and to mark its lines; click it to get the commit. Only the lines in view are built. On a phone the gutter keeps only the shade and initials." }, { "name": "Canvas", "kind": "method", "id": "method|Canvas|0|0|CanvasResult|UiText id;Size width;Size height;PaintFn paint||hf2c318f0b609f7226e807d7cf7e4edada63dc45f85bb57025ad7567a006824a0", "signature": "CanvasResult Canvas(UiText id, Size width, Size height, PaintFn paint)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "width", "type": "Size" }, { "name": "height", "type": "Size" }, { "name": "paint", "type": "PaintFn" }], "summary": "Reserves a box of the given size and lets you paint it." }, { "name": "Clip", "kind": "method", "id": "method|Clip|0|0|ClipScope|RectF r||h81bb7c5dd19720d5aa2ee17f5cb20e0238b08db45d6d0cb5700d16ce531ec5f2", "signature": "ClipScope Clip(RectF r)", "parameters": [{ "name": "r", "type": "RectF" }], "summary": "Clips subsequent drawing to a rectangle, closing the clip on dispose." }, { "name": "CodeEditor", "kind": "extension", "id": "extension|CodeEditor|0|0|CodeEditorResult|UiText id;ref string buf;int cap;CodeEditorOpts o = default||h3f99c4340c4ea2a0ae4ecc840716120045f85d30ea53f0aebe7ab1be2c09aa9a", "signature": "CodeEditorResult CodeEditor(UiText id, ref string buf, int cap, CodeEditorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }, { "name": "o", "type": "CodeEditorOpts", "default": "default" }], "summary": "cui_code_editor_ex" }, { "name": "ColorOf", "kind": "method", "id": "method|ColorOf|0|0|Color|Color color||h980f9c13c6409b9b666e72b6641e22a816c4a7d68a80eb109a44bc201bceceb0", "signature": "Color ColorOf(Color color)", "parameters": [{ "name": "color", "type": "Color" }], "summary": "Resolves a semantic token to its channels; other colors come back unchanged." }, { "name": "TokenColor", "kind": "method", "id": "method|TokenColor|0|0|Color|Token token||h0916cfc8affaa4db1788c2edd8ac85f518f146b3b691ef4d7181b7ad8ccac2fe", "signature": "Color TokenColor(Token token)", "parameters": [{ "name": "token", "type": "Token" }], "summary": "The channels a theme token resolves to this frame." }, { "name": "Comment", "kind": "extension", "id": "extension|Comment|0|0|CommentEvents|UiText id;UiText author;UiText text;ref int likes;ref bool liked;CommentOpts o = default||hd58eadbf1b4e2807aa889ed3f4c70606227f61711c62110ec27aebc46c70512c", "signature": "CommentEvents Comment(UiText id, UiText author, UiText text, ref int likes, ref bool liked, CommentOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "author", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "likes", "type": "ref int" }, { "name": "liked", "type": "ref bool" }, { "name": "o", "type": "CommentOpts", "default": "default" }], "summary": "cui_comment_ex" }, { "name": "CommitGraph", "kind": "extension", "id": "extension|CommitGraph|0|0|CommitGraphResult|UiText id;ReadOnlySpan\u003CCommit\u003E commits;ref int selected;CommitGraphOpts o = default||h8d094156c694b6c409f8abe92f01e016c9b138a44ea76b0770f70f4fd34781c7", "signature": "CommitGraphResult CommitGraph(UiText id, ReadOnlySpan\u003CCommit\u003E commits, ref int selected, CommitGraphOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "commits", "type": "ReadOnlySpan\u003CCommit\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "CommitGraphOpts", "default": "default" }], "summary": "Version history: the branch lanes drawn beside each commit, newest first, with its message, branch and tag names, author, date and short hash. Each commit names its parents by row (parents come later in the array), so merges and branches draw as lines between lanes. Only the rows in view are built. Up and Down move the selection; Enter or a double-click activates." }, { "name": "ChatComposer", "kind": "extension", "id": "extension|ChatComposer|0|0|ComposerEvents|UiText id;ref string buf;int cap;ref int removed;ref int model;ComposerOpts o = default||ha61bd40b4efb8355a255edc7d36d348178993536309ab1ee4c6c9a381fd22431", "signature": "ComposerEvents ChatComposer(UiText id, ref string buf, int cap, ref int removed, ref int model, ComposerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }, { "name": "removed", "type": "ref int" }, { "name": "model", "type": "ref int" }, { "name": "o", "type": "ComposerOpts", "default": "default" }], "summary": "cui_chat_composer_ex" }, { "name": "Coverage", "kind": "extension", "id": "extension|Coverage|0|0|CoverageResult|UiText id;ReadOnlySpan\u003CCoverageFile\u003E files;CoverageOpts o = default||h71a24310abd0377c27ded9130e91e48dc3e91a798d1a79f3563a30b446fe6a95", "signature": "CoverageResult Coverage(UiText id, ReadOnlySpan\u003CCoverageFile\u003E files, CoverageOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "files", "type": "ReadOnlySpan\u003CCoverageFile\u003E" }, { "name": "o", "type": "CoverageOpts", "default": "default" }], "summary": "Test coverage by folder and file: the files\u0027 paths make the tree, each folder sums up what it holds, and folders fold. Line coverage shows as a bar colored by thresholds, with branches and functions beside it. Click a column\u0027s title to sort. Enter or a double-click activates a file. Narrow panels show lines only." }, { "name": "Cursor", "kind": "property", "id": "property|Cursor|0|0|Cursor||get;|hc22a16db67c85c2843d2f88cc8ab464d28c155381bf1d1998e9fc4743eb42043", "signature": "Cursor Cursor { get; }", "summary": "The cursor the UI asked for last frame, for a backend that draws its own." }, { "name": "CurveEditor", "kind": "extension", "id": "extension|CurveEditor|0|0|CurveResult|UiText id;Span\u003CCurveKey\u003E keys;ref int count;ref int selected;CurveOpts o = default||h39773d299469a65f6696e9dc3fbe9375a8f18a602c2b96d77d1eee0c01377f62", "signature": "CurveResult CurveEditor(UiText id, Span\u003CCurveKey\u003E keys, ref int count, ref int selected, CurveOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "keys", "type": "Span\u003CCurveKey\u003E" }, { "name": "count", "type": "ref int" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "CurveOpts", "default": "default" }], "summary": "cui_curve_editor_ex" }, { "name": "DiffView", "kind": "extension", "id": "extension|DiffView|0|0|DiffResult|UiText id;UiText oldText;UiText newText;ref int current;DiffOpts o = default||h1928b65f5fa6dc715c0e20351e64a90a55ca9b8fd792c4a9a6e3df7545ba072a", "signature": "DiffResult DiffView(UiText id, UiText oldText, UiText newText, ref int current, DiffOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "oldText", "type": "UiText" }, { "name": "newText", "type": "UiText" }, { "name": "current", "type": "ref int" }, { "name": "o", "type": "DiffOpts", "default": "default" }], "summary": "cui_diff_view_ex" }, { "name": "Disabled", "kind": "method", "id": "method|Disabled|0|0|DisabledScope|bool disabled||h3a515a3de1d8d0205d97aef4118bf5ab6c5af12e051d859d3b8cabae81fb9db1", "signature": "DisabledScope Disabled(bool disabled)", "parameters": [{ "name": "disabled", "type": "bool" }], "summary": "Opens a disabled gate that using closes." }, { "name": "Disabled", "kind": "method", "id": "method|Disabled|0|0|DisabledScope|bool disabled;DrawFn body||hcc29e71513d0c4970a98faee97bed37a754ecae1da31ed37b95a7e3588c336d9", "signature": "DisabledScope Disabled(bool disabled, DrawFn body)", "parameters": [{ "name": "disabled", "type": "bool" }, { "name": "body", "type": "DrawFn" }], "summary": "Draws body with every control inside it disabled: it still lays out and paints, but clicks, keys and hover do nothing." }, { "name": "DocTabs", "kind": "extension", "id": "extension|DocTabs|0|0|DocTabsResult|UiText id;ReadOnlySpan\u003CDocTab\u003E tabs;ref int selected;DocTabsOpts o = default||hdb202a4c9e42fa362479fb5e674bee39fa9949e204316f94f4197f0a54fe4c83", "signature": "DocTabsResult DocTabs(UiText id, ReadOnlySpan\u003CDocTab\u003E tabs, ref int selected, DocTabsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tabs", "type": "ReadOnlySpan\u003CDocTab\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "DocTabsOpts", "default": "default" }], "summary": "Document tabs: editor style tabs. Clicking selects (*selected is updated), the x or a middle click asks to close, dragging reorders, and the strip scrolls sideways when the tabs do not fit. A dirty tab shows a dot that turns into the close button under the pointer. The selected tab is filled with the surface color so it joins the content below; the strip itself has no fill, like the other bars. Tabs keep their state by title, so give two tabs with the same name a key: \u0022main.c##src\u0022. The component never removes or moves your tabs itself: it reports a close or a move in the result and you apply it (selection already follows a move). With keyboard focus on the strip, Left and Right select, Home and End jump, Shift\u002BLeft/Right move the tab and Delete closes it. With \u0060shortcuts\u0060 set it also answers Ctrl\u002BTab, Ctrl\u002BShift\u002BTab, Ctrl\u002BPageUp/Down and Ctrl\u002BW (Cmd\u002BW on macOS) from anywhere in the window." }, { "name": "DotChart", "kind": "method", "id": "method|DotChart|0|0|DotChartResult|UiText id;ReadOnlySpan\u003CDotSeries\u003E series;int count;DotChartOpts o = default||h83e83d00645373641fe3f26a3fedf035305cc683a48a4802e1ebb7d5c572f881", "signature": "DotChartResult DotChart(UiText id, ReadOnlySpan\u003CDotSeries\u003E series, int count, DotChartOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "ReadOnlySpan\u003CDotSeries\u003E" }, { "name": "count", "type": "int" }, { "name": "o", "type": "DotChartOpts", "default": "default" }], "summary": "A dot-matrix chart: values as a grid of dots, lit up to each column\u0027s value. Several series stack in their own bands, and the pointer or the arrow keys show a readout of the value under it. Returns where a click landed, so an app can add something there." }, { "name": "EventTrack", "kind": "extension", "id": "extension|EventTrack|0|0|EventTrackResult|UiText id;Span\u003Cdouble\u003E times;ref int count;double min;double max;ref int selected;EventTrackOpts o = default||h552c584d56c0bad07e42547a610e3888e7ecda2c1a64bab104fa79448d19086c", "signature": "EventTrackResult EventTrack(UiText id, Span\u003Cdouble\u003E times, ref int count, double min, double max, ref int selected, EventTrackOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "times", "type": "Span\u003Cdouble\u003E" }, { "name": "count", "type": "ref int" }, { "name": "min", "type": "double" }, { "name": "max", "type": "double" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "EventTrackOpts", "default": "default" }], "summary": "Event track: moments on a time axis, as dots you drag along it. A click on an empty spot adds an event there and a double-click on one removes it. You own the array: the track keeps it sorted, edits it in place and never grows it past \u0060capacity\u0060." }, { "name": "FeatureFlags", "kind": "extension", "id": "extension|FeatureFlags|0|0|FeatureFlagsResult|UiText id;Span\u003CFeatureFlag\u003E flags;ReadOnlySpan\u003Cstring\u003E envs;FeatureFlagsOpts o = default||h1c2c043a1a911bf524b328f35cfa7f2ee4862adfb16f1b0cbd98cf1077245b34", "signature": "FeatureFlagsResult FeatureFlags(UiText id, Span\u003CFeatureFlag\u003E flags, ReadOnlySpan\u003Cstring\u003E envs, FeatureFlagsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "flags", "type": "Span\u003CFeatureFlag\u003E" }, { "name": "envs", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "o", "type": "FeatureFlagsOpts", "default": "default" }], "summary": "cui_feature_flags_ex" }, { "name": "FileBrowser", "kind": "extension", "id": "extension|FileBrowser|0|0|FileBrowserResult|UiText id;ref string path;int pathCap = 1024;FileBrowserOpts o = default||hdcc3319728f0b23560a33e9d8c875e4b5389d816f8e66b4e3630e917284e3bf8", "signature": "FileBrowserResult FileBrowser(UiText id, ref string path, int pathCap = 1024, FileBrowserOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "path", "type": "ref string" }, { "name": "pathCap", "type": "int", "default": "1024" }, { "name": "o", "type": "FileBrowserOpts", "default": "default" }], "summary": "path: the folder shown, yours; the browser writes it as you move around." }, { "name": "FlameGraph", "kind": "extension", "id": "extension|FlameGraph|0|0|FlameResult|UiText id;ReadOnlySpan\u003CFlameSpan\u003E spans;ref FlameView view;ref int selected;FlameOpts o = default||h825a9e17f3b7381f2b9b6b4244a8edbabda629701c297e3c877a4e13fc43e98c", "signature": "FlameResult FlameGraph(UiText id, ReadOnlySpan\u003CFlameSpan\u003E spans, ref FlameView view, ref int selected, FlameOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "spans", "type": "ReadOnlySpan\u003CFlameSpan\u003E" }, { "name": "view", "type": "ref FlameView" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "FlameOpts", "default": "default" }], "summary": "selected: index into spans, -1 for none (may be NULL)." }, { "name": "LoadFont", "kind": "extension", "id": "extension|LoadFont|0|0|Font|ReadOnlySpan\u003Cbyte\u003E data;bool copy = true||h73d65ad67f9acdd48823d96c747c086a24a1625658056e8af856a3bd4d554241", "signature": "Font LoadFont(ReadOnlySpan\u003Cbyte\u003E data, bool copy = true)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "data", "type": "ReadOnlySpan\u003Cbyte\u003E" }, { "name": "copy", "type": "bool", "default": "true" }], "summary": "Loads a font from memory and returns a handle for SetFont." }, { "name": "LoadFont", "kind": "extension", "id": "extension|LoadFont|0|0|Font|UiText path||h5faed851de772ad862622c3312f2aeae3c81ef7915ae305e81bb638cf9b3b107", "signature": "Font LoadFont(UiText path)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "path", "type": "UiText" }], "summary": "Loads a font file (TTF/OTF) and returns a handle for SetFont." }, { "name": "UseSystemFontFallback", "kind": "extension", "id": "extension|UseSystemFontFallback|0|0|Font|string sample||h718698d4ba3dba692a0bf04e8e6729a2aae4ac8563689108bb00fdf124984df6", "signature": "Font UseSystemFontFallback(string sample)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "sample", "type": "string" }], "summary": "Finds a face on this machine that can draw sample and registers it as a fallback for the app\u0027s roles, so a UI in a script the bundled faces do not cover renders instead of going blank." }, { "name": "GradientEditor", "kind": "extension", "id": "extension|GradientEditor|0|0|GradientResult|UiText id;Span\u003CGradientStop\u003E stops;ref int count;ref int selected;GradientOpts o = default||h840bbab777b2202298d9b5a0d6519bc52d291ff2a13de0a26b88f92a8379b841", "signature": "GradientResult GradientEditor(UiText id, Span\u003CGradientStop\u003E stops, ref int count, ref int selected, GradientOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "stops", "type": "Span\u003CGradientStop\u003E" }, { "name": "count", "type": "ref int" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "GradientOpts", "default": "default" }], "summary": "cui_gradient_editor_ex" }, { "name": "GraphView", "kind": "extension", "id": "extension|GraphView|0|0|GraphResult|UiText id;ReadOnlySpan\u003CGraphNode\u003E nodes;ReadOnlySpan\u003CGraphEdge\u003E edges;ref int selected;GraphOpts o = default||hbce489b5fa6d64979be674221b7ae61e945b26d0224773080270c2c7dfd8b3bc", "signature": "GraphResult GraphView(UiText id, ReadOnlySpan\u003CGraphNode\u003E nodes, ReadOnlySpan\u003CGraphEdge\u003E edges, ref int selected, GraphOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "nodes", "type": "ReadOnlySpan\u003CGraphNode\u003E" }, { "name": "edges", "type": "ReadOnlySpan\u003CGraphEdge\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "GraphOpts", "default": "default" }], "summary": "Nodes and directed edges laid out in layers (each edge points to a later layer, cycles are broken), for build targets, packages, services or call graphs. The layout is computed when the graph changes. Wheel zooms, drag pans, click selects; hovering a node lights up what it depends on and what depends on it. F fits the graph." }, { "name": "DataGrid", "kind": "extension", "id": "extension|DataGrid|0|0|GridScope|UiText id;ReadOnlySpan\u003CGridColumn\u003E columns;int rowCount;GridState state;GridOpts o = default||hae20817285aa5f5ee430918dd512e707df8a0306e32777f0e13839f607262829", "signature": "GridScope DataGrid(UiText id, ReadOnlySpan\u003CGridColumn\u003E columns, int rowCount, GridState state, GridOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CGridColumn\u003E" }, { "name": "rowCount", "type": "int" }, { "name": "state", "type": "GridState" }, { "name": "o", "type": "GridOpts", "default": "default" }], "summary": "Opens a virtualized grid; draw rows in [state.First, state.Last)." }, { "name": "HexView", "kind": "extension", "id": "extension|HexView|0|0|HexResult|UiText id;Span\u003Cbyte\u003E bytes;ref HexSelection selection;HexViewOpts o = default||hb82ecf6f9d8a58d5c2bce7702bd188c8bb502de7a2d696f1a0af827be5fa22d9", "signature": "HexResult HexView(UiText id, Span\u003Cbyte\u003E bytes, ref HexSelection selection, HexViewOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "bytes", "type": "Span\u003Cbyte\u003E" }, { "name": "selection", "type": "ref HexSelection" }, { "name": "o", "type": "HexViewOpts", "default": "default" }], "summary": "Draws bytes and lets the user overwrite them in place." }, { "name": "Id", "kind": "method", "id": "method|Id|0|0|IdScope|UiText id||hf913a0d346bf51d9f7a0e55299041c30e8aa0eeb2f93eadbe20cad0c4ae3879b", "signature": "IdScope Id(UiText id)", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "Pushes a string id for the widgets drawn inside the scope. It is also their automation id: using (ui.Id(\u0022row:42\u0022)) ui.Button(\u0022Delete\u0022) makes id:row:42 find that button." }, { "name": "Id", "kind": "method", "id": "method|Id|0|0|IdScope|int key||h3b4b6991acded6793bc66a091956c19c02661da15fabdf72db107273b8ed3d1b", "signature": "IdScope Id(int key)", "parameters": [{ "name": "key", "type": "int" }], "summary": "Pushes an integer id, typically a row or item index; it is the automation id too." }, { "name": "Input", "kind": "method", "id": "method|Input|0|0|InputResult|UiText id;ref string value;InputOpts o = default||he495e19d9d5cb23d03e35f0f55ea0ebafd853d7386ae9e4989697b39cec38980", "signature": "InputResult Input(UiText id, ref string value, InputOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "o", "type": "InputOpts", "default": "default" }], "summary": "A single-line text field. Assign the string; CUI edits it in place and the new value comes back through value on the frames it changed." }, { "name": "Search", "kind": "method", "id": "method|Search|0|0|InputResult|UiText id;ref string value;InputOpts o = default||h11bb746b263541b15457e9933eac6e37a6cdfac44547449d0d7375a7431b87da", "signature": "InputResult Search(UiText id, ref string value, InputOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "o", "type": "InputOpts", "default": "default" }], "summary": "A search field. See Input." }, { "name": "TextArea", "kind": "method", "id": "method|TextArea|0|0|InputResult|UiText id;ref string value;InputOpts o = default||ha0535c062baff5583884fcf6394397476e4b2a40ee79b643e731e601e2daad5c", "signature": "InputResult TextArea(UiText id, ref string value, InputOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "o", "type": "InputOpts", "default": "default" }], "summary": "A multi-line text field. See Input." }, { "name": "Keyed", "kind": "method", "id": "method|Keyed|0|1|KeyedScope\u003CT\u003E|T[] items;KeyFn\u003CT\u003E key||h3645b3dae05812e37fd01340a5693892b688bf1436826030f83bf34e5dca43f8", "signature": "KeyedScope\u003CT\u003E Keyed\u003CT\u003E(T[] items, KeyFn\u003CT\u003E key)", "parameters": [{ "name": "items", "type": "T[]" }, { "name": "key", "type": "KeyFn\u003CT\u003E" }], "summary": "Enumerates items, each inside its own id scope derived from key." }, { "name": "Keymap", "kind": "extension", "id": "extension|Keymap|0|0|KeymapResult|UiText id;ReadOnlySpan\u003CKeymapBinding\u003E bindings;ref Mods mods;KeymapOpts o = default||h986c8ea2572b42d56814a32427ed89b00db2a4a2ff3ba6c7a4711a66da3c0bae", "signature": "KeymapResult Keymap(UiText id, ReadOnlySpan\u003CKeymapBinding\u003E bindings, ref Mods mods, KeymapOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "bindings", "type": "ReadOnlySpan\u003CKeymapBinding\u003E" }, { "name": "mods", "type": "ref Mods" }, { "name": "o", "type": "KeymapOpts", "default": "default" }], "summary": "A keyboard with your shortcuts on it: each bound key shows its action and the color of its category, for the modifiers chosen above it. Keys bound twice are marked as conflicts. Hover a key for every binding on it; click it to get the key (to rebind it). The keyboard keeps its own layout in a right-to-left interface and scales to the width it gets." }, { "name": "Box", "kind": "extension", "id": "extension|Box|0|0|LayoutScope|Box o = default||haec5c052acbeeaca94cb5a10a37f80e98abc85d069b6fa9aec58cf20715c0a06", "signature": "LayoutScope Box(Box o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Box", "default": "default" }], "summary": "cui_box_begin" }, { "name": "ButtonGroup", "kind": "extension", "id": "extension|ButtonGroup|0|0|LayoutScope|||h8a2a0872d3ba1595bf0e1d9ad5860dfa36735b0ac74178a57cc8157b6493d6d4", "signature": "LayoutScope ButtonGroup()", "extensionOn": "CuiSharp.Ui", "summary": "Connected buttons. Put buttons between begin and end." }, { "name": "Card", "kind": "extension", "id": "extension|Card|0|0|LayoutScope|Card o = default||hb8d0387f360f71c39f098c9de712bb4aa0eb22a25fffee4615049459c0cc224e", "signature": "LayoutScope Card(Card o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Card", "default": "default" }], "summary": "returns true when clicked (hoverable)" }, { "name": "Card", "kind": "extension", "id": "extension|Card|0|0|LayoutScope|Card o;out bool clicked||he64474f809036667bb19ed0028db705f58a61d124f67b6520b26f73775ae32e5", "signature": "LayoutScope Card(Card o, out bool clicked)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Card" }, { "name": "clicked", "type": "out bool" }], "summary": "Always opens the container; clicked reports its interaction result." }, { "name": "CardStackItem", "kind": "extension", "id": "extension|CardStackItem|0|0|LayoutScope|int depth||h6f29f3239b665449b7d0d9b4e5177cb4099b541e3423fcb9d1a9b14fb1f686d0", "signature": "LayoutScope CardStackItem(int depth)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "depth", "type": "int" }], "summary": "cui_card_stack_item_begin" }, { "name": "CarouselSlide", "kind": "extension", "id": "extension|CarouselSlide|0|0|LayoutScope|||h9755b016a070064271f7e45738238254443cdfcb4d22aca524774095031595ec", "signature": "LayoutScope CarouselSlide()", "extensionOn": "CuiSharp.Ui", "summary": "cui_carousel_slide_begin" }, { "name": "Column", "kind": "extension", "id": "extension|Column|0|0|LayoutScope|Box o = default||h78447c50c087189e1c45a5984115c6b2709affec511cf6ab6521254dd0406549", "signature": "LayoutScope Column(Box o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Box", "default": "default" }], "summary": "cui_column_begin" }, { "name": "DialogFooter", "kind": "extension", "id": "extension|DialogFooter|0|0|LayoutScope|||hea62c5e329105c7d787894e1fbdbbd9b079d2910e82c4be61263045ff18c81f3", "signature": "LayoutScope DialogFooter()", "extensionOn": "CuiSharp.Ui", "summary": "A right-aligned row for dialog actions." }, { "name": "Dock", "kind": "extension", "id": "extension|Dock|0|0|LayoutScope|UiText id;DockOpts o = default||ha8052963c653afff4ec2b3304515265b67454d94f44ee3c01d076c1e27148816", "signature": "LayoutScope Dock(UiText id, DockOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "DockOpts", "default": "default" }], "summary": "Dock: a row of icons that grow as the pointer passes, with labels and a dot under the running ones. Each item returns true when clicked." }, { "name": "Dockspace", "kind": "extension", "id": "extension|Dockspace|0|0|LayoutScope|UiText id;DockspaceOpts o = default||hd8cabbad4df58a75fbb1e93299868d95ae7671ca676e01478b8c6067ace5a82d", "signature": "LayoutScope Dockspace(UiText id, DockspaceOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "DockspaceOpts", "default": "default" }], "summary": "Dockspace: an IDE style workspace that lays out your panels in a tree of resizable splits whose leaves hold one or more panels as document tabs. Submit every panel each frame between cui_dockspace_begin and cui_dockspace_end; the dockspace decides where it goes, and a panel\u0027s content is built only while its tab is the one showing:" }, { "name": "KanbanCard", "kind": "extension", "id": "extension|KanbanCard|0|0|LayoutScope|int cardId||h04d36b815b7f14d7d624e0b56c06560e052f6458aecd5cd68f485e0c8dc64b11", "signature": "LayoutScope KanbanCard(int cardId)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "cardId", "type": "int" }], "summary": "true when clicked" }, { "name": "KanbanCard", "kind": "extension", "id": "extension|KanbanCard|0|0|LayoutScope|int cardId;out bool clicked||h0ef9ec0801ab926804d1119b9bc9dc886afc490850829ed33cad336f7ee94f50", "signature": "LayoutScope KanbanCard(int cardId, out bool clicked)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "cardId", "type": "int" }, { "name": "clicked", "type": "out bool" }], "summary": "Always opens the container; clicked reports its interaction result." }, { "name": "KanbanColumn", "kind": "extension", "id": "extension|KanbanColumn|0|0|LayoutScope|UiText title;int cardCount;KanbanColumnOpts o = default||hd3dcefdc81fb36dfee31edd1754914e0453a4c7e0b1bb4c4b2b20b542eb8adaa", "signature": "LayoutScope KanbanColumn(UiText title, int cardCount, KanbanColumnOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "cardCount", "type": "int" }, { "name": "o", "type": "KanbanColumnOpts", "default": "default" }], "summary": "true: \u0022\u002B\u0022 clicked" }, { "name": "KanbanColumn", "kind": "extension", "id": "extension|KanbanColumn|0|0|LayoutScope|UiText title;int cardCount;KanbanColumnOpts o;out bool clicked||h7c9ca66f79f064c49eed8f4544d8fea1ed3304dc45d84e5ec067d319ed4ea113", "signature": "LayoutScope KanbanColumn(UiText title, int cardCount, KanbanColumnOpts o, out bool clicked)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "cardCount", "type": "int" }, { "name": "o", "type": "KanbanColumnOpts" }, { "name": "clicked", "type": "out bool" }], "summary": "Always opens the container; clicked reports its interaction result." }, { "name": "MenuBar", "kind": "extension", "id": "extension|MenuBar|0|0|LayoutScope|UiText id;MenuBarOpts o = default||h29b57cc387904e3c1d3083b170ceaa309e6bc4a2535b4c27f22ecd482570e152", "signature": "LayoutScope MenuBar(UiText id, MenuBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "MenuBarOpts", "default": "default" }], "summary": "Menu bar: File / Edit / View along the top of a window. Each menu holds the usual menu items (cui_menu_item, cui_menu_separator, cui_menu_label). Once a menu is open, hovering another one switches to it. Alt (on its own) or F10 focuses the bar; arrows move between menus and items, Enter chooses, Esc steps back. Alt \u002B a menu\u0027s mnemonic letter opens it (the first letter of its label unless \u0060mnemonic\u0060 says otherwise)." }, { "name": "NodeContent", "kind": "extension", "id": "extension|NodeContent|0|0|LayoutScope|||h6a09d812c8b6d9c4a4f2fc6aedc000b977da707334c08c94ee4e6dd62573dd59", "signature": "LayoutScope NodeContent()", "extensionOn": "CuiSharp.Ui", "summary": "A row for ordinary components. They are laid out at 100% and scaled with the view, so their text is sharpest at 100% zoom and below." }, { "name": "ReorderItem", "kind": "method", "id": "method|ReorderItem|0|0|LayoutScope|int position||h407076f847f4d4f606b87a109b5a505ca525179c0bff6726382889745d33f038", "signature": "LayoutScope ReorderItem(int position)", "parameters": [{ "name": "position", "type": "int" }] }, { "name": "Row", "kind": "extension", "id": "extension|Row|0|0|LayoutScope|Box o = default||ha02204054f3ea32388e8e24fc8038f253dd0b3504b0e01b650d69265773cb67e", "signature": "LayoutScope Row(Box o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "Box", "default": "default" }], "summary": "cui_row_begin" }, { "name": "Scroll", "kind": "extension", "id": "extension|Scroll|0|0|LayoutScope|ScrollOpts o = default||h7aa8eed4bb32b5efc54efbe5c6c7c19215ddf1d8ffed8dfc60e0c8d5234bc6f7", "signature": "LayoutScope Scroll(ScrollOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "ScrollOpts", "default": "default" }], "summary": "Scroll area with smooth scrolling and overlay scrollbars." }, { "name": "Split", "kind": "extension", "id": "extension|Split|0|0|LayoutScope|UiText id;ref float ratio;SplitOpts o = default||h83e75ece850ab88dc38fde4b7d1d8ae789128ab387c95d8025b6302e8f59269f", "signature": "LayoutScope Split(UiText id, ref float ratio, SplitOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "ratio", "type": "ref float" }, { "name": "o", "type": "SplitOpts", "default": "default" }], "summary": "Resizable split view: two panes with a draggable divider. \u0060ratio\u0060 is the size of the first pane in 0..1. Call cui_split_next between the panes." }, { "name": "Spotlight", "kind": "extension", "id": "extension|Spotlight|0|0|LayoutScope|UiText id;SpotlightOpts o = default||hfb70f807d4c0a2d5450e1ff296551adc78a8733ed06c6b0cb9ed7427add12f16", "signature": "LayoutScope Spotlight(UiText id, SpotlightOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "SpotlightOpts", "default": "default" }], "summary": "Spotlight card: a soft light follows the pointer across the card and lights the nearest stretch of its border. beam sends a light around the edge." }, { "name": "StatusBar", "kind": "extension", "id": "extension|StatusBar|0|0|LayoutScope|UiText id;StatusBarOpts o = default||h394ecf13ba82c0abd4bdf1a5b7cb5fce6102392c5a87cea283bc38fd2213e96a", "signature": "LayoutScope StatusBar(UiText id, StatusBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "StatusBarOpts", "default": "default" }], "summary": "Status bar: a thin bar along the bottom of a window, with a hairline on top and no fill of its own (put it in a box with the background you want). Items go left to right; cui_status_bar_spacer sends the rest to the right edge." }, { "name": "Toolbar", "kind": "extension", "id": "extension|Toolbar|0|0|LayoutScope|UiText id;ToolbarOpts o = default||hc5826ec43e3d8bf178cfa9f1605bd29bded229aae82424077aa18e1ae7e9cc61", "signature": "LayoutScope Toolbar(UiText id, ToolbarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "ToolbarOpts", "default": "default" }], "summary": "Toolbar: a row of compact icon buttons, toggles, separators and small text buttons. Icon only buttons show their tooltip as their name. Items that do not fit collapse, from the end, into a \u0022more\u0022 menu; an item chosen there returns true on the next frame." }, { "name": "VirtualList", "kind": "extension", "id": "extension|VirtualList|0|0|LayoutScope|UiText id;int count;float rowHeight;Size height;out int first;out int last||h90165d4490987ebd4d90276d5b449695a1f58d89f212149090827bfd08a055f2", "signature": "LayoutScope VirtualList(UiText id, int count, float rowHeight, Size height, out int first, out int last)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "count", "type": "int" }, { "name": "rowHeight", "type": "float" }, { "name": "height", "type": "Size" }, { "name": "first", "type": "out int" }, { "name": "last", "type": "out int" }], "summary": "Virtual list: only the visible rows are built, so lists with a million rows stay fast. Fills first/last with the visible range." }, { "name": "Localization", "kind": "property", "id": "property|Localization|0|0|Localization?||get;|h0a921bf7a95ff40f095f5e7f43cc6d636b74f025ae427be1edbd250e93f88e54", "signature": "Localization? Localization { get; }", "summary": "The table this surface published, or null for English." }, { "name": "Markdown", "kind": "extension", "id": "extension|Markdown|0|0|MarkdownResult|UiText id;UiText text;MarkdownOpts o = default||h61fdb7c6fb770f95ff734bbdf7b607bad9e23af8b25df034da34f408eed536fa", "signature": "MarkdownResult Markdown(UiText id, UiText text, MarkdownOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "MarkdownOpts", "default": "default" }], "summary": "Markdown view: renders your markdown text (UTF-8) as native content, every frame, without keeping a copy:" }, { "name": "Modifiers", "kind": "property", "id": "property|Modifiers|0|0|Mods||get;|h994504ae5710377741956558b3dae0b4e2fc318f73c5408e701c6675295af911", "signature": "Mods Modifiers { get; }", "summary": "The modifier keys held right now." }, { "name": "MonthCalendar", "kind": "extension", "id": "extension|MonthCalendar|0|0|MonthResult|UiText id;ref Date month;ReadOnlySpan\u003CMonthEvent\u003E events;ref Date selected;MonthOpts o = default||hacb7fb0b706addd9098a1569df3adbf8cff5b20d3b0bf01f49970bd839da7523", "signature": "MonthResult MonthCalendar(UiText id, ref Date month, ReadOnlySpan\u003CMonthEvent\u003E events, ref Date selected, MonthOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "month", "type": "ref Date" }, { "name": "events", "type": "ReadOnlySpan\u003CMonthEvent\u003E" }, { "name": "selected", "type": "ref Date" }, { "name": "o", "type": "MonthOpts", "default": "default" }], "summary": "Month calendar: a month grid with events. All-day and multi-day events are bars across the days they cover; timed events are a dot, a time and a title. A day with more than fits says \u0022\u002BN more\u0022 and opens a list of them. On a narrow screen the cells show colored dots and the selected day\u0027s events are listed under the grid." }, { "name": "Accordion", "kind": "extension", "id": "extension|Accordion|0|0|OpenScope|UiText title;ref bool open||h485829d02ee323bfa485f05285d6b19d78dcf02ed0a36c9ca4b1da7e70f540e5", "signature": "OpenScope Accordion(UiText title, ref bool open)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }], "summary": "Accordion / disclosure. Content animates its height." }, { "name": "Carousel", "kind": "extension", "id": "extension|Carousel|0|0|OpenScope|UiText id;int count;ref int index;CarouselOpts o = default||hbcf0bd0059da4b82e6417513dac4646a1ad558c1f46fc3c55b233c3367ef0a4e", "signature": "OpenScope Carousel(UiText id, int count, ref int index, CarouselOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "count", "type": "int" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "CarouselOpts", "default": "default" }], "summary": "Carousel: slides that you swipe, drag, scroll or page with the arrows and dots. Build every slide between begin and end: cui_carousel(ui, \u0022tour\u0022, 4, \u0026index, .height = 220) { for (int k = 0; k \u003C 4; k\u002B\u002B) cui_carousel_slide(ui) { ... } }" }, { "name": "ContextMenu", "kind": "extension", "id": "extension|ContextMenu|0|0|OpenScope|UiText id||hb5be2e863b82aa032d3281886a07b75e6a10932b22c9c06daa36e6ec8460b9c3", "signature": "OpenScope ContextMenu(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "Context menu: opens on right click over the previous component." }, { "name": "Dialog", "kind": "extension", "id": "extension|Dialog|0|0|OpenScope|UiText title;ref bool open;DialogOpts o = default||h08e9cf3a4bf5178fc47947da0ad76b53486c74b4ebd9c7e92e078d4cb3653668", "signature": "OpenScope Dialog(UiText title, ref bool open, DialogOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "DialogOpts", "default": "default" }], "summary": "Modal dialog. Shown while *open is true; closing sets it to false." }, { "name": "DockPanel", "kind": "extension", "id": "extension|DockPanel|0|0|OpenScope|UiText title;ref bool open;DockPanelOpts o = default||h983b85f4b88defb64e03c80c7fd67832cccc8b15fa3b11e9e9c8954cdd239b75", "signature": "OpenScope DockPanel(UiText title, ref bool open, DockPanelOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "DockPanelOpts", "default": "default" }], "summary": "Returns true while the panel\u0027s content should be built; then call cui_dock_panel_end." }, { "name": "ExpandableCard", "kind": "extension", "id": "extension|ExpandableCard|0|0|OpenScope|UiText title;ref bool open;ExpandableCardOpts o = default||h19637d079a2ee9821dfa4b6223ecf9694471f6157ed61e0139e207c045d56878", "signature": "OpenScope ExpandableCard(UiText title, ref bool open, ExpandableCardOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "ExpandableCardOpts", "default": "default" }], "summary": "Expandable card: a card whose header opens a body with a height spring." }, { "name": "HoverCard", "kind": "extension", "id": "extension|HoverCard|0|0|OpenScope|UiText id;HoverCardOpts o = default||hd31fbafd01c517229f3a54d9fbeed478689533294a82e16da99cb56ed4b82d37", "signature": "OpenScope HoverCard(UiText id, HoverCardOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "HoverCardOpts", "default": "default" }], "summary": "Hover card: rich content that appears when the pointer rests on the previous component, and stays while the pointer is over either." }, { "name": "Inspector", "kind": "extension", "id": "extension|Inspector|0|0|OpenScope|UiText id;InspectorOpts o = default||hdb3db7ec75e95846d7b987536583618b0b9445c2deb40a5f16828b5d2d735020", "signature": "OpenScope Inspector(UiText id, InspectorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "InspectorOpts", "default": "default" }], "summary": "Property inspector: labelled rows in folding groups, a label column on the left (drag the line between the columns to resize it) and an editor on the right. Every row returns true when its value changed. Groups end at the next group or at cui_inspector_end." }, { "name": "Menu", "kind": "extension", "id": "extension|Menu|0|0|OpenScope|UiText label;MenuOpts o = default||hec1b2b131f19c8f1eb37269016b963aed4449341b367ca89e175c1940294ab63", "signature": "OpenScope Menu(UiText label, MenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "MenuOpts", "default": "default" }], "summary": "Dropdown menu: a button that opens a menu. Items return true when chosen." }, { "name": "MenuBarMenu", "kind": "extension", "id": "extension|MenuBarMenu|0|0|OpenScope|UiText label;MenuBarMenuOpts o = default||h32c463fd3c1d7fa382d82e43f75326d1e14efad5ce907db7337df9ba3480688b", "signature": "OpenScope MenuBarMenu(UiText label, MenuBarMenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "MenuBarMenuOpts", "default": "default" }], "summary": "One menu of the bar. Returns true while its items should be built; call cui_menu_bar_menu_end only then." }, { "name": "Node", "kind": "extension", "id": "extension|Node|0|0|OpenScope|int nodeId;ref float x;ref float y;UiText title;NodeOpts o = default||hb7439d9c37ecca24fb0858272f81826919b789149f2a34acd1e1c44ff3266f62", "signature": "OpenScope Node(int nodeId, ref float x, ref float y, UiText title, NodeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "nodeId", "type": "int" }, { "name": "x", "type": "ref float" }, { "name": "y", "type": "ref float" }, { "name": "title", "type": "UiText" }, { "name": "o", "type": "NodeOpts", "default": "default" }], "summary": "A node at canvas position (*x, *y), updated while it is dragged. Returns true while the node is selected." }, { "name": "NodeEditor", "kind": "extension", "id": "extension|NodeEditor|0|0|OpenScope|UiText id;ref NodeView view;NodeEditorOpts o = default||h4e3c9c7bbaa0ed5b0750957f90a5c6c86f0fbfea8e96d4a8cacd68503ae7ad85", "signature": "OpenScope NodeEditor(UiText id, ref NodeView view, NodeEditorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "view", "type": "ref NodeView" }, { "name": "o", "type": "NodeEditorOpts", "default": "default" }], "summary": "Node editor: nodes with input and output pins on a canvas that pans and zooms, joined by curved links. You own the nodes, pins and links; the editor moves the node positions you pass and reports what the user did:" }, { "name": "PathBarMenu", "kind": "extension", "id": "extension|PathBarMenu|0|0|OpenScope|UiText id;ref int segment||h2aeb15441c53f332d451a287be64ba38ecdb4c05be10ad0f8a2412b04c3ad51a", "signature": "OpenScope PathBarMenu(UiText id, ref int segment)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "segment", "type": "ref int" }], "summary": "True while the menu of separator *segment is showing: build menu items for the children of that segment, then call cui_path_bar_menu_end." }, { "name": "Popover", "kind": "extension", "id": "extension|Popover|0|0|OpenScope|UiText id;PopoverOpts o = default||had5881283c2885b236d342cac799068e3bd7a8c2d4272ceb08bf27aa60e812f7", "signature": "OpenScope Popover(UiText id, PopoverOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "PopoverOpts", "default": "default" }], "summary": "Popover anchored to the previous component. Toggle it with cui_popover_toggle / cui_popover_open." }, { "name": "Reasoning", "kind": "extension", "id": "extension|Reasoning|0|0|OpenScope|UiText id;ReasoningOpts o = default||hd8c6837b660811abb55b30c3bcc35eb42dd2099f40a5a73eb35972aca384d12b", "signature": "OpenScope Reasoning(UiText id, ReasoningOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "ReasoningOpts", "default": "default" }], "summary": "Reasoning: a model\u0027s thinking. While thinking, the header shimmers and counts the seconds; afterwards it reads \u0022Thought for 12s\u0022 and the body folds away. Click the header to open or close it. Put text inside." }, { "name": "Sheet", "kind": "extension", "id": "extension|Sheet|0|0|OpenScope|UiText title;ref bool open;SheetOpts o = default||heb98d14c7c6250a83593cac259a583d17aa8636e9eaa839b64b4b5e3db2551d7", "signature": "OpenScope Sheet(UiText title, ref bool open, SheetOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "SheetOpts", "default": "default" }], "summary": "cui_sheet_begin" }, { "name": "Table", "kind": "extension", "id": "extension|Table|0|0|OpenScope|UiText id;ReadOnlySpan\u003CTableColumn\u003E columns;TableOpts o = default||hfd909896b0ab780a5093f3e917adaa2e23e03121d3b8e920a5305582c66486d0", "signature": "OpenScope Table(UiText id, ReadOnlySpan\u003CTableColumn\u003E columns, TableOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CTableColumn\u003E" }, { "name": "o", "type": "TableOpts", "default": "default" }], "summary": "Same as the overload with ref sort, but reports nothing back: the state pointer is null, so the widget stores no state the caller could read." }, { "name": "Table", "kind": "extension", "id": "extension|Table|0|0|OpenScope|UiText id;ReadOnlySpan\u003CTableColumn\u003E columns;ref TableSort sort;TableOpts o = default||hfda1db8518191e5d1de411deaefeed0d0f8d6838a3a1398abfa10ad4b36ff692", "signature": "OpenScope Table(UiText id, ReadOnlySpan\u003CTableColumn\u003E columns, ref TableSort sort, TableOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CTableColumn\u003E" }, { "name": "sort", "type": "ref TableSort" }, { "name": "o", "type": "TableOpts", "default": "default" }], "summary": "cui_table_begin_ex" }, { "name": "Tree", "kind": "extension", "id": "extension|Tree|0|0|OpenScope|UiText label;ref bool open;TreeOpts o = default||h4406f8e6a4e0d2f04e9468f25ca87def814144056b1780a4e869ea86998fdd10", "signature": "OpenScope Tree(UiText label, ref bool open, TreeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "TreeOpts", "default": "default" }], "summary": "cui_tree_begin" }, { "name": "UserMenu", "kind": "extension", "id": "extension|UserMenu|0|0|OpenScope|UiText name;UserMenuOpts o = default||h5323b7ef69eef4b5689f61a0c79b09355b7d2e1579ced7536bd574838f5eb096", "signature": "OpenScope UserMenu(UiText name, UserMenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "name", "type": "UiText" }, { "name": "o", "type": "UserMenuOpts", "default": "default" }], "summary": "User menu: an avatar, a name and a line of detail that opens a menu of account actions. Put menu items between begin and end." }, { "name": "PathBar", "kind": "extension", "id": "extension|PathBar|0|0|PathBarResult|UiText id;ReadOnlySpan\u003Cstring\u003E segments;PathBarOpts o = default||h5256da01c2004bf6922b836f1b3e9fbc43ed881a67e823c1895ab05f0949dd56", "signature": "PathBarResult PathBar(UiText id, ReadOnlySpan\u003Cstring\u003E segments, PathBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "segments", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "o", "type": "PathBarOpts", "default": "default" }], "summary": "Path bar: a breadcrumb for file and scene paths. Segments are clickable, the last one is the current place. Middle segments that do not fit collapse into a \u0022...\u0022 menu. With .menus, the chevron after segment k opens a menu you fill with the children of segment k (cui_path_bar_menu_begin). Click the empty part (or the current segment), or press Ctrl\u002BL, to type a path: Enter submits it, Esc or clicking away cancels." }, { "name": "Pipeline", "kind": "extension", "id": "extension|Pipeline|0|0|PipelineResult|UiText id;ReadOnlySpan\u003Cstring\u003E stages;ReadOnlySpan\u003CPipelineJob\u003E jobs;ref int selected;PipelineOpts o = default||h57164c455b64addad840b532dee1f4eb3acaba49d3b9d3b92afbab5d775aa6e7", "signature": "PipelineResult Pipeline(UiText id, ReadOnlySpan\u003Cstring\u003E stages, ReadOnlySpan\u003CPipelineJob\u003E jobs, ref int selected, PipelineOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "stages", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "jobs", "type": "ReadOnlySpan\u003CPipelineJob\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "PipelineOpts", "default": "default" }], "summary": "cui_pipeline_ex" }, { "name": "NowPlaying", "kind": "extension", "id": "extension|NowPlaying|0|0|PlayerEvents|UiText id;ref NowPlayingState np;NowPlayingOpts o = default||h9fae980dc34277b737fa803cbecd222d9c0a4c796e96fa70b56eeeefd0df2b25", "signature": "PlayerEvents NowPlaying(UiText id, ref NowPlayingState np, NowPlayingOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "np", "type": "ref NowPlayingState" }, { "name": "o", "type": "NowPlayingOpts", "default": "default" }], "summary": "Now playing card: artwork, title, artist, a scrubber and transport buttons." }, { "name": "Problems", "kind": "extension", "id": "extension|Problems|0|0|ProblemsResult|UiText id;ReadOnlySpan\u003CProblemItem\u003E diags;ProblemsOpts o = default||h6893f9c629255366d4079d33866236777cdcf107644e4109933ef620b8022eed", "signature": "ProblemsResult Problems(UiText id, ReadOnlySpan\u003CProblemItem\u003E diags, ProblemsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "diags", "type": "ReadOnlySpan\u003CProblemItem\u003E" }, { "name": "o", "type": "ProblemsOpts", "default": "default" }], "summary": "cui_problems_ex" }, { "name": "FlameSpanRect", "kind": "extension", "id": "extension|FlameSpanRect|0|0|RectF|uint flame;in FlameSpan span||haa242a01ec7cc85ea2f271378c3c8c334942d3f054714bdc41b27574a4327c82", "signature": "RectF FlameSpanRect(uint flame, in FlameSpan span)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "flame", "type": "uint" }, { "name": "span", "type": "in FlameSpan" }], "summary": "Where a span was drawn in the latest frame, in points (zero size when out of view). flame is the graph\u0027s id: cui_last_id(ui) right after the call." }, { "name": "LastRect", "kind": "property", "id": "property|LastRect|0|0|RectF||get;|ha796a249509c6af4a48352050e2d549bf5de307702a0f97fbc12276bc4b72b7b", "signature": "RectF LastRect { get; }", "summary": "Rectangle of the most recent component." }, { "name": "RectOf", "kind": "method", "id": "method|RectOf|0|0|RectF|UiText id||hf03418b016be6b023e965616caed52e5a7dd6a367152691bc14de3eb646ed966", "signature": "RectF RectOf(UiText id)", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "Rectangle of the widget with this string id." }, { "name": "RectOf", "kind": "method", "id": "method|RectOf|0|0|RectF|uint id||hc518e049cee7502b5770da6d0349e6e1b3764c8cc67fc33e3a92b5006d46ad99", "signature": "RectF RectOf(uint id)", "parameters": [{ "name": "id", "type": "uint" }], "summary": "Rectangle of any widget by id, for hit tests and overlays." }, { "name": "RegexTester", "kind": "extension", "id": "extension|RegexTester|0|0|RegexTesterResult|UiText id;ref string pattern;int patternCap;ref string text;int textCap;ref RegexFlags flags;RegexTesterOpts o = default||h53b2155ffb50f74e3cdbeb47580968a3b4c6256e0cbe584d8955de62e7015f50", "signature": "RegexTesterResult RegexTester(UiText id, ref string pattern, int patternCap, ref string text, int textCap, ref RegexFlags flags, RegexTesterOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "pattern", "type": "ref string" }, { "name": "patternCap", "type": "int" }, { "name": "text", "type": "ref string" }, { "name": "textCap", "type": "int" }, { "name": "flags", "type": "ref RegexFlags" }, { "name": "o", "type": "RegexTesterOpts", "default": "default" }], "summary": "A pattern field with flags over a test text: every match is highlighted in the text and its groups in their own colors, and the list below shows each match with its groups. Errors show under the pattern. Both buffers are yours and edited in place." }, { "name": "RequestBar", "kind": "extension", "id": "extension|RequestBar|0|0|RequestBarResult|UiText id;ref HttpVerb method;ref string url;int cap = 2048;RequestBarOpts o = default||h0205ed79feda109fdd72fefcdf633adeeb5507caf75681da3bf23d2cf5bcf561", "signature": "RequestBarResult RequestBar(UiText id, ref HttpVerb method, ref string url, int cap = 2048, RequestBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "method", "type": "ref HttpVerb" }, { "name": "url", "type": "ref string" }, { "name": "cap", "type": "int", "default": "2048" }, { "name": "o", "type": "RequestBarOpts", "default": "default" }], "summary": "cui_request_bar_ex" }, { "name": "ResponseActions", "kind": "extension", "id": "extension|ResponseActions|0|0|ResponseEvents|UiText id;ref int vote;ResponseActionsOpts o = default||hc81149b07827af0f59a3269486e0d44858ac9bb48073ed5150872c876c11984c", "signature": "ResponseEvents ResponseActions(UiText id, ref int vote, ResponseActionsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "vote", "type": "ref int" }, { "name": "o", "type": "ResponseActionsOpts", "default": "default" }], "summary": "cui_response_actions_ex" }, { "name": "SchedulePicker", "kind": "extension", "id": "extension|SchedulePicker|0|0|ScheduleResult|UiText id;ref string cron;int cap = 128;ScheduleOpts o = default||h5e149aabf00cdaf3e05fa29f62f956e474f8fee28641ae71fde4eaaeb8801f91", "signature": "ScheduleResult SchedulePicker(UiText id, ref string cron, int cap = 128, ScheduleOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "cron", "type": "ref string" }, { "name": "cap", "type": "int", "default": "128" }, { "name": "o", "type": "ScheduleOpts", "default": "default" }], "summary": "A cron schedule edited the friendly way: every N minutes, hourly at a minute, daily at a time, weekly on chosen days, monthly on a day, or a custom expression. It reads and writes \u0060cron\u0060 (five fields: minute hour day month weekday) and shows what it means and when it runs next. Weekday and month names come from cui_set_strings." }, { "name": "State", "kind": "method", "id": "method|State|0|1|Span\u003CT\u003E|UiText id||h8505c3ecbdde9acd049fc2d5d47e3c43d0545b89b2b78cc39c0a3993049107cf", "signature": "Span\u003CT\u003E State\u003CT\u003E(UiText id) where T : unmanaged", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "Persistent, zeroed storage for a widget id, for values that must survive between frames (animation phases, drag state, hit-test scratch)." }, { "name": "State", "kind": "method", "id": "method|State|0|1|Span\u003CT\u003E|UiText id;Action onFree||hbfa4567fbf2313cbdd3cc11d8daae823c35ccab56e58f7f91c8635a98f228824", "signature": "Span\u003CT\u003E State\u003CT\u003E(UiText id, Action onFree) where T : unmanaged", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "onFree", "type": "Action" }], "summary": "Persistent, zeroed storage for a widget id, with a callback CUI runs when it throws that id\u0027s state away (about five idle seconds, or when the window closes)." }, { "name": "StackTrace", "kind": "extension", "id": "extension|StackTrace|0|0|StackTraceResult|UiText id;ReadOnlySpan\u003CStackFrame\u003E frames;StackTraceOpts o = default||h31d88e2151b353d79ca390bcbc46b17c2882a950f9cf2239a266b97eeaa36a9b", "signature": "StackTraceResult StackTrace(UiText id, ReadOnlySpan\u003CStackFrame\u003E frames, StackTraceOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "frames", "type": "ReadOnlySpan\u003CStackFrame\u003E" }, { "name": "o", "type": "StackTraceOpts", "default": "default" }], "summary": "An exception and its call stack: the error\u0027s type and message, then each frame\u0027s function and position. Runs of library frames fold into one row. A frame with source opens to show the lines around it, the failing line marked; the first frame of your own code starts open. A button copies the whole trace as text." }, { "name": "Terminal", "kind": "extension", "id": "extension|Terminal|0|0|TerminalResult|UiText id;Terminal terminal;TerminalOpts o = default||h3bb90fc3e22f3e909beb279d5867cc2751b7287513f1480f8c73f2e7405f14d7", "signature": "TerminalResult Terminal(UiText id, Terminal terminal, TerminalOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "terminal", "type": "Terminal" }, { "name": "o", "type": "TerminalOpts", "default": "default" }], "summary": "Draws terminal and reports what the user did in it." }, { "name": "TestExplorer", "kind": "extension", "id": "extension|TestExplorer|0|0|TestExplorerResult|UiText id;ReadOnlySpan\u003CTestItem\u003E items;TestExplorerOpts o = default||h9eeb18e60e88e82a908b873a27468f9699a55c61fb36da8ff356557f102e3862", "signature": "TestExplorerResult TestExplorer(UiText id, ReadOnlySpan\u003CTestItem\u003E items, TestExplorerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CTestItem\u003E" }, { "name": "o", "type": "TestExplorerOpts", "default": "default" }], "summary": "Test results as a tree: suites fold, each test shows its status and time, and a failure shows its message under it. A suite\u0027s status sums up its tests. The toolbar runs everything, counts results and filters by status and by name. Hover a row for its run button. Only the rows in view are built. Up and Down move, Left and Right fold, Enter activates. Items are in tree order with their depth; the statuses are the pipeline\u0027s." }, { "name": "MeasureText", "kind": "method", "id": "method|MeasureText|0|0|TextMetrics|UiText text;float size = 12f;Font font = Font.Body||h992b53c9418ee9ba19c1fd34ea05dca44fabbaac335e2ecdd31ccf760fd4f66f", "signature": "TextMetrics MeasureText(UiText text, float size = 12f, Font font = Font.Body)", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "size", "type": "float", "default": "12f" }, { "name": "font", "type": "Font", "default": "Font.Body" }], "summary": "Width and height of a single line of text, without wrapping." }, { "name": "Theme", "kind": "property", "id": "property|Theme|0|0|Theme||get;set;|h898a02cacbcba9a905f94fba0740f328f89ab1e042e5fea5ff9d21a93e3e297d", "signature": "Theme Theme { get; set; }", "summary": "The theme this frame draws with. Assign to switch, from anywhere inside a frame." }, { "name": "Style", "kind": "property", "id": "property|Style|0|0|ThemeStyle||get;|h4a1ba7271e3ed1e378ccdc5f7d6055b8fea5756bf3605b1214e29e77e4e7860a", "signature": "ThemeStyle Style { get; }", "summary": "The design tokens this frame draws with \u2014 radii, control heights, text and heading sizes, the motion multiplier and the palette \u2014 as a live view to read and to assign." }, { "name": "TimeHistogram", "kind": "extension", "id": "extension|TimeHistogram|0|0|TimeHistogramResult|UiText id;double start;double bucketSeconds;int buckets;ReadOnlySpan\u003CHistogramSeries\u003E series;ref double selStart;ref double selEnd;TimeHistogramOpts o = default||hfc0784cb52bfd6a3615191c61545b37c444f2ce965ef93b671333df27d4bf165", "signature": "TimeHistogramResult TimeHistogram(UiText id, double start, double bucketSeconds, int buckets, ReadOnlySpan\u003CHistogramSeries\u003E series, ref double selStart, ref double selEnd, TimeHistogramOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "start", "type": "double" }, { "name": "bucketSeconds", "type": "double" }, { "name": "buckets", "type": "int" }, { "name": "series", "type": "ReadOnlySpan\u003CHistogramSeries\u003E" }, { "name": "selStart", "type": "ref double" }, { "name": "selEnd", "type": "ref double" }, { "name": "o", "type": "TimeHistogramOpts", "default": "default" }], "summary": "Event counts over time, stacked by series (log levels, status classes), as above a log search. Drag across it to select a time range, click to clear. Hover a bar for its time and counts. Times are Unix seconds." }, { "name": "Tour", "kind": "extension", "id": "extension|Tour|0|0|TourAction|UiText id;ReadOnlySpan\u003CTourStep\u003E steps;ref int step;TourOpts o = default||h7a480bb022c619036d7ca1d19006a7d5aa923a84ea3fc62b5eae88ea7b1088c8", "signature": "TourAction Tour(UiText id, ReadOnlySpan\u003CTourStep\u003E steps, ref int step, TourOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "steps", "type": "ReadOnlySpan\u003CTourStep\u003E" }, { "name": "step", "type": "ref int" }, { "name": "o", "type": "TourOpts", "default": "default" }], "summary": "What happened this frame: one of CUI_TOUR_*." }, { "name": "TraceView", "kind": "extension", "id": "extension|TraceView|0|0|TraceResult|UiText id;ReadOnlySpan\u003CTraceTrack\u003E tracks;ReadOnlySpan\u003CTraceSpan\u003E spans;ref TraceViewState view;ref int selected;TraceOpts o = default||h7ab8ce526cada0bd73b947180d909dfa39f159b47ac14940ec53b67f28158b92", "signature": "TraceResult TraceView(UiText id, ReadOnlySpan\u003CTraceTrack\u003E tracks, ReadOnlySpan\u003CTraceSpan\u003E spans, ref TraceViewState view, ref int selected, TraceOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tracks", "type": "ReadOnlySpan\u003CTraceTrack\u003E" }, { "name": "spans", "type": "ReadOnlySpan\u003CTraceSpan\u003E" }, { "name": "view", "type": "ref TraceViewState" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "TraceOpts", "default": "default" }], "summary": "A tracing timeline: one lane per thread, process or service, each with its nested spans, on one time ruler, with markers (frames, GC pauses, deploys) drawn across every lane. Wheel zooms around the pointer, Shift\u002Bwheel or a drag pans, click selects a span, Shift\u002Bdrag measures a time range. A lane\u0027s name folds it. Keys: Left and Right step through the selected span\u0027s lane, \u002B and - zoom, F fits, Esc clears. Spans must be sorted by track, depth and start (cui_trace_sort), with no overlap within a depth of a track. Like the flame graph, only what is in view is visited." }, { "name": "TreeTable", "kind": "extension", "id": "extension|TreeTable|0|0|TreeTableEvents|UiText id;ReadOnlySpan\u003CGridColumn\u003E columns;TreeNode[] nodes;TreeTableRow row;TreeTableOpts o = default;Func\u003Cint, string?\u003E? label = null||h5ad3a7ebd26d1298c20becc826efa4b5392b7ddbca0d68cfbb1f162eb572fd75", "signature": "TreeTableEvents TreeTable(UiText id, ReadOnlySpan\u003CGridColumn\u003E columns, TreeNode[] nodes, TreeTableRow row, TreeTableOpts o = default, Func\u003Cint, string?\u003E? label = null)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CGridColumn\u003E" }, { "name": "nodes", "type": "TreeNode[]" }, { "name": "row", "type": "TreeTableRow" }, { "name": "o", "type": "TreeTableOpts", "default": "default" }, { "name": "label", "type": "Func\u003Cint, string?\u003E?", "default": "null" }], "summary": "Draws a tree without sort or keyboard state: the table keeps no per-id interaction state, which is all a static tree needs." }, { "name": "TreeTable", "kind": "extension", "id": "extension|TreeTable|0|0|TreeTableEvents|UiText id;ReadOnlySpan\u003CGridColumn\u003E columns;TreeNode[] nodes;TreeTableRow row;ref TableSort sort;ref int cursor;TreeTableOpts o = default;Func\u003Cint, string?\u003E? label = null||hdc8db941f4c0a5cc7a1e81a316f1e56fbc2468020569fb6cacf3307bec596a1d", "signature": "TreeTableEvents TreeTable(UiText id, ReadOnlySpan\u003CGridColumn\u003E columns, TreeNode[] nodes, TreeTableRow row, ref TableSort sort, ref int cursor, TreeTableOpts o = default, Func\u003Cint, string?\u003E? label = null)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CGridColumn\u003E" }, { "name": "nodes", "type": "TreeNode[]" }, { "name": "row", "type": "TreeTableRow" }, { "name": "sort", "type": "ref TableSort" }, { "name": "cursor", "type": "ref int" }, { "name": "o", "type": "TreeTableOpts", "default": "default" }, { "name": "label", "type": "Func\u003Cint, string?\u003E?", "default": "null" }], "summary": "Draws nodes as a tree with columns, calling row once per visible node to fill its cells." }, { "name": "Uptime", "kind": "extension", "id": "extension|Uptime|0|0|UptimeResult|UiText id;ReadOnlySpan\u003CUptimeService\u003E services;UptimeOpts o = default||h60131e1db59b8a809d222a6d6dee840e1ccde25607a2c4178418eef8a488dccb", "signature": "UptimeResult Uptime(UiText id, ReadOnlySpan\u003CUptimeService\u003E services, UptimeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "services", "type": "ReadOnlySpan\u003CUptimeService\u003E" }, { "name": "o", "type": "UptimeOpts", "default": "default" }], "summary": "A status page: each service with its current state, its uptime over the period, and one bar per day colored by availability (gray without data). Hover a bar for its day and uptime. On a narrow panel only the most recent days that fit are shown." }, { "name": "MousePosition", "kind": "property", "id": "property|MousePosition|0|0|ValueTuple\u003Cfloat, float\u003E||get;|h02b51b7243b762c56e53482522c31644d844cd12e36381af09a9700cd549db93", "signature": "ValueTuple\u003Cfloat, float\u003E MousePosition { get; }", "summary": "Pointer position in points, top-left origin." }, { "name": "ViewportSize", "kind": "method", "id": "method|ViewportSize|0|0|ValueTuple\u003Cfloat, float\u003E|||h7a26e2e5e6b39edb5a26a6e7adde40edf0bcd8599f3d7629ea37d02c109493a2", "signature": "ValueTuple\u003Cfloat, float\u003E ViewportSize()" }, { "name": "Waterfall", "kind": "extension", "id": "extension|Waterfall|0|0|WaterfallResult|UiText id;ReadOnlySpan\u003CNetRequest\u003E requests;ref int selected;WaterfallOpts o = default||h419b5ccb1a80d64ac3cce058fa79a3ac44664f29e8c9685c083cf8552c6714e6", "signature": "WaterfallResult Waterfall(UiText id, ReadOnlySpan\u003CNetRequest\u003E requests, ref int selected, WaterfallOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "requests", "type": "ReadOnlySpan\u003CNetRequest\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "WaterfallOpts", "default": "default" }], "summary": "HTTP requests as a table with a timing bar each: queued, DNS, connect, TLS, waiting for the first byte and downloading, on one time scale with the page\u0027s DOMContentLoaded and load lines. Hover a bar for the breakdown. Narrow panels drop the type and size columns. Only the rows in view are built. Up and Down move the selection." }, { "name": "Alert", "kind": "extension", "id": "extension|Alert|0|0|bool|UiText title;AlertOpts o = default||hb9b8786bcd05d91b48b9d5b7e7c8dfe99eab8a18cccf61ee5708920e8c2c65a0", "signature": "bool Alert(UiText title, AlertOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "AlertOpts", "default": "default" }], "summary": "Inline alert. Returns false once dismissed (when dismissible)." }, { "name": "Banner", "kind": "extension", "id": "extension|Banner|0|0|bool|UiText text;ref bool open;BannerOpts o = default||hded3699dd8c0717c5f0d2f8a60f5b76364aaa539a156402e1d68fed1e8b19dd6", "signature": "bool Banner(UiText text, ref bool open, BannerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "o", "type": "BannerOpts", "default": "default" }], "summary": "Announcement banner across the top of a view. Collapses smoothly when dismissed (*open becomes false). Returns true when the action is clicked." }, { "name": "Button", "kind": "extension", "id": "extension|Button|0|0|bool|UiText label;ButtonOpts o = default||h0824ce1ee9db1a3102bbbc57b5f43c838d0aac0c456dc9d0f5ddf3a8bb9eaae3", "signature": "bool Button(UiText label, ButtonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "ButtonOpts", "default": "default" }], "summary": "cui_button_ex" }, { "name": "Calendar", "kind": "extension", "id": "extension|Calendar|0|0|bool|UiText id;ref Date value||he2d734019c4ba63e626cffe267911189a15dbf5b403eff0fc6fd9898d4334662", "signature": "bool Calendar(UiText id, ref Date value)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref Date" }], "summary": "cui_calendar" }, { "name": "Checkbox", "kind": "extension", "id": "extension|Checkbox|0|0|bool|UiText label;ref bool value;CheckOpts o = default||h5e553956f3358e286491451619c072577baad5689e0ba2b38257460dced857ee", "signature": "bool Checkbox(UiText label, ref bool value, CheckOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref bool" }, { "name": "o", "type": "CheckOpts", "default": "default" }], "summary": "cui_checkbox_ex" }, { "name": "Chip", "kind": "extension", "id": "extension|Chip|0|0|bool|UiText label;ref bool selected;ChipOpts o = default||h4ff38ab2a9a818e7526990ee6c9e6f19f63a1138e5fb79d08917e25c0d0a78ee", "signature": "bool Chip(UiText label, ref bool selected, ChipOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "selected", "type": "ref bool" }, { "name": "o", "type": "ChipOpts", "default": "default" }], "summary": "cui_chip_ex" }, { "name": "Citation", "kind": "extension", "id": "extension|Citation|0|0|bool|int number;in Source source||ha19b93ee36f160c6271aaa8db69ab4937531c6d0be1bdcd8e208aa7eb206aee7", "signature": "bool Citation(int number, in Source source)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "number", "type": "int" }, { "name": "source", "type": "in Source" }], "summary": "cui_citation" }, { "name": "ColorPicker", "kind": "extension", "id": "extension|ColorPicker|0|0|bool|UiText id;ref Color value||h337517bd7bbb67ac9f2a0f2cd3561338116b8bbce4aab6736de92c41bd706e10", "signature": "bool ColorPicker(UiText id, ref Color value)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref Color" }], "summary": "cui_color_picker" }, { "name": "ConfirmButton", "kind": "extension", "id": "extension|ConfirmButton|0|0|bool|UiText label;ConfirmOpts o = default||ha173e8d04000010db239a95f45b5a65630e6c3a32565f48acd835a79732b2383", "signature": "bool ConfirmButton(UiText label, ConfirmOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "ConfirmOpts", "default": "default" }], "summary": "Two step destructive button: the first click morphs it into a confirm state with a countdown, the second click confirms. Returns true once." }, { "name": "ConfirmPopover", "kind": "extension", "id": "extension|ConfirmPopover|0|0|bool|UiText id;ConfirmPopoverOpts o = default||h1c2e0982b9c59e893eae1a02030bc1dcf3a82997c3f51101dbeae1b45e768ee2", "signature": "bool ConfirmPopover(UiText id, ConfirmPopoverOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "ConfirmPopoverOpts", "default": "default" }], "summary": "Confirm popover: a small question anchored to the previous component. Open it with cui_popover_open(ui, id). Returns true when confirmed." }, { "name": "ControlTile", "kind": "extension", "id": "extension|ControlTile|0|0|bool|UiText label;ref bool on;TileOpts o = default||h030def7b2183e0b26721bad6afc91a710eb6f7cf309e2889db383c64f1477cbd", "signature": "bool ControlTile(UiText label, ref bool on, TileOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "on", "type": "ref bool" }, { "name": "o", "type": "TileOpts", "default": "default" }], "summary": "Control tile: a large toggle with an icon, a label and a state line." }, { "name": "CopyButton", "kind": "extension", "id": "extension|CopyButton|0|0|bool|UiText id;UiText text||hbc740c15d3716aa5400fb730217b29b8462ce4a82a1b3b2c9884600f4fbfe844", "signature": "bool CopyButton(UiText id, UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }], "summary": "Icon button that copies text to the clipboard and confirms with a check. Keyboard focus stays on the button when the check appears or disappears." }, { "name": "Cropper", "kind": "extension", "id": "extension|Cropper|0|0|bool|UiText id;ulong tex;int imageW;int imageH;ref RectF crop;CropperOpts o = default||hc4433b320e719d68cf000799d9f75543139b19ed26265d5d5b7ef0e7cb29a2cf", "signature": "bool Cropper(UiText id, ulong tex, int imageW, int imageH, ref RectF crop, CropperOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tex", "type": "ulong" }, { "name": "imageW", "type": "int" }, { "name": "imageH", "type": "int" }, { "name": "crop", "type": "ref RectF" }, { "name": "o", "type": "CropperOpts", "default": "default" }], "summary": "Returns true when the crop changed." }, { "name": "DataGridCellEdit", "kind": "extension", "id": "extension|DataGridCellEdit|0|0|bool|ref string buf;int cap||h36d248e6c06ee8f7c129163000d2afe51274d879f2f2a6dd8f75e48579c04c63", "signature": "bool DataGridCellEdit(ref string buf, int cap)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }], "summary": "Editable text cell: double click (or Enter on the cursor row) to edit, Enter or clicking away commits, Esc reverts. True when committed." }, { "name": "DataGridEdit", "kind": "extension", "id": "extension|DataGridEdit|0|0|bool|ref string buf;int cap||h4a0248a3c48520cf419b921b7953de24c458026bb86ab7bd00ba08e5d194ef65", "signature": "bool DataGridEdit(ref string buf, int cap)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }], "summary": "The same editable text, inside the current cell (after an avatar, say)." }, { "name": "DataGridRow", "kind": "extension", "id": "extension|DataGridRow|0|0|bool|int row||h5fe4fdf7429d5b5aac0325fa0af56631c8d8a1ff342c03251fe30d766d9f9225", "signature": "bool DataGridRow(int row)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "row", "type": "int" }], "summary": "true when the row was clicked" }, { "name": "DatePicker", "kind": "extension", "id": "extension|DatePicker|0|0|bool|UiText id;ref Date value;DateOpts o = default||h993523ace680cddb6c1434059ef52f3fb34d716bed495d79d97b148118785ee2", "signature": "bool DatePicker(UiText id, ref Date value, DateOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref Date" }, { "name": "o", "type": "DateOpts", "default": "default" }], "summary": "cui_date_picker_ex" }, { "name": "DateRangePicker", "kind": "extension", "id": "extension|DateRangePicker|0|0|bool|UiText id;ref DateRange range;DateRangeOpts o = default||h9daa98cbb5461612c53362c329641eba719561905ce1865087421113c0ee84d1", "signature": "bool DateRangePicker(UiText id, ref DateRange range, DateRangeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "range", "type": "ref DateRange" }, { "name": "o", "type": "DateRangeOpts", "default": "default" }], "summary": "cui_date_range_picker_ex" }, { "name": "DateToday", "kind": "method", "id": "method|DateToday|0|0|bool|out Date value||h2030bff62c6a99d4c47e3fa2a09f8c125232327d048faf8c41c853eeafa84679", "signature": "bool DateToday(out Date value)", "parameters": [{ "name": "value", "type": "out Date" }] }, { "name": "DockItem", "kind": "extension", "id": "extension|DockItem|0|0|bool|UiText icon;UiText label;DockItemOpts o = default||h6868974ee881c1a4f660ae0207737b226f6822fd1064babdbda9860825db89d1", "signature": "bool DockItem(UiText icon, UiText label, DockItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "label", "type": "UiText" }, { "name": "o", "type": "DockItemOpts", "default": "default" }], "summary": "cui_dock_item_ex" }, { "name": "DockLoad", "kind": "extension", "id": "extension|DockLoad|0|0|bool|UiText id;UiText text||hffd91787faf77c3d390dfe7deb8bb16df93eb717a31ba3fd4130eac2e2e134b4", "signature": "bool DockLoad(UiText id, UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }], "summary": "cui_dock_load" }, { "name": "EmojiFontLoadFile", "kind": "extension", "id": "extension|EmojiFontLoadFile|0|0|bool|UiText path||hf9ed3d99d8c528c9df41c7bca5721cb0eb461686e0a48bc35d1cf718f13ba0f6", "signature": "bool EmojiFontLoadFile(UiText path)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "path", "type": "UiText" }], "summary": "Color emoji come from an emoji font: the system\u0027s (cui_emoji_font_load_system, which the picker calls by itself when nothing is loaded) or one the app ships. Bitmap color fonts (sbix as on macOS, CBDT as on Linux and Android) and layered ones (COLR version 0, as on Windows) are read, as is a plain outline font for one-color emoji. Sequences with skin tones, joined people and flags are looked up through the font\u0027s ligatures. Big fonts are read from the file as needed rather than loaded whole. Drawn emoji are kept in one texture and reused." }, { "name": "EmojiFontLoadMemory", "kind": "extension", "id": "extension|EmojiFontLoadMemory|0|0|bool|ReadOnlySpan\u003Cbyte\u003E data;bool copy||h8f31cf994f46f3f46e0c7fdefbd7d39be865056bcb0700421f0fee7be7142342", "signature": "bool EmojiFontLoadMemory(ReadOnlySpan\u003Cbyte\u003E data, bool copy)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "data", "type": "ReadOnlySpan\u003Cbyte\u003E" }, { "name": "copy", "type": "bool" }], "summary": "cui_emoji_font_load_memory" }, { "name": "EmojiFontLoadSystem", "kind": "extension", "id": "extension|EmojiFontLoadSystem|0|0|bool|||he4386dbb08b9f31fd0c23d6cb333b56d4babcbd26d5e38fa72a56bc89a6bac12", "signature": "bool EmojiFontLoadSystem()", "extensionOn": "CuiSharp.Ui", "summary": "cui_emoji_font_load_system" }, { "name": "EmojiSupported", "kind": "extension", "id": "extension|EmojiSupported|0|0|bool|UiText utf8||he0adda46557f9d84dbc4c6feb4f995d99998ffae9bdabd33371c8df1fc7899fb", "signature": "bool EmojiSupported(UiText utf8)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "utf8", "type": "UiText" }], "summary": "the font (or platform) can draw it" }, { "name": "EmptyState", "kind": "extension", "id": "extension|EmptyState|0|0|bool|UiText title;EmptyOpts o = default||h3447935b9ffe834dcbe57094c2bd062fa6216fbbd3d59e4e2527f7da36f6f369", "signature": "bool EmptyState(UiText title, EmptyOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "EmptyOpts", "default": "default" }], "summary": "Empty state. Returns true when its action button is clicked." }, { "name": "ExpandableText", "kind": "extension", "id": "extension|ExpandableText|0|0|bool|UiText id;UiText text;ExpandableTextOpts o = default||h0853336278f85890679dc7cd1bc9eb77a34f2cf61567d87164045778c0f8d6ad", "signature": "bool ExpandableText(UiText id, UiText text, ExpandableTextOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "ExpandableTextOpts", "default": "default" }], "summary": "Text clamped to a few lines with a fade and Show more / Show less." }, { "name": "Fader", "kind": "extension", "id": "extension|Fader|0|0|bool|UiText id;ref float value;float min;float max;FaderOpts o = default||h8266bbe632feda1ec1b4b87bd7f41cc9e107e496de7dfb957c9d87f1e63f8835", "signature": "bool Fader(UiText id, ref float value, float min, float max, FaderOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "FaderOpts", "default": "default" }], "summary": "cui_fader_ex" }, { "name": "FileDragActive", "kind": "property", "id": "property|FileDragActive|0|0|bool||get;|hc2e815e1a71bc6a75b5e19ff96d7c1ef201253bc7b4d7f60949c96df158538ac", "signature": "bool FileDragActive { get; }", "summary": "True while files are being dragged over the window, for a drop target to light up." }, { "name": "FilePicker", "kind": "extension", "id": "extension|FilePicker|0|0|bool|UiText id;ref bool open;ref string out;int outCap = 1024;FilePickerOpts o = default||hb1ce6182678b8b2ca569fff7fdf6d4a781314228ed80d25a4c02a48b368dd07f", "signature": "bool FilePicker(UiText id, ref bool open, ref string @out, int outCap = 1024, FilePickerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "out", "type": "ref string" }, { "name": "outCap", "type": "int", "default": "1024" }, { "name": "o", "type": "FilePickerOpts", "default": "default" }], "summary": "True once, with the chosen path in out, when the dialog is confirmed; *open turns false then, or on Cancel and Esc." }, { "name": "FilterBar", "kind": "method", "id": "method|FilterBar|0|0|bool|UiText id;ReadOnlySpan\u003CFilterField\u003E fields;Span\u003Cuint\u003E selected;ref string search;int searchCap = 256||h05b35fdecfc879680ca00e844554bef0fb0d2b9ee533e72f50a25b4cb5e4be7a", "signature": "bool FilterBar(UiText id, ReadOnlySpan\u003CFilterField\u003E fields, Span\u003Cuint\u003E selected, ref string search, int searchCap = 256)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "fields", "type": "ReadOnlySpan\u003CFilterField\u003E" }, { "name": "selected", "type": "Span\u003Cuint\u003E" }, { "name": "search", "type": "ref string" }, { "name": "searchCap", "type": "int", "default": "256" }], "summary": "Filter chips, one dropdown per field plus a search. selected holds one option bitmask per field; returns true on any change." }, { "name": "HistogramSlider", "kind": "extension", "id": "extension|HistogramSlider|0|0|bool|UiText label;ReadOnlySpan\u003Cfloat\u003E bins;ref float lo;ref float hi;float min;float max;HistogramOpts o = default||h72cc41a613543670d7d773f53d3ed618f4ca5dda5c9cf710a8ea0c0745f9816a", "signature": "bool HistogramSlider(UiText label, ReadOnlySpan\u003Cfloat\u003E bins, ref float lo, ref float hi, float min, float max, HistogramOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "bins", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "lo", "type": "ref float" }, { "name": "hi", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "HistogramOpts", "default": "default" }], "summary": "Range slider over a histogram of the data it filters." }, { "name": "HoldButton", "kind": "extension", "id": "extension|HoldButton|0|0|bool|UiText label;HoldOpts o = default||ha44fcfbb972ecfbea614fbc280b43abd9c243c1e05ac46d39ac240667e1b2a30", "signature": "bool HoldButton(UiText label, HoldOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "HoldOpts", "default": "default" }], "summary": "Hold to confirm: a destructive action that fills while held and fires when full. Returns true once." }, { "name": "IconButton", "kind": "extension", "id": "extension|IconButton|0|0|bool|UiText icon;ButtonOpts o = default||h5215045b3b917c5c328653c82d759d884c905c9bee3fd2bcae9c23b95552a5e2", "signature": "bool IconButton(UiText icon, ButtonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "o", "type": "ButtonOpts", "default": "default" }], "summary": "Square/round button with only an icon. Give it a tooltip so it has a name." }, { "name": "ImageCompare", "kind": "extension", "id": "extension|ImageCompare|0|0|bool|UiText id;ulong before;ulong after;ref float pos;CompareOpts o = default||hbf70b5332c704791b825e9cb8d9e14cd4661dfc72efb9bed54e7afc61aac7221", "signature": "bool ImageCompare(UiText id, ulong before, ulong after, ref float pos, CompareOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "before", "type": "ulong" }, { "name": "after", "type": "ulong" }, { "name": "pos", "type": "ref float" }, { "name": "o", "type": "CompareOpts", "default": "default" }], "summary": "Before and after: drag the divider to compare two images. *pos is 0..1." }, { "name": "ImageViewer", "kind": "extension", "id": "extension|ImageViewer|0|0|bool|UiText id;ulong tex;int imageW;int imageH;ref ImageView view;ImageViewerOpts o = default||hfd49614f5ed12268c88fafc87f200f9ba92c7a0989e02c2476dadf0bb0fab3b3", "signature": "bool ImageViewer(UiText id, ulong tex, int imageW, int imageH, ref ImageView view, ImageViewerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tex", "type": "ulong" }, { "name": "imageW", "type": "int" }, { "name": "imageH", "type": "int" }, { "name": "view", "type": "ref ImageView" }, { "name": "o", "type": "ImageViewerOpts", "default": "default" }], "summary": "Returns true when the view changed." }, { "name": "InspectorGroup", "kind": "extension", "id": "extension|InspectorGroup|0|0|bool|UiText title;ref bool open||hba33317836e4529b513b762245b52b82d2fc8fd252b7ae2174d7ffdf7ff08018", "signature": "bool InspectorGroup(UiText title, ref bool open)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }], "summary": "A folding group header. Build its rows only when this returns true (it stays true while the group animates closed). open may be NULL for a plain section that does not fold." }, { "name": "IsDisabled", "kind": "property", "id": "property|IsDisabled|0|0|bool||get;|h66819bb8e34991aa0b9a8fdf312d84bcc577f1aed8196c14e9cfc9792bab4b6e", "signature": "bool IsDisabled { get; }", "summary": "True inside a Disabled scope (or one a parent opened)." }, { "name": "JsonView", "kind": "extension", "id": "extension|JsonView|0|0|bool|UiText id;UiText json;JsonOpts o = default||h206112d6d2798b04c8b2e35b11a492fe5022438268206f218c32f29f9efa0bbf", "signature": "bool JsonView(UiText id, UiText json, JsonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "json", "type": "UiText" }, { "name": "o", "type": "JsonOpts", "default": "default" }], "summary": "JSON viewer: a collapsible tree with typed colors and item counts. Returns false when the text is not valid JSON (and shows the error)." }, { "name": "Kanban", "kind": "extension", "id": "extension|Kanban|0|0|bool|UiText id;out KanbanMove kanbanmove;DrawFn body||h06459ebde22b2b48e212f80454450eb468aac078e18e50dee8f7aa756afdbe5e", "signature": "bool Kanban(UiText id, out KanbanMove kanbanmove, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "kanbanmove", "type": "out KanbanMove" }, { "name": "body", "type": "DrawFn" }], "summary": "cui_kanban_begin The card was dropped into another column, and the move is written into the out parameter." }, { "name": "KeyDown", "kind": "method", "id": "method|KeyDown|0|0|bool|Key key||h8b8a390f57bfe976c9fae2d30fec99be77322f69944968534c26bc08482cb159", "signature": "bool KeyDown(Key key)", "parameters": [{ "name": "key", "type": "Key" }], "summary": "True while the key is held (with auto-repeat)." }, { "name": "KeyPressed", "kind": "method", "id": "method|KeyPressed|0|0|bool|Key key||hd4bc534b9e8b12976f0c38f87635500fca89a9d6949ea0a103354f41e6d39700", "signature": "bool KeyPressed(Key key)", "parameters": [{ "name": "key", "type": "Key" }], "summary": "True on the frame the key went down, including repeats." }, { "name": "Knob", "kind": "extension", "id": "extension|Knob|0|0|bool|UiText id;ref float value;float min;float max;KnobOpts o = default||hfceb051da509c5e36d4bd22400b42f24a8cc0da8ba2c27a23c8e378855c66680", "signature": "bool Knob(UiText id, ref float value, float min, float max, KnobOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "KnobOpts", "default": "default" }], "summary": "Knob, fader and level meter: the controls of audio, synth and mixer panels." }, { "name": "KvEditor", "kind": "extension", "id": "extension|KvEditor|0|0|bool|UiText id;Span\u003CKeyValue\u003E pairs;ref int count;KvEditorOpts o = default||h33bb0c1c82dae67745ff12456422881b7a82c634ea86250511129fa68d145901", "signature": "bool KvEditor(UiText id, Span\u003CKeyValue\u003E pairs, ref int count, KvEditorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "pairs", "type": "Span\u003CKeyValue\u003E" }, { "name": "count", "type": "ref int" }, { "name": "o", "type": "KvEditorOpts", "default": "default" }], "summary": "cui_kv_editor_ex" }, { "name": "LevelMeter", "kind": "extension", "id": "extension|LevelMeter|0|0|bool|UiText id;ReadOnlySpan\u003Cfloat\u003E levels;LevelMeterOpts o = default||he2b90272968549a2bc948844fa0f2e5fcb787783f5c0716cf3d8c48db532ab7e", "signature": "bool LevelMeter(UiText id, ReadOnlySpan\u003Cfloat\u003E levels, LevelMeterOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "levels", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "o", "type": "LevelMeterOpts", "default": "default" }], "summary": "Returns true when the clip light was clicked to clear it." }, { "name": "Link", "kind": "extension", "id": "extension|Link|0|0|bool|UiText text||h20b90df40ad793aa00f00bae1aeddd8c78d8d1ee7eccdf7f709db8b78317b57a", "signature": "bool Link(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "cui_link" }, { "name": "ListItem", "kind": "extension", "id": "extension|ListItem|0|0|bool|UiText title;ListItemOpts o = default||h59240e7a8fd8d1115830e25d32bfc60e47f14e4645e8e48b58281c710be7f5c9", "signature": "bool ListItem(UiText title, ListItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "ListItemOpts", "default": "default" }], "summary": "List item: a selectable row with optional icon, subtitle and trailing text." }, { "name": "LoadImage", "kind": "method", "id": "method|LoadImage|0|0|bool|UiText path;out ulong texture;out int width;out int height||hfe19783db558936a04580a0831ac4289470f120ccd1ef3163fcee3e05649da1f", "signature": "bool LoadImage(UiText path, out ulong texture, out int width, out int height)", "parameters": [{ "name": "path", "type": "UiText" }, { "name": "texture", "type": "out ulong" }, { "name": "width", "type": "out int" }, { "name": "height", "type": "out int" }], "summary": "Decodes a PNG or JPEG from disk into a texture and reports its pixel size. Returns false when the file cannot be read or decoded; the texture is then 0. Release it with DestroyImage." }, { "name": "MenuItem", "kind": "extension", "id": "extension|MenuItem|0|0|bool|UiText label;MenuItemOpts o = default||h6f02a24b8c3e14f743f1164e34c40e0c32e7647a378fc18f6fac4bd77708b604", "signature": "bool MenuItem(UiText label, MenuItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "MenuItemOpts", "default": "default" }], "summary": "cui_menu_item_ex" }, { "name": "ModelPicker", "kind": "extension", "id": "extension|ModelPicker|0|0|bool|UiText id;ReadOnlySpan\u003CModel\u003E models;ref int selected;ModelPickerOpts o = default||h30f09bcdbcd0511d67feaab5ce1eb2d84b0769c8eb387e2675cdc4b9faf9d869", "signature": "bool ModelPicker(UiText id, ReadOnlySpan\u003CModel\u003E models, ref int selected, ModelPickerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "models", "type": "ReadOnlySpan\u003CModel\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "ModelPickerOpts", "default": "default" }], "summary": "Model picker: the current model on a button; a list with details opens." }, { "name": "MoneyInput", "kind": "extension", "id": "extension|MoneyInput|0|0|bool|UiText id;ref double value;MoneyOpts o = default||hd65fb688e51d9a482d2f9031cdb57646790ad85a3c809e961601a8725a753b42", "signature": "bool MoneyInput(UiText id, ref double value, MoneyOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref double" }, { "name": "o", "type": "MoneyOpts", "default": "default" }], "summary": "Money field: shows the amount with thousands separators, edits as plain digits, keeps a fixed number of decimals." }, { "name": "MouseClicked", "kind": "method", "id": "method|MouseClicked|0|0|bool|MouseButton button||h8e0f0ad614e613c5c152543c9917af645f5ae90299577124c2da8f7863f69862", "signature": "bool MouseClicked(MouseButton button)", "parameters": [{ "name": "button", "type": "MouseButton" }], "summary": "True on the frame a mouse button went down." }, { "name": "MouseDown", "kind": "method", "id": "method|MouseDown|0|0|bool|MouseButton button||hf67b74dbd9e44892fdb6b384ac7537f75c21e2054ec9267ee7cf800f77c4c81d", "signature": "bool MouseDown(MouseButton button)", "parameters": [{ "name": "button", "type": "MouseButton" }], "summary": "True while a mouse button is held." }, { "name": "MultiSelect", "kind": "method", "id": "method|MultiSelect|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;Span\u003Cbool\u003E selected;MultiSelectOpts o = default||h3e128721808f3d5d3438e029c09a821039a75342e2851271e35420570d1affca", "signature": "bool MultiSelect(UiText id, ReadOnlySpan\u003Cstring\u003E items, Span\u003Cbool\u003E selected, MultiSelectOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "selected", "type": "Span\u003Cbool\u003E" }, { "name": "o", "type": "MultiSelectOpts", "default": "default" }], "summary": "A searchable list with one checkbox per item and chips for the chosen ones. Returns true on the frame an entry flips." }, { "name": "NavItem", "kind": "extension", "id": "extension|NavItem|0|0|bool|UiText label;NavOpts o = default||h163b7c5bf544cc2227cbef6b64c928a89e62b8536a9e4ab947179a86d455c59d", "signature": "bool NavItem(UiText label, NavOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "NavOpts", "default": "default" }], "summary": "Sidebar navigation item with a gliding selection highlight shared by all items in the same group." }, { "name": "NeedsRedraw", "kind": "property", "id": "property|NeedsRedraw|0|0|bool||get;|h5aadd05568570958d5b9529ecc317e3ce874d6c40baa003636859fb90a0da9fc", "signature": "bool NeedsRedraw { get; }" }, { "name": "NodeDeleted", "kind": "extension", "id": "extension|NodeDeleted|0|0|bool|ref int nodeId||hc3cfc3ad4c4fc3a042b1dbb26d3de5739a59ee9b1e9f8c1741f772a5e535d6bc", "signature": "bool NodeDeleted(ref int nodeId)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "nodeId", "type": "ref int" }], "summary": "cui_node_deleted" }, { "name": "NodeInput", "kind": "extension", "id": "extension|NodeInput|0|0|bool|int pinId;UiText label;PinOpts o = default||hd37a374006c3c8cd18c68d9d7503bd5160359d3f3e458d3531e756c52700b1f0", "signature": "bool NodeInput(int pinId, UiText label, PinOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "pinId", "type": "int" }, { "name": "label", "type": "UiText" }, { "name": "o", "type": "PinOpts", "default": "default" }], "summary": "A row with a pin on the left (input) or right (output). type picks the pin color from the series palette and limits links to pins of the same type (0 connects to anything). Returns true when the pin has a link." }, { "name": "NodeLink", "kind": "extension", "id": "extension|NodeLink|0|0|bool|int linkId;int fromPin;int toPin||hab2ff05d12c3863dc35ff7ced8cdef83783fba6a2e16dbd81214feb3eaf01910", "signature": "bool NodeLink(int linkId, int fromPin, int toPin)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "linkId", "type": "int" }, { "name": "fromPin", "type": "int" }, { "name": "toPin", "type": "int" }], "summary": "A link from an output pin to an input pin. Returns true while it is selected." }, { "name": "NodeLinkCreated", "kind": "extension", "id": "extension|NodeLinkCreated|0|0|bool|ref int fromPin;ref int toPin||h7c136a895333c132f83c1d99cf5809163d5430c0060eaaedcf7bbe0f15f462bd", "signature": "bool NodeLinkCreated(ref int fromPin, ref int toPin)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "fromPin", "type": "ref int" }, { "name": "toPin", "type": "ref int" }], "summary": "What the user did this frame, one event per call; call them after cui_node_editor_begin (and up to the end of the frame)." }, { "name": "NodeLinkRemoved", "kind": "extension", "id": "extension|NodeLinkRemoved|0|0|bool|ref int linkId||h8cf7097abf407418a15af49e45ee086b240ec03b1e130c7888ce620da1bbadca", "signature": "bool NodeLinkRemoved(ref int linkId)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "linkId", "type": "ref int" }], "summary": "Part of cui_node_link \u2014 A link from an output pin to an input pin. Returns true while it is selected." }, { "name": "NodeOutput", "kind": "extension", "id": "extension|NodeOutput|0|0|bool|int pinId;UiText label;PinOpts o = default||h3750efacdd047bf840c0482278adf33fa6dd72ffa3acb6bf2c1afd789b95d351", "signature": "bool NodeOutput(int pinId, UiText label, PinOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "pinId", "type": "int" }, { "name": "label", "type": "UiText" }, { "name": "o", "type": "PinOpts", "default": "default" }], "summary": "A row with a pin on the left (input) or right (output). type picks the pin color from the series palette and limits links to pins of the same type (0 connects to anything). Returns true when the pin has a link." }, { "name": "Number", "kind": "method", "id": "method|Number|0|0|bool|UiText id;ref double value;double min;double max;NumberOpts o = default||h695eacf696437442db4c71e212e9d772037965f7b79fa0164581c32f72012f09", "signature": "bool Number(UiText id, ref double value, double min, double max, NumberOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref double" }, { "name": "min", "type": "double" }, { "name": "max", "type": "double" }, { "name": "o", "type": "NumberOpts", "default": "default" }] }, { "name": "OtpInput", "kind": "method", "id": "method|OtpInput|0|0|bool|UiText id;ref string value;int length||h8029c922f0c302147b4a9d172f51e477cf692656857072b2505965f1cc911eaf", "signature": "bool OtpInput(UiText id, ref string value, int length)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "length", "type": "int" }], "summary": "One-time code input: length boxes, buffer length \u002B 1." }, { "name": "Pagination", "kind": "extension", "id": "extension|Pagination|0|0|bool|UiText id;ref int page;int pageCount||h79ccb8aea896cd889c714acd8763edcf22dbbfb029a1dbd70ed9639354c6b6c8", "signature": "bool Pagination(UiText id, ref int page, int pageCount)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "page", "type": "ref int" }, { "name": "pageCount", "type": "int" }], "summary": "page is 0 based" }, { "name": "PopoverIsOpen", "kind": "extension", "id": "extension|PopoverIsOpen|0|0|bool|UiText id||h83722811a2be8261fbe93cc555b026a4a1e130ec294d2cd25013358d929a3c0e", "signature": "bool PopoverIsOpen(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_popover_is_open" }, { "name": "PropBool", "kind": "extension", "id": "extension|PropBool|0|0|bool|UiText label;ref bool value;PropOpts o = default||h121ac40771efea9741585563443f4c4687f7a10d137ffd9d268555b5501ddd64", "signature": "bool PropBool(UiText label, ref bool value, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref bool" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_bool_ex" }, { "name": "PropColor", "kind": "extension", "id": "extension|PropColor|0|0|bool|UiText label;ref Color value;PropOpts o = default||h6ca0bc5ddc35dae8cf9131bd28c26cd31e497e501164de0d50828fb7983a1cc2", "signature": "bool PropColor(UiText label, ref Color value, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref Color" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "A swatch and hex value that opens the color picker." }, { "name": "PropEnum", "kind": "extension", "id": "extension|PropEnum|0|0|bool|UiText label;ReadOnlySpan\u003Cstring\u003E items;ref int index;PropOpts o = default||h241aa42ffd01f5c7a9fadb861af4a608b0c8a014ae458b62692370d10cf009d8", "signature": "bool PropEnum(UiText label, ReadOnlySpan\u003Cstring\u003E items, ref int index, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_enum_ex" }, { "name": "PropFloat", "kind": "extension", "id": "extension|PropFloat|0|0|bool|UiText label;ref float value;PropOpts o = default||hc8efd7345903f342766598358e2e5c0998eb7933cf7f5cec0429b86873ff6ccf", "signature": "bool PropFloat(UiText label, ref float value, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_float_ex" }, { "name": "PropInt", "kind": "extension", "id": "extension|PropInt|0|0|bool|UiText label;ref int value;PropOpts o = default||hd93df8234e1afb0dba5df9a1531c8936c732948e17db67e12102617d568c305b", "signature": "bool PropInt(UiText label, ref int value, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref int" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_int_ex" }, { "name": "PropText", "kind": "extension", "id": "extension|PropText|0|0|bool|UiText label;ref string buf;int cap;PropOpts o = default||h46a1a717145b1f3a7800e8921d45ea9b002d8c2fdf5958fbf3c03f97fc47d1db", "signature": "bool PropText(UiText label, ref string buf, int cap, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "cui_prop_text_ex" }, { "name": "PropVec", "kind": "extension", "id": "extension|PropVec|0|0|bool|UiText label;ref float value;int components;PropOpts o = default||h57600f963270b3c592fd247d9b1f943533361ae615e7b6ca52e287fa289a67b2", "signature": "bool PropVec(UiText label, ref float value, int components, PropOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "components", "type": "int" }, { "name": "o", "type": "PropOpts", "default": "default" }], "summary": "Compact X, Y (Z, W) scrub fields side by side; value holds 2, 3 or 4 floats." }, { "name": "QueryBuilder", "kind": "extension", "id": "extension|QueryBuilder|0|0|bool|UiText id;ReadOnlySpan\u003CQueryField\u003E fields;Span\u003CQueryNode\u003E nodes;ref int count;QueryOpts o = default||hf3edbb954d2f83ed4e81805130275cc7c0ef85dc162f7e4b8a07a3d9d533090f", "signature": "bool QueryBuilder(UiText id, ReadOnlySpan\u003CQueryField\u003E fields, Span\u003CQueryNode\u003E nodes, ref int count, QueryOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "fields", "type": "ReadOnlySpan\u003CQueryField\u003E" }, { "name": "nodes", "type": "Span\u003CQueryNode\u003E" }, { "name": "count", "type": "ref int" }, { "name": "o", "type": "QueryOpts", "default": "default" }], "summary": "cui_query_builder_ex" }, { "name": "Radio", "kind": "extension", "id": "extension|Radio|0|0|bool|UiText label;ref int value;int option;CheckOpts o = default||h837451b9483026bc7e273c76e5251c0de524d770f182a8365674ac44553130ee", "signature": "bool Radio(UiText label, ref int value, int option, CheckOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref int" }, { "name": "option", "type": "int" }, { "name": "o", "type": "CheckOpts", "default": "default" }], "summary": "cui_radio_ex" }, { "name": "RadioCards", "kind": "extension", "id": "extension|RadioCards|0|0|bool|UiText id;ReadOnlySpan\u003CChoice\u003E choices;ref int index;RadioCardsOpts o = default||h277ecfd91b4ab6ad87556ac5585d5014c5f8f4b70743ded6f2d33b25b513c439", "signature": "bool RadioCards(UiText id, ReadOnlySpan\u003CChoice\u003E choices, ref int index, RadioCardsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "choices", "type": "ReadOnlySpan\u003CChoice\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "RadioCardsOpts", "default": "default" }], "summary": "Radio cards: larger selectable cards for choices that need a description (plans, templates)." }, { "name": "RadioGroup", "kind": "extension", "id": "extension|RadioGroup|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index||h13b5e8871098bf87979cd713e4fa844042e8066de15ba83cf7b5cda071897cee", "signature": "bool RadioGroup(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }], "summary": "cui_radio_group" }, { "name": "RangeCalendar", "kind": "extension", "id": "extension|RangeCalendar|0|0|bool|UiText id;ref DateRange range;int months||h8c74871e3d5b09aa52567046cfb0cacddba5d6bd45af5a0343aa6ea880da3344", "signature": "bool RangeCalendar(UiText id, ref DateRange range, int months)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "range", "type": "ref DateRange" }, { "name": "months", "type": "int" }], "summary": "One or two months side by side; click a start and an end." }, { "name": "RangeSlider", "kind": "extension", "id": "extension|RangeSlider|0|0|bool|UiText label;ref float lo;ref float hi;float min;float max||h431a1c22347795ecfaf7422d776daf2552ad13b1bbafc0b34e7ddfbb9f6fca1e", "signature": "bool RangeSlider(UiText label, ref float lo, ref float hi, float min, float max)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "lo", "type": "ref float" }, { "name": "hi", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }], "summary": "cui_range_slider" }, { "name": "Rating", "kind": "extension", "id": "extension|Rating|0|0|bool|UiText id;ref int value;int max = 5||ha54ef468c924f3613d361d9d3e4ba18c9bed4ef0f7d7dd855532a052b89231ce", "signature": "bool Rating(UiText id, ref int value, int max = 5)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref int" }, { "name": "max", "type": "int", "default": "5" }], "summary": "cui_rating" }, { "name": "ReorderEnd", "kind": "method", "id": "method|ReorderEnd|0|0|bool|||h289d889249190a219f4708d3f6a34916df30d8dccdd623b1af17d06cf7ad4fe9", "signature": "bool ReorderEnd()" }, { "name": "RulerSlider", "kind": "extension", "id": "extension|RulerSlider|0|0|bool|UiText label;ref float value;float min;float max;RulerOpts o = default||hda8dec175710635b7de7215517d587b9a5332ed440922d693ed02813d9c4deb7", "signature": "bool RulerSlider(UiText label, ref float value, float min, float max, RulerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "RulerOpts", "default": "default" }], "summary": "Ruler slider: a tape measure that slides under a fixed marker, with momentum and snapping to step." }, { "name": "Scrub", "kind": "extension", "id": "extension|Scrub|0|0|bool|UiText label;ref float value;float min;float max;ScrubOpts o = default||h816f9787704b09241842573d59264e0cc5674f4a764e0ae2054b721f3ad20a7b", "signature": "bool Scrub(UiText label, ref float value, float min, float max, ScrubOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "ScrubOpts", "default": "default" }], "summary": "Scrub field: drag sideways anywhere on it to change the value (Shift for fine steps), or click to type a number. Arrow keys step when focused." }, { "name": "Segmented", "kind": "extension", "id": "extension|Segmented|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index;SegmentedOpts o = default||h8452b4d90fbd938f7492782df2bfd7e49e6f17b79bb32a7fa92536dbbc52bbfb", "signature": "bool Segmented(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index, SegmentedOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "SegmentedOpts", "default": "default" }], "summary": "Segmented control: a row of options with a gliding highlight." }, { "name": "Select", "kind": "extension", "id": "extension|Select|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index;SelectOpts o = default||h4546d9051044aa80f649b171897799d53c415b998250abdc626bf84e5341bea3", "signature": "bool Select(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index, SelectOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "SelectOpts", "default": "default" }], "summary": "cui_select_ex" }, { "name": "Shortcut", "kind": "method", "id": "method|Shortcut|0|0|bool|Mods mods;Key key||h23544d98ad9364c783897d23b07d28fd4c4889f44ac4f6b734142ae19cee295a", "signature": "bool Shortcut(Mods mods, Key key)", "parameters": [{ "name": "mods", "type": "Mods" }, { "name": "key", "type": "Key" }] }, { "name": "ShortcutRecorder", "kind": "extension", "id": "extension|ShortcutRecorder|0|0|bool|UiText id;ref KeyCombo combo;ShortcutRecorderOpts o = default||h22c067848057da16592bf471e38a3d5c8d3e7a976928a24a34dda5e650586e2a", "signature": "bool ShortcutRecorder(UiText id, ref KeyCombo combo, ShortcutRecorderOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "combo", "type": "ref KeyCombo" }, { "name": "o", "type": "ShortcutRecorderOpts", "default": "default" }], "summary": "Shortcut recorder: click and press a key combination to record it. Backspace clears, Esc cancels. Returns true when the combination changed. cui_shortcut_label formats a combination (\u0022Ctrl Shift K\u0022)." }, { "name": "SignaturePad", "kind": "extension", "id": "extension|SignaturePad|0|0|bool|UiText id;SignatureOpts o = default||h26a7180ac812cfc40208765b73de3283d8bdc2a773db48e467c36bfac61e2f47", "signature": "bool SignaturePad(UiText id, SignatureOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "SignatureOpts", "default": "default" }], "summary": "Signature pad: draw with the mouse or a pen. The strokes are kept for you; read them with cui_signature_points (stroke_ends[i] is one past the last point of stroke i)." }, { "name": "Slider", "kind": "extension", "id": "extension|Slider|0|0|bool|UiText label;ref float value;float min;float max;SliderOpts o = default||h07890e859be8c8053afac54f6a7ef888728ac54358e77cca1a0c6f9d5936fcd0", "signature": "bool Slider(UiText label, ref float value, float min, float max, SliderOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "SliderOpts", "default": "default" }], "summary": "Elastic slider: the track stretches like rubber when dragged past its ends." }, { "name": "StatusBarItem", "kind": "extension", "id": "extension|StatusBarItem|0|0|bool|UiText label;StatusItemOpts o = default||h35fa1b9b36f005ceff913dc858202baee2f50d4678537b369e987582020f4d84", "signature": "bool StatusBarItem(UiText label, StatusItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "o", "type": "StatusItemOpts", "default": "default" }], "summary": "A small clickable item (\u0022Ln 12, Col 4\u0022, \u0022UTF-8\u0022). Returns true when clicked." }, { "name": "StatusButton", "kind": "extension", "id": "extension|StatusButton|0|0|bool|UiText label;Status status;StatusButtonOpts o = default||h5c9d9e2cd49f70a00398d2fe51ccf1933f78becdf2d7e5b610c5e2427ee30722", "signature": "bool StatusButton(UiText label, Status status, StatusButtonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "status", "type": "Status" }, { "name": "o", "type": "StatusButtonOpts", "default": "default" }], "summary": "cui_status_button_ex" }, { "name": "Switch", "kind": "extension", "id": "extension|Switch|0|0|bool|UiText label;ref bool value;CheckOpts o = default||he58bf080044a84430ae1c50aae77072ba3e8bc1dc7ad4f8576f39e74324cd486", "signature": "bool Switch(UiText label, ref bool value, CheckOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "ref bool" }, { "name": "o", "type": "CheckOpts", "default": "default" }], "summary": "cui_switch_ex" }, { "name": "TabBar", "kind": "extension", "id": "extension|TabBar|0|0|bool|UiText id;ReadOnlySpan\u003CTabBarItem\u003E items;ref int selected;TabBarOpts o = default||h3b532a1edd39eaf1a6db4278f4c3c26674c9a67777ba72dd890ca8c67ecbb0d8", "signature": "bool TabBar(UiText id, ReadOnlySpan\u003CTabBarItem\u003E items, ref int selected, TabBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CTabBarItem\u003E" }, { "name": "selected", "type": "ref int" }, { "name": "o", "type": "TabBarOpts", "default": "default" }], "summary": "Bottom tab bar for compact layouts, with a pill that glides to the selection." }, { "name": "TableRow", "kind": "extension", "id": "extension|TableRow|0|0|bool|bool selected||h5862a1074065231ee67e616f36b6ef2708e5a53d06e9c647dfc4e50f9f54feb9", "signature": "bool TableRow(bool selected)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "selected", "type": "bool" }], "summary": "Begin a row. Returns true when the row is clicked." }, { "name": "Tabs", "kind": "extension", "id": "extension|Tabs|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index;TabsOpts o = default||h44602f1d285b43ccb2a4a3f04fc10eeb9824d034d9c4786918ec03417b25d800", "signature": "bool Tabs(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index, TabsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "TabsOpts", "default": "default" }], "summary": "cui_tabs_ex" }, { "name": "TagInput", "kind": "method", "id": "method|TagInput|0|0|bool|UiText id;ref string value;TagOpts o = default||h7d78f96fc27b022e7ce11dd6a4742470284f57dc2e17866e76fb8b61780bf9f0", "signature": "bool TagInput(UiText id, ref string value, TagOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "ref string" }, { "name": "o", "type": "TagOpts", "default": "default" }], "summary": "Comma-separated tags in one field; enter or comma adds, backspace removes." }, { "name": "ThemeSwitcher", "kind": "extension", "id": "extension|ThemeSwitcher|0|0|bool|ref int mode;bool withSystem||h6ac2911103fa89f29df34fe5abd3737f62b03fad01ac2c5f7ce9f96f81466e7b", "signature": "bool ThemeSwitcher(ref int mode, bool withSystem)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "mode", "type": "ref int" }, { "name": "withSystem", "type": "bool" }], "summary": "Theme switcher: light, dark and (optionally) system, as a compact icon segmented control. mode is 0 light, 1 dark, 2 system. Light and dark are applied for you; for system call cui_set_theme with the OS setting. Returns true when mode changed." }, { "name": "ThemeToggle", "kind": "extension", "id": "extension|ThemeToggle|0|0|bool|||hac003993a346e758ec03a7b5cae2fbd886929a7ae077d9f9459a78e6cb9e9028", "signature": "bool ThemeToggle()", "extensionOn": "CuiSharp.Ui", "summary": "Sun and moon icon button that toggles the theme with a morph." }, { "name": "TimeDial", "kind": "extension", "id": "extension|TimeDial|0|0|bool|UiText id;ref int hour;ref int minute;float size||hc81f9c9c6cda6a218a1a97579124c3a6415d5a3bec246c2545e9638a3cbefadc", "signature": "bool TimeDial(UiText id, ref int hour, ref int minute, float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "hour", "type": "ref int" }, { "name": "minute", "type": "ref int" }, { "name": "size", "type": "float" }], "summary": "Time dial: a clock face. Drag the hand to set hours, then minutes." }, { "name": "TimePicker", "kind": "extension", "id": "extension|TimePicker|0|0|bool|UiText id;ref int hour;ref int minute;TimeOpts o = default||h2f5e91438efc0191e949769048849a3fb8bb629993aef37fa50790655d5a16e2", "signature": "bool TimePicker(UiText id, ref int hour, ref int minute, TimeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "hour", "type": "ref int" }, { "name": "minute", "type": "ref int" }, { "name": "o", "type": "TimeOpts", "default": "default" }], "summary": "Time picker: a field that opens hour and minute columns. hour is 0..23." }, { "name": "ToastActionClicked", "kind": "extension", "id": "extension|ToastActionClicked|0|0|bool|int handle||h80802ec80123dda69208be2582b05ccc3d887063aa242cdb0a7d5f946417cce1", "signature": "bool ToastActionClicked(int handle)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "handle", "type": "int" }], "summary": "cui_toast_action_clicked" }, { "name": "ToggleGroup", "kind": "method", "id": "method|ToggleGroup|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E labels;Span\u003Cbool\u003E values;ToggleGroupOpts o = default||hbf4630396185f73a4900042d74fe62f684385217a55457d20067677982015437", "signature": "bool ToggleGroup(UiText id, ReadOnlySpan\u003Cstring\u003E labels, Span\u003Cbool\u003E values, ToggleGroupOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "labels", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "values", "type": "Span\u003Cbool\u003E" }, { "name": "o", "type": "ToggleGroupOpts", "default": "default" }], "summary": "A row of toggle buttons sharing one bool per label. Independent by default; Exclusive makes them behave like radio buttons. Returns true on the frame an entry flips." }, { "name": "ToolbarButton", "kind": "extension", "id": "extension|ToolbarButton|0|0|bool|UiText icon;ref bool toggle;ToolOpts o = default||h280488daf404cebc0318d20c1e09b3000ff82103111371b7fdf8c2735fe2c970", "signature": "bool ToolbarButton(UiText icon, ref bool toggle, ToolOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "toggle", "type": "ref bool" }, { "name": "o", "type": "ToolOpts", "default": "default" }], "summary": "cui_toolbar_button_ex" }, { "name": "TreeCell", "kind": "extension", "id": "extension|TreeCell|0|0|bool|UiText label;int depth;bool hasChildren;ref bool open;UiText icon||h7d87cfa9d747ede3646c93ffc4296bb6d158f59a36670c943b38b8891f9a08bd", "signature": "bool TreeCell(UiText label, int depth, bool hasChildren, ref bool open, UiText icon)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "depth", "type": "int" }, { "name": "hasChildren", "type": "bool" }, { "name": "open", "type": "ref bool" }, { "name": "icon", "type": "UiText" }], "summary": "Tree cell: indentation, a disclosure chevron and a label, for tree tables (use it in a table or grid cell). Returns true when *open toggled." }, { "name": "TreeClicked", "kind": "extension", "id": "extension|TreeClicked|0|0|bool|||he0d6c1a473304bfa16c30035268639d026f37ddeade6a53e36b6a43056ea0039", "signature": "bool TreeClicked()", "extensionOn": "CuiSharp.Ui", "summary": "the node created by the last cui_tree_begin was clicked" }, { "name": "Typewriter", "kind": "extension", "id": "extension|Typewriter|0|0|bool|UiText id;UiText text;TextFxOpts o = default||hd2793d1d9701d6e1c2de232ed4163f8a0a17de8606e1a0c00033798e26804d7b", "signature": "bool Typewriter(UiText id, UiText text, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "Types the text out. When the text grows (streamed tokens) it carries on from where it was; other changes start over. Returns true once complete." }, { "name": "VoiceOrb", "kind": "extension", "id": "extension|VoiceOrb|0|0|bool|UiText id;VoiceState state;float level;VoiceOrbOpts o = default||h55678c858554bd6ffbc3fbad4b03aeb90fff9d582a2dad8b10090a9496cf7d41", "signature": "bool VoiceOrb(UiText id, VoiceState state, float level, VoiceOrbOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "state", "type": "VoiceState" }, { "name": "level", "type": "float" }, { "name": "o", "type": "VoiceOrbOpts", "default": "default" }], "summary": "cui_voice_orb_ex" }, { "name": "WantsKeyboard", "kind": "property", "id": "property|WantsKeyboard|0|0|bool||get;|h9fd1d2033ea34ec49759c84f9a199c15d92ad7e28a6a1a4cc3ebee535bec764b", "signature": "bool WantsKeyboard { get; }" }, { "name": "WantsMouse", "kind": "property", "id": "property|WantsMouse|0|0|bool||get;|h88ad7771300bfdd824d0527cc05ab2978f5a741b34494adb9660c29ae0fd53b7", "signature": "bool WantsMouse { get; }", "summary": "True when the pointer is over this window and the UI wants it." }, { "name": "Waveform", "kind": "extension", "id": "extension|Waveform|0|0|bool|UiText id;ReadOnlySpan\u003Cfloat\u003E peaks;ref float progress;WaveformOpts o = default||h82b5eb85d1dd0e891471303dae6af8ef45f993a4522c265b5380640be5f95a34", "signature": "bool Waveform(UiText id, ReadOnlySpan\u003Cfloat\u003E peaks, ref float progress, WaveformOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "peaks", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "progress", "type": "ref float" }, { "name": "o", "type": "WaveformOpts", "default": "default" }], "summary": "Waveform: bars from peaks (0..1). With progress, the played part is colored and clicking or dragging seeks; returns true when it did." }, { "name": "WheelPicker", "kind": "extension", "id": "extension|WheelPicker|0|0|bool|UiText id;ReadOnlySpan\u003Cstring\u003E items;ref int index;WheelOpts o = default||h6e20c98f3670a089db93c4a37a910bd23a7f6b3a8ad5c2cd67e1294d58a2fae4", "signature": "bool WheelPicker(UiText id, ReadOnlySpan\u003Cstring\u003E items, ref int index, WheelOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "index", "type": "ref int" }, { "name": "o", "type": "WheelOpts", "default": "default" }], "summary": "Wheel picker: a drum of options that you drag, scroll or arrow through. Several side by side make a date or time reel. join_left / join_right square off the selection band so wheels placed side by side share one continuous band." }, { "name": "Time", "kind": "property", "id": "property|Time|0|0|double||get;|h59d804a6c66b43aad6ffe38fb8d686d405da1f1e73a127a3af738e7ba55df397", "signature": "double Time { get; }", "summary": "Seconds since the app started. Monotonic; use it for animation phases." }, { "name": "Animate", "kind": "method", "id": "method|Animate|0|0|float|UiText id;float target||h6aa8f80b2f784f8d21be090f3514e71ea8c5c9e820fb1fc041073b0956552fa8", "signature": "float Animate(UiText id, float target)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "target", "type": "float" }], "summary": "Moves a value toward target with a spring, keyed by id." }, { "name": "AnimateSpring", "kind": "method", "id": "method|AnimateSpring|0|0|float|UiText id;float target;float duration;float bounce||h18961b791dced18013209a15d6f4c3ea989233c2d507d6986cf80ff8eea91b47", "signature": "float AnimateSpring(UiText id, float target, float duration, float bounce)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "target", "type": "float" }, { "name": "duration", "type": "float" }, { "name": "bounce", "type": "float" }], "summary": "Moves a value toward target with a spring of the given duration and bounce." }, { "name": "DeltaTime", "kind": "property", "id": "property|DeltaTime|0|0|float||get;|h9b38e45e1e2ffd64837bd659bc02203c5bcd38701ca6046589022c3424ef1a09", "signature": "float DeltaTime { get; }", "summary": "Seconds since the previous frame, clamped by the host." }, { "name": "DpiScale", "kind": "property", "id": "property|DpiScale|0|0|float||get;|hd6fea6745004ce2bacbb8eac54eebd74e77705ff2605b31ccb4a18c241ebb063", "signature": "float DpiScale { get; }", "summary": "Device pixels per logical point for the window this frame draws into." }, { "name": "ActivityRings", "kind": "extension", "id": "extension|ActivityRings|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E rings;RingsOpts o = default||he739303ba236c8b2947fe3ee08443b09f019e41b8acac0f7da681d197ae0307e", "signature": "int ActivityRings(UiText id, ReadOnlySpan\u003CVizItem\u003E rings, RingsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "rings", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "RingsOpts", "default": "default" }], "summary": "Activity rings: concentric progress rings; values past 1 keep winding." }, { "name": "AgentPlan", "kind": "extension", "id": "extension|AgentPlan|0|0|int|UiText id;ReadOnlySpan\u003CPlanStep\u003E steps;AgentPlanOpts o = default||h6067d2501a7a26bcccda0db7d672b245a2fcff12d68ede6c491d265a45d1b4b9", "signature": "int AgentPlan(UiText id, ReadOnlySpan\u003CPlanStep\u003E steps, AgentPlanOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "steps", "type": "ReadOnlySpan\u003CPlanStep\u003E" }, { "name": "o", "type": "AgentPlanOpts", "default": "default" }], "summary": "Agent plan: steps with their status on a connected rail, and progress." }, { "name": "AvatarUpload", "kind": "extension", "id": "extension|AvatarUpload|0|0|int|UiText id;UiText name;ref ulong image;float size||h2032bcd7f55566afffa2cde5d86987aa5b1a36719844c8d755d13b19b16255bb", "signature": "int AvatarUpload(UiText id, UiText name, ref ulong image, float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "name", "type": "UiText" }, { "name": "image", "type": "ref ulong" }, { "name": "size", "type": "float" }], "summary": "Avatar upload: a round avatar that takes a dropped image, with a camera badge on hover. Returns 1 when *image changed, -1 when clicked (browse), 0 otherwise. A dropped image is loaded with cui_image_load." }, { "name": "BarList", "kind": "extension", "id": "extension|BarList|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E items;BarListOpts o = default||h0e2abad96db38540b47d6c74f2cc68369ed40c046f6bf6c2d2dea3c10d465680", "signature": "int BarList(UiText id, ReadOnlySpan\u003CVizItem\u003E items, BarListOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "BarListOpts", "default": "default" }], "summary": "Bar list: ranked horizontal bars. Rows are keyed by label, so when the values change the bars grow and the rows slide to their new rank." }, { "name": "Breadcrumb", "kind": "extension", "id": "extension|Breadcrumb|0|0|int|ReadOnlySpan\u003Cstring\u003E items||h7e5435f64395bbaf15f18d4923a996c88ca3bd79318405fd33733751c65e8682", "signature": "int Breadcrumb(ReadOnlySpan\u003Cstring\u003E items)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }], "summary": "returns clicked index or -1" }, { "name": "CalendarHeatmap", "kind": "extension", "id": "extension|CalendarHeatmap|0|0|int|UiText id;Date start;ReadOnlySpan\u003Cfloat\u003E values;CalendarHeatmapOpts o = default||hdf61b9c82e018ac6c9a5f0797950a2a53c4826b47594dd073d18121a1691e796", "signature": "int CalendarHeatmap(UiText id, Date start, ReadOnlySpan\u003Cfloat\u003E values, CalendarHeatmapOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "start", "type": "Date" }, { "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "o", "type": "CalendarHeatmapOpts", "default": "default" }], "summary": "Calendar heatmap: one cell per day from start, weeks as columns, in five levels, with month and weekday labels and a Less / More legend." }, { "name": "Candlestick", "kind": "extension", "id": "extension|Candlestick|0|0|int|UiText id;ReadOnlySpan\u003CCandle\u003E candles;CandlestickOpts o = default||hdab8fd71be859d6cc56de05a9e2feb81a2532c176230e766fa2ba67fa5260e3c", "signature": "int Candlestick(UiText id, ReadOnlySpan\u003CCandle\u003E candles, CandlestickOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "candles", "type": "ReadOnlySpan\u003CCandle\u003E" }, { "name": "o", "type": "CandlestickOpts", "default": "default" }], "summary": "Returns the candle under the crosshair (pointer or keys), or -1." }, { "name": "CardStack", "kind": "extension", "id": "extension|CardStack|0|0|int|UiText id;int count;DrawFn body;CardStackOpts o = default||h2dadbccb1e5391a98cfda3530cd5b460c17e79dd01b6927d2346f58287b56332", "signature": "int CardStack(UiText id, int count, DrawFn body, CardStackOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "count", "type": "int" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "CardStackOpts", "default": "default" }], "summary": "Card stack: a deck where the top card can be flicked away left or right. Build \u0060count\u0060 cards; card 0 is the top. end returns -1 or 1 on the frame the top card leaves (to the left or right), else 0. The end call reports which card in the stack is active, or -1, so the body overload returns it." }, { "name": "Checklist", "kind": "extension", "id": "extension|Checklist|0|0|int|UiText id;ReadOnlySpan\u003CCheckStep\u003E steps;ChecklistOpts o = default||hb1cdf5bee54759618ba4c2e6386ab30794ff911948e833f0610afb911e63f554", "signature": "int Checklist(UiText id, ReadOnlySpan\u003CCheckStep\u003E steps, ChecklistOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "steps", "type": "ReadOnlySpan\u003CCheckStep\u003E" }, { "name": "o", "type": "ChecklistOpts", "default": "default" }], "summary": "Onboarding checklist: a card with progress and steps. The first open step shows its description and action. Clicking a step\u0027s circle toggles done. Returns the index whose action was clicked, or -1." }, { "name": "CommandPalette", "kind": "extension", "id": "extension|CommandPalette|0|0|int|ref bool open;ReadOnlySpan\u003CCommand\u003E commands||h001b59aa0ea6df8a0ea3d57d57bc1d6c25690db136f11ce1d794c93d9c7bbfc3", "signature": "int CommandPalette(ref bool open, ReadOnlySpan\u003CCommand\u003E commands)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "open", "type": "ref bool" }, { "name": "commands", "type": "ReadOnlySpan\u003CCommand\u003E" }], "summary": "Spotlight style command palette. Returns the index of the chosen command, or -1. Open it with a shortcut: if (cui_shortcut(ui, CUI_MOD_PRIMARY, CUI_KEY_K)) open = true;" }, { "name": "DiffRows", "kind": "extension", "id": "extension|DiffRows|0|0|int|UiText id;Span\u003CDiffRow\u003E rows;int first = default||h5c94a97ef7958912de5bdb07673a9402664eef62f0238701e95229d154b6ac95", "signature": "int DiffRows(UiText id, Span\u003CDiffRow\u003E rows, int first = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "rows", "type": "Span\u003CDiffRow\u003E" }, { "name": "first", "type": "int", "default": "default" }], "summary": "Copies up to rows.Length of the diff view\u0027s rows into rows, starting at row first." }, { "name": "DroppedFileCount", "kind": "property", "id": "property|DroppedFileCount|0|0|int||get;|h5421210a1933793fbee263cb811628208321526d954709ce2c6f023389dc8e5d", "signature": "int DroppedFileCount { get; }", "summary": "Number of files the window is tracking as dropped; a dropzone reports them first." }, { "name": "Dropzone", "kind": "extension", "id": "extension|Dropzone|0|0|int|UiText id;DropzoneOpts o = default||h1a4c314252379bc356942c2d624bf8dc2388e096a816cda96c08748d80f874cf", "signature": "int Dropzone(UiText id, DropzoneOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "o", "type": "DropzoneOpts", "default": "default" }], "summary": "Dropzone: drop files from the OS, or click to browse. Returns the number of files dropped on it this frame (read them with cui_dropped_file), -1 when clicked (open a file dialog), 0 otherwise. accept filters by extension, e.g. \u0022png;jpg;pdf\u0022." }, { "name": "Funnel", "kind": "extension", "id": "extension|Funnel|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E stages;FunnelOpts o = default||he5202d3e37c12c123db9bc8dddaf33f25d6ee0d1790d21a12846d2233ba2f5e4", "signature": "int Funnel(UiText id, ReadOnlySpan\u003CVizItem\u003E stages, FunnelOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "stages", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "FunnelOpts", "default": "default" }], "summary": "Funnel: stages narrowing by value, with the conversion between them." }, { "name": "Gantt", "kind": "extension", "id": "extension|Gantt|0|0|int|UiText id;Span\u003CGanttTask\u003E tasks;Date origin;int days;GanttOpts o = default||h6405eb5f36078bd6c78b652a408e39c0fdb1c3a89355a3c7e0368f5d2306981a", "signature": "int Gantt(UiText id, Span\u003CGanttTask\u003E tasks, Date origin, int days, GanttOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "tasks", "type": "Span\u003CGanttTask\u003E" }, { "name": "origin", "type": "Date" }, { "name": "days", "type": "int" }, { "name": "o", "type": "GanttOpts", "default": "default" }], "summary": "Gantt chart: a task list beside a timeline of bars. Drag a bar to move it, its ends to resize it. Dependencies are drawn as elbow arrows. Returns the index of a clicked task, or -1." }, { "name": "Heatmap", "kind": "extension", "id": "extension|Heatmap|0|0|int|UiText id;ReadOnlySpan\u003Cfloat\u003E values;int rows;int cols;HeatmapOpts o = default||hb23a8befed5cb93e645e80d3a23d15bd4f06bdbf22a6f65815edb1bef4129225", "signature": "int Heatmap(UiText id, ReadOnlySpan\u003Cfloat\u003E values, int rows, int cols, HeatmapOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "rows", "type": "int" }, { "name": "cols", "type": "int" }, { "name": "o", "type": "HeatmapOpts", "default": "default" }], "summary": "Heatmap: a rows x cols matrix (values[row * cols \u002B col]) on one hue, light to dark, with a scale below." }, { "name": "InlineEdit", "kind": "extension", "id": "extension|InlineEdit|0|0|int|UiText id;ref string buf;int cap = 256;InlineEditOpts o = default||hdc2fcc11f00fc875b370e784540495eec9451da64bf16b076e0bf19bfc7c475a", "signature": "int InlineEdit(UiText id, ref string buf, int cap = 256, InlineEditOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int", "default": "256" }, { "name": "o", "type": "InlineEditOpts", "default": "default" }], "summary": "Inline edit: text that turns into a field in place. Click (or Enter when focused) to edit, Enter or clicking away saves, Esc cancels. Returns CUI_CHANGED when an edit is committed." }, { "name": "PasswordStrength", "kind": "extension", "id": "extension|PasswordStrength|0|0|int|UiText password||h485b27b320ae208ea07b64ec8e1f317ab018ad6465c8ddb02cd01a4424689adb", "signature": "int PasswordStrength(UiText password)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "password", "type": "UiText" }], "summary": "Password strength meter (0 weak .. 4 strong). Returns the score." }, { "name": "PromptSuggestions", "kind": "extension", "id": "extension|PromptSuggestions|0|0|int|UiText id;ReadOnlySpan\u003CPromptSuggestion\u003E items;PromptSuggestionsOpts o = default||ha7ba62105e302f4fa64dd30bf005d6217ab47f44b8de4dcb382d55bb8686de65", "signature": "int PromptSuggestions(UiText id, ReadOnlySpan\u003CPromptSuggestion\u003E items, PromptSuggestionsOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CPromptSuggestion\u003E" }, { "name": "o", "type": "PromptSuggestionsOpts", "default": "default" }], "summary": "Prompt suggestions: cards to start a conversation with." }, { "name": "RadarChart", "kind": "extension", "id": "extension|RadarChart|0|0|int|UiText id;ReadOnlySpan\u003CSeries\u003E series;ReadOnlySpan\u003Cstring\u003E axes;RadarOpts o = default||hc3ad2df41c9c6b26dc90f3b916ae531651d598ceef8ab541dd035331b9ea768a", "signature": "int RadarChart(UiText id, ReadOnlySpan\u003CSeries\u003E series, ReadOnlySpan\u003Cstring\u003E axes, RadarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "ReadOnlySpan\u003CSeries\u003E" }, { "name": "axes", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "o", "type": "RadarOpts", "default": "default" }], "summary": "Radar chart: series over shared axes (series[i].values[axis])." }, { "name": "Reactions", "kind": "extension", "id": "extension|Reactions|0|0|int|UiText id;Span\u003CReaction\u003E items||h7528193af8d452456269a4867874808d1a14d9b9b10f82f0f851537b4f5fcc31", "signature": "int Reactions(UiText id, Span\u003CReaction\u003E items)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "Span\u003CReaction\u003E" }], "summary": "Reactions: icon pills with counts. Clicking toggles \u0060active\u0060 and adjusts the count. Returns the index that changed, or -1." }, { "name": "Sankey", "kind": "extension", "id": "extension|Sankey|0|0|int|UiText id;ReadOnlySpan\u003Cstring\u003E nodes;ReadOnlySpan\u003CSankeyLink\u003E links;SankeyOpts o = default||h54e60f881596c8425c36f81063bcf3bca0ae525a5cb9acb9d9291c93343d590b", "signature": "int Sankey(UiText id, ReadOnlySpan\u003Cstring\u003E nodes, ReadOnlySpan\u003CSankeyLink\u003E links, SankeyOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "nodes", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "links", "type": "ReadOnlySpan\u003CSankeyLink\u003E" }, { "name": "o", "type": "SankeyOpts", "default": "default" }], "summary": "Sankey: flows between nodes; columns follow the links from the sources." }, { "name": "ScatterChart", "kind": "extension", "id": "extension|ScatterChart|0|0|int|UiText id;ReadOnlySpan\u003CScatterSeries\u003E series;ScatterOpts o = default||hff3593e05140bd9fcdc8f3c4f996ca064ecb18c59024984a51431c04b86145eb", "signature": "int ScatterChart(UiText id, ReadOnlySpan\u003CScatterSeries\u003E series, ScatterOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "ReadOnlySpan\u003CScatterSeries\u003E" }, { "name": "o", "type": "ScatterOpts", "default": "default" }], "summary": "Scatter (or bubble) chart: points per series, optional sizes." }, { "name": "SourceList", "kind": "extension", "id": "extension|SourceList|0|0|int|UiText id;ReadOnlySpan\u003CSource\u003E sources||h6f59cfee8fa72dc7eca177af354e0a6f666d1ec1975ff987f31f00841dd57a41", "signature": "int SourceList(UiText id, ReadOnlySpan\u003CSource\u003E sources)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "sources", "type": "ReadOnlySpan\u003CSource\u003E" }], "summary": "cui_source_list" }, { "name": "SpeedDial", "kind": "extension", "id": "extension|SpeedDial|0|0|int|UiText id;ReadOnlySpan\u003CSpeedAction\u003E actions;SpeedDialOpts o = default||h8f3dcc4f3e218426dd87000bfe603cd7a2a64cc3cdaa021cbc2dea064de87347", "signature": "int SpeedDial(UiText id, ReadOnlySpan\u003CSpeedAction\u003E actions, SpeedDialOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "actions", "type": "ReadOnlySpan\u003CSpeedAction\u003E" }, { "name": "o", "type": "SpeedDialOpts", "default": "default" }], "summary": "Speed dial: a round floating action button that fans out related actions. Returns the chosen action index, or -1." }, { "name": "SplitBar", "kind": "extension", "id": "extension|SplitBar|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E items;SplitBarOpts o = default||h16bc37b28b54a3959b1ffffa5d212e2ce5767fa384b82e9693cfc0cf3ecba083", "signature": "int SplitBar(UiText id, ReadOnlySpan\u003CVizItem\u003E items, SplitBarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "SplitBarOpts", "default": "default" }], "summary": "Split bar: one bar split into parts, with a legend of values and shares." }, { "name": "SplitButton", "kind": "extension", "id": "extension|SplitButton|0|0|int|UiText label;ReadOnlySpan\u003Cstring\u003E items;SplitButtonOpts o = default||hab5170280449718e8bb4e18299a9939e8c4585d7f457498a1884dce52f1a5b83", "signature": "int SplitButton(UiText label, ReadOnlySpan\u003Cstring\u003E items, SplitButtonOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "o", "type": "SplitButtonOpts", "default": "default" }], "summary": "Split button: a main action with a menu of related actions on the chevron. Returns 0 when the main part is clicked, 1 \u002B i when menu item i is chosen and -1 otherwise." }, { "name": "SwipeItem", "kind": "extension", "id": "extension|SwipeItem|0|0|int|UiText id;ReadOnlySpan\u003CSwipeAction\u003E left;ReadOnlySpan\u003CSwipeAction\u003E right;DrawFn body||hde404a799a1b468b7df4ac9ce65a247c02d83d6788917c5eb60378cb5ebf709d", "signature": "int SwipeItem(UiText id, ReadOnlySpan\u003CSwipeAction\u003E left, ReadOnlySpan\u003CSwipeAction\u003E right, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "left", "type": "ReadOnlySpan\u003CSwipeAction\u003E" }, { "name": "right", "type": "ReadOnlySpan\u003CSwipeAction\u003E" }, { "name": "body", "type": "DrawFn" }], "summary": "Swipe actions: drag a row sideways (or swipe on a trackpad) to reveal actions behind it. A long swipe triggers the first action. The row content goes between begin and end; end returns the chosen action: 0..left_count-1 for left actions, 100 \u002B i for right actions, or -1. The end call reports which swipe action was taken, or -1, so the body overload returns it." }, { "name": "Toast", "kind": "extension", "id": "extension|Toast|0|0|int|UiText title;ToastOpts o = default||hf3201662ddfe1d84b58e5851658ccd1e36ba6d53acdb101b80df283a2f0ee264", "signature": "int Toast(UiText title, ToastOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "ToastOpts", "default": "default" }], "summary": "Queue a toast. Returns a handle; cui_toast_action_clicked(handle) tells whether its action button was pressed." }, { "name": "Toc", "kind": "extension", "id": "extension|Toc|0|0|int|UiText scrollId;ReadOnlySpan\u003CTocItem\u003E items||h226d5cf4f0b7b58f3c7df69b1762d483d977d46968c43d4468a7db886e3771f0", "signature": "int Toc(UiText scrollId, ReadOnlySpan\u003CTocItem\u003E items)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "scrollId", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CTocItem\u003E" }], "summary": "Table of contents for a scroll area: highlights the section in view on a progress rail, and scrolls to a section when clicked. Put cui_toc_anchor(ui, \u0022anchor\u0022) at each heading inside the scroll area, and call cui_toc in the same scope as the scroll area. Returns the active index." }, { "name": "TreeTableDepth", "kind": "extension", "id": "extension|TreeTableDepth|0|0|int|||h6f4316e2e33c3ebb9b14932b5fc588d50a9b4b5b52a70f672523341f85c34b6b", "signature": "int TreeTableDepth()", "extensionOn": "CuiSharp.Ui", "summary": "depth of the current row, 0 at the top" }, { "name": "TreeTableRow", "kind": "extension", "id": "extension|TreeTableRow|0|0|int|||h6f0d82997cbd7dfd529bd1d04c7fd279173e864794b9acde1a6f8cf0deb80e45", "signature": "int TreeTableRow()", "extensionOn": "CuiSharp.Ui", "summary": "The next row in view: returns its node, or -1 when done. Then build its cells: cui_tree_table_name first, then cui_data_grid_cell(_text)." }, { "name": "Treemap", "kind": "extension", "id": "extension|Treemap|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E items;TreemapOpts o = default||hea14dd60cbeb36d78c486e9549f6917d7d431d80c23f54fe86c191e4e647a6e4", "signature": "int Treemap(UiText id, ReadOnlySpan\u003CVizItem\u003E items, TreemapOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "TreemapOpts", "default": "default" }], "summary": "cui_treemap_ex" }, { "name": "Waffle", "kind": "extension", "id": "extension|Waffle|0|0|int|UiText id;ReadOnlySpan\u003CVizItem\u003E items;WaffleOpts o = default||hbb9c8a5b82ec5547e3c36f001de128742bbee117c0a3da39be26ed99600e3617", "signature": "int Waffle(UiText id, ReadOnlySpan\u003CVizItem\u003E items, WaffleOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CVizItem\u003E" }, { "name": "o", "type": "WaffleOpts", "default": "default" }], "summary": "Waffle: a 10 x 10 grid of squares split by share, with a legend." }, { "name": "WeekCalendar", "kind": "extension", "id": "extension|WeekCalendar|0|0|int|UiText id;Date weekStart;Span\u003CCalendarEvent\u003E events;WeekOpts o = default||h6ebe88be9f390e98d2c4c1e3f796e62f09b23309fe4f21093ce3e1e506653fc9", "signature": "int WeekCalendar(UiText id, Date weekStart, Span\u003CCalendarEvent\u003E events, WeekOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "weekStart", "type": "Date" }, { "name": "events", "type": "Span\u003CCalendarEvent\u003E" }, { "name": "o", "type": "WeekOpts", "default": "default" }], "summary": "Week calendar: seven day columns on an hour grid. Drag an event to move it (15 minute steps), drag its bottom edge to resize it. Returns the index of a clicked event, or -1." }, { "name": "Segmented", "kind": "extension", "id": "extension|Segmented|0|0|int?|UiText id;ReadOnlySpan\u003Cstring\u003E items;int value;SegmentedOpts o = default||hfb54a79c3ab77ad5f8295229f391ceafab348451a898c9a700f5adccce24a7a9", "signature": "int? Segmented(UiText id, ReadOnlySpan\u003Cstring\u003E items, int value, SegmentedOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "value", "type": "int" }, { "name": "o", "type": "SegmentedOpts", "default": "default" }], "summary": "Returns the chosen index on a change, otherwise null." }, { "name": "AccentName", "kind": "method", "id": "method|AccentName|1|0|string|Accent accent||h0e37f10433228fc19b1442b10a947b92a35e4c1252d1688e2237e77f9c961f50", "signature": "static string AccentName(Accent accent)", "parameters": [{ "name": "accent", "type": "Accent" }], "summary": "The name of an accent as the UI shows it: \u0022Violet\u0022." }, { "name": "KeyName", "kind": "method", "id": "method|KeyName|1|0|string|Key key||ha31820aa00db9a4c2b6c84c51b79eb08b079cecb712605806d2763204d3f8fc8", "signature": "static string KeyName(Key key)", "parameters": [{ "name": "key", "type": "Key" }], "summary": "The name of a key as the UI shows it: A, Space, F5." }, { "name": "CronDescribe", "kind": "extension", "id": "extension|CronDescribe|0|0|string?|UiText cron||hd4c9ada55bcf91c1c683541837ecf35a841f847a3eee89aabbb26c529db1cd47", "signature": "string? CronDescribe(UiText cron)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "cron", "type": "UiText" }], "summary": "\u0022Every weekday at 09:30\u0022, in frame memory; NULL when invalid." }, { "name": "DroppedFile", "kind": "method", "id": "method|DroppedFile|0|0|string?|int index||hadc15393659f2bdf4574fe25868fce27bf8d063345e13c4c1b9285ed95d06a8e", "signature": "string? DroppedFile(int index)", "parameters": [{ "name": "index", "type": "int" }], "summary": "The path of a dropped file, or null when the index is out of range." }, { "name": "EmojiPicker", "kind": "extension", "id": "extension|EmojiPicker|0|0|string?|UiText id;ref string recent;ref int tone;EmojiPickerOpts o = default||h15890f303b9bfcb523f735ab2f9e6844938b14c17122927fe58f4714c2d1577c", "signature": "string? EmojiPicker(UiText id, ref string recent, ref int tone, EmojiPickerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "recent", "type": "ref string" }, { "name": "tone", "type": "ref int" }, { "name": "o", "type": "EmojiPickerOpts", "default": "default" }], "summary": "Emoji picker: search, groups with tabs, recent emoji, skin tones and a preview with the name. Returns the emoji picked this frame (UTF-8, valid until the next frame) or NULL. Put it in a popover to open it from a button." }, { "name": "ShortcutLabel", "kind": "extension", "id": "extension|ShortcutLabel|0|0|string?|KeyCombo combo||hbc2b6ede54efc1cdfc932533bfaa02df6e2091b08013ed268adaeb5f70fe77fd", "signature": "string? ShortcutLabel(KeyCombo combo)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "combo", "type": "KeyCombo" }], "summary": "cui_shortcut_label" }, { "name": "LastId", "kind": "property", "id": "property|LastId|0|0|uint||get;|hb45a60a2627c7935e56a964ff3d4b23b89b21d8a180962ea221f54c95e1e68d2", "signature": "uint LastId { get; }", "summary": "The id of the widget drawn last, which is what Target and the other \u0022point at this\u0022 APIs take. Read it immediately after the control." }, { "name": "MakeId", "kind": "method", "id": "method|MakeId|0|0|uint|UiText id||hf729d2c0f406a6b883b2cbb0e869941e897aaaef891e76b22daa8e479857208d", "signature": "uint MakeId(UiText id)", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "A stable cui_id for a string, for Animate and State callers." }, { "name": "CreateImage", "kind": "method", "id": "method|CreateImage|0|0|ulong|int width;int height;ReadOnlySpan\u003Cbyte\u003E rgba||h5ee4689276531d64da132f6a1cc9e229a83100259c335ca4ab5a007c20a68ce7", "signature": "ulong CreateImage(int width, int height, ReadOnlySpan\u003Cbyte\u003E rgba)", "parameters": [{ "name": "width", "type": "int" }, { "name": "height", "type": "int" }, { "name": "rgba", "type": "ReadOnlySpan\u003Cbyte\u003E" }], "summary": "Uploads RGBA8 pixels as a texture. The pixels are copied, so the span may live on the stack. Release the handle with DestroyImage when the page that shows it is done with it \u2014 State\u0060\u00601 with an onFree callback is the usual owner." }, { "name": "DockSave", "kind": "extension", "id": "extension|DockSave|0|0|ulong|UiText id;ref string buf;int cap||h10c71156edbbe3c5e529016814c796584f469d6d0b0b7466e4bde6ba2b0893b4", "signature": "ulong DockSave(UiText id, ref string buf, int cap)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "buf", "type": "ref string" }, { "name": "cap", "type": "int" }], "summary": "Saved layout: one line, e.g. dock1 h0.22([*Scene tree,Assets],v0.7([*Viewport],[*Log,-Console])) h splits side by side and v stacks, the number is the first child\u0027s share, [..] is a leaf\u0027s tabs in order, * the selected tab, - a closed panel; a backslash escapes , [ ] ( ) and itself in names. cui_dock_save returns the full length (as snprintf does) and writes what fits, or 0 when there is no layout. cui_dock_load replaces the layout (and sets each panel\u0027s *open from it on its next frame); names it does not know yet are kept for when they appear. Malformed text returns false and changes nothing." }, { "name": "FrameCount", "kind": "property", "id": "property|FrameCount|0|0|ulong||get;|h7254dceb0c426d20c644d45bf8a5ca3e9a444a54dee4128f0adcf9db4b00c8fc", "signature": "ulong FrameCount { get; }", "summary": "Frames presented so far, counted by CUI." }, { "name": "Accordion", "kind": "extension", "id": "extension|Accordion|0|0|void|UiText title;ref bool open;DrawFn body||h5a6e18ec6c43cdc43af8a25085ec728fca441d6f03d65c135ac01415603bdc5b", "signature": "void Accordion(UiText title, ref bool open, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "AddFontFallback", "kind": "extension", "id": "extension|AddFontFallback|0|0|void|Font font;Font fallback||h046e79521dc69de86a794461399d269a9ea51fd36fd162afddde019ca45934e1", "signature": "void AddFontFallback(Font font, Font fallback)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "font", "type": "Font" }, { "name": "fallback", "type": "Font" }], "summary": "Adds a fallback CUI reaches for when font has no glyph. The chain holds at most four fallbacks; when it is exhausted CUI scans every other loaded face before giving up. A glyph no face has draws nothing at all \u2014 not even a .notdef box in every font \u2014 so an untranslated screen comes up blank with no warning. UseSystemFontFallback is the check for that, and the bundled faces are Latin. The glyph atlas is what a large script actually costs: one texture of CUI_ATLAS_MAX (4096) pixels per side, with the frame\u0027s glyph cache reset between frames, so a font that makes every frame load new glyphs is the expensive case. Register the faces a language needs at startup, not per frame." }, { "name": "AgentStatus", "kind": "extension", "id": "extension|AgentStatus|0|0|void|UiText text;AgentStatusOpts o = default||h61ac25149bb714e9244c62474d67f93158a7f9bd1583135da08e6b32a5ac5120", "signature": "void AgentStatus(UiText text, AgentStatusOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "AgentStatusOpts", "default": "default" }], "summary": "Agent status pill: what the agent is doing right now and for how long." }, { "name": "Avatar", "kind": "extension", "id": "extension|Avatar|0|0|void|UiText name;AvatarOpts o = default||h86ad06b6f35491ed7cd4f337c2a2688db37d73bfec4c164c7b90267365ce8af2", "signature": "void Avatar(UiText name, AvatarOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "name", "type": "UiText" }, { "name": "o", "type": "AvatarOpts", "default": "default" }], "summary": "cui_avatar_ex" }, { "name": "AvatarGroup", "kind": "extension", "id": "extension|AvatarGroup|0|0|void|ReadOnlySpan\u003Cstring\u003E names;int maxVisible = 4;float size = 32f||h2aebe32a1e3101b42a18771fc77f1b10cb011e17bea49c9f7cbf01e0be5ca252", "signature": "void AvatarGroup(ReadOnlySpan\u003Cstring\u003E names, int maxVisible = 4, float size = 32f)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "names", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "maxVisible", "type": "int", "default": "4" }, { "name": "size", "type": "float", "default": "32f" }], "summary": "cui_avatar_group" }, { "name": "Badge", "kind": "extension", "id": "extension|Badge|0|0|void|UiText text;BadgeOpts o = default||h2e146cbd498ce9ebfdcbb978fe8414bd9ff4389e1361c02fa453b24fcfc15d1c", "signature": "void Badge(UiText text, BadgeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "BadgeOpts", "default": "default" }], "summary": "cui_badge_ex" }, { "name": "BarChart", "kind": "method", "id": "method|BarChart|0|0|void|UiText id;ReadOnlySpan\u003Cfloat\u003E values;ChartOpts o = default;Color color = default||hdd24ad8679c5e482e048ed73ce69225b69c19ad5704a83f9a427093e4551242a", "signature": "void BarChart(UiText id, ReadOnlySpan\u003Cfloat\u003E values, ChartOpts o = default, Color color = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "o", "type": "ChartOpts", "default": "default" }, { "name": "color", "type": "Color", "default": "default" }], "summary": "A bar chart of one series. See LineChart." }, { "name": "BarChart", "kind": "method", "id": "method|BarChart|0|0|void|UiText id;Series[] series;ChartOpts o = default||h8d42b4d0a483459731da6ec00c3001f0d1f69bd28a07b4618095e800910f67c7", "signature": "void BarChart(UiText id, Series[] series, ChartOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "Series[]" }, { "name": "o", "type": "ChartOpts", "default": "default" }] }, { "name": "Carousel", "kind": "extension", "id": "extension|Carousel|0|0|void|UiText id;int count;ref int index;DrawFn body;CarouselOpts o = default||haf6583b1edd10132a276ed92f3c7cc7b139b36644ab8586eadce1ce1ae7cf431", "signature": "void Carousel(UiText id, int count, ref int index, DrawFn body, CarouselOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "count", "type": "int" }, { "name": "index", "type": "ref int" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "CarouselOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "ChatDivider", "kind": "extension", "id": "extension|ChatDivider|0|0|void|UiText label||hdb17d96dbafb815bdf9d77a06116d1a2d004dbf0c4190716f604d7f7503032a5", "signature": "void ChatDivider(UiText label)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }], "summary": "\u0022Today\u0022" }, { "name": "ChatMessage", "kind": "extension", "id": "extension|ChatMessage|0|0|void|UiText text;ChatOpts o = default||h0067e7f3c9a991c64026e5433bcd84d614a634bb99011d70cf7548c49b4d0e46", "signature": "void ChatMessage(UiText text, ChatOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "ChatOpts", "default": "default" }], "summary": "Same as the overload with ref markdownResult, but reports nothing back: the state pointer is null, so the widget stores no state the caller could read." }, { "name": "ChatMessage", "kind": "extension", "id": "extension|ChatMessage|0|0|void|UiText text;ref MarkdownResult markdownResult;ChatOpts o = default||he419f66e4261e2e5f8341890ace8476938bbabe2ce7747bb1cf378821e824da4", "signature": "void ChatMessage(UiText text, ref MarkdownResult markdownResult, ChatOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "markdownResult", "type": "ref MarkdownResult" }, { "name": "o", "type": "ChatOpts", "default": "default" }], "summary": "Chat message bubble. Consecutive messages from one person set grouped so they stack tightly and show the avatar once." }, { "name": "Code", "kind": "extension", "id": "extension|Code|0|0|void|UiText text||heb5c95cf0725be5b6a3d5d064b904bf47fbe9b2889e74bd910d61b666764b439", "signature": "void Code(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "inline code" }, { "name": "CodeBlock", "kind": "extension", "id": "extension|CodeBlock|0|0|void|UiText id;UiText code;CodeOpts o = default||h649344835854747b9cbde6157eb263d70a9df1f246e3854f21806fef682fedac", "signature": "void CodeBlock(UiText id, UiText code, CodeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "code", "type": "UiText" }, { "name": "o", "type": "CodeOpts", "default": "default" }], "summary": "Code block with syntax highlighting (lang: \u0022c\u0022, \u0022cpp\u0022, \u0022js\u0022, \u0022ts\u0022, \u0022python\u0022, \u0022rust\u0022, \u0022go\u0022, \u0022json\u0022, \u0022shell\u0022, or \u0022text\u0022 for none), line numbers, a title bar and a copy button. Long lines scroll sideways." }, { "name": "CodeEditorFind", "kind": "extension", "id": "extension|CodeEditorFind|0|0|void|UiText id;UiText query||ha5ad5e0daacc15247f7497756195d2f521b1676f4f4275c1360e7dd6a099a27e", "signature": "void CodeEditorFind(UiText id, UiText query)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "query", "type": "UiText" }], "summary": "Opens the find bar with query and selects the next match (NULL closes)." }, { "name": "CodeEditorGoto", "kind": "extension", "id": "extension|CodeEditorGoto|0|0|void|UiText id;int line;int column||he046da323e1fb441003f0aff4a8b1fb21892920cc0d306e08811c4d4b477dfae", "signature": "void CodeEditorGoto(UiText id, int line, int column)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "line", "type": "int" }, { "name": "column", "type": "int" }], "summary": "On the editor\u0027s next frame: put the caret at a line and column (1 based), focus the editor and scroll there. Call from the same id scope." }, { "name": "CodeEditorSelect", "kind": "extension", "id": "extension|CodeEditorSelect|0|0|void|UiText id;int anchor;int cursor||hbae83fe5ce54e61f495c10224f17c5f97155815624a80c230f94b710bbd25bbc", "signature": "void CodeEditorSelect(UiText id, int anchor, int cursor)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "anchor", "type": "int" }, { "name": "cursor", "type": "int" }], "summary": "On the next frame: select bytes anchor..cursor, focus and scroll there." }, { "name": "Component", "kind": "extension", "id": "extension|Component|0|0|void|Component component||h848740a50a9eb8dc56641315816144114376ac9c315542b20691de3cbc9300d4", "signature": "void Component(Component component)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "component", "type": "Component" }], "summary": "Draws component, with its own error boundary." }, { "name": "ContextMenu", "kind": "extension", "id": "extension|ContextMenu|0|0|void|UiText id;DrawFn body||h639ca26a4859a28b5d0c68a17b414a22b59f92e32460ae828991807709b85741", "signature": "void ContextMenu(UiText id, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "ContextMeter", "kind": "extension", "id": "extension|ContextMeter|0|0|void|UiText id;float used;float limit;ContextOpts o = default||h19d9530359d94af2f36c2f8a876d49576ae0e0c4c67e5270f45fdf36934d1c78", "signature": "void ContextMeter(UiText id, float used, float limit, ContextOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "used", "type": "float" }, { "name": "limit", "type": "float" }, { "name": "o", "type": "ContextOpts", "default": "default" }], "summary": "Context meter: a small ring of how full the context is; hover for a breakdown. It turns amber past 80% and red past 95%." }, { "name": "Countdown", "kind": "extension", "id": "extension|Countdown|0|0|void|UiText id;double secondsLeft;CountdownOpts o = default||h821d564a1492fd931adfbbc43d4c182d207343abf289fdf0702df537f77d848a", "signature": "void Countdown(UiText id, double secondsLeft, CountdownOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "secondsLeft", "type": "double" }, { "name": "o", "type": "CountdownOpts", "default": "default" }], "summary": "Countdown: days, hours, minutes and seconds as tiles whose digits roll." }, { "name": "Counter", "kind": "extension", "id": "extension|Counter|0|0|void|UiText id;double value;CounterOpts o = default||h0b05971fdda28297316e6f4447ca5d501aa7a11fe9da2f3bdc3756e5b7c5ffd3", "signature": "void Counter(UiText id, double value, CounterOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "double" }, { "name": "o", "type": "CounterOpts", "default": "default" }], "summary": "Odometer: a number whose digits roll to their new values." }, { "name": "DataGrid", "kind": "extension", "id": "extension|DataGrid|0|0|void|UiText id;ReadOnlySpan\u003CGridColumn\u003E columns;int rowCount;GridState state;DrawFn body;GridOpts o = default||h9c456dfa1016ff4f42bd0014595270a05519919f42743036e5fc9f8cb8147c63", "signature": "void DataGrid(UiText id, ReadOnlySpan\u003CGridColumn\u003E columns, int rowCount, GridState state, DrawFn body, GridOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CGridColumn\u003E" }, { "name": "rowCount", "type": "int" }, { "name": "state", "type": "GridState" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "GridOpts", "default": "default" }], "summary": "Draws the body only when open; closes and publishes state even on exceptions." }, { "name": "DataGridCell", "kind": "extension", "id": "extension|DataGridCell|0|0|void|||h17266c47617cb3e20e5aafb4e0740fb451853300d3ea2f4cf357c27f4e0c97e5", "signature": "void DataGridCell()", "extensionOn": "CuiSharp.Ui", "summary": "next cell; put components inside" }, { "name": "DataGridCellText", "kind": "extension", "id": "extension|DataGridCellText|0|0|void|UiText text||hbc15a57820d975503239bf1e6c43046de51dd25c53400b94dc05e4c5ec821c22", "signature": "void DataGridCellText(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "cui_data_grid_cell_text" }, { "name": "DestroyImage", "kind": "method", "id": "method|DestroyImage|0|0|void|ulong texture||h233513e5e0f04cab6a29321054080d17776d33b361cec53060f335038ac6c4f4", "signature": "void DestroyImage(ulong texture)", "parameters": [{ "name": "texture", "type": "ulong" }], "summary": "Frees a texture obtained from CreateImage, LoadImage or a widget that loaded one for you (the avatar upload). Passing 0 does nothing, so a field can be cleared and released in one step." }, { "name": "Dialog", "kind": "extension", "id": "extension|Dialog|0|0|void|UiText title;ref bool open;DrawFn body;DialogOpts o = default||hb9a2198e7b3396b3f8e81f53972b52816f4e10d0c965758cb0b8e59b20c0dad6", "signature": "void Dialog(UiText title, ref bool open, DrawFn body, DialogOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "DialogOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "DockPanel", "kind": "extension", "id": "extension|DockPanel|0|0|void|UiText title;ref bool open;DrawFn body;DockPanelOpts o = default||haec3aec1f30c0641ff9d8d21ef9827c8984e582f195575f5bdafa8e30c26bf47", "signature": "void DockPanel(UiText title, ref bool open, DrawFn body, DockPanelOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "DockPanelOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "DockSeparator", "kind": "extension", "id": "extension|DockSeparator|0|0|void|||h4f7b4ffb27ff0752d3414c6e36155f014d64756d9c99299d0061f4d3b662e948", "signature": "void DockSeparator()", "extensionOn": "CuiSharp.Ui", "summary": "cui_dock_separator" }, { "name": "DonutChart", "kind": "method", "id": "method|DonutChart|0|0|void|UiText id;float[] values;string[]? labels = null;ChartOpts o = default||h105b6ba9a48212810ca8eaa543dfd59b8bcbb7a078d6d00c43caa8337cf3e984", "signature": "void DonutChart(UiText id, float[] values, string[]? labels = null, ChartOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "values", "type": "float[]" }, { "name": "labels", "type": "string[]?", "default": "null" }, { "name": "o", "type": "ChartOpts", "default": "default" }] }, { "name": "DotDisplay", "kind": "extension", "id": "extension|DotDisplay|0|0|void|UiText text;DotDisplayOpts o = default||h69cc0b3822b72c2d91c328a3999ec76dc3ab49fb7d2667722d67fca441b5fa7a", "signature": "void DotDisplay(UiText text, DotDisplayOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "DotDisplayOpts", "default": "default" }], "summary": "Dot-matrix display: text drawn with a 5 by 7 dot font, for clocks, counters and status lines. Printable ASCII, the degree sign and the middle dot have glyphs; anything else is a box. Unlit dots show dimly unless \u0060no_dim\u0060 is set. In a box narrower than the text, the dots shrink to fit, or with \u0060marquee\u0060 the text scrolls." }, { "name": "DrawArc", "kind": "method", "id": "method|DrawArc|0|0|void|float cx;float cy;float radius;float fromRadians;float toRadians;float thickness;Color color||h75c08329ccf02db7c649c3de4062b857fcb9fb9b5607cc0cdc3ffa02cdd3a32a", "signature": "void DrawArc(float cx, float cy, float radius, float fromRadians, float toRadians, float thickness, Color color)", "parameters": [{ "name": "cx", "type": "float" }, { "name": "cy", "type": "float" }, { "name": "radius", "type": "float" }, { "name": "fromRadians", "type": "float" }, { "name": "toRadians", "type": "float" }, { "name": "thickness", "type": "float" }, { "name": "color", "type": "Color" }], "summary": "An arc from fromRadians to toRadians." }, { "name": "DrawCircle", "kind": "method", "id": "method|DrawCircle|0|0|void|float cx;float cy;float radius;Color color||hb1d4daba0313192a47661dfdcba2bbea774eacd066b6e992e4b4698dddcde09a", "signature": "void DrawCircle(float cx, float cy, float radius, Color color)", "parameters": [{ "name": "cx", "type": "float" }, { "name": "cy", "type": "float" }, { "name": "radius", "type": "float" }, { "name": "color", "type": "Color" }], "summary": "A filled circle." }, { "name": "DrawEmoji", "kind": "extension", "id": "extension|DrawEmoji|0|0|void|UiText utf8;RectF r||ha6979720ffa9f6b639eedcdc2f34912ae99c3e8f6db6d29d49b7a755626e5e61", "signature": "void DrawEmoji(UiText utf8, RectF r)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "utf8", "type": "UiText" }, { "name": "r", "type": "RectF" }], "summary": "cui_draw_emoji" }, { "name": "DrawIcon", "kind": "method", "id": "method|DrawIcon|0|0|void|UiText icon;RectF r;Color color;float size = 16f||hd54b671c520dcce41f616162ba2038b0604408edb2178e4e538b9fd737631621", "signature": "void DrawIcon(UiText icon, RectF r, Color color, float size = 16f)", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "r", "type": "RectF" }, { "name": "color", "type": "Color" }, { "name": "size", "type": "float", "default": "16f" }], "summary": "Draws an icon glyph into a rectangle." }, { "name": "DrawImage", "kind": "method", "id": "method|DrawImage|0|0|void|ulong texture;RectF destination;Color tint;float radius = default||h02908132cac945b65c579f6460fda70375b546d9df86cb8e4446b3d6369a8ad2", "signature": "void DrawImage(ulong texture, RectF destination, Color tint, float radius = default)", "parameters": [{ "name": "texture", "type": "ulong" }, { "name": "destination", "type": "RectF" }, { "name": "tint", "type": "Color" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Draws the whole texture into destination." }, { "name": "DrawImage", "kind": "method", "id": "method|DrawImage|0|0|void|ulong texture;RectF destination;RectF uv;Color tint;float radius = default||h19922f36165664b04b3f13745794f29cd576c87d690e38abfacd839c9eebe6ea", "signature": "void DrawImage(ulong texture, RectF destination, RectF uv, Color tint, float radius = default)", "parameters": [{ "name": "texture", "type": "ulong" }, { "name": "destination", "type": "RectF" }, { "name": "uv", "type": "RectF" }, { "name": "tint", "type": "Color" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Draws a texture into destination, sampling uv in 0..1 texture coordinates." }, { "name": "DrawLine", "kind": "method", "id": "method|DrawLine|0|0|void|float x0;float y0;float x1;float y1;float thickness;Color color||h7c718f3cf261fcdd9890ecc99c37b4c7ef88951855160bbd3b4b84bbb0906183", "signature": "void DrawLine(float x0, float y0, float x1, float y1, float thickness, Color color)", "parameters": [{ "name": "x0", "type": "float" }, { "name": "y0", "type": "float" }, { "name": "x1", "type": "float" }, { "name": "y1", "type": "float" }, { "name": "thickness", "type": "float" }, { "name": "color", "type": "Color" }], "summary": "A line between two points." }, { "name": "DrawPolygon", "kind": "method", "id": "method|DrawPolygon|0|0|void|ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E points;Color color||h0a35ee50b137930776943658c6a4b0a802340e6fc1443224120f511919b82309", "signature": "void DrawPolygon(ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E points, Color color)", "parameters": [{ "name": "points", "type": "ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E" }, { "name": "color", "type": "Color" }], "summary": "A convex polygon through the given x/y pairs." }, { "name": "DrawPolyline", "kind": "method", "id": "method|DrawPolyline|0|0|void|ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E points;float thickness;Color color;bool closed = default||h4c7f07e3c9fc697e544cc98214f394946bae499ac03450d9e5812ced69ce04e9", "signature": "void DrawPolyline(ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E points, float thickness, Color color, bool closed = default)", "parameters": [{ "name": "points", "type": "ReadOnlySpan\u003CValueTuple\u003Cfloat, float\u003E\u003E" }, { "name": "thickness", "type": "float" }, { "name": "color", "type": "Color" }, { "name": "closed", "type": "bool", "default": "default" }], "summary": "A polyline through the given x/y pairs." }, { "name": "DrawRect", "kind": "method", "id": "method|DrawRect|0|0|void|RectF r;Color fill;Color border;float borderWidth;float radius = default||h4ba9a89c0df1a36edef3bc858b12de8bb1c2d9020a801bc38d101b16e9839611", "signature": "void DrawRect(RectF r, Color fill, Color border, float borderWidth, float radius = default)", "parameters": [{ "name": "r", "type": "RectF" }, { "name": "fill", "type": "Color" }, { "name": "border", "type": "Color" }, { "name": "borderWidth", "type": "float" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Fills a rounded rectangle and strokes its border." }, { "name": "DrawRect", "kind": "method", "id": "method|DrawRect|0|0|void|RectF r;Color fill;float radius = default||hbede7dc4a83173600f87c3151cfb881b786025c1a85bfc6cfd41ac9c76b997ec", "signature": "void DrawRect(RectF r, Color fill, float radius = default)", "parameters": [{ "name": "r", "type": "RectF" }, { "name": "fill", "type": "Color" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Fills a rounded rectangle." }, { "name": "DrawRectGradient", "kind": "method", "id": "method|DrawRectGradient|0|0|void|RectF r;Color top;Color bottom;float radius = default||hdfb2b1697ea2ab6d38c629c2592cb4496e061c2c2d2d73080e90e315c179fa59", "signature": "void DrawRectGradient(RectF r, Color top, Color bottom, float radius = default)", "parameters": [{ "name": "r", "type": "RectF" }, { "name": "top", "type": "Color" }, { "name": "bottom", "type": "Color" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "Fills a rounded rectangle with a vertical gradient." }, { "name": "DrawShadow", "kind": "method", "id": "method|DrawShadow|0|0|void|RectF r;Color color;float blur = 12f;float spread = default;float dx = default;float dy = 2f;float radius = default||hd608a1aa394a6724e278bdd79827b6dd27fa0b58389aad230a6976a37e6e1bc9", "signature": "void DrawShadow(RectF r, Color color, float blur = 12f, float spread = default, float dx = default, float dy = 2f, float radius = default)", "parameters": [{ "name": "r", "type": "RectF" }, { "name": "color", "type": "Color" }, { "name": "blur", "type": "float", "default": "12f" }, { "name": "spread", "type": "float", "default": "default" }, { "name": "dx", "type": "float", "default": "default" }, { "name": "dy", "type": "float", "default": "2f" }, { "name": "radius", "type": "float", "default": "default" }], "summary": "A soft drop shadow behind a rounded rectangle." }, { "name": "DrawText", "kind": "method", "id": "method|DrawText|0|0|void|UiText text;float x;float y;Color color;float size = 12f;Font font = Font.Body||ha379555b96749e8089ccd4a67f9f06f0c97c8e3bf6628a829212e087cdf44073", "signature": "void DrawText(UiText text, float x, float y, Color color, float size = 12f, Font font = Font.Body)", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "x", "type": "float" }, { "name": "y", "type": "float" }, { "name": "color", "type": "Color" }, { "name": "size", "type": "float", "default": "12f" }, { "name": "font", "type": "Font", "default": "Font.Body" }], "summary": "Draws text outside layout, from a string, UTF-8 bytes, or interpolation." }, { "name": "Emoji", "kind": "extension", "id": "extension|Emoji|0|0|void|UiText utf8;float size||hcce49478392e105a5082cf12fe2c18e8a68954f1395b48ec19c91052abdbfa90", "signature": "void Emoji(UiText utf8, float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "utf8", "type": "UiText" }, { "name": "size", "type": "float" }], "summary": "one emoji as a component" }, { "name": "ExpandableCard", "kind": "extension", "id": "extension|ExpandableCard|0|0|void|UiText title;ref bool open;DrawFn body;ExpandableCardOpts o = default||h45a44cd40dda73a400ba664b3783303201ba3f221c6a0c0021b4519c21652a83", "signature": "void ExpandableCard(UiText title, ref bool open, DrawFn body, ExpandableCardOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "ExpandableCardOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "Gap", "kind": "extension", "id": "extension|Gap|0|0|void|float size||h89c0f099b911f74a22d756328dc6f8c634ce4e2561cfb7403549af06bfe120d2", "signature": "void Gap(float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "size", "type": "float" }], "summary": "fixed space" }, { "name": "Gauge", "kind": "extension", "id": "extension|Gauge|0|0|void|UiText label;float value;float size = 130f||h0d866db02a3773b1f94110de3177536a50289e2eb2f4f1328d5ea96164ce0e3d", "signature": "void Gauge(UiText label, float value, float size = 130f)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "float" }, { "name": "size", "type": "float", "default": "130f" }], "summary": "cui_gauge" }, { "name": "GradientText", "kind": "extension", "id": "extension|GradientText|0|0|void|UiText text;GradientTextOpts o = default||h3f77173db929d5d0326fb0d6aacd31968c768ec86de8e25973b46685c05898a0", "signature": "void GradientText(UiText text, GradientTextOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "GradientTextOpts", "default": "default" }], "summary": "Text painted with a gradient from one color to another; animate makes it drift." }, { "name": "Heading", "kind": "extension", "id": "extension|Heading|0|0|void|UiText text;int level = 2||h557aed71184ccf0f99a503a8e9e31f47bd8f19daa88deaf28acbf6bd2f58da8f", "signature": "void Heading(UiText text, int level = 2)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "level", "type": "int", "default": "2" }], "summary": "1..4" }, { "name": "HexViewGoto", "kind": "extension", "id": "extension|HexViewGoto|0|0|void|UiText id;ulong offset||he99988413132b927d206b59bb10ff266913c4aed14642da49708324af5d3a4ea", "signature": "void HexViewGoto(UiText id, ulong offset)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "offset", "type": "ulong" }], "summary": "Go to offset: on the view\u0027s next frame its cursor moves to offset, that byte becomes the selection and it scrolls into view (to the middle when it was out of sight). Wire a \u0022Go to\u0022 field to it; it is safe to call every frame." }, { "name": "HoverCard", "kind": "extension", "id": "extension|HoverCard|0|0|void|UiText id;DrawFn body;HoverCardOpts o = default||h1feb5df25fc90d51f65ce5d548e1c92a15c20d4dbcfb120ec57197031f6bf861", "signature": "void HoverCard(UiText id, DrawFn body, HoverCardOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "HoverCardOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "Icon", "kind": "method", "id": "method|Icon|0|0|void|UiText icon;float size = 16f;Color color = default||ha3c2c3c378676921960172e72c0cd75e176f823d910f148819cb62c5c07fcdb7", "signature": "void Icon(UiText icon, float size = 16f, Color color = default)", "parameters": [{ "name": "icon", "type": "UiText" }, { "name": "size", "type": "float", "default": "16f" }, { "name": "color", "type": "Color", "default": "default" }] }, { "name": "Image", "kind": "extension", "id": "extension|Image|0|0|void|ulong tex;ImageOpts o = default||h4aba4bdd877e6dfb8e45ba090aba9ec93a98e0c6441d125c9038d1be437dc417", "signature": "void Image(ulong tex, ImageOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "tex", "type": "ulong" }, { "name": "o", "type": "ImageOpts", "default": "default" }], "summary": "cui_image_ex" }, { "name": "Inspector", "kind": "extension", "id": "extension|Inspector|0|0|void|UiText id;DrawFn body;InspectorOpts o = default||h841cdf7d1c9125bb04f373e4d2f93c10eccdb9bcbb43da0de7dccc3769b41a32", "signature": "void Inspector(UiText id, DrawFn body, InspectorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "InspectorOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "Kbd", "kind": "extension", "id": "extension|Kbd|0|0|void|UiText keys||h417076fb4869022dd26ff1c344a189d091fce7e448e96c96224d62f1a451f6d1", "signature": "void Kbd(UiText keys)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "keys", "type": "UiText" }], "summary": "keyboard keycap, e.g. \u0022Ctrl K\u0022" }, { "name": "Label", "kind": "extension", "id": "extension|Label|0|0|void|UiText text||h72e24445b52f829a1571cbd68c5c6fac6835700a497232df3ad518950a463221", "signature": "void Label(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "medium weight" }, { "name": "LineChart", "kind": "method", "id": "method|LineChart|0|0|void|UiText id;ReadOnlySpan\u003Cfloat\u003E values;ChartOpts o = default;Color color = default||h3cdc2012853a1aaf00f86229fc128bb443d3b47540340bb22a37e12c48168603", "signature": "void LineChart(UiText id, ReadOnlySpan\u003Cfloat\u003E values, ChartOpts o = default, Color color = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "o", "type": "ChartOpts", "default": "default" }, { "name": "color", "type": "Color", "default": "default" }], "summary": "A line chart of one series. This is the overload most charts want: the samples are passed directly, and an empty span draws nothing at all." }, { "name": "LineChart", "kind": "method", "id": "method|LineChart|0|0|void|UiText id;Series[] series;ChartOpts o = default||hc086d5dcd804a5f509ce75cc8bee9f3f8667a55ceb50af4ffaabadafd4609ad0", "signature": "void LineChart(UiText id, Series[] series, ChartOpts o = default)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "series", "type": "Series[]" }, { "name": "o", "type": "ChartOpts", "default": "default" }] }, { "name": "Loader", "kind": "extension", "id": "extension|Loader|0|0|void|LoaderOpts o = default||h5945e358ac0fbf3d0cb4c3df6db1ab5234d41a31263116b2fb63eee24b3e9451", "signature": "void Loader(LoaderOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "o", "type": "LoaderOpts", "default": "default" }], "summary": "cui_loader_ex" }, { "name": "LogView", "kind": "extension", "id": "extension|LogView|0|0|void|UiText id;LogBuffer log;LogViewOpts o = default||h629acfd43966ab117356ba793bd70ad6b9dfe93587dd289ab839a823556ecc7b", "signature": "void LogView(UiText id, LogBuffer log, LogViewOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "log", "type": "LogBuffer" }, { "name": "o", "type": "LogViewOpts", "default": "default" }], "summary": "Draws log with its toolbar: level filters, search with highlight, Follow, Copy and Clear. Scrolling up turns Follow off; reaching the bottom turns it back on." }, { "name": "MarkReady", "kind": "method", "id": "method|MarkReady|0|0|void|||h8dc4126f75765e5089f4b5e2bbbb22f0fc14d612aafd61d5d0998543d5b212d0", "signature": "void MarkReady()", "summary": "Declares that this frame shows complete, current app data. This is what dotnet cui --wait ready waits for: readiness is a property of the frame that marks it, so the next frame starts unready and a screen that goes back to loading is never seen as ready on the strength of an older mark." }, { "name": "Menu", "kind": "extension", "id": "extension|Menu|0|0|void|UiText label;DrawFn body;MenuOpts o = default||h46a55ef5a629d54cea211e8cff97db0e260e3c390254e4a74263ef25c2b8fe9d", "signature": "void Menu(UiText label, DrawFn body, MenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "MenuOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "MenuBarMenu", "kind": "extension", "id": "extension|MenuBarMenu|0|0|void|UiText label;DrawFn body;MenuBarMenuOpts o = default||h1b1bac394be04ea33333eee937841b7391a0fc642ea6951788ddb9eb4b199110", "signature": "void MenuBarMenu(UiText label, DrawFn body, MenuBarMenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "MenuBarMenuOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "MenuLabel", "kind": "extension", "id": "extension|MenuLabel|0|0|void|UiText text||h55d6bbe5cef52bef1137dee2490a736200d78319bc81b81cdd5d2b7fbe16d2b6", "signature": "void MenuLabel(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "cui_menu_label" }, { "name": "MenuSeparator", "kind": "extension", "id": "extension|MenuSeparator|0|0|void|||h7babb70cb1540862bd8b5e000e173763dc48b627688082cf19bcc2e23c25ba73", "signature": "void MenuSeparator()", "extensionOn": "CuiSharp.Ui", "summary": "cui_menu_separator" }, { "name": "Meter", "kind": "extension", "id": "extension|Meter|0|0|void|UiText label;float used;float total;UiText unit = default||h1d8b4e728d051b711957aa7fbc9bcf832cd505900fdce01a27a79bdc8e9d89fa", "signature": "void Meter(UiText label, float used, float total, UiText unit = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "used", "type": "float" }, { "name": "total", "type": "float" }, { "name": "unit", "type": "UiText", "default": "default" }], "summary": "cui_meter" }, { "name": "Metric", "kind": "extension", "id": "extension|Metric|0|0|void|UiText label;UiText value;MetricOpts o = default||h9bab4a4dc12d3dace12e7106ac89323fdbfdf7c56bba9a0e2f0c40e9c95fbef6", "signature": "void Metric(UiText label, UiText value, MetricOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "UiText" }, { "name": "o", "type": "MetricOpts", "default": "default" }], "summary": "cui_metric_ex" }, { "name": "Muted", "kind": "extension", "id": "extension|Muted|0|0|void|UiText text||haf3dda321d9292f4d904d1870d8bb5dea3c49cb695524acb75572822bff2f9b8", "signature": "void Muted(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "small, muted" }, { "name": "NavSection", "kind": "extension", "id": "extension|NavSection|0|0|void|UiText title||hf901052c3e5ba17c7b523058746a19e11e181239069f2b8fbb43adfafdbdcafc", "signature": "void NavSection(UiText title)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }], "summary": "cui_nav_section" }, { "name": "Node", "kind": "extension", "id": "extension|Node|0|0|void|int nodeId;ref float x;ref float y;UiText title;DrawFn body;NodeOpts o = default||he2a131c3e341325536d7aaaafc4f83046a7d7e9c45eead6545f141826f6d7e82", "signature": "void Node(int nodeId, ref float x, ref float y, UiText title, DrawFn body, NodeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "nodeId", "type": "int" }, { "name": "x", "type": "ref float" }, { "name": "y", "type": "ref float" }, { "name": "title", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "NodeOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "NodeEditor", "kind": "extension", "id": "extension|NodeEditor|0|0|void|UiText id;ref NodeView view;DrawFn body;NodeEditorOpts o = default||h5854f9b818a6cafa92571b34f94f5f0c435142d546b6f628a1174b1effe7ac67", "signature": "void NodeEditor(UiText id, ref NodeView view, DrawFn body, NodeEditorOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "view", "type": "ref NodeView" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "NodeEditorOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "NumberRoll", "kind": "extension", "id": "extension|NumberRoll|0|0|void|UiText id;UiText text;TextFxOpts o = default||h67c63e017e57f215b45262ce043c429d9ff6e486e3c507e0c84f3d5daa53a5bf", "signature": "void NumberRoll(UiText id, UiText text, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "A figure whose changed digits roll into place: up when the value rises, down when it falls, a beat apart from the left; unchanged characters stay still. Pass the formatted text (\u0022$64,210\u0022, \u00221.2k\u0022); digits are tabular." }, { "name": "PathBarMenu", "kind": "extension", "id": "extension|PathBarMenu|0|0|void|UiText id;ref int segment;DrawFn body||h875759cac9f5832bcb6782caaa672db98fbc277a19f31017d3155a38c398dce5", "signature": "void PathBarMenu(UiText id, ref int segment, DrawFn body)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "segment", "type": "ref int" }, { "name": "body", "type": "DrawFn" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "PopClip", "kind": "method", "id": "method|PopClip|0|0|void|||hd223700ffd7f730814c69ec5bd11dae3b4dd4a7a738e754b775a351e0c980575", "signature": "void PopClip()", "summary": "Ends the clip opened by PushClip." }, { "name": "Popover", "kind": "extension", "id": "extension|Popover|0|0|void|UiText id;DrawFn body;PopoverOpts o = default||h597b85fb0e87089ca73543226f68a70b713ea0f9c949974f2c0425c7028438f3", "signature": "void Popover(UiText id, DrawFn body, PopoverOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "PopoverOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "PopoverClose", "kind": "extension", "id": "extension|PopoverClose|0|0|void|UiText id||hca913fedac00c0c27ef6b37fb3f90cb88cd76862d0e5884e8f4e8dac8ba415b3", "signature": "void PopoverClose(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_popover_close" }, { "name": "PopoverOpen", "kind": "extension", "id": "extension|PopoverOpen|0|0|void|UiText id||h424af0f304196b1a039d033eb75b4bff9dca251d0232dbc683699a925dfaa16d", "signature": "void PopoverOpen(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_popover_open" }, { "name": "PopoverToggle", "kind": "extension", "id": "extension|PopoverToggle|0|0|void|UiText id||h58628645f47f2c9c2896b1ec70e7d661c861b7abb26420d9b750e21380db5e02", "signature": "void PopoverToggle(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_popover_toggle" }, { "name": "Presence", "kind": "extension", "id": "extension|Presence|0|0|void|UiText id;ReadOnlySpan\u003CPresenceUser\u003E users;int maxVisible;float size||h33db1325c05049463f7c9a97e3df833a114732c8a156f6ee2d775dad7a69c214", "signature": "void Presence(UiText id, ReadOnlySpan\u003CPresenceUser\u003E users, int maxVisible, float size)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "users", "type": "ReadOnlySpan\u003CPresenceUser\u003E" }, { "name": "maxVisible", "type": "int" }, { "name": "size", "type": "float" }], "summary": "Presence: who is here now. Overlapping avatars with a colored ring each, that spread out on hover and name themselves." }, { "name": "Progress", "kind": "extension", "id": "extension|Progress|0|0|void|float value;ProgressOpts o = default||h811e97c08fde2498427fc6a279e22a1c2ea3bc1ce69c3d642c73832f10623d4d", "signature": "void Progress(float value, ProgressOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "value", "type": "float" }, { "name": "o", "type": "ProgressOpts", "default": "default" }], "summary": "cui_progress_ex" }, { "name": "ProgressRing", "kind": "extension", "id": "extension|ProgressRing|0|0|void|UiText label;float value;float size = 104f||h2e30430280ecfbc1925c0164f0bb59a54da3003b073ef1535c6cb3c2d4e8e057", "signature": "void ProgressRing(UiText label, float value, float size = 104f)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "float" }, { "name": "size", "type": "float", "default": "104f" }], "summary": "Circular progress with the value in the middle." }, { "name": "PushClip", "kind": "method", "id": "method|PushClip|0|0|void|RectF r||h95bac6dcebf24b24b986a596422f965edfee8cd616663a1e59d0da09a9bd3efb", "signature": "void PushClip(RectF r)", "parameters": [{ "name": "r", "type": "RectF" }], "summary": "Clips subsequent drawing to a rectangle. Pair with PopClip." }, { "name": "RadialGauge", "kind": "extension", "id": "extension|RadialGauge|0|0|void|UiText id;float value;float min;float max;RadialGaugeOpts o = default||h69d72defa0179e7173e927724367a4bb9575a2e75bbd9949225f9eab886c2992", "signature": "void RadialGauge(UiText id, float value, float min, float max, RadialGaugeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "value", "type": "float" }, { "name": "min", "type": "float" }, { "name": "max", "type": "float" }, { "name": "o", "type": "RadialGaugeOpts", "default": "default" }], "summary": "cui_radial_gauge_ex" }, { "name": "Readout", "kind": "extension", "id": "extension|Readout|0|0|void|UiText label;UiText value;ReadoutOpts o = default||h88673692487a3fc220702b7f3a45a3b5fc3f80bc6eab7e144728a19666b2f88f", "signature": "void Readout(UiText label, UiText value, ReadoutOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "value", "type": "UiText" }, { "name": "o", "type": "ReadoutOpts", "default": "default" }], "summary": "Readout: one figure as an instrument shows it. A small label, the value in the monospaced font with its unit, and a muted line of context under it." }, { "name": "Reasoning", "kind": "extension", "id": "extension|Reasoning|0|0|void|UiText id;DrawFn body;ReasoningOpts o = default||h892c50fc79e75386733c9149e18f72832dbdccb2d31c29b39a76a16ea185386e", "signature": "void Reasoning(UiText id, DrawFn body, ReasoningOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "ReasoningOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "ReorderBegin", "kind": "method", "id": "method|ReorderBegin|0|0|void|UiText id;int[] order||hb312c00b771ad378a0324c96198659487c28a3c21c9d71a96e3f595957ffe21f", "signature": "void ReorderBegin(UiText id, int[] order)", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "order", "type": "int[]" }] }, { "name": "RequestRedraw", "kind": "method", "id": "method|RequestRedraw|0|0|void|||h4986f5ad7c5201d2830f1dee1e374ca29980fe9c408b3ef833336aabba3ed66c", "signature": "void RequestRedraw()", "summary": "Requests another frame; call only from the synchronous draw path." }, { "name": "RequestWakeup", "kind": "extension", "id": "extension|RequestWakeup|0|0|void|float seconds||h1e8d82035be8a5e226207bb6bd0874265dba29cf4b6a4779f60b95ab7cc567f7", "signature": "void RequestWakeup(float seconds)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "seconds", "type": "float" }], "summary": "Asks for one more frame after seconds, even when nothing else would wake the window. Use it for a timer, a toast timeout or a poll interval." }, { "name": "ResponseStatus", "kind": "extension", "id": "extension|ResponseStatus|0|0|void|int status;double seconds;double bytes||h63e7c9d5181d7379043415c904edf88e89db4e9781c0577d221801f58399a1cf", "signature": "void ResponseStatus(int status, double seconds, double bytes)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "status", "type": "int" }, { "name": "seconds", "type": "double" }, { "name": "bytes", "type": "double" }], "summary": "cui_response_status" }, { "name": "ScrollTo", "kind": "extension", "id": "extension|ScrollTo|0|0|void|UiText scrollId;float y||h795b4245740f616fce2565ac40d5ea6dfa995143af81eedbc7067db0b0f1e7c0", "signature": "void ScrollTo(UiText scrollId, float y)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "scrollId", "type": "UiText" }, { "name": "y", "type": "float" }], "summary": "cui_scroll_to" }, { "name": "Secondary", "kind": "extension", "id": "extension|Secondary|0|0|void|UiText text||h4f32c253f11a19b26ceb397d205e5e2d5c6c8e5db01a0ef2e8984e0a2c78ef46", "signature": "void Secondary(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "secondary color" }, { "name": "Separator", "kind": "extension", "id": "extension|Separator|0|0|void|||h913edddc60366f9044c6b66111a5672080bdd3cb042c5febb3487cac873e4f6b", "signature": "void Separator()", "extensionOn": "CuiSharp.Ui", "summary": "hairline, follows the parent direction" }, { "name": "SetFont", "kind": "extension", "id": "extension|SetFont|0|0|void|Font role;Font font||hcab29e22e2019bb3b541b3254c5e4027f76d357aa2ea4e762ced8560cad6c652", "signature": "void SetFont(Font role, Font font)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "role", "type": "Font" }, { "name": "font", "type": "Font" }], "summary": "Makes font the face every widget using role draws with." }, { "name": "SetLocalization", "kind": "method", "id": "method|SetLocalization|0|0|void|Localization? table||h9b1e18df8b05e42ae28fc53a566e5014c93cf59eea849033c0ab9f19b6bae9bd", "signature": "void SetLocalization(Localization? table)", "parameters": [{ "name": "table", "type": "Localization?" }], "summary": "Sets the month, weekday and \u0022Today\u0022 names the date components show, and returns to English with null." }, { "name": "SetReducedMotion", "kind": "method", "id": "method|SetReducedMotion|0|0|void|bool reduced||hae4b830dd1026084cab290fac44e758b675baf93c35f70486ffa7547f059af88", "signature": "void SetReducedMotion(bool reduced)", "parameters": [{ "name": "reduced", "type": "bool" }], "summary": "Turns off animation (transitions, springs and spinners) for accessibility." }, { "name": "Sheet", "kind": "extension", "id": "extension|Sheet|0|0|void|UiText title;ref bool open;DrawFn body;SheetOpts o = default||h65c09301eb5dd69c80862865570241bbd654452c640464cf772559af8fc6bf22", "signature": "void Sheet(UiText title, ref bool open, DrawFn body, SheetOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "SheetOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "ShimmerText", "kind": "extension", "id": "extension|ShimmerText|0|0|void|UiText text;TextFxOpts o = default||h10fe1a4021ac0e8c72d7fdf6f3cb558e9a8c622c13f4749b7ac3d5d402cb9f57", "signature": "void ShimmerText(UiText text, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "Text with a highlight sweeping across it, for \u0022Thinking...\u0022 states." }, { "name": "SignatureClear", "kind": "extension", "id": "extension|SignatureClear|0|0|void|UiText id||hf23272f80768839b31369fdd5a82c42808ef1d11985d804d96d54c704b0de8bf", "signature": "void SignatureClear(UiText id)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }], "summary": "cui_signature_clear" }, { "name": "Skeleton", "kind": "extension", "id": "extension|Skeleton|0|0|void|Size width;float height||h9a80641f8540ed71174043f46e0ff5190568ee803a507a52125ab6fd1ccd12ec", "signature": "void Skeleton(Size width, float height)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "width", "type": "Size" }, { "name": "height", "type": "float" }], "summary": "cui_skeleton" }, { "name": "Spacer", "kind": "extension", "id": "extension|Spacer|0|0|void|||h8df9fad32f644fb75d2f19ff5d3057f2529306e3edc1921a901da58f59bdf332", "signature": "void Spacer()", "extensionOn": "CuiSharp.Ui", "summary": "flexible space" }, { "name": "Sparkline", "kind": "extension", "id": "extension|Sparkline|0|0|void|ReadOnlySpan\u003Cfloat\u003E values;Size width;float height;Color color||hf5e74b2ae617ca510b0dea71f3513379b77ff9597fa28585678fd9d5dc90c297", "signature": "void Sparkline(ReadOnlySpan\u003Cfloat\u003E values, Size width, float height, Color color)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "values", "type": "ReadOnlySpan\u003Cfloat\u003E" }, { "name": "width", "type": "Size" }, { "name": "height", "type": "float" }, { "name": "color", "type": "Color" }], "summary": "cui_sparkline" }, { "name": "Spinner", "kind": "extension", "id": "extension|Spinner|0|0|void|float size = 16f||h910bfa94c12faa6f479982793408735550b3b41b6f58bf9d2ecbd8fbd8d537f9", "signature": "void Spinner(float size = 16f)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "size", "type": "float", "default": "16f" }], "summary": "cui_spinner" }, { "name": "SplitNext", "kind": "extension", "id": "extension|SplitNext|0|0|void|||h2e9b4df1853b9715ec487e793813aebc81a3f6ac93bd19f40400a8b7db5e57b1", "signature": "void SplitNext()", "extensionOn": "CuiSharp.Ui", "summary": "cui_split_next" }, { "name": "StatusBarProgress", "kind": "extension", "id": "extension|StatusBarProgress|0|0|void|float value;StatusProgressOpts o = default||h0d89461fbae2cb62b010aaa92c832f76c787764ad8bf6a7f6f3b2352d43eb62e", "signature": "void StatusBarProgress(float value, StatusProgressOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "value", "type": "float" }, { "name": "o", "type": "StatusProgressOpts", "default": "default" }], "summary": "A small progress bar with an optional label. value is 0..1." }, { "name": "StatusBarSpacer", "kind": "extension", "id": "extension|StatusBarSpacer|0|0|void|||hff79ec75c75a5a4046a3afdf7908bfa1687f1fccc3cca35aa6a3c05e5696b38d", "signature": "void StatusBarSpacer()", "extensionOn": "CuiSharp.Ui", "summary": "cui_status_bar_spacer" }, { "name": "StatusBarText", "kind": "extension", "id": "extension|StatusBarText|0|0|void|UiText text;StatusItemOpts o = default||hf5288fddf236ac4166245c73e6f33c7b59cd60825aad4b4b26f2a62615179863", "signature": "void StatusBarText(UiText text, StatusItemOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "StatusItemOpts", "default": "default" }], "summary": "A message; \u0060tone\u0060 colors its icon." }, { "name": "Stepper", "kind": "extension", "id": "extension|Stepper|0|0|void|ReadOnlySpan\u003Cstring\u003E steps;int current||h80f2e80af6bf18ef466ffe2f62937141940d661367c04989db4a52915786a5ca", "signature": "void Stepper(ReadOnlySpan\u003Cstring\u003E steps, int current)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "steps", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "current", "type": "int" }], "summary": "cui_stepper" }, { "name": "Table", "kind": "extension", "id": "extension|Table|0|0|void|UiText id;ReadOnlySpan\u003CTableColumn\u003E columns;ref TableSort sort;DrawFn body;TableOpts o = default||h7968ef7a646f0817ff9658c4cbca9383316e49dd9c742c9662b2ff3812b0fd0a", "signature": "void Table(UiText id, ReadOnlySpan\u003CTableColumn\u003E columns, ref TableSort sort, DrawFn body, TableOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "columns", "type": "ReadOnlySpan\u003CTableColumn\u003E" }, { "name": "sort", "type": "ref TableSort" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "TableOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "TableCell", "kind": "extension", "id": "extension|TableCell|0|0|void|||h7206d360daa4de79037d61b719094d0baea2de5a24e5aeb9f04149502f3db3bc", "signature": "void TableCell()", "extensionOn": "CuiSharp.Ui", "summary": "Next cell; put any components inside, or use cui_table_cell_text." }, { "name": "TableCellText", "kind": "extension", "id": "extension|TableCellText|0|0|void|UiText text||h7ed6f22b1e22b71ecfb331830e30c25829c7af8fec09d3b888c861bbb28793a6", "signature": "void TableCellText(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "Part of cui_table_cell \u2014 Next cell; put any components inside, or use cui_table_cell_text." }, { "name": "Text", "kind": "extension", "id": "extension|Text|0|0|void|UiText text;TextOpts o = default||h098380135ff70fa9e6364b4f5cb5baaa3d0d23bb4e06916511f00c01e904dcb6", "signature": "void Text(UiText text, TextOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }, { "name": "o", "type": "TextOpts", "default": "default" }], "summary": "cui_text_ex" }, { "name": "TextReveal", "kind": "extension", "id": "extension|TextReveal|0|0|void|UiText id;UiText text;TextFxOpts o = default||h7f99ba4d6b24021ea0f87d36914931f6994d1962327a22f1e8b4caad0115cafe", "signature": "void TextReveal(UiText id, UiText text, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "text", "type": "UiText" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "Words fade and rise into place one after another, when first shown and again whenever the text changes." }, { "name": "Ticker", "kind": "extension", "id": "extension|Ticker|0|0|void|UiText id;ReadOnlySpan\u003CTickerItem\u003E items;TickerOpts o = default||h62c76d0d359572be4036b278345efbeac770ba89bef0d4343912d1b51ea0fc23", "signature": "void Ticker(UiText id, ReadOnlySpan\u003CTickerItem\u003E items, TickerOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "items", "type": "ReadOnlySpan\u003CTickerItem\u003E" }, { "name": "o", "type": "TickerOpts", "default": "default" }], "summary": "Ticker: items that scroll by continuously, pausing on hover." }, { "name": "TimelineItem", "kind": "extension", "id": "extension|TimelineItem|0|0|void|UiText title;TimelineOpts o = default||hd57ae894fcdcf6a57e4008b86ca1e4a0ea3d920a1be7b0beead7f0c64dce9b25", "signature": "void TimelineItem(UiText title, TimelineOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "title", "type": "UiText" }, { "name": "o", "type": "TimelineOpts", "default": "default" }], "summary": "cui_timeline_item_ex" }, { "name": "ToastDismiss", "kind": "extension", "id": "extension|ToastDismiss|0|0|void|int handle||h6a894b14bc221b765154e4ee9cf6cdd1812f544772192205c25a197be8077904", "signature": "void ToastDismiss(int handle)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "handle", "type": "int" }], "summary": "cui_toast_dismiss" }, { "name": "TocAnchor", "kind": "extension", "id": "extension|TocAnchor|0|0|void|UiText anchor||h474d1046a90fd952ce1996c9a0f04e59d8090e886222bfa8a62b08c2d191127c", "signature": "void TocAnchor(UiText anchor)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "anchor", "type": "UiText" }], "summary": "cui_toc_anchor" }, { "name": "ToggleTheme", "kind": "method", "id": "method|ToggleTheme|0|0|void|||h9c315cf4c8d3ce0774082f4db1c10fdcde1dfdef8503f7e49968fc73805e19e8", "signature": "void ToggleTheme()", "summary": "Switches to the other theme: what a \u0022dark mode\u0022 command is." }, { "name": "ToolCall", "kind": "extension", "id": "extension|ToolCall|0|0|void|UiText id;UiText name;ToolCallOpts o = default||h16a78d12e8afd01cd74d0ff79d04eab871b3602eb401436850ec64b67c8d437d", "signature": "void ToolCall(UiText id, UiText name, ToolCallOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "name", "type": "UiText" }, { "name": "o", "type": "ToolCallOpts", "default": "default" }], "summary": "cui_tool_call_ex" }, { "name": "ToolbarSeparator", "kind": "extension", "id": "extension|ToolbarSeparator|0|0|void|||h1ac04b800f486b06135932d0c44c42e77b107a635f62f0ebe94dc31f9e99b9a6", "signature": "void ToolbarSeparator()", "extensionOn": "CuiSharp.Ui", "summary": "cui_toolbar_separator" }, { "name": "ToolbarSpacer", "kind": "extension", "id": "extension|ToolbarSpacer|0|0|void|||h494edd9bb119d78eaa1c281a125dd1a9effb7a85caa35e4b35c4253376bb92f3", "signature": "void ToolbarSpacer()", "extensionOn": "CuiSharp.Ui", "summary": "pushes the following items to the right" }, { "name": "Tooltip", "kind": "extension", "id": "extension|Tooltip|0|0|void|UiText text||h5665aef7d99446eea8e623f0f1227e52e0512f331e35936232eb9a28aa7f3634", "signature": "void Tooltip(UiText text)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "text", "type": "UiText" }], "summary": "Tooltip for the previous component, shown after a short hover delay." }, { "name": "Tree", "kind": "extension", "id": "extension|Tree|0|0|void|UiText label;ref bool open;DrawFn body;TreeOpts o = default||he13b4bfd412c90e5210ac7a3109d12fb25e4a2280312b5257572daebbb5bbd95", "signature": "void Tree(UiText label, ref bool open, DrawFn body, TreeOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "open", "type": "ref bool" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "TreeOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "TreeTableName", "kind": "extension", "id": "extension|TreeTableName|0|0|void|UiText label;UiText icon||h1db08630dbcd5478e4543d6fc7df51dec714a4cefea2efb55e95ec44273c7151", "signature": "void TreeTableName(UiText label, UiText icon)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "label", "type": "UiText" }, { "name": "icon", "type": "UiText" }], "summary": "The first cell: indentation, guides, the chevron, an icon and the name (cut short with a tooltip of the whole name when it does not fit)." }, { "name": "TypingIndicator", "kind": "extension", "id": "extension|TypingIndicator|0|0|void|UiText name||h29e1190d004ef9cf04c8fb3bb6772b74ea89a31b5105bb6fe5d65e29383b006a", "signature": "void TypingIndicator(UiText name)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "name", "type": "UiText" }], "summary": "bouncing dots" }, { "name": "UserMenu", "kind": "extension", "id": "extension|UserMenu|0|0|void|UiText name;DrawFn body;UserMenuOpts o = default||h1d302e00c446dbae93ac0347cf4063547177c7d4c68194db26c7ca15c8128f8c", "signature": "void UserMenu(UiText name, DrawFn body, UserMenuOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "name", "type": "UiText" }, { "name": "body", "type": "DrawFn" }, { "name": "o", "type": "UserMenuOpts", "default": "default" }], "summary": "Draws the body only when the container opens, and closes it on exceptions." }, { "name": "WordRotate", "kind": "extension", "id": "extension|WordRotate|0|0|void|UiText id;ReadOnlySpan\u003Cstring\u003E words;float interval;TextFxOpts o = default||he53938c5acb8d2d7786cb08323a565882c4e7c01bc50637a3c5c0d9131734da4", "signature": "void WordRotate(UiText id, ReadOnlySpan\u003Cstring\u003E words, float interval, TextFxOpts o = default)", "extensionOn": "CuiSharp.Ui", "parameters": [{ "name": "id", "type": "UiText" }, { "name": "words", "type": "ReadOnlySpan\u003Cstring\u003E" }, { "name": "interval", "type": "float" }, { "name": "o", "type": "TextFxOpts", "default": "default" }], "summary": "One word at a time; the next one rolls up into place and the width follows." }] }, { "name": "CuiSharp.UiText", "displayName": "UiText", "kind": "ref struct", "summary": "Frame-local text: a string, UTF-8 bytes, or interpolation. All UI text parameters accept this type; interpolated values format directly into the frame arena without creating a managed string.", "members": [{ "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||int literalLength;int formattedCount||h9d129c9e8c13f816fed4fd270b6f7361e24da4313ad96ee28152fbfd2d443819", "signature": "UiText(int literalLength, int formattedCount)", "parameters": [{ "name": "literalLength", "type": "int" }, { "name": "formattedCount", "type": "int" }], "summary": "Called by the compiler for interpolated text." }, { "name": "implicit operator UiText", "kind": "conversion", "id": "conversion|op_Implicit|1|0|UiText|ReadOnlySpan\u003Cbyte\u003E text||hd1579173337f67b3bf25d622e86eb7f148007c45b2d398328924b26ef41bed1a", "signature": "static implicit operator UiText(ReadOnlySpan\u003Cbyte\u003E text)", "member": "op_Implicit", "parameters": [{ "name": "text", "type": "ReadOnlySpan\u003Cbyte\u003E" }], "summary": "Copies pre-encoded UTF-8 into the frame arena." }, { "name": "implicit operator UiText", "kind": "conversion", "id": "conversion|op_Implicit|1|0|UiText|string? text||ha192bca6069ef409f9cb822e5f7d0eaa3554d027fa4199e7d57af82030fd6b75", "signature": "static implicit operator UiText(string? text)", "member": "op_Implicit", "parameters": [{ "name": "text", "type": "string?" }], "summary": "Copies a managed string into the frame arena; null means empty." }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|ReadOnlySpan\u003Cbyte\u003E value||hef829454fbde18245e3b8ef1227cc657c7d0c8b8ac6043baddcb203e4e89ce11", "signature": "void AppendFormatted(ReadOnlySpan\u003Cbyte\u003E value)", "parameters": [{ "name": "value", "type": "ReadOnlySpan\u003Cbyte\u003E" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|ReadOnlySpan\u003Cchar\u003E value||h512a8c46c33dd443943ef420e735689596e3dd472b3a96689fcb02b2ba852201", "signature": "void AppendFormatted(ReadOnlySpan\u003Cchar\u003E value)", "parameters": [{ "name": "value", "type": "ReadOnlySpan\u003Cchar\u003E" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|ReadOnlySpan\u003Cchar\u003E value;int alignment||h982dbe4e0a26fe044f09d75a4d1104d13f46fc199f6c695c3782505e26cfbb9b", "signature": "void AppendFormatted(ReadOnlySpan\u003Cchar\u003E value, int alignment)", "parameters": [{ "name": "value", "type": "ReadOnlySpan\u003Cchar\u003E" }, { "name": "alignment", "type": "int" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|UiText value||h5e44e320cfaa7bde5f1329fb6b53cbdd46d63a7584a2c0fc9033ba79744123a3", "signature": "void AppendFormatted(UiText value)", "parameters": [{ "name": "value", "type": "UiText" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|bool value||h720aa8df35eebbf6f0d5f648fc9a056d974eb609b0040ec2c42fd468a06693a0", "signature": "void AppendFormatted(bool value)", "parameters": [{ "name": "value", "type": "bool" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|char value||h9d680ea6dfe9dbec87b517cb2cbddc8218746befbf6dd2ee68b35e855f8057ae", "signature": "void AppendFormatted(char value)", "parameters": [{ "name": "value", "type": "char" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|object? value||hf93e8db4d0924f08e67f1ef03109839f6c73f17ad46779c6b8b380b8e05c7218", "signature": "void AppendFormatted(object? value)", "parameters": [{ "name": "value", "type": "object?" }], "summary": "Fallback for other values; their ToString() may allocate." }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|object? value;int alignment;string? format = null||h059572468f1cfeb9ca57651003cde79067a087f489ab6d52b658fb044b3526ed", "signature": "void AppendFormatted(object? value, int alignment, string? format = null)", "parameters": [{ "name": "value", "type": "object?" }, { "name": "alignment", "type": "int" }, { "name": "format", "type": "string?", "default": "null" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|object? value;string? format||h9d8fbb16f8627e1d56ead9a8606ba99da5f85ef91fd9b3771d29f8c5e4c7e462", "signature": "void AppendFormatted(object? value, string? format)", "parameters": [{ "name": "value", "type": "object?" }, { "name": "format", "type": "string?" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|string? value||h7ed9ddb298ac718e41c3694b560ffb5c9d2bc9abccaaeedd72c1132bffd4b796", "signature": "void AppendFormatted(string? value)", "parameters": [{ "name": "value", "type": "string?" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|0|void|string? value;int alignment||h51c88640d936ec7475bf76cd319665175a79b5198d79ca7c1a3ba95a51998749", "signature": "void AppendFormatted(string? value, int alignment)", "parameters": [{ "name": "value", "type": "string?" }, { "name": "alignment", "type": "int" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|1|void|T value||h65df985b422ddbac895e2b797462d95fb3f98bb9ce9ccf9782ec6763b6832437", "signature": "void AppendFormatted\u003CT\u003E(T value) where T : IUtf8SpanFormattable", "parameters": [{ "name": "value", "type": "T" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|1|void|T value;int alignment||h6468da91f19f1efef869ac4b11f9ff350163d77d76e6db4819ce47eefce59a06", "signature": "void AppendFormatted\u003CT\u003E(T value, int alignment) where T : IUtf8SpanFormattable", "parameters": [{ "name": "value", "type": "T" }, { "name": "alignment", "type": "int" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|1|void|T value;int alignment;string? format||h1004c4617ff18f4ce7f5dfd22cacb4983c1cb3ae5b0581f5cdcfadab89abcd35", "signature": "void AppendFormatted\u003CT\u003E(T value, int alignment, string? format) where T : IUtf8SpanFormattable", "parameters": [{ "name": "value", "type": "T" }, { "name": "alignment", "type": "int" }, { "name": "format", "type": "string?" }] }, { "name": "AppendFormatted", "kind": "method", "id": "method|AppendFormatted|0|1|void|T value;string? format||h2fc49aa45e0e759e36dd6df0e6e9d6157eff303a310b2b52f64f0ffa2635a4ad", "signature": "void AppendFormatted\u003CT\u003E(T value, string? format) where T : IUtf8SpanFormattable", "parameters": [{ "name": "value", "type": "T" }, { "name": "format", "type": "string?" }] }, { "name": "AppendLiteral", "kind": "method", "id": "method|AppendLiteral|0|0|void|string value||h91e764bb2eb76e141ff133bb474648f96920b1561f73237554f400e459d22437", "signature": "void AppendLiteral(string value)", "parameters": [{ "name": "value", "type": "string" }] }] }, { "name": "CuiSharp.UptimeOpts", "displayName": "UptimeOpts", "kind": "struct", "summary": "A status page: each service with its current state, its uptime over the period, and one bar per day colored by availability (gray without data). Hover a bar for its day and uptime. On a narrow panel only the most recent days that fit are shown. All fields are optional; zero selects the native default.", "members": [{ "name": "LastDay", "kind": "field", "id": "field|LastDay|0|0|Date|||ha3f645ffdf8751c48a7a18f62ca5d5d533c04d6ba810e7a5b9e3d210de69be6b", "signature": "public Date LastDay", "summary": "the date of the last value, for the tooltips" }, { "name": "Width", "kind": "field", "id": "field|Width|0|0|Size|||h4006d8d1aa3607cf3007c2fd6686981e9812586a28b9a4d7a283aeadfcd379ad", "signature": "public Size Width", "summary": "the date of the last value, for the tooltips" }] }, { "name": "CuiSharp.UptimeResult", "displayName": "UptimeResult", "kind": "struct", "summary": "Elements are copied into the frame arena by the wrapper.", "members": [{ "name": ".ctor", "kind": "constructor", "id": "constructor|.ctor|0|0||int Service;int Day = default||h4ee9e7c7a585a544f5268afb6a64a28897b9938d387b9170a817e81d7915e91b", "signature": "UptimeResult(int Service, int Day = default)", "parameters": [{ "name": "Service", "type": "int" }, { "name": "Day", "type": "int", "default": "default" }] }, { "name": "Day", "kind": "field", "id": "field|Day|0|0|int|||h40d69339a69f05f7a1cf0fdcf537358258767e30cc6d07e430cb48196d28a0e1", "signature": "public int Day", "summary": "under the pointer, or -1" }, { "name": "Service", "kind": "field", "id": "field|Service|0|0|int|||hba0d1bf399894e025b711a3e44f55e40012b5deae721403f37ad45df303a1b8b", "signature": "public int Service", "summary": "under the pointer, or -1" }] }, @@ -713,7 +719,7 @@ { "name": "CuiSharp.WaveformOpts", "displayName": "WaveformOpts", "kind": "struct", "summary": "Waveform: bars from peaks (0..1). With progress, the played part is colored and clicking or dragging seeks; returns true when it did. All fields are optional; zero selects the native default.", "members": [{ "name": "Color", "kind": "field", "id": "field|Color|0|0|Color|||h275b313b6b736c43c952868f4256ef14616d693e4fe68ca53c7eb74f0c484c28", "signature": "public Color Color", "summary": "cui_color color" }, { "name": "Width", "kind": "field", "id": "field|Width|0|0|Size|||h4006d8d1aa3607cf3007c2fd6686981e9812586a28b9a4d7a283aeadfcd379ad", "signature": "public Size Width", "summary": "cui_size width" }, { "name": "Bar", "kind": "field", "id": "field|Bar|0|0|float|||h591ddfbd792b6ecacf5e925fb8b547031152808505904aa2466d8298c0ada87e", "signature": "public float Bar", "summary": "width of each bar in points, default 3" }, { "name": "Gap", "kind": "field", "id": "field|Gap|0|0|float|||hfb7872ce9b59a7527ff553ff6078c53ec071b88b0788739fd4b0c8e604853e0a", "signature": "public float Gap", "summary": "float gap" }, { "name": "Height", "kind": "field", "id": "field|Height|0|0|float|||ha333299f179a1814155cda66a26b50fd7f476d27bf3ad5ffbc147c5abc8227fd", "signature": "public float Height", "summary": "float height" }] }, { "name": "CuiSharp.WeekOpts", "displayName": "WeekOpts", "kind": "struct", "summary": "Week calendar: seven day columns on an hour grid. Drag an event to move it (15 minute steps), drag its bottom edge to resize it. Returns the index of a clicked event, or -1. All fields are optional; zero selects the native default.", "members": [{ "name": "Height", "kind": "field", "id": "field|Height|0|0|Size|||ha64280009505e4bd6e5bbf4456fad0c2709e6a7d632627c6d242b3f0dccbcdbe", "signature": "public Size Height", "summary": "cui_size height" }, { "name": "ReadOnly", "kind": "field", "id": "field|ReadOnly|0|0|bool|||he393614309fa34fbb6e0930aa04c288616abcb05d02f63ad9eb9cb23927877ad", "signature": "public bool ReadOnly", "summary": "_Bool read_only" }, { "name": "EndHour", "kind": "field", "id": "field|EndHour|0|0|float|||hf2d73b4840a1592be5241a7d3de76347b3f0fa9a82072704ccc371b6dd7bd10d", "signature": "public float EndHour", "summary": "last hour shown, default 21; used only when it is greater than \u0060start_hour\u0060" }, { "name": "HourHeight", "kind": "field", "id": "field|HourHeight|0|0|float|||hd99043ce8431fbebab02ad1cffe41da949e573d0bf135f08eb80493759cb456b", "signature": "public float HourHeight", "summary": "points per hour, default 52" }, { "name": "StartHour", "kind": "field", "id": "field|StartHour|0|0|float|||hd84f53a0fa907b5d1904af3368ea78c32ea17804962c166927e7ad02ddae27f9", "signature": "public float StartHour", "summary": "first hour shown, default 7; set together with \u0060end_hour\u0060" }] }, { "name": "CuiSharp.WheelOpts", "displayName": "WheelOpts", "kind": "struct", "summary": "Wheel picker: a drum of options that you drag, scroll or arrow through. Several side by side make a date or time reel. join_left / join_right square off the selection band so wheels placed side by side share one continuous band. All fields are optional; zero selects the native default.", "members": [{ "name": "Width", "kind": "field", "id": "field|Width|0|0|Size|||h4006d8d1aa3607cf3007c2fd6686981e9812586a28b9a4d7a283aeadfcd379ad", "signature": "public Size Width", "summary": "cui_size width" }, { "name": "JoinLeft", "kind": "field", "id": "field|JoinLeft|0|0|bool|||h4065b1eb324d0954a4c5b0cc6ea19eee010a2152d8e132ede3077994bfcced1b", "signature": "public bool JoinLeft", "summary": "squares off the left end of the selection band, to join a wheel on that side" }, { "name": "JoinRight", "kind": "field", "id": "field|JoinRight|0|0|bool|||h922a39579650be390881d5edb26c2593c91193b13c7ca5259cff31b13f98370c", "signature": "public bool JoinRight", "summary": "squares off the right end of the selection band, to join a wheel on that side" }, { "name": "Loop", "kind": "field", "id": "field|Loop|0|0|bool|||h7274a1137877894804d8aab9d630e1af40661c2344ca1ff578904fa0bf31f6d9", "signature": "public bool Loop", "summary": "the items wrap around: after the last comes the first again" }, { "name": "Rows", "kind": "field", "id": "field|Rows|0|0|int|||hefb2c032827af5f9bdb34f5a833a498a2a3d7d65d6ddf1e90ac44faab38b24dc", "signature": "public int Rows", "summary": "rows in view, made odd so the selected one sits in the middle; default 5" }] }, - { "name": "CuiSharp.WidgetQuery", "displayName": "WidgetQuery", "kind": "struct", "summary": "What a search for a control can say: a label, a kind and a label (Button \u0022Save\u0022), or a path through the tree (editor \u003E Button \u0022Save\u0022: the containers are bare, and only the last step names a kind).", "members": [{ "name": "Parse", "kind": "method", "id": "method|Parse|1|0|WidgetQuery|string query||h2f5edda4f13fce617c8db2ae42e24b202c1231ad7664fd91017e4247112bc351", "signature": "static WidgetQuery Parse(string query)", "parameters": [{ "name": "query", "type": "string" }], "summary": "Reads a query: Save, Button \u0022Save\u0022, editor \u003E Save, or id:draft for a widget by the id it was drawn with \u2014 the one form that keeps working when the label is translated." }, { "name": "Text", "kind": "property", "id": "property|Text|0|0|string||get;|h221097532e4154611cbbc42c65b80d74f8055bd282efb709184598cd9d2c27bb", "signature": "string Text { get; }", "summary": "The text to look for: a label, an id, or the leaf of a path." }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()", "summary": "The query as a person would write it." }, { "name": "Kind", "kind": "property", "id": "property|Kind|0|0|string?||get;|hf6519d7e4bd25a90454dce8bfbf1cd012be732dbace08b07e972678fed9b1c9e", "signature": "string? Kind { get; }", "summary": "The kind the caller named, or null." }, { "name": "Path", "kind": "property", "id": "property|Path|0|0|string[]||get;|h02f940b2565eea5f6649ab0fb9f12e9719ae8b070c06d1d0a4b04b5bb9611770", "signature": "string[] Path { get; }", "summary": "The containers to walk through, outermost first; empty for a plain search." }] }, - { "name": "CuiSharp.WidgetRecorder", "displayName": "WidgetRecorder", "kind": "static class", "summary": "The entry point every wrapper calls to record what it drew, and the switch that turns that recording on for a surface.", "members": [{ "name": "Enabled", "kind": "property", "id": "property|Enabled|1|0|bool||get;|h68c1f4ee4f2f10fd72384380655538d943b27f76af76ee104436002faf1c0965", "signature": "static bool Enabled { get; }", "summary": "True while some surface on this thread records what it draws." }, { "name": "Note", "kind": "method", "id": "method|Note|1|0|void|nint ui;string kind;UiText text||h239e16bff6ab4a9a0eef65ca564bea588e4d030a812b256cfaf69690ff005639", "signature": "static void Note(nint ui, string kind, UiText text)", "parameters": [{ "name": "ui", "type": "nint" }, { "name": "kind", "type": "string" }, { "name": "text", "type": "UiText" }], "summary": "Called by every generated wrapper (and by the hand-written ones) with the text that identifies the widget." }] } + { "name": "CuiSharp.WidgetQuery", "displayName": "WidgetQuery", "kind": "struct", "summary": "What a search for a control can say: a label, a kind and a label (Button \u0022Save\u0022), a role (role:button), a value (value:Milk), or a path through the tree (editor \u003E Button \u0022Save\u0022: the containers are bare, and only the last step names a kind).", "members": [{ "name": "Role", "kind": "property", "id": "property|Role|0|0|SemanticRole?||get;|hf7c4e30da08cdc4dc2001e01f418603035212aa17d5e169f04a45b6a8e698699", "signature": "SemanticRole? Role { get; }", "summary": "The semantic role to require, or null." }, { "name": "Parse", "kind": "method", "id": "method|Parse|1|0|WidgetQuery|string query||h2f5edda4f13fce617c8db2ae42e24b202c1231ad7664fd91017e4247112bc351", "signature": "static WidgetQuery Parse(string query)", "parameters": [{ "name": "query", "type": "string" }], "summary": "Reads a query: Save, Button \u0022Save\u0022, role:button Save, value:Milk, editor \u003E Save, or id:draft for a widget by the id it was drawn with \u2014 the form that keeps working when the label is translated." }, { "name": "Text", "kind": "property", "id": "property|Text|0|0|string||get;|h221097532e4154611cbbc42c65b80d74f8055bd282efb709184598cd9d2c27bb", "signature": "string Text { get; }", "summary": "The text to look for: a label, an id, or the leaf of a path." }, { "name": "ToString", "kind": "method", "id": "method|ToString|0|0|string|||h88f14b677913048cebd07a06bf794b34a5e065c81768d7349d26dc84cf1cc938", "signature": "string ToString()", "summary": "The query as a person would write it." }, { "name": "Kind", "kind": "property", "id": "property|Kind|0|0|string?||get;|hf6519d7e4bd25a90454dce8bfbf1cd012be732dbace08b07e972678fed9b1c9e", "signature": "string? Kind { get; }", "summary": "The kind the caller named, or null." }, { "name": "Value", "kind": "property", "id": "property|Value|0|0|string?||get;|hb2b72cbd43ebe3a6038a8c9bc6b24f0c97f73a648086318667933ccac27792d8", "signature": "string? Value { get; }", "summary": "The value to require, or null: a text field\u0027s text, a slider\u0027s number, a toggle\u0027s state." }, { "name": "Path", "kind": "property", "id": "property|Path|0|0|string[]||get;|h02f940b2565eea5f6649ab0fb9f12e9719ae8b070c06d1d0a4b04b5bb9611770", "signature": "string[] Path { get; }", "summary": "The containers to walk through, outermost first; empty for a plain search." }] }, + { "name": "CuiSharp.WidgetRecorder", "displayName": "WidgetRecorder", "kind": "static class", "summary": "The entry point every wrapper calls to record what it drew, and the switch that turns that recording on for a surface.", "members": [{ "name": "Enabled", "kind": "property", "id": "property|Enabled|1|0|bool||get;|h68c1f4ee4f2f10fd72384380655538d943b27f76af76ee104436002faf1c0965", "signature": "static bool Enabled { get; }", "summary": "True while some surface on this thread records what it draws." }, { "name": "Note", "kind": "method", "id": "method|Note|1|0|void|nint ui;string kind;UiText text||h239e16bff6ab4a9a0eef65ca564bea588e4d030a812b256cfaf69690ff005639", "signature": "static void Note(nint ui, string kind, UiText text)", "parameters": [{ "name": "ui", "type": "nint" }, { "name": "kind", "type": "string" }, { "name": "text", "type": "UiText" }], "summary": "Called by every generated wrapper (and by the hand-written ones) with the text that identifies the widget." }, { "name": "Note", "kind": "method", "id": "method|Note|1|0|void|nint ui;string kind;UiText text;SemanticState state||hd412aa2c04ae9173db79189559a9a92da4ae8031e3683aa8796db0c53a9cba4a", "signature": "static void Note(nint ui, string kind, UiText text, SemanticState state)", "parameters": [{ "name": "ui", "type": "nint" }, { "name": "kind", "type": "string" }, { "name": "text", "type": "UiText" }, { "name": "state", "type": "SemanticState" }], "summary": "Records the state of a control that exposes no separate value." }, { "name": "NoteValue", "kind": "method", "id": "method|NoteValue|1|0|void|nint ui;string kind;UiText text;bool value;SemanticState state = SemanticState.None||h6e4eb31e2909987f217db1af95c6032a5828ac90daa0ef8628666a54b6d911e9", "signature": "static void NoteValue(nint ui, string kind, UiText text, bool value, SemanticState state = SemanticState.None)", "parameters": [{ "name": "ui", "type": "nint" }, { "name": "kind", "type": "string" }, { "name": "text", "type": "UiText" }, { "name": "value", "type": "bool" }, { "name": "state", "type": "SemanticState", "default": "SemanticState.None" }], "summary": "Records a boolean value, e.g. a checkbox\u0027s on/off." }, { "name": "NoteValue", "kind": "method", "id": "method|NoteValue|1|0|void|nint ui;string kind;UiText text;double value;SemanticState state = SemanticState.None||h36d1d7da2067a7410f8156978467969afafc9e08e161b1b72d7764549f4b1f9b", "signature": "static void NoteValue(nint ui, string kind, UiText text, double value, SemanticState state = SemanticState.None)", "parameters": [{ "name": "ui", "type": "nint" }, { "name": "kind", "type": "string" }, { "name": "text", "type": "UiText" }, { "name": "value", "type": "double" }, { "name": "state", "type": "SemanticState", "default": "SemanticState.None" }], "summary": "Records a numeric value; formatting happens after the draw, not in the frame." }, { "name": "NoteValue", "kind": "method", "id": "method|NoteValue|1|0|void|nint ui;string kind;UiText text;string value;SemanticState state = SemanticState.None||hd083c3ac0f2667d7cc13b0c28cfb66da22bd4482d2dc1689b93a91b13f49ffbf", "signature": "static void NoteValue(nint ui, string kind, UiText text, string value, SemanticState state = SemanticState.None)", "parameters": [{ "name": "ui", "type": "nint" }, { "name": "kind", "type": "string" }, { "name": "text", "type": "UiText" }, { "name": "value", "type": "string" }, { "name": "state", "type": "SemanticState", "default": "SemanticState.None" }], "summary": "Records a text value, e.g. an input\u0027s current text." }] } ] } diff --git a/skills/cui-dotnet/llms.txt b/skills/cui-dotnet/llms.txt index 00bdb74..4c464de 100644 --- a/skills/cui-dotnet/llms.txt +++ b/skills/cui-dotnet/llms.txt @@ -355,6 +355,7 @@ Hand-written, because the wrapper needs state a C call cannot carry; they are pa - `ui.AddFontFallback(...)` — hand-written in `Ui/Ui.Fonts.cs` - `ui.Animate(...)` — hand-written in `Ui/Ui.Draw.cs` - `ui.AnimateSpring(...)` — hand-written in `Ui/Ui.Draw.cs` +- `ui.Automation(...)` — hand-written in `Ui/Ui.Overlays.cs` - `ui.Canvas(...)` — hand-written in `Ui/Ui.Draw.cs` - `ui.Clip(...)` — hand-written in `Ui/Ui.Draw.cs` - `ui.ColorOf(...)` — hand-written in `Ui/Ui.Frame.cs` diff --git a/src/CuiSharp.Tests/HeadlessLoopTests.cs b/src/CuiSharp.Tests/HeadlessLoopTests.cs index 6561626..4bf51f4 100644 --- a/src/CuiSharp.Tests/HeadlessLoopTests.cs +++ b/src/CuiSharp.Tests/HeadlessLoopTests.cs @@ -111,6 +111,28 @@ public void TreeDescribesTheFrameAndClickAnswersWithTheNextOne() Assert.Equal(1, page.Clicks); } + [Fact] + public void TreeDetailsAndSemanticQueriesSpeakTheSameProtocol() + { + if (!OperatingSystem.IsWindows()) return; + + var page = new Counter(); + using var app = TestApp.Start(page, 400, 300); + + string details = Wire(app, "tree details"); + Assert.Contains("Button \"Add\" role=button", details, StringComparison.Ordinal); + Assert.Contains("Input \"name\" role=textbox", details, StringComparison.Ordinal); + Assert.Contains("state=enabled", details, StringComparison.Ordinal); + + string found = Wire(app, "find role:button Add"); + Assert.Contains("Button \"Add\" role=button", found, StringComparison.Ordinal); + Assert.Contains(" at ", found, StringComparison.Ordinal); + + // The existing plain tree is unchanged: a reader that does not ask for details pays + // neither the extra words nor the extra native calls to read them. + Assert.Equal("Frame\n Label \"clicks 0\"\n Button \"Add\"\n Input \"name\"", Wire(app, "tree")); + } + [Fact] public void TypingGoesToTheFocusedField() { diff --git a/src/CuiSharp.Tests/SemanticTreeTests.cs b/src/CuiSharp.Tests/SemanticTreeTests.cs index 3a0e40b..dc880a2 100644 --- a/src/CuiSharp.Tests/SemanticTreeTests.cs +++ b/src/CuiSharp.Tests/SemanticTreeTests.cs @@ -234,6 +234,9 @@ public void TheItemsOfATabStripAreControlsOfTheirOwn() """, app.Print().ReplaceLineEndings("\n")); + Assert.True((app.Find("Tab", "Todos").Node.State & SemanticState.Selected) != 0); + Assert.True((app.Find("Tab", "Markets").Node.State & SemanticState.Selected) == 0); + app.Find("Tab", "Markets").ClickAndFrame(); Assert.Equal(1, page.Page); } @@ -469,6 +472,114 @@ public void DerivedScopeIdsSurviveUnicodeInterpolatedAndHiddenNames() Assert.True(scroll.Rect.W > 0 && row.Rect.W > 0); } + [Fact] + public void ANodeCarriesWhatAnAccessibilityTreeNeeds() + { + var page = new Editor { Draft = "Milk" }; + using var app = TestApp.Start(page, 600, 400); + + SemanticNode input = app.Tree.Find("Input \"draft\""); + Assert.Equal(SemanticRole.TextBox, input.Role); + Assert.Equal("draft", input.Name); + Assert.Equal("Milk", input.Value); + Assert.True(input.IsEnabled); + + SemanticNode save = app.Tree.Find("Button \"Save\""); + Assert.Equal(SemanticRole.Button, save.Role); + Assert.Equal("Save", save.Name); + Assert.Contains("role=button", save.Describe(), StringComparison.Ordinal); + + SemanticAccessibilityNode accessible = app.Tree.ToAccessibility(); + Assert.Equal(SemanticRole.Frame, accessible.Role); + Assert.Contains(Flatten(accessible), child => child.Role == SemanticRole.TextBox); + + static IEnumerable Flatten(SemanticAccessibilityNode node) + { + foreach (SemanticAccessibilityNode child in node.Children) + { + yield return child; + foreach (SemanticAccessibilityNode deeper in Flatten(child)) yield return deeper; + } + } + } + + [Fact] + public void AnAutomationScopeNamesTheWidgetAndSurvivesATranslation() + { + var clicks = 0; + using var app = TestApp.Start(ui => + { + using (ui.Automation("save:1")) + if (ui.Button("Save")) clicks++; + using (ui.Id("row:7")) + ui.Button("Row"); + }, 300, 160); + + SemanticNode save = app.Find("id:save:1").Node; + Assert.Equal("Save", save.Text); + Assert.Equal("save:1", save.AutomationId); + Assert.Equal("Save", app.Find("role:button Save").Node.Text); + + // `ui.Id` seeds native state and automation with the same stable key. + Assert.Equal("row:7", app.Find("id:row:7").Node.AutomationId); + + // The explicit id is not a label, so a translated button can still be clicked. + app.Find("id:save:1").ClickAndFrame(); + Assert.Equal(1, clicks); + } + + [Fact] + public void AValueQueryFindsTheFieldEvenWhenItsLabelIsNotTheValue() + { + var page = new Editor { Draft = "Milk" }; + using var app = TestApp.Start(page, 600, 400); + + Assert.Equal("Input", app.Find("value:Milk").Node.Kind); + Assert.Equal("Input", app.Find("role:textbox value:Milk").Node.Kind); + Assert.Equal("Save", app.Find("role:button Save").Node.Text); + } + + [Fact] + public void TreeDetailsAddsRoleValueAndStateWithoutChangingThePlainTree() + { + var page = new Editor { Draft = "Milk" }; + using var app = TestApp.Start(page, 600, 400); + + string plain = app.Print(); + Assert.DoesNotContain("role=", plain, StringComparison.Ordinal); + + string details = app.Print(details: true); + Assert.Contains("Input \"draft\" role=textbox", details, StringComparison.Ordinal); + Assert.Contains("value=\"Milk\"", details, StringComparison.Ordinal); + Assert.Contains("state=enabled", details, StringComparison.Ordinal); + } + + [Fact] + public void ADisabledScopeClearsTheEnabledState() + { + using var app = TestApp.Start(ui => + { + using (ui.Disabled(true)) ui.Button("Off"); + }, 300, 160); + + SemanticNode off = app.Tree.Find("Off"); + Assert.False(off.IsEnabled); + Assert.DoesNotContain("enabled", SemanticStates.Format(off.State), StringComparison.Ordinal); + } + + [Fact] + public void ACheckboxRecordsItsValueAndCheckedState() + { + var on = true; + using var app = TestApp.Start(ui => ui.Checkbox("Enable notifications", ref on), 400, 200); + + SemanticNode checkbox = app.Tree.Find("Enable notifications"); + Assert.Equal(SemanticRole.CheckBox, checkbox.Role); + Assert.Equal("true", checkbox.Value); + Assert.True((checkbox.State & SemanticState.Checked) != 0); + Assert.True(checkbox.IsEnabled); + } + [Fact] public void RecordingAFrameCostsTheDrawNothing() { diff --git a/src/CuiSharp.Tests/ToolArgumentTests.cs b/src/CuiSharp.Tests/ToolArgumentTests.cs index 4265569..0b465e7 100644 --- a/src/CuiSharp.Tests/ToolArgumentTests.cs +++ b/src/CuiSharp.Tests/ToolArgumentTests.cs @@ -63,6 +63,44 @@ public void FlagsBeforeTheSeparatorAreTheToolsAndAfterItAreTheApps() Assert.Equal(["--page=2", "--dark"], parsed.Options.AppArgs); } + [Fact] + public void RoleValueAndIdAreOnePortableQuery() + { + Grammar.Parsed byRole = Grammar.Parse(["find", "--role", "button", "Save"]); + Assert.Empty(byRole.Errors); + Assert.Equal("find role:button Save", byRole.Options!.Line); + + Grammar.Parsed byValue = Grammar.Parse(["find", "--role", "textbox", "--value", "Milk"]); + Assert.Empty(byValue.Errors); + Assert.Equal("find role:textbox value:Milk", byValue.Options!.Line); + + Grammar.Parsed byId = Grammar.Parse(["click", "--id", "pause:42"]); + Assert.Empty(byId.Errors); + Assert.Equal("click id:pause:42", byId.Options!.Line); + } + + [Fact] + public void AQueryWithNoTextOrFilterIsAUsageError() + { + Grammar.Parsed empty = Grammar.Parse(["find"]); + Assert.NotEmpty(empty.Errors); + Assert.Contains("--role", string.Join(" ", empty.Errors), StringComparison.Ordinal); + + Grammar.Parsed both = Grammar.Parse(["find", "Save", "--value", "Milk"]); + Assert.NotEmpty(both.Errors); + Assert.Contains("--value", string.Join(" ", both.Errors), StringComparison.Ordinal); + } + + [Fact] + public void TreeDetailsRidesOnTheTreeCommand() + { + Grammar.Parsed parsed = Grammar.Parse(["tree", "--details"]); + + Assert.Empty(parsed.Errors); + Assert.Equal("tree", parsed.Options!.Command); + Assert.Equal("tree details", parsed.Options.Line); + } + [Fact] public void AFlagTheToolDoesNotKnowIsReportedRatherThanForwarded() { @@ -174,7 +212,14 @@ public void EveryCommandAndOptionTheHelpListsCanBeTyped() foreach (string spelling in new[] { option.Name }.Concat(option.Aliases)) { var argv = new List { command.Name }; - foreach (CliArgument argument in command.Arguments) argv.Add(SampleArgument(argument)); + // A value or an exact id is the whole query; adding the sample label would + // ask for two different searches at once, which the grammar refuses. + bool queryOnly = command.Name is "find" or "click" && spelling is "--value" or "--id"; + if (!queryOnly) + { + foreach (CliArgument argument in command.Arguments) argv.Add(SampleArgument(argument)); + } + argv.Add(spelling); if (option.ValueType != typeof(bool)) argv.Add(SampleOption(option)); // A timeout bounds a wait, so it is only legal beside one. @@ -249,7 +294,7 @@ public void HelpIsPerCommandAndNamesItsArguments() Assert.Equal(0, Cli.Run(["click", "--help"], output, error)); string help = output.ToString(); - Assert.Contains("click ", help, StringComparison.Ordinal); + Assert.Contains("click []", help, StringComparison.Ordinal); Assert.Contains("--attach", help, StringComparison.Ordinal); Assert.Equal("", error.ToString()); } diff --git a/src/CuiSharp.Tests/WidgetQueryTests.cs b/src/CuiSharp.Tests/WidgetQueryTests.cs index 78dbc90..b5a10c7 100644 --- a/src/CuiSharp.Tests/WidgetQueryTests.cs +++ b/src/CuiSharp.Tests/WidgetQueryTests.cs @@ -57,4 +57,29 @@ public void TheQueryPrintsBackTheWayItWasWritten() Assert.Equal("Button \"Save\"", WidgetQuery.Parse("Button \"Save\"").ToString()); Assert.Equal("editor > Save", WidgetQuery.Parse("editor > Save").ToString()); } + + [Fact] + public void RoleAndValueAreFiltersInFrontOfTheLabel() + { + WidgetQuery role = WidgetQuery.Parse("role:button Save"); + Assert.Equal(SemanticRole.Button, role.Role); + Assert.Equal("Save", role.Text); + + WidgetQuery value = WidgetQuery.Parse("value:\"Milk and honey\""); + Assert.Equal("Milk and honey", value.Value); + Assert.Equal("", value.Text); + + WidgetQuery both = WidgetQuery.Parse("role:checkbox value:true"); + Assert.Equal(SemanticRole.CheckBox, both.Role); + Assert.Equal("true", both.Value); + } + + [Fact] + public void AnUnknownRoleStaysALabelInsteadOfBecomingAMatchNothing() + { + WidgetQuery query = WidgetQuery.Parse("role:not-a-role"); + + Assert.Null(query.Role); + Assert.Equal("role:not-a-role", query.Text); + } } diff --git a/src/CuiSharp.Tools/Grammar.cs b/src/CuiSharp.Tools/Grammar.cs index 75408bf..b0138b2 100644 --- a/src/CuiSharp.Tools/Grammar.cs +++ b/src/CuiSharp.Tools/Grammar.cs @@ -36,8 +36,8 @@ private static readonly (string Name, string[] Aliases, string Description, Argu ("faults", [], "what the app threw while drawing, if anything", []), ("quit", [], "close the app, or a live attached window", []), - ("find", [], "one control: kind, label and rectangle", [Text("text", "the label, text or id to find")]), - ("click", [], "click a control, then print the frame it produced", [Text("text", "the label, text or id to click")]), + ("find", [], "one control: kind, label and rectangle", [OptionalText("text", "the label, text or id to find")]), + ("click", [], "click a control, then print the frame it produced", [OptionalText("text", "the label, text or id to click")]), ("type", [], "type into the focused control, then print the frame", [Text("text", "the text to type")]), ("key", [], "press a key by the name a person would use", [Text("name", "the key: Tab, Enter, Escape, F1, PageDown")]), @@ -144,6 +144,31 @@ private sealed class Symbols Description = "exit 1 when a check warns, not only when it fails", }; + // ---- what to find -------------------------------------------------------------------- + + internal Option Role = new("--role") + { + Description = "find by semantic role: button, textbox, checkbox, tab, menuitem, …", + HelpName = "role", + }; + + internal Option Value = new("--value") + { + Description = "find by the value a control holds: an input's text, a slider's number", + HelpName = "text", + }; + + internal Option Id = new("--id") + { + Description = "find by an explicit automation id (`ui.Id` or `ui.Automation`)", + HelpName = "id", + }; + + internal Option Details = new("--details") + { + Description = "include role, automation id, value and state in the tree", + }; + // ---- what has to be true before the command runs ------------------------------------ internal Option Frames = new("--frames") @@ -315,6 +340,14 @@ private static (Symbols Symbols, RootCommand Root) Build() foreach (Argument argument in arguments) command.Arguments.Add(argument); foreach (Option option in symbols.AppOptions) command.Options.Add(option); if (name == "png") command.Options.Add(symbols.Sizes); + if (name is "find" or "click") + { + command.Options.Add(symbols.Role); + command.Options.Add(symbols.Value); + command.Options.Add(symbols.Id); + } + + if (name == "tree") command.Options.Add(symbols.Details); root.Subcommands.Add(command); } @@ -476,7 +509,13 @@ internal static Parsed Parse(string[] args) var errors = new List(); foreach (ParseError parseError in result.Errors) errors.Add(Cli.Humanize(parseError.Message)); - if (errors.Count == 0 && !TryCheckCombinations(result, out string conflict)) errors.Add(conflict); + // The help page describes a command that has not supplied its arguments yet, so the + // cross-option rules must not turn `click --help` into a usage error. + if (errors.Count == 0 && result.Action is not HelpAction + && !TryCheckCombinations(result, out string conflict)) + { + errors.Add(conflict); + } if (errors.Count > 0 && Hint(result, grammarArgs) is { } hint) errors = [errors[0], hint]; if (errors.Count > 0) return new Parsed(false, false, false, null, errors, result); @@ -690,6 +729,33 @@ internal static bool TryCheckCombinations(ParseResult result, out string message return false; } + if (result.CommandResult.Command.Name is "find" or "click") + { + bool text = result.CommandResult.Command.Arguments.Count > 0 + && result.GetResult(result.CommandResult.Command.Arguments[0]) is not null; + string? role = result.GetValue(S.Role); + string? value = result.GetValue(S.Value); + string? id = result.GetValue(S.Id); + + if (!text && role is null && value is null && id is null) + { + message = $"{result.CommandResult.Command.Name} needs a label, --role, --value or --id"; + return false; + } + + if (id is not null && (text || role is not null || value is not null)) + { + message = "--id is exact: it cannot be combined with a label, --role or --value"; + return false; + } + + if (value is not null && text) + { + message = "choose --value or a label, not both"; + return false; + } + } + message = ""; return true; } @@ -713,6 +779,8 @@ internal static Cli.Options Resolve(ParseResult result, string[] appArguments) // `Join` is "" for a command with no arguments, so one line covers every command: the // offline ones take a name or words, the app verbs take their protocol slots. string argument = name.Length == 0 ? "" : Join(result, matched); + if (name is "find" or "click") argument = BuildQuery(result, argument); + if (name == "tree" && result.GetValue(S.Details)) argument = "details"; bool waiting = result.GetResult(S.Wait) is not null || result.GetResult(S.WaitText) is not null; double waitSeconds = result.GetValue(S.WaitTimeout) ?? Cli.Options.DefaultWaitSeconds; @@ -798,6 +866,31 @@ private static IReadOnlyDictionary ReadEnvironment(string[]? pai private static bool JsonRequested(ParseResult result, CommandResult matched) => matched.Command.Options.Any(option => option is Option { Name: "--json" } flag && result.GetValue(flag)); + /// + /// A find/click query from its label and the semantic filters. The app parses the same + /// role:, value: and id: vocabulary as a person typing the query, so the + /// tool only has to serialise the options into that one line. + /// + private static string BuildQuery(ParseResult result, string text) + { + string? role = result.GetValue(S.Role); + string? value = result.GetValue(S.Value); + string? id = result.GetValue(S.Id); + + var parts = new List(4); + if (id is { Length: > 0 }) parts.Add("id:" + id); + if (role is { Length: > 0 }) parts.Add("role:" + role); + if (value is { Length: > 0 }) + { + parts.Add("value:" + (value.Any(static ch => char.IsWhiteSpace(ch) || ch == '"') + ? $"\"{value.Replace("\"", "\\\"", StringComparison.Ordinal)}\"" + : value)); + } + + if (text.Length > 0) parts.Add(text); + return string.Join(' ', parts); + } + /// /// One protocol line from a command's arguments, in declaration order: the wire protocol is a /// line, so the join is by the value that was actually supplied, formatted invariantly. diff --git a/src/CuiSharp/Hosting/HeadlessApp.cs b/src/CuiSharp/Hosting/HeadlessApp.cs index 51c9b09..c5cfb8d 100644 --- a/src/CuiSharp/Hosting/HeadlessApp.cs +++ b/src/CuiSharp/Hosting/HeadlessApp.cs @@ -18,11 +18,19 @@ public readonly struct WidgetTarget internal WidgetTarget(HeadlessApp app, SemanticNode node) { _app = app; + Node = node; Kind = node.Kind; Text = node.Text; Rect = node.Rect; + Role = node.Role; + AutomationId = node.AutomationId; + Value = node.Value; + State = node.State; } + /// The node this target was found from; useful for its role and state. + internal SemanticNode Node { get; } + /// The wrapper that drew it: Button, Input, ListItem. public string Kind { get; } @@ -32,6 +40,18 @@ internal WidgetTarget(HeadlessApp app, SemanticNode node) /// Where it was laid out in the frame it was found in. public RectF Rect { get; } + /// The role its wrapper plays, e.g. . + public SemanticRole Role { get; } + + /// An explicit id from a ui.Id or ui.Automation scope, or null. + public string? AutomationId { get; } + + /// The value the control held this frame, when it exposes one. + public string? Value { get; } + + /// The state observed while it was drawn. + public SemanticState State { get; } + /// Moves the pointer to the middle of the widget and draws a frame. public WidgetTarget Hover() { @@ -494,12 +514,9 @@ public bool TryFind(string query, out WidgetTarget widget) public WidgetTarget FindById(string id) { ArgumentException.ThrowIfNullOrEmpty(id); - foreach (SemanticNode node in Tree.SelfAndDescendants()) - { - if (string.Equals(node.Text, id, StringComparison.Ordinal)) return new WidgetTarget(this, node); - } - - throw new InvalidOperationException($"No widget with id \"{id}\". The frame drew:\n{Print()}"); + return Tree.FindById(id) is { } node + ? new WidgetTarget(this, node) + : throw new InvalidOperationException($"No widget with id \"{id}\". The frame drew:\n{Print()}"); } /// @@ -642,7 +659,7 @@ public string SavePng(string? path = null, bool parked = true) } /// The last frame's tree as text, which is also what gives. - public string Print(bool rects = false) => Tree.Print(rects); + public string Print(bool rects = false, bool details = false) => Tree.Print(rects, details); /// /// The view of the last frame: verified rectangles, observed diff --git a/src/CuiSharp/Hosting/HeadlessLoop.cs b/src/CuiSharp/Hosting/HeadlessLoop.cs index f4a36db..976f2d6 100644 --- a/src/CuiSharp/Hosting/HeadlessLoop.cs +++ b/src/CuiSharp/Hosting/HeadlessLoop.cs @@ -228,7 +228,7 @@ public static int Run(HeadlessApp app, TextReader? input = null, TextWriter? out private static string Execute(HeadlessApp app, string command, string argument) => command switch { - "tree" or "print" => app.Print(), + "tree" or "print" => app.Print(details: string.Equals(argument, "details", StringComparison.OrdinalIgnoreCase)), "layout" => app.PrintLayout(), "find" => Find(app, argument), "click" => Click(app, argument), @@ -249,7 +249,7 @@ public static int Run(HeadlessApp app, TextReader? input = null, TextWriter? out private static string Find(HeadlessApp app, string argument) { WidgetTarget target = app.FindUnique(argument); - return $"{target.Kind} \"{target.Text}\" at {target.Rect}"; + return target.Node.Describe() + $" at {target.Rect}"; } /// diff --git a/src/CuiSharp/Hosting/LiveSession.cs b/src/CuiSharp/Hosting/LiveSession.cs index 2bed78b..6f3ed86 100644 --- a/src/CuiSharp/Hosting/LiveSession.cs +++ b/src/CuiSharp/Hosting/LiveSession.cs @@ -913,7 +913,7 @@ internal async Task ExecuteCommandAsync(string command, string argument, case "tree" or "print": { LiveSnapshot snap = await SnapshotAsync(pixels: false, ct).ConfigureAwait(false); - return snap.Print(); + return snap.Print(details: string.Equals(argument, "details", StringComparison.OrdinalIgnoreCase)); } case "layout": @@ -927,7 +927,7 @@ internal async Task ExecuteCommandAsync(string command, string argument, ArgumentException.ThrowIfNullOrEmpty(argument); LiveSnapshot snap = await SnapshotAsync(pixels: false, ct).ConfigureAwait(false); SemanticNode node = FindNode(snap, argument); - return $"{node.Kind} \"{node.Text}\" at {node.Rect}"; + return node.Describe() + $" at {node.Rect}"; } case "click": @@ -1306,5 +1306,5 @@ internal sealed record LiveSnapshot( internal SemanticNode Tree => _tree ??= SemanticNode.Build(Entries); /// The frame's controls nested the way the app drew them. - internal string Print() => Tree.Print(); + internal string Print(bool details = false) => Tree.Print(details: details); } diff --git a/src/CuiSharp/Semantics/SemanticNode.cs b/src/CuiSharp/Semantics/SemanticNode.cs index 0b21bb5..e1807b2 100644 --- a/src/CuiSharp/Semantics/SemanticNode.cs +++ b/src/CuiSharp/Semantics/SemanticNode.cs @@ -24,7 +24,8 @@ public sealed class SemanticNode private SemanticNode( string kind, string text, RectF rect, int depth, SemanticNode? parent, uint id = 0, - bool hasOwnRect = false, bool detached = false, int layer = 0) + bool hasOwnRect = false, bool detached = false, int layer = 0, + string? automationId = null, string? value = null, SemanticState state = SemanticState.None) { Kind = kind; Text = text; @@ -35,6 +36,9 @@ private SemanticNode( HasOwnRect = hasOwnRect; Detached = detached; Layer = layer; + AutomationId = automationId; + Value = value; + State = state; } /// The wrapper that drew it: Button, Input, Card. @@ -43,6 +47,34 @@ private SemanticNode( /// The label, or the id when the widget or container has one. public string Text { get; } + /// The same thing as , named the way an accessibility adapter reads it. + public string Name => Text; + + /// + /// The role this wrapper plays, e.g. . The exact wrapper is + /// still ; the role is what an accessibility tree, an agent or a query groups by. + /// + public SemanticRole Role => SemanticRoles.Of(Kind); + + /// + /// A stable id the app (or a ui.Id / ui.Automation scope) gave this widget, + /// independent of its label. Null when the app did not name it; id: queries also keep + /// matching the recorded text for widgets whose text is already their id. + /// + public string? AutomationId { get; } + + /// The value a control holds this frame: a text field's text, a slider's number, a toggle's on/off. + public string? Value { get; } + + /// What was observable about the control in this frame. + public SemanticState State { get; } + + /// True when a ui.Disabled scope did not cover the control. + public bool IsEnabled => (State & SemanticState.Enabled) != 0; + + /// True when this frame reported keyboard focus for the control. + public bool IsFocused => (State & SemanticState.Focused) != 0; + /// Where it was laid out, in points. public RectF Rect { get; } @@ -122,13 +154,22 @@ public IEnumerable Descendants() internal bool TryFind(WidgetQuery query, out SemanticNode node) { - // `id:draft` is the exact-id form: no ranking, no partial match, no language. - if (query.Path.Length == 0 && query.Kind is null && query.Text.StartsWith("id:", StringComparison.Ordinal)) + // `id:draft` is the exact-id form: no ranking, no partial match, no language. An + // explicit automation id is preferred, and a widget whose text is its id still answers. + if (query.Path.Length == 0 + && query.Kind is null + && query.Role is null + && query.Value is null + && query.Text.StartsWith("id:", StringComparison.Ordinal)) { string id = query.Text[3..]; foreach (SemanticNode candidate in SelfAndDescendants()) { - if (!string.Equals(candidate.Text, id, StringComparison.Ordinal)) continue; + if (!string.Equals(candidate.AutomationId, id, StringComparison.Ordinal) + && !string.Equals(candidate.Text, id, StringComparison.Ordinal)) + { + continue; + } node = candidate; return true; @@ -195,6 +236,8 @@ internal bool TryFindUnique(WidgetQuery query, out SemanticNode node) // An exact id is already a deliberate choice: no ranking to settle. if (query.Path.Length == 0 && query.Kind is null + && query.Role is null + && query.Value is null && query.Text.StartsWith("id:", StringComparison.Ordinal)) { return TryFind(query, out node); @@ -262,7 +305,7 @@ private static string Ambiguous(WidgetQuery query, List matches) return $"\"{query}\" matches {matches.Count} controls; refusing to guess.{Environment.NewLine}" + paths + more + Environment.NewLine + - "Use a kind (`Button \"…\"`), a path (`card > Button \"…\"`) or `id:…`."; + "Use a kind (`Button \"…\"`), a role (`role:button`), a value (`value:…`), a path (`card > Button \"…\"`) or `id:…`."; } /// @@ -275,8 +318,25 @@ private static string Ambiguous(WidgetQuery query, List matches) /// private int Score(WidgetQuery query) { - if (query.Text.Length == 0) return int.MaxValue; if (query.Kind is { } kind && !Kind.Equals(kind, StringComparison.OrdinalIgnoreCase)) return int.MaxValue; + if (query.Role is { } role && Role != role) return int.MaxValue; + + int valueTier = 0; + if (query.Value is { } value) + { + if (Value is null) return int.MaxValue; + valueTier = Value.Equals(value, StringComparison.OrdinalIgnoreCase) ? 0 + : Value.StartsWith(value, StringComparison.OrdinalIgnoreCase) ? 1 + : Value.Contains(value, StringComparison.OrdinalIgnoreCase) ? 2 + : int.MaxValue; + if (valueTier == int.MaxValue) return valueTier; + } + + if (query.Text.Length == 0) + { + if (query.Role is null && query.Value is null) return int.MaxValue; + return (IsStatic(Kind) ? 3 : 0) + valueTier; + } int tier = Text.Equals(query.Text, StringComparison.OrdinalIgnoreCase) ? 0 : Text.StartsWith(query.Text, StringComparison.OrdinalIgnoreCase) ? 1 @@ -285,7 +345,7 @@ private int Score(WidgetQuery query) if (tier == int.MaxValue) return tier; // Text a person reads but cannot act on: a click on it lands on whatever is behind it. - return IsStatic(Kind) ? tier + 3 : tier; + return (IsStatic(Kind) ? 3 : 0) + tier + valueTier; } /// @@ -307,7 +367,12 @@ internal IEnumerable SelfAndDescendants() /// reads to find out which controls a frame drew. /// /// Include each node's laid-out rectangle. - public string Print(bool rects = false) + /// + /// Include the semantic role and any automation id, value or state the frame recorded. The + /// default output stays the compact kind-and-label tree existing tests and readers know; + /// dotnet cui tree --details asks for this form. + /// + public string Print(bool rects = false, bool details = false) { var sb = new StringBuilder(); Walk(this, 0); @@ -315,17 +380,55 @@ public string Print(bool rects = false) void Walk(SemanticNode node, int indent) { - sb.Append(' ', indent * 2).Append(node.Label); + sb.Append(' ', indent * 2).Append(details ? node.Describe() : node.Label); if (rects) sb.Append(' ').Append(node.Rect); sb.Append('\n'); foreach (SemanticNode child in node._children) Walk(child, indent + 1); } } + /// + /// The compact label plus the role, automation id, value and state of this one node. + /// + public string Describe() + { + var text = new StringBuilder(Label); + text.Append(" role=").Append(SemanticRoles.Name(Role)); + if (AutomationId is { Length: > 0 } id) text.Append(" id=").Append(id); + if (Value is not null) text.Append(" value=\"").Append(Value.Replace("\"", "\\\"", StringComparison.Ordinal)).Append('"'); + if (State != SemanticState.None) text.Append(" state=").Append(SemanticStates.Format(State)); + return text.ToString(); + } + + /// + /// Projects this frame tree onto the shape a platform accessibility layer consumes. The + /// platform adapter (UIA, AT-SPI, NSAccessibility) is still ahead; this object is the stable + /// data it will read, so the app does not have to expose a second tree. + /// + public SemanticAccessibilityNode ToAccessibility() => + new(Role, Name, Value, State, AutomationId, Rect, [.. _children.Select(child => child.ToAccessibility())]); + /// public override string ToString() => Label; - /// Rebuilds the nesting from what a frame recorded. + /// + /// Finds a node by the explicit id the app gave it. The text of a widget that takes an id is + /// still the fallback, so existing FindById("draft") calls keep working. + /// + internal SemanticNode? FindById(string id) + { + foreach (SemanticNode candidate in SelfAndDescendants()) + { + if (string.Equals(candidate.AutomationId, id, StringComparison.Ordinal) + || string.Equals(candidate.Text, id, StringComparison.Ordinal)) + { + return candidate; + } + } + + return null; + } + /// Finds a node by the id CUI gave it, below this one. internal SemanticNode? FindById(uint id) { @@ -356,13 +459,15 @@ internal static SemanticNode Build(IReadOnlyList entries) { open[^1]._children.Add(new SemanticNode( entry.Kind, entry.Text, entry.Rect, entry.Depth, open[^1], entry.Id, - entry.HasOwnRect, entry.Detached, entry.Layer)); + entry.HasOwnRect, entry.Detached, entry.Layer, + entry.AutomationId, entry.Value, entry.State)); continue; } var container = new SemanticNode( entry.Kind, entry.Text, entry.Rect, entry.Depth, open[^1], entry.Id, - entry.HasOwnRect, entry.Detached, entry.Layer) + entry.HasOwnRect, entry.Detached, entry.Layer, + entry.AutomationId, entry.Value, entry.State) { IsContainer = true, }; diff --git a/src/CuiSharp/Semantics/SemanticRole.cs b/src/CuiSharp/Semantics/SemanticRole.cs new file mode 100644 index 0000000..2baf01c --- /dev/null +++ b/src/CuiSharp/Semantics/SemanticRole.cs @@ -0,0 +1,199 @@ +namespace CuiSharp; + +/// +/// What a recorded node is, independent of the wrapper that drew it: the vocabulary an +/// accessibility adapter, an agent or a test can group by. +/// +/// +/// is the exact wrapper (IconButton, DataGrid); +/// the role is the smaller set of meanings those wrappers share. A custom control that records +/// itself with keeps its own kind and +/// gets unless it maps to one of the common names. +/// +public enum SemanticRole +{ + None, + Frame, + Container, + Button, + Link, + CheckBox, + RadioButton, + Switch, + TextBox, + Slider, + SpinButton, + ComboBox, + TabList, + Tab, + List, + ListItem, + Menu, + MenuItem, + Dialog, + Tooltip, + Table, + TableRow, + TableCell, + Tree, + TreeItem, + Image, + Text, + Heading, + ProgressBar, + Separator, + Other, +} + +/// What is true of a control in the frame that recorded it. +[Flags] +public enum SemanticState +{ + /// Nothing is known or nothing applies. + None = 0, + + /// The control accepts input; absent when a ui.Disabled scope drew it. + Enabled = 1, + + /// The control gained keyboard focus in this frame. + Focused = 2, + + /// A checkbox, switch or toggle is on. + Checked = 4, + + /// A tab, row, chip or segmented item is selected. + Selected = 8, + + /// A disclosure, menu, popover or picker is open. + Expanded = 16, + + /// The value can be read but not edited. + ReadOnly = 32, +} + +/// The role names people and scripts type, e.g. role:button. +public static class SemanticRoles +{ + /// The lowercase spelling a query and a detail line use. + public static string Name(SemanticRole role) => role.ToString().ToLowerInvariant(); + + /// Reads a role name without case sensitivity; check-box and checkbox agree. + public static bool TryParse(string? text, out SemanticRole role) + { + role = SemanticRole.None; + if (string.IsNullOrWhiteSpace(text)) return false; + + string wanted = Normalize(text); + foreach (SemanticRole candidate in Enum.GetValues()) + { + if (Normalize(candidate.ToString()).Equals(wanted, StringComparison.OrdinalIgnoreCase)) + { + role = candidate; + return true; + } + } + + return false; + } + + /// The role a wrapper kind belongs to. Exact wrapper meanings win over prefixes. + public static SemanticRole Of(string kind) => kind switch + { + "Frame" => SemanticRole.Frame, + "Card" or "Box" or "Row" or "Column" or "Scroll" or "Split" or "DockPanel" or + "Inspector" or "Accordion" or "Panel" or "Header" or "Footer" or "Page" => SemanticRole.Container, + + "Button" or "IconButton" or "SplitButton" or "ConfirmButton" or "StatusButton" or + "HoldButton" or "CopyButton" or "ToolbarButton" or "SpeedDial" or "ControlTile" => SemanticRole.Button, + "Link" => SemanticRole.Link, + "Checkbox" or "Checklist" or "ToggleGroup" => SemanticRole.CheckBox, + "Radio" or "RadioGroup" or "RadioCards" => SemanticRole.RadioButton, + "Switch" => SemanticRole.Switch, + + "Input" or "TextArea" or "Search" or "TagInput" or "OtpInput" or "InlineEdit" or + "PropText" or "ChatComposer" or "FilterBar" or "Comment" => SemanticRole.TextBox, + "Number" or "MoneyInput" or "Scrub" or "SpinButton" => SemanticRole.SpinButton, + "Slider" or "RangeSlider" or "RulerSlider" or "HistogramSlider" or "Knob" or "Fader" or + "LevelMeter" => SemanticRole.Slider, + "Select" or "Combobox" or "DatePicker" or "TimePicker" or "WheelPicker" or "TimeDial" or + "DateRangePicker" or "RangeCalendar" or "MonthCalendar" or "ColorPicker" => SemanticRole.ComboBox, + + "Tabs" or "TabBar" or "Segmented" or "DocTabs" => SemanticRole.TabList, + "Tab" or "Segment" => SemanticRole.Tab, + "List" or "VirtualList" => SemanticRole.List, + "Tree" or "TreeView" or "TreeTable" => SemanticRole.Tree, + "ListItem" or "NavItem" => SemanticRole.ListItem, + "Menu" or "MenuBarMenu" or "ContextMenu" or "CommandPalette" => SemanticRole.Menu, + "MenuItem" or "MenuLabel" => SemanticRole.MenuItem, + "Dialog" or "Sheet" or "Alert" or "Toast" or "Popover" or "HoverCard" or "Tour" => SemanticRole.Dialog, + "Tooltip" => SemanticRole.Tooltip, + "Table" or "DataGrid" => SemanticRole.Table, + "TableRow" or "DataGridRow" => SemanticRole.TableRow, + "TableCell" or "TableCellText" or "DataGridCellText" or "TreeCell" => SemanticRole.TableCell, + "TreeTableName" => SemanticRole.TreeItem, + "Image" or "Avatar" or "Emoji" or "ImageViewer" or "Cropper" => SemanticRole.Image, + "Heading" => SemanticRole.Heading, + "Text" or "Label" or "Secondary" or "Muted" or "Code" or "Kbd" or "Markdown" or + "CodeBlock" or "JsonView" or "ChatMessage" => SemanticRole.Text, + "Progress" or "ProgressRing" or "Meter" or "Gauge" or "RadialGauge" or + "StatusBarProgress" or "Skeleton" or "Spinner" => SemanticRole.ProgressBar, + "Separator" or "Divider" or "Spacer" or "Gap" or "ToolbarSeparator" => SemanticRole.Separator, + _ => SemanticRole.Other, + }; + + private static string Normalize(string text) + { + Span buffer = stackalloc char[text.Length]; + int length = 0; + foreach (char ch in text) + { + if (ch is '-' or '_' or ' ') continue; + buffer[length++] = ch; + } + + return new string(buffer[..length]); + } +} + +/// +/// One node of a frame reduced to what a platform accessibility tree needs: a role, a name, an +/// optional value, its state, an optional stable automation id, its bounds and its children. +/// +/// +/// This is the seam a UIA, AT-SPI or NSAccessibility adapter consumes. The platform layers are +/// not implemented yet, but a tree that carries these fields can be projected without asking the +/// app to draw again or reaching into CUI's private state. +/// +public sealed record SemanticAccessibilityNode( + SemanticRole Role, + string Name, + string? Value, + SemanticState State, + string? AutomationId, + RectF Bounds, + IReadOnlyList Children); + +/// The memorable spelling of flags. +public static class SemanticStates +{ + /// enabled, checked, focused, in a stable order. + public static string Format(SemanticState state) + { + if (state == SemanticState.None) return "none"; + + var parts = new List(4); + Add(SemanticState.Enabled, "enabled"); + Add(SemanticState.Focused, "focused"); + Add(SemanticState.Checked, "checked"); + Add(SemanticState.Selected, "selected"); + Add(SemanticState.Expanded, "expanded"); + Add(SemanticState.ReadOnly, "read-only"); + return string.Join(", ", parts); + + void Add(SemanticState flag, string name) + { + if ((state & flag) != 0) parts.Add(name); + } + } + +} diff --git a/src/CuiSharp/Semantics/WidgetQuery.cs b/src/CuiSharp/Semantics/WidgetQuery.cs index d869219..59f25ec 100644 --- a/src/CuiSharp/Semantics/WidgetQuery.cs +++ b/src/CuiSharp/Semantics/WidgetQuery.cs @@ -1,9 +1,9 @@ namespace CuiSharp; /// -/// What a search for a control can say: a label, a kind and a label (Button "Save"), or a -/// path through the tree (editor > Button "Save": the containers are bare, and only the -/// last step names a kind). +/// What a search for a control can say: a label, a kind and a label (Button "Save"), a +/// role (role:button), a value (value:Milk), or a path through the tree +/// (editor > Button "Save": the containers are bare, and only the last step names a kind). /// /// /// @@ -13,21 +13,24 @@ namespace CuiSharp; /// it does find: an exact match beats a prefix, a control beats a label. /// /// -/// Parsing is deliberately small: Button "Save", Save, and editor > Save -/// are the three shapes worth knowing, and everything else is a plain label. A query cannot fail -/// to parse — a label may contain quotes and angles, and the search should look for them — so the -/// only guess in it is that a kind is one capitalized word, which is what every wrapper name is. +/// Parsing is deliberately small: Button "Save", Save, role:button Save, +/// value:Milk, and editor > Save are the shapes worth knowing, and everything +/// else is a plain label. A query cannot fail to parse — a label may contain quotes and angles, +/// and the search should look for them — so the only guess in it is that a kind is one capitalized +/// word, which is what every wrapper name is. /// /// public readonly struct WidgetQuery { private readonly string? _kind; - private WidgetQuery(string text, string? kind, string[] path) + private WidgetQuery(string text, string? kind, string[] path, SemanticRole? role = null, string? value = null) { Text = text; _kind = kind; Path = path; + Role = role; + Value = value; } /// The text to look for: a label, an id, or the leaf of a path. @@ -36,43 +39,86 @@ private WidgetQuery(string text, string? kind, string[] path) /// The kind the caller named, or null. public string? Kind => _kind; + /// The semantic role to require, or null. + public SemanticRole? Role { get; } + + /// The value to require, or null: a text field's text, a slider's number, a toggle's state. + public string? Value { get; } + /// The containers to walk through, outermost first; empty for a plain search. public string[] Path { get; } /// A query built from parts, for a caller that already knows them. - internal static WidgetQuery Of(string? kind, string text, string[]? path = null) => - new(text, kind, path ?? []); + internal static WidgetQuery Of( + string? kind, string text, string[]? path = null, SemanticRole? role = null, string? value = null) => + new(text, kind, path ?? [], role, value); /// - /// Reads a query: Save, Button "Save", editor > Save, or - /// id:draft for a widget by the id it was drawn with — the one form that keeps working - /// when the label is translated. + /// Reads a query: Save, Button "Save", role:button Save, + /// value:Milk, editor > Save, or id:draft for a widget by the id it was + /// drawn with — the form that keeps working when the label is translated. /// public static WidgetQuery Parse(string query) { ArgumentException.ThrowIfNullOrEmpty(query); - string[] steps = query.Split('>', StringSplitOptions.TrimEntries); + string remaining = query.Trim(); + SemanticRole? role = null; + string? value = null; + + // `role:button` is a filter in front of the rest. A value filter consumes the rest: + // values may contain spaces, and a query that names a value is already specific. + if (remaining.StartsWith("role:", StringComparison.OrdinalIgnoreCase)) + { + int space = remaining.IndexOf(' ', StringComparison.Ordinal); + string token = space < 0 ? remaining[5..] : remaining[5..space]; + if (SemanticRoles.TryParse(Unquote(token), out SemanticRole parsedRole)) + { + role = parsedRole; + remaining = space < 0 ? "" : remaining[(space + 1)..].TrimStart(); + } + } + + if (remaining.StartsWith("value:", StringComparison.OrdinalIgnoreCase)) + { + value = Unquote(remaining[6..].Trim()); + remaining = ""; + } + + string[] steps = remaining.Split('>', StringSplitOptions.TrimEntries); if (steps.Length > 1) { // A path names containers and ends at the control; only the leaf can be typed. (string text, string? kind) = SplitKind(steps[^1]); var containers = new string[steps.Length - 1]; for (int i = 0; i < containers.Length; i++) containers[i] = Unquote(steps[i]); - return new WidgetQuery(text, kind, containers); + return new WidgetQuery(text, kind, containers, role, value); } - (string leaf, string? leafKind) = SplitKind(query); - return new WidgetQuery(leaf, leafKind, []); + (string leaf, string? leafKind) = SplitKind(remaining); + return new WidgetQuery(leaf, leafKind, [], role, value); } /// The query as a person would write it. - public override string ToString() => - Path.Length == 0 ? Describe(_kind, Text) : string.Join(" > ", [.. Path, Describe(_kind, Text)]); + public override string ToString() + { + var parts = new List(3); + if (Role is { } role) parts.Add($"role:{SemanticRoles.Name(role)}"); + if (Value is { } value) parts.Add($"value:{Quote(value)}"); + + string leaf = Path.Length == 0 + ? Describe(_kind, Text) + : string.Join(" > ", [.. Path, Describe(_kind, Text)]); + if (leaf.Length > 0) parts.Add(leaf); + return string.Join(' ', parts); + } private static string Describe(string? kind, string text) => kind is null ? text : $"{kind} \"{text}\""; + private static string Quote(string text) => + text.Any(static ch => char.IsWhiteSpace(ch) || ch == '"') ? $"\"{text.Replace("\"", "\\\"", StringComparison.Ordinal)}\"" : text; + /// Takes a leading kind off Button "Save", leaving the label. private static (string Text, string? Kind) SplitKind(string step) { @@ -92,7 +138,7 @@ private static string Unquote(string text) { string trimmed = text.Trim(); return trimmed.Length >= 2 && trimmed[0] == '"' && trimmed[^1] == '"' - ? trimmed[1..^1] + ? trimmed[1..^1].Replace("\\\"", "\"", StringComparison.Ordinal) : trimmed; } } diff --git a/src/CuiSharp/Semantics/WidgetRecorder.cs b/src/CuiSharp/Semantics/WidgetRecorder.cs index 1cb42bb..add39d4 100644 --- a/src/CuiSharp/Semantics/WidgetRecorder.cs +++ b/src/CuiSharp/Semantics/WidgetRecorder.cs @@ -60,9 +60,19 @@ public readonly struct SemanticWidget /// internal readonly int Layer; + /// A stable id from a ui.Id or ui.Automation scope, or null. + public readonly string? AutomationId; + + /// The value the control held this frame, when it exposes one. + public readonly string? Value; + + /// The state observed while the control was drawn. + public readonly SemanticState State; + internal SemanticWidget( string kind, string text, RectF rect, int depth, bool container, uint id, - bool hasOwnRect, bool detached, int layer) + bool hasOwnRect, bool detached, int layer, string? automationId = null, + string? value = null, SemanticState state = SemanticState.None) { Kind = kind; Text = text; @@ -73,6 +83,9 @@ internal SemanticWidget( HasOwnRect = hasOwnRect; Detached = detached; Layer = layer; + AutomationId = automationId; + Value = value; + State = state; } /// The point at the middle: where a simulated click goes. @@ -130,6 +143,42 @@ public static void Note(nint ui, string kind, UiText text) frame.Note(ui, kind, text); } + /// Records the state of a control that exposes no separate value. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void Note(nint ui, string kind, UiText text, SemanticState state) + { + FrameRecorder? frame = _current; + if (frame is null) return; + frame.Note(ui, kind, text, state); + } + + /// Records a text value, e.g. an input's current text. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void NoteValue(nint ui, string kind, UiText text, string value, SemanticState state = SemanticState.None) + { + FrameRecorder? frame = _current; + if (frame is null) return; + frame.NoteValue(ui, kind, text, value, state); + } + + /// Records a numeric value; formatting happens after the draw, not in the frame. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void NoteValue(nint ui, string kind, UiText text, double value, SemanticState state = SemanticState.None) + { + FrameRecorder? frame = _current; + if (frame is null) return; + frame.NoteValue(ui, kind, text, value, state); + } + + /// Records a boolean value, e.g. a checkbox's on/off. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + public static void NoteValue(nint ui, string kind, UiText text, bool value, SemanticState state = SemanticState.None) + { + FrameRecorder? frame = _current; + if (frame is null) return; + frame.NoteValue(ui, kind, text, value, state); + } + /// /// Called by the wrapper of a widget CUI builds only when it is given items (a toggle group). /// is what native's "no items, no widget" return turns on, and it @@ -142,7 +191,7 @@ internal static void Note(nint ui, string kind, UiText text, int itemCount) { FrameRecorder? frame = _current; if (frame is null) return; - frame.Note(ui, kind, text, itemCount); + frame.Note(ui, kind, text, itemCount, SemanticState.None); } /// @@ -154,12 +203,13 @@ internal static void Note(nint ui, string kind, UiText text, int itemCount) /// What one item is called: Tab, Segment. /// The widget's id, which its items' ids are derived from. /// The item labels, in order. + /// The item that is selected, or -1. [MethodImpl(MethodImplOptions.AggressiveInlining)] - internal static void NoteItems(nint ui, string kind, string item, UiText id, ReadOnlySpan items) + internal static void NoteItems(nint ui, string kind, string item, UiText id, ReadOnlySpan items, int selected) { FrameRecorder? frame = _current; if (frame is null) return; - frame.NoteItems(ui, kind, item, id, items); + frame.NoteItems(ui, kind, item, id, items, selected); } /// A container opened; the widgets drawn from here on sit inside it. @@ -185,6 +235,33 @@ internal static void Push(nint ui, string kind, UiText id, uint? nativeId = null frame.Push(ui, kind, id, nativeId, deriveNamedId); } + /// Records the stable automation id for the widgets drawn inside a scope. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushAutomation(nint ui, UiText id) + { + FrameRecorder? frame = _current; + if (frame is null) return; + frame.PushAutomation(id); + } + + /// Records an integer automation id, e.g. one row key. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PushAutomation(nint ui, int key) + { + FrameRecorder? frame = _current; + if (frame is null) return; + frame.PushAutomation(key); + } + + /// Closes the innermost automation id scope. + [MethodImpl(MethodImplOptions.AggressiveInlining)] + internal static void PopAutomation(nint ui) + { + FrameRecorder? frame = _current; + if (frame is null) return; + frame.PopAutomation(); + } + /// /// A container closed. Counted even when nothing is recording: a scope may be disposed by a /// path that never opened it, and the counter is per frame anyway. @@ -260,10 +337,17 @@ private readonly struct Pending internal readonly bool OwnRect; internal readonly bool Detached; internal readonly int Layer; + internal readonly AutomationRef Automation; + internal readonly string? TextValue; + internal readonly double? NumberValue; + internal readonly bool? BoolValue; + internal readonly SemanticState State; internal Pending( string kind, nint pointer, int length, string? text, uint id, int depth, bool container, - bool ownRect, bool detached, int layer) + bool ownRect, bool detached, int layer, AutomationRef automation = default, + string? textValue = null, double? numberValue = null, bool? boolValue = null, + SemanticState state = SemanticState.None) { Kind = kind; Pointer = pointer; @@ -275,15 +359,35 @@ internal Pending( OwnRect = ownRect; Detached = detached; Layer = layer; + Automation = automation; + TextValue = textValue; + NumberValue = numberValue; + BoolValue = boolValue; + State = state; } /// Already a managed string, or a copy of the frame arena. internal string Decode() => Text ?? (Length == 0 ? "" : FromUtf8(Pointer, Length)); } + /// + /// The automation id a widget was drawn under, kept as frame memory until the tree is built. + /// A string scope carries a pointer and a length; an integer scope (ui.Id(42), + /// ui.Keyed) carries the number, which is formatted at the same boundary. + /// + private readonly struct AutomationRef(nint pointer, int length, string? text, int? key) + { + internal readonly string Decode() => text ?? (key is { } number + ? "#" + number.ToString(System.Globalization.CultureInfo.InvariantCulture) + : length == 0 ? "" : FromUtf8(pointer, length)); + + internal readonly bool IsEmpty => length == 0 && text is null && key is null; + } + private readonly List _pending = []; private readonly List _entries = []; private readonly List _controls = []; + private readonly List _automation = []; private int _depth; /// A recording path that does not know how many items native was given. @@ -318,6 +422,7 @@ internal void Reset() _pending.Clear(); _entries.Clear(); _controls.Clear(); + _automation.Clear(); _depth = 0; _layer = 0; _unknownLayer = 0; @@ -332,6 +437,34 @@ internal void Begin() _unknownLayer = 0; _entries.Clear(); _controls.Clear(); + _automation.Clear(); + } + + /// The innermost non-empty automation id, or default. + private AutomationRef CurrentAutomation + { + get + { + for (int i = _automation.Count - 1; i >= 0; i--) + { + if (!_automation[i].IsEmpty) return _automation[i]; + } + + return default; + } + } + + internal void PushAutomation(UiText id) + { + nint pointer = id.GetPointer(out int length); + _automation.Add(new AutomationRef(pointer, length, null, null)); + } + + internal void PushAutomation(int key) => _automation.Add(new AutomationRef(0, 0, null, key)); + + internal void PopAutomation() + { + if (_automation.Count > 0) _automation.RemoveAt(_automation.Count - 1); } /// @@ -350,11 +483,27 @@ internal void SealPendingText() { _pending[i] = new Pending( widget.Kind, 0, 0, widget.Decode(), widget.Id, widget.Depth, - widget.Container, widget.OwnRect, widget.Detached, widget.Layer); + widget.Container, widget.OwnRect, widget.Detached, widget.Layer, + Seal(widget.Automation), widget.TextValue, widget.NumberValue, + widget.BoolValue, widget.State); + } + else if (!widget.Automation.IsEmpty) + { + _pending[i] = new Pending( + widget.Kind, widget.Pointer, widget.Length, widget.Text, widget.Id, widget.Depth, + widget.Container, widget.OwnRect, widget.Detached, widget.Layer, + Seal(widget.Automation), widget.TextValue, widget.NumberValue, + widget.BoolValue, widget.State); } } } + private static AutomationRef Seal(AutomationRef automation) => + automation.IsEmpty ? default : new AutomationRef(0, 0, automation.Decode(), null); + + private static SemanticState Enabled(nint ui) => + Native.IsDisabled(ui) == 0 ? SemanticState.Enabled : SemanticState.None; + /// /// Opens a scope's layer bookkeeping: a floating kind raises the layer for its whole body /// and returns true, so even an unnamed dialog is a boundary the frame ends at. Every depth @@ -393,7 +542,8 @@ internal void Push(nint ui, string kind, string? id, uint? nativeId = null, bool bool own = nativeId is not null || deriveNamedId || GeometryProvenance.HasOwnLastId(kind); _pending.Add(new Pending( kind, default, 0, id, native, _depth, container: true, - own, floating, _layer)); + own, floating, _layer, CurrentAutomation, + state: Enabled(ui))); } _depth++; } @@ -408,7 +558,8 @@ internal void Push(nint ui, string kind, UiText id, uint? nativeId = null, bool bool own = nativeId is not null || deriveNamedId || GeometryProvenance.HasOwnLastId(kind); _pending.Add(new Pending( kind, pointer, length, null, native, _depth, container: true, - own, floating, _layer)); + own, floating, _layer, CurrentAutomation, + state: Enabled(ui))); } _depth++; } @@ -421,9 +572,12 @@ internal void Pop() else _layer = --_unknownLayer; } - internal void Note(nint ui, string kind, UiText text) => Note(ui, kind, text, UnknownItemCount); + internal void Note(nint ui, string kind, UiText text) => Note(ui, kind, text, UnknownItemCount, SemanticState.None); - internal void Note(nint ui, string kind, UiText text, int itemCount) + internal void Note(nint ui, string kind, UiText text, SemanticState state) => + Note(ui, kind, text, UnknownItemCount, state); + + internal void Note(nint ui, string kind, UiText text, int itemCount, SemanticState state = SemanticState.None) { nint pointer = text.GetPointer(out int length); if (length == 0) return; @@ -434,7 +588,34 @@ internal void Note(nint ui, string kind, UiText text, int itemCount) bool own = GeometryProvenance.HasOwnLastId(kind) && (!GeometryProvenance.PublishesIdOnlyWhenBuilt(kind) || itemCount > 0); Add(ui, kind, pointer, length, null, container: false, - own, GeometryProvenance.IsFloating(kind)); + own, GeometryProvenance.IsFloating(kind), state); + } + + internal void NoteValue(nint ui, string kind, UiText text, string value, SemanticState state) + { + nint pointer = text.GetPointer(out int length); + if (length == 0) return; + Add(ui, kind, pointer, length, null, container: false, + GeometryProvenance.HasOwnLastId(kind), GeometryProvenance.IsFloating(kind), state, + textValue: value); + } + + internal void NoteValue(nint ui, string kind, UiText text, double value, SemanticState state) + { + nint pointer = text.GetPointer(out int length); + if (length == 0) return; + Add(ui, kind, pointer, length, null, container: false, + GeometryProvenance.HasOwnLastId(kind), GeometryProvenance.IsFloating(kind), state, + numberValue: value); + } + + internal void NoteValue(nint ui, string kind, UiText text, bool value, SemanticState state) + { + nint pointer = text.GetPointer(out int length); + if (length == 0) return; + Add(ui, kind, pointer, length, null, container: false, + GeometryProvenance.HasOwnLastId(kind), GeometryProvenance.IsFloating(kind), state, + boolValue: value); } /// @@ -446,7 +627,7 @@ internal void Note(nint ui, string kind, UiText text, int itemCount) /// click Markets rather than "click the middle of the strip". Their ids are the ones /// CUI derives for them (), which is how their rectangles are read back. /// - internal void NoteItems(nint ui, string kind, string item, UiText parent, ReadOnlySpan items) + internal void NoteItems(nint ui, string kind, string item, UiText parent, ReadOnlySpan items, int selected) { nint pointer = parent.GetPointer(out int length); if (length == 0) return; @@ -458,7 +639,7 @@ internal void NoteItems(nint ui, string kind, string item, UiText parent, ReadOn // passed is the evidence, since no id on record can tell this call from the last one. bool built = items.Length > 0; Add(ui, kind, pointer, length, null, container: true, - GeometryProvenance.HasOwnLastId(kind) && built, floating); + GeometryProvenance.HasOwnLastId(kind) && built, floating, Enabled(ui)); _depth++; for (int k = 0; k < items.Length; k++) { @@ -466,7 +647,8 @@ internal void NoteItems(nint ui, string kind, string item, UiText parent, ReadOn // anyone could have left behind, so each built item owns the rect read under its id. _pending.Add(new Pending( item, 0, 0, items[k], CuiHash.Of(k, parentId), _depth, container: false, - ownRect: built && k < GeometryProvenance.MaxBuiltItems, floating, _layer)); + ownRect: built && k < GeometryProvenance.MaxBuiltItems, floating, _layer, + state: Enabled(ui) | (k == selected ? SemanticState.Selected : SemanticState.None))); } _depth--; @@ -483,9 +665,15 @@ internal void End(nint ui) foreach (Pending widget in _pending) { RectF rect = UiMarshal.FromNative(Native.GetRect(ui, widget.Id)); + string? value = widget.TextValue + ?? (widget.NumberValue is { } number + ? number.ToString("R", System.Globalization.CultureInfo.InvariantCulture) + : widget.BoolValue is { } boolean ? (boolean ? "true" : "false") : null); + string automation = widget.Automation.Decode(); var entry = new SemanticWidget( widget.Kind, widget.Decode(), rect, widget.Depth, widget.Container, widget.Id, - widget.OwnRect, widget.Detached, widget.Layer); + widget.OwnRect, widget.Detached, widget.Layer, + automation.Length == 0 ? null : automation, value, widget.State); _entries.Add(entry); if (!widget.Container) _controls.Add(entry); } @@ -496,8 +684,13 @@ internal void End(nint ui) private static unsafe string FromUtf8(nint pointer, int length) => System.Text.Encoding.UTF8.GetString((byte*)pointer, length); - private void Add(nint ui, string kind, nint pointer, int length, string? text, bool container, bool ownRect, bool detached) => - _pending.Add(new Pending(kind, pointer, length, text, Native.LastId(ui), _depth, container, ownRect, detached, _layer)); + private void Add( + nint ui, string kind, nint pointer, int length, string? text, bool container, bool ownRect, + bool detached, SemanticState state = SemanticState.None, string? textValue = null, + double? numberValue = null, bool? boolValue = null) => + _pending.Add(new Pending( + kind, pointer, length, text, Native.LastId(ui), _depth, container, ownRect, detached, + _layer, CurrentAutomation, textValue, numberValue, boolValue, state | Enabled(ui))); } /// diff --git a/src/CuiSharp/Ui/AiInterfaces.g.cs b/src/CuiSharp/Ui/AiInterfaces.g.cs index b40e5e2..6bfd82a 100644 --- a/src/CuiSharp/Ui/AiInterfaces.g.cs +++ b/src/CuiSharp/Ui/AiInterfaces.g.cs @@ -111,7 +111,7 @@ public bool ModelPicker(UiText id, ReadOnlySpan models, ref int selected, for (int i = 0; i < models.Length; i++) __models[i] = models[i].ToNative(); var __opts = o.ToNative(); var __result = Native.ModelPicker(ui.Handle, Utf8.Get(id), (nint)__models, (int)(models.Length), ref selected, in __opts); - WidgetRecorder.Note(ui.Handle, "ModelPicker", id); + WidgetRecorder.NoteValue(ui.Handle, "ModelPicker", id, (double)selected); return __result != 0; } @@ -126,7 +126,7 @@ public ComposerEvents ChatComposer(UiText id, ref string buf, int cap, ref int r if (Ui.TextChanged(__bufSlot)) buf = Ui.DecodeText(__bufSlot); removed = __removed; model = __model; - WidgetRecorder.Note(ui.Handle, "ChatComposer", id); + WidgetRecorder.NoteValue(ui.Handle, "ChatComposer", id, buf); return (ComposerEvents)__result; } diff --git a/src/CuiSharp/Ui/ApiExplorer.g.cs b/src/CuiSharp/Ui/ApiExplorer.g.cs index edeb21f..1763ab3 100644 --- a/src/CuiSharp/Ui/ApiExplorer.g.cs +++ b/src/CuiSharp/Ui/ApiExplorer.g.cs @@ -22,7 +22,7 @@ public ApiExplorerResult ApiExplorer(UiText id, ReadOnlySpan endpoi var __opts = o.ToNative((nint)(&__selected)); var __result = Native.ApiExplorer(ui.Handle, Utf8.Get(id), (nint)__endpoints, (int)(endpoints.Length), in __opts); selected = __selected; - WidgetRecorder.Note(ui.Handle, "ApiExplorer", id); + WidgetRecorder.NoteValue(ui.Handle, "ApiExplorer", id, (double)selected); return ApiExplorerResult.FromNative(__result); } diff --git a/src/CuiSharp/Ui/AppChromeMenuBarToolbarStatusBarDocumentTabs.g.cs b/src/CuiSharp/Ui/AppChromeMenuBarToolbarStatusBarDocumentTabs.g.cs index 38d8db6..1d30a19 100644 --- a/src/CuiSharp/Ui/AppChromeMenuBarToolbarStatusBarDocumentTabs.g.cs +++ b/src/CuiSharp/Ui/AppChromeMenuBarToolbarStatusBarDocumentTabs.g.cs @@ -52,7 +52,7 @@ public bool ToolbarButton(UiText icon, ref bool toggle, ToolOpts o = default) var __opts = o.ToNative((nint)(&__toggle)); var __result = Native.ToolbarButton(ui.Handle, Utf8.Get(icon), in __opts); toggle = __toggle != 0; - WidgetRecorder.Note(ui.Handle, "ToolbarButton", icon); + WidgetRecorder.NoteValue(ui.Handle, "ToolbarButton", icon, toggle); return __result != 0; } @@ -113,7 +113,7 @@ public DocTabsResult DocTabs(UiText id, ReadOnlySpan tabs, ref int selec for (int i = 0; i < tabs.Length; i++) __tabs[i] = tabs[i].ToNative(); var __opts = o.ToNative(); var __result = Native.DocTabs(ui.Handle, Utf8.Get(id), (nint)__tabs, (int)(tabs.Length), ref selected, in __opts); - WidgetRecorder.Note(ui.Handle, "DocTabs", id); + WidgetRecorder.NoteValue(ui.Handle, "DocTabs", id, (double)selected); return DocTabsResult.FromNative(__result); } diff --git a/src/CuiSharp/Ui/Buttons.g.cs b/src/CuiSharp/Ui/Buttons.g.cs index 08b90a2..e55d592 100644 --- a/src/CuiSharp/Ui/Buttons.g.cs +++ b/src/CuiSharp/Ui/Buttons.g.cs @@ -37,7 +37,7 @@ public bool Segmented(UiText id, ReadOnlySpan items, ref int index, Segm if (o.Icons is { } __icons && __icons.Length < items.Length) throw new ArgumentException("Icons must contain at least one entry per item.", nameof(o)); var __opts = o.ToNative(); var __result = Native.Segmented(ui.Handle, Utf8.Get(id), UiMarshal.Strings(items), (int)(items.Length), ref index, in __opts); - WidgetRecorder.NoteItems(ui.Handle, "Segmented", "Segment", id, items); + WidgetRecorder.NoteItems(ui.Handle, "Segmented", "Segment", id, items, index); return __result != 0; } diff --git a/src/CuiSharp/Ui/CodeEditor.g.cs b/src/CuiSharp/Ui/CodeEditor.g.cs index f8f68c2..d6aa203 100644 --- a/src/CuiSharp/Ui/CodeEditor.g.cs +++ b/src/CuiSharp/Ui/CodeEditor.g.cs @@ -20,7 +20,7 @@ public CodeEditorResult CodeEditor(UiText id, ref string buf, int cap, CodeEdito var __opts = o.ToNative(); var __result = Native.CodeEditor(ui.Handle, Utf8.Get(id), (nint)__bufSlot.Buffer, (nuint)__bufSlot.Capacity, in __opts); if (Ui.TextChanged(__bufSlot)) buf = Ui.DecodeText(__bufSlot); - WidgetRecorder.Note(ui.Handle, "CodeEditor", id); + WidgetRecorder.NoteValue(ui.Handle, "CodeEditor", id, buf); return CodeEditorResult.FromNative(__result); } diff --git a/src/CuiSharp/Ui/CommitGraph.g.cs b/src/CuiSharp/Ui/CommitGraph.g.cs index ce512c0..b72de7f 100644 --- a/src/CuiSharp/Ui/CommitGraph.g.cs +++ b/src/CuiSharp/Ui/CommitGraph.g.cs @@ -22,7 +22,7 @@ public CommitGraphResult CommitGraph(UiText id, ReadOnlySpan commits, re var __opts = o.ToNative((nint)(&__selected)); var __result = Native.CommitGraph(ui.Handle, Utf8.Get(id), (nint)__commits, (int)(commits.Length), in __opts); selected = __selected; - WidgetRecorder.Note(ui.Handle, "CommitGraph", id); + WidgetRecorder.NoteValue(ui.Handle, "CommitGraph", id, (double)selected); return CommitGraphResult.FromNative(__result); } diff --git a/src/CuiSharp/Ui/Conversation.g.cs b/src/CuiSharp/Ui/Conversation.g.cs index 9392cdb..00358b3 100644 --- a/src/CuiSharp/Ui/Conversation.g.cs +++ b/src/CuiSharp/Ui/Conversation.g.cs @@ -54,7 +54,7 @@ public CommentEvents Comment(UiText id, UiText author, UiText text, ref int like var __result = Native.Comment(ui.Handle, Utf8.Get(id), Utf8.Get(author), Utf8.Get(text), in __opts); likes = __likes; liked = __liked != 0; - WidgetRecorder.Note(ui.Handle, "Comment", id); + WidgetRecorder.NoteValue(ui.Handle, "Comment", id, liked); return (CommentEvents)__result; } diff --git a/src/CuiSharp/Ui/CurveAndGradientEditors.g.cs b/src/CuiSharp/Ui/CurveAndGradientEditors.g.cs index 5f80890..12152ca 100644 --- a/src/CuiSharp/Ui/CurveAndGradientEditors.g.cs +++ b/src/CuiSharp/Ui/CurveAndGradientEditors.g.cs @@ -28,7 +28,7 @@ public CurveResult CurveEditor(UiText id, Span keys, ref int count, re count = __keysCount; } selected = __selected; - WidgetRecorder.Note(ui.Handle, "CurveEditor", id); + WidgetRecorder.NoteValue(ui.Handle, "CurveEditor", id, (double)selected); return CurveResult.FromNative(__result); } @@ -47,7 +47,7 @@ public GradientResult GradientEditor(UiText id, Span stops, ref in count = __stopsCount; } selected = __selected; - WidgetRecorder.Note(ui.Handle, "GradientEditor", id); + WidgetRecorder.NoteValue(ui.Handle, "GradientEditor", id, (double)selected); return GradientResult.FromNative(__result); } diff --git a/src/CuiSharp/Ui/DataGrid.g.cs b/src/CuiSharp/Ui/DataGrid.g.cs index 75d7d0b..c678fdb 100644 --- a/src/CuiSharp/Ui/DataGrid.g.cs +++ b/src/CuiSharp/Ui/DataGrid.g.cs @@ -57,7 +57,7 @@ public bool TreeCell(UiText label, int depth, bool hasChildren, ref bool open, U byte __open = (byte)(open ? 1 : 0); var __result = Native.TreeCell(ui.Handle, Utf8.Get(label), depth, (byte)(hasChildren ? 1 : 0), (nint)(&__open), Utf8.Get(icon)); open = __open != 0; - WidgetRecorder.Note(ui.Handle, "TreeCell", label); + WidgetRecorder.NoteValue(ui.Handle, "TreeCell", label, open, open ? SemanticState.Expanded : SemanticState.None); return __result != 0; } diff --git a/src/CuiSharp/Ui/DependencyGraph.g.cs b/src/CuiSharp/Ui/DependencyGraph.g.cs index 048d316..4facafe 100644 --- a/src/CuiSharp/Ui/DependencyGraph.g.cs +++ b/src/CuiSharp/Ui/DependencyGraph.g.cs @@ -24,7 +24,7 @@ public GraphResult GraphView(UiText id, ReadOnlySpan nodes, ReadOnlyS var __opts = o.ToNative((nint)(&__selected)); var __result = Native.GraphView(ui.Handle, Utf8.Get(id), (nint)__nodes, (int)(nodes.Length), (nint)__edges, (int)(edges.Length), in __opts); selected = __selected; - WidgetRecorder.Note(ui.Handle, "GraphView", id); + WidgetRecorder.NoteValue(ui.Handle, "GraphView", id, (double)selected); return GraphResult.FromNative(__result); } diff --git a/src/CuiSharp/Ui/Docking.g.cs b/src/CuiSharp/Ui/Docking.g.cs index 5cd60d4..29ccc9f 100644 --- a/src/CuiSharp/Ui/Docking.g.cs +++ b/src/CuiSharp/Ui/Docking.g.cs @@ -45,7 +45,7 @@ public ulong DockSave(UiText id, ref string buf, int cap) var __bufSlot = ui.RentText(Native.MakeId(ui.Handle, Utf8.Get(id)) ^ 0x2cbb8a35u, ref buf, (int)cap); var __result = Native.DockSave(ui.Handle, Utf8.Get(id), (nint)__bufSlot.Buffer, (nuint)__bufSlot.Capacity); if (Ui.TextChanged(__bufSlot)) buf = Ui.DecodeText(__bufSlot); - WidgetRecorder.Note(ui.Handle, "DockSave", id); + WidgetRecorder.NoteValue(ui.Handle, "DockSave", id, buf); return __result; } @@ -79,7 +79,7 @@ public bool InspectorGroup(UiText title, ref bool open) byte __open = (byte)(open ? 1 : 0); var __result = Native.InspectorGroup(ui.Handle, Utf8.Get(title), (nint)(&__open)); open = __open != 0; - WidgetRecorder.Note(ui.Handle, "InspectorGroup", title); + WidgetRecorder.NoteValue(ui.Handle, "InspectorGroup", title, open, open ? SemanticState.Expanded : SemanticState.None); return __result != 0; } @@ -88,7 +88,7 @@ public bool PropFloat(UiText label, ref float value, PropOpts o = default) { var __opts = o.ToNative(); var __result = Native.PropFloat(ui.Handle, Utf8.Get(label), ref value, in __opts); - WidgetRecorder.Note(ui.Handle, "PropFloat", label); + WidgetRecorder.NoteValue(ui.Handle, "PropFloat", label, (double)value); return __result != 0; } @@ -97,7 +97,7 @@ public bool PropInt(UiText label, ref int value, PropOpts o = default) { var __opts = o.ToNative(); var __result = Native.PropInt(ui.Handle, Utf8.Get(label), ref value, in __opts); - WidgetRecorder.Note(ui.Handle, "PropInt", label); + WidgetRecorder.NoteValue(ui.Handle, "PropInt", label, (double)value); return __result != 0; } @@ -108,7 +108,7 @@ public bool PropText(UiText label, ref string buf, int cap, PropOpts o = default var __opts = o.ToNative(); var __result = Native.PropText(ui.Handle, Utf8.Get(label), (nint)__bufSlot.Buffer, (nuint)__bufSlot.Capacity, in __opts); if (Ui.TextChanged(__bufSlot)) buf = Ui.DecodeText(__bufSlot); - WidgetRecorder.Note(ui.Handle, "PropText", label); + WidgetRecorder.NoteValue(ui.Handle, "PropText", label, buf); return __result != 0; } @@ -119,7 +119,7 @@ public bool PropBool(UiText label, ref bool value, PropOpts o = default) var __opts = o.ToNative(); var __result = Native.PropBool(ui.Handle, Utf8.Get(label), (nint)(&__value), in __opts); value = __value != 0; - WidgetRecorder.Note(ui.Handle, "PropBool", label); + WidgetRecorder.NoteValue(ui.Handle, "PropBool", label, value, value ? SemanticState.Checked : SemanticState.None); return __result != 0; } @@ -128,7 +128,7 @@ public bool PropEnum(UiText label, ReadOnlySpan items, ref int index, Pr { var __opts = o.ToNative(); var __result = Native.PropEnum(ui.Handle, Utf8.Get(label), UiMarshal.Strings(items), (int)(items.Length), ref index, in __opts); - WidgetRecorder.Note(ui.Handle, "PropEnum", label); + WidgetRecorder.NoteValue(ui.Handle, "PropEnum", label, (double)index); return __result != 0; } @@ -148,7 +148,7 @@ public bool PropVec(UiText label, ref float value, int components, PropOpts o = { var __opts = o.ToNative(); var __result = Native.PropVec(ui.Handle, Utf8.Get(label), ref value, components, in __opts); - WidgetRecorder.Note(ui.Handle, "PropVec", label); + WidgetRecorder.NoteValue(ui.Handle, "PropVec", label, (double)value); return __result != 0; } diff --git a/src/CuiSharp/Ui/Emoji.g.cs b/src/CuiSharp/Ui/Emoji.g.cs index d21697f..15161cb 100644 --- a/src/CuiSharp/Ui/Emoji.g.cs +++ b/src/CuiSharp/Ui/Emoji.g.cs @@ -68,7 +68,7 @@ public void Emoji(UiText utf8, float size) var __result = Native.EmojiPicker(ui.Handle, Utf8.Get(id), in __opts); if (Ui.TextChanged(__recentSlot)) recent = Ui.DecodeText(__recentSlot); tone = __tone; - WidgetRecorder.Note(ui.Handle, "EmojiPicker", id); + WidgetRecorder.NoteValue(ui.Handle, "EmojiPicker", id, recent); return Marshal.PtrToStringUTF8(__result); } diff --git a/src/CuiSharp/Ui/FlameGraph.g.cs b/src/CuiSharp/Ui/FlameGraph.g.cs index 2e7bd42..f161703 100644 --- a/src/CuiSharp/Ui/FlameGraph.g.cs +++ b/src/CuiSharp/Ui/FlameGraph.g.cs @@ -22,7 +22,7 @@ public FlameResult FlameGraph(UiText id, ReadOnlySpan spans, ref Flam var __opts = o.ToNative(); var __result = Native.FlameGraph(ui.Handle, Utf8.Get(id), (nint)__spans, (int)(spans.Length), ref __view, ref selected, in __opts); view = FlameView.FromNative(__view); - WidgetRecorder.Note(ui.Handle, "FlameGraph", id); + WidgetRecorder.NoteValue(ui.Handle, "FlameGraph", id, (double)selected); return FlameResult.FromNative(__result); } diff --git a/src/CuiSharp/Ui/HttpRequestBar.g.cs b/src/CuiSharp/Ui/HttpRequestBar.g.cs index 2cf1d19..a292e17 100644 --- a/src/CuiSharp/Ui/HttpRequestBar.g.cs +++ b/src/CuiSharp/Ui/HttpRequestBar.g.cs @@ -22,7 +22,7 @@ public RequestBarResult RequestBar(UiText id, ref HttpVerb method, ref string ur var __result = Native.RequestBar(ui.Handle, Utf8.Get(id), ref __method, (nint)__urlSlot.Buffer, (nuint)__urlSlot.Capacity, in __opts); method = (HttpVerb)__method; if (Ui.TextChanged(__urlSlot)) url = Ui.DecodeText(__urlSlot); - WidgetRecorder.Note(ui.Handle, "RequestBar", id); + WidgetRecorder.NoteValue(ui.Handle, "RequestBar", id, url); return RequestBarResult.FromNative(__result); } diff --git a/src/CuiSharp/Ui/InstrumentsDotMatrixChartEventTrackReadoutDotMatrixDisplay.g.cs b/src/CuiSharp/Ui/InstrumentsDotMatrixChartEventTrackReadoutDotMatrixDisplay.g.cs index 2633fd6..6620554 100644 --- a/src/CuiSharp/Ui/InstrumentsDotMatrixChartEventTrackReadoutDotMatrixDisplay.g.cs +++ b/src/CuiSharp/Ui/InstrumentsDotMatrixChartEventTrackReadoutDotMatrixDisplay.g.cs @@ -25,7 +25,7 @@ public EventTrackResult EventTrack(UiText id, Span times, ref int count, new Span(__times, Math.Min(__timesCount, times.Length)).CopyTo(times); count = __timesCount; selected = __selected; - WidgetRecorder.Note(ui.Handle, "EventTrack", id); + WidgetRecorder.NoteValue(ui.Handle, "EventTrack", id, (double)selected); return EventTrackResult.FromNative(__result); } diff --git a/src/CuiSharp/Ui/MoreComponents.g.cs b/src/CuiSharp/Ui/MoreComponents.g.cs index c544c3b..2e54a4c 100644 --- a/src/CuiSharp/Ui/MoreComponents.g.cs +++ b/src/CuiSharp/Ui/MoreComponents.g.cs @@ -20,7 +20,7 @@ public bool RadioCards(UiText id, ReadOnlySpan choices, ref int index, R for (int i = 0; i < choices.Length; i++) __choices[i] = choices[i].ToNative(); var __opts = o.ToNative(); var __result = Native.RadioCards(ui.Handle, Utf8.Get(id), (nint)__choices, (int)(choices.Length), ref index, in __opts); - WidgetRecorder.Note(ui.Handle, "RadioCards", id); + WidgetRecorder.NoteValue(ui.Handle, "RadioCards", id, (double)index); return __result != 0; } diff --git a/src/CuiSharp/Ui/MoreFeedback.g.cs b/src/CuiSharp/Ui/MoreFeedback.g.cs index 7f8d10d..65c02e7 100644 --- a/src/CuiSharp/Ui/MoreFeedback.g.cs +++ b/src/CuiSharp/Ui/MoreFeedback.g.cs @@ -20,7 +20,7 @@ public bool Banner(UiText text, ref bool open, BannerOpts o = default) var __opts = o.ToNative(); var __result = Native.Banner(ui.Handle, Utf8.Get(text), (nint)(&__open), in __opts); open = __open != 0; - WidgetRecorder.Note(ui.Handle, "Banner", text); + WidgetRecorder.NoteValue(ui.Handle, "Banner", text, open, open ? SemanticState.Expanded : SemanticState.None); return __result != 0; } diff --git a/src/CuiSharp/Ui/MoreInputs.g.cs b/src/CuiSharp/Ui/MoreInputs.g.cs index 86176c6..9dba57c 100644 --- a/src/CuiSharp/Ui/MoreInputs.g.cs +++ b/src/CuiSharp/Ui/MoreInputs.g.cs @@ -20,7 +20,7 @@ public int InlineEdit(UiText id, ref string buf, int cap = 256, InlineEditOpts o var __opts = o.ToNative(); var __result = Native.InlineEdit(ui.Handle, Utf8.Get(id), (nint)__bufSlot.Buffer, (nuint)__bufSlot.Capacity, in __opts); if (Ui.TextChanged(__bufSlot)) buf = Ui.DecodeText(__bufSlot); - WidgetRecorder.Note(ui.Handle, "InlineEdit", id); + WidgetRecorder.NoteValue(ui.Handle, "InlineEdit", id, buf); return __result; } @@ -29,7 +29,7 @@ public bool Scrub(UiText label, ref float value, float min, float max, ScrubOpts { var __opts = o.ToNative(); var __result = Native.Scrub(ui.Handle, Utf8.Get(label), ref value, min, max, in __opts); - WidgetRecorder.Note(ui.Handle, "Scrub", label); + WidgetRecorder.NoteValue(ui.Handle, "Scrub", label, (double)value); return __result != 0; } @@ -38,7 +38,7 @@ public bool MoneyInput(UiText id, ref double value, MoneyOpts o = default) { var __opts = o.ToNative(); var __result = Native.MoneyInput(ui.Handle, Utf8.Get(id), ref value, in __opts); - WidgetRecorder.Note(ui.Handle, "MoneyInput", id); + WidgetRecorder.NoteValue(ui.Handle, "MoneyInput", id, (double)value); return __result != 0; } diff --git a/src/CuiSharp/Ui/MotionAndTextEffects.g.cs b/src/CuiSharp/Ui/MotionAndTextEffects.g.cs index 63eb704..b951124 100644 --- a/src/CuiSharp/Ui/MotionAndTextEffects.g.cs +++ b/src/CuiSharp/Ui/MotionAndTextEffects.g.cs @@ -107,7 +107,7 @@ public bool TabBar(UiText id, ReadOnlySpan items, ref int selected, for (int i = 0; i < items.Length; i++) __items[i] = items[i].ToNative(); var __opts = o.ToNative(); var __result = Native.TabBar(ui.Handle, Utf8.Get(id), (nint)__items, (int)(items.Length), ref selected, in __opts); - WidgetRecorder.Note(ui.Handle, "TabBar", id); + WidgetRecorder.NoteValue(ui.Handle, "TabBar", id, (double)selected); return __result != 0; } @@ -118,7 +118,7 @@ public bool ControlTile(UiText label, ref bool on, TileOpts o = default) var __opts = o.ToNative(); var __result = Native.ControlTile(ui.Handle, Utf8.Get(label), (nint)(&__on), in __opts); on = __on != 0; - WidgetRecorder.Note(ui.Handle, "ControlTile", label); + WidgetRecorder.NoteValue(ui.Handle, "ControlTile", label, on, on ? SemanticState.Checked : SemanticState.None); return __result != 0; } @@ -127,7 +127,7 @@ public bool Waveform(UiText id, ReadOnlySpan peaks, ref float progress, W { var __opts = o.ToNative(); var __result = Native.Waveform(ui.Handle, Utf8.Get(id), UiMarshal.Values(peaks), (int)(peaks.Length), ref progress, in __opts); - WidgetRecorder.Note(ui.Handle, "Waveform", id); + WidgetRecorder.NoteValue(ui.Handle, "Waveform", id, (double)progress); return __result != 0; } diff --git a/src/CuiSharp/Ui/Navigation.g.cs b/src/CuiSharp/Ui/Navigation.g.cs index 65d3858..233da15 100644 --- a/src/CuiSharp/Ui/Navigation.g.cs +++ b/src/CuiSharp/Ui/Navigation.g.cs @@ -19,7 +19,7 @@ public bool Tabs(UiText id, ReadOnlySpan items, ref int index, TabsOpts if (o.Icons is { } __icons && __icons.Length < items.Length) throw new ArgumentException("Icons must contain at least one entry per item.", nameof(o)); var __opts = o.ToNative(); var __result = Native.Tabs(ui.Handle, Utf8.Get(id), UiMarshal.Strings(items), (int)(items.Length), ref index, in __opts); - WidgetRecorder.NoteItems(ui.Handle, "Tabs", "Tab", id, items); + WidgetRecorder.NoteItems(ui.Handle, "Tabs", "Tab", id, items, index); return __result != 0; } diff --git a/src/CuiSharp/Ui/NetworkWaterfall.g.cs b/src/CuiSharp/Ui/NetworkWaterfall.g.cs index 8d5aa06..1c1a112 100644 --- a/src/CuiSharp/Ui/NetworkWaterfall.g.cs +++ b/src/CuiSharp/Ui/NetworkWaterfall.g.cs @@ -22,7 +22,7 @@ public WaterfallResult Waterfall(UiText id, ReadOnlySpan requests, r var __opts = o.ToNative((nint)(&__selected)); var __result = Native.Waterfall(ui.Handle, Utf8.Get(id), (nint)__requests, (int)(requests.Length), in __opts); selected = __selected; - WidgetRecorder.Note(ui.Handle, "Waterfall", id); + WidgetRecorder.NoteValue(ui.Handle, "Waterfall", id, (double)selected); return WaterfallResult.FromNative(__result); } diff --git a/src/CuiSharp/Ui/Pickers.g.cs b/src/CuiSharp/Ui/Pickers.g.cs index 091cdef..d96a710 100644 --- a/src/CuiSharp/Ui/Pickers.g.cs +++ b/src/CuiSharp/Ui/Pickers.g.cs @@ -48,7 +48,7 @@ public bool WheelPicker(UiText id, ReadOnlySpan items, ref int index, Wh { var __opts = o.ToNative(); var __result = Native.WheelPicker(ui.Handle, Utf8.Get(id), UiMarshal.Strings(items), (int)(items.Length), ref index, in __opts); - WidgetRecorder.Note(ui.Handle, "WheelPicker", id); + WidgetRecorder.NoteValue(ui.Handle, "WheelPicker", id, (double)index); return __result != 0; } @@ -65,7 +65,7 @@ public bool RulerSlider(UiText label, ref float value, float min, float max, Rul { var __opts = o.ToNative(); var __result = Native.RulerSlider(ui.Handle, Utf8.Get(label), ref value, min, max, in __opts); - WidgetRecorder.Note(ui.Handle, "RulerSlider", label); + WidgetRecorder.NoteValue(ui.Handle, "RulerSlider", label, (double)value); return __result != 0; } @@ -83,7 +83,7 @@ public bool Knob(UiText id, ref float value, float min, float max, KnobOpts o = { var __opts = o.ToNative(); var __result = Native.Knob(ui.Handle, Utf8.Get(id), ref value, min, max, in __opts); - WidgetRecorder.Note(ui.Handle, "Knob", id); + WidgetRecorder.NoteValue(ui.Handle, "Knob", id, (double)value); return __result != 0; } @@ -92,7 +92,7 @@ public bool Fader(UiText id, ref float value, float min, float max, FaderOpts o { var __opts = o.ToNative(); var __result = Native.Fader(ui.Handle, Utf8.Get(id), ref value, min, max, in __opts); - WidgetRecorder.Note(ui.Handle, "Fader", id); + WidgetRecorder.NoteValue(ui.Handle, "Fader", id, (double)value); return __result != 0; } diff --git a/src/CuiSharp/Ui/Pipeline.g.cs b/src/CuiSharp/Ui/Pipeline.g.cs index 37e0d21..a74370d 100644 --- a/src/CuiSharp/Ui/Pipeline.g.cs +++ b/src/CuiSharp/Ui/Pipeline.g.cs @@ -22,7 +22,7 @@ public PipelineResult Pipeline(UiText id, ReadOnlySpan stages, ReadOnlyS var __opts = o.ToNative((nint)(&__selected)); var __result = Native.Pipeline(ui.Handle, Utf8.Get(id), UiMarshal.Strings(stages), (int)(stages.Length), (nint)__jobs, (int)(jobs.Length), in __opts); selected = __selected; - WidgetRecorder.Note(ui.Handle, "Pipeline", id); + WidgetRecorder.NoteValue(ui.Handle, "Pipeline", id, (double)selected); return PipelineResult.FromNative(__result); } diff --git a/src/CuiSharp/Ui/RegularExpressionsAndTheRegexTester.g.cs b/src/CuiSharp/Ui/RegularExpressionsAndTheRegexTester.g.cs index 7bf57ea..00f793e 100644 --- a/src/CuiSharp/Ui/RegularExpressionsAndTheRegexTester.g.cs +++ b/src/CuiSharp/Ui/RegularExpressionsAndTheRegexTester.g.cs @@ -24,7 +24,7 @@ public RegexTesterResult RegexTester(UiText id, ref string pattern, int patternC if (Ui.TextChanged(__patternSlot)) pattern = Ui.DecodeText(__patternSlot); if (Ui.TextChanged(__textSlot)) text = Ui.DecodeText(__textSlot); flags = __flags; - WidgetRecorder.Note(ui.Handle, "RegexTester", id); + WidgetRecorder.NoteValue(ui.Handle, "RegexTester", id, pattern); return RegexTesterResult.FromNative(__result); } diff --git a/src/CuiSharp/Ui/SchedulePicker.g.cs b/src/CuiSharp/Ui/SchedulePicker.g.cs index 97969a1..d6e27f0 100644 --- a/src/CuiSharp/Ui/SchedulePicker.g.cs +++ b/src/CuiSharp/Ui/SchedulePicker.g.cs @@ -20,7 +20,7 @@ public ScheduleResult SchedulePicker(UiText id, ref string cron, int cap = 128, var __opts = o.ToNative(); var __result = Native.SchedulePicker(ui.Handle, Utf8.Get(id), (nint)__cronSlot.Buffer, (nuint)__cronSlot.Capacity, in __opts); if (Ui.TextChanged(__cronSlot)) cron = Ui.DecodeText(__cronSlot); - WidgetRecorder.Note(ui.Handle, "SchedulePicker", id); + WidgetRecorder.NoteValue(ui.Handle, "SchedulePicker", id, cron); return ScheduleResult.FromNative(__result); } diff --git a/src/CuiSharp/Ui/SelectComboboxDatePicker.g.cs b/src/CuiSharp/Ui/SelectComboboxDatePicker.g.cs index 9f288f2..8b3b66f 100644 --- a/src/CuiSharp/Ui/SelectComboboxDatePicker.g.cs +++ b/src/CuiSharp/Ui/SelectComboboxDatePicker.g.cs @@ -19,7 +19,7 @@ public bool Select(UiText id, ReadOnlySpan items, ref int index, SelectO if (o.Icons is { } __icons && __icons.Length < items.Length) throw new ArgumentException("Icons must contain at least one entry per item.", nameof(o)); var __opts = o.ToNative(); var __result = Native.Select(ui.Handle, Utf8.Get(id), UiMarshal.Strings(items), (int)(items.Length), ref index, in __opts); - WidgetRecorder.Note(ui.Handle, "Select", id); + WidgetRecorder.NoteValue(ui.Handle, "Select", id, (double)index); return __result != 0; } diff --git a/src/CuiSharp/Ui/SelectionControls.g.cs b/src/CuiSharp/Ui/SelectionControls.g.cs index 5e2f1c9..2380260 100644 --- a/src/CuiSharp/Ui/SelectionControls.g.cs +++ b/src/CuiSharp/Ui/SelectionControls.g.cs @@ -20,7 +20,7 @@ public bool Checkbox(UiText label, ref bool value, CheckOpts o = default) var __opts = o.ToNative(); var __result = Native.Checkbox(ui.Handle, Utf8.Get(label), (nint)(&__value), in __opts); value = __value != 0; - WidgetRecorder.Note(ui.Handle, "Checkbox", label); + WidgetRecorder.NoteValue(ui.Handle, "Checkbox", label, value, value ? SemanticState.Checked : SemanticState.None); return __result != 0; } @@ -31,7 +31,7 @@ public bool Switch(UiText label, ref bool value, CheckOpts o = default) var __opts = o.ToNative(); var __result = Native.Switch(ui.Handle, Utf8.Get(label), (nint)(&__value), in __opts); value = __value != 0; - WidgetRecorder.Note(ui.Handle, "Switch", label); + WidgetRecorder.NoteValue(ui.Handle, "Switch", label, value, value ? SemanticState.Checked : SemanticState.None); return __result != 0; } @@ -40,7 +40,7 @@ public bool Radio(UiText label, ref int value, int option, CheckOpts o = default { var __opts = o.ToNative(); var __result = Native.Radio(ui.Handle, Utf8.Get(label), ref value, option, in __opts); - WidgetRecorder.Note(ui.Handle, "Radio", label); + WidgetRecorder.NoteValue(ui.Handle, "Radio", label, (double)value); return __result != 0; } @@ -48,7 +48,7 @@ public bool Radio(UiText label, ref int value, int option, CheckOpts o = default public bool RadioGroup(UiText id, ReadOnlySpan items, ref int index) { var __result = Native.RadioGroup(ui.Handle, Utf8.Get(id), UiMarshal.Strings(items), (int)(items.Length), ref index); - WidgetRecorder.Note(ui.Handle, "RadioGroup", id); + WidgetRecorder.NoteValue(ui.Handle, "RadioGroup", id, (double)index); return __result != 0; } @@ -57,7 +57,7 @@ public bool Slider(UiText label, ref float value, float min, float max, SliderOp { var __opts = o.ToNative(); var __result = Native.Slider(ui.Handle, Utf8.Get(label), ref value, min, max, in __opts); - WidgetRecorder.Note(ui.Handle, "Slider", label); + WidgetRecorder.NoteValue(ui.Handle, "Slider", label, (double)value); return __result != 0; } @@ -73,7 +73,7 @@ public bool RangeSlider(UiText label, ref float lo, ref float hi, float min, flo public bool Rating(UiText id, ref int value, int max = 5) { var __result = Native.Rating(ui.Handle, Utf8.Get(id), ref value, max); - WidgetRecorder.Note(ui.Handle, "Rating", id); + WidgetRecorder.NoteValue(ui.Handle, "Rating", id, (double)value); return __result != 0; } @@ -84,7 +84,7 @@ public bool Chip(UiText label, ref bool selected, ChipOpts o = default) var __opts = o.ToNative(); var __result = Native.Chip(ui.Handle, Utf8.Get(label), (nint)(&__selected), in __opts); selected = __selected != 0; - WidgetRecorder.Note(ui.Handle, "Chip", label); + WidgetRecorder.NoteValue(ui.Handle, "Chip", label, selected, selected ? SemanticState.Selected : SemanticState.None); return __result != 0; } diff --git a/src/CuiSharp/Ui/TraceViewer.g.cs b/src/CuiSharp/Ui/TraceViewer.g.cs index 730dcc1..f983232 100644 --- a/src/CuiSharp/Ui/TraceViewer.g.cs +++ b/src/CuiSharp/Ui/TraceViewer.g.cs @@ -24,7 +24,7 @@ public TraceResult TraceView(UiText id, ReadOnlySpan tracks, ReadOnl var __opts = o.ToNative(); var __result = Native.TraceView(ui.Handle, Utf8.Get(id), (nint)__tracks, (int)(tracks.Length), (nint)__spans, (int)(spans.Length), ref __view, ref selected, in __opts); view = TraceViewState.FromNative(__view); - WidgetRecorder.Note(ui.Handle, "TraceView", id); + WidgetRecorder.NoteValue(ui.Handle, "TraceView", id, (double)selected); return TraceResult.FromNative(__result); } diff --git a/src/CuiSharp/Ui/TreeTableAndPathBar.g.cs b/src/CuiSharp/Ui/TreeTableAndPathBar.g.cs index 91a0aa5..7865f35 100644 --- a/src/CuiSharp/Ui/TreeTableAndPathBar.g.cs +++ b/src/CuiSharp/Ui/TreeTableAndPathBar.g.cs @@ -65,7 +65,7 @@ public FileBrowserResult FileBrowser(UiText id, ref string path, int pathCap = 1 var __opts = o.ToNative(); var __result = Native.FileBrowser(ui.Handle, Utf8.Get(id), (nint)__pathSlot.Buffer, (nuint)__pathSlot.Capacity, in __opts); if (Ui.TextChanged(__pathSlot)) path = Ui.DecodeText(__pathSlot); - WidgetRecorder.Note(ui.Handle, "FileBrowser", id); + WidgetRecorder.NoteValue(ui.Handle, "FileBrowser", id, path); return FileBrowserResult.FromNative(__result); } @@ -78,7 +78,7 @@ public bool FilePicker(UiText id, ref bool open, ref string @out, int outCap = 1 var __result = Native.FilePicker(ui.Handle, Utf8.Get(id), (nint)(&__open), (nint)__outSlot.Buffer, (nuint)__outSlot.Capacity, in __opts); open = __open != 0; if (Ui.TextChanged(__outSlot)) @out = Ui.DecodeText(__outSlot); - WidgetRecorder.Note(ui.Handle, "FilePicker", id); + WidgetRecorder.NoteValue(ui.Handle, "FilePicker", id, @out, open ? SemanticState.Expanded : SemanticState.None); return __result != 0; } diff --git a/src/CuiSharp/Ui/Ui.IdScopes.cs b/src/CuiSharp/Ui/Ui.IdScopes.cs index 3ef9df1..e126a33 100644 --- a/src/CuiSharp/Ui/Ui.IdScopes.cs +++ b/src/CuiSharp/Ui/Ui.IdScopes.cs @@ -8,8 +8,13 @@ namespace CuiSharp; public ref struct IdScope : IDisposable { private nint _ui; + private readonly bool _automation; - internal IdScope(nint ui) { _ui = ui; } + internal IdScope(nint ui, bool automation = false) + { + _ui = ui; + _automation = automation; + } /// Pops the id. Disposing the same instance again does nothing. public void Dispose() @@ -17,10 +22,32 @@ public void Dispose() nint ui = _ui; if (ui == 0) return; _ui = 0; + if (_automation) WidgetRecorder.PopAutomation(ui); Interop.Native.PopId(ui); } } +/// +/// A stable automation id for the widgets drawn inside it. Unlike +/// this does not change CUI's native identity, so it can name a button whose label is already +/// unique without changing its state key. +/// +public ref struct AutomationScope : IDisposable +{ + private nint _ui; + + internal AutomationScope(nint ui) { _ui = ui; } + + /// Pops the automation id. Disposing twice does nothing. + public void Dispose() + { + nint ui = _ui; + if (ui == 0) return; + _ui = 0; + WidgetRecorder.PopAutomation(ui); + } +} + /// The key for one item in . public delegate int KeyFn(in T item); @@ -73,7 +100,9 @@ public bool MoveNext() Current = _items[_index]; T item = Current; - Interop.Native.PushIdInt(_ui, _key(in item)); + int key = _key(in item); + Interop.Native.PushIdInt(_ui, key); + WidgetRecorder.PushAutomation(_ui, key); _pushed = true; return true; } @@ -85,6 +114,7 @@ private void Pop() { if (!_pushed) return; _pushed = false; + WidgetRecorder.PopAutomation(_ui); Interop.Native.PopId(_ui); } } diff --git a/src/CuiSharp/Ui/Ui.Overlays.cs b/src/CuiSharp/Ui/Ui.Overlays.cs index eb02f26..ae2c45b 100644 --- a/src/CuiSharp/Ui/Ui.Overlays.cs +++ b/src/CuiSharp/Ui/Ui.Overlays.cs @@ -37,18 +37,34 @@ public bool DateToday(out Date value) return d.Year != 0; } - /// Pushes a string id for the widgets drawn inside the scope. + /// + /// Pushes a string id for the widgets drawn inside the scope. It is also their automation id: + /// using (ui.Id("row:42")) ui.Button("Delete") makes id:row:42 find that button. + /// public IdScope Id(UiText id) { + WidgetRecorder.PushAutomation(Handle, id); Native.PushId(Handle, Utf8.Get(id)); - return new IdScope(Handle); + return new IdScope(Handle, automation: true); } - /// Pushes an integer id, typically a row or item index. + /// Pushes an integer id, typically a row or item index; it is the automation id too. public IdScope Id(int key) { + WidgetRecorder.PushAutomation(Handle, key); Native.PushIdInt(Handle, key); - return new IdScope(Handle); + return new IdScope(Handle, automation: true); + } + + /// + /// Names the widgets drawn inside this scope for automation without changing their native + /// identity. Use it when a label is readable but not unique; use when + /// the native state also has to be separated by the same key. + /// + public AutomationScope Automation(UiText id) + { + WidgetRecorder.PushAutomation(Handle, id); + return new AutomationScope(Handle); } /// diff --git a/src/CuiSharp/Ui/Ui.cs b/src/CuiSharp/Ui/Ui.cs index 71308ee..92dd95d 100644 --- a/src/CuiSharp/Ui/Ui.cs +++ b/src/CuiSharp/Ui/Ui.cs @@ -60,14 +60,14 @@ private InputResult TextField(UiText id, ref string value, InputOpts o, TextFiel TextFieldKind.Area => Native.Textarea(Handle, Utf8.Get(id), (nint)slot.Buffer, (nuint)slot.Capacity, in n), _ => Native.Search(Handle, Utf8.Get(id), (nint)slot.Buffer, (nuint)slot.Capacity, in n), }; - WidgetRecorder.Note(Handle, kind switch + var parsed = new InputResult(result); + if (parsed.Changed) value = TextFieldPool.Decode(slot); + WidgetRecorder.NoteValue(Handle, kind switch { TextFieldKind.Area => "TextArea", TextFieldKind.Search => "Search", _ => "Input", - }, id); - var parsed = new InputResult(result); - if (parsed.Changed) value = TextFieldPool.Decode(slot); + }, id, value, parsed.Focused ? SemanticState.Focused : SemanticState.None); return parsed; } @@ -75,7 +75,7 @@ public bool Number(UiText id, ref double value, double min, double max, NumberOp { var n = o.ToNative(); bool changed = Native.Number(Handle, Utf8.Get(id), ref value, min, max, in n) != 0; - WidgetRecorder.Note(Handle, "Number", id); + WidgetRecorder.NoteValue(Handle, "Number", id, value); return changed; } diff --git a/tools/bindgen.cs b/tools/bindgen.cs index 72efc21..259b27b 100644 --- a/tools/bindgen.cs +++ b/tools/bindgen.cs @@ -2905,22 +2905,66 @@ private static uint TextKeySalt(string overrideKey) if (_overrides.ItemLists.TryGetValue(widget.Native.CName, out var items) && widget.Params.Any(p => p.Name == items.Items)) { - return $"WidgetRecorder.NoteItems(ui.Handle, \"{widget.Name}\", \"{items.Kind}\", {namer.Name}, {items.Items});"; + return $"WidgetRecorder.NoteItems(ui.Handle, \"{widget.Name}\", \"{items.Kind}\", {namer.Name}, {items.Items}, {items.Index});"; } // An icon-only button has no label: its tooltip is the name a person and an agent read. // Recording the glyph made `tree` print an unreadable icon and left `click Pause` unable // to name the button it meant. + string target = namer.Name; if (widget.Name == "IconButton" && widget.Params.FirstOrDefault(p => p.Type == "ButtonOpts") is { } options) { - return $"WidgetRecorder.Note(ui.Handle, \"IconButton\", string.IsNullOrEmpty({options.Name}.Tooltip) " - + $"? {namer.Name} : (UiText){options.Name}.Tooltip);"; + target = $"string.IsNullOrEmpty({options.Name}.Tooltip) ? {namer.Name} : (UiText){options.Name}.Tooltip"; } - return $"WidgetRecorder.Note(ui.Handle, \"{widget.Name}\", {namer.Name});"; + // A widget that edits a value can say what it holds without allocating in the frame: + // the recorder stores the text or the number and formats it after the draw. A bool + // ref is also the state (checked/selected/expanded), so a checkbox reads as more than + // its label without a second API. + WidgetParam? textValue = widget.Params.FirstOrDefault(p => p.Mode == "ref " && p.Type == "string"); + WidgetParam? boolValue = widget.Params.FirstOrDefault(p => p.Mode == "ref " && p.Type == "bool"); + WidgetParam? numberValue = widget.Params.FirstOrDefault(p => + p.Mode == "ref " && p.Type is "float" or "double" or "int" && IsValueName(p.Name)); + + string state = boolValue is { } boolean ? StateFor(boolean.Name, boolean: true) : ""; + string stateArgument = state.Length == 0 + ? "" + : boolValue is { } stateBool + ? $", {stateBool.Name} ? SemanticState.{state} : SemanticState.None" + : $", SemanticState.{state}"; + + if (textValue is { } textParam) + { + return $"WidgetRecorder.NoteValue(ui.Handle, \"{widget.Name}\", {target}, {textParam.Name}{stateArgument});"; + } + + if (numberValue is { } numeric) + { + return $"WidgetRecorder.NoteValue(ui.Handle, \"{widget.Name}\", {target}, (double){numeric.Name}{stateArgument});"; + } + + if (boolValue is { } flag) + { + return $"WidgetRecorder.NoteValue(ui.Handle, \"{widget.Name}\", {target}, {flag.Name}{stateArgument});"; + } + + return state.Length == 0 + ? $"WidgetRecorder.Note(ui.Handle, \"{widget.Name}\", {target});" + : $"WidgetRecorder.Note(ui.Handle, \"{widget.Name}\", {target}, SemanticState.{state});"; } + private static bool IsValueName(string name) => name is + "value" or "selected" or "index" or "progress" or "ratio"; + + private static string StateFor(string name, bool boolean) => name.ToLowerInvariant() switch + { + "selected" => "Selected", + "open" or "expanded" => "Expanded", + "checked" or "on" or "value" when boolean => "Checked", + _ => "", + }; + /// /// The scope a container returns, with the name that makes it a node in a recorded tree. /// A container the app named (a card, a box, a scroll area with an Id) is what a test From 7ccbe42d7115be7c67b3064b914e4584cc93ee55 Mon Sep 17 00:00:00 2001 From: slaveoftime Date: Mon, 16 Nov 2026 03:10:33 +0800 Subject: [PATCH 5/5] Harden semantic recording, live attach and the headless workflow Fix the defects found while reviewing the developer-experience branch, and bring the docs back in step with the code. Semantics and recording: - A path query keeps its role and value at the leaf, and a path step only matches a container, so `role:button card > Delete` resolves. - `id:` ranks an explicit automation id above a text fallback and an actionable control above its container or a static label in the same scope, and `FindUnique` refuses two controls that rank equally there. - `ui.Input`/`TextArea`/`Search` record ReadOnly; `TagInput`, `OtpInput` and `FilterBar` record their value; `Describe` escapes newlines so `tree --details` stays one line per node. - Closing an `AutomationScope` is a scope leak the analyzer reports, and `ui.Automation` is not treated as a row id. - Role and static-widget tables cover the remaining wrappers. Live attach and the window thread: - The message-window class is registered once under the static gate, and the resize hook's table is concurrent, so two windows cannot race. - `FindCuiWindow` hands its result through lparam instead of a shared static, which clobbered a parallel window's handle. - Live `find`/`click` use the same strict disambiguation as the headless loop. - Window tests that touch process-wide state share one collection. Headless workflow and tool: - `CUISHARP_VIEWPORT` is range-checked and applied inside the loop, and `--size` and `--sizes` stay distinct so one viewport still names the file after it; a matrix builds the project once. - A blank find/click query is a usage error, an env key starts with a letter or `_`, and `--state` wins over `--env`. - `doctor --strict --json` reports ok:false when a warning fails the run. - An allocation test takes the median of five batches. Docs: - llms.txt, SKILL.md's contents, the docs index and live-debugging topic, the template README/AGENTS.md, and the README version example match the current API and grammar. --- README.md | 2 +- skills/cui-dotnet/SKILL.md | 11 +- skills/cui-dotnet/llms.txt | 13 +- src/CuiSharp.Analyzers/Diagnostics.cs | 5 +- src/CuiSharp.Analyzers/WidgetIdAnalyzer.cs | 2 +- src/CuiSharp.Templates/CuiSharp.App/AGENTS.md | 2 +- .../CuiSharp.App/CuiSharp.App/Program.cs | 2 +- src/CuiSharp.Templates/CuiSharp.App/README.md | 11 +- src/CuiSharp.Tests/AnalyzerTests.cs | 8 ++ src/CuiSharp.Tests/DoctorTests.cs | 4 + src/CuiSharp.Tests/HeadlessLoopTests.cs | 1 + src/CuiSharp.Tests/HotReloadWakeTests.cs | 1 + src/CuiSharp.Tests/LiveControlTests.cs | 22 +++- src/CuiSharp.Tests/SemanticTreeTests.cs | 58 +++++++++ src/CuiSharp.Tests/TestingHarnessTests.cs | 16 ++- src/CuiSharp.Tests/ToolArgumentTests.cs | 7 ++ src/CuiSharp.Tests/WidgetQueryTests.cs | 4 + src/CuiSharp.Tests/WindowControlTests.cs | 1 + src/CuiSharp.Tools/Cli.cs | 15 ++- src/CuiSharp.Tools/DocLibrary.cs | 4 +- src/CuiSharp.Tools/Doctor.cs | 14 ++- src/CuiSharp.Tools/Grammar.cs | 22 ++-- src/CuiSharp.Tools/Viewport.cs | 1 + src/CuiSharp/Hosting/HeadlessLoop.cs | 10 +- src/CuiSharp/Hosting/LiveResize.cs | 7 +- src/CuiSharp/Hosting/LiveSession.cs | 38 +++--- src/CuiSharp/Interop/Win32.cs | 22 +--- src/CuiSharp/Semantics/SemanticNode.cs | 112 +++++++++--------- src/CuiSharp/Semantics/SemanticRole.cs | 32 ++--- src/CuiSharp/Semantics/WidgetRecorder.cs | 10 +- src/CuiSharp/Ui/Ui.BoolGroups.cs | 2 +- src/CuiSharp/Ui/Ui.Overlays.cs | 2 + src/CuiSharp/Ui/Ui.cs | 4 +- tools/bindgen.cs | 13 +- 34 files changed, 304 insertions(+), 174 deletions(-) diff --git a/README.md b/README.md index d5e7e49..ced0153 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ dotnet publish demo1.cs -c Release -o . # one native binary beside it, no .NE folder; replace the .ico with your own to change the exe and window icon. Add `-o ` only when you want a separate output directory. The generated file carries the properties that make that publish one file of about 1.2 MB, and says so at the top. It starts with -`#:package CuiSharp@*`, resolving the latest stable package; use `--CuiSharpVersion 0.3.3` when +`#:package CuiSharp@*`, resolving the latest stable package; use `--CuiSharpVersion ` when generating to pin a version. Its counter and theme switch use the same frame API as a full app; `CUISHARP_HEADLESS=1` runs it without a window for automation. diff --git a/skills/cui-dotnet/SKILL.md b/skills/cui-dotnet/SKILL.md index 678977e..dfc76ae 100644 --- a/skills/cui-dotnet/SKILL.md +++ b/skills/cui-dotnet/SKILL.md @@ -17,13 +17,16 @@ a UI that needs an accessibility tree (CUI publishes none). 1. [The one rule](#the-one-rule) · [A whole app](#a-whole-app) · [Cheat sheet](#cheat-sheet) 2. [Frame-local types](#frame-local-types-and-text) · [Containers](#containers-are-using-scopes) · [Sizing](#sizing) · [Options](#options-are-structs-of-fields) · [Colours](#colours-come-from-the-theme) -3. [State in `ref`](#state-goes-in-ref) · [Conditional containers](#containers-that-may-be-closed) · - [Custom controls](#custom-controls) · [Long series](#long-series-and-live-data) +3. [State in `ref`](#state-goes-in-ref) · [Grid state](#grid-state-and-value-selection) · + [Conditional containers](#containers-that-may-be-closed) · [Custom controls](#custom-controls) · + [Long series](#long-series-and-live-data) 4. [Pitfalls](#pitfalls) · [Async work](#async-work) · [Renderer](#where-it-renders) · [Keyboard](#keyboard) · [Theming](#theming) · [Translation](#translating-the-date-names) · [Design rules](#design-rules) 5. [How to work on a UI](#how-to-work-on-a-ui) · [Testing](#testing-without-a-window) · - [Driving a real app](#driving-a-running-app) · [Publishing for size](#publishing-for-size) · - [Widget behaviour](#widget-behaviour) · [Files](#files) + [Frame numbers](#frame-numbers) · [Driving a real app](#driving-a-running-app) · + [Roles and ids](#roles-values-and-stable-automation-ids) · + [Headless viewports and readiness](#headless-viewports-state-and-readiness) · + [Publishing for size](#publishing-for-size) · [Widget behaviour](#widget-behaviour) · [Files](#files) ## The one rule diff --git a/skills/cui-dotnet/llms.txt b/skills/cui-dotnet/llms.txt index 4c464de..2ba5c5d 100644 --- a/skills/cui-dotnet/llms.txt +++ b/skills/cui-dotnet/llms.txt @@ -15,7 +15,7 @@ - Long work goes through `Mutation`: create it once, call `Run()` from a button, read `IsRunning` and `Error`. - A page that changes on its own needs `WantsFrames => true`, or the window sleeps. - Per-frame code allocates nothing: no LINQ, no `new`, no string concatenation. Interpolate into a widget instead. -- Find a control in a frame by a query: a label (`Save`), a kind and a label (`Button "Save"`), or a path through its containers (`editor > Save`; only the last step may name a kind). +- Find a control in a frame by a query: a label (`Save`), a kind and a label (`Button "Save"`), a semantic role (`role:button`), a value (`value:Milk`), an id (`id:draft`), or a path through its containers (`editor > Save`; only the last step may name a kind). ## Entry points @@ -25,12 +25,12 @@ ## Testing and tools -- `TestApp.Start(component, w, h)` — drive a real component with no window: `FindButton("Save").Click()`, `FindInput("draft")` + `Type("Milk")`, `Frame(n)`, `Focus()`, `Key(key)`, `Faults`, `PaintedAnything()`, `SavePng(path)`. -- `app.Tree` / `app.Print()` — the frame as the app drew it, nesting included; `SemanticNode.Find(query)`, `Descendants()`, `Path`. +- `TestApp.Start(component, w, h)` — drive a real component with no window: `FindButton("Save").Click()`, `FindInput("draft")` + `Type("Milk")`, `FindById("draft")`, `FindUnique(query)`, `Frame(n)`, `Focus()`, `Key(key)`, `WaitReady(timeout)`, `WaitFor(query, timeout)`, `Faults`, `PaintedAnything()`, `SavePng(path)`. +- `app.Tree` / `app.Print(rects, details)` — the frame as the app drew it, nesting included; `SemanticNode` exposes `Kind`, `Text`/`Name`, `Role`, `Value`, `State`, `AutomationId`, `Rect`, `Path`, `Find(query)`, `Descendants()`, and `ToAccessibility()`. - `HeadlessApp` — the same driver in the framework, which `TestApp` names; `dotnet cui` drives it in a real process. - A tab strip and a segmented control record one control per item (`Tab "Markets"`, `Segment "Dark"`), so an item is found and clicked like any other control. - `surface.LastFrame` -> `FrameSample` — what the last frame that surface drew cost: `DrawMs`, `AllocatedBytes`, `FrameMs`, `Fps`, `IsLive`. `FrameStats` holds the same for the one window in the process, which is what a footer reads. -- `dotnet cui tree|find|click|type|key|focus|move|frame|faults|png` — one command per line; `dotnet cui session` relays a whole script against one build; `--app` for a published build, `--no-build`, `--frames N`. Any app opts in by running headless (`CUISHARP_HEADLESS=1` or `--headless`). +- `dotnet cui tree|layout|find|click|type|key|focus|move|wheel|frame|wait|waittext|faults|png|doctor` — one command per line (`tree --details`, `find`/`click` `--role`/`--value`/`--id`, `--size WxH`, `png --sizes WxH,WxH`, `--state dir`, `--env KEY=VALUE`, `--wait ready`, `--wait-text query`, `-a [pid|title]`); `dotnet cui session --script file.txt` relays a whole script against one build; `--app` for a published build, `--no-build`, `--frames N`. Any app opts in by running headless (`CUISHARP_HEADLESS=1` or `--headless`). ## Core API (hand-written, in `src/CuiSharp/Ui`) @@ -41,10 +41,11 @@ - `ui.BarChart(...)` — the same for bars; `ui.LineChart(id, Series[] series, ...)` for several series. - `ui.DonutChart(UiText id, float[] values, string[]? labels = null, ChartOpts o = default)`. - `ui.Canvas(UiText id, Size width, Size height, PaintFn paint)` — custom drawing: `paint(ui, box)` with `ui.DrawLine`, `DrawRect`, `DrawCircle`, `DrawText`, `DrawPath`. -- `ui.Id(int)`, `ui.Id(UiText)` -> `IDisposable` — a scope that prefixes every id inside it; `ui.Keyed(items, key)` enumerates with ids. +- `ui.Id(int)`, `ui.Id(UiText)` -> `IdScope` — a scope that prefixes every native id and sets the automation id inside it; `ui.Keyed(items, key)` enumerates with ids; `ui.Automation(UiText)` -> `AutomationScope` sets only the automation id without changing native identity. - `ui.Shortcut(Mods mods, Key key)` -> `bool`, `ui.WantsKeyboard` — keyboard input, unmodified when a text field has focus. - `ui.RequestRedraw()`, `ui.NeedsRedraw` — rarely needed directly: the host does this from `WantsFrames` and pending work. - `ui.RequestWakeup(float seconds)` — one more frame this many seconds from now: a timer, a toast timeout, a poll interval. +- `ui.MarkReady()` — marks the current frame ready for `WaitReady` / `dotnet cui --wait ready`. - `ui.LastId` -> `uint` — the id of the widget just drawn; what `TourStep.Target` and the other point-at-this APIs take. - `ui.Terminal(UiText id, Terminal terminal, TerminalOpts o = default)` -> `TerminalResult` — the `Terminal` class owns the scrollback (`Write`, `WriteLine`, `Clear`, `LineCount`). - `ui.LogView(UiText id, LogBuffer log, LogViewOpts o = default)` — `LogBuffer` owns the ring (`Append`, `AppendLine`, `Text`, `Clear`), the view adds level filters, search, follow and copy. @@ -54,7 +55,7 @@ - `ui.TreeTable(id, columns, TreeNode[], row, [ref TableSort, ref int], TreeTableOpts, label)` -> `TreeTableEvents` — a tree over a flat node array the table rewrites; `events.Load` names the nodes whose children it wants, and `CuiTree.Sort(nodes, root, compare)` relinks siblings. - `ui.State(id)` and `ui.State(id, onFree)` -> `Span` — per-id scratch that survives frames; the second form adds a callback CUI runs when it evicts that id (release a texture, a lease, a pooled buffer). - `ui.DiffRows(id, Span, first)` — the live diff view's rows, for a custom renderer. -- `Color.Oklch(l, c, hue, alpha)`, `Color.Mix(a, b, t)`, `color.WithAlpha(f)`, `ui.ColorOf(color)`, `ui.TokenColor(token)`, `Ui.AccentName(accent)`, `Ui.KeyName(key)`. +- `Color.Oklch(l, c, hue, alpha)`, `Color.Mix(a, b, t)`, `color.WithAlpha(f)`, `color.IsToken`, `ui.ColorOf(color)`, `ui.TokenColor(token)`, `Ui.AccentName(accent)`, `Ui.KeyName(key)`; `Size`: `IsFit`, `IsFill`, `IsFixed`, `IsPercent`, `TryGetPoints(out float)`, `TryGetPercent(out float)`. - `CuiMath.DiffLines(old, new)` / `DiffWords(old, new)` / `EvaluateCurve(keys, x)` / `EvaluateGradient(stops, t)` / `PathMatches(path, filter)`; `MarkdownText.ToggleTask(ref text, offset, result)`; `CuiFiles.ListDirectory(path)`; `CuiSurface` input: `MouseMove`, `MouseDown`, `MouseUp`, `Click`, `Scroll`, `KeyDown`, `KeyUp`, `Type`, `Focus`, `FileDrop`. - `ui.Theme` and `ui.Accent`: assign `Theme.Dark` or `Accent.Blue` from inside any frame and CUI animates the change; `ui.ToggleTheme()` is the dark-mode command. - `ui.Style` -> `ThemeStyle`, the design tokens: `var t = ui.Style;` then `t.RadiusControl`, `t.RadiusPanel`, `t.RadiusSurface`, `t.ControlSm`/`ControlMd`/`ControlLg`, `t.TextXs`/`TextSm`/`TextBody`/`TextLg`, `t.FontScale`, `t.Motion`, `t.GetHeading(level)`/`t.SetHeading(level, points)` for heading levels 1-4. The local is a pointer into CUI's own theme, so nothing is copied and nothing allocates, and an assignment applies from the next frame. A theme or accent switch keeps the radii, the motion multiplier and the font scale. diff --git a/src/CuiSharp.Analyzers/Diagnostics.cs b/src/CuiSharp.Analyzers/Diagnostics.cs index 0da95f3..a8cc3f8 100644 --- a/src/CuiSharp.Analyzers/Diagnostics.cs +++ b/src/CuiSharp.Analyzers/Diagnostics.cs @@ -110,6 +110,7 @@ internal KnownTypes(Compilation compilation) OpenScope = compilation.GetTypeByMetadataName("CuiSharp.OpenScope"); GridScope = compilation.GetTypeByMetadataName("CuiSharp.GridScope"); IdScope = compilation.GetTypeByMetadataName("CuiSharp.IdScope"); + AutomationScope = compilation.GetTypeByMetadataName("CuiSharp.AutomationScope"); UiText = compilation.GetTypeByMetadataName("CuiSharp.UiText"); KeyedScopeDefinition = compilation.GetTypeByMetadataName("CuiSharp.KeyedScope`1"); } @@ -120,12 +121,14 @@ internal KnownTypes(Compilation compilation) internal INamedTypeSymbol? OpenScope { get; } internal INamedTypeSymbol? GridScope { get; } internal INamedTypeSymbol? IdScope { get; } + internal INamedTypeSymbol? AutomationScope { get; } internal INamedTypeSymbol? UiText { get; } internal INamedTypeSymbol? KeyedScopeDefinition { get; } /// True when the type is one the caller has to dispose: a scope the frame stack owns. internal bool IsScope(ITypeSymbol? type) => type is not null && ( - SymbolEquals(type, LayoutScope) || SymbolEquals(type, OpenScope) || SymbolEquals(type, GridScope) || SymbolEquals(type, IdScope) || + SymbolEquals(type, LayoutScope) || SymbolEquals(type, OpenScope) || SymbolEquals(type, GridScope) || + SymbolEquals(type, IdScope) || SymbolEquals(type, AutomationScope) || (KeyedScopeDefinition is not null && type is INamedTypeSymbol { IsGenericType: true } named && SymbolEquals(named.ConstructedFrom, KeyedScopeDefinition))); diff --git a/src/CuiSharp.Analyzers/WidgetIdAnalyzer.cs b/src/CuiSharp.Analyzers/WidgetIdAnalyzer.cs index 8341fa2..b8baac7 100644 --- a/src/CuiSharp.Analyzers/WidgetIdAnalyzer.cs +++ b/src/CuiSharp.Analyzers/WidgetIdAnalyzer.cs @@ -71,7 +71,7 @@ private static void Check(SyntaxNodeAnalysisContext context, KnownTypes types) "Icon", "DrawText", "DrawIcon", "MeasureText", "NavSection", "Metric", "TimelineItem", "MenuLabel", "ChatDivider", "TreeTableName", // Targets an existing widget, uses the last widget's id, or allocates an independent handle. - "ScrollTo", "MakeId", "RectOf", "Tooltip", "Toast", "Id", + "ScrollTo", "MakeId", "RectOf", "Tooltip", "Toast", "Id", "Automation", "PopoverOpen", "PopoverClose", "PopoverToggle", "PopoverIsOpen", "CodeEditorGoto", "CodeEditorSelect", "CodeEditorFind", "HexViewGoto", "SignatureClear", "DockSave", "DockLoad", diff --git a/src/CuiSharp.Templates/CuiSharp.App/AGENTS.md b/src/CuiSharp.Templates/CuiSharp.App/AGENTS.md index 50b018a..fada11f 100644 --- a/src/CuiSharp.Templates/CuiSharp.App/AGENTS.md +++ b/src/CuiSharp.Templates/CuiSharp.App/AGENTS.md @@ -16,7 +16,7 @@ Four edits, and the compiler names what is left: 1. **`Draw(Ui ui)` is synchronous and allocates 0 B in steady state.** Never `await`, block (`.Result`, `.Wait()`, `Thread.Sleep`), use LINQ, allocate per-frame arrays/closures, or format strings before passing them (`$"..."` in a `UiText` argument formats into the frame arena). Iterate `IReadOnlyList` by index (`for`), not `foreach`. 2. **State lives in component fields.** Mutate fields directly; the next frame draws the change. The theme is the exception, because CUI owns it: `ui.Theme` / `ui.ToggleTheme()`. -3. **Scopes & widget IDs.** Dispose every layout/container scope with `using`. Guard conditional scopes (`OpenScope` from `Dialog`, `Menu`, `Table`, …) with `if (scope)`. Inside a loop, wrap repeating rows in `using (ui.Id(item.Id))`. +3. **Scopes & widget IDs.** Dispose every layout/container/id scope with `using`. Guard conditional scopes (`OpenScope` from `Dialog`, `Menu`, `Table`, …) with `if (scope)`. Inside a loop, wrap repeating rows in `using (ui.Id(item.Id))` (or `using (ui.Automation("..."))` when only a stable automation id is needed). 4. **Async work uses `Mutation` / `Mutation`.** Hold it in a `readonly` field, start with `Run()`, read `IsRunning` and `Error` in `Draw`, and let the `apply` callback change state on the UI thread before the next frame. 5. **Self-updating screens set `protected override bool WantsFrames => true`.** Otherwise the window sleeps between inputs. 6. **Name the container that bounds a region** (`header`, `page`, `footer`, `preferences`), so `dotnet cui tree` nests its controls under it and a query can reach it. Do not reuse a control's word: a `Tab "Settings"` outranks a `Column "settings"` in a query, so bare queries no longer identify the region reliably. Use distinct region names. diff --git a/src/CuiSharp.Templates/CuiSharp.App/CuiSharp.App/Program.cs b/src/CuiSharp.Templates/CuiSharp.App/CuiSharp.App/Program.cs index db06072..cc15cda 100644 --- a/src/CuiSharp.Templates/CuiSharp.App/CuiSharp.App/Program.cs +++ b/src/CuiSharp.Templates/CuiSharp.App/CuiSharp.App/Program.cs @@ -32,7 +32,7 @@ builder.Window.WindowCreated = window => Console.WriteLine(CuiDiagnostics.Report(window)); // `dotnet cui tree -p CuiSharp.App` builds and runs a fresh headless app for each invocation; -// `dotnet cui session -p CuiSharp.App < cmds.txt` keeps a multi-step flow in one app. +// `dotnet cui session -p CuiSharp.App --script cmds.txt` keeps a multi-step flow in one app. // `dotnet cui tree -a` instead drives the existing window, preserving its state between commands. // LiveAttach enables that listener; it does not open another window. builder.Window.LiveAttach = true; diff --git a/src/CuiSharp.Templates/CuiSharp.App/README.md b/src/CuiSharp.Templates/CuiSharp.App/README.md index dc3b156..d57727a 100644 --- a/src/CuiSharp.Templates/CuiSharp.App/README.md +++ b/src/CuiSharp.Templates/CuiSharp.App/README.md @@ -21,10 +21,12 @@ Release build of your own — `dotnet build` alone produces Debug. ```sh dotnet cui tree -p CuiSharp.App # the frame's controls, nested +dotnet cui tree --details -p CuiSharp.App # …with role, automation id, value and state dotnet cui click 'Tab "Markets"' -p CuiSharp.App # click one, print the frame that reacted dotnet cui png shot.png -p CuiSharp.App # the frame as an image dotnet cui layout -p CuiSharp.App # rectangles, and anything that overflowed dotnet cui session -p CuiSharp.App --script steps.txt # many commands, one process +dotnet cui doctor -p CuiSharp.App # check tool/package version, icon and AOT setup dotnet cui docs # the framework guide, offline ``` @@ -33,10 +35,11 @@ dotnet cui docs # the framework guide, offline `png` inside a session photographs the page the earlier lines reached. - Session lines are protocol commands: `click Tab "Markets"`, then `png shot.png`. Quotes are literal; a line that fails stops the rest of the session, so read the top of its output first. -- Disambiguate by kind (`Tab "Markets"`) or by container path when kinds also match: - `dotnet cui click 'theme > Segment "Dark"' -p CuiSharp.App`. Only the final path step names a kind. -- `-a` drives a window that is already open, which `LiveAttach` in `Program.cs` enables in Debug: - start the app (or pass `--live` in Release), then `dotnet cui click 'theme > Dark' -a`. +- Disambiguate by kind (`Tab "Markets"`), role (`--role button Save`), value (`--value Milk`), + id (`--id draft`), or container path (`dotnet cui click 'theme > Segment "Dark"' -p CuiSharp.App`). + Only the final path step names a kind. +- `-a` drives a window that is already open, which `LiveAttach` in `Program.cs` enables: + start the app, then `dotnet cui click 'theme > Dark' -a`. Live commands preserve its state and leave it open; `dotnet cui quit -a` closes it. A headless run has no window to attach to. - A published exe keeps neither channel unless it was published for it — a Release publish strips diff --git a/src/CuiSharp.Tests/AnalyzerTests.cs b/src/CuiSharp.Tests/AnalyzerTests.cs index e8d35e1..19dace9 100644 --- a/src/CuiSharp.Tests/AnalyzerTests.cs +++ b/src/CuiSharp.Tests/AnalyzerTests.cs @@ -102,6 +102,14 @@ public void Draw(Ui ui) } """); Assert.DoesNotContain(guarded, d => d.StartsWith("CUI002", StringComparison.Ordinal) || d.StartsWith("CUI003", StringComparison.Ordinal)); + + string[] droppedAutomation = await AnalyzeAsync(Prologue + """ + public class Page + { + public void Draw(Ui ui) { ui.Automation("save:1"); } + } + """); + Assert.Contains(droppedAutomation, d => d.StartsWith("CUI002", StringComparison.Ordinal)); } // ---- CUI001 ------------------------------------------------------------- diff --git a/src/CuiSharp.Tests/DoctorTests.cs b/src/CuiSharp.Tests/DoctorTests.cs index f8cfac4..6e166db 100644 --- a/src/CuiSharp.Tests/DoctorTests.cs +++ b/src/CuiSharp.Tests/DoctorTests.cs @@ -34,6 +34,10 @@ public void AFileBasedAppsWildcardVersionIsReportedAsFloating() Doctor.Check warning = Assert.Single(checks, check => check.Level == Doctor.Level.Warning); Assert.Contains("floats", warning.Message, StringComparison.Ordinal); Assert.Contains("pin", warning.Fix, StringComparison.Ordinal); + + var doctorReport = new Doctor.Report("0.4.2", "0.4.2", "app.cs", checks); + Assert.Contains("\"ok\":true", Doctor.RenderJson(doctorReport, strict: false), StringComparison.Ordinal); + Assert.Contains("\"ok\":false", Doctor.RenderJson(doctorReport, strict: true), StringComparison.Ordinal); } [Fact] diff --git a/src/CuiSharp.Tests/HeadlessLoopTests.cs b/src/CuiSharp.Tests/HeadlessLoopTests.cs index 4bf51f4..ac92058 100644 --- a/src/CuiSharp.Tests/HeadlessLoopTests.cs +++ b/src/CuiSharp.Tests/HeadlessLoopTests.cs @@ -9,6 +9,7 @@ namespace CuiSharp.Tests; /// The protocol a tool drives an app with. These tests speak it the way a client does — write a /// line, read a framed answer — so the wire format is what is under test, not an internal call. /// +[Collection("ProcessWindowState")] public class HeadlessLoopTests { private sealed class Counter : Component diff --git a/src/CuiSharp.Tests/HotReloadWakeTests.cs b/src/CuiSharp.Tests/HotReloadWakeTests.cs index 91c3a4d..f904944 100644 --- a/src/CuiSharp.Tests/HotReloadWakeTests.cs +++ b/src/CuiSharp.Tests/HotReloadWakeTests.cs @@ -10,6 +10,7 @@ namespace CuiSharp.Tests; /// the notification is delivered through , the method /// the runtime itself calls. /// +[Collection("ProcessWindowState")] public class HotReloadWakeTests { private static bool CanOpenWindow => OperatingSystem.IsWindows(); diff --git a/src/CuiSharp.Tests/LiveControlTests.cs b/src/CuiSharp.Tests/LiveControlTests.cs index af3a7d8..767eb06 100644 --- a/src/CuiSharp.Tests/LiveControlTests.cs +++ b/src/CuiSharp.Tests/LiveControlTests.cs @@ -18,6 +18,7 @@ namespace CuiSharp.Tests; /// exercise the frame-callback path with no native app handle on every platform, without a display. /// /// +[Collection("ProcessWindowState")] public class LiveControlTests { private static bool CanRun => OperatingSystem.IsWindows(); @@ -72,14 +73,23 @@ private LiveWindow(bool live, DrawFn draw, LiveSession.Boundary? boundary = null _thread.Start(); if (!live) return; - try - { - Session = LiveSession.WaitForActive(generationBefore, TimeSpan.FromSeconds(30)); - } - catch (Exception waitError) + var clock = System.Diagnostics.Stopwatch.StartNew(); + while (clock.Elapsed <= TimeSpan.FromSeconds(30)) { - throw _error ?? waitError; + if (LiveSession.Generation != generationBefore && LiveSession.Active is { } session) + { + Session = session; + return; + } + + if (_closed.Task.IsCompleted) + throw _error ?? new InvalidOperationException("The live window closed before it published a session."); + + Thread.Sleep(5); } + + throw _error ?? new InvalidOperationException( + "No live session started: the app never drew a first frame with live attach within the timeout."); } internal string DiscoveryDir { get; } diff --git a/src/CuiSharp.Tests/SemanticTreeTests.cs b/src/CuiSharp.Tests/SemanticTreeTests.cs index dc880a2..ba8c34a 100644 --- a/src/CuiSharp.Tests/SemanticTreeTests.cs +++ b/src/CuiSharp.Tests/SemanticTreeTests.cs @@ -528,6 +528,64 @@ public void AnAutomationScopeNamesTheWidgetAndSurvivesATranslation() Assert.Equal(1, clicks); } + [Fact] + public void AnIdScopePrefersTheActionableControlAndRefusesTwoEqualOnes() + { + using var row = TestApp.Start(ui => + { + ui.Label("save:1"); + using (ui.Id("save:1")) + using (ui.Card(new() { Id = "card:1" })) + { + ui.Label("Row label"); + ui.Button("Delete"); + } + }, 300, 180); + + Assert.Equal("Button", row.FindById("save:1").Kind); + Assert.Equal("Delete", row.FindUnique("id:save:1").Text); + Assert.Equal("Delete", row.FindUnique("role:button card:1 > Delete").Text); + Assert.Equal("Delete", row.FindUnique("save:1 > Button \"Delete\"").Text); + + using var duplicate = TestApp.Start(ui => + { + using (ui.Id("row:2")) + { + ui.Button("Edit"); + ui.Button("Delete"); + } + }, 300, 180); + + Assert.Throws(() => duplicate.FindUnique("id:row:2")); + } + + [Fact] + public void ReadOnlyInputsAndHandWrittenTextControlsRecordTheirValuesAndStates() + { + string ro = "line 1\nline 2"; + string tags = "ui,aot"; + string otp = "42"; + using var app = TestApp.Start(ui => + { + ui.Input("ro", ref ro, new InputOpts { ReadOnly = true }); + ui.TagInput("tags", ref tags); + ui.OtpInput("otp", ref otp, 6); + }, 400, 260); + + SemanticNode readOnly = app.Tree.Find("Input \"ro\""); + Assert.True((readOnly.State & SemanticState.ReadOnly) != 0); + Assert.Contains("state=enabled, read-only", readOnly.Describe(), StringComparison.Ordinal); + Assert.Contains("value=\"line 1\\nline 2\"", readOnly.Describe(), StringComparison.Ordinal); + + SemanticNode tagNode = app.Tree.Find("TagInput \"tags\""); + Assert.Equal(SemanticRole.TextBox, tagNode.Role); + Assert.Equal("ui,aot", tagNode.Value); + + SemanticNode otpNode = app.Tree.Find("OtpInput \"otp\""); + Assert.Equal(SemanticRole.TextBox, otpNode.Role); + Assert.Equal("42", otpNode.Value); + } + [Fact] public void AValueQueryFindsTheFieldEvenWhenItsLabelIsNotTheValue() { diff --git a/src/CuiSharp.Tests/TestingHarnessTests.cs b/src/CuiSharp.Tests/TestingHarnessTests.cs index 9b87311..bab5fce 100644 --- a/src/CuiSharp.Tests/TestingHarnessTests.cs +++ b/src/CuiSharp.Tests/TestingHarnessTests.cs @@ -263,10 +263,18 @@ public void RecordingCostsNothingWhenItIsOff() Assert.Equal(2, surface.Widgets.Count); Assert.Equal(["one", "two"], surface.Widgets.Select(w => w.Text)); - // Steady state with recording on still allocates nothing per frame beyond the records. + // Steady state with recording off allocates nothing per frame; use the median of five + // batches so a one-off tiered-JIT promotion on the test thread does not masquerade as + // a per-frame allocation. surface.RecordWidgets = false; - long before = GC.GetAllocatedBytesForCurrentThread(); - for (int i = 0; i < 10; i++) surface.Draw(draw, pixels); - Assert.Equal(0, GC.GetAllocatedBytesForCurrentThread() - before); + var batches = new long[5]; + for (int b = 0; b < batches.Length; b++) + { + long before = GC.GetAllocatedBytesForCurrentThread(); + for (int i = 0; i < 10; i++) surface.Draw(draw, pixels); + batches[b] = GC.GetAllocatedBytesForCurrentThread() - before; + } + + Assert.Equal(0, batches.Median()); } } diff --git a/src/CuiSharp.Tests/ToolArgumentTests.cs b/src/CuiSharp.Tests/ToolArgumentTests.cs index 0b465e7..18d7d3f 100644 --- a/src/CuiSharp.Tests/ToolArgumentTests.cs +++ b/src/CuiSharp.Tests/ToolArgumentTests.cs @@ -86,6 +86,12 @@ public void AQueryWithNoTextOrFilterIsAUsageError() Assert.NotEmpty(empty.Errors); Assert.Contains("--role", string.Join(" ", empty.Errors), StringComparison.Ordinal); + Grammar.Parsed blank = Grammar.Parse(["find", ""]); + Assert.NotEmpty(blank.Errors); + + Grammar.Parsed blankId = Grammar.Parse(["click", "--id", " "]); + Assert.NotEmpty(blankId.Errors); + Grammar.Parsed both = Grammar.Parse(["find", "Save", "--value", "Milk"]); Assert.NotEmpty(both.Errors); Assert.Contains("--value", string.Join(" ", both.Errors), StringComparison.Ordinal); @@ -360,6 +366,7 @@ public void EnvironmentPairsAndAStateRootReachTheOptions() [InlineData("missing-equals")] [InlineData("=value")] [InlineData("BAD-KEY=value")] + [InlineData("1BAD=value")] public void AMalformedEnvironmentPairIsAUsageError(string value) { Assert.NotEmpty(Grammar.Parse(["tree", "--env", value]).Errors); diff --git a/src/CuiSharp.Tests/WidgetQueryTests.cs b/src/CuiSharp.Tests/WidgetQueryTests.cs index b5a10c7..aa53d99 100644 --- a/src/CuiSharp.Tests/WidgetQueryTests.cs +++ b/src/CuiSharp.Tests/WidgetQueryTests.cs @@ -81,5 +81,9 @@ public void AnUnknownRoleStaysALabelInsteadOfBecomingAMatchNothing() Assert.Null(query.Role); Assert.Equal("role:not-a-role", query.Text); + + WidgetQuery none = WidgetQuery.Parse("role:none"); + Assert.Null(none.Role); + Assert.Equal("role:none", none.Text); } } diff --git a/src/CuiSharp.Tests/WindowControlTests.cs b/src/CuiSharp.Tests/WindowControlTests.cs index 30b3ed1..fb4164f 100644 --- a/src/CuiSharp.Tests/WindowControlTests.cs +++ b/src/CuiSharp.Tests/WindowControlTests.cs @@ -6,6 +6,7 @@ namespace CuiSharp.Tests; /// The window controls CUI does not own: maximize, restore and close, driven through the /// plain Win32 calls beside the ones CUI itself uses. /// +[Collection("ProcessWindowState")] public partial class WindowControlTests { [StructLayout(LayoutKind.Sequential)] diff --git a/src/CuiSharp.Tools/Cli.cs b/src/CuiSharp.Tools/Cli.cs index 7f6d8d1..12452b3 100644 --- a/src/CuiSharp.Tools/Cli.cs +++ b/src/CuiSharp.Tools/Cli.cs @@ -82,7 +82,7 @@ internal static int Run(string[] args, TextWriter output, TextWriter error, Text if (options.Command == "session" && options.Script is { Length: > 0 } script) input = new StringReader(ReadScript(script)); - if (options.Viewports.Length > 1) + if (options.Viewports.Length > 0) return RunViewports(options, output, error); using HeadlessClient client = options.Attach @@ -160,6 +160,7 @@ private static HeadlessClient StartHeadless(Options options, TextWriter error) "no .csproj and no file-based .cs app there."); var environment = new Dictionary(StringComparer.OrdinalIgnoreCase); + foreach ((string key, string value) in options.Environment) environment[key] = value; if (options.State is { Length: > 0 } state) { string full; @@ -176,7 +177,6 @@ private static HeadlessClient StartHeadless(Options options, TextWriter error) environment["CUISHARP_STATE_HOME"] = full; } - foreach ((string key, string value) in options.Environment) environment[key] = value; if (options.Viewport is { } viewport) environment["CUISHARP_VIEWPORT"] = viewport.ToString(); return HeadlessClient.Start( @@ -207,12 +207,19 @@ private static int RunViewports(Options options, TextWriter output, TextWriter e { if (options.Command != "png") throw new ToolException( - "--sizes with more than one viewport is for `png`; run another command once per --size."); + "--sizes is for `png`; run another command once per --size."); + bool built = false; foreach (Viewport viewport in options.Viewports) { - Options single = options with { Viewport = viewport, Viewports = [viewport] }; + Options single = options with + { + Viewport = viewport, + Viewports = [], + NoBuild = options.NoBuild || built, + }; using HeadlessClient client = StartHeadless(single, error); + built = true; if (!CheckViewport(client, single, error)) return 1; if (!PassPreconditions(client, single, error)) return 1; diff --git a/src/CuiSharp.Tools/DocLibrary.cs b/src/CuiSharp.Tools/DocLibrary.cs index 319d533..68a9cc2 100644 --- a/src/CuiSharp.Tools/DocLibrary.cs +++ b/src/CuiSharp.Tools/DocLibrary.cs @@ -181,7 +181,7 @@ internal CatalogResult List() lines.Add(" dotnet cui docs search ranked sections, with the read to run next"); lines.Add(" dotnet cui api exact declarations: `api ChartOpts`"); lines.Add(" dotnet cui icons [filter] the glyph index"); - lines.Add(" dotnet cui tree | find | click | png inspect and drive a real app"); + lines.Add(" dotnet cui tree | find | click | png | doctor inspect, drive or check a real app"); return CatalogResult.Exact("docs", lines); } @@ -868,7 +868,7 @@ private static readonly (string Name, string Summary, string[] Sections, string "Then `dotnet cui layout` prints the rectangles, the observed union bounds and overflow."), ("live-debugging", - "attach to a window a person is watching, on Windows, and what that cannot promise", + "attach to a running window a person is watching, and what that cannot promise", ["SKILL#driving-a-running-app"], "The opt-in, the discovery and the cancellation rules are the same page's bullets — read them before scripting it."), diff --git a/src/CuiSharp.Tools/Doctor.cs b/src/CuiSharp.Tools/Doctor.cs index 570eb81..7e0c04b 100644 --- a/src/CuiSharp.Tools/Doctor.cs +++ b/src/CuiSharp.Tools/Doctor.cs @@ -44,7 +44,7 @@ internal sealed record Report( internal static int Run(Cli.Options options, TextWriter output) { Report report = Examine(options); - output.WriteLine(options.Json ? RenderJson(report) : Render(report)); + output.WriteLine(options.Json ? RenderJson(report, options.Strict) : Render(report, options.Strict)); return report.Failed || (options.Strict && report.Warned) ? 1 : 0; } @@ -414,7 +414,7 @@ internal static bool SameVersion(string left, string right) static string Normalize(string value) { string version = value.Trim(); - if (version.StartsWith('v')) version = version[1..]; + if (version.StartsWith('v') || version.StartsWith('V')) version = version[1..]; int metadata = version.IndexOf('+'); if (metadata >= 0) version = version[..metadata]; @@ -469,7 +469,7 @@ internal static string DisplayPath(string path) } } - internal static string Render(Report report) + internal static string Render(Report report, bool strict = false) { var text = new StringBuilder(); text.Append("CuiSharp doctor tool ") @@ -505,7 +505,9 @@ internal static string Render(Report report) text.Append(errors > 0 ? $"{errors} error{(errors == 1 ? "" : "s")}, {warnings} warning{(warnings == 1 ? "" : "s")}." : warnings > 0 - ? $"{warnings} warning{(warnings == 1 ? "" : "s")}; --strict makes doctor fail on them." + ? strict + ? $"{warnings} warning{(warnings == 1 ? "" : "s")} (--strict)." + : $"{warnings} warning{(warnings == 1 ? "" : "s")}; --strict makes doctor fail on them." : "no problems found."); return text.ToString().TrimEnd(); @@ -513,7 +515,7 @@ static string Indent(string value, int width) => value.ReplaceLineEndings("\n").Replace("\n", "\n" + new string(' ', width), StringComparison.Ordinal); } - internal static string RenderJson(Report report) + internal static string RenderJson(Report report, bool strict = false) { var buffer = new ArrayBufferWriter(); using (var writer = new Utf8JsonWriter(buffer)) @@ -523,7 +525,7 @@ internal static string RenderJson(Report report) writer.WriteString("catalog", report.Catalog); if (report.Project is null) writer.WriteNull("project"); else writer.WriteString("project", report.Project); - writer.WriteBoolean("ok", !report.Failed); + writer.WriteBoolean("ok", !report.Failed && !(strict && report.Warned)); writer.WriteStartArray("checks"); foreach (Check check in report.Checks) { diff --git a/src/CuiSharp.Tools/Grammar.cs b/src/CuiSharp.Tools/Grammar.cs index b0138b2..47220c4 100644 --- a/src/CuiSharp.Tools/Grammar.cs +++ b/src/CuiSharp.Tools/Grammar.cs @@ -732,12 +732,16 @@ internal static bool TryCheckCombinations(ParseResult result, out string message if (result.CommandResult.Command.Name is "find" or "click") { bool text = result.CommandResult.Command.Arguments.Count > 0 - && result.GetResult(result.CommandResult.Command.Arguments[0]) is not null; + && result.GetResult(result.CommandResult.Command.Arguments[0]) is { } textResult + && !string.IsNullOrWhiteSpace(textResult.GetValueOrDefault()); string? role = result.GetValue(S.Role); string? value = result.GetValue(S.Value); string? id = result.GetValue(S.Id); - if (!text && role is null && value is null && id is null) + if (!text + && string.IsNullOrWhiteSpace(role) + && string.IsNullOrWhiteSpace(value) + && string.IsNullOrWhiteSpace(id)) { message = $"{result.CommandResult.Command.Name} needs a label, --role, --value or --id"; return false; @@ -794,7 +798,7 @@ internal static Cli.Options Resolve(ParseResult result, string[] appArguments) } OptionResult? attach = result.GetResult(S.Attach); - Viewport[] viewports = ReadViewports(result); + (Viewport? singleViewport, Viewport[] viewports) = ReadViewports(result); return new Cli.Options { Command = command, @@ -809,7 +813,7 @@ internal static Cli.Options Resolve(ParseResult result, string[] appArguments) Host = result.GetValue(S.App), Framework = result.GetValue(S.Framework), AppArgs = appArguments, - Viewport = viewports.Length > 0 ? viewports[0] : null, + Viewport = singleViewport, Viewports = viewports, Environment = ReadEnvironment(result.GetValue(S.Env)), State = result.GetValue(S.State), @@ -823,27 +827,27 @@ internal static Cli.Options Resolve(ParseResult result, string[] appArguments) } /// - /// The viewport list a command was given: one --size, or the comma-separated + /// The viewport a command was given: one --size, or the comma-separated /// --sizes its help advertises. Parsing has already rejected malformed values, so an /// unreadable value here is simply no viewport. /// - private static Viewport[] ReadViewports(ParseResult result) + private static (Viewport? Single, Viewport[] Matrix) ReadViewports(ParseResult result) { OptionResult? size = result.GetResult(S.Size); if (size?.GetValueOrDefault() is { Length: > 0 } one && Viewport.TryParse(one, out Viewport viewport)) { - return [viewport]; + return (viewport, []); } OptionResult? sizes = result.GetResult(S.Sizes); if (sizes?.GetValueOrDefault() is { Length: > 0 } many && Viewport.TryParseList(many, out Viewport[] views)) { - return views; + return (views[0], views); } - return []; + return (null, []); } private static IReadOnlyDictionary ReadEnvironment(string[]? pairs) diff --git a/src/CuiSharp.Tools/Viewport.cs b/src/CuiSharp.Tools/Viewport.cs index d8f921f..a41e358 100644 --- a/src/CuiSharp.Tools/Viewport.cs +++ b/src/CuiSharp.Tools/Viewport.cs @@ -60,6 +60,7 @@ internal static bool TryParse(string? text, out string key, out string value) key = text[..equals]; value = text[(equals + 1)..]; + if (!(char.IsAsciiLetter(key[0]) || key[0] == '_')) return false; if (key.Any(static ch => !(char.IsAsciiLetterOrDigit(ch) || ch == '_'))) return false; if (key.Contains('\0') || value.Contains('\0')) return false; return true; diff --git a/src/CuiSharp/Hosting/HeadlessLoop.cs b/src/CuiSharp/Hosting/HeadlessLoop.cs index 976f2d6..29d4878 100644 --- a/src/CuiSharp/Hosting/HeadlessLoop.cs +++ b/src/CuiSharp/Hosting/HeadlessLoop.cs @@ -36,6 +36,9 @@ public static class HeadlessLoop /// The environment variable a headless app reads for its viewport, as WxH. public const string ViewportEnvironmentVariable = "CUISHARP_VIEWPORT"; + /// The largest viewport dimension a headless run accepts. + internal const int MaxViewportDimension = 16_384; + /// /// Applies to the window description. The tool uses /// this to screenshot the same app at several sizes without editing the app; an app that does @@ -53,10 +56,12 @@ internal static CuiAppOptions WithViewport(CuiAppOptions window) || !int.TryParse(parts[0], NumberStyles.None, CultureInfo.InvariantCulture, out int width) || !int.TryParse(parts[1], NumberStyles.None, CultureInfo.InvariantCulture, out int height) || width <= 0 - || height <= 0) + || height <= 0 + || width > MaxViewportDimension + || height > MaxViewportDimension) { throw new InvalidOperationException( - $"{ViewportEnvironmentVariable} must be a positive WxH size, not \"{text}\"."); + $"{ViewportEnvironmentVariable} must be a positive WxH size (at most {MaxViewportDimension}x{MaxViewportDimension}), not \"{text}\"."); } return window with { Width = width, Height = height }; @@ -106,6 +111,7 @@ public static int Run(DrawFn draw, CuiAppOptions window, TextReader? input = nul { ArgumentNullException.ThrowIfNull(draw); ArgumentNullException.ThrowIfNull(window); + window = WithViewport(window); if (input is null && output is null) ClaimStandardOutput(); using HeadlessApp app = HeadlessApp.Start( draw, diff --git a/src/CuiSharp/Hosting/LiveResize.cs b/src/CuiSharp/Hosting/LiveResize.cs index 5b5037e..54695c9 100644 --- a/src/CuiSharp/Hosting/LiveResize.cs +++ b/src/CuiSharp/Hosting/LiveResize.cs @@ -1,3 +1,4 @@ +using System.Collections.Concurrent; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using CuiSharp.Interop; @@ -47,7 +48,7 @@ internal enum ResizeStep /// internal static unsafe class LiveResize { - private static readonly Dictionary Installed = []; + private static readonly ConcurrentDictionary Installed = []; private static nint _proc; private static nint _swapInterval; private static int _interval = -1; @@ -81,7 +82,7 @@ internal static void Install(nint hwnd, bool noVsync) /// Puts the window procedure back, and the display interval with it. internal static void Uninstall(nint hwnd) { - if (hwnd == 0 || !Installed.Remove(hwnd, out Hook? hook)) return; + if (hwnd == 0 || !Installed.TryRemove(hwnd, out Hook? hook)) return; Vsync(wants: hook.WantsVsync); if (Win32.IsWindow(hwnd) != 0) Win32.UnhookWindowProc(hwnd, hook.Previous); @@ -122,7 +123,7 @@ private static nint Proc(nint hwnd, uint message, nint wparam, nint lparam) case Win32.WmNcDestroy: // The window is going away: stop holding its procedure, then let CUI clean up. if (Features.Live) LiveSession.CurrentThread?.OnWindowDestroying(hwnd); - Installed.Remove(hwnd); + Installed.TryRemove(hwnd, out _); break; } diff --git a/src/CuiSharp/Hosting/LiveSession.cs b/src/CuiSharp/Hosting/LiveSession.cs index 6f3ed86..fbcc37b 100644 --- a/src/CuiSharp/Hosting/LiveSession.cs +++ b/src/CuiSharp/Hosting/LiveSession.cs @@ -1043,7 +1043,7 @@ internal async Task ExecuteCommandAsync(string command, string argument, private static SemanticNode FindNode(LiveSnapshot snapshot, string query) { SemanticNode tree = snapshot.Tree; - if (tree.TryFind(query, out SemanticNode node)) return node; + if (tree.TryFindUnique(WidgetQuery.Parse(query), out SemanticNode node)) return node; throw new InvalidOperationException($"No widget matching \"{query}\". The frame drew:\n{tree.Print()}"); } @@ -1149,22 +1149,25 @@ private void DeleteDiscoveryFile() private unsafe bool CreateMessageWindow() { - _instance = Win32.GetModuleHandle(null); - if (!_classRegistered) + lock (StaticGate) { - _wndProc = (nint)(delegate* unmanaged[Stdcall])&Proc; - fixed (char* name = ClassName) + _instance = Win32.GetModuleHandle(null); + if (!_classRegistered) { - var windowClass = new Win32.WndClass + _wndProc = (nint)(delegate* unmanaged[Stdcall])&Proc; + fixed (char* name = ClassName) { - WndProc = _wndProc, - Instance = _instance, - ClassName = (nint)name, - }; - if (Win32.RegisterClass(in windowClass) == 0) return false; - } + var windowClass = new Win32.WndClass + { + WndProc = _wndProc, + Instance = _instance, + ClassName = (nint)name, + }; + if (Win32.RegisterClass(in windowClass) == 0) return false; + } - _classRegistered = true; + _classRegistered = true; + } } nint hwnd = Win32.CreateWindowEx( @@ -1215,10 +1218,13 @@ public void Dispose() _messageHwnd = 0; } - if (_classRegistered) + lock (StaticGate) { - Win32.UnregisterClass(ClassName, _instance); - _classRegistered = false; + if (_classRegistered) + { + Win32.UnregisterClass(ClassName, _instance); + _classRegistered = false; + } } if (_reserved) diff --git a/src/CuiSharp/Interop/Win32.cs b/src/CuiSharp/Interop/Win32.cs index 52808d9..bf79524 100644 --- a/src/CuiSharp/Interop/Win32.cs +++ b/src/CuiSharp/Interop/Win32.cs @@ -119,15 +119,11 @@ internal struct Rect internal readonly int Height => Bottom - Top; } - // Set by the enumeration callback below; only ever read and written on the - // thread that owns the window, while that enumeration is running. - private static nint _found; - [UnmanagedCallersOnly(CallConvs = [typeof(System.Runtime.CompilerServices.CallConvStdcall)])] private static int OnThreadWindow(nint hwnd, nint lparam) { if (!IsCuiWindow(hwnd)) return 1; - _found = hwnd; + *(nint*)lparam = hwnd; return 0; } @@ -141,18 +137,10 @@ internal static nint FindCuiWindow() nint active = GetActiveWindow(); if (IsCuiWindow(active)) return active; - nint previous = _found; - _found = 0; - try - { - EnumThreadWindows(GetCurrentThreadId(), - (nint)(delegate* unmanaged[Stdcall])&OnThreadWindow, 0); - return _found; - } - finally - { - _found = previous; - } + nint found = 0; + EnumThreadWindows(GetCurrentThreadId(), + (nint)(delegate* unmanaged[Stdcall])&OnThreadWindow, (nint)(&found)); + return found; } /// The cui_app* a window belongs to, or 0 when it is not a CUI window. diff --git a/src/CuiSharp/Semantics/SemanticNode.cs b/src/CuiSharp/Semantics/SemanticNode.cs index e1807b2..d9bbf10 100644 --- a/src/CuiSharp/Semantics/SemanticNode.cs +++ b/src/CuiSharp/Semantics/SemanticNode.cs @@ -154,42 +154,17 @@ public IEnumerable Descendants() internal bool TryFind(WidgetQuery query, out SemanticNode node) { - // `id:draft` is the exact-id form: no ranking, no partial match, no language. An - // explicit automation id is preferred, and a widget whose text is its id still answers. - if (query.Path.Length == 0 - && query.Kind is null - && query.Role is null - && query.Value is null - && query.Text.StartsWith("id:", StringComparison.Ordinal)) - { - string id = query.Text[3..]; - foreach (SemanticNode candidate in SelfAndDescendants()) - { - if (!string.Equals(candidate.AutomationId, id, StringComparison.Ordinal) - && !string.Equals(candidate.Text, id, StringComparison.Ordinal)) - { - continue; - } - - node = candidate; - return true; - } - - node = null!; - return false; - } - if (query.Path.Length > 0) { // Walk the named containers, outermost first, then search what the last one holds. SemanticNode scope = this; foreach (string step in query.Path) { - if (!scope.TryFind(WidgetQuery.Of(kind: null, step), out SemanticNode container)) goto NotFound; + if (!scope.TryFindStep(step, out SemanticNode container)) goto NotFound; scope = container; } - if (scope.TryFind(WidgetQuery.Of(query.Kind, query.Text), out node)) return true; + if (scope.TryFind(WidgetQuery.Of(query.Kind, query.Text, role: query.Role, value: query.Value), out node)) return true; goto NotFound; } @@ -216,6 +191,30 @@ internal bool TryFind(WidgetQuery query, out SemanticNode node) return false; } + private bool TryFindStep(string step, out SemanticNode container) + { + WidgetQuery query = WidgetQuery.Of(kind: null, step); + WidgetQuery byId = step.StartsWith("id:", StringComparison.Ordinal) + ? query + : WidgetQuery.Of(kind: null, "id:" + step); + + SemanticNode? best = null; + int bestScore = int.MaxValue; + foreach (SemanticNode candidate in SelfAndDescendants()) + { + if (!candidate.IsContainer) continue; + int score = Math.Min(candidate.Score(query), candidate.Score(byId)); + if (score < bestScore) + { + best = candidate; + bestScore = score; + } + } + + container = best!; + return best is not null; + } + /// Finds a node below this one, or explains what is there instead. public SemanticNode Find(string query) { @@ -233,23 +232,13 @@ public SemanticNode Find(string query) /// internal bool TryFindUnique(WidgetQuery query, out SemanticNode node) { - // An exact id is already a deliberate choice: no ranking to settle. - if (query.Path.Length == 0 - && query.Kind is null - && query.Role is null - && query.Value is null - && query.Text.StartsWith("id:", StringComparison.Ordinal)) - { - return TryFind(query, out node); - } - // A path narrows the scope, then the leaf uses the same strict search as a plain query. if (query.Path.Length > 0) { SemanticNode scope = this; foreach (string step in query.Path) { - if (!scope.TryFind(WidgetQuery.Of(kind: null, step), out SemanticNode container)) + if (!scope.TryFindStep(step, out SemanticNode container)) { node = null!; return false; @@ -258,7 +247,7 @@ internal bool TryFindUnique(WidgetQuery query, out SemanticNode node) scope = container; } - return scope.TryFindUnique(WidgetQuery.Of(query.Kind, query.Text), out node); + return scope.TryFindUnique(WidgetQuery.Of(query.Kind, query.Text, role: query.Role, value: query.Value), out node); } SemanticNode? best = null; @@ -321,6 +310,22 @@ private int Score(WidgetQuery query) if (query.Kind is { } kind && !Kind.Equals(kind, StringComparison.OrdinalIgnoreCase)) return int.MaxValue; if (query.Role is { } role && Role != role) return int.MaxValue; + // `id:draft` is the exact-id form: no partial match, no language. An explicit automation + // id beats a fallback text match, and an actionable control beats its container or a + // static label inside the same id scope. + if (query.Path.Length == 0 + && query.Role is null + && query.Value is null + && query.Text.StartsWith("id:", StringComparison.Ordinal)) + { + string id = query.Text[3..]; + if (id.Length == 0) return int.MaxValue; + int rank = IsStatic(Kind) ? 2 : IsContainer ? 1 : 0; + if (string.Equals(AutomationId, id, StringComparison.Ordinal)) return rank; + if (string.Equals(Text, id, StringComparison.Ordinal)) return 3 + rank; + return int.MaxValue; + } + int valueTier = 0; if (query.Value is { } value) { @@ -353,8 +358,10 @@ private int Score(WidgetQuery query) /// both answer the query, which is what keeps click Save on the button. /// internal static bool IsStatic(string kind) => kind is - "Heading" or "Label" or "Text" or "Muted" or "Badge" or "Caption" or "Code" or "Kbd" or - "Divider" or "Spacer" or "Icon" or "ProgressBar" or "Spinner"; + "Heading" or "Label" or "Secondary" or "Text" or "Muted" or "Badge" or "Caption" or "Code" or + "Kbd" or "Divider" or "Separator" or "Spacer" or "Gap" or "Icon" or "Progress" or "ProgressBar" or + "ProgressRing" or "Meter" or "Gauge" or "RadialGauge" or "Skeleton" or "Spinner" or "EmptyState" or + "Metric" or "Readout" or "DotDisplay" or "StatusBarText"; internal IEnumerable SelfAndDescendants() { @@ -395,11 +402,17 @@ public string Describe() var text = new StringBuilder(Label); text.Append(" role=").Append(SemanticRoles.Name(Role)); if (AutomationId is { Length: > 0 } id) text.Append(" id=").Append(id); - if (Value is not null) text.Append(" value=\"").Append(Value.Replace("\"", "\\\"", StringComparison.Ordinal)).Append('"'); + if (Value is not null) text.Append(" value=\"").Append(Escape(Value)).Append('"'); if (State != SemanticState.None) text.Append(" state=").Append(SemanticStates.Format(State)); return text.ToString(); } + private static string Escape(string value) => value + .Replace("\\", "\\\\", StringComparison.Ordinal) + .Replace("\"", "\\\"", StringComparison.Ordinal) + .Replace("\r", "\\r", StringComparison.Ordinal) + .Replace("\n", "\\n", StringComparison.Ordinal); + /// /// Projects this frame tree onto the shape a platform accessibility layer consumes. The /// platform adapter (UIA, AT-SPI, NSAccessibility) is still ahead; this object is the stable @@ -415,19 +428,8 @@ public SemanticAccessibilityNode ToAccessibility() => /// Finds a node by the explicit id the app gave it. The text of a widget that takes an id is /// still the fallback, so existing FindById("draft") calls keep working. /// - internal SemanticNode? FindById(string id) - { - foreach (SemanticNode candidate in SelfAndDescendants()) - { - if (string.Equals(candidate.AutomationId, id, StringComparison.Ordinal) - || string.Equals(candidate.Text, id, StringComparison.Ordinal)) - { - return candidate; - } - } - - return null; - } + internal SemanticNode? FindById(string id) => + TryFind(WidgetQuery.Of(kind: null, "id:" + id), out SemanticNode node) ? node : null; /// Finds a node by the id CUI gave it, below this one. internal SemanticNode? FindById(uint id) diff --git a/src/CuiSharp/Semantics/SemanticRole.cs b/src/CuiSharp/Semantics/SemanticRole.cs index 2baf01c..790bf17 100644 --- a/src/CuiSharp/Semantics/SemanticRole.cs +++ b/src/CuiSharp/Semantics/SemanticRole.cs @@ -86,6 +86,7 @@ public static bool TryParse(string? text, out SemanticRole role) string wanted = Normalize(text); foreach (SemanticRole candidate in Enum.GetValues()) { + if (candidate == SemanticRole.None) continue; if (Normalize(candidate.ToString()).Equals(wanted, StringComparison.OrdinalIgnoreCase)) { role = candidate; @@ -100,32 +101,34 @@ public static bool TryParse(string? text, out SemanticRole role) public static SemanticRole Of(string kind) => kind switch { "Frame" => SemanticRole.Frame, - "Card" or "Box" or "Row" or "Column" or "Scroll" or "Split" or "DockPanel" or - "Inspector" or "Accordion" or "Panel" or "Header" or "Footer" or "Page" => SemanticRole.Container, + "Card" or "Box" or "Row" or "Column" or "Scroll" or "Split" or "Dockspace" or "DockPanel" or + "Inspector" or "InspectorGroup" or "Accordion" or "ExpandableCard" or "Reasoning" or + "Toolbar" or "StatusBar" or "DialogFooter" or "Panel" or "Header" or "Footer" or "Page" => SemanticRole.Container, "Button" or "IconButton" or "SplitButton" or "ConfirmButton" or "StatusButton" or - "HoldButton" or "CopyButton" or "ToolbarButton" or "SpeedDial" or "ControlTile" => SemanticRole.Button, - "Link" => SemanticRole.Link, - "Checkbox" or "Checklist" or "ToggleGroup" => SemanticRole.CheckBox, + "HoldButton" or "CopyButton" or "ToolbarButton" or "SpeedDial" or "ControlTile" or "Chip" => SemanticRole.Button, + "Link" or "TocAnchor" => SemanticRole.Link, + "Checkbox" or "Checklist" or "ToggleGroup" or "PropBool" => SemanticRole.CheckBox, "Radio" or "RadioGroup" or "RadioCards" => SemanticRole.RadioButton, "Switch" => SemanticRole.Switch, "Input" or "TextArea" or "Search" or "TagInput" or "OtpInput" or "InlineEdit" or - "PropText" or "ChatComposer" or "FilterBar" or "Comment" => SemanticRole.TextBox, - "Number" or "MoneyInput" or "Scrub" or "SpinButton" => SemanticRole.SpinButton, + "PropText" or "ChatComposer" or "FilterBar" or "Comment" or "CodeEditor" => SemanticRole.TextBox, + "Number" or "MoneyInput" or "Scrub" or "SpinButton" or "PropFloat" or "PropInt" => SemanticRole.SpinButton, "Slider" or "RangeSlider" or "RulerSlider" or "HistogramSlider" or "Knob" or "Fader" or - "LevelMeter" => SemanticRole.Slider, - "Select" or "Combobox" or "DatePicker" or "TimePicker" or "WheelPicker" or "TimeDial" or - "DateRangePicker" or "RangeCalendar" or "MonthCalendar" or "ColorPicker" => SemanticRole.ComboBox, + "LevelMeter" or "Rating" => SemanticRole.Slider, + "Select" or "MultiSelect" or "Combobox" or "DatePicker" or "TimePicker" or "WheelPicker" or + "TimeDial" or "DateRangePicker" or "RangeCalendar" or "MonthCalendar" or "Calendar" or + "ColorPicker" or "PropColor" or "PropEnum" or "ModelPicker" or "EmojiPicker" or "SchedulePicker" => SemanticRole.ComboBox, "Tabs" or "TabBar" or "Segmented" or "DocTabs" => SemanticRole.TabList, "Tab" or "Segment" => SemanticRole.Tab, "List" or "VirtualList" => SemanticRole.List, "Tree" or "TreeView" or "TreeTable" => SemanticRole.Tree, "ListItem" or "NavItem" => SemanticRole.ListItem, - "Menu" or "MenuBarMenu" or "ContextMenu" or "CommandPalette" => SemanticRole.Menu, + "Menu" or "MenuBar" or "MenuBarMenu" or "UserMenu" or "PathBarMenu" or "ContextMenu" or "CommandPalette" => SemanticRole.Menu, "MenuItem" or "MenuLabel" => SemanticRole.MenuItem, - "Dialog" or "Sheet" or "Alert" or "Toast" or "Popover" or "HoverCard" or "Tour" => SemanticRole.Dialog, + "Dialog" or "Sheet" or "Alert" or "Banner" or "Toast" or "Popover" or "ConfirmPopover" or "HoverCard" or "Tour" => SemanticRole.Dialog, "Tooltip" => SemanticRole.Tooltip, "Table" or "DataGrid" => SemanticRole.Table, "TableRow" or "DataGridRow" => SemanticRole.TableRow, @@ -134,10 +137,11 @@ public static bool TryParse(string? text, out SemanticRole role) "Image" or "Avatar" or "Emoji" or "ImageViewer" or "Cropper" => SemanticRole.Image, "Heading" => SemanticRole.Heading, "Text" or "Label" or "Secondary" or "Muted" or "Code" or "Kbd" or "Markdown" or - "CodeBlock" or "JsonView" or "ChatMessage" => SemanticRole.Text, + "CodeBlock" or "JsonView" or "ChatMessage" or "Badge" or "StatusBarText" or "StatusBarItem" or + "Readout" or "DotDisplay" or "Metric" or "EmptyState" or "ExpandableText" or "AgentStatus" => SemanticRole.Text, "Progress" or "ProgressRing" or "Meter" or "Gauge" or "RadialGauge" or "StatusBarProgress" or "Skeleton" or "Spinner" => SemanticRole.ProgressBar, - "Separator" or "Divider" or "Spacer" or "Gap" or "ToolbarSeparator" => SemanticRole.Separator, + "Separator" or "Divider" or "Spacer" or "Gap" or "ToolbarSeparator" or "ChatDivider" => SemanticRole.Separator, _ => SemanticRole.Other, }; diff --git a/src/CuiSharp/Semantics/WidgetRecorder.cs b/src/CuiSharp/Semantics/WidgetRecorder.cs index add39d4..921f85c 100644 --- a/src/CuiSharp/Semantics/WidgetRecorder.cs +++ b/src/CuiSharp/Semantics/WidgetRecorder.cs @@ -479,7 +479,7 @@ internal void SealPendingText() for (int i = 0; i < _pending.Count; i++) { Pending widget = _pending[i]; - if (widget.Text is null && widget.Length > 0) + if ((widget.Text is null && widget.Length > 0) || !widget.Automation.IsEmpty) { _pending[i] = new Pending( widget.Kind, 0, 0, widget.Decode(), widget.Id, widget.Depth, @@ -487,14 +487,6 @@ internal void SealPendingText() Seal(widget.Automation), widget.TextValue, widget.NumberValue, widget.BoolValue, widget.State); } - else if (!widget.Automation.IsEmpty) - { - _pending[i] = new Pending( - widget.Kind, widget.Pointer, widget.Length, widget.Text, widget.Id, widget.Depth, - widget.Container, widget.OwnRect, widget.Detached, widget.Layer, - Seal(widget.Automation), widget.TextValue, widget.NumberValue, - widget.BoolValue, widget.State); - } } } diff --git a/src/CuiSharp/Ui/Ui.BoolGroups.cs b/src/CuiSharp/Ui/Ui.BoolGroups.cs index 997f0ad..71b4936 100644 --- a/src/CuiSharp/Ui/Ui.BoolGroups.cs +++ b/src/CuiSharp/Ui/Ui.BoolGroups.cs @@ -69,7 +69,7 @@ public bool FilterBar(UiText id, ReadOnlySpan fields, Span se (nint)slot.Buffer, (nuint)slot.Capacity) != 0; for (int i = 0; i < fields.Length; i++) selected[i] = masks[i]; if (TextChanged(slot)) search = DecodeText(slot); - WidgetRecorder.Note(Handle, "FilterBar", id); + WidgetRecorder.NoteValue(Handle, "FilterBar", id, search); return changed; } } diff --git a/src/CuiSharp/Ui/Ui.Overlays.cs b/src/CuiSharp/Ui/Ui.Overlays.cs index ae2c45b..018bbdd 100644 --- a/src/CuiSharp/Ui/Ui.Overlays.cs +++ b/src/CuiSharp/Ui/Ui.Overlays.cs @@ -135,6 +135,7 @@ public bool TagInput(UiText id, ref string value, TagOpts o = default) var n = o.ToNative(); bool changed = Native.TagInput(Handle, Utf8.Get(id), (nint)slot.Buffer, (nuint)slot.Capacity, in n) != 0; if (changed) value = TextFieldPool.Decode(slot); + WidgetRecorder.NoteValue(Handle, "TagInput", id, value); return changed; } @@ -145,6 +146,7 @@ public bool OtpInput(UiText id, ref string value, int length) var slot = _frame.Text.Rent(key, value, length + 1); bool changed = Native.OtpInput(Handle, Utf8.Get(id), (nint)slot.Buffer, length) != 0; if (changed) value = TextFieldPool.Decode(slot); + WidgetRecorder.NoteValue(Handle, "OtpInput", id, value); return changed; } } diff --git a/src/CuiSharp/Ui/Ui.cs b/src/CuiSharp/Ui/Ui.cs index 92dd95d..129415c 100644 --- a/src/CuiSharp/Ui/Ui.cs +++ b/src/CuiSharp/Ui/Ui.cs @@ -62,12 +62,14 @@ private InputResult TextField(UiText id, ref string value, InputOpts o, TextFiel }; var parsed = new InputResult(result); if (parsed.Changed) value = TextFieldPool.Decode(slot); + SemanticState state = (parsed.Focused ? SemanticState.Focused : SemanticState.None) + | (o.ReadOnly ? SemanticState.ReadOnly : SemanticState.None); WidgetRecorder.NoteValue(Handle, kind switch { TextFieldKind.Area => "TextArea", TextFieldKind.Search => "Search", _ => "Input", - }, id, value, parsed.Focused ? SemanticState.Focused : SemanticState.None); + }, id, value, state); return parsed; } diff --git a/tools/bindgen.cs b/tools/bindgen.cs index 259b27b..ddc6c13 100644 --- a/tools/bindgen.cs +++ b/tools/bindgen.cs @@ -3202,7 +3202,7 @@ public string LlmsTxt(IReadOnlyList<(string Name, string File)> manual) sb.AppendLine("- Long work goes through `Mutation`: create it once, call `Run()` from a button, read `IsRunning` and `Error`."); sb.AppendLine("- A page that changes on its own needs `WantsFrames => true`, or the window sleeps."); sb.AppendLine("- Per-frame code allocates nothing: no LINQ, no `new`, no string concatenation. Interpolate into a widget instead."); - sb.AppendLine("- Find a control in a frame by a query: a label (`Save`), a kind and a label (`Button \"Save\"`), or a path through its containers (`editor > Save`; only the last step may name a kind)."); + sb.AppendLine("- Find a control in a frame by a query: a label (`Save`), a kind and a label (`Button \"Save\"`), a semantic role (`role:button`), a value (`value:Milk`), an id (`id:draft`), or a path through its containers (`editor > Save`; only the last step may name a kind)."); sb.AppendLine(); sb.AppendLine("## Entry points"); sb.AppendLine(); @@ -3212,12 +3212,12 @@ public string LlmsTxt(IReadOnlyList<(string Name, string File)> manual) sb.AppendLine(); sb.AppendLine("## Testing and tools"); sb.AppendLine(); - sb.AppendLine("- `TestApp.Start(component, w, h)` — drive a real component with no window: `FindButton(\"Save\").Click()`, `FindInput(\"draft\")` + `Type(\"Milk\")`, `Frame(n)`, `Focus()`, `Key(key)`, `Faults`, `PaintedAnything()`, `SavePng(path)`."); - sb.AppendLine("- `app.Tree` / `app.Print()` — the frame as the app drew it, nesting included; `SemanticNode.Find(query)`, `Descendants()`, `Path`."); + sb.AppendLine("- `TestApp.Start(component, w, h)` — drive a real component with no window: `FindButton(\"Save\").Click()`, `FindInput(\"draft\")` + `Type(\"Milk\")`, `FindById(\"draft\")`, `FindUnique(query)`, `Frame(n)`, `Focus()`, `Key(key)`, `WaitReady(timeout)`, `WaitFor(query, timeout)`, `Faults`, `PaintedAnything()`, `SavePng(path)`."); + sb.AppendLine("- `app.Tree` / `app.Print(rects, details)` — the frame as the app drew it, nesting included; `SemanticNode` exposes `Kind`, `Text`/`Name`, `Role`, `Value`, `State`, `AutomationId`, `Rect`, `Path`, `Find(query)`, `Descendants()`, and `ToAccessibility()`."); sb.AppendLine("- `HeadlessApp` — the same driver in the framework, which `TestApp` names; `dotnet cui` drives it in a real process."); sb.AppendLine("- A tab strip and a segmented control record one control per item (`Tab \"Markets\"`, `Segment \"Dark\"`), so an item is found and clicked like any other control."); sb.AppendLine("- `surface.LastFrame` -> `FrameSample` — what the last frame that surface drew cost: `DrawMs`, `AllocatedBytes`, `FrameMs`, `Fps`, `IsLive`. `FrameStats` holds the same for the one window in the process, which is what a footer reads."); - sb.AppendLine("- `dotnet cui tree|find|click|type|key|focus|move|frame|faults|png` — one command per line; `dotnet cui session` relays a whole script against one build; `--app` for a published build, `--no-build`, `--frames N`. Any app opts in by running headless (`CUISHARP_HEADLESS=1` or `--headless`)."); + sb.AppendLine("- `dotnet cui tree|layout|find|click|type|key|focus|move|wheel|frame|wait|waittext|faults|png|doctor` — one command per line (`tree --details`, `find`/`click` `--role`/`--value`/`--id`, `--size WxH`, `png --sizes WxH,WxH`, `--state dir`, `--env KEY=VALUE`, `--wait ready`, `--wait-text query`, `-a [pid|title]`); `dotnet cui session --script file.txt` relays a whole script against one build; `--app` for a published build, `--no-build`, `--frames N`. Any app opts in by running headless (`CUISHARP_HEADLESS=1` or `--headless`)."); sb.AppendLine(); sb.AppendLine("## Core API (hand-written, in `src/CuiSharp/Ui`)"); sb.AppendLine(); @@ -3228,10 +3228,11 @@ public string LlmsTxt(IReadOnlyList<(string Name, string File)> manual) sb.AppendLine("- `ui.BarChart(...)` — the same for bars; `ui.LineChart(id, Series[] series, ...)` for several series."); sb.AppendLine("- `ui.DonutChart(UiText id, float[] values, string[]? labels = null, ChartOpts o = default)`."); sb.AppendLine("- `ui.Canvas(UiText id, Size width, Size height, PaintFn paint)` — custom drawing: `paint(ui, box)` with `ui.DrawLine`, `DrawRect`, `DrawCircle`, `DrawText`, `DrawPath`."); - sb.AppendLine("- `ui.Id(int)`, `ui.Id(UiText)` -> `IDisposable` — a scope that prefixes every id inside it; `ui.Keyed(items, key)` enumerates with ids."); + sb.AppendLine("- `ui.Id(int)`, `ui.Id(UiText)` -> `IdScope` — a scope that prefixes every native id and sets the automation id inside it; `ui.Keyed(items, key)` enumerates with ids; `ui.Automation(UiText)` -> `AutomationScope` sets only the automation id without changing native identity."); sb.AppendLine("- `ui.Shortcut(Mods mods, Key key)` -> `bool`, `ui.WantsKeyboard` — keyboard input, unmodified when a text field has focus."); sb.AppendLine("- `ui.RequestRedraw()`, `ui.NeedsRedraw` — rarely needed directly: the host does this from `WantsFrames` and pending work."); sb.AppendLine("- `ui.RequestWakeup(float seconds)` — one more frame this many seconds from now: a timer, a toast timeout, a poll interval."); + sb.AppendLine("- `ui.MarkReady()` — marks the current frame ready for `WaitReady` / `dotnet cui --wait ready`."); sb.AppendLine("- `ui.LastId` -> `uint` — the id of the widget just drawn; what `TourStep.Target` and the other point-at-this APIs take."); sb.AppendLine("- `ui.Terminal(UiText id, Terminal terminal, TerminalOpts o = default)` -> `TerminalResult` — the `Terminal` class owns the scrollback (`Write`, `WriteLine`, `Clear`, `LineCount`)."); sb.AppendLine("- `ui.LogView(UiText id, LogBuffer log, LogViewOpts o = default)` — `LogBuffer` owns the ring (`Append`, `AppendLine`, `Text`, `Clear`), the view adds level filters, search, follow and copy."); @@ -3241,7 +3242,7 @@ public string LlmsTxt(IReadOnlyList<(string Name, string File)> manual) sb.AppendLine("- `ui.TreeTable(id, columns, TreeNode[], row, [ref TableSort, ref int], TreeTableOpts, label)` -> `TreeTableEvents` — a tree over a flat node array the table rewrites; `events.Load` names the nodes whose children it wants, and `CuiTree.Sort(nodes, root, compare)` relinks siblings."); sb.AppendLine("- `ui.State(id)` and `ui.State(id, onFree)` -> `Span` — per-id scratch that survives frames; the second form adds a callback CUI runs when it evicts that id (release a texture, a lease, a pooled buffer)."); sb.AppendLine("- `ui.DiffRows(id, Span, first)` — the live diff view's rows, for a custom renderer."); - sb.AppendLine("- `Color.Oklch(l, c, hue, alpha)`, `Color.Mix(a, b, t)`, `color.WithAlpha(f)`, `ui.ColorOf(color)`, `ui.TokenColor(token)`, `Ui.AccentName(accent)`, `Ui.KeyName(key)`."); + sb.AppendLine("- `Color.Oklch(l, c, hue, alpha)`, `Color.Mix(a, b, t)`, `color.WithAlpha(f)`, `color.IsToken`, `ui.ColorOf(color)`, `ui.TokenColor(token)`, `Ui.AccentName(accent)`, `Ui.KeyName(key)`; `Size`: `IsFit`, `IsFill`, `IsFixed`, `IsPercent`, `TryGetPoints(out float)`, `TryGetPercent(out float)`."); sb.AppendLine("- `CuiMath.DiffLines(old, new)` / `DiffWords(old, new)` / `EvaluateCurve(keys, x)` / `EvaluateGradient(stops, t)` / `PathMatches(path, filter)`; `MarkdownText.ToggleTask(ref text, offset, result)`; `CuiFiles.ListDirectory(path)`; `CuiSurface` input: `MouseMove`, `MouseDown`, `MouseUp`, `Click`, `Scroll`, `KeyDown`, `KeyUp`, `Type`, `Focus`, `FileDrop`."); sb.AppendLine("- `ui.Theme` and `ui.Accent`: assign `Theme.Dark` or `Accent.Blue` from inside any frame and CUI animates the change; `ui.ToggleTheme()` is the dark-mode command."); sb.AppendLine("- `ui.Style` -> `ThemeStyle`, the design tokens: `var t = ui.Style;` then `t.RadiusControl`, `t.RadiusPanel`, `t.RadiusSurface`, `t.ControlSm`/`ControlMd`/`ControlLg`, `t.TextXs`/`TextSm`/`TextBody`/`TextLg`, `t.FontScale`, `t.Motion`, `t.GetHeading(level)`/`t.SetHeading(level, points)` for heading levels 1-4. The local is a pointer into CUI's own theme, so nothing is copied and nothing allocates, and an assignment applies from the next frame. A theme or accent switch keeps the radii, the motion multiplier and the font scale.");