diff --git a/CHANGELOG.md b/CHANGELOG.md index c5377c3..cac3c1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,10 +4,29 @@ 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] +## [0.4.3] — unreleased ### Added +- **CUI is now at `6e6b353`, 148 commits past 1.4.0**: 36 new functions, 32 new structs, and the new + Creative controls header section; the existing Voice section gains its widgets. Every function has a decided status in + `bindings/coverage.txt`: 532 functions, 0 pending. +- **The creative controls** (gallery page *Creative controls*): `ui.StatusTag` with the eight states, + `ui.RatioSlider`, `ui.GradientSlider` (hue, white balance, opacity, and a `ref Color` under the + thumb), `ui.StepSlider`, `ui.PaletteStrip`, `ui.AspectPicker`, `ui.OptionAction`, `ui.SeedField` + and `ui.PatternMeter`. `ui.SkeletonGroup` takes a body, `ui.Veil` opens and closes around one. +- **Live collaboration** (gallery page *Collaboration*): `ui.PresencePill`, `ui.LiveCursors`, + `ui.SelectionRing`, `ui.SelectionBar`, `ui.ResultCard`, `ui.CanvasControls` and `ui.FormatBar`, + built on `LiveUser`, `SelectionAction`, `NodeView` and `TextFormat`. +- **Voice** (gallery page *Voice*): `ui.VoiceWave` (with `ref float progress` for a clip you can + seek), `ui.VoiceNote` over a `VoiceNoteState`, `ui.VoiceSession`, `ui.TypingIndicator`, + `ui.StatusSpinner`, and `CuiVoice.Resample(levels, columns)` for keeping a short waveform without + a frame. `CuiVoice.Silent` is CUI's "no audio at all" level. +- **`ui.SetClipboard(text)` and `ui.GetClipboard()`** wrap the platform clipboard CUI added: the + text is copied out of frame memory, so it stays valid after the frame. +- **Seven new data records**: `Aspect`, `MeterPart`, `SelectionAction`, `LiveUser`, `TextStyle`, + `TextFormat` and `VoiceNoteState`. A widget that writes its state back takes that record `ref`. + - **`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 @@ -28,6 +47,27 @@ different things. ### Changed +- **`ui.Treemap` gains `ref int selected`**, with a null-pointer overload preserving display-only + calls. `ui.Sankey` gains one optional node color per node. +- **`ui.CanvasControls`, `ui.PaletteStrip` and `ui.SelectionBar` are hand-written** to own and copy + back the per-item flags. Palette colors and lock flags must have equal lengths; without a seed, + Shuffle reports the press but leaves colors unchanged. Selection clear returns -2, no action -1. +- **CUI adds `cui_spinner_ex` but retains `cui_spinner`**: `ui.Spinner(size)` still compiles, with + styles available in `SpinnerOpts`. `GanttTask` gained `State`, `GaugeBand` gained `Name`. +- **Short option arrays throw before native can read past them.** This covers toolbar labels, + step labels, voice owners and sankey node colors. The step range is normalized as in CUI before + checking labels, and an overflowing native stop count is rejected even without labels. +- **Native flag results are typed**: `WellEvents`, `FormatEvents`, `CanvasEvents`, + `VoiceSessionEvents`, and the voice note's shared `PlayerEvents`. +- **Record write-back preserves caller-owned const arrays**, including a voice note's waveform. + `CuiVoice.Resample` rejects overlapping input/output rather than corrupting unread samples. +- **The API-diff helper compares complete header snapshots**, so a moved declaration is not a new + function and a reformatted typedef is not a removed/new struct. Parenthesized compatibility + declarations such as `(cui_spinner)` remain visible. +- **Measured budgets move explicitly**: gallery AOT 3 177 984 B (ceiling 3.20 MB), real-time chart + 0.94 ms mean with 0 B/frame (ceiling 1.00 ms). Alternating runs against an isolated old-pin build + confirm a roughly 14% frame regression; its cause is not yet profiled, not dismissed as noise. + The three new gallery pages are independently tested at 0 B/frame. - **`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. diff --git a/Directory.Build.props b/Directory.Build.props index a175f64..ee9f8ab 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -16,7 +16,7 @@ - 0.4.2 + 0.4.3 yappologistic Copyright (c) 2026 yappologistic MIT diff --git a/README.md b/README.md index ced0153..f8f3b0a 100644 --- a/README.md +++ b/README.md @@ -372,11 +372,12 @@ What changed, per version: [CHANGELOG.md](CHANGELOG.md). ## Status -Pre-1.0: the API may still change. The binding covers all 496 CUI 1.4 functions: 170 option -structs, 104 records, 277 generated wrappers, 175 deliberate hand-written ones, 4 excluded with a -written reason, 4 variadic skipped, 0 pending — see [bindings/coverage.txt](bindings/coverage.txt). -The gallery's 29 pages walk the components section by section, light and dark; what is still missing -is the page shape that needs a device — a capture pipeline, an audio stream. +Pre-1.0: the API may still change. The binding covers all 532 CUI functions as of `6e6b353`, the last +148 commits after 1.4.0: 194 option structs, 111 records, 302 generated wrappers, 181 deliberate +hand-written ones, 6 excluded with a written reason, 4 variadic skipped, 0 pending — see +[bindings/coverage.txt](bindings/coverage.txt). The gallery's 32 pages walk the components section by +section, light and dark; what is still missing is the page shape that needs a device — a capture +pipeline, an audio stream. ## License diff --git a/bindings/README.md b/bindings/README.md index add0739..0134f5e 100644 --- a/bindings/README.md +++ b/bindings/README.md @@ -36,8 +36,8 @@ retained-pointer storage. | `src/CuiSharp/Ui/Records.g.cs` | Data records used as array items (`Choice`, `Command`, `TableColumn`, `TableSort`): friendly constructor, `ToNative()`, and `FromNative()` where write-back is meaningful. | | `src/CuiSharp.Tests/OptionMappings.g.cs` | One consolidated test covering every generated option's populated fields, sentinel and null/false defaults. A swapped field is a single generator bug, so it is one test, not one per option. | -Current state: **170** option structs, **104** data records, **277** generated wrappers, **175** -deliberate hand-written ones, **4** excluded, **4** variadic skipped, **0** pending — 496 C +Current state: **194** option structs, **111** data records, **302** generated wrappers, **181** +deliberate hand-written ones, **6** excluded, **4** variadic skipped, **0** pending — 532 C functions, every one with a status. `pwsh skills/cui-sync/scripts/sync-status.ps1` prints these numbers from `coverage.txt` and fails when the prose here or in `README.md` disagrees. Pointer-heavy options are withheld rather than exposed with guessed ownership. Charts, texture handles, text-buffer inputs and reorder are hand-written on purpose, and @@ -67,7 +67,7 @@ and missing reasons fail generation. | `optionFieldNames` | `name`, `why` | Combined-word casing, e.g. NoWrap / AutoFocus. | | `parameterDefaults` | `value`, `why` | Defaults not described by the signature, e.g. Heading level 2. | | `injectedFields` | `type`, `why` | Internal native value provided by a wrapper, not a public dangling address. TableSort remains wrapper-owned. | -| `parameterStorage` | `storage`, `why` | `frame` for ref primitives whose addresses native code retains; `value` for native records converted through `UiMarshal` and written back. | +| `parameterStorage` | `storage`, optional `type`, `why` | `frame` for ref primitives whose addresses native retains; `value` converts records and writes back state while preserving caller-owned const arrays; `enum` exposes a typed enum over a C int pointer. | | `scopes` | `end`, `clicked`, `why` | Non-standard pairs, or a bool that means clicked rather than open. | | `recordNames` | `name`, `why` | Native structs used as `const T *` array items, e.g. `cui_choice` to `Choice`. | | `outParams` | `why` | Parameters the header documents as filled in; the wrapper takes `out` instead of `ref`. | @@ -80,7 +80,7 @@ and missing reasons fail generation. | `capacityParams` | `array`, `why` | An `int capacity` the widget writes up to, where the array's length is that number. The wrapper passes the span's length and the parameter leaves the signature: supplying both lets them disagree, and the widget writes past the caller's array. | | `textFields` | `capacity`, `why` | A `char * buf` pair the caller sees as one `ref string`; the wrapper rents a pooled buffer and reads the text back only when it changed. | | `optionPointers` | `type`, `why` | An option field that is a pointer to a primitive (`int *`, `_Bool *`), exposed as a `ref` parameter. | -| `optionArrayChecks` | `atLeast`, `why` | An option array whose length is a widget parameter; the wrapper rejects a short array before the call. | +| `optionArrayChecks` | `atLeast`, optional `prepare`, `why` | An option array whose length is a widget parameter; the wrapper rejects a short array before the call. | | `scopeResults` | `type`, `out`, `why` | A `begin` whose `end` reports a value: the wrapper emits the body overload and returns it. | | `stringResults` | `why` | A function that returns a C string; the wrapper copies it. | | `excludedFunctions` | `why` | One C function deliberately not wrapped: the pure helpers (diff computation, date maths, the log writer) belong in a static API, not on a frame-local `Ui`. | diff --git a/bindings/api.json b/bindings/api.json index 4f17031..f86d392 100644 --- a/bindings/api.json +++ b/bindings/api.json @@ -2686,7 +2686,7 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "shows dots instead of the text, with an eye button that reveals it" + "Doc": "shows dots instead of the text, with an eye button that reveals it (inactive when disabled)" }, { "CName": "disabled", @@ -3628,7 +3628,7 @@ { "CName": "cui_menu_item_opts", "CsName": "NativeMenuItemOpts", - "Size": 32, + "Size": 40, "Helpers": [], "Fields": [ { @@ -3711,6 +3711,30 @@ "Kind": "Bool" }, "Doc": "a check mark at the right edge of the item" + }, + { + "CName": "font", + "CsName": "Font", + "CsType": "Font", + "CType": "cui_font", + "Offset": 28, + "Type": { + "Spelling": "cui_font", + "Kind": "Int" + }, + "Doc": "the label's font, default CUI_FONT_BODY: a style menu shows each style in its own" + }, + { + "CName": "text_size", + "CsName": "TextSize", + "CsType": "float", + "CType": "float", + "Offset": 32, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "the label's size in points, default the body size; the item grows to fit it" } ], "Doc": "" @@ -3784,6 +3808,30 @@ "Kind": "Bool" }, "Doc": "clicking outside or Esc does not close" + }, + { + "CName": "draggable", + "CsName": "Draggable", + "CsType": "byte", + "CType": "_Bool", + "Offset": 22, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "the header moves the dialog; it stays inside the window" + }, + { + "CName": "resizable", + "CsName": "Resizable", + "CsType": "byte", + "CType": "_Bool", + "Offset": 23, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "the edges and corners resize it, down to a minimum size; the content is clipped when it no longer fits" } ], "Doc": "" @@ -4044,7 +4092,7 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "" + "Doc": "no value: a segment (or with `dither`, a soft band of dots) travels the track" }, { "CName": "tone", @@ -4068,7 +4116,7 @@ "Spelling": "float", "Kind": "Float" }, - "Doc": "" + "Doc": "points, default 6 (8 with `dither`)" }, { "CName": "label", @@ -4085,7 +4133,7 @@ "IsConst": true } }, - "Doc": "" + "Doc": "a row above the bar with this name" }, { "CName": "show_value", @@ -4097,7 +4145,7 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "" + "Doc": "a whole percentage at the end of that row" }, { "CName": "width", @@ -4110,10 +4158,134 @@ "Kind": "Record" }, "Doc": "" + }, + { + "CName": "dither", + "CsName": "Dither", + "CsType": "byte", + "CType": "_Bool", + "Offset": 36, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "drawn in dots: the fill dissolves over 60 points past its edge, and the pattern drifts forward while the bar is not full; reduced motion holds it still" + } + ], + "Doc": "" + }, + { + "CName": "cui_spinner_opts", + "CsName": "NativeSpinnerOpts", + "Size": 16, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" + }, + { + "CName": "style", + "CsName": "Style", + "CsType": "SpinnerStyle", + "CType": "cui_spinner_style", + "Offset": 4, + "Type": { + "Spelling": "cui_spinner_style", + "Kind": "Enum" + }, + "Doc": "" + }, + { + "CName": "color", + "CsName": "Color", + "CsType": "NativeColor", + "CType": "cui_color", + "Offset": 8, + "Type": { + "Spelling": "cui_color", + "Kind": "Record" + }, + "Doc": "default the secondary text color for the ring, the text color for dots" + }, + { + "CName": "track", + "CsName": "Track", + "CsType": "NativeColor", + "CType": "cui_color", + "Offset": 12, + "Type": { + "Spelling": "cui_color", + "Kind": "Record" + }, + "Doc": "the dots' base (a comet's ring, a dot matrix's dots), default `color` at 12%" } ], "Doc": "" }, + { + "CName": "cui_skeleton_group_opts", + "CsName": "NativeSkeletonGroupOpts", + "Size": 20, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" + }, + { + "CName": "dither", + "CsName": "Dither", + "CsType": "byte", + "CType": "_Bool", + "Offset": 4, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "in dots, with a band of brighter dots passing over them" + }, + { + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", + "Offset": 8, + "Type": { + "Spelling": "cui_size", + "Kind": "Record" + }, + "Doc": "default: fill" + }, + { + "CName": "gap", + "CsName": "Gap", + "CsType": "float", + "CType": "float", + "Offset": 16, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "between what is built inside, default 8" + } + ], + "Doc": "Skeleton group: placeholders for content that is loading, built inside it with cui_skeleton (in rows and columns as the content will be), share one shine that passes over them together. With `dither` they are drawn in dots and a band of brighter dots travels over them, asking for 20 frames a second while on screen; reduced motion holds the band still. Groups nest." + }, { "CName": "cui_badge_opts", "CsName": "NativeBadgeOpts", @@ -4682,7 +4854,7 @@ "Doc": "" } ], - "Doc": "Table" + "Doc": "Table: sortable headers and selectable rows show keyboard focus." }, { "CName": "cui_table_sort", @@ -5077,7 +5249,7 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "bar chart" + "Doc": "bars stack in one column; lines stack on the series before them" }, { "CName": "smooth", @@ -5160,6 +5332,227 @@ "Kind": "Int" }, "Doc": "number of `annotations`" + }, + { + "CName": "dither", + "CsName": "Dither", + "CsType": "byte", + "CType": "_Bool", + "Offset": 68, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "line chart: every series filled with dots that thin out from its line to the bottom of its band (implies `area`); with `stacked`, bands never mix colors" + } + ], + "Doc": "" + }, + { + "CName": "cui_meter_part", + "CsName": "NativeMeterPart", + "Size": 24, + "Helpers": [], + "Fields": [ + { + "CName": "name", + "CsName": "Name", + "CsType": "nint", + "CType": "const char *", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "in the legend and the readout" + }, + { + "CName": "value", + "CsName": "Value", + "CsType": "float", + "CType": "float", + "Offset": 8, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "in the meter's units" + }, + { + "CName": "color", + "CsName": "Color", + "CsType": "NativeColor", + "CType": "cui_color", + "Offset": 12, + "Type": { + "Spelling": "cui_color", + "Kind": "Record" + }, + "Doc": "default: the series palette, in order" + }, + { + "CName": "density", + "CsName": "Density", + "CsType": "float", + "CType": "float", + "Offset": 16, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "share of dots lit, 0..1; 0 takes the next of 1, 0.66, 0.42, 0.24, 0.14, 0.08" + } + ], + "Doc": "Pattern meter: a stacked usage bar (storage, budgets, quotas) whose parts differ in color and in the density of their dots, so it still reads in grayscale, in print and without telling hues apart. One dot of space parts the parts, and the rest of `total` is free space in the track color. Hovering a part, or its legend entry, steps the others back and shows its name, value and share above the bar; the keyboard does the same with Left and Right. Returns the part shown, or -1." + }, + { + "CName": "cui_pattern_meter_opts", + "CsName": "NativePatternMeterOpts", + "Size": 56, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" + }, + { + "CName": "total", + "CsName": "Total", + "CsType": "float", + "CType": "float", + "Offset": 4, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "the whole bar; 0 means the sum of the parts (no free space)" + }, + { + "CName": "label", + "CsName": "Label", + "CsType": "nint", + "CType": "const char *", + "Offset": 8, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "the title over the bar, e.g. \"Storage\"" + }, + { + "CName": "unit", + "CsName": "Unit", + "CsType": "nint", + "CType": "const char *", + "Offset": 16, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "after every value, e.g. \"GB\"" + }, + { + "CName": "format", + "CsName": "Format", + "CsType": "nint", + "CType": "const char *", + "Offset": 24, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "printf format of a value, default \"%g\"" + }, + { + "CName": "free_label", + "CsName": "FreeLabel", + "CsType": "nint", + "CType": "const char *", + "Offset": 32, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "the legend entry of the free space, default \"Free\"; \"\" leaves it out" + }, + { + "CName": "grayscale", + "CsName": "Grayscale", + "CsType": "byte", + "CType": "_Bool", + "Offset": 40, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "every part in the foreground color, told apart by density alone" + }, + { + "CName": "no_legend", + "CsName": "NoLegend", + "CsType": "byte", + "CType": "_Bool", + "Offset": 41, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "" + }, + { + "CName": "height", + "CsName": "Height", + "CsType": "float", + "CType": "float", + "Offset": 44, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "points, default 18" + }, + { + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", + "Offset": 48, + "Type": { + "Spelling": "cui_size", + "Kind": "Record" + }, + "Doc": "default: fill" } ], "Doc": "" @@ -6025,7 +6418,7 @@ "Doc": "" } ], - "Doc": "Toggle group: a row of toggles (bold, italic...). values[i] is toggled when item i is clicked; with exclusive set exactly one stays on. Labels become tooltips when icon_only is set. Returns true when a value changed." + "Doc": "Toggle group: a row of toggles (bold, italic...). values[i] is toggled when item i is clicked; with exclusive set exactly one stays on. Labels become tooltips when icon_only is set. Left and Right move focus one item. Returns true when a value changed." }, { "CName": "cui_confirm_opts", @@ -6229,6 +6622,62 @@ ], "Doc": "" }, + { + "CName": "cui_status_spinner_opts", + "CsName": "NativeStatusSpinnerOpts", + "Size": 16, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" + }, + { + "CName": "size", + "CsName": "Size", + "CsType": "float", + "CType": "float", + "Offset": 4, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "points, default 20" + }, + { + "CName": "color", + "CsName": "Color", + "CsType": "NativeColor", + "CType": "cui_color", + "Offset": 8, + "Type": { + "Spelling": "cui_color", + "Kind": "Record" + }, + "Doc": "the ring while busy, default the text color" + }, + { + "CName": "keep", + "CsName": "Keep", + "CsType": "byte", + "CType": "_Bool", + "Offset": 12, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "the check or cross stays instead of dissolving away" + } + ], + "Doc": "Status spinner: a dither ring while the status is busy that resolves when the work ends: it fills to a disc in the success color with a check, or the danger color with a cross, holds it for a moment and dissolves away. It keeps its space throughout. Returns true while it shows something, so an app can stop calling it after a result." + }, { "CName": "cui_reaction", "CsName": "NativeReaction", @@ -7807,7 +8256,7 @@ "IsConst": true } }, - "Doc": "\"c\", \"cpp\", \"js\", \"ts\", \"python\", \"rust\", \"go\", \"json\", \"shell\" or \"text\" (no colors); shown in the title bar" + "Doc": "\"c\", \"cpp\", \"js\", \"ts\", \"python\", \"rust\", \"go\", \"json\", \"shell\", \"sql\" or \"text\" (no colors); shown in the title bar" }, { "CName": "title", @@ -7899,7 +8348,7 @@ "Doc": "no title bar, even with a lang" } ], - "Doc": "Code block with syntax highlighting (lang: \"c\", \"cpp\", \"js\", \"ts\", \"python\", \"rust\", \"go\", \"json\", \"shell\", or \"text\" for none), line numbers, a title bar and a copy button. Long lines scroll sideways." + "Doc": "Code block with syntax highlighting (lang: \"c\", \"cpp\", \"js\", \"ts\", \"python\", \"rust\", \"go\", \"json\", \"shell\", \"sql\", or \"text\" for none), line numbers, a title bar and a copy button. Long lines scroll sideways." }, { "CName": "cui_json_opts", @@ -8215,7 +8664,7 @@ "IsConst": true } }, - "Doc": "as cui_code_block: \"c\", \"cpp\", \"js\", \"ts\", \"python\", \"rust\", \"go\", \"json\", \"shell\"; \"text\" for none" + "Doc": "as cui_code_block: \"c\", \"cpp\", \"js\", \"ts\", \"python\", \"rust\", \"go\", \"json\", \"shell\", \"sql\"; \"text\" for none" }, { "CName": "width", @@ -9931,7 +10380,7 @@ "Spelling": "cui_color", "Kind": "Record" }, - "Doc": "hue of the scale, default the accent" + "Doc": "the top step, default the accent; the steps mix toward it from the empty surface" }, { "CName": "format", @@ -9963,7 +10412,7 @@ "Doc": "" } ], - "Doc": "Heatmap: a rows x cols matrix (values[row * cols + col]) on one hue, light to dark, with a scale below." + "Doc": "Heatmap: a rows x cols matrix (values[row * cols + col]) in five steps from the empty surface to the accent, with the range and a Less / More key below." }, { "CName": "cui_calendar_heatmap_opts", @@ -10004,7 +10453,7 @@ "Spelling": "cui_color", "Kind": "Record" }, - "Doc": "" + "Doc": "the top step, default the accent" }, { "CName": "format", @@ -10090,12 +10539,12 @@ "Doc": "" } ], - "Doc": "Treemap: rectangles with areas proportional to their values." + "Doc": "Treemap: rectangles with areas proportional to their values, on neutral tiles graded by size, each with its label, value and share. The accent marks only the hovered or selected tile; an item's own `color` fills its tile instead." }, { "CName": "cui_treemap_opts", "CsName": "NativeTreemapOpts", - "Size": 24, + "Size": 32, "Helpers": [], "Fields": [ { @@ -10131,7 +10580,7 @@ "Spelling": "float", "Kind": "Float" }, - "Doc": "" + "Doc": "default 300" }, { "CName": "format", @@ -10148,7 +10597,23 @@ "IsConst": true } }, - "Doc": "" + "Doc": "the values, e.g. \"%.0f KB\"" + }, + { + "CName": "selected", + "CsName": "Selected", + "CsType": "nint", + "CType": "int *", + "Offset": 24, + "Type": { + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } + }, + "Doc": "the selected item or -1, kept by you; a click selects, a second click clears. `NULL`: no selection" } ], "Doc": "" @@ -10224,7 +10689,7 @@ "Doc": "" } ], - "Doc": "Radar chart: series over shared axes (series[i].values[axis])." + "Doc": "Radar chart: series over shared axes (series[i].values[axis]), light fills with crisp outlines on hairline rings. The last series shows its points, or the one nearest the pointer, with a chip of the hovered value." }, { "CName": "cui_funnel_opts", @@ -10341,230 +10806,247 @@ "Doc": "size of the flow: sets the link's thickness" } ], - "Doc": "Sankey: flows between nodes; columns follow the links from the sources." + "Doc": "Sankey: flows between nodes; columns follow the links from the sources. Slim nodes in the colors you give them, flows shaded from source to target color, and hovering a node or a flow lights its whole path upstream and downstream." }, { "CName": "cui_sankey_opts", "CsName": "NativeSankeyOpts", - "Size": 32, - "Helpers": [], - "Fields": [ - { - "CName": "_", - "CsName": "Sentinel", - "CsType": "int", - "CType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - }, - "Doc": "" - }, - { - "CName": "width", - "CsName": "Width", - "CsType": "NativeSize", - "CType": "cui_size", - "Offset": 4, - "Type": { - "Spelling": "cui_size", - "Kind": "Record" - }, - "Doc": "" - }, - { - "CName": "height", - "CsName": "Height", - "CsType": "float", - "CType": "float", - "Offset": 12, - "Type": { - "Spelling": "float", - "Kind": "Float" - }, - "Doc": "" - }, - { - "CName": "format", - "CsName": "Format", - "CsType": "nint", - "CType": "const char *", - "Offset": 16, - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - }, - "Doc": "" - }, - { - "CName": "node_width", - "CsName": "NodeWidth", - "CsType": "float", - "CType": "float", - "Offset": 24, - "Type": { - "Spelling": "float", - "Kind": "Float" - }, - "Doc": "width of the node bars in points, default 12" - } - ], - "Doc": "" - }, - { - "CName": "cui_waffle_opts", - "CsName": "NativeWaffleOpts", - "Size": 24, - "Helpers": [], - "Fields": [ - { - "CName": "_", - "CsName": "Sentinel", - "CsType": "int", - "CType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - }, - "Doc": "" - }, - { - "CName": "cell", - "CsName": "Cell", - "CsType": "float", - "CType": "float", - "Offset": 4, - "Type": { - "Spelling": "float", - "Kind": "Float" - }, - "Doc": "size of a square in points, default 18" - }, - { - "CName": "columns", - "CsName": "Columns", - "CsType": "int", - "CType": "int", - "Offset": 8, - "Type": { - "Spelling": "int", - "Kind": "Int" - }, - "Doc": "squares per row, at most 60; default 10" - }, - { - "CName": "rows", - "CsName": "Rows", - "CsType": "int", - "CType": "int", - "Offset": 12, - "Type": { - "Spelling": "int", - "Kind": "Int" - }, - "Doc": "rows of squares, at most 60; default 10" - }, - { - "CName": "format", - "CsName": "Format", - "CsType": "nint", - "CType": "const char *", - "Offset": 16, - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - }, - "Doc": "" - } - ], - "Doc": "Waffle: a 10 x 10 grid of squares split by share, with a legend." - }, - { - "CName": "cui_split_bar_opts", - "CsName": "NativeSplitBarOpts", - "Size": 32, - "Helpers": [], - "Fields": [ - { - "CName": "_", - "CsName": "Sentinel", - "CsType": "int", - "CType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - }, - "Doc": "" - }, - { - "CName": "width", - "CsName": "Width", - "CsType": "NativeSize", - "CType": "cui_size", - "Offset": 4, - "Type": { - "Spelling": "cui_size", - "Kind": "Record" - }, - "Doc": "" - }, - { - "CName": "height", - "CsName": "Height", - "CsType": "float", - "CType": "float", - "Offset": 12, - "Type": { - "Spelling": "float", - "Kind": "Float" - }, - "Doc": "" - }, - { - "CName": "format", - "CsName": "Format", - "CsType": "nint", - "CType": "const char *", - "Offset": 16, - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - }, - "Doc": "" - }, - { - "CName": "no_legend", - "CsName": "NoLegend", - "CsType": "byte", - "CType": "_Bool", - "Offset": 24, - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Doc": "" - } - ], - "Doc": "Split bar: one bar split into parts, with a legend of values and shares." - }, - { - "CName": "cui_bar_list_opts", - "CsName": "NativeBarListOpts", + "Size": 40, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" + }, + { + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", + "Offset": 4, + "Type": { + "Spelling": "cui_size", + "Kind": "Record" + }, + "Doc": "" + }, + { + "CName": "height", + "CsName": "Height", + "CsType": "float", + "CType": "float", + "Offset": 12, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "" + }, + { + "CName": "format", + "CsName": "Format", + "CsType": "nint", + "CType": "const char *", + "Offset": 16, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "" + }, + { + "CName": "node_width", + "CsName": "NodeWidth", + "CsType": "float", + "CType": "float", + "Offset": 24, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "width of the node bars in points, default 6" + }, + { + "CName": "node_colors", + "CsName": "NodeColors", + "CsType": "nint", + "CType": "const cui_color *", + "Offset": 32, + "Type": { + "Spelling": "const cui_color *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_color", + "Kind": "Record", + "IsConst": true + } + }, + "Doc": "one per node, colored by meaning; `NULL`, or an unset entry, falls back to the palette for outcomes and neutral gray for sources and steps" + } + ], + "Doc": "" + }, + { + "CName": "cui_waffle_opts", + "CsName": "NativeWaffleOpts", + "Size": 24, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" + }, + { + "CName": "cell", + "CsName": "Cell", + "CsType": "float", + "CType": "float", + "Offset": 4, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "size of a square in points, default 18" + }, + { + "CName": "columns", + "CsName": "Columns", + "CsType": "int", + "CType": "int", + "Offset": 8, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "squares per row, at most 60; default 10" + }, + { + "CName": "rows", + "CsName": "Rows", + "CsType": "int", + "CType": "int", + "Offset": 12, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "rows of squares, at most 60; default 10" + }, + { + "CName": "format", + "CsName": "Format", + "CsType": "nint", + "CType": "const char *", + "Offset": 16, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "" + } + ], + "Doc": "Waffle: a 10 x 10 grid of squares split by share, with a legend." + }, + { + "CName": "cui_split_bar_opts", + "CsName": "NativeSplitBarOpts", + "Size": 32, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" + }, + { + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", + "Offset": 4, + "Type": { + "Spelling": "cui_size", + "Kind": "Record" + }, + "Doc": "" + }, + { + "CName": "height", + "CsName": "Height", + "CsType": "float", + "CType": "float", + "Offset": 12, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "" + }, + { + "CName": "format", + "CsName": "Format", + "CsType": "nint", + "CType": "const char *", + "Offset": 16, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "" + }, + { + "CName": "no_legend", + "CsName": "NoLegend", + "CsType": "byte", + "CType": "_Bool", + "Offset": 24, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "" + } + ], + "Doc": "Split bar: one bar split into parts, with a legend of values and shares." + }, + { + "CName": "cui_bar_list_opts", + "CsName": "NativeBarListOpts", "Size": 40, "Helpers": [], "Fields": [ @@ -10947,7 +11429,7 @@ { "CName": "cui_gauge_band", "CsName": "NativeGaugeBand", - "Size": 8, + "Size": 16, "Helpers": [], "Fields": [ { @@ -10959,7 +11441,7 @@ "Spelling": "float", "Kind": "Float" }, - "Doc": "from the band before (or min) up to `to`" + "Doc": "the band runs from the band before (or min) up to here" }, { "CName": "tone", @@ -10971,15 +11453,32 @@ "Spelling": "cui_tone", "Kind": "Enum" }, - "Doc": "from the band before (or min) up to `to`" + "Doc": "its color" + }, + { + "CName": "name", + "CsName": "Name", + "CsType": "nint", + "CType": "const char *", + "Offset": 8, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "shown as a chip while the value is in this band (segments style); `NULL` for none" } ], - "Doc": "Radial gauge: one value on a dial with colored bands, labelled ticks, a needle and a target marker, for dashboards (speed, load, temperature, a score against a goal). The needle springs to new values." + "Doc": "Radial gauge: one value as a large number on an arc, for dashboards (load, speed, temperature, a score against a goal). Three styles: CUI_GAUGE_SEGMENTS a ring of short segments, lit in each band's tone up to the value, with the current band's name as a chip under the label CUI_GAUGE_ARC a track and a value arc with round caps, min and max at the ends, and a marker at `target` CUI_GAUGE_RING a slim full ring from the top, with `detail` under it CUI_GAUGE_AUTO (the default) picks the segments when `bands` are given and the arc otherwise. The arc fills to new values with a spring." }, { "CName": "cui_radial_gauge_opts", "CsName": "NativeRadialGaugeOpts", - "Size": 64, + "Size": 88, "Helpers": [], "Fields": [ { @@ -11025,7 +11524,7 @@ "IsConst": true } }, - "Doc": "the value and the tick labels, default \"%.0f\"" + "Doc": "the value, the ends and the target, default whole numbers with large ones shortened (1.8k)" }, { "CName": "unit", @@ -11042,7 +11541,7 @@ "IsConst": true } }, - "Doc": "after the value, smaller" + "Doc": "after the value, smaller and muted" }, { "CName": "size", @@ -11066,7 +11565,7 @@ "Spelling": "float", "Kind": "Float" }, - "Doc": "degrees of arc, default 240 (90 to 300)" + "Doc": "degrees of arc, default 270 (90 to 300); the ring is always a full turn" }, { "CName": "bands", @@ -11107,7 +11606,7 @@ "Spelling": "int", "Kind": "Int" }, - "Doc": "labelled divisions, default 5; -1 hides the ticks" + "Doc": "-1 hides the min and max labels at the ends of the arc" }, { "CName": "target", @@ -11131,7 +11630,7 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "draws the marker at `target`" + "Doc": "draws the marker at `target`, labelled with its value (arc style)" }, { "CName": "no_needle", @@ -11143,7 +11642,48 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "a thick arc filled to the value instead of a needle" + "Doc": "kept for older code; no style has a needle" + }, + { + "CName": "style", + "CsName": "Style", + "CsType": "GaugeStyle", + "CType": "cui_gauge_style", + "Offset": 64, + "Type": { + "Spelling": "cui_gauge_style", + "Kind": "Enum" + }, + "Doc": "CUI_GAUGE_AUTO picks segments with `bands`, else the arc" + }, + { + "CName": "detail", + "CsName": "Detail", + "CsType": "nint", + "CType": "const char *", + "Offset": 72, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "a muted line under the gauge, e.g. \"190 of 500 GB\"; `NULL` for none" + }, + { + "CName": "color", + "CsName": "Color", + "CsType": "NativeColor", + "CType": "cui_color", + "Offset": 80, + "Type": { + "Spelling": "cui_color", + "Kind": "Record" + }, + "Doc": "the value's color; unset: the band the value is in, else the accent (the ring: the first series color)" } ], "Doc": "" @@ -12471,7 +13011,7 @@ "Doc": "" } ], - "Doc": "Agent plan: steps with their status on a connected rail, and progress." + "Doc": "Agent plan: steps with their status on a connected rail, and progress. Reduced motion holds the running glyph still, including in tool calls." }, { "CName": "cui_agent_plan_opts", @@ -12987,7 +13527,7 @@ { "CName": "cui_composer_opts", "CsName": "NativeComposerOpts", - "Size": 88, + "Size": 104, "Helpers": [], "Fields": [ { @@ -13148,6 +13688,71 @@ "Kind": "Record" }, "Doc": "" + }, + { + "CName": "mic", + "CsName": "Mic", + "CsType": "byte", + "CType": "_Bool", + "Offset": 84, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "a microphone button beside send, which returns `CUI_COMPOSER_RECORD`" + }, + { + "CName": "recording", + "CsName": "Recording", + "CsType": "byte", + "CType": "_Bool", + "Offset": 85, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "shows the recorder instead of the text: set it on `CUI_COMPOSER_RECORD`, clear it on cancel or send" + }, + { + "CName": "levels", + "CsName": "Levels", + "CsType": "nint", + "CType": "const float *", + "Offset": 88, + "Type": { + "Spelling": "const float *", + "Kind": "Pointer", + "Element": { + "Spelling": "const float", + "Kind": "Float", + "IsConst": true + } + }, + "Doc": "the microphone's levels while recording (0..1, newest last), drawn as a scrolling voice waveform" + }, + { + "CName": "level_count", + "CsName": "LevelCount", + "CsType": "int", + "CType": "int", + "Offset": 96, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "number of `levels`" + }, + { + "CName": "record_seconds", + "CsName": "RecordSeconds", + "CsType": "float", + "CType": "float", + "Offset": 100, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "how long the take is so far, shown beside the recording dot" } ], "Doc": "" @@ -13194,6 +13799,434 @@ "Doc": "" } ], + "Doc": "Deprecated: use the voice session (cui_voice_session), the voice waveform (cui_voice_wave) or the composer's recorder instead. Kept so existing code builds; it gets no new features. Voice orb: a living shape for voice modes. level is the input or output loudness (0..1). Returns true when clicked." + }, + { + "CName": "cui_voice_wave_opts", + "CsName": "NativeVoiceWaveOpts", + "Size": 48, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" + }, + { + "CName": "clip", + "CsName": "Clip", + "CsType": "byte", + "CType": "_Bool", + "Offset": 4, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "the whole clip resampled to the width, instead of the newest levels scrolling in" + }, + { + "CName": "progress", + "CsName": "Progress", + "CsType": "nint", + "CType": "float *", + "Offset": 8, + "Type": { + "Spelling": "float *", + "Kind": "Pointer", + "Element": { + "Spelling": "float", + "Kind": "Float" + } + }, + "Doc": "a clip's played fraction (0..1): colors the played part, draws a playhead and seeks; implies `clip`" + }, + { + "CName": "owners", + "CsName": "Owners", + "CsType": "nint", + "CType": "const uint8_t *", + "Offset": 16, + "Type": { + "Spelling": "const uint8_t *", + "Kind": "Pointer", + "Element": { + "Spelling": "const uint8_t", + "Kind": "UChar", + "IsConst": true + } + }, + "Doc": "one per level, `CUI_VOICE_YOU` or `CUI_VOICE_REPLY`, for two voices on one timeline; `NULL`: all `owner`" + }, + { + "CName": "owner", + "CsName": "Owner", + "CsType": "VoiceOwner", + "CType": "cui_voice_owner", + "Offset": 24, + "Type": { + "Spelling": "cui_voice_owner", + "Kind": "Enum" + }, + "Doc": "whose voice it is: you in the foreground color, the reply in the accent" + }, + { + "CName": "color", + "CsName": "Color", + "CsType": "NativeColor", + "CType": "cui_color", + "Offset": 28, + "Type": { + "Spelling": "cui_color", + "Kind": "Record" + }, + "Doc": "lit dots in this color instead of the owner's" + }, + { + "CName": "pitch", + "CsName": "Pitch", + "CsType": "float", + "CType": "float", + "Offset": 32, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "distance between dot centers in points, default 3.6; the strip is 14 pitches tall" + }, + { + "CName": "step", + "CsName": "Step", + "CsType": "float", + "CType": "float", + "Offset": 36, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "how far an arrow key seeks, as a fraction of the clip, default 0.05" + }, + { + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", + "Offset": 40, + "Type": { + "Spelling": "cui_size", + "Kind": "Record" + }, + "Doc": "default fill" + } + ], + "Doc": "" + }, + { + "CName": "cui_voice_note", + "CsName": "NativeVoiceNote", + "Size": 32, + "Helpers": [], + "Fields": [ + { + "CName": "levels", + "CsName": "Levels", + "CsType": "nint", + "CType": "const float *", + "Type": { + "Spelling": "const float *", + "Kind": "Pointer", + "Element": { + "Spelling": "const float", + "Kind": "Float", + "IsConst": true + } + }, + "Doc": "the clip's loudness, 0..1, oldest first (resampled to fit)" + }, + { + "CName": "count", + "CsName": "Count", + "CsType": "int", + "CType": "int", + "Offset": 8, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "number of `levels`" + }, + { + "CName": "position", + "CsName": "Position", + "CsType": "float", + "CType": "float", + "Offset": 12, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "seconds played; written when the user seeks" + }, + { + "CName": "duration", + "CsName": "Duration", + "CsType": "float", + "CType": "float", + "Offset": 16, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "length of the clip in seconds" + }, + { + "CName": "speed", + "CsName": "Speed", + "CsType": "float", + "CType": "float", + "Offset": 20, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "playback rate, 1, 1.5 or 2 (0 reads as 1); the chip moves it to the next" + }, + { + "CName": "playing", + "CsName": "Playing", + "CsType": "byte", + "CType": "_Bool", + "Offset": 24, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "shows pause instead of play; the play button flips it" + } + ], + "Doc": "Voice note: a recorded message in a bubble, with play and pause, its voice waveform as the seek bar (click or drag; the arrow keys step), the time played and the length, and a speed chip that cycles 1x, 1.5x and 2x. It plays nothing itself: you play the audio and pass the position on every frame. Returns CUI_PLAYER_TOGGLE, CUI_PLAYER_SEEK and CUI_PLAYER_SPEED." + }, + { + "CName": "cui_voice_note_opts", + "CsName": "NativeVoiceNoteOpts", + "Size": 16, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" + }, + { + "CName": "mine", + "CsName": "Mine", + "CsType": "byte", + "CType": "_Bool", + "Offset": 4, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "a message you sent: tinted with the accent and placed at the end of the row" + }, + { + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", + "Offset": 8, + "Type": { + "Spelling": "cui_size", + "Kind": "Record" + }, + "Doc": "default 330 points, narrower in a narrower container" + } + ], + "Doc": "" + }, + { + "CName": "cui_voice_session_opts", + "CsName": "NativeVoiceSessionOpts", + "Size": 88, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" + }, + { + "CName": "owners", + "CsName": "Owners", + "CsType": "nint", + "CType": "const uint8_t *", + "Offset": 8, + "Type": { + "Spelling": "const uint8_t *", + "Kind": "Pointer", + "Element": { + "Spelling": "const uint8_t", + "Kind": "UChar", + "IsConst": true + } + }, + "Doc": "one per level: `CUI_VOICE_YOU` or `CUI_VOICE_REPLY`; `NULL`: all yours" + }, + { + "CName": "label", + "CsName": "Label", + "CsType": "nint", + "CType": "const char *", + "Offset": 16, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "text for the state instead of \"Listening\", \"Thinking...\", \"Speaking\", \"Muted\" or \"Waiting\"" + }, + { + "CName": "transcript", + "CsName": "Transcript", + "CsType": "nint", + "CType": "const char *", + "Offset": 24, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "the words of the current turn spoken so far, under the strip; `NULL` for none" + }, + { + "CName": "upcoming", + "CsName": "Upcoming", + "CsType": "nint", + "CType": "const char *", + "Offset": 32, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "the rest of the turn, not spoken yet: dimmed after `transcript`" + }, + { + "CName": "speaker", + "CsName": "Speaker", + "CsType": "VoiceOwner", + "CType": "cui_voice_owner", + "Offset": 40, + "Type": { + "Spelling": "cui_voice_owner", + "Kind": "Enum" + }, + "Doc": "whose turn the transcript is, named before it" + }, + { + "CName": "you", + "CsName": "You", + "CsType": "nint", + "CType": "const char *", + "Offset": 48, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "your name in the legend and the transcript, default \"You\"" + }, + { + "CName": "assistant", + "CsName": "Assistant", + "CsType": "nint", + "CType": "const char *", + "Offset": 56, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "the assistant's name, default \"Assistant\"" + }, + { + "CName": "muted", + "CsName": "Muted", + "CsType": "nint", + "CType": "_Bool *", + "Offset": 64, + "Type": { + "Spelling": "_Bool *", + "Kind": "Pointer", + "Element": { + "Spelling": "_Bool", + "Kind": "Bool" + } + }, + "Doc": "the microphone is muted: the button reads Unmute; a click flips it. `NULL` leaves Mute out" + }, + { + "CName": "no_end", + "CsName": "NoEnd", + "CsType": "byte", + "CType": "_Bool", + "Offset": 72, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "leaves the End button out" + }, + { + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", + "Offset": 76, + "Type": { + "Spelling": "cui_size", + "Kind": "Record" + }, + "Doc": "default fill" + } + ], "Doc": "" }, { @@ -13750,7 +14783,7 @@ { "CName": "cui_gantt_task", "CsName": "NativeGanttTask", - "Size": 40, + "Size": 48, "Helpers": [], "Fields": [ { @@ -13820,7 +14853,7 @@ "Spelling": "float", "Kind": "Float" }, - "Doc": "0..1: the part of the bar drawn darker, as done" + "Doc": "0..1: the part of the bar filled in, as done, with the percentage at its end" }, { "CName": "tone", @@ -13832,7 +14865,7 @@ "Spelling": "cui_tone", "Kind": "Enum" }, - "Doc": "" + "Doc": "overrides the state's color when set" }, { "CName": "depends_on", @@ -13844,7 +14877,7 @@ "Spelling": "int", "Kind": "Int" }, - "Doc": "index of the task this one waits for: an arrow runs from its end to this start. -1 for none" + "Doc": "index of the task this one waits for: a curve runs from its end to this start. -1 for none" }, { "CName": "milestone", @@ -13856,10 +14889,22 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "a diamond at `start` instead of a bar; it cannot be resized" + "Doc": "an outlined diamond at `start`, labelled with its name and date, instead of a bar; it cannot be resized" + }, + { + "CName": "state", + "CsName": "State", + "CsType": "GanttState", + "CType": "cui_gantt_state", + "Offset": 40, + "Type": { + "Spelling": "cui_gantt_state", + "Kind": "Enum" + }, + "Doc": "done, active or planned; CUI_GANTT_AUTO works it out from `progress` and `today`" } ], - "Doc": "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." + "Doc": "" }, { "CName": "cui_gantt_opts", @@ -13924,7 +14969,7 @@ "Spelling": "int", "Kind": "Int" }, - "Doc": "day to mark as today, counted from `origin`; 0 marks none" + "Doc": "day to mark as today, counted from `origin`, with an accent line and a \"Today\" chip; 0 marks none" }, { "CName": "read_only", @@ -14107,7 +15152,7 @@ "Doc": "" } ], - "Doc": "Confirm popover: a small question anchored to the previous component. Open it with cui_popover_open(ui, id). Returns true when confirmed." + "Doc": "Confirm popover: a small question anchored to the previous component. Open it with cui_popover_open(ui, id). A new Enter press can confirm it. Returns true when confirmed." }, { "CName": "cui_expandable_text_opts", @@ -14561,6 +15606,108 @@ ], "Doc": "" }, + { + "CName": "cui_veil_opts", + "CsName": "NativeVeilOpts", + "Size": 48, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" + }, + { + "CName": "label", + "CsName": "Label", + "CsType": "nint", + "CType": "const char *", + "Offset": 8, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "a line in the middle of the veil, e.g. \"Sensitive image\"; `NULL` for none" + }, + { + "CName": "hint", + "CsName": "Hint", + "CsType": "nint", + "CType": "const char *", + "Offset": 16, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "a smaller line under it, e.g. \"Click to show\"" + }, + { + "CName": "toggle", + "CsName": "Toggle", + "CsType": "byte", + "CType": "_Bool", + "Offset": 24, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "a click on the revealed content covers it again" + }, + { + "CName": "radius", + "CsName": "Radius", + "CsType": "float", + "CType": "float", + "Offset": 28, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "corners of the veil, default 0" + }, + { + "CName": "color", + "CsName": "Color", + "CsType": "NativeColor", + "CType": "cui_color", + "Offset": 32, + "Type": { + "Spelling": "cui_color", + "Kind": "Record" + }, + "Doc": "the veil's ground, default the muted surface; its dots are a step toward the text color" + }, + { + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", + "Offset": 36, + "Type": { + "Spelling": "cui_size", + "Kind": "Record" + }, + "Doc": "default: the content's width" + } + ], + "Doc": "Veil: covers what is built inside it (a picture, a secret such as an API key, a spoiler) with a slowly moving dither in muted tones that keeps its space. A click, or Enter or Space, reveals it: the veil dissolves dot by dot in about a quarter of a second, and comes back the same way when *revealed is set to false again. While covered, the content takes no clicks and no keyboard focus. Reduced motion holds the noise still and reveals at once." + }, { "CName": "cui_multi_select_opts", "CsName": "NativeMultiSelectOpts", @@ -16449,137 +17596,215 @@ { "CName": "cui_toolbar_opts", "CsName": "NativeToolbarOpts", - "Size": 8, - "Helpers": [], - "Fields": [ - { - "CName": "_", - "CsName": "Sentinel", - "CsType": "int", - "CType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - }, - "Doc": "" - }, - { - "CName": "no_border", - "CsName": "NoBorder", - "CsType": "byte", - "CType": "_Bool", - "Offset": 4, - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Doc": "" - } - ], - "Doc": "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 \"more\" menu; an item chosen there returns true on the next frame." - }, - { - "CName": "cui_tool_opts", - "CsName": "NativeToolOpts", - "Size": 48, - "Helpers": [], - "Fields": [ - { - "CName": "_", - "CsName": "Sentinel", - "CsType": "int", - "CType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - }, - "Doc": "" - }, - { - "CName": "label", - "CsName": "Label", - "CsType": "nint", - "CType": "const char *", - "Offset": 8, - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - }, - "Doc": "text on the button (icon may be NULL); also its name in the overflow menu" - }, - { - "CName": "tooltip", - "CsName": "Tooltip", - "CsType": "nint", - "CType": "const char *", - "Offset": 16, - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - }, - "Doc": "the name of an icon only button" - }, - { - "CName": "shortcut", - "CsName": "Shortcut", - "CsType": "nint", - "CType": "const char *", - "Offset": 24, - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - }, - "Doc": "shown in the tooltip, e.g. \"Ctrl B\"" - }, - { - "CName": "toggle", - "CsName": "Toggle", - "CsType": "nint", - "CType": "_Bool *", - "Offset": 32, - "Type": { - "Spelling": "_Bool *", - "Kind": "Pointer", - "Element": { - "Spelling": "_Bool", - "Kind": "Bool" - } - }, - "Doc": "toggle button: flipped on click, shown pressed while true" - }, - { - "CName": "disabled", - "CsName": "Disabled", - "CsType": "byte", - "CType": "_Bool", - "Offset": 40, - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Doc": "" - } - ], - "Doc": "" - }, - { - "CName": "cui_status_bar_opts", - "CsName": "NativeStatusBarOpts", + "Size": 12, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" + }, + { + "CName": "no_border", + "CsName": "NoBorder", + "CsType": "byte", + "CType": "_Bool", + "Offset": 4, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "plain style: no hairline under the strip" + }, + { + "CName": "style", + "CsName": "Style", + "CsType": "ToolbarStyle", + "CType": "cui_toolbar_style", + "Offset": 8, + "Type": { + "Spelling": "cui_toolbar_style", + "Kind": "Enum" + }, + "Doc": "" + } + ], + "Doc": "" + }, + { + "CName": "cui_tool_opts", + "CsName": "NativeToolOpts", + "Size": 56, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" + }, + { + "CName": "label", + "CsName": "Label", + "CsType": "nint", + "CType": "const char *", + "Offset": 8, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "text on the button (icon may be NULL); also its name in the overflow menu" + }, + { + "CName": "tooltip", + "CsName": "Tooltip", + "CsType": "nint", + "CType": "const char *", + "Offset": 16, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "the name of an icon only button" + }, + { + "CName": "shortcut", + "CsName": "Shortcut", + "CsType": "nint", + "CType": "const char *", + "Offset": 24, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "shown in the tooltip, e.g. \"Ctrl B\"" + }, + { + "CName": "toggle", + "CsName": "Toggle", + "CsType": "nint", + "CType": "_Bool *", + "Offset": 32, + "Type": { + "Spelling": "_Bool *", + "Kind": "Pointer", + "Element": { + "Spelling": "_Bool", + "Kind": "Bool" + } + }, + "Doc": "toggle button: flipped on click, shown pressed while true" + }, + { + "CName": "disabled", + "CsName": "Disabled", + "CsType": "byte", + "CType": "_Bool", + "Offset": 40, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "" + }, + { + "CName": "tone", + "CsName": "Tone", + "CsType": "Tone", + "CType": "cui_tone", + "Offset": 44, + "Type": { + "Spelling": "cui_tone", + "Kind": "Enum" + }, + "Doc": "icon and label color: always on a plain button (CUI_TONE_DANGER for delete), only while on for a toggle" + }, + { + "CName": "flyout", + "CsName": "Flyout", + "CsType": "byte", + "CType": "_Bool", + "Offset": 48, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "the corner mark that says the button opens more options (cui_flyout_mark)" + } + ], + "Doc": "" + }, + { + "CName": "cui_toolbar_radio_opts", + "CsName": "NativeToolbarRadioOpts", + "Size": 16, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" + }, + { + "CName": "labels", + "CsName": "Labels", + "CsType": "nint", + "CType": "const char *const *", + "Offset": 8, + "Type": { + "Spelling": "const char *const *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + "Doc": "a name for each icon, for the overflow menu; `NULL` leaves them unnamed" + } + ], + "Doc": "An inset set of icons of which one is on, like a segmented control. Left and Right move the choice. Returns true when *index changed. In the overflow menu each icon is an item named by its label." + }, + { + "CName": "cui_status_bar_opts", + "CsName": "NativeStatusBarOpts", "Size": 8, "Helpers": [], "Fields": [ @@ -19220,49 +20445,49 @@ "Doc": "" }, { - "CName": "cui_timeline_clip", - "CsName": "NativeTimelineClip", - "Size": 32, + "CName": "cui_status_tag_opts", + "CsName": "NativeStatusTagOpts", + "Size": 40, "Helpers": [], "Fields": [ { - "CName": "start", - "CsName": "Start", - "CsType": "float", - "CType": "float", + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "seconds, end > start" + "Doc": "" }, { - "CName": "end", - "CsName": "End", - "CsType": "float", - "CType": "float", + "CName": "size", + "CsName": "Size", + "CsType": "ControlSize", + "CType": "cui_control_size", "Offset": 4, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "cui_control_size", + "Kind": "Enum" }, - "Doc": "seconds, end > start" + "Doc": "CUI_SIZE_SM is 24 points high, for tables and tag groups; default 30" }, { - "CName": "offset", - "CsName": "Offset", - "CsType": "float", - "CType": "float", + "CName": "removable", + "CsName": "Removable", + "CsType": "byte", + "CType": "_Bool", "Offset": 8, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "where the clip starts in its media; trimming the start moves it along" + "Doc": "the tag becomes a button that shows an x on hover: the call returns true when it is clicked, or on Enter, Delete or Backspace" }, { - "CName": "name", - "CsName": "Name", + "CName": "icon", + "CsName": "Icon", "CsType": "nint", "CType": "const char *", "Offset": 16, @@ -19275,51 +20500,26 @@ "IsConst": true } }, - "Doc": "drawn in the clip's bar when it fits, and in its tooltip" + "Doc": "instead of the state's icon" }, { - "CName": "selected", - "CsName": "Selected", - "CsType": "byte", - "CType": "_Bool", + "CName": "tone", + "CsName": "Tone", + "CsType": "Tone", + "CType": "cui_tone", "Offset": 24, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Doc": "the clip is selected: set and cleared by clicks, kept by you" - } - ], - "Doc": "" - }, - { - "CName": "cui_timeline_track", - "CsName": "NativeTimelineTrack", - "Size": 64, - "Helpers": [], - "Fields": [ - { - "CName": "name", - "CsName": "Name", - "CsType": "nint", - "CType": "const char *", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "cui_tone", + "Kind": "Enum" }, - "Doc": "shown in the track list and in tooltips" + "Doc": "instead of the state's color; 0 keeps it (gray for CUI_TAG_CUSTOM)" }, { - "CName": "icon", - "CsName": "Icon", + "CName": "id", + "CsName": "Id", "CsType": "nint", "CType": "const char *", - "Offset": 8, + "Offset": 32, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -19329,203 +20529,312 @@ "IsConst": true } }, - "Doc": "optional, before the name" - }, + "Doc": "identity of a removable tag when two share a label" + } + ], + "Doc": "" + }, + { + "CName": "cui_ratio_slider_opts", + "CsName": "NativeRatioSliderOpts", + "Size": 28, + "Helpers": [], + "Fields": [ { - "CName": "depth", - "CsName": "Depth", + "CName": "_", + "CsName": "Sentinel", "CsType": "int", "CType": "int", - "Offset": 16, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "0 top level; the deeper tracks after a track belong to it (a group)" + "Doc": "" }, { - "CName": "collapsed", - "CsName": "Collapsed", - "CsType": "byte", - "CType": "_Bool", - "Offset": 20, + "CName": "tone", + "CsName": "Tone", + "CsType": "Tone", + "CType": "cui_tone", + "Offset": 4, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_tone", + "Kind": "Enum" }, - "Doc": "a group hides its tracks (its chevron toggles this)" + "Doc": "color of the first part; 0 uses the accent" }, { - "CName": "muted", - "CsName": "Muted", - "CsType": "byte", - "CType": "_Bool", - "Offset": 21, + "CName": "step", + "CsName": "Step", + "CsType": "float", + "CType": "float", + "Offset": 8, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "float", + "Kind": "Float" }, - "Doc": "toggled by the row's buttons (.toggles); a locked track can't be edited" + "Doc": "arrow key step as a share, default 0.01 (one percent)" }, { - "CName": "locked", - "CsName": "Locked", + "CName": "height", + "CsName": "Height", + "CsType": "float", + "CType": "float", + "Offset": 12, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "default 52" + }, + { + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", + "Offset": 16, + "Type": { + "Spelling": "cui_size", + "Kind": "Record" + }, + "Doc": "default fill" + }, + { + "CName": "disabled", + "CsName": "Disabled", "CsType": "byte", "CType": "_Bool", - "Offset": 22, + "Offset": 24, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "toggled by the row's buttons (.toggles); a locked track can't be edited" + "Doc": "" + } + ], + "Doc": "Ratio slider: a whole split into two named parts, with a bar between them to drag. *ratio is the first part's share, 0..1. Both names and percentages stay readable: the split stops where a part would get too narrow for them. Arrows move one step (Shift: ten), Home and End go to the limits." + }, + { + "CName": "cui_gradient_slider_opts", + "CsName": "NativeGradientSliderOpts", + "Size": 88, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" }, { - "CName": "color", - "CsName": "Color", - "CsType": "byte", - "CType": "uint8_t", - "Offset": 23, + "CName": "track", + "CsName": "Track", + "CsType": "GradientTrack", + "CType": "cui_gradient_track", + "Offset": 4, "Type": { - "Spelling": "uint8_t", - "Kind": "UChar" + "Spelling": "cui_gradient_track", + "Kind": "Enum" }, - "Doc": "series color 1..6; 0 takes the group's, or the next one at the top level" + "Doc": "the built-in track, default the hue wheel; ignored when `stops` is set" }, { - "CName": "keys", - "CsName": "Keys", + "CName": "stops", + "CsName": "Stops", "CsType": "nint", - "CType": "cui_curve_key *", - "Offset": 24, + "CType": "const cui_gradient_stop *", + "Offset": 8, "Type": { - "Spelling": "cui_curve_key *", + "Spelling": "const cui_gradient_stop *", "Kind": "Pointer", "Element": { - "Spelling": "cui_curve_key", - "Kind": "Record" + "Spelling": "const cui_gradient_stop", + "Kind": "Record", + "IsConst": true } }, - "Doc": "sorted by x: x is the time in seconds, y the value (may be NULL)" + "Doc": "your own track, positions 0..1" }, { - "CName": "key_count", - "CsName": "KeyCount", + "CName": "stop_count", + "CsName": "StopCount", "CsType": "int", "CType": "int", - "Offset": 32, + "Offset": 16, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "keys in `keys`; the editor changes it when keys are added or removed" + "Doc": "" }, { - "CName": "key_capacity", - "CsName": "KeyCapacity", - "CsType": "int", - "CType": "int", - "Offset": 36, + "CName": "color", + "CsName": "Color", + "CsType": "NativeColor", + "CType": "cui_color", + "Offset": 20, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_color", + "Kind": "Record" }, - "Doc": "room in `keys`; a double click adds no key once it is full (or 0)" + "Doc": "CUI_GRADIENT_OPACITY: the color it fades in; unset: the accent" }, { - "CName": "key_selected", - "CsName": "KeySelected", + "CName": "color_out", + "CsName": "ColorOut", "CsType": "nint", - "CType": "_Bool *", + "CType": "cui_color *", + "Offset": 24, + "Type": { + "Spelling": "cui_color *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_color", + "Kind": "Record" + } + }, + "Doc": "receives the color under the thumb" + }, + { + "CName": "step", + "CsName": "Step", + "CsType": "float", + "CType": "float", + "Offset": 32, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "snap to multiples of step from min; 0 = continuous" + }, + { + "CName": "format", + "CsName": "Format", + "CsType": "nint", + "CType": "const char *", "Offset": 40, "Type": { - "Spelling": "_Bool *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } }, - "Doc": "parallel to keys, kept by you; NULL: the keys are shown but not selectable" + "Doc": "printf format for the value; default \"%.0f°\" for hue, \"%.0f K\" for temperature, a percent of the range for opacity, \"%.0f\" for stops" }, { - "CName": "clips", - "CsName": "Clips", + "CName": "value", + "CsName": "Value", "CsType": "nint", - "CType": "cui_timeline_clip *", + "CType": "const char *", "Offset": 48, "Type": { - "Spelling": "cui_timeline_clip *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_timeline_clip", - "Kind": "Record" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } }, - "Doc": "sorted by start, not overlapping (may be NULL)" + "Doc": "text at the right of the label instead of the formatted value" }, { - "CName": "clip_count", - "CsName": "ClipCount", - "CsType": "int", - "CType": "int", + "CName": "swatch", + "CsName": "Swatch", + "CsType": "byte", + "CType": "_Bool", "Offset": 56, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "clips in `clips`; lowered when selected clips are removed" - } - ], - "Doc": "" - }, - { - "CName": "cui_timeline_view", - "CsName": "NativeTimelineView", - "Size": 12, - "Helpers": [], - "Fields": [ + "Doc": "a dot in the color under the thumb after the track" + }, { - "CName": "start", - "CsName": "Start", - "CsType": "float", - "CType": "float", + "CName": "tool", + "CsName": "Tool", + "CsType": "nint", + "CType": "const char *", + "Offset": 64, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "visible time range; end <= start fits the sequence" + "Doc": "icon of a button after the track, e.g. a picker; a click returns CUI_WELL_ACTION" }, { - "CName": "end", - "CsName": "End", - "CsType": "float", - "CType": "float", - "Offset": 4, + "CName": "tool_tooltip", + "CsName": "ToolTooltip", + "CsType": "nint", + "CType": "const char *", + "Offset": 72, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "visible time range; end <= start fits the sequence" + "Doc": "names the tool button" }, { - "CName": "scroll", - "CsName": "Scroll", - "CsType": "float", - "CType": "float", - "Offset": 8, + "CName": "tool_on", + "CsName": "ToolOn", + "CsType": "byte", + "CType": "_Bool", + "Offset": 80, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "rows scrolled off the top, in points" + "Doc": "shows the tool button pressed, e.g. while picking" + }, + { + "CName": "plain", + "CsName": "Plain", + "CsType": "byte", + "CType": "_Bool", + "Offset": 81, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "no well around it" + }, + { + "CName": "disabled", + "CsName": "Disabled", + "CsType": "byte", + "CType": "_Bool", + "Offset": 82, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "" } ], "Doc": "" }, { - "CName": "cui_timeline_editor_opts", - "CsName": "NativeTimelineEditorOpts", - "Size": 88, + "CName": "cui_step_slider_opts", + "CsName": "NativeStepSliderOpts", + "Size": 56, "Helpers": [], "Fields": [ { @@ -19540,503 +20849,394 @@ "Doc": "" }, { - "CName": "start", - "CsName": "Start", - "CsType": "float", - "CType": "float", - "Offset": 4, - "Type": { - "Spelling": "float", - "Kind": "Float" - }, - "Doc": "the sequence in seconds; both 0 = 0..10" - }, - { - "CName": "end", - "CsName": "End", - "CsType": "float", - "CType": "float", - "Offset": 8, - "Type": { - "Spelling": "float", - "Kind": "Float" - }, - "Doc": "the sequence in seconds; both 0 = 0..10" - }, - { - "CName": "fps", - "CsName": "Fps", - "CsType": "float", - "CType": "float", - "Offset": 12, - "Type": { - "Spelling": "float", - "Kind": "Float" - }, - "Doc": "frames per second, default 30: snapping, stepping and frame labels" - }, - { - "CName": "ruler", - "CsName": "Ruler", - "CsType": "int", - "CType": "int", - "Offset": 16, - "Type": { - "Spelling": "int", - "Kind": "Int" - }, - "Doc": "cui_timeline_ruler" - }, - { - "CName": "view", - "CsName": "View", + "CName": "labels", + "CsName": "Labels", "CsType": "nint", - "CType": "cui_timeline_view *", - "Offset": 24, + "CType": "const char *const *", + "Offset": 8, "Type": { - "Spelling": "cui_timeline_view *", + "Spelling": "const char *const *", "Kind": "Pointer", "Element": { - "Spelling": "cui_timeline_view", - "Kind": "Record" + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } }, - "Doc": "NULL keeps it in the editor" + "Doc": "a name for each stop, shown as the value: labels[*value - min]" }, { - "CName": "in", - "CsName": "In", + "CName": "format", + "CsName": "Format", "CsType": "nint", - "CType": "float *", - "Offset": 32, + "CType": "const char *", + "Offset": 16, "Type": { - "Spelling": "float *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } }, - "Doc": "a play range: with both set, markers to drag in the ruler and shading outside" + "Doc": "printf format for the value, default \"%d\"" }, { - "CName": "out", - "CsName": "Out", + "CName": "value", + "CsName": "Value", "CsType": "nint", - "CType": "float *", - "Offset": 40, + "CType": "const char *", + "Offset": 24, "Type": { - "Spelling": "float *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } }, - "Doc": "a play range: with both set, markers to drag in the ruler and shading outside" + "Doc": "text at the right of the label instead" }, { - "CName": "current_track", - "CsName": "CurrentTrack", + "CName": "tool", + "CsName": "Tool", "CsType": "nint", - "CType": "int *", - "Offset": 48, + "CType": "const char *", + "Offset": 32, "Type": { - "Spelling": "int *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } }, - "Doc": "the key last clicked or added, or -1; kept by you (NULL: in the editor)" + "Doc": "icon of a button after the track; a click returns CUI_WELL_ACTION" }, { - "CName": "current_key", - "CsName": "CurrentKey", + "CName": "tool_tooltip", + "CsName": "ToolTooltip", "CsType": "nint", - "CType": "int *", - "Offset": 56, + "CType": "const char *", + "Offset": 40, "Type": { - "Spelling": "int *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } }, - "Doc": "the key last clicked or added, or -1; kept by you (NULL: in the editor)" - }, - { - "CName": "width", - "CsName": "Width", - "CsType": "NativeSize", - "CType": "cui_size", - "Offset": 64, - "Type": { - "Spelling": "cui_size", - "Kind": "Record" - }, - "Doc": "default fill" - }, - { - "CName": "height", - "CsName": "Height", - "CsType": "float", - "CType": "float", - "Offset": 72, - "Type": { - "Spelling": "float", - "Kind": "Float" - }, - "Doc": "default: fits every track (up to 360)" - }, - { - "CName": "row_height", - "CsName": "RowHeight", - "CsType": "float", - "CType": "float", - "Offset": 76, - "Type": { - "Spelling": "float", - "Kind": "Float" - }, - "Doc": "default 26" + "Doc": "" }, { - "CName": "track_width", - "CsName": "TrackWidth", - "CsType": "float", - "CType": "float", - "Offset": 80, + "CName": "tool_on", + "CsName": "ToolOn", + "CsType": "byte", + "CType": "_Bool", + "Offset": 48, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "track list, default 184; narrower (then icons only) on a narrow editor" + "Doc": "" }, { - "CName": "toggles", - "CsName": "Toggles", + "CName": "plain", + "CsName": "Plain", "CsType": "byte", "CType": "_Bool", - "Offset": 84, + "Offset": 49, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "hide and lock buttons on every track" + "Doc": "" }, { - "CName": "free_drag", - "CsName": "FreeDrag", + "CName": "disabled", + "CsName": "Disabled", "CsType": "byte", "CType": "_Bool", - "Offset": 85, + "Offset": 50, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "drags and scrubbing do not snap to frames" + "Doc": "" } ], - "Doc": "" + "Doc": "Step slider: a few discrete stops marked with dots; the thumb snaps to each and glides between them. Arrows move one stop, Home and End go to the ends. Returns CUI_WELL_* flags." }, { - "CName": "cui_timeline_editor_result", - "CsName": "NativeTimelineEditorResult", - "Size": 52, + "CName": "cui_palette_strip_opts", + "CsName": "NativePaletteStripOpts", + "Size": 40, "Helpers": [], "Fields": [ { - "CName": "changed", - "CsName": "Changed", - "CsType": "byte", - "CType": "_Bool", - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Doc": "keys or clips moved, were added or removed, or a track flag changed" - }, - { - "CName": "time_changed", - "CsName": "TimeChanged", - "CsType": "byte", - "CType": "_Bool", - "Offset": 1, + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "time moved (scrub, ruler click, keys)" + "Doc": "" }, { - "CName": "scrubbing", - "CsName": "Scrubbing", - "CsType": "byte", - "CType": "_Bool", - "Offset": 2, + "CName": "seed", + "CsName": "Seed", + "CsType": "nint", + "CType": "uint32_t *", + "Offset": 8, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "uint32_t *", + "Kind": "Pointer", + "Element": { + "Spelling": "uint32_t", + "Kind": "UInt" + } }, - "Doc": "the playhead is being dragged" + "Doc": "shuffle state, yours: shuffle recolors the unlocked swatches from it and moves it on, so the same seed gives the same colors; NULL only reports the press" }, { - "CName": "play_toggled", - "CsName": "PlayToggled", - "CsType": "byte", - "CType": "_Bool", - "Offset": 3, + "CName": "value", + "CsName": "Value", + "CsType": "nint", + "CType": "const char *", + "Offset": 16, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "Space: start or stop playback" + "Doc": "text at the right of the label, e.g. \"Click a swatch to lock it\"" }, { - "CName": "selection_changed", - "CsName": "SelectionChanged", + "CName": "no_shuffle", + "CsName": "NoShuffle", "CsType": "byte", "CType": "_Bool", - "Offset": 4, + "Offset": 24, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "a key or clip was selected or unselected this frame" + "Doc": "no shuffle button" }, { - "CName": "view_changed", - "CsName": "ViewChanged", - "CsType": "byte", - "CType": "_Bool", - "Offset": 5, + "CName": "height", + "CsName": "Height", + "CsType": "float", + "CType": "float", + "Offset": 28, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "float", + "Kind": "Float" }, - "Doc": "the visible time range or the row scroll changed (zoom, pan, fit)" + "Doc": "default 32" }, { - "CName": "keys_moved", - "CsName": "KeysMoved", + "CName": "plain", + "CsName": "Plain", "CsType": "byte", "CType": "_Bool", - "Offset": 6, + "Offset": 32, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "selected keys moved this frame (drag or Alt+arrows)" - }, - { - "CName": "added_track", - "CsName": "AddedTrack", - "CsType": "int", - "CType": "int", - "Offset": 8, - "Type": { - "Spelling": "int", - "Kind": "Int" - }, - "Doc": "the key added this frame (double click), or -1" - }, - { - "CName": "added_key", - "CsName": "AddedKey", - "CsType": "int", - "CType": "int", - "Offset": 12, - "Type": { - "Spelling": "int", - "Kind": "Int" - }, - "Doc": "the key added this frame (double click), or -1" - }, + "Doc": "" + } + ], + "Doc": "Palette strip: a joined row of color swatches (up to 16). A click on a swatch locks or unlocks it, and the shuffle button after the row recolors the unlocked ones. The swatch under the pointer widens and shows its hex code. Tab reaches the swatches, Left and Right move between them, Space or Enter locks. Returns CUI_WELL_CHANGED when a lock or a color changed and CUI_WELL_ACTION when shuffle was pressed." + }, + { + "CName": "cui_aspect", + "CsName": "NativeAspect", + "Size": 16, + "Helpers": [], + "Fields": [ { - "CName": "removed_keys", - "CsName": "RemovedKeys", + "CName": "w", + "CsName": "W", "CsType": "int", "CType": "int", - "Offset": 16, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "how many were removed this frame (Delete)" + "Doc": "label NULL shows \"w:h\"" }, { - "CName": "removed_clips", - "CsName": "RemovedClips", + "CName": "h", + "CsName": "H", "CsType": "int", "CType": "int", - "Offset": 20, + "Offset": 4, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "how many were removed this frame (Delete)" + "Doc": "label NULL shows \"w:h\"" }, { - "CName": "clip_track", - "CsName": "ClipTrack", - "CsType": "int", - "CType": "int", - "Offset": 24, + "CName": "label", + "CsName": "Label", + "CsType": "nint", + "CType": "const char *", + "Offset": 8, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "the clip moved or trimmed this frame, or -1" - }, + "Doc": "label NULL shows \"w:h\"" + } + ], + "Doc": "Aspect ratio picker: each choice drawn as a rectangle of its own proportions with its ratio under it, and an optional dashed \"Custom\". The value at the right of the label is the size in pixels. Tab reaches the choices, Left and Right move between them." + }, + { + "CName": "cui_aspect_picker_opts", + "CsName": "NativeAspectPickerOpts", + "Size": 56, + "Helpers": [], + "Fields": [ { - "CName": "clip", - "CsName": "Clip", + "CName": "_", + "CsName": "Sentinel", "CsType": "int", "CType": "int", - "Offset": 28, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "the clip moved or trimmed this frame, or -1" + "Doc": "" }, { - "CName": "toggled", - "CsName": "Toggled", - "CsType": "int", - "CType": "int", - "Offset": 32, + "CName": "ratios", + "CsName": "Ratios", + "CsType": "nint", + "CType": "const cui_aspect *", + "Offset": 8, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const cui_aspect *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_aspect", + "Kind": "Record", + "IsConst": true + } }, - "Doc": "the track whose collapsed, muted or locked flag changed, or -1" + "Doc": "your choices; NULL: 1:1, 4:5, 3:2, 16:9, 9:16 and 21:9" }, { - "CName": "current_track", - "CsName": "CurrentTrack", + "CName": "count", + "CsName": "Count", "CsType": "int", "CType": "int", - "Offset": 36, + "Offset": 16, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "track of the key last clicked or added, or -1" + "Doc": "" }, { - "CName": "current_key", - "CsName": "CurrentKey", - "CsType": "int", - "CType": "int", - "Offset": 40, + "CName": "custom", + "CsName": "Custom", + "CsType": "byte", + "CType": "_Bool", + "Offset": 20, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "index of that key in its track, or -1" + "Doc": "adds a \"Custom\" choice after a divider; *index == the count of choices selects it" }, { - "CName": "hovered_track", - "CsName": "HoveredTrack", - "CsType": "int", - "CType": "int", - "Offset": 44, + "CName": "custom_label", + "CsName": "CustomLabel", + "CsType": "nint", + "CType": "const char *", + "Offset": 24, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "the key under the pointer, or -1" + "Doc": "default \"Custom\"" }, { - "CName": "hovered_key", - "CsName": "HoveredKey", + "CName": "base", + "CsName": "Base", "CsType": "int", "CType": "int", - "Offset": 48, + "Offset": 32, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "the key under the pointer, or -1" - } - ], - "Doc": "" - }, - { - "CName": "cui_kv_pair", - "CsName": "NativeKvPair", - "Size": 322, - "Helpers": [], - "Fields": [ - { - "CName": "key", - "CsName": "Key", - "CsType": "sbyte", - "CType": "char[64]", - "IsFixedBuffer": true, - "ArrayLength": 64, - "Type": { - "Spelling": "char[64]", - "Kind": "ConstantArray", - "Element": { - "Spelling": "char", - "Kind": "Char_S" - } - }, - "Doc": "the name, e.g. \"Accept\"; edited in place" + "Doc": "the short side in pixels, for the size at the right of the label; default 1080, negative hides the size" }, { "CName": "value", "CsName": "Value", - "CsType": "sbyte", - "CType": "char[256]", - "Offset": 64, - "IsFixedBuffer": true, - "ArrayLength": 256, + "CsType": "nint", + "CType": "const char *", + "Offset": 40, "Type": { - "Spelling": "char[256]", - "Kind": "ConstantArray", + "Spelling": "const char *", + "Kind": "Pointer", "Element": { - "Spelling": "char", - "Kind": "Char_S" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } }, - "Doc": "the value, e.g. \"application/json\"; edited in place" - }, - { - "CName": "enabled", - "CsName": "Enabled", - "CsType": "byte", - "CType": "_Bool", - "Offset": 320, - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Doc": "the pair is in use; its checkbox toggles this" + "Doc": "text at the right of the label instead of the size" }, { - "CName": "secret", - "CsName": "Secret", + "CName": "plain", + "CsName": "Plain", "CsType": "byte", "CType": "_Bool", - "Offset": 321, + "Offset": 48, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "the value shows as dots, with an eye to reveal it; the lock button toggles this" + "Doc": "" } ], - "Doc": "Rows of key = value pairs: HTTP headers, query parameters, environment variables. You own the array and it is edited in place. The checkbox turns a pair on or off, typing in the empty row at the end adds a pair, the x removes one. Secret values show as dots with an eye to reveal them. A key used twice, or one with a space, is marked. On a phone each key sits above its value. Returns true when anything changed." + "Doc": "" }, { - "CName": "cui_kv_editor_opts", - "CsName": "NativeKvEditorOpts", + "CName": "cui_option_action_opts", + "CsName": "NativeOptionActionOpts", "Size": 40, "Helpers": [], "Fields": [ @@ -20052,8 +21252,8 @@ "Doc": "" }, { - "CName": "key_placeholder", - "CsName": "KeyPlaceholder", + "CName": "tooltip", + "CsName": "Tooltip", "CsType": "nint", "CType": "const char *", "Offset": 8, @@ -20066,96 +21266,84 @@ "IsConst": true } }, - "Doc": "default \"Key\"" + "Doc": "names the action button" }, { - "CName": "value_placeholder", - "CsName": "ValuePlaceholder", - "CsType": "nint", - "CType": "const char *", + "CName": "action_on", + "CsName": "ActionOn", + "CsType": "byte", + "CType": "_Bool", "Offset": 16, "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "default \"Value\"" + "Doc": "shows the action button pressed" }, { - "CName": "no_toggles", - "CsName": "NoToggles", + "CName": "action_disabled", + "CsName": "ActionDisabled", "CsType": "byte", "CType": "_Bool", - "Offset": 24, + "Offset": 17, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "no checkboxes: every pair is on" + "Doc": "" }, { - "CName": "no_secrets", - "CsName": "NoSecrets", - "CsType": "byte", - "CType": "_Bool", - "Offset": 25, + "CName": "value", + "CsName": "Value", + "CsType": "nint", + "CType": "const char *", + "Offset": 24, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "no eye button" + "Doc": "text at the right of the label" }, { - "CName": "read_only", - "CsName": "ReadOnly", + "CName": "plain", + "CsName": "Plain", "CsType": "byte", "CType": "_Bool", - "Offset": 26, + "Offset": 32, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, "Doc": "" - }, - { - "CName": "width", - "CsName": "Width", - "CsType": "NativeSize", - "CType": "cui_size", - "Offset": 28, - "Type": { - "Spelling": "cui_size", - "Kind": "Record" - }, - "Doc": "default fill" } ], - "Doc": "" + "Doc": "Option field with action: a compact segmented choice and the icon button of the action it feeds (save as png, jpg or webp, then download). Returns CUI_WELL_* flags." }, { - "CName": "cui_diagnostic", - "CsName": "NativeDiagnostic", - "Size": 48, + "CName": "cui_seed_field_opts", + "CsName": "NativeSeedFieldOpts", + "Size": 40, "Helpers": [], "Fields": [ { - "CName": "severity", - "CsName": "Severity", - "CsType": "Severity", - "CType": "cui_severity", + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", "Type": { - "Spelling": "cui_severity", - "Kind": "Enum" + "Spelling": "int", + "Kind": "Int" }, "Doc": "" }, { - "CName": "message", - "CsName": "Message", + "CName": "value", + "CsName": "Value", "CsType": "nint", "CType": "const char *", "Offset": 8, @@ -20168,11 +21356,11 @@ "IsConst": true } }, - "Doc": "the text of the row; the whole message shows on hover" + "Doc": "text at the right of the label" }, { - "CName": "file", - "CsName": "File", + "CName": "random_text", + "CsName": "RandomText", "CsType": "nint", "CType": "const char *", "Offset": 16, @@ -20185,38 +21373,14 @@ "IsConst": true } }, - "Doc": "groups the rows; NULL or \"\" groups as \"No file\"" - }, - { - "CName": "line", - "CsName": "Line", - "CsType": "int", - "CType": "int", - "Offset": 24, - "Type": { - "Spelling": "int", - "Kind": "Int" - }, - "Doc": "1 based; 0 leaves it out" - }, - { - "CName": "column", - "CsName": "Column", - "CsType": "int", - "CType": "int", - "Offset": 28, - "Type": { - "Spelling": "int", - "Kind": "Int" - }, - "Doc": "1 based; 0 leaves it out" + "Doc": "the mode word in the field while unlocked, default \"random\"" }, { - "CName": "source", - "CsName": "Source", + "CName": "fixed_text", + "CsName": "FixedText", "CsType": "nint", "CType": "const char *", - "Offset": 32, + "Offset": 24, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -20226,132 +21390,100 @@ "IsConst": true } }, - "Doc": "\"gcc\", \"clang-tidy\"... (may be NULL)" + "Doc": "and while locked, default \"fixed\"" }, { - "CName": "code", - "CsName": "Code", - "CsType": "nint", - "CType": "const char *", - "Offset": 40, + "CName": "plain", + "CsName": "Plain", + "CsType": "byte", + "CType": "_Bool", + "Offset": 32, "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "\"-Wunused-variable\"... (may be NULL)" + "Doc": "" } ], - "Doc": "" + "Doc": "Seed field: a random seed in the monospaced font. The dice rolls a new one, its digits rolling into place, and the lock keeps it fixed (the dice is off while locked). Returns CUI_WELL_CHANGED when the seed or the lock changed and CUI_WELL_ACTION on a roll." }, { - "CName": "cui_problems_opts", - "CsName": "NativeProblemsOpts", - "Size": 20, + "CName": "cui_timeline_clip", + "CsName": "NativeTimelineClip", + "Size": 32, "Helpers": [], "Fields": [ { - "CName": "_", - "CsName": "Sentinel", - "CsType": "int", - "CType": "int", + "CName": "start", + "CsName": "Start", + "CsType": "float", + "CType": "float", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "float", + "Kind": "Float" }, - "Doc": "" + "Doc": "seconds, end > start" }, { - "CName": "width", - "CsName": "Width", - "CsType": "NativeSize", - "CType": "cui_size", + "CName": "end", + "CsName": "End", + "CsType": "float", + "CType": "float", "Offset": 4, "Type": { - "Spelling": "cui_size", - "Kind": "Record" + "Spelling": "float", + "Kind": "Float" }, - "Doc": "" + "Doc": "seconds, end > start" }, { - "CName": "height", - "CsName": "Height", + "CName": "offset", + "CsName": "Offset", "CsType": "float", "CType": "float", - "Offset": 12, + "Offset": 8, "Type": { "Spelling": "float", "Kind": "Float" }, - "Doc": "" + "Doc": "where the clip starts in its media; trimming the start moves it along" }, { - "CName": "no_toolbar", - "CsName": "NoToolbar", - "CsType": "byte", - "CType": "_Bool", + "CName": "name", + "CsName": "Name", + "CsType": "nint", + "CType": "const char *", "Offset": 16, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "hides the severity toggles and the filter field above the list" - } - ], - "Doc": "" - }, - { - "CName": "cui_problems_result", - "CsName": "NativeProblemsResult", - "Size": 12, - "Helpers": [], - "Fields": [ + "Doc": "drawn in the clip's bar when it fits, and in its tooltip" + }, { "CName": "selected", "CsName": "Selected", - "CsType": "int", - "CType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - }, - "Doc": "diagnostic selected, or -1" - }, - { - "CName": "activated", - "CsName": "Activated", - "CsType": "int", - "CType": "int", - "Offset": 4, - "Type": { - "Spelling": "int", - "Kind": "Int" - }, - "Doc": "diagnostic opened this frame (Enter, double-click), or -1" - }, - { - "CName": "shown", - "CsName": "Shown", - "CsType": "int", - "CType": "int", - "Offset": 8, + "CsType": "byte", + "CType": "_Bool", + "Offset": 24, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "diagnostics that pass the filters" + "Doc": "the clip is selected: set and cleared by clicks, kept by you" } ], "Doc": "" }, { - "CName": "cui_pipeline_job", - "CsName": "NativePipelineJob", - "Size": 24, + "CName": "cui_timeline_track", + "CsName": "NativeTimelineTrack", + "Size": 64, "Helpers": [], "Fields": [ { @@ -20368,501 +21500,552 @@ "IsConst": true } }, - "Doc": "shown on the job's row and in its tooltip" + "Doc": "shown in the track list and in tooltips" }, { - "CName": "stage", - "CsName": "Stage", - "CsType": "int", - "CType": "int", + "CName": "icon", + "CsName": "Icon", + "CsType": "nint", + "CType": "const char *", "Offset": 8, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "index into the stage names" + "Doc": "optional, before the name" }, { - "CName": "status", - "CsName": "Status", - "CsType": "JobStatus", - "CType": "cui_job_status", - "Offset": 12, + "CName": "depth", + "CsName": "Depth", + "CsType": "int", + "CType": "int", + "Offset": 16, "Type": { - "Spelling": "cui_job_status", - "Kind": "Enum" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "" + "Doc": "0 top level; the deeper tracks after a track belong to it (a group)" }, { - "CName": "duration", - "CsName": "Duration", - "CsType": "float", - "CType": "float", - "Offset": 16, + "CName": "collapsed", + "CsName": "Collapsed", + "CsType": "byte", + "CType": "_Bool", + "Offset": 20, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "seconds; negative when it has not run" + "Doc": "a group hides its tracks (its chevron toggles this)" }, { - "CName": "allow_failure", - "CsName": "AllowFailure", + "CName": "muted", + "CsName": "Muted", "CsType": "byte", "CType": "_Bool", - "Offset": 20, + "Offset": 21, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "a failure does not fail the stage" - } - ], - "Doc": "" - }, - { - "CName": "cui_pipeline_opts", - "CsName": "NativePipelineOpts", - "Size": 24, - "Helpers": [], - "Fields": [ + "Doc": "toggled by the row's buttons (.toggles); a locked track can't be edited" + }, { - "CName": "_", - "CsName": "Sentinel", - "CsType": "int", - "CType": "int", + "CName": "locked", + "CsName": "Locked", + "CsType": "byte", + "CType": "_Bool", + "Offset": 22, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "job shown selected, set on a click" + "Doc": "toggled by the row's buttons (.toggles); a locked track can't be edited" }, { - "CName": "width", - "CsName": "Width", - "CsType": "NativeSize", - "CType": "cui_size", - "Offset": 4, + "CName": "color", + "CsName": "Color", + "CsType": "byte", + "CType": "uint8_t", + "Offset": 23, "Type": { - "Spelling": "cui_size", - "Kind": "Record" + "Spelling": "uint8_t", + "Kind": "UChar" }, - "Doc": "job shown selected, set on a click" + "Doc": "series color 1..6; 0 takes the group's, or the next one at the top level" }, { - "CName": "selected", - "CsName": "Selected", + "CName": "keys", + "CsName": "Keys", "CsType": "nint", - "CType": "int *", - "Offset": 16, + "CType": "cui_curve_key *", + "Offset": 24, "Type": { - "Spelling": "int *", + "Spelling": "cui_curve_key *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_curve_key", + "Kind": "Record" } }, - "Doc": "job shown selected, set on a click" - } - ], - "Doc": "" - }, - { - "CName": "cui_pipeline_result", - "CsName": "NativePipelineResult", - "Size": 8, - "Helpers": [], - "Fields": [ + "Doc": "sorted by x: x is the time in seconds, y the value (may be NULL)" + }, { - "CName": "clicked", - "CsName": "Clicked", + "CName": "key_count", + "CsName": "KeyCount", "CsType": "int", "CType": "int", + "Offset": 32, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "job clicked this frame (or chosen with Enter or Space), or -1" + "Doc": "keys in `keys`; the editor changes it when keys are added or removed" }, { - "CName": "hovered", - "CsName": "Hovered", + "CName": "key_capacity", + "CsName": "KeyCapacity", "CsType": "int", "CType": "int", - "Offset": 4, + "Offset": 36, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "job under the pointer, or -1" - } - ], - "Doc": "" - }, - { - "CName": "cui_query_field", - "CsName": "NativeQueryField", - "Size": 32, - "Helpers": [], - "Fields": [ + "Doc": "room in `keys`; a double click adds no key once it is full (or 0)" + }, { - "CName": "name", - "CsName": "Name", + "CName": "key_selected", + "CsName": "KeySelected", "CsType": "nint", - "CType": "const char *", + "CType": "_Bool *", + "Offset": 40, "Type": { - "Spelling": "const char *", + "Spelling": "_Bool *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "_Bool", + "Kind": "Bool" } }, - "Doc": "shown in the field select and in the text `cui_query_text` writes" - }, - { - "CName": "type", - "CsName": "Type", - "CsType": "QueryType", - "CType": "cui_query_type", - "Offset": 8, - "Type": { - "Spelling": "cui_query_type", - "Kind": "Enum" - }, - "Doc": "" + "Doc": "parallel to keys, kept by you; NULL: the keys are shown but not selectable" }, { - "CName": "choices", - "CsName": "Choices", + "CName": "clips", + "CsName": "Clips", "CsType": "nint", - "CType": "const char *const *", - "Offset": 16, + "CType": "cui_timeline_clip *", + "Offset": 48, "Type": { - "Spelling": "const char *const *", + "Spelling": "cui_timeline_clip *", "Kind": "Pointer", "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "cui_timeline_clip", + "Kind": "Record" } }, - "Doc": "CUI_QUERY_CHOICE: the values to pick from" + "Doc": "sorted by start, not overlapping (may be NULL)" }, { - "CName": "choice_count", - "CsName": "ChoiceCount", + "CName": "clip_count", + "CsName": "ClipCount", "CsType": "int", "CType": "int", - "Offset": 24, + "Offset": 56, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "number of `choices`" + "Doc": "clips in `clips`; lowered when selected clips are removed" } ], "Doc": "" }, { - "CName": "cui_query_node", - "CsName": "NativeQueryNode", - "Size": 80, + "CName": "cui_timeline_view", + "CsName": "NativeTimelineView", + "Size": 12, "Helpers": [], "Fields": [ { - "CName": "depth", - "CsName": "Depth", - "CsType": "int", - "CType": "int", + "CName": "start", + "CsName": "Start", + "CsType": "float", + "CType": "float", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "float", + "Kind": "Float" }, - "Doc": "0 for the outer group" + "Doc": "visible time range; end <= start fits the sequence" }, { - "CName": "group", - "CsName": "Group", - "CsType": "byte", - "CType": "_Bool", + "CName": "end", + "CsName": "End", + "CsType": "float", + "CType": "float", "Offset": 4, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "float", + "Kind": "Float" }, - "Doc": "a group of the nodes after it that are one level deeper; otherwise a rule" + "Doc": "visible time range; end <= start fits the sequence" }, { - "CName": "any", - "CsName": "Any", - "CsType": "byte", - "CType": "_Bool", - "Offset": 5, + "CName": "scroll", + "CsName": "Scroll", + "CsType": "float", + "CType": "float", + "Offset": 8, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "float", + "Kind": "Float" }, - "Doc": "group: any rule (or) instead of all (and)" - }, + "Doc": "rows scrolled off the top, in points" + } + ], + "Doc": "" + }, + { + "CName": "cui_timeline_editor_opts", + "CsName": "NativeTimelineEditorOpts", + "Size": 88, + "Helpers": [], + "Fields": [ { - "CName": "field", - "CsName": "Field", + "CName": "_", + "CsName": "Sentinel", "CsType": "int", "CType": "int", - "Offset": 8, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "rule: index into the fields" + "Doc": "" }, { - "CName": "op", - "CsName": "Op", + "CName": "start", + "CsName": "Start", + "CsType": "float", + "CType": "float", + "Offset": 4, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "the sequence in seconds; both 0 = 0..10" + }, + { + "CName": "end", + "CsName": "End", + "CsType": "float", + "CType": "float", + "Offset": 8, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "the sequence in seconds; both 0 = 0..10" + }, + { + "CName": "fps", + "CsName": "Fps", + "CsType": "float", + "CType": "float", + "Offset": 12, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "frames per second, default 30: snapping, stepping and frame labels" + }, + { + "CName": "ruler", + "CsName": "Ruler", "CsType": "int", "CType": "int", - "Offset": 12, + "Offset": 16, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "rule: see cui_query_op_name" + "Doc": "cui_timeline_ruler" }, { - "CName": "value", - "CsName": "Value", - "CsType": "sbyte", - "CType": "char[64]", - "Offset": 16, - "IsFixedBuffer": true, - "ArrayLength": 64, + "CName": "view", + "CsName": "View", + "CsType": "nint", + "CType": "cui_timeline_view *", + "Offset": 24, "Type": { - "Spelling": "char[64]", - "Kind": "ConstantArray", + "Spelling": "cui_timeline_view *", + "Kind": "Pointer", "Element": { - "Spelling": "char", - "Kind": "Char_S" + "Spelling": "cui_timeline_view", + "Kind": "Record" } }, - "Doc": "rule: the text, number or choice compared with" - } - ], - "Doc": "" - }, - { - "CName": "cui_query_opts", - "CsName": "NativeQueryOpts", - "Size": 20, - "Helpers": [], - "Fields": [ + "Doc": "NULL keeps it in the editor" + }, { - "CName": "_", - "CsName": "Sentinel", - "CsType": "int", - "CType": "int", + "CName": "in", + "CsName": "In", + "CsType": "nint", + "CType": "float *", + "Offset": 32, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "float *", + "Kind": "Pointer", + "Element": { + "Spelling": "float", + "Kind": "Float" + } }, - "Doc": "" + "Doc": "a play range: with both set, markers to drag in the ruler and shading outside" + }, + { + "CName": "out", + "CsName": "Out", + "CsType": "nint", + "CType": "float *", + "Offset": 40, + "Type": { + "Spelling": "float *", + "Kind": "Pointer", + "Element": { + "Spelling": "float", + "Kind": "Float" + } + }, + "Doc": "a play range: with both set, markers to drag in the ruler and shading outside" + }, + { + "CName": "current_track", + "CsName": "CurrentTrack", + "CsType": "nint", + "CType": "int *", + "Offset": 48, + "Type": { + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } + }, + "Doc": "the key last clicked or added, or -1; kept by you (NULL: in the editor)" + }, + { + "CName": "current_key", + "CsName": "CurrentKey", + "CsType": "nint", + "CType": "int *", + "Offset": 56, + "Type": { + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } + }, + "Doc": "the key last clicked or added, or -1; kept by you (NULL: in the editor)" }, { "CName": "width", "CsName": "Width", "CsType": "NativeSize", "CType": "cui_size", - "Offset": 4, + "Offset": 64, "Type": { "Spelling": "cui_size", "Kind": "Record" }, - "Doc": "" + "Doc": "default fill" }, { - "CName": "max_depth", - "CsName": "MaxDepth", - "CsType": "int", - "CType": "int", - "Offset": 12, + "CName": "height", + "CsName": "Height", + "CsType": "float", + "CType": "float", + "Offset": 72, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "float", + "Kind": "Float" }, - "Doc": "how deep groups may nest, default 3" + "Doc": "default: fits every track (up to 360)" }, { - "CName": "read_only", - "CsName": "ReadOnly", + "CName": "row_height", + "CsName": "RowHeight", + "CsType": "float", + "CType": "float", + "Offset": 76, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "default 26" + }, + { + "CName": "track_width", + "CsName": "TrackWidth", + "CsType": "float", + "CType": "float", + "Offset": 80, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "track list, default 184; narrower (then icons only) on a narrow editor" + }, + { + "CName": "toggles", + "CsName": "Toggles", "CsType": "byte", "CType": "_Bool", - "Offset": 16, + "Offset": 84, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "" + "Doc": "hide and lock buttons on every track" + }, + { + "CName": "free_drag", + "CsName": "FreeDrag", + "CsType": "byte", + "CType": "_Bool", + "Offset": 85, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "drags and scrubbing do not snap to frames" } ], "Doc": "" }, { - "CName": "cui_schedule_opts", - "CsName": "NativeScheduleOpts", - "Size": 32, + "CName": "cui_timeline_editor_result", + "CsName": "NativeTimelineEditorResult", + "Size": 52, "Helpers": [], "Fields": [ { - "CName": "_", - "CsName": "Sentinel", - "CsType": "int", - "CType": "int", + "CName": "changed", + "CsName": "Changed", + "CsType": "byte", + "CType": "_Bool", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "" + "Doc": "keys or clips moved, were added or removed, or a track flag changed" }, { - "CName": "width", - "CsName": "Width", - "CsType": "NativeSize", - "CType": "cui_size", - "Offset": 4, + "CName": "time_changed", + "CsName": "TimeChanged", + "CsType": "byte", + "CType": "_Bool", + "Offset": 1, "Type": { - "Spelling": "cui_size", - "Kind": "Record" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "" + "Doc": "time moved (scrub, ruler click, keys)" }, { - "CName": "now", - "CsName": "Now", - "CsType": "long", - "CType": "int64_t", - "Offset": 16, + "CName": "scrubbing", + "CsName": "Scrubbing", + "CsType": "byte", + "CType": "_Bool", + "Offset": 2, "Type": { - "Spelling": "int64_t", - "Kind": "LongLong" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "the next runs are counted from here, Unix seconds; 0: the clock" + "Doc": "the playhead is being dragged" }, { - "CName": "utc", - "CsName": "Utc", + "CName": "play_toggled", + "CsName": "PlayToggled", "CsType": "byte", "CType": "_Bool", - "Offset": 24, + "Offset": 3, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "times in UTC instead of local time" + "Doc": "Space: start or stop playback" }, { - "CName": "next_count", - "CsName": "NextCount", - "CsType": "int", - "CType": "int", - "Offset": 28, + "CName": "selection_changed", + "CsName": "SelectionChanged", + "CsType": "byte", + "CType": "_Bool", + "Offset": 4, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "runs listed, default 3, 0 hides them" - } - ], - "Doc": "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 `cron` (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." - }, - { - "CName": "cui_schedule_result", - "CsName": "NativeScheduleResult", - "Size": 16, - "Helpers": [], - "Fields": [ + "Doc": "a key or clip was selected or unselected this frame" + }, { - "CName": "changed", - "CsName": "Changed", + "CName": "view_changed", + "CsName": "ViewChanged", "CsType": "byte", "CType": "_Bool", + "Offset": 5, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "`cron` was edited this frame" + "Doc": "the visible time range or the row scroll changed (zoom, pan, fit)" }, { - "CName": "valid", - "CsName": "Valid", + "CName": "keys_moved", + "CsName": "KeysMoved", "CsType": "byte", "CType": "_Bool", - "Offset": 1, + "Offset": 6, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "`cron` is a valid expression" + "Doc": "selected keys moved this frame (drag or Alt+arrows)" }, { - "CName": "next", - "CsName": "Next", - "CsType": "long", - "CType": "int64_t", + "CName": "added_track", + "CsName": "AddedTrack", + "CsType": "int", + "CType": "int", "Offset": 8, "Type": { - "Spelling": "int64_t", - "Kind": "LongLong" - }, - "Doc": "the next run, Unix seconds, 0 none" - } - ], - "Doc": "" - }, - { - "CName": "cui_keymap_binding", - "CsName": "NativeKeymapBinding", - "Size": 24, - "Helpers": [], - "Fields": [ - { - "CName": "combo", - "CsName": "Combo", - "CsType": "NativeKeyCombo", - "CType": "cui_key_combo", - "Type": { - "Spelling": "cui_key_combo", - "Kind": "Record" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "the modifiers and key the action is bound to" + "Doc": "the key added this frame (double click), or -1" }, { - "CName": "action", - "CsName": "Action", - "CsType": "nint", - "CType": "const char *", - "Offset": 8, + "CName": "added_key", + "CsName": "AddedKey", + "CsType": "int", + "CType": "int", + "Offset": 12, "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" }, - "Doc": "name of the action, shown on the key and in its tooltip" + "Doc": "the key added this frame (double click), or -1" }, { - "CName": "category", - "CsName": "Category", + "CName": "removed_keys", + "CsName": "RemovedKeys", "CsType": "int", "CType": "int", "Offset": 16, @@ -20870,148 +22053,198 @@ "Spelling": "int", "Kind": "Int" }, - "Doc": "index into the categories, colors the key" - } - ], - "Doc": "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." - }, - { - "CName": "cui_keymap_opts", - "CsName": "NativeKeymapOpts", - "Size": 48, - "Helpers": [], - "Fields": [ + "Doc": "how many were removed this frame (Delete)" + }, { - "CName": "_", - "CsName": "Sentinel", + "CName": "removed_clips", + "CsName": "RemovedClips", "CsType": "int", "CType": "int", + "Offset": 20, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "" + "Doc": "how many were removed this frame (Delete)" }, { - "CName": "width", - "CsName": "Width", - "CsType": "NativeSize", - "CType": "cui_size", - "Offset": 4, + "CName": "clip_track", + "CsName": "ClipTrack", + "CsType": "int", + "CType": "int", + "Offset": 24, "Type": { - "Spelling": "cui_size", - "Kind": "Record" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "" + "Doc": "the clip moved or trimmed this frame, or -1" }, { - "CName": "categories", - "CsName": "Categories", - "CsType": "nint", - "CType": "const char *const *", - "Offset": 16, + "CName": "clip", + "CsName": "Clip", + "CsType": "int", + "CType": "int", + "Offset": 28, "Type": { - "Spelling": "const char *const *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } + "Spelling": "int", + "Kind": "Int" }, - "Doc": "names for the legend" + "Doc": "the clip moved or trimmed this frame, or -1" }, { - "CName": "category_count", - "CsName": "CategoryCount", + "CName": "toggled", + "CsName": "Toggled", "CsType": "int", "CType": "int", - "Offset": 24, + "Offset": 32, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "number of `categories`" + "Doc": "the track whose collapsed, muted or locked flag changed, or -1" }, { - "CName": "mods", - "CsName": "Mods", - "CsType": "nint", - "CType": "int *", - "Offset": 32, + "CName": "current_track", + "CsName": "CurrentTrack", + "CsType": "int", + "CType": "int", + "Offset": 36, "Type": { - "Spelling": "int *", - "Kind": "Pointer", - "Element": { - "Spelling": "int", - "Kind": "Int" - } + "Spelling": "int", + "Kind": "Int" }, - "Doc": "the modifiers shown; NULL: kept for you" + "Doc": "track of the key last clicked or added, or -1" }, { - "CName": "no_function_row", - "CsName": "NoFunctionRow", - "CsType": "byte", - "CType": "_Bool", + "CName": "current_key", + "CsName": "CurrentKey", + "CsType": "int", + "CType": "int", "Offset": 40, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "leaves out the row of function keys" - } - ], - "Doc": "" - }, - { - "CName": "cui_keymap_result", - "CsName": "NativeKeymapResult", - "Size": 8, - "Helpers": [], - "Fields": [ + "Doc": "index of that key in its track, or -1" + }, { - "CName": "clicked", - "CsName": "Clicked", - "CsType": "Key", - "CType": "cui_key", + "CName": "hovered_track", + "CsName": "HoveredTrack", + "CsType": "int", + "CType": "int", + "Offset": 44, "Type": { - "Spelling": "cui_key", - "Kind": "Enum" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "key clicked this frame, or `CUI_KEY_NONE`" + "Doc": "the key under the pointer, or -1" }, { - "CName": "conflicts", - "CsName": "Conflicts", + "CName": "hovered_key", + "CsName": "HoveredKey", "CsType": "int", "CType": "int", - "Offset": 4, + "Offset": 48, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "bindings that repeat a combination another binding already uses" + "Doc": "the key under the pointer, or -1" } ], "Doc": "" }, { - "CName": "cui_commit", - "CsName": "NativeCommit", - "Size": 48, - "Helpers": [], - "Fields": [ + "CName": "cui_kv_pair", + "CsName": "NativeKvPair", + "Size": 322, + "Helpers": [], + "Fields": [ { - "CName": "hash", - "CsName": "Hash", + "CName": "key", + "CsName": "Key", + "CsType": "sbyte", + "CType": "char[64]", + "IsFixedBuffer": true, + "ArrayLength": 64, + "Type": { + "Spelling": "char[64]", + "Kind": "ConstantArray", + "Element": { + "Spelling": "char", + "Kind": "Char_S" + } + }, + "Doc": "the name, e.g. \"Accept\"; edited in place" + }, + { + "CName": "value", + "CsName": "Value", + "CsType": "sbyte", + "CType": "char[256]", + "Offset": 64, + "IsFixedBuffer": true, + "ArrayLength": 256, + "Type": { + "Spelling": "char[256]", + "Kind": "ConstantArray", + "Element": { + "Spelling": "char", + "Kind": "Char_S" + } + }, + "Doc": "the value, e.g. \"application/json\"; edited in place" + }, + { + "CName": "enabled", + "CsName": "Enabled", + "CsType": "byte", + "CType": "_Bool", + "Offset": 320, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "the pair is in use; its checkbox toggles this" + }, + { + "CName": "secret", + "CsName": "Secret", + "CsType": "byte", + "CType": "_Bool", + "Offset": 321, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "the value shows as dots, with an eye to reveal it; the lock button toggles this" + } + ], + "Doc": "Rows of key = value pairs: HTTP headers, query parameters, environment variables. You own the array and it is edited in place. The checkbox turns a pair on or off, typing in the empty row at the end adds a pair, the x removes one. Secret values show as dots with an eye to reveal them. A key used twice, or one with a space, is marked. On a phone each key sits above its value. Returns true when anything changed." + }, + { + "CName": "cui_kv_editor_opts", + "CsName": "NativeKvEditorOpts", + "Size": 40, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" + }, + { + "CName": "key_placeholder", + "CsName": "KeyPlaceholder", "CsType": "nint", "CType": "const char *", + "Offset": 8, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -21021,14 +22254,14 @@ "IsConst": true } }, - "Doc": "the commit id; its first 7 characters are shown" + "Doc": "default \"Key\"" }, { - "CName": "message", - "CsName": "Message", + "CName": "value_placeholder", + "CsName": "ValuePlaceholder", "CsType": "nint", "CType": "const char *", - "Offset": 8, + "Offset": 16, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -21038,14 +22271,82 @@ "IsConst": true } }, - "Doc": "the first line is shown" + "Doc": "default \"Value\"" }, { - "CName": "author", - "CsName": "Author", + "CName": "no_toggles", + "CsName": "NoToggles", + "CsType": "byte", + "CType": "_Bool", + "Offset": 24, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "no checkboxes: every pair is on" + }, + { + "CName": "no_secrets", + "CsName": "NoSecrets", + "CsType": "byte", + "CType": "_Bool", + "Offset": 25, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "no eye button" + }, + { + "CName": "read_only", + "CsName": "ReadOnly", + "CsType": "byte", + "CType": "_Bool", + "Offset": 26, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "" + }, + { + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", + "Offset": 28, + "Type": { + "Spelling": "cui_size", + "Kind": "Record" + }, + "Doc": "default fill" + } + ], + "Doc": "" + }, + { + "CName": "cui_diagnostic", + "CsName": "NativeDiagnostic", + "Size": 48, + "Helpers": [], + "Fields": [ + { + "CName": "severity", + "CsName": "Severity", + "CsType": "Severity", + "CType": "cui_severity", + "Type": { + "Spelling": "cui_severity", + "Kind": "Enum" + }, + "Doc": "" + }, + { + "CName": "message", + "CsName": "Message", "CsType": "nint", "CType": "const char *", - "Offset": 16, + "Offset": 8, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -21055,14 +22356,14 @@ "IsConst": true } }, - "Doc": "shown in its own column, which a narrow panel leaves out" + "Doc": "the text of the row; the whole message shows on hover" }, { - "CName": "date", - "CsName": "Date", + "CName": "file", + "CsName": "File", "CsType": "nint", "CType": "const char *", - "Offset": 24, + "Offset": 16, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -21072,11 +22373,35 @@ "IsConst": true } }, - "Doc": "already formatted: \"2 hours ago\", \"Mar 3\"" + "Doc": "groups the rows; NULL or \"\" groups as \"No file\"" }, { - "CName": "refs", - "CsName": "Refs", + "CName": "line", + "CsName": "Line", + "CsType": "int", + "CType": "int", + "Offset": 24, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "1 based; 0 leaves it out" + }, + { + "CName": "column", + "CsName": "Column", + "CsType": "int", + "CType": "int", + "Offset": 28, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "1 based; 0 leaves it out" + }, + { + "CName": "source", + "CsName": "Source", "CsType": "nint", "CType": "const char *", "Offset": 32, @@ -21089,33 +22414,32 @@ "IsConst": true } }, - "Doc": "\"main, origin/main, tag: v1.2\", may be NULL" + "Doc": "\"gcc\", \"clang-tidy\"... (may be NULL)" }, { - "CName": "parent", - "CsName": "Parent", - "CsType": "int", - "CType": "int[2]", + "CName": "code", + "CsName": "Code", + "CsType": "nint", + "CType": "const char *", "Offset": 40, - "IsFixedBuffer": true, - "ArrayLength": 2, "Type": { - "Spelling": "int[2]", - "Kind": "ConstantArray", + "Spelling": "const char *", + "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } }, - "Doc": "row of each parent, -1 for none" + "Doc": "\"-Wunused-variable\"... (may be NULL)" } ], - "Doc": "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." + "Doc": "" }, { - "CName": "cui_commit_graph_opts", - "CsName": "NativeCommitGraphOpts", - "Size": 24, + "CName": "cui_problems_opts", + "CsName": "NativeProblemsOpts", + "Size": 20, "Helpers": [], "Fields": [ { @@ -21154,40 +22478,36 @@ "Doc": "" }, { - "CName": "selected", - "CsName": "Selected", - "CsType": "nint", - "CType": "int *", + "CName": "no_toolbar", + "CsName": "NoToolbar", + "CsType": "byte", + "CType": "_Bool", "Offset": 16, "Type": { - "Spelling": "int *", - "Kind": "Pointer", - "Element": { - "Spelling": "int", - "Kind": "Int" - } + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "the selected row or -1, kept by you; `NULL` keeps it in the component" + "Doc": "hides the severity toggles and the filter field above the list" } ], "Doc": "" }, { - "CName": "cui_commit_graph_result", - "CsName": "NativeCommitGraphResult", + "CName": "cui_problems_result", + "CsName": "NativeProblemsResult", "Size": 12, "Helpers": [], "Fields": [ { - "CName": "clicked", - "CsName": "Clicked", + "CName": "selected", + "CsName": "Selected", "CsType": "int", "CType": "int", "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "row clicked this frame, or -1" + "Doc": "diagnostic selected, or -1" }, { "CName": "activated", @@ -21199,11 +22519,11 @@ "Spelling": "int", "Kind": "Int" }, - "Doc": "row double-clicked or chosen with Enter this frame, or -1" + "Doc": "diagnostic opened this frame (Enter, double-click), or -1" }, { - "CName": "hovered", - "CsName": "Hovered", + "CName": "shown", + "CsName": "Shown", "CsType": "int", "CType": "int", "Offset": 8, @@ -21211,20 +22531,20 @@ "Spelling": "int", "Kind": "Int" }, - "Doc": "row under the pointer, or -1" + "Doc": "diagnostics that pass the filters" } ], "Doc": "" }, { - "CName": "cui_graph_node", - "CsName": "NativeGraphNode", + "CName": "cui_pipeline_job", + "CsName": "NativePipelineJob", "Size": 24, "Helpers": [], "Fields": [ { - "CName": "label", - "CsName": "Label", + "CName": "name", + "CsName": "Name", "CsType": "nint", "CType": "const char *", "Type": { @@ -21236,76 +22556,63 @@ "IsConst": true } }, - "Doc": "" + "Doc": "shown on the job's row and in its tooltip" }, { - "CName": "detail", - "CsName": "Detail", - "CsType": "nint", - "CType": "const char *", + "CName": "stage", + "CsName": "Stage", + "CsType": "int", + "CType": "int", "Offset": 8, "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" }, - "Doc": "smaller second line under the label, e.g. the node's kind; `NULL` for none" + "Doc": "index into the stage names" }, { - "CName": "tone", - "CsName": "Tone", - "CsType": "Tone", - "CType": "cui_tone", - "Offset": 16, + "CName": "status", + "CsName": "Status", + "CsType": "JobStatus", + "CType": "cui_job_status", + "Offset": 12, "Type": { - "Spelling": "cui_tone", + "Spelling": "cui_job_status", "Kind": "Enum" }, "Doc": "" - } - ], - "Doc": "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." - }, - { - "CName": "cui_graph_edge", - "CsName": "NativeGraphEdge", - "Size": 8, - "Helpers": [], - "Fields": [ + }, { - "CName": "from", - "CsName": "From", - "CsType": "int", - "CType": "int", + "CName": "duration", + "CsName": "Duration", + "CsType": "float", + "CType": "float", + "Offset": 16, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "float", + "Kind": "Float" }, - "Doc": "index of the node the arrow starts at" + "Doc": "seconds; negative when it has not run" }, { - "CName": "to", - "CsName": "To", - "CsType": "int", - "CType": "int", - "Offset": 4, + "CName": "allow_failure", + "CsName": "AllowFailure", + "CsType": "byte", + "CType": "_Bool", + "Offset": 20, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "index of the node the arrow points to" + "Doc": "a failure does not fail the stage" } ], "Doc": "" }, { - "CName": "cui_graph_opts", - "CsName": "NativeGraphOpts", - "Size": 32, + "CName": "cui_pipeline_opts", + "CsName": "NativePipelineOpts", + "Size": 24, "Helpers": [], "Fields": [ { @@ -21317,7 +22624,7 @@ "Spelling": "int", "Kind": "Int" }, - "Doc": "" + "Doc": "job shown selected, set on a click" }, { "CName": "width", @@ -21329,38 +22636,14 @@ "Spelling": "cui_size", "Kind": "Record" }, - "Doc": "" - }, - { - "CName": "height", - "CsName": "Height", - "CsType": "float", - "CType": "float", - "Offset": 12, - "Type": { - "Spelling": "float", - "Kind": "Float" - }, - "Doc": "" - }, - { - "CName": "top_down", - "CsName": "TopDown", - "CsType": "byte", - "CType": "_Bool", - "Offset": 16, - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Doc": "layers stack from top to bottom instead of running side by side" + "Doc": "job shown selected, set on a click" }, { "CName": "selected", "CsName": "Selected", "CsType": "nint", "CType": "int *", - "Offset": 24, + "Offset": 16, "Type": { "Spelling": "int *", "Kind": "Pointer", @@ -21369,15 +22652,15 @@ "Kind": "Int" } }, - "Doc": "the selected node or -1, kept by you; `NULL` keeps it in the component" + "Doc": "job shown selected, set on a click" } ], "Doc": "" }, { - "CName": "cui_graph_result", - "CsName": "NativeGraphResult", - "Size": 12, + "CName": "cui_pipeline_result", + "CsName": "NativePipelineResult", + "Size": 8, "Helpers": [], "Fields": [ { @@ -21389,39 +22672,27 @@ "Spelling": "int", "Kind": "Int" }, - "Doc": "node clicked this frame, or -1" - }, - { - "CName": "activated", - "CsName": "Activated", - "CsType": "int", - "CType": "int", - "Offset": 4, - "Type": { - "Spelling": "int", - "Kind": "Int" - }, - "Doc": "node double-clicked or chosen with Enter this frame, or -1" + "Doc": "job clicked this frame (or chosen with Enter or Space), or -1" }, { "CName": "hovered", "CsName": "Hovered", "CsType": "int", "CType": "int", - "Offset": 8, + "Offset": 4, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "node under the pointer, or -1" + "Doc": "job under the pointer, or -1" } ], "Doc": "" }, { - "CName": "cui_net_request", - "CsName": "NativeNetRequest", - "Size": 72, + "CName": "cui_query_field", + "CsName": "NativeQueryField", + "Size": 32, "Helpers": [], "Fields": [ { @@ -21438,325 +22709,255 @@ "IsConst": true } }, - "Doc": "path or URL; the last part is shown" + "Doc": "shown in the field select and in the text `cui_query_text` writes" }, { - "CName": "method", - "CsName": "Method", - "CsType": "nint", - "CType": "const char *", + "CName": "type", + "CsName": "Type", + "CsType": "QueryType", + "CType": "cui_query_type", "Offset": 8, "Type": { - "Spelling": "const char *", + "Spelling": "cui_query_type", + "Kind": "Enum" + }, + "Doc": "" + }, + { + "CName": "choices", + "CsName": "Choices", + "CsType": "nint", + "CType": "const char *const *", + "Offset": 16, + "Type": { + "Spelling": "const char *const *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } }, - "Doc": "\"GET\"" + "Doc": "CUI_QUERY_CHOICE: the values to pick from" }, { - "CName": "status", - "CsName": "Status", + "CName": "choice_count", + "CsName": "ChoiceCount", "CsType": "int", "CType": "int", - "Offset": 16, + "Offset": 24, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "0 while pending or when it failed" - }, + "Doc": "number of `choices`" + } + ], + "Doc": "" + }, + { + "CName": "cui_query_node", + "CsName": "NativeQueryNode", + "Size": 80, + "Helpers": [], + "Fields": [ { - "CName": "type", - "CsName": "Type", - "CsType": "nint", - "CType": "const char *", - "Offset": 24, + "CName": "depth", + "CsName": "Depth", + "CsType": "int", + "CType": "int", "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" }, - "Doc": "\"fetch\", \"script\", \"image\"..." + "Doc": "0 for the outer group" }, { - "CName": "size", - "CsName": "Size", - "CsType": "double", - "CType": "double", - "Offset": 32, - "Type": { - "Spelling": "double", - "Kind": "Double" - }, - "Doc": "bytes transferred" - }, - { - "CName": "start", - "CsName": "Start", - "CsType": "double", - "CType": "double", - "Offset": 40, + "CName": "group", + "CsName": "Group", + "CsType": "byte", + "CType": "_Bool", + "Offset": 4, "Type": { - "Spelling": "double", - "Kind": "Double" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "seconds from the start of the page" + "Doc": "a group of the nodes after it that are one level deeper; otherwise a rule" }, { - "CName": "timing", - "CsName": "Timing", - "CsType": "float", - "CType": "float[6]", - "Offset": 48, - "IsFixedBuffer": true, - "ArrayLength": 6, + "CName": "any", + "CsName": "Any", + "CsType": "byte", + "CType": "_Bool", + "Offset": 5, "Type": { - "Spelling": "float[6]", - "Kind": "ConstantArray", - "Element": { - "Spelling": "float", - "Kind": "Float" - } + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "seconds: queued, dns, connect, tls, waiting, download" - } - ], - "Doc": "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's 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." - }, - { - "CName": "cui_waterfall_opts", - "CsName": "NativeWaterfallOpts", - "Size": 40, - "Helpers": [], - "Fields": [ + "Doc": "group: any rule (or) instead of all (and)" + }, { - "CName": "_", - "CsName": "Sentinel", + "CName": "field", + "CsName": "Field", "CsType": "int", "CType": "int", + "Offset": 8, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "" - }, - { - "CName": "width", - "CsName": "Width", - "CsType": "NativeSize", - "CType": "cui_size", - "Offset": 4, - "Type": { - "Spelling": "cui_size", - "Kind": "Record" - }, - "Doc": "" + "Doc": "rule: index into the fields" }, { - "CName": "height", - "CsName": "Height", - "CsType": "float", - "CType": "float", + "CName": "op", + "CsName": "Op", + "CsType": "int", + "CType": "int", "Offset": 12, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "" + "Doc": "rule: see cui_query_op_name" }, { - "CName": "selected", - "CsName": "Selected", - "CsType": "nint", - "CType": "int *", + "CName": "value", + "CsName": "Value", + "CsType": "sbyte", + "CType": "char[64]", "Offset": 16, + "IsFixedBuffer": true, + "ArrayLength": 64, "Type": { - "Spelling": "int *", - "Kind": "Pointer", + "Spelling": "char[64]", + "Kind": "ConstantArray", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "char", + "Kind": "Char_S" } }, - "Doc": "the selected request or -1, kept by you; `NULL` keeps it in the component" - }, - { - "CName": "dom_loaded", - "CsName": "DomLoaded", - "CsType": "double", - "CType": "double", - "Offset": 24, - "Type": { - "Spelling": "double", - "Kind": "Double" - }, - "Doc": "seconds; 0: no line" - }, - { - "CName": "loaded", - "CsName": "Loaded", - "CsType": "double", - "CType": "double", - "Offset": 32, - "Type": { - "Spelling": "double", - "Kind": "Double" - }, - "Doc": "seconds; 0: no line" + "Doc": "rule: the text, number or choice compared with" } ], "Doc": "" }, { - "CName": "cui_waterfall_result", - "CsName": "NativeWaterfallResult", - "Size": 12, + "CName": "cui_query_opts", + "CsName": "NativeQueryOpts", + "Size": 20, "Helpers": [], "Fields": [ { - "CName": "clicked", - "CsName": "Clicked", + "CName": "_", + "CsName": "Sentinel", "CsType": "int", "CType": "int", "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "request clicked this frame, or -1" + "Doc": "" }, { - "CName": "activated", - "CsName": "Activated", - "CsType": "int", - "CType": "int", + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", "Offset": 4, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_size", + "Kind": "Record" }, - "Doc": "request double-clicked or chosen with Enter this frame, or -1" + "Doc": "" }, { - "CName": "hovered", - "CsName": "Hovered", + "CName": "max_depth", + "CsName": "MaxDepth", "CsType": "int", "CType": "int", - "Offset": 8, + "Offset": 12, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "request under the pointer, or -1" - } - ], - "Doc": "" - }, - { - "CName": "cui_trace_track", - "CsName": "NativeTraceTrack", - "Size": 16, - "Helpers": [], - "Fields": [ - { - "CName": "name", - "CsName": "Name", - "CsType": "nint", - "CType": "const char *", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - }, - "Doc": "the lane's name, in the column on the left" + "Doc": "how deep groups may nest, default 3" }, { - "CName": "collapsed", - "CsName": "Collapsed", + "CName": "read_only", + "CsName": "ReadOnly", "CsType": "byte", "CType": "_Bool", - "Offset": 8, + "Offset": 16, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "the lane shows only its top row; a click on its name toggles this" + "Doc": "" } ], - "Doc": "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+wheel or a drag pans, click selects a span, Shift+drag measures a time range. A lane's name folds it. Keys: Left and Right step through the selected span's lane, + 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." + "Doc": "" }, { - "CName": "cui_trace_span", - "CsName": "NativeTraceSpan", - "Size": 40, + "CName": "cui_schedule_opts", + "CsName": "NativeScheduleOpts", + "Size": 32, "Helpers": [], "Fields": [ { - "CName": "name", - "CsName": "Name", - "CsType": "nint", - "CType": "const char *", + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" }, - "Doc": "drawn in the span when it fits, and in its tooltip" + "Doc": "" }, { - "CName": "start", - "CsName": "Start", - "CsType": "double", - "CType": "double", - "Offset": 8, + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", + "Offset": 4, "Type": { - "Spelling": "double", - "Kind": "Double" + "Spelling": "cui_size", + "Kind": "Record" }, - "Doc": "when the span begins, in seconds" + "Doc": "" }, { - "CName": "end", - "CsName": "End", - "CsType": "double", - "CType": "double", + "CName": "now", + "CsName": "Now", + "CsType": "long", + "CType": "int64_t", "Offset": 16, "Type": { - "Spelling": "double", - "Kind": "Double" + "Spelling": "int64_t", + "Kind": "LongLong" }, - "Doc": "when the span ends, in seconds; end >= start" + "Doc": "the next runs are counted from here, Unix seconds; 0: the clock" }, { - "CName": "track", - "CsName": "Track", - "CsType": "int", - "CType": "int", + "CName": "utc", + "CsName": "Utc", + "CsType": "byte", + "CType": "_Bool", "Offset": 24, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "index into the tracks: the lane the span is drawn in" + "Doc": "times in UTC instead of local time" }, { - "CName": "depth", - "CsName": "Depth", + "CName": "next_count", + "CsName": "NextCount", "CsType": "int", "CType": "int", "Offset": 28, @@ -21764,144 +22965,108 @@ "Spelling": "int", "Kind": "Int" }, - "Doc": "row within the lane, 0 = top; a child lies within its parent" - }, - { - "CName": "color_key", - "CsName": "ColorKey", - "CsType": "uint", - "CType": "uint32_t", - "Offset": 32, - "Type": { - "Spelling": "uint32_t", - "Kind": "UInt" - }, - "Doc": "picks the color; 0: hashed from the name" + "Doc": "runs listed, default 3, 0 hides them" } ], - "Doc": "" + "Doc": "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 `cron` (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." }, { - "CName": "cui_trace_marker", - "CsName": "NativeTraceMarker", - "Size": 24, + "CName": "cui_schedule_result", + "CsName": "NativeScheduleResult", + "Size": 16, "Helpers": [], "Fields": [ { - "CName": "name", - "CsName": "Name", - "CsType": "nint", - "CType": "const char *", + "CName": "changed", + "CsName": "Changed", + "CsType": "byte", + "CType": "_Bool", "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "" + "Doc": "`cron` was edited this frame" }, { - "CName": "time", - "CsName": "Time", - "CsType": "double", - "CType": "double", - "Offset": 8, + "CName": "valid", + "CsName": "Valid", + "CsType": "byte", + "CType": "_Bool", + "Offset": 1, "Type": { - "Spelling": "double", - "Kind": "Double" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "" + "Doc": "`cron` is a valid expression" }, { - "CName": "tone", - "CsName": "Tone", - "CsType": "Tone", - "CType": "cui_tone", - "Offset": 16, + "CName": "next", + "CsName": "Next", + "CsType": "long", + "CType": "int64_t", + "Offset": 8, "Type": { - "Spelling": "cui_tone", - "Kind": "Enum" + "Spelling": "int64_t", + "Kind": "LongLong" }, - "Doc": "" + "Doc": "the next run, Unix seconds, 0 none" } ], "Doc": "" }, { - "CName": "cui_trace_view", - "CsName": "NativeTraceView", - "Size": 40, + "CName": "cui_keymap_binding", + "CsName": "NativeKeymapBinding", + "Size": 24, "Helpers": [], "Fields": [ { - "CName": "start", - "CsName": "Start", - "CsType": "double", - "CType": "double", + "CName": "combo", + "CsName": "Combo", + "CsType": "NativeKeyCombo", + "CType": "cui_key_combo", "Type": { - "Spelling": "double", - "Kind": "Double" + "Spelling": "cui_key_combo", + "Kind": "Record" }, - "Doc": "visible time range; end <= start fits everything" + "Doc": "the modifiers and key the action is bound to" }, { - "CName": "end", - "CsName": "End", - "CsType": "double", - "CType": "double", + "CName": "action", + "CsName": "Action", + "CsType": "nint", + "CType": "const char *", "Offset": 8, "Type": { - "Spelling": "double", - "Kind": "Double" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "visible time range; end <= start fits everything" + "Doc": "name of the action, shown on the key and in its tooltip" }, { - "CName": "scroll", - "CsName": "Scroll", - "CsType": "float", - "CType": "float", + "CName": "category", + "CsName": "Category", + "CsType": "int", + "CType": "int", "Offset": 16, "Type": { - "Spelling": "float", - "Kind": "Float" - }, - "Doc": "points scrolled down" - }, - { - "CName": "mark_start", - "CsName": "MarkStart", - "CsType": "double", - "CType": "double", - "Offset": 24, - "Type": { - "Spelling": "double", - "Kind": "Double" - }, - "Doc": "measured range; mark_end <= mark_start: none" - }, - { - "CName": "mark_end", - "CsName": "MarkEnd", - "CsType": "double", - "CType": "double", - "Offset": 32, - "Type": { - "Spelling": "double", - "Kind": "Double" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "measured range; mark_end <= mark_start: none" + "Doc": "index into the categories, colors the key" } ], - "Doc": "" + "Doc": "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." }, { - "CName": "cui_trace_opts", - "CsName": "NativeTraceOpts", - "Size": 40, + "CName": "cui_keymap_opts", + "CsName": "NativeKeymapOpts", + "Size": 48, "Helpers": [], "Fields": [ { @@ -21928,93 +23093,90 @@ "Doc": "" }, { - "CName": "height", - "CsName": "Height", - "CsType": "float", - "CType": "float", - "Offset": 12, + "CName": "categories", + "CsName": "Categories", + "CsType": "nint", + "CType": "const char *const *", + "Offset": 16, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char *const *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } }, - "Doc": "default 320" + "Doc": "names for the legend" }, { - "CName": "row_height", - "CsName": "RowHeight", - "CsType": "float", - "CType": "float", - "Offset": 16, + "CName": "category_count", + "CsName": "CategoryCount", + "CsType": "int", + "CType": "int", + "Offset": 24, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "default 20" + "Doc": "number of `categories`" }, { - "CName": "markers", - "CsName": "Markers", + "CName": "mods", + "CsName": "Mods", "CsType": "nint", - "CType": "const cui_trace_marker *", - "Offset": 24, + "CType": "int *", + "Offset": 32, "Type": { - "Spelling": "const cui_trace_marker *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_trace_marker", - "Kind": "Record", - "IsConst": true + "Spelling": "int", + "Kind": "Int" } }, - "Doc": "moments drawn as lines across every lane, named in a strip under the ruler" + "Doc": "the modifiers shown; NULL: kept for you" }, { - "CName": "marker_count", - "CsName": "MarkerCount", - "CsType": "int", - "CType": "int", - "Offset": 32, + "CName": "no_function_row", + "CsName": "NoFunctionRow", + "CsType": "byte", + "CType": "_Bool", + "Offset": 40, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "number of `markers`" + "Doc": "leaves out the row of function keys" } ], "Doc": "" }, { - "CName": "cui_trace_result", - "CsName": "NativeTraceResult", + "CName": "cui_keymap_result", + "CsName": "NativeKeymapResult", "Size": 8, "Helpers": [], "Fields": [ { - "CName": "selection_changed", - "CsName": "SelectionChanged", - "CsType": "byte", - "CType": "_Bool", - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Doc": "`*selected` changed this frame (click or keys)" - }, - { - "CName": "view_changed", - "CsName": "ViewChanged", - "CsType": "byte", - "CType": "_Bool", - "Offset": 1, + "CName": "clicked", + "CsName": "Clicked", + "CsType": "Key", + "CType": "cui_key", "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_key", + "Kind": "Enum" }, - "Doc": "the visible time range or the scroll in `*view` changed (zoom, pan, fit)" + "Doc": "key clicked this frame, or `CUI_KEY_NONE`" }, { - "CName": "hovered", - "CsName": "Hovered", + "CName": "conflicts", + "CsName": "Conflicts", "CsType": "int", "CType": "int", "Offset": 4, @@ -22022,126 +23184,125 @@ "Spelling": "int", "Kind": "Int" }, - "Doc": "span under the pointer, or -1" + "Doc": "bindings that repeat a combination another binding already uses" } ], "Doc": "" }, { - "CName": "cui_regex_match", - "CsName": "NativeRegexMatch", - "Size": 332, - "Helpers": [ - { - "CsName": "NativeRegexMatchGroupNameArray2", - "ElementType": "sbyte", - "Length": 24 - }, - { - "CsName": "NativeRegexMatchGroupNameArray1", - "ElementType": "NativeRegexMatchGroupNameArray2", - "Length": 10 - } - ], + "CName": "cui_commit", + "CsName": "NativeCommit", + "Size": 48, + "Helpers": [], "Fields": [ { - "CName": "start", - "CsName": "Start", - "CsType": "int", - "CType": "int", + "CName": "hash", + "CsName": "Hash", + "CsType": "nint", + "CType": "const char *", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "bytes" + "Doc": "the commit id; its first 7 characters are shown" }, { - "CName": "end", - "CsName": "End", - "CsType": "int", - "CType": "int", - "Offset": 4, + "CName": "message", + "CsName": "Message", + "CsType": "nint", + "CType": "const char *", + "Offset": 8, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "bytes" + "Doc": "the first line is shown" }, { - "CName": "groups", - "CsName": "Groups", - "CsType": "int", - "CType": "int", - "Offset": 8, + "CName": "author", + "CsName": "Author", + "CsType": "nint", + "CType": "const char *", + "Offset": 16, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "capture groups in the pattern" + "Doc": "shown in its own column, which a narrow panel leaves out" }, { - "CName": "group_start", - "CsName": "GroupStart", - "CsType": "int", - "CType": "int[10]", - "Offset": 12, - "IsFixedBuffer": true, - "ArrayLength": 10, + "CName": "date", + "CsName": "Date", + "CsType": "nint", + "CType": "const char *", + "Offset": 24, "Type": { - "Spelling": "int[10]", - "Kind": "ConstantArray", + "Spelling": "const char *", + "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } }, - "Doc": "1 based; -1 when a group took no part" + "Doc": "already formatted: \"2 hours ago\", \"Mar 3\"" }, { - "CName": "group_end", - "CsName": "GroupEnd", - "CsType": "int", - "CType": "int[10]", - "Offset": 52, - "IsFixedBuffer": true, - "ArrayLength": 10, + "CName": "refs", + "CsName": "Refs", + "CsType": "nint", + "CType": "const char *", + "Offset": 32, "Type": { - "Spelling": "int[10]", - "Kind": "ConstantArray", + "Spelling": "const char *", + "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } }, - "Doc": "1 based; -1 when a group took no part" + "Doc": "\"main, origin/main, tag: v1.2\", may be NULL" }, { - "CName": "group_name", - "CsName": "GroupName", - "CsType": "NativeRegexMatchGroupNameArray1", - "CType": "char[10][24]", - "Offset": 92, - "ArrayLength": 10, + "CName": "parent", + "CsName": "Parent", + "CsType": "int", + "CType": "int[2]", + "Offset": 40, + "IsFixedBuffer": true, + "ArrayLength": 2, "Type": { - "Spelling": "char[10][24]", + "Spelling": "int[2]", "Kind": "ConstantArray", "Element": { - "Spelling": "char[24]", - "Kind": "ConstantArray", - "Element": { - "Spelling": "char", - "Kind": "Char_S" - } + "Spelling": "int", + "Kind": "Int" } }, - "Doc": "the name of each `(? )` group, indexed like `group_start`; \"\" when unnamed" + "Doc": "row of each parent, -1 for none" } ], - "Doc": "" + "Doc": "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." }, { - "CName": "cui_regex_tester_opts", - "CsName": "NativeRegexTesterOpts", + "CName": "cui_commit_graph_opts", + "CsName": "NativeCommitGraphOpts", "Size": 24, "Helpers": [], "Fields": [ @@ -22178,11 +23339,11 @@ "Spelling": "float", "Kind": "Float" }, - "Doc": "of the test text, default 180" + "Doc": "" }, { - "CName": "flags", - "CsName": "Flags", + "CName": "selected", + "CsName": "Selected", "CsType": "nint", "CType": "int *", "Offset": 16, @@ -22194,31 +23355,31 @@ "Kind": "Int" } }, - "Doc": "CUI_REGEX_*; NULL: kept for you" + "Doc": "the selected row or -1, kept by you; `NULL` keeps it in the component" } ], - "Doc": "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." + "Doc": "" }, { - "CName": "cui_regex_tester_result", - "CsName": "NativeRegexTesterResult", - "Size": 16, + "CName": "cui_commit_graph_result", + "CsName": "NativeCommitGraphResult", + "Size": 12, "Helpers": [], "Fields": [ { - "CName": "valid", - "CsName": "Valid", - "CsType": "byte", - "CType": "_Bool", + "CName": "clicked", + "CsName": "Clicked", + "CsType": "int", + "CType": "int", "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "the pattern is valid and matching finished in time" + "Doc": "row clicked this frame, or -1" }, { - "CName": "matches", - "CsName": "Matches", + "CName": "activated", + "CsName": "Activated", "CsType": "int", "CType": "int", "Offset": 4, @@ -22226,37 +23387,32 @@ "Spelling": "int", "Kind": "Int" }, - "Doc": "matches found in the test text" + "Doc": "row double-clicked or chosen with Enter this frame, or -1" }, { - "CName": "error", - "CsName": "Error", - "CsType": "nint", - "CType": "const char *", + "CName": "hovered", + "CsName": "Hovered", + "CsType": "int", + "CType": "int", "Offset": 8, "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" }, - "Doc": "why, when `valid` is false; otherwise `NULL`" + "Doc": "row under the pointer, or -1" } ], "Doc": "" }, { - "CName": "cui_test_item", - "CsName": "NativeTestItem", - "Size": 32, + "CName": "cui_graph_node", + "CsName": "NativeGraphNode", + "Size": 24, "Helpers": [], "Fields": [ { - "CName": "name", - "CsName": "Name", + "CName": "label", + "CsName": "Label", "CsType": "nint", "CType": "const char *", "Type": { @@ -22268,50 +23424,14 @@ "IsConst": true } }, - "Doc": "name of the suite or test; the toolbar's field filters by it" - }, - { - "CName": "depth", - "CsName": "Depth", - "CsType": "int", - "CType": "int", - "Offset": 8, - "Type": { - "Spelling": "int", - "Kind": "Int" - }, - "Doc": "0 for the top suites" - }, - { - "CName": "status", - "CsName": "Status", - "CsType": "JobStatus", - "CType": "cui_job_status", - "Offset": 12, - "Type": { - "Spelling": "cui_job_status", - "Kind": "Enum" - }, - "Doc": "a suite's own status is ignored when it has tests" - }, - { - "CName": "duration", - "CsName": "Duration", - "CsType": "float", - "CType": "float", - "Offset": 16, - "Type": { - "Spelling": "float", - "Kind": "Float" - }, - "Doc": "seconds, negative when it has not run" + "Doc": "" }, { - "CName": "message", - "CsName": "Message", + "CName": "detail", + "CsName": "Detail", "CsType": "nint", "CType": "const char *", - "Offset": 24, + "Offset": 8, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -22321,168 +23441,180 @@ "IsConst": true } }, - "Doc": "why it failed, may be NULL" + "Doc": "smaller second line under the label, e.g. the node's kind; `NULL` for none" + }, + { + "CName": "tone", + "CsName": "Tone", + "CsType": "Tone", + "CType": "cui_tone", + "Offset": 16, + "Type": { + "Spelling": "cui_tone", + "Kind": "Enum" + }, + "Doc": "" } ], - "Doc": "Test results as a tree: suites fold, each test shows its status and time, and a failure shows its message under it. A suite's 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's." + "Doc": "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." }, { - "CName": "cui_test_explorer_opts", - "CsName": "NativeTestExplorerOpts", - "Size": 16, + "CName": "cui_graph_edge", + "CsName": "NativeGraphEdge", + "Size": 8, "Helpers": [], "Fields": [ { - "CName": "_", - "CsName": "Sentinel", + "CName": "from", + "CsName": "From", "CsType": "int", "CType": "int", "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "default 320" + "Doc": "index of the node the arrow starts at" }, { - "CName": "width", - "CsName": "Width", - "CsType": "NativeSize", - "CType": "cui_size", + "CName": "to", + "CsName": "To", + "CsType": "int", + "CType": "int", "Offset": 4, "Type": { - "Spelling": "cui_size", - "Kind": "Record" - }, - "Doc": "default 320" - }, - { - "CName": "height", - "CsName": "Height", - "CsType": "float", - "CType": "float", - "Offset": 12, - "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "default 320" + "Doc": "index of the node the arrow points to" } ], "Doc": "" }, { - "CName": "cui_test_explorer_result", - "CsName": "NativeTestExplorerResult", + "CName": "cui_graph_opts", + "CsName": "NativeGraphOpts", "Size": 32, "Helpers": [], "Fields": [ { - "CName": "selected", - "CsName": "Selected", + "CName": "_", + "CsName": "Sentinel", "CsType": "int", "CType": "int", "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "items, or -1" + "Doc": "" }, { - "CName": "activated", - "CsName": "Activated", - "CsType": "int", - "CType": "int", + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", "Offset": 4, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_size", + "Kind": "Record" }, - "Doc": "items, or -1" + "Doc": "" }, { - "CName": "run", - "CsName": "Run", - "CsType": "int", - "CType": "int", - "Offset": 8, + "CName": "height", + "CsName": "Height", + "CsType": "float", + "CType": "float", + "Offset": 12, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "float", + "Kind": "Float" }, - "Doc": "item whose run button was pressed this frame, or -1" + "Doc": "" }, { - "CName": "run_all", - "CsName": "RunAll", + "CName": "top_down", + "CsName": "TopDown", "CsType": "byte", "CType": "_Bool", - "Offset": 12, + "Offset": 16, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "the Run all button was pressed this frame" + "Doc": "layers stack from top to bottom instead of running side by side" }, { - "CName": "passed", - "CsName": "Passed", - "CsType": "int", - "CType": "int", - "Offset": 16, + "CName": "selected", + "CsName": "Selected", + "CsType": "nint", + "CType": "int *", + "Offset": 24, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } }, - "Doc": "tests, not suites" - }, + "Doc": "the selected node or -1, kept by you; `NULL` keeps it in the component" + } + ], + "Doc": "" + }, + { + "CName": "cui_graph_result", + "CsName": "NativeGraphResult", + "Size": 12, + "Helpers": [], + "Fields": [ { - "CName": "failed", - "CsName": "Failed", + "CName": "clicked", + "CsName": "Clicked", "CsType": "int", "CType": "int", - "Offset": 20, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "tests, not suites" + "Doc": "node clicked this frame, or -1" }, { - "CName": "skipped", - "CsName": "Skipped", + "CName": "activated", + "CsName": "Activated", "CsType": "int", "CType": "int", - "Offset": 24, + "Offset": 4, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "tests, not suites" + "Doc": "node double-clicked or chosen with Enter this frame, or -1" }, { - "CName": "total", - "CsName": "Total", + "CName": "hovered", + "CsName": "Hovered", "CsType": "int", "CType": "int", - "Offset": 28, + "Offset": 8, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "tests, not suites" + "Doc": "node under the pointer, or -1" } ], "Doc": "" }, { - "CName": "cui_stack_frame", - "CsName": "NativeStackFrame", - "Size": 48, + "CName": "cui_net_request", + "CsName": "NativeNetRequest", + "Size": 72, "Helpers": [], "Fields": [ { - "CName": "function", - "CsName": "Function", + "CName": "name", + "CsName": "Name", "CsType": "nint", "CType": "const char *", "Type": { @@ -22494,11 +23626,11 @@ "IsConst": true } }, - "Doc": "name of the function; `NULL` or \"\" shows as " + "Doc": "path or URL; the last part is shown" }, { - "CName": "file", - "CsName": "File", + "CName": "method", + "CsName": "Method", "CsType": "nint", "CType": "const char *", "Offset": 8, @@ -22511,11 +23643,11 @@ "IsConst": true } }, - "Doc": "path shown with the line and column; on a phone only the file's name" + "Doc": "\"GET\"" }, { - "CName": "line", - "CsName": "Line", + "CName": "status", + "CsName": "Status", "CsType": "int", "CType": "int", "Offset": 16, @@ -22523,84 +23655,73 @@ "Spelling": "int", "Kind": "Int" }, - "Doc": "1 based; 0 leaves it out" + "Doc": "0 while pending or when it failed" }, { - "CName": "column", - "CsName": "Column", - "CsType": "int", - "CType": "int", - "Offset": 20, + "CName": "type", + "CsName": "Type", + "CsType": "nint", + "CType": "const char *", + "Offset": 24, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "1 based; 0 leaves it out" + "Doc": "\"fetch\", \"script\", \"image\"..." }, { - "CName": "external", - "CsName": "External", - "CsType": "byte", - "CType": "_Bool", - "Offset": 24, + "CName": "size", + "CsName": "Size", + "CsType": "double", + "CType": "double", + "Offset": 32, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "double", + "Kind": "Double" }, - "Doc": "library or runtime code" + "Doc": "bytes transferred" }, { - "CName": "source", - "CsName": "Source", - "CsType": "nint", - "CType": "const char *const *", - "Offset": 32, - "Type": { - "Spelling": "const char *const *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - }, - "Doc": "lines around the frame, may be NULL" - }, - { - "CName": "source_count", - "CsName": "SourceCount", - "CsType": "int", - "CType": "int", + "CName": "start", + "CsName": "Start", + "CsType": "double", + "CType": "double", "Offset": 40, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "double", + "Kind": "Double" }, - "Doc": "number of lines in `source`" + "Doc": "seconds from the start of the page" }, { - "CName": "source_first", - "CsName": "SourceFirst", - "CsType": "int", - "CType": "int", - "Offset": 44, + "CName": "timing", + "CsName": "Timing", + "CsType": "float", + "CType": "float[6]", + "Offset": 48, + "IsFixedBuffer": true, + "ArrayLength": 6, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "float[6]", + "Kind": "ConstantArray", + "Element": { + "Spelling": "float", + "Kind": "Float" + } }, - "Doc": "line number of source[0]" + "Doc": "seconds: queued, dns, connect, tls, waiting, download" } ], - "Doc": "An exception and its call stack: the error's type and message, then each frame's 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." + "Doc": "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's 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." }, { - "CName": "cui_stack_trace_opts", - "CsName": "NativeStackTraceOpts", + "CName": "cui_waterfall_opts", + "CsName": "NativeWaterfallOpts", "Size": 40, "Helpers": [], "Fields": [ @@ -22628,63 +23749,64 @@ "Doc": "" }, { - "CName": "title", - "CsName": "Title", + "CName": "height", + "CsName": "Height", + "CsType": "float", + "CType": "float", + "Offset": 12, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "" + }, + { + "CName": "selected", + "CsName": "Selected", "CsType": "nint", - "CType": "const char *", + "CType": "int *", "Offset": 16, "Type": { - "Spelling": "const char *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "int", + "Kind": "Int" } }, - "Doc": "\"TypeError\"" + "Doc": "the selected request or -1, kept by you; `NULL` keeps it in the component" }, { - "CName": "message", - "CsName": "Message", - "CsType": "nint", - "CType": "const char *", + "CName": "dom_loaded", + "CsName": "DomLoaded", + "CsType": "double", + "CType": "double", "Offset": 24, "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "double", + "Kind": "Double" }, - "Doc": "\"Cannot read properties of undefined\"" + "Doc": "seconds; 0: no line" }, { - "CName": "lang", - "CsName": "Lang", - "CsType": "nint", - "CType": "const char *", + "CName": "loaded", + "CsName": "Loaded", + "CsType": "double", + "CType": "double", "Offset": 32, "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "double", + "Kind": "Double" }, - "Doc": "highlights the source, as the code block" + "Doc": "seconds; 0: no line" } ], "Doc": "" }, { - "CName": "cui_stack_trace_result", - "CsName": "NativeStackTraceResult", - "Size": 4, + "CName": "cui_waterfall_result", + "CsName": "NativeWaterfallResult", + "Size": 12, "Helpers": [], "Fields": [ { @@ -22696,58 +23818,46 @@ "Spelling": "int", "Kind": "Int" }, - "Doc": "frame, or -1" - } - ], - "Doc": "" - }, - { - "CName": "cui_request_bar_opts", - "CsName": "NativeRequestBarOpts", - "Size": 24, - "Helpers": [], - "Fields": [ + "Doc": "request clicked this frame, or -1" + }, { - "CName": "_", - "CsName": "Sentinel", + "CName": "activated", + "CsName": "Activated", "CsType": "int", "CType": "int", + "Offset": 4, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "" - }, - { - "CName": "width", - "CsName": "Width", - "CsType": "NativeSize", - "CType": "cui_size", - "Offset": 4, - "Type": { - "Spelling": "cui_size", - "Kind": "Record" - }, - "Doc": "" + "Doc": "request double-clicked or chosen with Enter this frame, or -1" }, { - "CName": "loading", - "CsName": "Loading", - "CsType": "byte", - "CType": "_Bool", - "Offset": 12, + "CName": "hovered", + "CsName": "Hovered", + "CsType": "int", + "CType": "int", + "Offset": 8, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "a request is in flight: the button reads Cancel and Enter does not send" - }, + "Doc": "request under the pointer, or -1" + } + ], + "Doc": "" + }, + { + "CName": "cui_trace_track", + "CsName": "NativeTraceTrack", + "Size": 16, + "Helpers": [], + "Fields": [ { - "CName": "placeholder", - "CsName": "Placeholder", + "CName": "name", + "CsName": "Name", "CsType": "nint", "CType": "const char *", - "Offset": 16, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -22757,59 +23867,27 @@ "IsConst": true } }, - "Doc": "" - } - ], - "Doc": "" - }, - { - "CName": "cui_request_bar_result", - "CsName": "NativeRequestBarResult", - "Size": 3, - "Helpers": [], - "Fields": [ - { - "CName": "send", - "CsName": "Send", - "CsType": "byte", - "CType": "_Bool", - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Doc": "Send was pressed, or Enter in the URL: start the request" - }, - { - "CName": "cancel", - "CsName": "Cancel", - "CsType": "byte", - "CType": "_Bool", - "Offset": 1, - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Doc": "Cancel was pressed while `loading`" + "Doc": "the lane's name, in the column on the left" }, { - "CName": "changed", - "CsName": "Changed", + "CName": "collapsed", + "CsName": "Collapsed", "CsType": "byte", "CType": "_Bool", - "Offset": 2, + "Offset": 8, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "the method or the URL was edited this frame" + "Doc": "the lane shows only its top row; a click on its name toggles this" } ], - "Doc": "" + "Doc": "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+wheel or a drag pans, click selects a span, Shift+drag measures a time range. A lane's name folds it. Keys: Left and Right step through the selected span's lane, + 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." }, { - "CName": "cui_uptime_service", - "CsName": "NativeUptimeService", - "Size": 24, + "CName": "cui_trace_span", + "CsName": "NativeTraceSpan", + "Size": 40, "Helpers": [], "Fields": [ { @@ -22826,119 +23904,74 @@ "IsConst": true } }, - "Doc": "shown above the service's bars" + "Doc": "drawn in the span when it fits, and in its tooltip" }, { - "CName": "days", - "CsName": "Days", - "CsType": "nint", - "CType": "const float *", + "CName": "start", + "CsName": "Start", + "CsType": "double", + "CType": "double", "Offset": 8, "Type": { - "Spelling": "const float *", - "Kind": "Pointer", - "Element": { - "Spelling": "const float", - "Kind": "Float", - "IsConst": true - } + "Spelling": "double", + "Kind": "Double" }, - "Doc": "oldest first: the fraction of the day it was up, 0..1; negative: no data" + "Doc": "when the span begins, in seconds" }, { - "CName": "day_count", - "CsName": "DayCount", - "CsType": "int", - "CType": "int", + "CName": "end", + "CsName": "End", + "CsType": "double", + "CType": "double", "Offset": 16, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "double", + "Kind": "Double" }, - "Doc": "number of values in `days`" - } - ], - "Doc": "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." - }, - { - "CName": "cui_uptime_opts", - "CsName": "NativeUptimeOpts", - "Size": 24, - "Helpers": [], - "Fields": [ + "Doc": "when the span ends, in seconds; end >= start" + }, { - "CName": "_", - "CsName": "Sentinel", + "CName": "track", + "CsName": "Track", "CsType": "int", "CType": "int", + "Offset": 24, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "the date of the last value, for the tooltips" - }, - { - "CName": "width", - "CsName": "Width", - "CsType": "NativeSize", - "CType": "cui_size", - "Offset": 4, - "Type": { - "Spelling": "cui_size", - "Kind": "Record" - }, - "Doc": "the date of the last value, for the tooltips" + "Doc": "index into the tracks: the lane the span is drawn in" }, { - "CName": "last_day", - "CsName": "LastDay", - "CsType": "NativeDate", - "CType": "cui_date", - "Offset": 12, - "Type": { - "Spelling": "cui_date", - "Kind": "Record" - }, - "Doc": "the date of the last value, for the tooltips" - } - ], - "Doc": "" - }, - { - "CName": "cui_uptime_result", - "CsName": "NativeUptimeResult", - "Size": 8, - "Helpers": [], - "Fields": [ - { - "CName": "service", - "CsName": "Service", + "CName": "depth", + "CsName": "Depth", "CsType": "int", "CType": "int", + "Offset": 28, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "under the pointer, or -1" + "Doc": "row within the lane, 0 = top; a child lies within its parent" }, { - "CName": "day", - "CsName": "Day", - "CsType": "int", - "CType": "int", - "Offset": 4, + "CName": "color_key", + "CsName": "ColorKey", + "CsType": "uint", + "CType": "uint32_t", + "Offset": 32, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "uint32_t", + "Kind": "UInt" }, - "Doc": "under the pointer, or -1" + "Doc": "picks the color; 0: hashed from the name" } ], "Doc": "" }, { - "CName": "cui_histogram_series", - "CsName": "NativeHistogramSeries", + "CName": "cui_trace_marker", + "CsName": "NativeTraceMarker", "Size": 24, "Helpers": [], "Fields": [ @@ -22956,24 +23989,19 @@ "IsConst": true } }, - "Doc": "shown in the legend and in the hover tooltip" + "Doc": "" }, { - "CName": "counts", - "CsName": "Counts", - "CsType": "nint", - "CType": "const float *", + "CName": "time", + "CsName": "Time", + "CsType": "double", + "CType": "double", "Offset": 8, "Type": { - "Spelling": "const float *", - "Kind": "Pointer", - "Element": { - "Spelling": "const float", - "Kind": "Float", - "IsConst": true - } + "Spelling": "double", + "Kind": "Double" }, - "Doc": "one count per bucket; `NULL` counts as zeros" + "Doc": "" }, { "CName": "tone", @@ -22988,12 +24016,80 @@ "Doc": "" } ], - "Doc": "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." + "Doc": "" }, { - "CName": "cui_time_histogram_opts", - "CsName": "NativeTimeHistogramOpts", - "Size": 20, + "CName": "cui_trace_view", + "CsName": "NativeTraceView", + "Size": 40, + "Helpers": [], + "Fields": [ + { + "CName": "start", + "CsName": "Start", + "CsType": "double", + "CType": "double", + "Type": { + "Spelling": "double", + "Kind": "Double" + }, + "Doc": "visible time range; end <= start fits everything" + }, + { + "CName": "end", + "CsName": "End", + "CsType": "double", + "CType": "double", + "Offset": 8, + "Type": { + "Spelling": "double", + "Kind": "Double" + }, + "Doc": "visible time range; end <= start fits everything" + }, + { + "CName": "scroll", + "CsName": "Scroll", + "CsType": "float", + "CType": "float", + "Offset": 16, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "points scrolled down" + }, + { + "CName": "mark_start", + "CsName": "MarkStart", + "CsType": "double", + "CType": "double", + "Offset": 24, + "Type": { + "Spelling": "double", + "Kind": "Double" + }, + "Doc": "measured range; mark_end <= mark_start: none" + }, + { + "CName": "mark_end", + "CsName": "MarkEnd", + "CsType": "double", + "CType": "double", + "Offset": 32, + "Type": { + "Spelling": "double", + "Kind": "Double" + }, + "Doc": "measured range; mark_end <= mark_start: none" + } + ], + "Doc": "" + }, + { + "CName": "cui_trace_opts", + "CsName": "NativeTraceOpts", + "Size": 40, "Helpers": [], "Fields": [ { @@ -23029,26 +24125,55 @@ "Spelling": "float", "Kind": "Float" }, - "Doc": "default 140" + "Doc": "default 320" }, { - "CName": "utc", - "CsName": "Utc", - "CsType": "byte", - "CType": "_Bool", + "CName": "row_height", + "CsName": "RowHeight", + "CsType": "float", + "CType": "float", "Offset": 16, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "float", + "Kind": "Float" }, - "Doc": "label times in UTC instead of local time" + "Doc": "default 20" + }, + { + "CName": "markers", + "CsName": "Markers", + "CsType": "nint", + "CType": "const cui_trace_marker *", + "Offset": 24, + "Type": { + "Spelling": "const cui_trace_marker *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_trace_marker", + "Kind": "Record", + "IsConst": true + } + }, + "Doc": "moments drawn as lines across every lane, named in a strip under the ruler" + }, + { + "CName": "marker_count", + "CsName": "MarkerCount", + "CsType": "int", + "CType": "int", + "Offset": 32, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "number of `markers`" } ], "Doc": "" }, { - "CName": "cui_time_histogram_result", - "CsName": "NativeTimeHistogramResult", + "CName": "cui_trace_result", + "CsName": "NativeTraceResult", "Size": 8, "Helpers": [], "Fields": [ @@ -23061,11 +24186,23 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "`*sel_start` or `*sel_end` changed this frame (a drag, or a click that cleared it)" + "Doc": "`*selected` changed this frame (click or keys)" }, { - "CName": "hovered", - "CsName": "Hovered", + "CName": "view_changed", + "CsName": "ViewChanged", + "CsType": "byte", + "CType": "_Bool", + "Offset": 1, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "time range, scroll position, or measurement in `*view` changed" + }, + { + "CName": "hovered", + "CsName": "Hovered", "CsType": "int", "CType": "int", "Offset": 4, @@ -23073,111 +24210,126 @@ "Spelling": "int", "Kind": "Int" }, - "Doc": "bucket, or -1" + "Doc": "span under the pointer, or -1" } ], "Doc": "" }, { - "CName": "cui_coverage_file", - "CsName": "NativeCoverageFile", - "Size": 32, - "Helpers": [], - "Fields": [ + "CName": "cui_regex_match", + "CsName": "NativeRegexMatch", + "Size": 332, + "Helpers": [ { - "CName": "path", - "CsName": "Path", - "CsType": "nint", - "CType": "const char *", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - }, - "Doc": "\"src/core/layout.c\"" + "CsName": "NativeRegexMatchGroupNameArray2", + "ElementType": "sbyte", + "Length": 24 }, { - "CName": "lines", - "CsName": "Lines", + "CsName": "NativeRegexMatchGroupNameArray1", + "ElementType": "NativeRegexMatchGroupNameArray2", + "Length": 10 + } + ], + "Fields": [ + { + "CName": "start", + "CsName": "Start", "CsType": "int", "CType": "int", - "Offset": 8, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "lines that can be covered" + "Doc": "bytes" }, { - "CName": "lines_hit", - "CsName": "LinesHit", + "CName": "end", + "CsName": "End", "CsType": "int", "CType": "int", - "Offset": 12, + "Offset": 4, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "lines the tests ran" + "Doc": "bytes" }, { - "CName": "branches", - "CsName": "Branches", + "CName": "groups", + "CsName": "Groups", "CsType": "int", "CType": "int", - "Offset": 16, + "Offset": 8, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "0 branches: not measured" + "Doc": "capture groups in the pattern" }, { - "CName": "branches_hit", - "CsName": "BranchesHit", + "CName": "group_start", + "CsName": "GroupStart", "CsType": "int", - "CType": "int", - "Offset": 20, + "CType": "int[10]", + "Offset": 12, + "IsFixedBuffer": true, + "ArrayLength": 10, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "int[10]", + "Kind": "ConstantArray", + "Element": { + "Spelling": "int", + "Kind": "Int" + } }, - "Doc": "0 branches: not measured" + "Doc": "1 based; -1 when a group took no part" }, { - "CName": "functions", - "CsName": "Functions", + "CName": "group_end", + "CsName": "GroupEnd", "CsType": "int", - "CType": "int", - "Offset": 24, + "CType": "int[10]", + "Offset": 52, + "IsFixedBuffer": true, + "ArrayLength": 10, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "int[10]", + "Kind": "ConstantArray", + "Element": { + "Spelling": "int", + "Kind": "Int" + } }, - "Doc": "functions in the file" + "Doc": "1 based; -1 when a group took no part" }, { - "CName": "functions_hit", - "CsName": "FunctionsHit", - "CsType": "int", - "CType": "int", - "Offset": 28, + "CName": "group_name", + "CsName": "GroupName", + "CsType": "NativeRegexMatchGroupNameArray1", + "CType": "char[10][24]", + "Offset": 92, + "ArrayLength": 10, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "char[10][24]", + "Kind": "ConstantArray", + "Element": { + "Spelling": "char[24]", + "Kind": "ConstantArray", + "Element": { + "Spelling": "char", + "Kind": "Char_S" + } + } }, - "Doc": "functions the tests called" + "Doc": "the name of each `(? )` group, indexed like `group_start`; \"\" when unnamed" } ], - "Doc": "Test coverage by folder and file: the files' 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's title to sort. Enter or a double-click activates a file. Narrow panels show lines only." + "Doc": "" }, { - "CName": "cui_coverage_opts", - "CsName": "NativeCoverageOpts", + "CName": "cui_regex_tester_opts", + "CsName": "NativeRegexTesterOpts", "Size": 24, "Helpers": [], "Fields": [ @@ -23190,7 +24342,7 @@ "Spelling": "int", "Kind": "Int" }, - "Doc": "percent; default 50 and 80" + "Doc": "" }, { "CName": "width", @@ -23202,7 +24354,7 @@ "Spelling": "cui_size", "Kind": "Record" }, - "Doc": "percent; default 50 and 80" + "Doc": "" }, { "CName": "height", @@ -23214,76 +24366,85 @@ "Spelling": "float", "Kind": "Float" }, - "Doc": "percent; default 50 and 80" + "Doc": "of the test text, default 180" }, { - "CName": "low", - "CsName": "Low", - "CsType": "float", - "CType": "float", + "CName": "flags", + "CsName": "Flags", + "CsType": "nint", + "CType": "int *", "Offset": 16, "Type": { - "Spelling": "float", - "Kind": "Float" - }, - "Doc": "percent; default 50 and 80" - }, - { - "CName": "high", - "CsName": "High", - "CsType": "float", - "CType": "float", - "Offset": 20, - "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } }, - "Doc": "percent; default 50 and 80" + "Doc": "CUI_REGEX_*; NULL: kept for you" } ], - "Doc": "" + "Doc": "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." }, { - "CName": "cui_coverage_result", - "CsName": "NativeCoverageResult", - "Size": 8, + "CName": "cui_regex_tester_result", + "CsName": "NativeRegexTesterResult", + "Size": 16, "Helpers": [], "Fields": [ { - "CName": "activated", - "CsName": "Activated", + "CName": "valid", + "CsName": "Valid", + "CsType": "byte", + "CType": "_Bool", + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "the pattern is valid and matching finished in time" + }, + { + "CName": "matches", + "CsName": "Matches", "CsType": "int", "CType": "int", + "Offset": 4, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "file opened this frame (Enter or a double-click), or -1" + "Doc": "matches found in the test text" }, { - "CName": "lines", - "CsName": "Lines", - "CsType": "float", - "CType": "float", - "Offset": 4, + "CName": "error", + "CsName": "Error", + "CsType": "nint", + "CType": "const char *", + "Offset": 8, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "percent of all lines covered" + "Doc": "why, when `valid` is false; otherwise `NULL`" } ], "Doc": "" }, { - "CName": "cui_blame_commit", - "CsName": "NativeBlameCommit", + "CName": "cui_test_item", + "CsName": "NativeTestItem", "Size": 32, "Helpers": [], "Fields": [ { - "CName": "hash", - "CsName": "Hash", + "CName": "name", + "CsName": "Name", "CsType": "nint", "CType": "const char *", "Type": { @@ -23295,31 +24456,50 @@ "IsConst": true } }, - "Doc": "the commit id; its first 7 characters are shown" + "Doc": "name of the suite or test; the toolbar's field filters by it" }, { - "CName": "author", - "CsName": "Author", - "CsType": "nint", - "CType": "const char *", + "CName": "depth", + "CsName": "Depth", + "CsType": "int", + "CType": "int", "Offset": 8, "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" }, - "Doc": "shown in the gutter; on a phone as initials" + "Doc": "0 for the top suites" }, { - "CName": "summary", - "CsName": "Summary", + "CName": "status", + "CsName": "Status", + "CsType": "JobStatus", + "CType": "cui_job_status", + "Offset": 12, + "Type": { + "Spelling": "cui_job_status", + "Kind": "Enum" + }, + "Doc": "a suite's own status is ignored when it has tests" + }, + { + "CName": "duration", + "CsName": "Duration", + "CsType": "float", + "CType": "float", + "Offset": 16, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "seconds, negative when it has not run" + }, + { + "CName": "message", + "CsName": "Message", "CsType": "nint", "CType": "const char *", - "Offset": 16, + "Offset": 24, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -23329,27 +24509,15 @@ "IsConst": true } }, - "Doc": "the commit's message line, shown in the gutter's tooltip" - }, - { - "CName": "time", - "CsName": "Time", - "CsType": "long", - "CType": "int64_t", - "Offset": 24, - "Type": { - "Spelling": "int64_t", - "Kind": "LongLong" - }, - "Doc": "Unix seconds" + "Doc": "why it failed, may be NULL" } ], - "Doc": "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's 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." + "Doc": "Test results as a tree: suites fold, each test shows its status and time, and a failure shows its message under it. A suite's 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's." }, { - "CName": "cui_blame_opts", - "CsName": "NativeBlameOpts", - "Size": 40, + "CName": "cui_test_explorer_opts", + "CsName": "NativeTestExplorerOpts", + "Size": 16, "Helpers": [], "Fields": [ { @@ -23361,7 +24529,7 @@ "Spelling": "int", "Kind": "Int" }, - "Doc": "" + "Doc": "default 320" }, { "CName": "width", @@ -23373,7 +24541,7 @@ "Spelling": "cui_size", "Kind": "Record" }, - "Doc": "" + "Doc": "default 320" }, { "CName": "height", @@ -23385,93 +24553,124 @@ "Spelling": "float", "Kind": "Float" }, - "Doc": "default 360" + "Doc": "default 320" + } + ], + "Doc": "" + }, + { + "CName": "cui_test_explorer_result", + "CsName": "NativeTestExplorerResult", + "Size": 32, + "Helpers": [], + "Fields": [ + { + "CName": "selected", + "CsName": "Selected", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "items, or -1" }, { - "CName": "lang", - "CsName": "Lang", - "CsType": "nint", - "CType": "const char *", - "Offset": 16, + "CName": "activated", + "CsName": "Activated", + "CsType": "int", + "CType": "int", + "Offset": 4, "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" }, - "Doc": "highlights the code, as the code block" + "Doc": "items, or -1" }, { - "CName": "now", - "CsName": "Now", - "CsType": "long", - "CType": "int64_t", - "Offset": 24, + "CName": "run", + "CsName": "Run", + "CsType": "int", + "CType": "int", + "Offset": 8, "Type": { - "Spelling": "int64_t", - "Kind": "LongLong" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "ages are counted to here; 0: the clock" + "Doc": "item whose run button was pressed this frame, or -1" }, { - "CName": "first_line", - "CsName": "FirstLine", + "CName": "run_all", + "CsName": "RunAll", + "CsType": "byte", + "CType": "_Bool", + "Offset": 12, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "the Run all button was pressed this frame" + }, + { + "CName": "passed", + "CsName": "Passed", "CsType": "int", "CType": "int", - "Offset": 32, + "Offset": 16, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "number of the first line, default 1" - } - ], - "Doc": "" - }, - { - "CName": "cui_blame_result", - "CsName": "NativeBlameResult", - "Size": 8, - "Helpers": [], - "Fields": [ + "Doc": "tests, not suites" + }, { - "CName": "clicked", - "CsName": "Clicked", + "CName": "failed", + "CsName": "Failed", "CsType": "int", "CType": "int", + "Offset": 20, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "commit whose gutter entry was clicked this frame, or -1" + "Doc": "tests, not suites" }, { - "CName": "hovered", - "CsName": "Hovered", + "CName": "skipped", + "CsName": "Skipped", "CsType": "int", "CType": "int", - "Offset": 4, + "Offset": 24, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "commits, or -1" + "Doc": "tests, not suites" + }, + { + "CName": "total", + "CsName": "Total", + "CsType": "int", + "CType": "int", + "Offset": 28, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "tests, not suites" } ], "Doc": "" }, { - "CName": "cui_feature_flag", - "CsName": "NativeFeatureFlag", - "Size": 56, + "CName": "cui_stack_frame", + "CsName": "NativeStackFrame", + "Size": 48, "Helpers": [], "Fields": [ { - "CName": "key", - "CsName": "Key", + "CName": "function", + "CsName": "Function", "CsType": "nint", "CType": "const char *", "Type": { @@ -23483,11 +24682,11 @@ "IsConst": true } }, - "Doc": "the flag's name, in the code font; the filter field searches it" + "Doc": "name of the function; `NULL` or \"\" shows as " }, { - "CName": "description", - "CsName": "Description", + "CName": "file", + "CsName": "File", "CsType": "nint", "CType": "const char *", "Offset": 8, @@ -23500,134 +24699,128 @@ "IsConst": true } }, - "Doc": "" + "Doc": "path shown with the line and column; on a phone only the file's name" }, { - "CName": "on", - "CsName": "On", - "CsType": "byte", - "CType": "_Bool[8]", + "CName": "line", + "CsName": "Line", + "CsType": "int", + "CType": "int", "Offset": 16, - "IsFixedBuffer": true, - "ArrayLength": 8, "Type": { - "Spelling": "_Bool[8]", - "Kind": "ConstantArray", - "Element": { - "Spelling": "_Bool", - "Kind": "Bool" - } + "Spelling": "int", + "Kind": "Int" }, - "Doc": "the flag's switch in each environment, in the order of `envs`" + "Doc": "1 based; 0 leaves it out" }, { - "CName": "rollout", - "CsName": "Rollout", - "CsType": "int", - "CType": "int[8]", - "Offset": 24, - "IsFixedBuffer": true, - "ArrayLength": 8, - "Type": { - "Spelling": "int[8]", - "Kind": "ConstantArray", - "Element": { - "Spelling": "int", - "Kind": "Int" - } - }, - "Doc": "percent of users while on; 0 and 100 mean everyone" - } - ], - "Doc": "" - }, - { - "CName": "cui_feature_flags_opts", - "CsName": "NativeFeatureFlagsOpts", - "Size": 16, - "Helpers": [], - "Fields": [ - { - "CName": "_", - "CsName": "Sentinel", + "CName": "column", + "CsName": "Column", "CsType": "int", "CType": "int", + "Offset": 20, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "default fits the flags" + "Doc": "1 based; 0 leaves it out" }, { - "CName": "width", - "CsName": "Width", - "CsType": "NativeSize", - "CType": "cui_size", - "Offset": 4, + "CName": "external", + "CsName": "External", + "CsType": "byte", + "CType": "_Bool", + "Offset": 24, "Type": { - "Spelling": "cui_size", - "Kind": "Record" - }, - "Doc": "default fits the flags" + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "library or runtime code" }, { - "CName": "height", - "CsName": "Height", - "CsType": "float", - "CType": "float", - "Offset": 12, + "CName": "source", + "CsName": "Source", + "CsType": "nint", + "CType": "const char *const *", + "Offset": 32, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char *const *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } }, - "Doc": "default fits the flags" - } - ], - "Doc": "" - }, - { - "CName": "cui_feature_flags_result", - "CsName": "NativeFeatureFlagsResult", - "Size": 8, - "Helpers": [], - "Fields": [ + "Doc": "lines around the frame, may be NULL" + }, { - "CName": "flag", - "CsName": "Flag", + "CName": "source_count", + "CsName": "SourceCount", "CsType": "int", "CType": "int", + "Offset": 40, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "changed this frame, or -1" + "Doc": "number of lines in `source`" }, { - "CName": "env", - "CsName": "Env", + "CName": "source_first", + "CsName": "SourceFirst", "CsType": "int", "CType": "int", - "Offset": 4, + "Offset": 44, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "changed this frame, or -1" + "Doc": "line number of source[0]" } ], - "Doc": "" + "Doc": "An exception and its call stack: the error's type and message, then each frame's 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." }, { - "CName": "cui_api_param", - "CsName": "NativeApiParam", + "CName": "cui_stack_trace_opts", + "CsName": "NativeStackTraceOpts", "Size": 40, "Helpers": [], "Fields": [ { - "CName": "name", - "CsName": "Name", + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" + }, + { + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", + "Offset": 4, + "Type": { + "Spelling": "cui_size", + "Kind": "Record" + }, + "Doc": "" + }, + { + "CName": "title", + "CsName": "Title", "CsType": "nint", "CType": "const char *", + "Offset": 16, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -23637,14 +24830,14 @@ "IsConst": true } }, - "Doc": "the parameter's name, in the code font" + "Doc": "\"TypeError\"" }, { - "CName": "in", - "CsName": "In", + "CName": "message", + "CsName": "Message", "CsType": "nint", "CType": "const char *", - "Offset": 8, + "Offset": 24, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -23654,14 +24847,14 @@ "IsConst": true } }, - "Doc": "where it goes: \"path\", \"query\", \"header\" or \"body\"" + "Doc": "\"Cannot read properties of undefined\"" }, { - "CName": "type", - "CsName": "Type", + "CName": "lang", + "CsName": "Lang", "CsType": "nint", "CType": "const char *", - "Offset": 16, + "Offset": 32, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -23671,26 +24864,78 @@ "IsConst": true } }, - "Doc": "e.g. \"string\"; shown before where it goes" + "Doc": "highlights the source, as the code block" + } + ], + "Doc": "" + }, + { + "CName": "cui_stack_trace_result", + "CsName": "NativeStackTraceResult", + "Size": 4, + "Helpers": [], + "Fields": [ + { + "CName": "clicked", + "CsName": "Clicked", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "frame, or -1" + } + ], + "Doc": "" + }, + { + "CName": "cui_request_bar_opts", + "CsName": "NativeRequestBarOpts", + "Size": 24, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" }, { - "CName": "required", - "CsName": "Required", + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", + "Offset": 4, + "Type": { + "Spelling": "cui_size", + "Kind": "Record" + }, + "Doc": "" + }, + { + "CName": "loading", + "CsName": "Loading", "CsType": "byte", "CType": "_Bool", - "Offset": 24, + "Offset": 12, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "a red asterisk after the name" + "Doc": "a request is in flight: the button reads Cancel and Enter does not send" }, { - "CName": "description", - "CsName": "Description", + "CName": "placeholder", + "CsName": "Placeholder", "CsType": "nint", "CType": "const char *", - "Offset": 32, + "Offset": 16, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -23700,73 +24945,66 @@ "IsConst": true } }, - "Doc": "what the parameter is for, shown after its type and place; may be `NULL`" + "Doc": "" } ], - "Doc": "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's parameters and a Try it button. A field filters by path or summary. Up and Down move, Enter opens." + "Doc": "" }, { - "CName": "cui_api_endpoint", - "CsName": "NativeApiEndpoint", - "Size": 56, + "CName": "cui_request_bar_result", + "CsName": "NativeRequestBarResult", + "Size": 3, "Helpers": [], "Fields": [ { - "CName": "method", - "CsName": "Method", - "CsType": "nint", - "CType": "const char *", + "CName": "send", + "CsName": "Send", + "CsType": "byte", + "CType": "_Bool", "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "\"GET\"" + "Doc": "Send was pressed, or Enter in the URL: start the request" }, { - "CName": "path", - "CsName": "Path", - "CsType": "nint", - "CType": "const char *", - "Offset": 8, + "CName": "cancel", + "CsName": "Cancel", + "CsType": "byte", + "CType": "_Bool", + "Offset": 1, "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "\"/users/{id}\"" + "Doc": "Cancel was pressed while `loading`" }, { - "CName": "summary", - "CsName": "Summary", - "CsType": "nint", - "CType": "const char *", - "Offset": 16, + "CName": "changed", + "CsName": "Changed", + "CsType": "byte", + "CType": "_Bool", + "Offset": 2, "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "one line after the path; the filter field searches it" - }, + "Doc": "the method or the URL was edited this frame" + } + ], + "Doc": "" + }, + { + "CName": "cui_uptime_service", + "CsName": "NativeUptimeService", + "Size": 24, + "Helpers": [], + "Fields": [ { - "CName": "tag", - "CsName": "Tag", + "CName": "name", + "CsName": "Name", "CsType": "nint", "CType": "const char *", - "Offset": 24, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -23776,55 +25014,43 @@ "IsConst": true } }, - "Doc": "groups the list; NULL groups as \"Other\"" - }, - { - "CName": "deprecated", - "CsName": "Deprecated", - "CsType": "byte", - "CType": "_Bool", - "Offset": 32, - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Doc": "struck through and muted, with a \"Deprecated\" badge" + "Doc": "shown above the service's bars" }, { - "CName": "params", - "CsName": "Params", + "CName": "days", + "CsName": "Days", "CsType": "nint", - "CType": "const cui_api_param *", - "Offset": 40, + "CType": "const float *", + "Offset": 8, "Type": { - "Spelling": "const cui_api_param *", + "Spelling": "const float *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_api_param", - "Kind": "Record", + "Spelling": "const float", + "Kind": "Float", "IsConst": true } }, - "Doc": "the parameters listed when the endpoint is opened; may be `NULL`" + "Doc": "oldest first: the fraction of the day it was up, 0..1; negative: no data" }, { - "CName": "param_count", - "CsName": "ParamCount", + "CName": "day_count", + "CsName": "DayCount", "CsType": "int", "CType": "int", - "Offset": 48, + "Offset": 16, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "number of `params`" + "Doc": "number of values in `days`" } ], - "Doc": "" + "Doc": "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." }, { - "CName": "cui_api_explorer_opts", - "CsName": "NativeApiExplorerOpts", + "CName": "cui_uptime_opts", + "CsName": "NativeUptimeOpts", "Size": 24, "Helpers": [], "Fields": [ @@ -23837,7 +25063,7 @@ "Spelling": "int", "Kind": "Int" }, - "Doc": "" + "Doc": "the date of the last value, for the tooltips" }, { "CName": "width", @@ -23849,59 +25075,43 @@ "Spelling": "cui_size", "Kind": "Record" }, - "Doc": "" + "Doc": "the date of the last value, for the tooltips" }, { - "CName": "height", - "CsName": "Height", - "CsType": "float", - "CType": "float", + "CName": "last_day", + "CsName": "LastDay", + "CsType": "NativeDate", + "CType": "cui_date", "Offset": 12, "Type": { - "Spelling": "float", - "Kind": "Float" - }, - "Doc": "" - }, - { - "CName": "selected", - "CsName": "Selected", - "CsType": "nint", - "CType": "int *", - "Offset": 16, - "Type": { - "Spelling": "int *", - "Kind": "Pointer", - "Element": { - "Spelling": "int", - "Kind": "Int" - } + "Spelling": "cui_date", + "Kind": "Record" }, - "Doc": "the selected endpoint or -1, kept by you; `NULL` keeps it in the component" + "Doc": "the date of the last value, for the tooltips" } ], "Doc": "" }, { - "CName": "cui_api_explorer_result", - "CsName": "NativeApiExplorerResult", + "CName": "cui_uptime_result", + "CsName": "NativeUptimeResult", "Size": 8, "Helpers": [], "Fields": [ { - "CName": "selected", - "CsName": "Selected", + "CName": "service", + "CsName": "Service", "CsType": "int", "CType": "int", "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "the selected endpoint, or -1" + "Doc": "under the pointer, or -1" }, { - "CName": "try_it", - "CsName": "TryIt", + "CName": "day", + "CsName": "Day", "CsType": "int", "CType": "int", "Offset": 4, @@ -23909,69 +25119,69 @@ "Spelling": "int", "Kind": "Int" }, - "Doc": "endpoint, or -1" + "Doc": "under the pointer, or -1" } ], "Doc": "" }, { - "CName": "cui_dot_series", - "CsName": "NativeDotSeries", + "CName": "cui_histogram_series", + "CsName": "NativeHistogramSeries", "Size": 24, "Helpers": [], "Fields": [ { - "CName": "values", - "CsName": "Values", + "CName": "name", + "CsName": "Name", "CsType": "nint", - "CType": "const float *", + "CType": "const char *", "Type": { - "Spelling": "const float *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const float", - "Kind": "Float", + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } }, - "Doc": "`count` values, one per sample; negative values count as 0" + "Doc": "shown in the legend and in the hover tooltip" }, { - "CName": "name", - "CsName": "Name", + "CName": "counts", + "CsName": "Counts", "CsType": "nint", - "CType": "const char *", + "CType": "const float *", "Offset": 8, "Type": { - "Spelling": "const char *", + "Spelling": "const float *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", + "Spelling": "const float", + "Kind": "Float", "IsConst": true } }, - "Doc": "names the series in the readout when there are several" + "Doc": "one count per bucket; `NULL` counts as zeros" }, { - "CName": "accent", - "CsName": "Accent", - "CsType": "byte", - "CType": "_Bool", + "CName": "tone", + "CsName": "Tone", + "CsType": "Tone", + "CType": "cui_tone", "Offset": 16, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_tone", + "Kind": "Enum" }, - "Doc": "drawn in the accent color" + "Doc": "" } ], - "Doc": "Dot-matrix chart: values drawn as a grid of dots, lit up to each column's value and dim above it. Several series stack, each in its own band, and an `accent` series is drawn in the accent color: the item being edited, or the part that matters. The pointer, or the arrow keys once it is focused, show a readout of the value under it, and a click returns where it landed, so an app can add something there." + "Doc": "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." }, { - "CName": "cui_dot_chart_opts", - "CsName": "NativeDotChartOpts", - "Size": 104, + "CName": "cui_time_histogram_opts", + "CsName": "NativeTimeHistogramOpts", + "Size": 20, "Helpers": [], "Fields": [ { @@ -24007,50 +25217,66 @@ "Spelling": "float", "Kind": "Float" }, - "Doc": "the plot and its labels, default 200" + "Doc": "default 140" }, { - "CName": "x_min", - "CsName": "XMin", - "CsType": "double", - "CType": "double", + "CName": "utc", + "CsName": "Utc", + "CsType": "byte", + "CType": "_Bool", "Offset": 16, "Type": { - "Spelling": "double", - "Kind": "Double" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "what the first and last sample stand for; equal: 0 to count - 1" - }, + "Doc": "label times in UTC instead of local time" + } + ], + "Doc": "" + }, + { + "CName": "cui_time_histogram_result", + "CsName": "NativeTimeHistogramResult", + "Size": 8, + "Helpers": [], + "Fields": [ { - "CName": "x_max", - "CsName": "XMax", - "CsType": "double", - "CType": "double", - "Offset": 24, + "CName": "selection_changed", + "CsName": "SelectionChanged", + "CsType": "byte", + "CType": "_Bool", "Type": { - "Spelling": "double", - "Kind": "Double" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "what the first and last sample stand for; equal: 0 to count - 1" + "Doc": "`*sel_start` or `*sel_end` changed this frame (a drag, or a click that cleared it)" }, { - "CName": "x_units", - "CsName": "XUnits", - "CsType": "AxisUnits", - "CType": "cui_axis_units", - "Offset": 32, + "CName": "hovered", + "CsName": "Hovered", + "CsType": "int", + "CType": "int", + "Offset": 4, "Type": { - "Spelling": "cui_axis_units", - "Kind": "Enum" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "" - }, + "Doc": "bucket, or -1" + } + ], + "Doc": "" + }, + { + "CName": "cui_coverage_file", + "CsName": "NativeCoverageFile", + "Size": 32, + "Helpers": [], + "Fields": [ { - "CName": "x_format", - "CsName": "XFormat", + "CName": "path", + "CsName": "Path", "CsType": "nint", "CType": "const char *", - "Offset": 40, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -24060,218 +25286,258 @@ "IsConst": true } }, - "Doc": "x labels with CUI_AXIS_NUMBER, default \"%g\"" + "Doc": "\"src/core/layout.c\"" }, { - "CName": "x_step", - "CsName": "XStep", - "CsType": "double", - "CType": "double", - "Offset": 48, + "CName": "lines", + "CsName": "Lines", + "CsType": "int", + "CType": "int", + "Offset": 8, "Type": { - "Spelling": "double", - "Kind": "Double" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "spacing of the x labels in x units; 0 picks one that fits" + "Doc": "lines that can be covered" }, { - "CName": "min", - "CsName": "Min", - "CsType": "float", - "CType": "float", - "Offset": 56, + "CName": "lines_hit", + "CsName": "LinesHit", + "CsType": "int", + "CType": "int", + "Offset": 12, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "value range when min != max; otherwise 0 to the largest stacked value" + "Doc": "lines the tests ran" }, { - "CName": "max", - "CsName": "Max", - "CsType": "float", - "CType": "float", - "Offset": 60, + "CName": "branches", + "CsName": "Branches", + "CsType": "int", + "CType": "int", + "Offset": 16, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "value range when min != max; otherwise 0 to the largest stacked value" + "Doc": "0 branches: not measured" }, { - "CName": "format", - "CsName": "Format", - "CsType": "nint", - "CType": "const char *", - "Offset": 64, + "CName": "branches_hit", + "CsName": "BranchesHit", + "CsType": "int", + "CType": "int", + "Offset": 20, "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" }, - "Doc": "values in the readout, default \"%.0f\"" + "Doc": "0 branches: not measured" }, { - "CName": "unit", - "CsName": "Unit", - "CsType": "nint", - "CType": "const char *", - "Offset": 72, + "CName": "functions", + "CsName": "Functions", + "CsType": "int", + "CType": "int", + "Offset": 24, "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" }, - "Doc": "after values in the readout, e.g. \"MG\"" + "Doc": "functions in the file" }, { - "CName": "pitch", - "CsName": "Pitch", - "CsType": "float", - "CType": "float", - "Offset": 80, + "CName": "functions_hit", + "CsName": "FunctionsHit", + "CsType": "int", + "CType": "int", + "Offset": 28, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "distance between dot centers in points, default 6" - }, + "Doc": "functions the tests called" + } + ], + "Doc": "Test coverage by folder and file: the files' 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's title to sort. Enter or a double-click activates a file. Narrow panels show lines only." + }, + { + "CName": "cui_coverage_opts", + "CsName": "NativeCoverageOpts", + "Size": 24, + "Helpers": [], + "Fields": [ { - "CName": "no_grid", - "CsName": "NoGrid", - "CsType": "byte", - "CType": "_Bool", - "Offset": 84, + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "hides the dim dots of the empty grid" + "Doc": "percent; default 50 and 80" }, { - "CName": "no_axis", - "CsName": "NoAxis", - "CsType": "byte", - "CType": "_Bool", - "Offset": 85, + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", + "Offset": 4, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_size", + "Kind": "Record" }, - "Doc": "hides the x labels, e.g. when an event track under the chart has them" + "Doc": "percent; default 50 and 80" }, { - "CName": "no_readout", - "CsName": "NoReadout", - "CsType": "byte", - "CType": "_Bool", - "Offset": 86, + "CName": "height", + "CsName": "Height", + "CsType": "float", + "CType": "float", + "Offset": 12, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "float", + "Kind": "Float" }, - "Doc": "no value label under the pointer" + "Doc": "percent; default 50 and 80" }, { - "CName": "annotations", - "CsName": "Annotations", - "CsType": "nint", - "CType": "const cui_chart_annotation *", - "Offset": 88, + "CName": "low", + "CsName": "Low", + "CsType": "float", + "CType": "float", + "Offset": 16, "Type": { - "Spelling": "const cui_chart_annotation *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_chart_annotation", - "Kind": "Record", - "IsConst": true - } + "Spelling": "float", + "Kind": "Float" }, - "Doc": "lines and points drawn over the dots" + "Doc": "percent; default 50 and 80" }, { - "CName": "annotation_count", - "CsName": "AnnotationCount", - "CsType": "int", - "CType": "int", - "Offset": 96, + "CName": "high", + "CsName": "High", + "CsType": "float", + "CType": "float", + "Offset": 20, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "float", + "Kind": "Float" }, - "Doc": "number of `annotations`" + "Doc": "percent; default 50 and 80" } ], "Doc": "" }, { - "CName": "cui_dot_chart_result", - "CsName": "NativeDotChartResult", - "Size": 24, + "CName": "cui_coverage_result", + "CsName": "NativeCoverageResult", + "Size": 8, "Helpers": [], "Fields": [ { - "CName": "hovered", - "CsName": "Hovered", + "CName": "activated", + "CsName": "Activated", "CsType": "int", "CType": "int", "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "the sample under the pointer or the keyboard cursor, or -1" + "Doc": "file opened this frame (Enter or a double-click), or -1" }, { - "CName": "x", - "CsName": "X", - "CsType": "double", - "CType": "double", + "CName": "lines", + "CsName": "Lines", + "CsType": "float", + "CType": "float", + "Offset": 4, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "percent of all lines covered" + } + ], + "Doc": "" + }, + { + "CName": "cui_blame_commit", + "CsName": "NativeBlameCommit", + "Size": 32, + "Helpers": [], + "Fields": [ + { + "CName": "hash", + "CsName": "Hash", + "CsType": "nint", + "CType": "const char *", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "the commit id; its first 7 characters are shown" + }, + { + "CName": "author", + "CsName": "Author", + "CsType": "nint", + "CType": "const char *", "Offset": 8, "Type": { - "Spelling": "double", - "Kind": "Double" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "that sample's x, in x units" + "Doc": "shown in the gutter; on a phone as initials" }, { - "CName": "value", - "CsName": "Value", - "CsType": "float", - "CType": "float", + "CName": "summary", + "CsName": "Summary", + "CsType": "nint", + "CType": "const char *", "Offset": 16, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "the stacked value there" + "Doc": "the commit's message line, shown in the gutter's tooltip" }, { - "CName": "clicked", - "CsName": "Clicked", - "CsType": "byte", - "CType": "_Bool", - "Offset": 20, + "CName": "time", + "CsName": "Time", + "CsType": "long", + "CType": "int64_t", + "Offset": 24, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int64_t", + "Kind": "LongLong" }, - "Doc": "the plot was clicked, or Enter was pressed on it, this frame: `x` is where" + "Doc": "Unix seconds" } ], - "Doc": "" + "Doc": "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's 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." }, { - "CName": "cui_event_track_opts", - "CsName": "NativeEventTrackOpts", - "Size": 64, + "CName": "cui_blame_opts", + "CsName": "NativeBlameOpts", + "Size": 40, "Helpers": [], "Fields": [ { @@ -24298,35 +25564,23 @@ "Doc": "" }, { - "CName": "step", - "CsName": "Step", - "CsType": "double", - "CType": "double", - "Offset": 16, - "Type": { - "Spelling": "double", - "Kind": "Double" - }, - "Doc": "events snap to multiples of this from `min`; 0 does not snap" - }, - { - "CName": "units", - "CsName": "Units", - "CsType": "AxisUnits", - "CType": "cui_axis_units", - "Offset": 24, + "CName": "height", + "CsName": "Height", + "CsType": "float", + "CType": "float", + "Offset": 12, "Type": { - "Spelling": "cui_axis_units", - "Kind": "Enum" + "Spelling": "float", + "Kind": "Float" }, - "Doc": "" + "Doc": "default 360" }, { - "CName": "format", - "CsName": "Format", + "CName": "lang", + "CsName": "Lang", "CsType": "nint", "CType": "const char *", - "Offset": 32, + "Offset": 16, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -24336,166 +25590,78 @@ "IsConst": true } }, - "Doc": "labels with CUI_AXIS_NUMBER, default \"%g\"" - }, - { - "CName": "label_step", - "CsName": "LabelStep", - "CsType": "double", - "CType": "double", - "Offset": 40, - "Type": { - "Spelling": "double", - "Kind": "Double" - }, - "Doc": "spacing of the axis labels; 0 picks one that fits" - }, - { - "CName": "selected", - "CsName": "Selected", - "CsType": "nint", - "CType": "int *", - "Offset": 48, - "Type": { - "Spelling": "int *", - "Kind": "Pointer", - "Element": { - "Spelling": "int", - "Kind": "Int" - } - }, - "Doc": "the selected event or -1, kept by you; `NULL` keeps it in the track" - }, - { - "CName": "no_add", - "CsName": "NoAdd", - "CsType": "byte", - "CType": "_Bool", - "Offset": 56, - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Doc": "clicks and Enter do not add events" + "Doc": "highlights the code, as the code block" }, { - "CName": "no_remove", - "CsName": "NoRemove", - "CsType": "byte", - "CType": "_Bool", - "Offset": 57, + "CName": "now", + "CsName": "Now", + "CsType": "long", + "CType": "int64_t", + "Offset": 24, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int64_t", + "Kind": "LongLong" }, - "Doc": "double-clicks and Delete do not remove events" + "Doc": "ages are counted to here; 0: the clock" }, { - "CName": "no_axis", - "CsName": "NoAxis", - "CsType": "byte", - "CType": "_Bool", - "Offset": 58, + "CName": "first_line", + "CsName": "FirstLine", + "CsType": "int", + "CType": "int", + "Offset": 32, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "hides the axis labels under the dots" + "Doc": "number of the first line, default 1" } ], - "Doc": "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 `capacity`." + "Doc": "" }, { - "CName": "cui_event_track_result", - "CsName": "NativeEventTrackResult", - "Size": 20, + "CName": "cui_blame_result", + "CsName": "NativeBlameResult", + "Size": 8, "Helpers": [], "Fields": [ { - "CName": "changed", - "CsName": "Changed", - "CsType": "byte", - "CType": "_Bool", - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Doc": "an event was moved, added or removed this frame" - }, - { - "CName": "added", - "CsName": "Added", - "CsType": "int", - "CType": "int", - "Offset": 4, - "Type": { - "Spelling": "int", - "Kind": "Int" - }, - "Doc": "index of the event added this frame, or -1" - }, - { - "CName": "removed", - "CsName": "Removed", + "CName": "clicked", + "CsName": "Clicked", "CsType": "int", "CType": "int", - "Offset": 8, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "index the removed event had, or -1" + "Doc": "commit whose gutter entry was clicked this frame, or -1" }, { - "CName": "selected", - "CsName": "Selected", + "CName": "hovered", + "CsName": "Hovered", "CsType": "int", "CType": "int", - "Offset": 12, + "Offset": 4, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "the selected event after this frame, or -1" - }, - { - "CName": "dragging", - "CsName": "Dragging", - "CsType": "byte", - "CType": "_Bool", - "Offset": 16, - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Doc": "an event is being dragged" + "Doc": "commits, or -1" } ], "Doc": "" }, { - "CName": "cui_readout_opts", - "CsName": "NativeReadoutOpts", - "Size": 48, + "CName": "cui_feature_flag", + "CsName": "NativeFeatureFlag", + "Size": 56, "Helpers": [], "Fields": [ { - "CName": "_", - "CsName": "Sentinel", - "CsType": "int", - "CType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - }, - "Doc": "" - }, - { - "CName": "unit", - "CsName": "Unit", + "CName": "key", + "CsName": "Key", "CsType": "nint", "CType": "const char *", - "Offset": 8, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -24505,14 +25671,14 @@ "IsConst": true } }, - "Doc": "after the value, smaller and muted, e.g. \"MG\"" + "Doc": "the flag's name, in the code font; the filter field searches it" }, { - "CName": "detail", - "CsName": "Detail", + "CName": "description", + "CsName": "Description", "CsType": "nint", "CType": "const char *", - "Offset": 16, + "Offset": 8, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -24522,210 +25688,363 @@ "IsConst": true } }, - "Doc": "a muted line under the value; `NULL` for none" + "Doc": "" }, { - "CName": "size", - "CsName": "Size", - "CsType": "ControlSize", - "CType": "cui_control_size", - "Offset": 24, + "CName": "on", + "CsName": "On", + "CsType": "byte", + "CType": "_Bool[8]", + "Offset": 16, + "IsFixedBuffer": true, + "ArrayLength": 8, "Type": { - "Spelling": "cui_control_size", - "Kind": "Enum" + "Spelling": "_Bool[8]", + "Kind": "ConstantArray", + "Element": { + "Spelling": "_Bool", + "Kind": "Bool" + } }, - "Doc": "the value's size: CUI_SIZE_SM 17, CUI_SIZE_MD 28 (default), CUI_SIZE_LG 44 points" + "Doc": "the flag's switch in each environment, in the order of `envs`" }, { - "CName": "tone", - "CsName": "Tone", - "CsType": "Tone", - "CType": "cui_tone", - "Offset": 28, - "Type": { - "Spelling": "cui_tone", - "Kind": "Enum" - }, - "Doc": "the value's color; 0 is the foreground" - }, - { - "CName": "accent", - "CsName": "Accent", - "CsType": "byte", - "CType": "_Bool", - "Offset": 32, + "CName": "rollout", + "CsName": "Rollout", + "CsType": "int", + "CType": "int[8]", + "Offset": 24, + "IsFixedBuffer": true, + "ArrayLength": 8, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int[8]", + "Kind": "ConstantArray", + "Element": { + "Spelling": "int", + "Kind": "Int" + } }, - "Doc": "the value in the accent color" - }, + "Doc": "percent of users while on; 0 and 100 mean everyone" + } + ], + "Doc": "" + }, + { + "CName": "cui_feature_flags_opts", + "CsName": "NativeFeatureFlagsOpts", + "Size": 16, + "Helpers": [], + "Fields": [ { - "CName": "align", - "CsName": "Align", - "CsType": "TextAlign", - "CType": "cui_text_align", - "Offset": 36, + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", "Type": { - "Spelling": "cui_text_align", - "Kind": "Enum" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "default start" + "Doc": "default fits the flags" }, { "CName": "width", "CsName": "Width", "CsType": "NativeSize", "CType": "cui_size", - "Offset": 40, + "Offset": 4, "Type": { "Spelling": "cui_size", "Kind": "Record" }, - "Doc": "default fit" + "Doc": "default fits the flags" + }, + { + "CName": "height", + "CsName": "Height", + "CsType": "float", + "CType": "float", + "Offset": 12, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "default fits the flags" } ], - "Doc": "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." + "Doc": "" }, { - "CName": "cui_dot_display_opts", - "CsName": "NativeDotDisplayOpts", - "Size": 28, + "CName": "cui_feature_flags_result", + "CsName": "NativeFeatureFlagsResult", + "Size": 8, "Helpers": [], "Fields": [ { - "CName": "_", - "CsName": "Sentinel", + "CName": "flag", + "CsName": "Flag", "CsType": "int", "CType": "int", "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "" + "Doc": "changed this frame, or -1" }, { - "CName": "pitch", - "CsName": "Pitch", - "CsType": "float", - "CType": "float", + "CName": "env", + "CsName": "Env", + "CsType": "int", + "CType": "int", "Offset": 4, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "distance between dot centers in points, default 4" + "Doc": "changed this frame, or -1" + } + ], + "Doc": "" + }, + { + "CName": "cui_api_param", + "CsName": "NativeApiParam", + "Size": 40, + "Helpers": [], + "Fields": [ + { + "CName": "name", + "CsName": "Name", + "CsType": "nint", + "CType": "const char *", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "the parameter's name, in the code font" }, { - "CName": "color", - "CsName": "Color", - "CsType": "NativeColor", - "CType": "cui_color", + "CName": "in", + "CsName": "In", + "CsType": "nint", + "CType": "const char *", "Offset": 8, "Type": { - "Spelling": "cui_color", - "Kind": "Record" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "lit dots; unset: the foreground" + "Doc": "where it goes: \"path\", \"query\", \"header\" or \"body\"" }, { - "CName": "accent", - "CsName": "Accent", - "CsType": "byte", - "CType": "_Bool", - "Offset": 12, + "CName": "type", + "CsName": "Type", + "CsType": "nint", + "CType": "const char *", + "Offset": 16, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "lit dots in the accent color" + "Doc": "e.g. \"string\"; shown before where it goes" }, { - "CName": "no_dim", - "CsName": "NoDim", + "CName": "required", + "CsName": "Required", "CsType": "byte", "CType": "_Bool", - "Offset": 13, + "Offset": 24, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "hides the unlit dots" + "Doc": "a red asterisk after the name" }, { - "CName": "marquee", - "CsName": "Marquee", + "CName": "description", + "CsName": "Description", + "CsType": "nint", + "CType": "const char *", + "Offset": 32, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "what the parameter is for, shown after its type and place; may be `NULL`" + } + ], + "Doc": "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's parameters and a Try it button. A field filters by path or summary. Up and Down move, Enter opens." + }, + { + "CName": "cui_api_endpoint", + "CsName": "NativeApiEndpoint", + "Size": 56, + "Helpers": [], + "Fields": [ + { + "CName": "method", + "CsName": "Method", + "CsType": "nint", + "CType": "const char *", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "\"GET\"" + }, + { + "CName": "path", + "CsName": "Path", + "CsType": "nint", + "CType": "const char *", + "Offset": 8, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "\"/users/{id}\"" + }, + { + "CName": "summary", + "CsName": "Summary", + "CsType": "nint", + "CType": "const char *", + "Offset": 16, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "one line after the path; the filter field searches it" + }, + { + "CName": "tag", + "CsName": "Tag", + "CsType": "nint", + "CType": "const char *", + "Offset": 24, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "groups the list; NULL groups as \"Other\"" + }, + { + "CName": "deprecated", + "CsName": "Deprecated", "CsType": "byte", "CType": "_Bool", - "Offset": 14, + "Offset": 32, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "scrolls text that is wider than the box instead of shrinking it" + "Doc": "struck through and muted, with a \"Deprecated\" badge" }, { - "CName": "align", - "CsName": "Align", - "CsType": "TextAlign", - "CType": "cui_text_align", - "Offset": 16, + "CName": "params", + "CsName": "Params", + "CsType": "nint", + "CType": "const cui_api_param *", + "Offset": 40, "Type": { - "Spelling": "cui_text_align", - "Kind": "Enum" + "Spelling": "const cui_api_param *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_api_param", + "Kind": "Record", + "IsConst": true + } }, - "Doc": "where the text sits in a wider box, default start" + "Doc": "the parameters listed when the endpoint is opened; may be `NULL`" }, { - "CName": "width", - "CsName": "Width", - "CsType": "NativeSize", - "CType": "cui_size", - "Offset": 20, + "CName": "param_count", + "CsName": "ParamCount", + "CsType": "int", + "CType": "int", + "Offset": 48, "Type": { - "Spelling": "cui_size", - "Kind": "Record" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "default fit to the text" + "Doc": "number of `params`" } ], - "Doc": "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." + "Doc": "" }, { - "CName": "cui_corners", - "CsName": "NativeCorners", - "Size": 16, + "CName": "cui_api_explorer_opts", + "CsName": "NativeApiExplorerOpts", + "Size": 24, "Helpers": [], "Fields": [ { - "CName": "tl", - "CsName": "Tl", - "CsType": "float", - "CType": "float", + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "int", + "Kind": "Int" }, "Doc": "" }, { - "CName": "tr", - "CsName": "Tr", - "CsType": "float", - "CType": "float", + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", "Offset": 4, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "cui_size", + "Kind": "Record" }, "Doc": "" }, { - "CName": "br", - "CsName": "Br", + "CName": "height", + "CsName": "Height", "CsType": "float", "CType": "float", - "Offset": 8, + "Offset": 12, "Type": { "Spelling": "float", "Kind": "Float" @@ -24733,659 +26052,948 @@ "Doc": "" }, { - "CName": "bl", - "CsName": "Bl", - "CsType": "float", - "CType": "float", - "Offset": 12, + "CName": "selected", + "CsName": "Selected", + "CsType": "nint", + "CType": "int *", + "Offset": 16, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } }, - "Doc": "" + "Doc": "the selected endpoint or -1, kept by you; `NULL` keeps it in the component" } ], "Doc": "" }, { - "CName": "cui_canvas_result", - "CsName": "NativeCanvasResult", - "Size": 28, + "CName": "cui_api_explorer_result", + "CsName": "NativeApiExplorerResult", + "Size": 8, "Helpers": [], "Fields": [ { - "CName": "rect", - "CsName": "Rect", - "CsType": "NativeRect", - "CType": "cui_rect", + "CName": "selected", + "CsName": "Selected", + "CsType": "int", + "CType": "int", "Type": { - "Spelling": "cui_rect", - "Kind": "Record" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "" + "Doc": "the selected endpoint, or -1" }, { - "CName": "hovered", - "CsName": "Hovered", - "CsType": "byte", - "CType": "_Bool", - "Offset": 16, + "CName": "try_it", + "CsName": "TryIt", + "CsType": "int", + "CType": "int", + "Offset": 4, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "" + "Doc": "endpoint, or -1" + } + ], + "Doc": "" + }, + { + "CName": "cui_dot_series", + "CsName": "NativeDotSeries", + "Size": 24, + "Helpers": [], + "Fields": [ + { + "CName": "values", + "CsName": "Values", + "CsType": "nint", + "CType": "const float *", + "Type": { + "Spelling": "const float *", + "Kind": "Pointer", + "Element": { + "Spelling": "const float", + "Kind": "Float", + "IsConst": true + } + }, + "Doc": "`count` values, one per sample; negative values count as 0" }, { - "CName": "pressed", - "CsName": "Pressed", - "CsType": "byte", - "CType": "_Bool", - "Offset": 17, + "CName": "name", + "CsName": "Name", + "CsType": "nint", + "CType": "const char *", + "Offset": 8, "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "" + "Doc": "names the series in the readout when there are several" }, { - "CName": "clicked", - "CsName": "Clicked", + "CName": "accent", + "CsName": "Accent", "CsType": "byte", "CType": "_Bool", - "Offset": 18, + "Offset": 16, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "" - }, - { - "CName": "mouse", - "CsName": "Mouse", - "CsType": "NativeVec2", - "CType": "cui_vec2", - "Offset": 20, - "Type": { - "Spelling": "cui_vec2", - "Kind": "Record" - }, - "Doc": "" + "Doc": "drawn in the accent color" } ], - "Doc": "" + "Doc": "Dot-matrix chart: values drawn as a grid of dots, lit up to each column's value and dim above it. Several series stack, each in its own band, and an `accent` series is drawn in the accent color: the item being edited, or the part that matters. The pointer, or the arrow keys once it is focused, show a readout of the value under it, and a click returns where it landed, so an app can add something there." }, { - "CName": "cui_vertex", - "CsName": "NativeVertex", - "Size": 64, + "CName": "cui_dot_chart_opts", + "CsName": "NativeDotChartOpts", + "Size": 104, "Helpers": [], "Fields": [ { - "CName": "x", - "CsName": "X", - "CsType": "float", - "CType": "float", + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "position in pixels" + "Doc": "" }, { - "CName": "y", - "CsName": "Y", - "CsType": "float", - "CType": "float", + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", "Offset": 4, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "cui_size", + "Kind": "Record" }, - "Doc": "position in pixels" + "Doc": "" }, { - "CName": "u", - "CsName": "U", + "CName": "height", + "CsName": "Height", "CsType": "float", "CType": "float", - "Offset": 8, + "Offset": 12, "Type": { "Spelling": "float", "Kind": "Float" }, - "Doc": "texture coordinate" + "Doc": "the plot and its labels, default 200" }, { - "CName": "v", - "CsName": "V", - "CsType": "float", - "CType": "float", - "Offset": 12, + "CName": "x_min", + "CsName": "XMin", + "CsType": "double", + "CType": "double", + "Offset": 16, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "double", + "Kind": "Double" }, - "Doc": "texture coordinate" + "Doc": "what the first and last sample stand for; equal: 0 to count - 1" }, { - "CName": "lx", - "CsName": "Lx", - "CsType": "float", - "CType": "float", - "Offset": 16, + "CName": "x_max", + "CsName": "XMax", + "CsType": "double", + "CType": "double", + "Offset": 24, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "double", + "Kind": "Double" }, - "Doc": "position relative to the shape center, pixels" + "Doc": "what the first and last sample stand for; equal: 0 to count - 1" }, { - "CName": "ly", - "CsName": "Ly", - "CsType": "float", - "CType": "float", - "Offset": 20, + "CName": "x_units", + "CsName": "XUnits", + "CsType": "AxisUnits", + "CType": "cui_axis_units", + "Offset": 32, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "cui_axis_units", + "Kind": "Enum" }, - "Doc": "position relative to the shape center, pixels" + "Doc": "" }, { - "CName": "hw", - "CsName": "Hw", - "CsType": "float", - "CType": "float", - "Offset": 24, + "CName": "x_format", + "CsName": "XFormat", + "CsType": "nint", + "CType": "const char *", + "Offset": 40, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "half size of the shape, pixels" + "Doc": "x labels with CUI_AXIS_NUMBER, default \"%g\"" }, { - "CName": "hh", - "CsName": "Hh", - "CsType": "float", - "CType": "float", - "Offset": 28, + "CName": "x_step", + "CsName": "XStep", + "CsType": "double", + "CType": "double", + "Offset": 48, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "double", + "Kind": "Double" }, - "Doc": "half size of the shape, pixels" + "Doc": "spacing of the x labels in x units; 0 picks one that fits" }, { - "CName": "r_tl", - "CsName": "RTl", + "CName": "min", + "CsName": "Min", "CsType": "float", "CType": "float", - "Offset": 32, + "Offset": 56, "Type": { "Spelling": "float", "Kind": "Float" }, - "Doc": "corner radii, pixels" + "Doc": "value range when min != max; otherwise 0 to the largest stacked value" }, { - "CName": "r_tr", - "CsName": "RTr", + "CName": "max", + "CsName": "Max", "CsType": "float", "CType": "float", - "Offset": 36, + "Offset": 60, "Type": { "Spelling": "float", "Kind": "Float" }, - "Doc": "corner radii, pixels" + "Doc": "value range when min != max; otherwise 0 to the largest stacked value" }, { - "CName": "r_br", - "CsName": "RBr", - "CsType": "float", - "CType": "float", - "Offset": 40, + "CName": "format", + "CsName": "Format", + "CsType": "nint", + "CType": "const char *", + "Offset": 64, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "corner radii, pixels" + "Doc": "values in the readout, default \"%.0f\"" }, { - "CName": "r_bl", - "CsName": "RBl", - "CsType": "float", - "CType": "float", - "Offset": 44, + "CName": "unit", + "CsName": "Unit", + "CsType": "nint", + "CType": "const char *", + "Offset": 72, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Doc": "corner radii, pixels" + "Doc": "after values in the readout, e.g. \"MG\"" }, { - "CName": "border", - "CsName": "Border", + "CName": "pitch", + "CsName": "Pitch", "CsType": "float", "CType": "float", - "Offset": 48, + "Offset": 80, "Type": { "Spelling": "float", "Kind": "Float" }, - "Doc": "border width (RRECT) or blur sigma (SHADOW)" + "Doc": "distance between dot centers in points, default 6" }, { - "CName": "mode", - "CsName": "Mode", - "CsType": "float", - "CType": "float", - "Offset": 52, + "CName": "no_grid", + "CsName": "NoGrid", + "CsType": "byte", + "CType": "_Bool", + "Offset": 84, "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "CUI_SHADE_*" + "Doc": "hides the dim dots of the empty grid" }, { - "CName": "color", - "CsName": "Color", - "CsType": "NativeColor", - "CType": "cui_color", - "Offset": 56, + "CName": "no_axis", + "CsName": "NoAxis", + "CsType": "byte", + "CType": "_Bool", + "Offset": 85, "Type": { - "Spelling": "cui_color", - "Kind": "Record" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "fill" + "Doc": "hides the x labels, e.g. when an event track under the chart has them" }, { - "CName": "border_color", - "CsName": "BorderColor", - "CsType": "NativeColor", - "CType": "cui_color", - "Offset": 60, + "CName": "no_readout", + "CsName": "NoReadout", + "CsType": "byte", + "CType": "_Bool", + "Offset": 86, "Type": { - "Spelling": "cui_color", - "Kind": "Record" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "" + "Doc": "no value label under the pointer" + }, + { + "CName": "annotations", + "CsName": "Annotations", + "CsType": "nint", + "CType": "const cui_chart_annotation *", + "Offset": 88, + "Type": { + "Spelling": "const cui_chart_annotation *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_chart_annotation", + "Kind": "Record", + "IsConst": true + } + }, + "Doc": "lines and points drawn over the dots" + }, + { + "CName": "annotation_count", + "CsName": "AnnotationCount", + "CsType": "int", + "CType": "int", + "Offset": 96, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "number of `annotations`" } ], "Doc": "" }, { - "CName": "cui_draw_cmd", - "CsName": "NativeDrawCmd", - "Size": 32, + "CName": "cui_dot_chart_result", + "CsName": "NativeDotChartResult", + "Size": 24, "Helpers": [], "Fields": [ { - "CName": "clip", - "CsName": "Clip", - "CsType": "NativeRect", - "CType": "cui_rect", + "CName": "hovered", + "CsName": "Hovered", + "CsType": "int", + "CType": "int", "Type": { - "Spelling": "cui_rect", - "Kind": "Record" + "Spelling": "int", + "Kind": "Int" }, - "Doc": "pixels" + "Doc": "pointer or keyboard sample, middle on first keyboard activation, else -1" }, { - "CName": "texture", - "CsName": "Texture", - "CsType": "nuint", - "CType": "cui_texture", - "Offset": 16, + "CName": "x", + "CsName": "X", + "CsType": "double", + "CType": "double", + "Offset": 8, "Type": { - "Spelling": "cui_texture", - "Kind": "ULongLong" + "Spelling": "double", + "Kind": "Double" }, - "Doc": "0 = font atlas" + "Doc": "that sample's x, in x units" }, { - "CName": "index_offset", - "CsName": "IndexOffset", - "CsType": "uint", - "CType": "uint32_t", - "Offset": 24, + "CName": "value", + "CsName": "Value", + "CsType": "float", + "CType": "float", + "Offset": 16, "Type": { - "Spelling": "uint32_t", - "Kind": "UInt" + "Spelling": "float", + "Kind": "Float" }, - "Doc": "" + "Doc": "the stacked value there" }, { - "CName": "index_count", - "CsName": "IndexCount", - "CsType": "uint", - "CType": "uint32_t", - "Offset": 28, + "CName": "clicked", + "CsName": "Clicked", + "CsType": "byte", + "CType": "_Bool", + "Offset": 20, "Type": { - "Spelling": "uint32_t", - "Kind": "UInt" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "" + "Doc": "the plot was clicked, or Enter was pressed on it, this frame: `x` is where" } ], "Doc": "" }, { - "CName": "cui_draw_data", - "CsName": "NativeDrawData", + "CName": "cui_event_track_opts", + "CsName": "NativeEventTrackOpts", "Size": 64, "Helpers": [], "Fields": [ { - "CName": "vertices", - "CsName": "Vertices", - "CsType": "nint", - "CType": "const cui_vertex *", + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", "Type": { - "Spelling": "const cui_vertex *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_vertex", - "Kind": "Record", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" }, "Doc": "" }, { - "CName": "vertex_count", - "CsName": "VertexCount", - "CsType": "int", - "CType": "int", - "Offset": 8, + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", + "Offset": 4, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_size", + "Kind": "Record" }, "Doc": "" }, { - "CName": "indices", - "CsName": "Indices", - "CsType": "nint", - "CType": "const uint32_t *", + "CName": "step", + "CsName": "Step", + "CsType": "double", + "CType": "double", "Offset": 16, "Type": { - "Spelling": "const uint32_t *", - "Kind": "Pointer", - "Element": { - "Spelling": "const uint32_t", - "Kind": "UInt", - "IsConst": true - } + "Spelling": "double", + "Kind": "Double" }, - "Doc": "" + "Doc": "events snap to multiples of this from `min`; 0 does not snap" }, { - "CName": "index_count", - "CsName": "IndexCount", - "CsType": "int", - "CType": "int", + "CName": "units", + "CsName": "Units", + "CsType": "AxisUnits", + "CType": "cui_axis_units", "Offset": 24, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_axis_units", + "Kind": "Enum" }, "Doc": "" }, { - "CName": "commands", - "CsName": "Commands", + "CName": "format", + "CsName": "Format", "CsType": "nint", - "CType": "const cui_draw_cmd *", + "CType": "const char *", "Offset": 32, "Type": { - "Spelling": "const cui_draw_cmd *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_draw_cmd", - "Kind": "Record", + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } }, - "Doc": "" + "Doc": "labels with CUI_AXIS_NUMBER, default \"%g\"" }, { - "CName": "command_count", - "CsName": "CommandCount", - "CsType": "int", - "CType": "int", + "CName": "label_step", + "CsName": "LabelStep", + "CsType": "double", + "CType": "double", "Offset": 40, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "double", + "Kind": "Double" }, - "Doc": "" + "Doc": "spacing of the axis labels; 0 picks one that fits" }, { - "CName": "width_px", - "CsName": "WidthPx", - "CsType": "int", - "CType": "int", - "Offset": 44, + "CName": "selected", + "CsName": "Selected", + "CsType": "nint", + "CType": "int *", + "Offset": 48, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } }, - "Doc": "framebuffer size" + "Doc": "the selected event or -1, kept by you; `NULL` keeps it in the track" }, { - "CName": "height_px", - "CsName": "HeightPx", - "CsType": "int", - "CType": "int", - "Offset": 48, + "CName": "no_add", + "CsName": "NoAdd", + "CsType": "byte", + "CType": "_Bool", + "Offset": 56, "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "framebuffer size" + "Doc": "clicks and Enter do not add events" }, { - "CName": "clear_color", - "CsName": "ClearColor", - "CsType": "NativeColor", - "CType": "cui_color", - "Offset": 52, + "CName": "no_remove", + "CsName": "NoRemove", + "CsType": "byte", + "CType": "_Bool", + "Offset": 57, "Type": { - "Spelling": "cui_color", - "Kind": "Record" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "" + "Doc": "double-clicks and Delete do not remove events" }, { - "CName": "font_atlas", - "CsName": "FontAtlas", - "CsType": "nuint", - "CType": "cui_texture", - "Offset": 56, + "CName": "no_axis", + "CsName": "NoAxis", + "CsType": "byte", + "CType": "_Bool", + "Offset": 58, "Type": { - "Spelling": "cui_texture", - "Kind": "ULongLong" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "" + "Doc": "hides the axis labels under the dots" } ], - "Doc": "" + "Doc": "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 `capacity`." }, { - "CName": "cui_app_desc", - "CsName": "NativeAppDesc", - "Size": 56, + "CName": "cui_event_track_result", + "CsName": "NativeEventTrackResult", + "Size": 20, "Helpers": [], "Fields": [ { - "CName": "title", - "CsName": "Title", - "CsType": "nint", - "CType": "const char *", + "CName": "changed", + "CsName": "Changed", + "CsType": "byte", + "CType": "_Bool", "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "_Bool", + "Kind": "Bool" }, - "Doc": "default \"CUI\"" + "Doc": "an event was moved, added or removed this frame" }, { - "CName": "width", - "CsName": "Width", + "CName": "added", + "CsName": "Added", "CsType": "int", "CType": "int", - "Offset": 8, + "Offset": 4, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "logical size, default 1080 x 720" + "Doc": "index of the event added this frame, or -1" }, { - "CName": "height", - "CsName": "Height", + "CName": "removed", + "CsName": "Removed", "CsType": "int", "CType": "int", - "Offset": 12, + "Offset": 8, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "logical size, default 1080 x 720" + "Doc": "index the removed event had, or -1" }, { - "CName": "min_width", - "CsName": "MinWidth", + "CName": "selected", + "CsName": "Selected", "CsType": "int", "CType": "int", - "Offset": 16, + "Offset": 12, "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "default 360 x 280" + "Doc": "the selected event after this frame, or -1" }, { - "CName": "min_height", - "CsName": "MinHeight", - "CsType": "int", - "CType": "int", - "Offset": 20, + "CName": "dragging", + "CsName": "Dragging", + "CsType": "byte", + "CType": "_Bool", + "Offset": 16, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "an event is being dragged" + } + ], + "Doc": "" + }, + { + "CName": "cui_readout_opts", + "CsName": "NativeReadoutOpts", + "Size": 48, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", "Type": { "Spelling": "int", "Kind": "Int" }, - "Doc": "default 360 x 280" + "Doc": "" }, { - "CName": "fixed_size", - "CsName": "FixedSize", + "CName": "unit", + "CsName": "Unit", + "CsType": "nint", + "CType": "const char *", + "Offset": 8, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "after the value, smaller and muted, e.g. \"MG\"" + }, + { + "CName": "detail", + "CsName": "Detail", + "CsType": "nint", + "CType": "const char *", + "Offset": 16, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "a muted line under the value; `NULL` for none" + }, + { + "CName": "size", + "CsName": "Size", + "CsType": "ControlSize", + "CType": "cui_control_size", + "Offset": 24, + "Type": { + "Spelling": "cui_control_size", + "Kind": "Enum" + }, + "Doc": "the value's size: CUI_SIZE_SM 17, CUI_SIZE_MD 28 (default), CUI_SIZE_LG 44 points" + }, + { + "CName": "tone", + "CsName": "Tone", + "CsType": "Tone", + "CType": "cui_tone", + "Offset": 28, + "Type": { + "Spelling": "cui_tone", + "Kind": "Enum" + }, + "Doc": "the value's color; 0 is the foreground" + }, + { + "CName": "accent", + "CsName": "Accent", "CsType": "byte", "CType": "_Bool", - "Offset": 24, + "Offset": 32, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "not resizable" + "Doc": "the value in the accent color" }, { - "CName": "continuous", - "CsName": "Continuous", + "CName": "align", + "CsName": "Align", + "CsType": "TextAlign", + "CType": "cui_text_align", + "Offset": 36, + "Type": { + "Spelling": "cui_text_align", + "Kind": "Enum" + }, + "Doc": "default start" + }, + { + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", + "Offset": 40, + "Type": { + "Spelling": "cui_size", + "Kind": "Record" + }, + "Doc": "default fit" + } + ], + "Doc": "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." + }, + { + "CName": "cui_dot_display_opts", + "CsName": "NativeDotDisplayOpts", + "Size": 28, + "Helpers": [], + "Fields": [ + { + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" + }, + { + "CName": "pitch", + "CsName": "Pitch", + "CsType": "float", + "CType": "float", + "Offset": 4, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "distance between dot centers in points, default 4" + }, + { + "CName": "color", + "CsName": "Color", + "CsType": "NativeColor", + "CType": "cui_color", + "Offset": 8, + "Type": { + "Spelling": "cui_color", + "Kind": "Record" + }, + "Doc": "lit dots; unset: the foreground" + }, + { + "CName": "accent", + "CsName": "Accent", "CsType": "byte", "CType": "_Bool", - "Offset": 25, + "Offset": 12, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "render every frame even when idle (games, video)" + "Doc": "lit dots in the accent color" }, { - "CName": "no_vsync", - "CsName": "NoVsync", + "CName": "no_dim", + "CsName": "NoDim", "CsType": "byte", "CType": "_Bool", - "Offset": 26, + "Offset": 13, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "OpenGL: do not wait for the display; frames are capped at 120 Hz or the refresh rate" + "Doc": "hides the unlit dots" }, { - "CName": "hidden", - "CsName": "Hidden", + "CName": "marquee", + "CsName": "Marquee", "CsType": "byte", "CType": "_Bool", - "Offset": 27, + "Offset": 14, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "create the window hidden (tests)" + "Doc": "scrolls text that is wider than the box instead of shrinking it" }, { - "CName": "renderer", - "CsName": "Renderer", - "CsType": "Renderer", - "CType": "cui_renderer_kind", - "Offset": 28, + "CName": "align", + "CsName": "Align", + "CsType": "TextAlign", + "CType": "cui_text_align", + "Offset": 16, "Type": { - "Spelling": "cui_renderer_kind", + "Spelling": "cui_text_align", "Kind": "Enum" }, - "Doc": "" + "Doc": "where the text sits in a wider box, default start" }, { - "CName": "theme", - "CsName": "Theme", - "CsType": "Theme", - "CType": "cui_theme_mode", - "Offset": 32, + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", + "Offset": 20, "Type": { - "Spelling": "cui_theme_mode", + "Spelling": "cui_size", + "Kind": "Record" + }, + "Doc": "default fit to the text" + } + ], + "Doc": "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." + }, + { + "CName": "cui_text_format", + "CsName": "NativeTextFormat", + "Size": 24, + "Helpers": [], + "Fields": [ + { + "CName": "color", + "CsName": "Color", + "CsType": "Tone", + "CType": "cui_tone", + "Type": { + "Spelling": "cui_tone", "Kind": "Enum" }, + "Doc": "the text color, as a tone so it follows the theme; CUI_TONE_NEUTRAL is the text color" + }, + { + "CName": "bold", + "CsName": "Bold", + "CsType": "byte", + "CType": "_Bool", + "Offset": 4, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, "Doc": "" }, { - "CName": "accent", - "CsName": "Accent", - "CsType": "Accent", - "CType": "cui_accent", - "Offset": 36, + "CName": "underline", + "CsName": "Underline", + "CsType": "byte", + "CType": "_Bool", + "Offset": 5, "Type": { - "Spelling": "cui_accent", - "Kind": "Enum" + "Spelling": "_Bool", + "Kind": "Bool" }, "Doc": "" }, { - "CName": "follow_system_theme", - "CsName": "FollowSystemTheme", + "CName": "link", + "CsName": "Link", "CsType": "byte", "CType": "_Bool", - "Offset": 40, + "Offset": 6, "Type": { "Spelling": "_Bool", "Kind": "Bool" }, - "Doc": "use the OS light/dark setting where available" + "Doc": "the selection is a link: the link button shows pressed" }, { - "CName": "app_id", - "CsName": "AppId", + "CName": "style", + "CsName": "Style", + "CsType": "int", + "CType": "int", + "Offset": 8, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "index into the styles (default: 0 Header, 1 Title, 2 Subtitle, 3 Normal text)" + }, + { + "CName": "size", + "CsName": "Size", + "CsType": "float", + "CType": "float", + "Offset": 12, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "the size readout, in your units; set from the style when the style changes" + }, + { + "CName": "align", + "CsName": "Align", + "CsType": "FormatAlign", + "CType": "cui_format_align", + "Offset": 16, + "Type": { + "Spelling": "cui_format_align", + "Kind": "Enum" + }, + "Doc": "" + }, + { + "CName": "list", + "CsName": "List", + "CsType": "FormatList", + "CType": "cui_format_list", + "Offset": 20, + "Type": { + "Spelling": "cui_format_list", + "Kind": "Enum" + }, + "Doc": "" + } + ], + "Doc": "" + }, + { + "CName": "cui_text_style", + "CsName": "NativeTextStyle", + "Size": 24, + "Helpers": [], + "Fields": [ + { + "CName": "name", + "CsName": "Name", "CsType": "nint", "CType": "const char *", - "Offset": 48, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -25395,51 +27003,128 @@ "IsConst": true } }, - "Doc": "Linux: the app's ID, which is the name of its .desktop file without \".desktop\", e.g. \"org.example.Notes\". The desktop uses it to show the app's name and icon for the window (taskbar, dock, Alt+Tab) and to group its windows. Sets WM_CLASS on X11 and the app_id on Wayland (SDL2, and GLFW 3.4). Read when the window is created; ignored on Windows and macOS. Default: none (the X11 backend then sets WM_CLASS to the title and \"CUI\")." + "Doc": "\"Header\"" + }, + { + "CName": "size", + "CsName": "Size", + "CsType": "float", + "CType": "float", + "Offset": 8, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "the size it sets in your document, shown in the readout, e.g. 44" + }, + { + "CName": "preview_size", + "CsName": "PreviewSize", + "CsType": "float", + "CType": "float", + "Offset": 12, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "the size of its name in the menu, in points" + }, + { + "CName": "font", + "CsName": "Font", + "CsType": "Font", + "CType": "cui_font", + "Offset": 16, + "Type": { + "Spelling": "cui_font", + "Kind": "Int" + }, + "Doc": "the font of its name in the menu" } ], - "Doc": "" + "Doc": "One text style of the style menu." }, { - "CName": "cui_file_dialog_opts", - "CsName": "NativeFileDialogOpts", - "Size": 40, + "CName": "cui_format_bar_opts", + "CsName": "NativeFormatBarOpts", + "Size": 72, "Helpers": [], "Fields": [ { - "CName": "kind", - "CsName": "Kind", - "CsType": "FileDialogKind", - "CType": "cui_file_dialog_kind", + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", "Type": { - "Spelling": "cui_file_dialog_kind", - "Kind": "Enum" + "Spelling": "int", + "Kind": "Int" }, "Doc": "" }, { - "CName": "title", - "CsName": "Title", + "CName": "styles", + "CsName": "Styles", "CsType": "nint", - "CType": "const char *", + "CType": "const cui_text_style *", "Offset": 8, "Type": { - "Spelling": "const char *", + "Spelling": "const cui_text_style *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", + "Spelling": "const cui_text_style", + "Kind": "Record", "IsConst": true } }, + "Doc": "`NULL`: Header, Title, Subtitle and Normal text" + }, + { + "CName": "style_count", + "CsName": "StyleCount", + "CsType": "int", + "CType": "int", + "Offset": 16, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, "Doc": "" }, { - "CName": "filter_name", - "CsName": "FilterName", + "CName": "colors", + "CsName": "Colors", + "CsType": "nint", + "CType": "const cui_tone *", + "Offset": 24, + "Type": { + "Spelling": "const cui_tone *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_tone", + "Kind": "Enum", + "IsConst": true + } + }, + "Doc": "the color grid; `NULL`: eight tones, the text color first" + }, + { + "CName": "color_count", + "CsName": "ColorCount", + "CsType": "int", + "CType": "int", + "Offset": 32, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "" + }, + { + "CName": "footer", + "CsName": "Footer", "CsType": "nint", "CType": "const char *", - "Offset": 16, + "Offset": 40, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -25449,14 +27134,14 @@ "IsConst": true } }, - "Doc": "e.g. \"Images\"" + "Doc": "a muted line under the styles, default \"Text options\"; \"\" leaves it out" }, { - "CName": "filter", - "CsName": "Filter", + "CName": "footer_keys", + "CsName": "FooterKeys", "CsType": "nint", "CType": "const char *", - "Offset": 24, + "Offset": 48, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -25466,14 +27151,14 @@ "IsConst": true } }, - "Doc": "extensions separated by ';', e.g. \"png;jpg\"" + "Doc": "keycaps beside it, default \"Ctrl Alt 0\" (\"\" for none); a hint, the shortcut is yours" }, { - "CName": "default_name", - "CsName": "DefaultName", + "CName": "delete_question", + "CsName": "DeleteQuestion", "CsType": "nint", "CType": "const char *", - "Offset": 32, + "Offset": 56, "Type": { "Spelling": "const char *", "Kind": "Pointer", @@ -25483,1035 +27168,1847 @@ "IsConst": true } }, - "Doc": "save dialogs" + "Doc": "default \"Delete this text?\"" + }, + { + "CName": "no_delete", + "CsName": "NoDelete", + "CsType": "byte", + "CType": "_Bool", + "Offset": 64, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "leaves out the delete button" + }, + { + "CName": "no_more", + "CsName": "NoMore", + "CsType": "byte", + "CType": "_Bool", + "Offset": 65, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "leaves out the \"...\" button" } ], "Doc": "" - } - ], - "Enums": [ + }, { - "CName": "cui_token", - "CsName": "Token", - "Values": [ + "CName": "cui_live_user", + "CsName": "NativeLiveUser", + "Size": 48, + "Helpers": [], + "Fields": [ { - "CName": "CUI_TOKEN_NONE", - "CsName": "None", - "Value": "0", - "Doc": "" + "CName": "name", + "CsName": "Name", + "CsType": "nint", + "CType": "const char *", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "on the flag, and the identity that keeps a cursor gliding: keep it stable" }, { - "CName": "CUI_TOKEN_BACKGROUND", - "CsName": "Background", - "Value": "1", - "Doc": "" + "CName": "color", + "CsName": "Color", + "CsType": "NativeColor", + "CType": "cui_color", + "Offset": 8, + "Type": { + "Spelling": "cui_color", + "Kind": "Record" + }, + "Doc": "the cursor, flag and avatar; unset: `tone`" }, { - "CName": "CUI_TOKEN_SURFACE", - "CsName": "Surface", - "Value": "2", - "Doc": "" + "CName": "tone", + "CsName": "Tone", + "CsType": "Tone", + "CType": "cui_tone", + "Offset": 12, + "Type": { + "Spelling": "cui_tone", + "Kind": "Enum" + }, + "Doc": "the color as a tone of the theme when `color` is unset; 0: a tone chosen from the name" }, { - "CName": "CUI_TOKEN_SURFACE_RAISED", - "CsName": "SurfaceRaised", - "Value": "3", - "Doc": "" + "CName": "x", + "CsName": "X", + "CsType": "float", + "CType": "float", + "Offset": 16, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "where the pointer is" }, { - "CName": "CUI_TOKEN_SURFACE_MUTED", - "CsName": "SurfaceMuted", - "Value": "4", - "Doc": "" + "CName": "y", + "CsName": "Y", + "CsType": "float", + "CType": "float", + "Offset": 20, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "where the pointer is" }, { - "CName": "CUI_TOKEN_FOREGROUND", - "CsName": "Foreground", - "Value": "5", - "Doc": "" + "CName": "says", + "CsName": "Says", + "CsType": "nint", + "CType": "const char *", + "Offset": 24, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "a chat bubble under the flag; `NULL` for none" }, { - "CName": "CUI_TOKEN_TEXT_SECONDARY", - "CsName": "TextSecondary", - "Value": "6", - "Doc": "" + "CName": "speaking", + "CsName": "Speaking", + "CsType": "byte", + "CType": "_Bool", + "Offset": 32, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "presence pill: a ring and moving level bars on this person" }, { - "CName": "CUI_TOKEN_TEXT_MUTED", - "CsName": "TextMuted", - "Value": "7", - "Doc": "" + "CName": "away", + "CsName": "Away", + "CsType": "byte", + "CType": "_Bool", + "Offset": 33, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "the pointer is hidden (it left the canvas); still in the presence pill" }, { - "CName": "CUI_TOKEN_BORDER", - "CsName": "Border", - "Value": "8", - "Doc": "" - }, + "CName": "avatar", + "CsName": "Avatar", + "CsType": "nuint", + "CType": "cui_texture", + "Offset": 40, + "Type": { + "Spelling": "cui_texture", + "Kind": "ULongLong" + }, + "Doc": "presence pill: a picture instead of the initials" + } + ], + "Doc": "Live cursors: other people's pointers over the previous component (a canvas, a document, a node editor), each an arrow in their color with a name flag and an optional chat bubble. You pass where each pointer is whenever it changes; the cursors glide there, at the same speed at any frame rate. Positions are points from the component's top-left corner, or canvas points under `view` (the node editor's pan and zoom). Cursors only draw: they take no input and no focus." + }, + { + "CName": "cui_live_cursors_opts", + "CsName": "NativeLiveCursorsOpts", + "Size": 24, + "Helpers": [], + "Fields": [ { - "CName": "CUI_TOKEN_BORDER_SUBTLE", - "CsName": "BorderSubtle", - "Value": "9", + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, "Doc": "" }, { - "CName": "CUI_TOKEN_BORDER_STRONG", - "CsName": "BorderStrong", - "Value": "10", - "Doc": "" + "CName": "view", + "CsName": "View", + "CsType": "nint", + "CType": "const cui_node_view *", + "Offset": 8, + "Type": { + "Spelling": "const cui_node_view *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_node_view", + "Kind": "Record", + "IsConst": true + } + }, + "Doc": "positions are canvas points under this pan and zoom; `NULL`: points in the component" }, { - "CName": "CUI_TOKEN_ACCENT", - "CsName": "Accent", - "Value": "11", - "Doc": "" - }, + "CName": "no_glide", + "CsName": "NoGlide", + "CsType": "byte", + "CType": "_Bool", + "Offset": 16, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "jump to each new position" + } + ], + "Doc": "" + }, + { + "CName": "cui_presence_pill_opts", + "CsName": "NativePresencePillOpts", + "Size": 12, + "Helpers": [], + "Fields": [ { - "CName": "CUI_TOKEN_ACCENT_STRONG", - "CsName": "AccentStrong", - "Value": "12", + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, "Doc": "" }, { - "CName": "CUI_TOKEN_ACCENT_SUBTLE", - "CsName": "AccentSubtle", - "Value": "13", - "Doc": "" + "CName": "size", + "CsName": "Size", + "CsType": "float", + "CType": "float", + "Offset": 4, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "avatar size, default 26" }, { - "CName": "CUI_TOKEN_ACCENT_FOREGROUND", - "CsName": "AccentForeground", - "Value": "14", - "Doc": "" - }, + "CName": "max_visible", + "CsName": "MaxVisible", + "CsType": "int", + "CType": "int", + "Offset": 8, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "default 5; the rest become \"+n\"" + } + ], + "Doc": "Presence pill: who is here, as overlapping avatars in their colors. Whoever is speaking gets a ring, and the pill shows moving level bars and their name." + }, + { + "CName": "cui_selection_ring_opts", + "CsName": "NativeSelectionRingOpts", + "Size": 24, + "Helpers": [], + "Fields": [ { - "CName": "CUI_TOKEN_SUCCESS", - "CsName": "Success", - "Value": "15", + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, "Doc": "" }, { - "CName": "CUI_TOKEN_WARNING", - "CsName": "Warning", - "Value": "16", - "Doc": "" + "CName": "name", + "CsName": "Name", + "CsType": "nint", + "CType": "const char *", + "Offset": 8, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "a small flag at the top end corner; `NULL` for none" }, { - "CName": "CUI_TOKEN_DANGER", - "CsName": "Danger", - "Value": "17", - "Doc": "" - }, + "CName": "radius", + "CsName": "Radius", + "CsType": "float", + "CType": "float", + "Offset": 16, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "the ring's corner radius; 0 follows the component's corners" + } + ], + "Doc": "Selection ring: a ring in someone's color around the previous component, for \"this item is selected by Kate\", with an optional name flag on its corner." + }, + { + "CName": "cui_canvas_toggle", + "CsName": "NativeCanvasToggle", + "Size": 24, + "Helpers": [], + "Fields": [ { - "CName": "CUI_TOKEN_INFO", - "CsName": "Info", - "Value": "18", + "CName": "icon", + "CsName": "Icon", + "CsType": "nint", + "CType": "const char *", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, "Doc": "" }, { - "CName": "CUI_TOKEN_CONTROL_ON", - "CsName": "ControlOn", - "Value": "19", - "Doc": "" + "CName": "label", + "CsName": "Label", + "CsType": "nint", + "CType": "const char *", + "Offset": 8, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "the tooltip" }, { - "CName": "CUI_TOKEN_CONTROL_GLYPH", - "CsName": "ControlGlyph", - "Value": "20", - "Doc": "" - }, + "CName": "on", + "CsName": "On", + "CsType": "nint", + "CType": "_Bool *", + "Offset": 16, + "Type": { + "Spelling": "_Bool *", + "Kind": "Pointer", + "Element": { + "Spelling": "_Bool", + "Kind": "Bool" + } + }, + "Doc": "flipped on click, shown pressed while true" + } + ], + "Doc": "Canvas controls: a floating rail of zoom controls over the previous component, at its end edge: zoom in, the zoom as a percentage (a click resets it to 100%), zoom out, fit, and toggles of your own (grid, layers). It drives a pan and zoom view, the same struct as the node editor's, so it works with a node editor as it is; zooming keeps the middle of the component in place and eases there. Zoom steps through presets (25% to 400% unless you pass your own). Tab moves through the buttons." + }, + { + "CName": "cui_canvas_controls_opts", + "CsName": "NativeCanvasControlsOpts", + "Size": 56, + "Helpers": [], + "Fields": [ { - "CName": "CUI_TOKEN_CONTROL_TRACK", - "CsName": "ControlTrack", - "Value": "21", + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, "Doc": "" }, { - "CName": "CUI_TOKEN_CONTROL_TRACK_HOVER", - "CsName": "ControlTrackHover", - "Value": "22", - "Doc": "" + "CName": "steps", + "CsName": "Steps", + "CsType": "nint", + "CType": "const float *", + "Offset": 8, + "Type": { + "Spelling": "const float *", + "Kind": "Pointer", + "Element": { + "Spelling": "const float", + "Kind": "Float", + "IsConst": true + } + }, + "Doc": "zoom presets, ascending; `NULL`: 0.25 0.33 0.5 0.67 0.8 1 1.25 1.5 2 3 4" }, { - "CName": "CUI_TOKEN_CONTROL_THUMB", - "CsName": "ControlThumb", - "Value": "23", + "CName": "step_count", + "CsName": "StepCount", + "CsType": "int", + "CType": "int", + "Offset": 16, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, "Doc": "" }, { - "CName": "CUI_TOKEN_CONTROL_THUMB_ON", - "CsName": "ControlThumbOn", - "Value": "24", - "Doc": "" + "CName": "content", + "CsName": "Content", + "CsType": "NativeRect", + "CType": "cui_rect", + "Offset": 20, + "Type": { + "Spelling": "cui_rect", + "Kind": "Record" + }, + "Doc": "the content's bounds in canvas points, for fit; empty: fit is only reported" }, { - "CName": "CUI_TOKEN_HOVER", - "CsName": "Hover", - "Value": "25", + "CName": "toggles", + "CsName": "Toggles", + "CsType": "nint", + "CType": "const cui_canvas_toggle *", + "Offset": 40, + "Type": { + "Spelling": "const cui_canvas_toggle *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_canvas_toggle", + "Kind": "Record", + "IsConst": true + } + }, "Doc": "" }, { - "CName": "CUI_TOKEN_ACTIVE", - "CsName": "Active", - "Value": "26", + "CName": "toggle_count", + "CsName": "ToggleCount", + "CsType": "int", + "CType": "int", + "Offset": 48, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, "Doc": "" }, { - "CName": "CUI_TOKEN_SCRIM", - "CsName": "Scrim", - "Value": "27", - "Doc": "" + "CName": "no_fit", + "CsName": "NoFit", + "CsType": "byte", + "CType": "_Bool", + "Offset": 52, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "leaves out the fit button" }, { - "CName": "CUI_TOKEN_FOCUS_RING", - "CsName": "FocusRing", - "Value": "28", - "Doc": "" - }, + "CName": "start_side", + "CsName": "StartSide", + "CsType": "byte", + "CType": "_Bool", + "Offset": 53, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "the rail sits at the start edge (left, or right in a right-to-left interface)" + } + ], + "Doc": "" + }, + { + "CName": "cui_result_card_opts", + "CsName": "NativeResultCardOpts", + "Size": 48, + "Helpers": [], + "Fields": [ { - "CName": "CUI_TOKEN_SERIES_1", - "CsName": "Series1", - "Value": "29", + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, "Doc": "" }, { - "CName": "CUI_TOKEN_SERIES_2", - "CsName": "Series2", - "Value": "30", - "Doc": "" + "CName": "caption", + "CsName": "Caption", + "CsType": "nint", + "CType": "const char *", + "Offset": 8, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "under the title, wraps" }, { - "CName": "CUI_TOKEN_SERIES_3", - "CsName": "Series3", - "Value": "31", - "Doc": "" + "CName": "badge", + "CsName": "Badge", + "CsType": "nint", + "CType": "const char *", + "Offset": 16, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "the status chip, e.g. \"Done in 4.2 s\"; `NULL` for none" }, { - "CName": "CUI_TOKEN_SERIES_4", - "CsName": "Series4", - "Value": "32", - "Doc": "" + "CName": "badge_tone", + "CsName": "BadgeTone", + "CsType": "Tone", + "CType": "cui_tone", + "Offset": 24, + "Type": { + "Spelling": "cui_tone", + "Kind": "Enum" + }, + "Doc": "the chip's dot, default success" }, { - "CName": "CUI_TOKEN_SERIES_5", - "CsName": "Series5", - "Value": "33", - "Doc": "" + "CName": "image_w", + "CsName": "ImageW", + "CsType": "int", + "CType": "int", + "Offset": 28, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "the picture's size in pixels, to crop it without stretching; 0: stretched" }, { - "CName": "CUI_TOKEN_SERIES_6", - "CsName": "Series6", - "Value": "34", - "Doc": "" + "CName": "image_h", + "CsName": "ImageH", + "CsType": "int", + "CType": "int", + "Offset": 32, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "the picture's size in pixels, to crop it without stretching; 0: stretched" }, { - "CName": "CUI_TOKEN_COUNT", - "CsName": "Count", - "Value": "35", - "Doc": "" - } - ], - "Doc": "Semantic colors. Use these instead of raw colors so your UI follows the theme (light/dark) and the accent. They can go anywhere a cui_color goes." - }, - { - "CName": "cui_theme_mode", - "CsName": "Theme", - "Values": [ - { - "CName": "CUI_THEME_LIGHT", - "CsName": "Light", - "Value": "0", - "Doc": "" + "CName": "width", + "CsName": "Width", + "CsType": "NativeSize", + "CType": "cui_size", + "Offset": 36, + "Type": { + "Spelling": "cui_size", + "Kind": "Record" + }, + "Doc": "default fill, up to 320" }, { - "CName": "CUI_THEME_DARK", - "CsName": "Dark", - "Value": "1", - "Doc": "" + "CName": "aspect", + "CsName": "Aspect", + "CsType": "float", + "CType": "float", + "Offset": 44, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "height over width, default 1.25" } ], - "Doc": "" + "Doc": "Result card: a picture with rounded corners, an optional status chip in the top corner, and a title and caption on a soft fade at the bottom, for a render, an export or a generated image. Put its actions under it in a floating toolbar (cui_toolbar with CUI_TOOLBAR_FLOATING, cycle pickers for choices like 2x or PNG). The picture fills the card and is cropped to it. The card is focusable; a click, Enter or Space returns true (open it large)." }, { - "CName": "cui_accent", - "CsName": "Accent", - "Values": [ - { - "CName": "CUI_ACCENT_NEUTRAL", - "CsName": "Neutral", - "Value": "0", - "Doc": "" - }, + "CName": "cui_selection_action", + "CsName": "NativeSelectionAction", + "Size": 24, + "Helpers": [], + "Fields": [ { - "CName": "CUI_ACCENT_VIOLET", - "CsName": "Violet", - "Value": "1", + "CName": "icon", + "CsName": "Icon", + "CsType": "nint", + "CType": "const char *", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, "Doc": "" }, { - "CName": "CUI_ACCENT_BLUE", - "CsName": "Blue", - "Value": "2", + "CName": "label", + "CsName": "Label", + "CsType": "nint", + "CType": "const char *", + "Offset": 8, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, "Doc": "" }, { - "CName": "CUI_ACCENT_GREEN", - "CsName": "Green", - "Value": "3", - "Doc": "" - }, + "CName": "tone", + "CsName": "Tone", + "CsType": "Tone", + "CType": "cui_tone", + "Offset": 16, + "Type": { + "Spelling": "cui_tone", + "Kind": "Enum" + }, + "Doc": "CUI_TONE_DANGER for a destructive action" + } + ], + "Doc": "Selection bar: a floating bar that slides up under the previous component (a list, a table, a grid) while something in it is selected: \"3 selected\" with a clear button, then labeled actions. Esc clears the selection too. Give it the count, or your array of flags in `selected` and it counts and clears them itself." + }, + { + "CName": "cui_selection_bar_opts", + "CsName": "NativeSelectionBarOpts", + "Size": 40, + "Helpers": [], + "Fields": [ { - "CName": "CUI_ACCENT_AMBER", - "CsName": "Amber", - "Value": "4", + "CName": "_", + "CsName": "Sentinel", + "CsType": "int", + "CType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + }, "Doc": "" }, { - "CName": "CUI_ACCENT_ORANGE", - "CsName": "Orange", - "Value": "5", - "Doc": "" + "CName": "selected", + "CsName": "Selected", + "CsType": "nint", + "CType": "_Bool *", + "Offset": 8, + "Type": { + "Spelling": "_Bool *", + "Kind": "Pointer", + "Element": { + "Spelling": "_Bool", + "Kind": "Bool" + } + }, + "Doc": "your flags, one per item: counted, and cleared by the clear button and Esc" }, { - "CName": "CUI_ACCENT_CORAL", - "CsName": "Coral", - "Value": "6", - "Doc": "" + "CName": "item_count", + "CsName": "ItemCount", + "CsType": "int", + "CType": "int", + "Offset": 16, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "how many flags `selected` holds" }, { - "CName": "CUI_ACCENT_ROSE", - "CsName": "Rose", - "Value": "7", - "Doc": "" + "CName": "count_format", + "CsName": "CountFormat", + "CsType": "nint", + "CType": "const char *", + "Offset": 24, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "default \"%d selected\"" }, { - "CName": "CUI_ACCENT_COUNT", - "CsName": "Count", - "Value": "8", - "Doc": "" - } - ], - "Doc": "" - }, - { - "CName": "cui_texture_format", - "CsName": "TextureFormat", - "Values": [ - { - "CName": "CUI_TEXTURE_R8", - "CsName": "R8", - "Value": "1", - "Doc": "" + "CName": "anchor", + "CsName": "Anchor", + "CsType": "uint", + "CType": "cui_id", + "Offset": 32, + "Type": { + "Spelling": "cui_id", + "Kind": "UInt" + }, + "Doc": "the component it sits under; 0: the previous component" }, { - "CName": "CUI_TEXTURE_RGBA8", - "CsName": "Rgba8", - "Value": "4", - "Doc": "" + "CName": "no_escape", + "CsName": "NoEscape", + "CsType": "byte", + "CType": "_Bool", + "Offset": 36, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "Esc does not clear" } ], "Doc": "" }, { - "CName": "cui_direction", - "CsName": "Direction", - "Values": [ + "CName": "cui_corners", + "CsName": "NativeCorners", + "Size": 16, + "Helpers": [], + "Fields": [ { - "CName": "CUI_DIRECTION_INHERIT", - "CsName": "Inherit", - "Value": "0", + "CName": "tl", + "CsName": "Tl", + "CsType": "float", + "CType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + }, "Doc": "" }, { - "CName": "CUI_DIRECTION_LTR", - "CsName": "Ltr", - "Value": "1", + "CName": "tr", + "CsName": "Tr", + "CsType": "float", + "CType": "float", + "Offset": 4, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, "Doc": "" }, { - "CName": "CUI_DIRECTION_RTL", - "CsName": "Rtl", - "Value": "2", + "CName": "br", + "CsName": "Br", + "CsType": "float", + "CType": "float", + "Offset": 8, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, "Doc": "" }, { - "CName": "CUI_DIRECTION_AUTO", - "CsName": "Auto", - "Value": "3", + "CName": "bl", + "CsName": "Bl", + "CsType": "float", + "CType": "float", + "Offset": 12, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, "Doc": "" } ], - "Doc": "Zero inherits the parent, or LTR at the context root. With text shaping, AUTO uses the first strong character in descendant text, ignoring explicitly directed subtrees. Without text shaping, AUTO resolves to LTR." + "Doc": "" }, { - "CName": "cui_mouse_button", - "CsName": "MouseButton", - "Values": [ + "CName": "cui_canvas_result", + "CsName": "NativeCanvasResult", + "Size": 28, + "Helpers": [], + "Fields": [ { - "CName": "CUI_MOUSE_LEFT", - "CsName": "Left", - "Value": "0", + "CName": "rect", + "CsName": "Rect", + "CsType": "NativeRect", + "CType": "cui_rect", + "Type": { + "Spelling": "cui_rect", + "Kind": "Record" + }, "Doc": "" }, { - "CName": "CUI_MOUSE_RIGHT", - "CsName": "Right", - "Value": "1", + "CName": "hovered", + "CsName": "Hovered", + "CsType": "byte", + "CType": "_Bool", + "Offset": 16, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, "Doc": "" }, { - "CName": "CUI_MOUSE_MIDDLE", - "CsName": "Middle", - "Value": "2", + "CName": "pressed", + "CsName": "Pressed", + "CsType": "byte", + "CType": "_Bool", + "Offset": 17, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "" + }, + { + "CName": "clicked", + "CsName": "Clicked", + "CsType": "byte", + "CType": "_Bool", + "Offset": 18, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "" + }, + { + "CName": "mouse", + "CsName": "Mouse", + "CsType": "NativeVec2", + "CType": "cui_vec2", + "Offset": 20, + "Type": { + "Spelling": "cui_vec2", + "Kind": "Record" + }, "Doc": "" } ], "Doc": "" }, { - "CName": "cui_key", - "CsName": "Key", - "Values": [ + "CName": "cui_vertex", + "CsName": "NativeVertex", + "Size": 64, + "Helpers": [], + "Fields": [ { - "CName": "CUI_KEY_NONE", - "CsName": "None", - "Value": "0", - "Doc": "" + "CName": "x", + "CsName": "X", + "CsType": "float", + "CType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "position in pixels" }, { - "CName": "CUI_KEY_TAB", - "CsName": "Tab", - "Value": "1", - "Doc": "" + "CName": "y", + "CsName": "Y", + "CsType": "float", + "CType": "float", + "Offset": 4, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "position in pixels" }, { - "CName": "CUI_KEY_ENTER", - "CsName": "Enter", - "Value": "2", - "Doc": "" + "CName": "u", + "CsName": "U", + "CsType": "float", + "CType": "float", + "Offset": 8, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "texture coordinate" }, { - "CName": "CUI_KEY_ESCAPE", - "CsName": "Escape", - "Value": "3", - "Doc": "" + "CName": "v", + "CsName": "V", + "CsType": "float", + "CType": "float", + "Offset": 12, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "texture coordinate" }, { - "CName": "CUI_KEY_BACKSPACE", - "CsName": "Backspace", - "Value": "4", - "Doc": "" + "CName": "lx", + "CsName": "Lx", + "CsType": "float", + "CType": "float", + "Offset": 16, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "position relative to the shape center, pixels" }, { - "CName": "CUI_KEY_DELETE", - "CsName": "Delete", - "Value": "5", - "Doc": "" + "CName": "ly", + "CsName": "Ly", + "CsType": "float", + "CType": "float", + "Offset": 20, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "position relative to the shape center, pixels" }, { - "CName": "CUI_KEY_SPACE", - "CsName": "Space", - "Value": "6", - "Doc": "" + "CName": "hw", + "CsName": "Hw", + "CsType": "float", + "CType": "float", + "Offset": 24, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "half size of the shape, pixels" }, { - "CName": "CUI_KEY_LEFT", - "CsName": "Left", - "Value": "7", - "Doc": "" + "CName": "hh", + "CsName": "Hh", + "CsType": "float", + "CType": "float", + "Offset": 28, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "half size of the shape, pixels" }, { - "CName": "CUI_KEY_RIGHT", - "CsName": "Right", - "Value": "8", - "Doc": "" + "CName": "r_tl", + "CsName": "RTl", + "CsType": "float", + "CType": "float", + "Offset": 32, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "corner radii, pixels" }, { - "CName": "CUI_KEY_UP", - "CsName": "Up", - "Value": "9", - "Doc": "" + "CName": "r_tr", + "CsName": "RTr", + "CsType": "float", + "CType": "float", + "Offset": 36, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "corner radii, pixels" }, { - "CName": "CUI_KEY_DOWN", - "CsName": "Down", - "Value": "10", - "Doc": "" + "CName": "r_br", + "CsName": "RBr", + "CsType": "float", + "CType": "float", + "Offset": 40, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "corner radii, pixels" }, { - "CName": "CUI_KEY_HOME", - "CsName": "Home", - "Value": "11", - "Doc": "" + "CName": "r_bl", + "CsName": "RBl", + "CsType": "float", + "CType": "float", + "Offset": 44, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "corner radii, pixels" }, { - "CName": "CUI_KEY_END", - "CsName": "End", - "Value": "12", - "Doc": "" + "CName": "border", + "CsName": "Border", + "CsType": "float", + "CType": "float", + "Offset": 48, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "border width (RRECT) or blur sigma (SHADOW)" }, { - "CName": "CUI_KEY_PAGE_UP", - "CsName": "PageUp", - "Value": "13", - "Doc": "" + "CName": "mode", + "CsName": "Mode", + "CsType": "float", + "CType": "float", + "Offset": 52, + "Type": { + "Spelling": "float", + "Kind": "Float" + }, + "Doc": "CUI_SHADE_*" }, { - "CName": "CUI_KEY_PAGE_DOWN", - "CsName": "PageDown", - "Value": "14", - "Doc": "" + "CName": "color", + "CsName": "Color", + "CsType": "NativeColor", + "CType": "cui_color", + "Offset": 56, + "Type": { + "Spelling": "cui_color", + "Kind": "Record" + }, + "Doc": "fill" }, { - "CName": "CUI_KEY_A", - "CsName": "A", - "Value": "15", + "CName": "border_color", + "CsName": "BorderColor", + "CsType": "NativeColor", + "CType": "cui_color", + "Offset": 60, + "Type": { + "Spelling": "cui_color", + "Kind": "Record" + }, "Doc": "" - }, + } + ], + "Doc": "" + }, + { + "CName": "cui_draw_cmd", + "CsName": "NativeDrawCmd", + "Size": 32, + "Helpers": [], + "Fields": [ { - "CName": "CUI_KEY_B", - "CsName": "B", - "Value": "16", - "Doc": "" + "CName": "clip", + "CsName": "Clip", + "CsType": "NativeRect", + "CType": "cui_rect", + "Type": { + "Spelling": "cui_rect", + "Kind": "Record" + }, + "Doc": "pixels" }, { - "CName": "CUI_KEY_C", - "CsName": "C", - "Value": "17", - "Doc": "" + "CName": "texture", + "CsName": "Texture", + "CsType": "nuint", + "CType": "cui_texture", + "Offset": 16, + "Type": { + "Spelling": "cui_texture", + "Kind": "ULongLong" + }, + "Doc": "0 = font atlas" }, { - "CName": "CUI_KEY_D", - "CsName": "D", - "Value": "18", + "CName": "index_offset", + "CsName": "IndexOffset", + "CsType": "uint", + "CType": "uint32_t", + "Offset": 24, + "Type": { + "Spelling": "uint32_t", + "Kind": "UInt" + }, "Doc": "" }, { - "CName": "CUI_KEY_E", - "CsName": "E", - "Value": "19", + "CName": "index_count", + "CsName": "IndexCount", + "CsType": "uint", + "CType": "uint32_t", + "Offset": 28, + "Type": { + "Spelling": "uint32_t", + "Kind": "UInt" + }, "Doc": "" - }, + } + ], + "Doc": "" + }, + { + "CName": "cui_draw_data", + "CsName": "NativeDrawData", + "Size": 64, + "Helpers": [], + "Fields": [ { - "CName": "CUI_KEY_F", - "CsName": "F", - "Value": "20", + "CName": "vertices", + "CsName": "Vertices", + "CsType": "nint", + "CType": "const cui_vertex *", + "Type": { + "Spelling": "const cui_vertex *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_vertex", + "Kind": "Record", + "IsConst": true + } + }, "Doc": "" }, { - "CName": "CUI_KEY_G", - "CsName": "G", - "Value": "21", + "CName": "vertex_count", + "CsName": "VertexCount", + "CsType": "int", + "CType": "int", + "Offset": 8, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, "Doc": "" }, { - "CName": "CUI_KEY_H", - "CsName": "H", - "Value": "22", + "CName": "indices", + "CsName": "Indices", + "CsType": "nint", + "CType": "const uint32_t *", + "Offset": 16, + "Type": { + "Spelling": "const uint32_t *", + "Kind": "Pointer", + "Element": { + "Spelling": "const uint32_t", + "Kind": "UInt", + "IsConst": true + } + }, "Doc": "" }, { - "CName": "CUI_KEY_I", - "CsName": "I", - "Value": "23", + "CName": "index_count", + "CsName": "IndexCount", + "CsType": "int", + "CType": "int", + "Offset": 24, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, "Doc": "" }, { - "CName": "CUI_KEY_J", - "CsName": "J", - "Value": "24", + "CName": "commands", + "CsName": "Commands", + "CsType": "nint", + "CType": "const cui_draw_cmd *", + "Offset": 32, + "Type": { + "Spelling": "const cui_draw_cmd *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_draw_cmd", + "Kind": "Record", + "IsConst": true + } + }, "Doc": "" }, { - "CName": "CUI_KEY_K", - "CsName": "K", - "Value": "25", + "CName": "command_count", + "CsName": "CommandCount", + "CsType": "int", + "CType": "int", + "Offset": 40, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, "Doc": "" }, { - "CName": "CUI_KEY_L", - "CsName": "L", - "Value": "26", - "Doc": "" + "CName": "width_px", + "CsName": "WidthPx", + "CsType": "int", + "CType": "int", + "Offset": 44, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "framebuffer size" }, { - "CName": "CUI_KEY_M", - "CsName": "M", - "Value": "27", - "Doc": "" + "CName": "height_px", + "CsName": "HeightPx", + "CsType": "int", + "CType": "int", + "Offset": 48, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "framebuffer size" }, { - "CName": "CUI_KEY_N", - "CsName": "N", - "Value": "28", + "CName": "clear_color", + "CsName": "ClearColor", + "CsType": "NativeColor", + "CType": "cui_color", + "Offset": 52, + "Type": { + "Spelling": "cui_color", + "Kind": "Record" + }, "Doc": "" }, { - "CName": "CUI_KEY_O", - "CsName": "O", - "Value": "29", + "CName": "font_atlas", + "CsName": "FontAtlas", + "CsType": "nuint", + "CType": "cui_texture", + "Offset": 56, + "Type": { + "Spelling": "cui_texture", + "Kind": "ULongLong" + }, "Doc": "" - }, + } + ], + "Doc": "" + }, + { + "CName": "cui_app_desc", + "CsName": "NativeAppDesc", + "Size": 56, + "Helpers": [], + "Fields": [ { - "CName": "CUI_KEY_P", - "CsName": "P", - "Value": "30", - "Doc": "" + "CName": "title", + "CsName": "Title", + "CsType": "nint", + "CType": "const char *", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "default \"CUI\"" }, { - "CName": "CUI_KEY_Q", - "CsName": "Q", - "Value": "31", - "Doc": "" + "CName": "width", + "CsName": "Width", + "CsType": "int", + "CType": "int", + "Offset": 8, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "logical size, default 1080 x 720" }, { - "CName": "CUI_KEY_R", - "CsName": "R", - "Value": "32", - "Doc": "" + "CName": "height", + "CsName": "Height", + "CsType": "int", + "CType": "int", + "Offset": 12, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "logical size, default 1080 x 720" }, { - "CName": "CUI_KEY_S", - "CsName": "S", - "Value": "33", - "Doc": "" + "CName": "min_width", + "CsName": "MinWidth", + "CsType": "int", + "CType": "int", + "Offset": 16, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "default 360 x 280" }, { - "CName": "CUI_KEY_T", - "CsName": "T", - "Value": "34", - "Doc": "" + "CName": "min_height", + "CsName": "MinHeight", + "CsType": "int", + "CType": "int", + "Offset": 20, + "Type": { + "Spelling": "int", + "Kind": "Int" + }, + "Doc": "default 360 x 280" }, { - "CName": "CUI_KEY_U", - "CsName": "U", - "Value": "35", - "Doc": "" + "CName": "fixed_size", + "CsName": "FixedSize", + "CsType": "byte", + "CType": "_Bool", + "Offset": 24, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "not resizable" }, { - "CName": "CUI_KEY_V", - "CsName": "V", - "Value": "36", - "Doc": "" + "CName": "continuous", + "CsName": "Continuous", + "CsType": "byte", + "CType": "_Bool", + "Offset": 25, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "render every frame even when idle (games, video)" }, { - "CName": "CUI_KEY_W", - "CsName": "W", - "Value": "37", - "Doc": "" + "CName": "no_vsync", + "CsName": "NoVsync", + "CsType": "byte", + "CType": "_Bool", + "Offset": 26, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "OpenGL: do not wait for the display; frames are capped at 120 Hz or the refresh rate" }, { - "CName": "CUI_KEY_X", - "CsName": "X", - "Value": "38", - "Doc": "" + "CName": "hidden", + "CsName": "Hidden", + "CsType": "byte", + "CType": "_Bool", + "Offset": 27, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "create the window hidden (tests)" }, { - "CName": "CUI_KEY_Y", - "CsName": "Y", - "Value": "39", + "CName": "renderer", + "CsName": "Renderer", + "CsType": "Renderer", + "CType": "cui_renderer_kind", + "Offset": 28, + "Type": { + "Spelling": "cui_renderer_kind", + "Kind": "Enum" + }, "Doc": "" }, { - "CName": "CUI_KEY_Z", - "CsName": "Z", - "Value": "40", + "CName": "theme", + "CsName": "Theme", + "CsType": "Theme", + "CType": "cui_theme_mode", + "Offset": 32, + "Type": { + "Spelling": "cui_theme_mode", + "Kind": "Enum" + }, "Doc": "" }, { - "CName": "CUI_KEY_0", - "CsName": "D0", - "Value": "41", + "CName": "accent", + "CsName": "Accent", + "CsType": "Accent", + "CType": "cui_accent", + "Offset": 36, + "Type": { + "Spelling": "cui_accent", + "Kind": "Enum" + }, "Doc": "" }, { - "CName": "CUI_KEY_1", - "CsName": "D1", - "Value": "42", - "Doc": "" + "CName": "follow_system_theme", + "CsName": "FollowSystemTheme", + "CsType": "byte", + "CType": "_Bool", + "Offset": 40, + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Doc": "use the OS light/dark setting where available" }, { - "CName": "CUI_KEY_2", - "CsName": "D2", - "Value": "43", + "CName": "app_id", + "CsName": "AppId", + "CsType": "nint", + "CType": "const char *", + "Offset": 48, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "Linux: the app's ID, which is the name of its .desktop file without \".desktop\", e.g. \"org.example.Notes\". The desktop uses it to show the app's name and icon for the window (taskbar, dock, Alt+Tab) and to group its windows. Sets WM_CLASS on X11 and the app_id on Wayland (SDL2, and GLFW 3.4). Read when the window is created; ignored on Windows and macOS. Default: none (the X11 backend then sets WM_CLASS to the title and \"CUI\")." + } + ], + "Doc": "" + }, + { + "CName": "cui_file_dialog_opts", + "CsName": "NativeFileDialogOpts", + "Size": 40, + "Helpers": [], + "Fields": [ + { + "CName": "kind", + "CsName": "Kind", + "CsType": "FileDialogKind", + "CType": "cui_file_dialog_kind", + "Type": { + "Spelling": "cui_file_dialog_kind", + "Kind": "Enum" + }, "Doc": "" }, { - "CName": "CUI_KEY_3", - "CsName": "D3", - "Value": "44", + "CName": "title", + "CsName": "Title", + "CsType": "nint", + "CType": "const char *", + "Offset": 8, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, "Doc": "" }, { - "CName": "CUI_KEY_4", - "CsName": "D4", - "Value": "45", - "Doc": "" + "CName": "filter_name", + "CsName": "FilterName", + "CsType": "nint", + "CType": "const char *", + "Offset": 16, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "e.g. \"Images\"" }, { - "CName": "CUI_KEY_5", - "CsName": "D5", - "Value": "46", - "Doc": "" + "CName": "filter", + "CsName": "Filter", + "CsType": "nint", + "CType": "const char *", + "Offset": 24, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "extensions separated by ';', e.g. \"png;jpg\"" }, { - "CName": "CUI_KEY_6", - "CsName": "D6", - "Value": "47", + "CName": "default_name", + "CsName": "DefaultName", + "CsType": "nint", + "CType": "const char *", + "Offset": 32, + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Doc": "save dialogs" + } + ], + "Doc": "" + } + ], + "Enums": [ + { + "CName": "cui_token", + "CsName": "Token", + "Values": [ + { + "CName": "CUI_TOKEN_NONE", + "CsName": "None", + "Value": "0", "Doc": "" }, { - "CName": "CUI_KEY_7", - "CsName": "D7", - "Value": "48", + "CName": "CUI_TOKEN_BACKGROUND", + "CsName": "Background", + "Value": "1", "Doc": "" }, { - "CName": "CUI_KEY_8", - "CsName": "D8", - "Value": "49", + "CName": "CUI_TOKEN_SURFACE", + "CsName": "Surface", + "Value": "2", "Doc": "" }, { - "CName": "CUI_KEY_9", - "CsName": "D9", - "Value": "50", + "CName": "CUI_TOKEN_SURFACE_RAISED", + "CsName": "SurfaceRaised", + "Value": "3", "Doc": "" }, { - "CName": "CUI_KEY_MINUS", - "CsName": "Minus", - "Value": "51", + "CName": "CUI_TOKEN_SURFACE_MUTED", + "CsName": "SurfaceMuted", + "Value": "4", "Doc": "" }, { - "CName": "CUI_KEY_EQUAL", - "CsName": "Equal", - "Value": "52", + "CName": "CUI_TOKEN_FOREGROUND", + "CsName": "Foreground", + "Value": "5", "Doc": "" }, { - "CName": "CUI_KEY_COMMA", - "CsName": "Comma", - "Value": "53", + "CName": "CUI_TOKEN_TEXT_SECONDARY", + "CsName": "TextSecondary", + "Value": "6", "Doc": "" }, { - "CName": "CUI_KEY_PERIOD", - "CsName": "Period", - "Value": "54", + "CName": "CUI_TOKEN_TEXT_MUTED", + "CsName": "TextMuted", + "Value": "7", "Doc": "" }, { - "CName": "CUI_KEY_SLASH", - "CsName": "Slash", - "Value": "55", + "CName": "CUI_TOKEN_BORDER", + "CsName": "Border", + "Value": "8", "Doc": "" }, { - "CName": "CUI_KEY_F1", - "CsName": "F1", - "Value": "56", + "CName": "CUI_TOKEN_BORDER_SUBTLE", + "CsName": "BorderSubtle", + "Value": "9", "Doc": "" }, { - "CName": "CUI_KEY_F2", - "CsName": "F2", - "Value": "57", + "CName": "CUI_TOKEN_BORDER_STRONG", + "CsName": "BorderStrong", + "Value": "10", "Doc": "" }, { - "CName": "CUI_KEY_F3", - "CsName": "F3", - "Value": "58", + "CName": "CUI_TOKEN_ACCENT", + "CsName": "Accent", + "Value": "11", "Doc": "" }, { - "CName": "CUI_KEY_F4", - "CsName": "F4", - "Value": "59", + "CName": "CUI_TOKEN_ACCENT_STRONG", + "CsName": "AccentStrong", + "Value": "12", "Doc": "" }, { - "CName": "CUI_KEY_F5", - "CsName": "F5", - "Value": "60", + "CName": "CUI_TOKEN_ACCENT_SUBTLE", + "CsName": "AccentSubtle", + "Value": "13", "Doc": "" }, { - "CName": "CUI_KEY_F6", - "CsName": "F6", - "Value": "61", + "CName": "CUI_TOKEN_ACCENT_FOREGROUND", + "CsName": "AccentForeground", + "Value": "14", "Doc": "" }, { - "CName": "CUI_KEY_F7", - "CsName": "F7", - "Value": "62", + "CName": "CUI_TOKEN_SUCCESS", + "CsName": "Success", + "Value": "15", "Doc": "" }, { - "CName": "CUI_KEY_F8", - "CsName": "F8", - "Value": "63", + "CName": "CUI_TOKEN_WARNING", + "CsName": "Warning", + "Value": "16", "Doc": "" }, { - "CName": "CUI_KEY_F9", - "CsName": "F9", - "Value": "64", + "CName": "CUI_TOKEN_DANGER", + "CsName": "Danger", + "Value": "17", "Doc": "" }, { - "CName": "CUI_KEY_F10", - "CsName": "F10", - "Value": "65", + "CName": "CUI_TOKEN_INFO", + "CsName": "Info", + "Value": "18", "Doc": "" }, { - "CName": "CUI_KEY_F11", - "CsName": "F11", - "Value": "66", + "CName": "CUI_TOKEN_CONTROL_ON", + "CsName": "ControlOn", + "Value": "19", "Doc": "" }, { - "CName": "CUI_KEY_F12", - "CsName": "F12", - "Value": "67", + "CName": "CUI_TOKEN_CONTROL_GLYPH", + "CsName": "ControlGlyph", + "Value": "20", "Doc": "" }, { - "CName": "CUI_KEY_COUNT", - "CsName": "Count", - "Value": "68", + "CName": "CUI_TOKEN_CONTROL_TRACK", + "CsName": "ControlTrack", + "Value": "21", "Doc": "" - } - ], - "Doc": "" - }, - { - "CName": "cui_mod", - "CsName": "Mods", - "IsFlags": true, - "Values": [ + }, { - "CName": "CUI_MOD_SHIFT", - "CsName": "Shift", - "Value": "1", + "CName": "CUI_TOKEN_CONTROL_TRACK_HOVER", + "CsName": "ControlTrackHover", + "Value": "22", "Doc": "" }, { - "CName": "CUI_MOD_CTRL", - "CsName": "Ctrl", - "Value": "2", + "CName": "CUI_TOKEN_CONTROL_THUMB", + "CsName": "ControlThumb", + "Value": "23", "Doc": "" }, { - "CName": "CUI_MOD_ALT", - "CsName": "Alt", - "Value": "4", + "CName": "CUI_TOKEN_CONTROL_THUMB_ON", + "CsName": "ControlThumbOn", + "Value": "24", "Doc": "" }, { - "CName": "CUI_MOD_SUPER", - "CsName": "Super", - "Value": "8", - "Doc": "Command on macOS, Windows key elsewhere" + "CName": "CUI_TOKEN_HOVER", + "CsName": "Hover", + "Value": "25", + "Doc": "" }, { - "CName": "Primary", - "CsName": "Primary", - "Value": "Ctrl", + "CName": "CUI_TOKEN_ACTIVE", + "CsName": "Active", + "Value": "26", "Doc": "" - } - ], - "Doc": "" - }, - { - "CName": "cui_cursor", - "CsName": "Cursor", - "Values": [ + }, { - "CName": "CUI_CURSOR_ARROW", - "CsName": "Arrow", - "Value": "0", + "CName": "CUI_TOKEN_SCRIM", + "CsName": "Scrim", + "Value": "27", "Doc": "" }, { - "CName": "CUI_CURSOR_HAND", - "CsName": "Hand", - "Value": "1", + "CName": "CUI_TOKEN_FOCUS_RING", + "CsName": "FocusRing", + "Value": "28", "Doc": "" }, { - "CName": "CUI_CURSOR_TEXT", - "CsName": "Text", - "Value": "2", + "CName": "CUI_TOKEN_SERIES_1", + "CsName": "Series1", + "Value": "29", "Doc": "" }, { - "CName": "CUI_CURSOR_RESIZE_EW", - "CsName": "ResizeEw", - "Value": "3", + "CName": "CUI_TOKEN_SERIES_2", + "CsName": "Series2", + "Value": "30", "Doc": "" }, { - "CName": "CUI_CURSOR_RESIZE_NS", - "CsName": "ResizeNs", - "Value": "4", + "CName": "CUI_TOKEN_SERIES_3", + "CsName": "Series3", + "Value": "31", "Doc": "" }, { - "CName": "CUI_CURSOR_MOVE", - "CsName": "Move", - "Value": "5", + "CName": "CUI_TOKEN_SERIES_4", + "CsName": "Series4", + "Value": "32", "Doc": "" }, { - "CName": "CUI_CURSOR_NOT_ALLOWED", - "CsName": "NotAllowed", - "Value": "6", + "CName": "CUI_TOKEN_SERIES_5", + "CsName": "Series5", + "Value": "33", "Doc": "" }, { - "CName": "CUI_CURSOR_COUNT", + "CName": "CUI_TOKEN_SERIES_6", + "CsName": "Series6", + "Value": "34", + "Doc": "" + }, + { + "CName": "CUI_TOKEN_COUNT", "CsName": "Count", - "Value": "7", + "Value": "35", "Doc": "" } ], - "Doc": "" + "Doc": "Semantic colors. Use these instead of raw colors so your UI follows the theme (light/dark) and the accent. They can go anywhere a cui_color goes." }, { - "CName": "cui_size_kind", - "CsName": "SizeKind", + "CName": "cui_theme_mode", + "CsName": "Theme", "Values": [ { - "CName": "CUI_SIZE_FIT", - "CsName": "Fit", + "CName": "CUI_THEME_LIGHT", + "CsName": "Light", "Value": "0", "Doc": "" }, { - "CName": "CUI_SIZE_GROW", - "CsName": "Grow", + "CName": "CUI_THEME_DARK", + "CsName": "Dark", "Value": "1", "Doc": "" - }, - { - "CName": "CUI_SIZE_FIXED", - "CsName": "Fixed", - "Value": "2", - "Doc": "" - }, - { - "CName": "CUI_SIZE_PERCENT", - "CsName": "Percent", - "Value": "3", - "Doc": "" } ], "Doc": "" }, { - "CName": "cui_dir", - "CsName": "Dir", + "CName": "cui_accent", + "CsName": "Accent", "Values": [ { - "CName": "CUI_COLUMN", - "CsName": "Column", + "CName": "CUI_ACCENT_NEUTRAL", + "CsName": "Neutral", "Value": "0", "Doc": "" }, { - "CName": "CUI_ROW", - "CsName": "Row", + "CName": "CUI_ACCENT_VIOLET", + "CsName": "Violet", "Value": "1", "Doc": "" }, { - "CName": "CUI_STACK", - "CsName": "Stack", + "CName": "CUI_ACCENT_BLUE", + "CsName": "Blue", "Value": "2", "Doc": "" }, { - "CName": "CUI_GRID", - "CsName": "Grid", + "CName": "CUI_ACCENT_GREEN", + "CsName": "Green", "Value": "3", "Doc": "" - } - ], - "Doc": "" - }, - { - "CName": "cui_align", - "CsName": "Align", - "Values": [ + }, { - "CName": "CUI_ALIGN_DEFAULT", - "CsName": "Default", - "Value": "0", + "CName": "CUI_ACCENT_AMBER", + "CsName": "Amber", + "Value": "4", "Doc": "" }, { - "CName": "CUI_ALIGN_START", - "CsName": "Start", - "Value": "1", + "CName": "CUI_ACCENT_ORANGE", + "CsName": "Orange", + "Value": "5", "Doc": "" }, { - "CName": "CUI_ALIGN_CENTER", - "CsName": "Center", - "Value": "2", + "CName": "CUI_ACCENT_CORAL", + "CsName": "Coral", + "Value": "6", "Doc": "" }, { - "CName": "CUI_ALIGN_END", - "CsName": "End", - "Value": "3", + "CName": "CUI_ACCENT_ROSE", + "CsName": "Rose", + "Value": "7", "Doc": "" }, { - "CName": "CUI_ALIGN_STRETCH", - "CsName": "Stretch", - "Value": "4", + "CName": "CUI_ACCENT_COUNT", + "CsName": "Count", + "Value": "8", "Doc": "" } ], - "Doc": "CUI_ALIGN_DEFAULT: columns stretch their children, rows center them." + "Doc": "" }, { - "CName": "cui_justify", - "CsName": "Justify", + "CName": "cui_texture_format", + "CsName": "TextureFormat", "Values": [ { - "CName": "CUI_JUSTIFY_START", - "CsName": "Start", - "Value": "0", - "Doc": "" - }, - { - "CName": "CUI_JUSTIFY_CENTER", - "CsName": "Center", + "CName": "CUI_TEXTURE_R8", + "CsName": "R8", "Value": "1", "Doc": "" }, { - "CName": "CUI_JUSTIFY_END", - "CsName": "End", - "Value": "2", - "Doc": "" - }, - { - "CName": "CUI_JUSTIFY_BETWEEN", - "CsName": "Between", - "Value": "3", - "Doc": "" - }, - { - "CName": "CUI_JUSTIFY_AROUND", - "CsName": "Around", + "CName": "CUI_TEXTURE_RGBA8", + "CsName": "Rgba8", "Value": "4", "Doc": "" } @@ -26519,1015 +29016,1025 @@ "Doc": "" }, { - "CName": "cui_elevation", - "CsName": "Elevation", + "CName": "cui_direction", + "CsName": "Direction", "Values": [ { - "CName": "CUI_ELEVATION_NONE", - "CsName": "None", + "CName": "CUI_DIRECTION_INHERIT", + "CsName": "Inherit", "Value": "0", "Doc": "" }, { - "CName": "CUI_ELEVATION_RESTING", - "CsName": "Resting", + "CName": "CUI_DIRECTION_LTR", + "CsName": "Ltr", "Value": "1", "Doc": "" }, { - "CName": "CUI_ELEVATION_RAISED", - "CsName": "Raised", + "CName": "CUI_DIRECTION_RTL", + "CsName": "Rtl", "Value": "2", "Doc": "" }, { - "CName": "CUI_ELEVATION_FLOATING", - "CsName": "Floating", + "CName": "CUI_DIRECTION_AUTO", + "CsName": "Auto", "Value": "3", "Doc": "" } ], - "Doc": "" + "Doc": "Zero inherits the parent, or LTR at the context root. With text shaping, AUTO uses the first strong character in descendant text, ignoring explicitly directed subtrees. Without text shaping, AUTO resolves to LTR." }, { - "CName": "cui_text_align", - "CsName": "TextAlign", + "CName": "cui_mouse_button", + "CsName": "MouseButton", "Values": [ { - "CName": "CUI_TEXT_START", - "CsName": "Start", + "CName": "CUI_MOUSE_LEFT", + "CsName": "Left", "Value": "0", "Doc": "" }, { - "CName": "CUI_TEXT_CENTER", - "CsName": "Center", + "CName": "CUI_MOUSE_RIGHT", + "CsName": "Right", "Value": "1", "Doc": "" }, { - "CName": "CUI_TEXT_RIGHT", - "CsName": "Right", + "CName": "CUI_MOUSE_MIDDLE", + "CsName": "Middle", "Value": "2", "Doc": "" - }, - { - "CName": "CUI_TEXT_LEFT", - "CsName": "Left", - "Value": "3", - "Doc": "" - }, - { - "CName": "CUI_TEXT_END", - "CsName": "End", - "Value": "4", - "Doc": "" } ], "Doc": "" }, { - "CName": "cui_button_variant", - "CsName": "ButtonVariant", + "CName": "cui_key", + "CsName": "Key", "Values": [ { - "CName": "CUI_BUTTON_DEFAULT", - "CsName": "Default", + "CName": "CUI_KEY_NONE", + "CsName": "None", "Value": "0", - "Doc": "secondary for buttons, ghost for icon buttons" + "Doc": "" }, { - "CName": "CUI_BUTTON_SECONDARY", - "CsName": "Secondary", + "CName": "CUI_KEY_TAB", + "CsName": "Tab", "Value": "1", - "Doc": "neutral filled" + "Doc": "" }, { - "CName": "CUI_BUTTON_PRIMARY", - "CsName": "Primary", + "CName": "CUI_KEY_ENTER", + "CsName": "Enter", "Value": "2", - "Doc": "the one main action" + "Doc": "" }, { - "CName": "CUI_BUTTON_OUTLINE", - "CsName": "Outline", + "CName": "CUI_KEY_ESCAPE", + "CsName": "Escape", "Value": "3", "Doc": "" }, { - "CName": "CUI_BUTTON_GHOST", - "CsName": "Ghost", + "CName": "CUI_KEY_BACKSPACE", + "CsName": "Backspace", "Value": "4", "Doc": "" }, { - "CName": "CUI_BUTTON_DANGER", - "CsName": "Danger", + "CName": "CUI_KEY_DELETE", + "CsName": "Delete", "Value": "5", "Doc": "" }, { - "CName": "CUI_BUTTON_LINK", - "CsName": "Link", + "CName": "CUI_KEY_SPACE", + "CsName": "Space", "Value": "6", "Doc": "" - } - ], - "Doc": "" - }, - { - "CName": "cui_control_size", - "CsName": "ControlSize", - "Values": [ - { - "CName": "CUI_SIZE_MD", - "CsName": "Md", - "Value": "0", - "Doc": "" }, { - "CName": "CUI_SIZE_SM", - "CsName": "Sm", - "Value": "1", + "CName": "CUI_KEY_LEFT", + "CsName": "Left", + "Value": "7", "Doc": "" }, { - "CName": "CUI_SIZE_LG", - "CsName": "Lg", - "Value": "2", + "CName": "CUI_KEY_RIGHT", + "CsName": "Right", + "Value": "8", "Doc": "" - } - ], - "Doc": "" - }, - { - "CName": "cui_tabs_variant", - "CsName": "TabsVariant", - "Values": [ + }, { - "CName": "CUI_TABS_UNDERLINE", - "CsName": "Underline", - "Value": "0", + "CName": "CUI_KEY_UP", + "CsName": "Up", + "Value": "9", "Doc": "" }, { - "CName": "CUI_TABS_PILL", - "CsName": "Pill", - "Value": "1", + "CName": "CUI_KEY_DOWN", + "CsName": "Down", + "Value": "10", "Doc": "" - } - ], - "Doc": "" - }, - { - "CName": "cui_placement", - "CsName": "Placement", - "Values": [ + }, { - "CName": "CUI_PLACE_BOTTOM_START", - "CsName": "BottomStart", - "Value": "0", + "CName": "CUI_KEY_HOME", + "CsName": "Home", + "Value": "11", "Doc": "" }, { - "CName": "CUI_PLACE_BOTTOM", - "CsName": "Bottom", - "Value": "1", + "CName": "CUI_KEY_END", + "CsName": "End", + "Value": "12", "Doc": "" }, { - "CName": "CUI_PLACE_BOTTOM_END", - "CsName": "BottomEnd", - "Value": "2", + "CName": "CUI_KEY_PAGE_UP", + "CsName": "PageUp", + "Value": "13", "Doc": "" }, { - "CName": "CUI_PLACE_TOP_START", - "CsName": "TopStart", - "Value": "3", + "CName": "CUI_KEY_PAGE_DOWN", + "CsName": "PageDown", + "Value": "14", "Doc": "" }, { - "CName": "CUI_PLACE_TOP", - "CsName": "Top", - "Value": "4", + "CName": "CUI_KEY_A", + "CsName": "A", + "Value": "15", "Doc": "" }, { - "CName": "CUI_PLACE_TOP_END", - "CsName": "TopEnd", - "Value": "5", + "CName": "CUI_KEY_B", + "CsName": "B", + "Value": "16", "Doc": "" }, { - "CName": "CUI_PLACE_RIGHT_START", - "CsName": "RightStart", - "Value": "6", + "CName": "CUI_KEY_C", + "CsName": "C", + "Value": "17", "Doc": "" }, { - "CName": "CUI_PLACE_LEFT_START", - "CsName": "LeftStart", - "Value": "7", + "CName": "CUI_KEY_D", + "CsName": "D", + "Value": "18", "Doc": "" }, { - "CName": "CUI_PLACE_RIGHT", - "CsName": "Right", - "Value": "8", + "CName": "CUI_KEY_E", + "CsName": "E", + "Value": "19", "Doc": "" }, { - "CName": "CUI_PLACE_LEFT", - "CsName": "Left", - "Value": "9", + "CName": "CUI_KEY_F", + "CsName": "F", + "Value": "20", "Doc": "" - } - ], - "Doc": "" - }, - { - "CName": "cui_side", - "CsName": "Side", - "Values": [ + }, { - "CName": "CUI_SIDE_RIGHT", - "CsName": "Right", - "Value": "0", + "CName": "CUI_KEY_G", + "CsName": "G", + "Value": "21", "Doc": "" }, { - "CName": "CUI_SIDE_LEFT", - "CsName": "Left", - "Value": "1", + "CName": "CUI_KEY_H", + "CsName": "H", + "Value": "22", "Doc": "" }, { - "CName": "CUI_SIDE_BOTTOM", - "CsName": "Bottom", - "Value": "2", + "CName": "CUI_KEY_I", + "CsName": "I", + "Value": "23", "Doc": "" }, { - "CName": "CUI_SIDE_TOP", - "CsName": "Top", - "Value": "3", + "CName": "CUI_KEY_J", + "CsName": "J", + "Value": "24", "Doc": "" - } - ], - "Doc": "" - }, - { - "CName": "cui_tone", - "CsName": "Tone", - "Values": [ + }, { - "CName": "CUI_TONE_NEUTRAL", - "CsName": "Neutral", - "Value": "0", + "CName": "CUI_KEY_K", + "CsName": "K", + "Value": "25", "Doc": "" }, { - "CName": "CUI_TONE_INFO", - "CsName": "Info", - "Value": "1", + "CName": "CUI_KEY_L", + "CsName": "L", + "Value": "26", "Doc": "" }, { - "CName": "CUI_TONE_SUCCESS", - "CsName": "Success", - "Value": "2", + "CName": "CUI_KEY_M", + "CsName": "M", + "Value": "27", "Doc": "" }, { - "CName": "CUI_TONE_WARNING", - "CsName": "Warning", - "Value": "3", + "CName": "CUI_KEY_N", + "CsName": "N", + "Value": "28", "Doc": "" }, { - "CName": "CUI_TONE_DANGER", - "CsName": "Danger", - "Value": "4", + "CName": "CUI_KEY_O", + "CsName": "O", + "Value": "29", "Doc": "" }, { - "CName": "CUI_TONE_VIOLET", - "CsName": "Violet", - "Value": "5", + "CName": "CUI_KEY_P", + "CsName": "P", + "Value": "30", "Doc": "" }, { - "CName": "CUI_TONE_TEAL", - "CsName": "Teal", - "Value": "6", + "CName": "CUI_KEY_Q", + "CsName": "Q", + "Value": "31", "Doc": "" }, { - "CName": "CUI_TONE_ROSE", - "CsName": "Rose", - "Value": "7", + "CName": "CUI_KEY_R", + "CsName": "R", + "Value": "32", "Doc": "" }, { - "CName": "CUI_TONE_ACCENT", - "CsName": "Accent", - "Value": "8", + "CName": "CUI_KEY_S", + "CsName": "S", + "Value": "33", "Doc": "" - } - ], - "Doc": "" - }, - { - "CName": "cui_annotation_kind", - "CsName": "AnnotationKind", - "Values": [ - { - "CName": "CUI_ANNOTATION_X", - "CsName": "X", - "Value": "0", - "Doc": "a vertical line at `x`, labelled at its top" }, { - "CName": "CUI_ANNOTATION_Y", - "CsName": "Y", - "Value": "1", - "Doc": "a dashed horizontal line at the value `y`, labelled at its end" + "CName": "CUI_KEY_T", + "CsName": "T", + "Value": "34", + "Doc": "" }, { - "CName": "CUI_ANNOTATION_POINT", - "CsName": "Point", - "Value": "2", - "Doc": "a dot at `x`, `y`, labelled beside it" - } - ], - "Doc": "A line, a threshold or a point drawn over a chart, with a two-line label: the label in the foreground color and a muted detail under it. Line and bar charts take them in cui_chart_opts, the dot chart in cui_dot_chart_opts. Labels that would overlap move to the other side of their line, then down." - }, - { - "CName": "cui_status", - "CsName": "Status", - "Values": [ - { - "CName": "CUI_STATUS_IDLE", - "CsName": "Idle", - "Value": "0", + "CName": "CUI_KEY_U", + "CsName": "U", + "Value": "35", "Doc": "" }, { - "CName": "CUI_STATUS_BUSY", - "CsName": "Busy", - "Value": "1", + "CName": "CUI_KEY_V", + "CsName": "V", + "Value": "36", "Doc": "" }, { - "CName": "CUI_STATUS_SUCCESS", - "CsName": "Success", - "Value": "2", + "CName": "CUI_KEY_W", + "CsName": "W", + "Value": "37", "Doc": "" }, { - "CName": "CUI_STATUS_ERROR", - "CsName": "Error", - "Value": "3", + "CName": "CUI_KEY_X", + "CsName": "X", + "Value": "38", "Doc": "" - } - ], - "Doc": "Button that shows the result of the work it started: idle, a spinner while busy, then a check (or an error) that settles back. Width morphs smoothly between the states. Returns true when clicked while idle." - }, - { - "CName": "cui_diff_mode", - "CsName": "DiffMode", - "Values": [ + }, { - "CName": "CUI_DIFF_SPLIT", - "CsName": "Split", - "Value": "0", + "CName": "CUI_KEY_Y", + "CsName": "Y", + "Value": "39", "Doc": "" }, { - "CName": "CUI_DIFF_INLINE", - "CsName": "Inline", - "Value": "1", + "CName": "CUI_KEY_Z", + "CsName": "Z", + "Value": "40", "Doc": "" - } - ], - "Doc": "Diff viewer: compares two versions of a text line by line, side by side or inline, with changed words marked inside changed lines. The texts are yours (UTF-8, read during the call); the view keeps a copy and diffs again only when one of them changes, so it is cheap to call every frame." - }, - { - "CName": "cui_diff_row_kind", - "CsName": "DiffRowKind", - "Values": [ + }, { - "CName": "CUI_DIFF_ROW_SAME", - "CsName": "Same", - "Value": "0", + "CName": "CUI_KEY_0", + "CsName": "D0", + "Value": "41", "Doc": "" }, { - "CName": "CUI_DIFF_ROW_REMOVED", - "CsName": "Removed", - "Value": "1", + "CName": "CUI_KEY_1", + "CsName": "D1", + "Value": "42", "Doc": "" }, { - "CName": "CUI_DIFF_ROW_ADDED", - "CsName": "Added", - "Value": "2", + "CName": "CUI_KEY_2", + "CsName": "D2", + "Value": "43", "Doc": "" }, { - "CName": "CUI_DIFF_ROW_CHANGED", - "CsName": "Changed", - "Value": "3", - "Doc": "split: a removed line beside the added line that replaced it" + "CName": "CUI_KEY_3", + "CsName": "D3", + "Value": "44", + "Doc": "" }, { - "CName": "CUI_DIFF_ROW_FOLD", - "CsName": "Fold", - "Value": "4", - "Doc": "hidden unchanged lines, starting at old_line / new_line" - } - ], - "Doc": "The rows the view shows after folding, e.g. to put a comment button beside a line. Copies rows [first, first + cap) and returns how many there are (0 before the view's first frame). Call it in the same id scope as the view." - }, - { - "CName": "cui_loader_style", - "CsName": "LoaderStyle", - "Values": [ - { - "CName": "CUI_LOADER_DOTS", - "CsName": "Dots", - "Value": "0", + "CName": "CUI_KEY_4", + "CsName": "D4", + "Value": "45", "Doc": "" }, { - "CName": "CUI_LOADER_BARS", - "CsName": "Bars", - "Value": "1", + "CName": "CUI_KEY_5", + "CsName": "D5", + "Value": "46", "Doc": "" }, { - "CName": "CUI_LOADER_PULSE", - "CsName": "Pulse", - "Value": "2", + "CName": "CUI_KEY_6", + "CsName": "D6", + "Value": "47", "Doc": "" }, { - "CName": "CUI_LOADER_ORBIT", - "CsName": "Orbit", - "Value": "3", + "CName": "CUI_KEY_7", + "CsName": "D7", + "Value": "48", "Doc": "" }, { - "CName": "CUI_LOADER_GRID", - "CsName": "Grid", - "Value": "4", + "CName": "CUI_KEY_8", + "CsName": "D8", + "Value": "49", "Doc": "" - } - ], - "Doc": "" - }, - { - "CName": "cui_task_status", - "CsName": "CuiTaskStatus", - "Values": [ + }, { - "CName": "CUI_TASK_PENDING", - "CsName": "Pending", - "Value": "0", + "CName": "CUI_KEY_9", + "CsName": "D9", + "Value": "50", "Doc": "" }, { - "CName": "CUI_TASK_RUNNING", - "CsName": "Running", - "Value": "1", + "CName": "CUI_KEY_MINUS", + "CsName": "Minus", + "Value": "51", "Doc": "" }, { - "CName": "CUI_TASK_DONE", - "CsName": "Done", - "Value": "2", + "CName": "CUI_KEY_EQUAL", + "CsName": "Equal", + "Value": "52", "Doc": "" }, { - "CName": "CUI_TASK_FAILED", - "CsName": "Failed", - "Value": "3", + "CName": "CUI_KEY_COMMA", + "CsName": "Comma", + "Value": "53", "Doc": "" }, { - "CName": "CUI_TASK_SKIPPED", - "CsName": "Skipped", - "Value": "4", + "CName": "CUI_KEY_PERIOD", + "CsName": "Period", + "Value": "54", "Doc": "" - } - ], - "Doc": "Tool call: a compact row with the tool, a detail and its status; opens to show the input and the output (shown as JSON when they parse)." - }, - { - "CName": "cui_voice_state", - "CsName": "VoiceState", - "Values": [ + }, { - "CName": "CUI_VOICE_IDLE", - "CsName": "Idle", - "Value": "0", + "CName": "CUI_KEY_SLASH", + "CsName": "Slash", + "Value": "55", "Doc": "" }, { - "CName": "CUI_VOICE_LISTENING", - "CsName": "Listening", - "Value": "1", + "CName": "CUI_KEY_F1", + "CsName": "F1", + "Value": "56", "Doc": "" }, { - "CName": "CUI_VOICE_THINKING", - "CsName": "Thinking", - "Value": "2", + "CName": "CUI_KEY_F2", + "CsName": "F2", + "Value": "57", "Doc": "" }, { - "CName": "CUI_VOICE_SPEAKING", - "CsName": "Speaking", - "Value": "3", + "CName": "CUI_KEY_F3", + "CsName": "F3", + "Value": "58", "Doc": "" - } - ], - "Doc": "Voice orb: a living shape for voice modes. level is the input or output loudness (0..1). Returns true when clicked." - }, - { - "CName": "cui_log_level", - "CsName": "LogLevel", - "Values": [ + }, { - "CName": "CUI_LOG_TRACE", - "CsName": "Trace", - "Value": "0", + "CName": "CUI_KEY_F4", + "CsName": "F4", + "Value": "59", "Doc": "" }, { - "CName": "CUI_LOG_DEBUG", - "CsName": "Debug", - "Value": "1", + "CName": "CUI_KEY_F5", + "CsName": "F5", + "Value": "60", "Doc": "" }, { - "CName": "CUI_LOG_INFO", - "CsName": "Info", - "Value": "2", + "CName": "CUI_KEY_F6", + "CsName": "F6", + "Value": "61", "Doc": "" }, { - "CName": "CUI_LOG_WARN", - "CsName": "Warn", - "Value": "3", + "CName": "CUI_KEY_F7", + "CsName": "F7", + "Value": "62", "Doc": "" }, { - "CName": "CUI_LOG_ERROR", - "CsName": "Error", - "Value": "4", + "CName": "CUI_KEY_F8", + "CsName": "F8", + "Value": "63", "Doc": "" }, { - "CName": "CUI_LOG_LEVEL_COUNT", - "CsName": "LevelCount", - "Value": "5", + "CName": "CUI_KEY_F9", + "CsName": "F9", + "Value": "64", "Doc": "" - } - ], - "Doc": "Log console. The app owns the storage: give cui_log_init an array of line records and a byte buffer for the text. Appending never allocates; when either is full the oldest lines are dropped (a ring buffer). Lines longer than the text buffer are cut to fit." - }, - { - "CName": "cui_curve_mode", - "CsName": "CurveMode", - "Values": [ + }, { - "CName": "CUI_CURVE_SMOOTH", - "CsName": "Smooth", - "Value": "0", - "Doc": "automatic tangents" + "CName": "CUI_KEY_F10", + "CsName": "F10", + "Value": "65", + "Doc": "" }, { - "CName": "CUI_CURVE_FREE", - "CsName": "Free", - "Value": "1", - "Doc": "the key's own handles" + "CName": "CUI_KEY_F11", + "CsName": "F11", + "Value": "66", + "Doc": "" }, { - "CName": "CUI_CURVE_LINEAR", - "CsName": "Linear", - "Value": "2", - "Doc": "a straight line to the next key" + "CName": "CUI_KEY_F12", + "CsName": "F12", + "Value": "67", + "Doc": "" }, { - "CName": "CUI_CURVE_STEP", - "CsName": "Step", - "Value": "3", - "Doc": "hold this value until the next key" + "CName": "CUI_KEY_COUNT", + "CsName": "Count", + "Value": "68", + "Doc": "" } ], - "Doc": "Curve editor: keyframes on a plot, for easing, animation timing and response curves. You own the array of keys, sorted by x; the editor edits it in place (moves, handles, modes, adds and removes) and reports what it did in the result, so data you keep beside each key can follow:" + "Doc": "" }, { - "CName": "cui_timeline_ruler", - "CsName": "TimelineRuler", + "CName": "cui_mod", + "CsName": "Mods", + "IsFlags": true, "Values": [ { - "CName": "CUI_TIMELINE_FRAMES", - "CsName": "Frames", - "Value": "0", - "Doc": "frame numbers" - }, - { - "CName": "CUI_TIMELINE_SECONDS", - "CsName": "Seconds", + "CName": "CUI_MOD_SHIFT", + "CsName": "Shift", "Value": "1", - "Doc": "1.5 s" + "Doc": "" }, { - "CName": "CUI_TIMELINE_TIMECODE", - "CsName": "Timecode", + "CName": "CUI_MOD_CTRL", + "CsName": "Ctrl", "Value": "2", - "Doc": "minutes:seconds:frames (hours too past an hour)" - } - ], - "Doc": "Timeline editor (dope sheet): a track list on the left, a time ruler on top and a row per track with its keys (and clips, for video and audio tracks). You own the tracks, their keys and clips, the playhead time and the selection; the editor edits them in place and reports what it did:" - }, - { - "CName": "cui_severity", - "CsName": "Severity", - "Values": [ - { - "CName": "CUI_SEVERITY_ERROR", - "CsName": "Error", - "Value": "0", "Doc": "" }, { - "CName": "CUI_SEVERITY_WARNING", - "CsName": "Warning", - "Value": "1", + "CName": "CUI_MOD_ALT", + "CsName": "Alt", + "Value": "4", "Doc": "" }, { - "CName": "CUI_SEVERITY_INFO", - "CsName": "Info", - "Value": "2", - "Doc": "" + "CName": "CUI_MOD_SUPER", + "CsName": "Super", + "Value": "8", + "Doc": "Command on macOS, Windows key elsewhere" }, { - "CName": "CUI_SEVERITY_HINT", - "CsName": "Hint", - "Value": "3", + "CName": "Primary", + "CsName": "Primary", + "Value": "Ctrl", "Doc": "" } ], - "Doc": "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's header folds its group. Up and Down move the selection, Left and Right fold and unfold, Enter or a double-click reports `activated` (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." + "Doc": "" }, { - "CName": "cui_job_status", - "CsName": "JobStatus", + "CName": "cui_cursor", + "CsName": "Cursor", "Values": [ { - "CName": "CUI_JOB_PENDING", - "CsName": "Pending", + "CName": "CUI_CURSOR_ARROW", + "CsName": "Arrow", "Value": "0", "Doc": "" }, { - "CName": "CUI_JOB_RUNNING", - "CsName": "Running", + "CName": "CUI_CURSOR_HAND", + "CsName": "Hand", "Value": "1", "Doc": "" }, { - "CName": "CUI_JOB_PASSED", - "CsName": "Passed", + "CName": "CUI_CURSOR_TEXT", + "CsName": "Text", "Value": "2", "Doc": "" }, { - "CName": "CUI_JOB_FAILED", - "CsName": "Failed", + "CName": "CUI_CURSOR_RESIZE_EW", + "CsName": "ResizeEw", "Value": "3", "Doc": "" }, { - "CName": "CUI_JOB_SKIPPED", - "CsName": "Skipped", + "CName": "CUI_CURSOR_RESIZE_NS", + "CsName": "ResizeNs", "Value": "4", "Doc": "" }, { - "CName": "CUI_JOB_CANCELED", - "CsName": "Canceled", + "CName": "CUI_CURSOR_MOVE", + "CsName": "Move", "Value": "5", "Doc": "" + }, + { + "CName": "CUI_CURSOR_NOT_ALLOWED", + "CsName": "NotAllowed", + "Value": "6", + "Doc": "" + }, + { + "CName": "CUI_CURSOR_COUNT", + "CsName": "Count", + "Value": "7", + "Doc": "" } ], - "Doc": "A CI/CD run: stages left to right, each a column of jobs with their status and duration. A stage's header sums up its jobs (failed, running, passed). Running jobs spin. Click a job to get its index (open its log). Below 560 points the stages stack top to bottom." + "Doc": "" }, { - "CName": "cui_query_type", - "CsName": "QueryType", + "CName": "cui_size_kind", + "CsName": "SizeKind", "Values": [ { - "CName": "CUI_QUERY_TEXT", - "CsName": "Text", + "CName": "CUI_SIZE_FIT", + "CsName": "Fit", "Value": "0", "Doc": "" }, { - "CName": "CUI_QUERY_NUMBER", - "CsName": "Number", + "CName": "CUI_SIZE_GROW", + "CsName": "Grow", "Value": "1", "Doc": "" }, { - "CName": "CUI_QUERY_CHOICE", - "CsName": "Choice", + "CName": "CUI_SIZE_FIXED", + "CsName": "Fixed", "Value": "2", "Doc": "" }, { - "CName": "CUI_QUERY_BOOL", - "CsName": "Bool", + "CName": "CUI_SIZE_PERCENT", + "CsName": "Percent", "Value": "3", "Doc": "" } ], - "Doc": "Conditions joined by \"all\" or \"any\", in groups you can nest: the filter of an issue tracker, a log search or a database view. You own the nodes, in order, each with its depth: node 0 is the outer group (made for you when count is 0). A rule picks a field, an operator for the field's type and a value; a group picks all or any. Returns true when anything changed. cui_query_text writes the query as a sentence, cui_query_match tests a record against it." + "Doc": "" }, { - "CName": "cui_http_method", - "CsName": "HttpVerb", + "CName": "cui_dir", + "CsName": "Dir", "Values": [ { - "CName": "CUI_HTTP_GET", - "CsName": "Get", + "CName": "CUI_COLUMN", + "CsName": "Column", "Value": "0", "Doc": "" }, { - "CName": "CUI_HTTP_POST", - "CsName": "Post", + "CName": "CUI_ROW", + "CsName": "Row", "Value": "1", "Doc": "" }, { - "CName": "CUI_HTTP_PUT", - "CsName": "Put", + "CName": "CUI_STACK", + "CsName": "Stack", "Value": "2", "Doc": "" }, { - "CName": "CUI_HTTP_PATCH", - "CsName": "Patch", + "CName": "CUI_GRID", + "CsName": "Grid", "Value": "3", "Doc": "" + } + ], + "Doc": "" + }, + { + "CName": "cui_align", + "CsName": "Align", + "Values": [ + { + "CName": "CUI_ALIGN_DEFAULT", + "CsName": "Default", + "Value": "0", + "Doc": "" }, { - "CName": "CUI_HTTP_DELETE", - "CsName": "Delete", - "Value": "4", + "CName": "CUI_ALIGN_START", + "CsName": "Start", + "Value": "1", "Doc": "" }, { - "CName": "CUI_HTTP_HEAD", - "CsName": "Head", - "Value": "5", + "CName": "CUI_ALIGN_CENTER", + "CsName": "Center", + "Value": "2", "Doc": "" }, { - "CName": "CUI_HTTP_OPTIONS", - "CsName": "Options", - "Value": "6", + "CName": "CUI_ALIGN_END", + "CsName": "End", + "Value": "3", + "Doc": "" + }, + { + "CName": "CUI_ALIGN_STRETCH", + "CsName": "Stretch", + "Value": "4", "Doc": "" } ], - "Doc": "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." + "Doc": "CUI_ALIGN_DEFAULT: columns stretch their children, rows center them." }, { - "CName": "cui_axis_units", - "CsName": "AxisUnits", + "CName": "cui_justify", + "CsName": "Justify", "Values": [ { - "CName": "CUI_AXIS_NUMBER", - "CsName": "Number", + "CName": "CUI_JUSTIFY_START", + "CsName": "Start", "Value": "0", - "Doc": "numbers, printed with the axis format (default \"%g\")" + "Doc": "" }, { - "CName": "CUI_AXIS_HOURS", - "CsName": "Hours", + "CName": "CUI_JUSTIFY_CENTER", + "CsName": "Center", "Value": "1", - "Doc": "hours shown as a time of day: 12.25 is 12:15, and 30 is 06:00 the next day" + "Doc": "" + }, + { + "CName": "CUI_JUSTIFY_END", + "CsName": "End", + "Value": "2", + "Doc": "" + }, + { + "CName": "CUI_JUSTIFY_BETWEEN", + "CsName": "Between", + "Value": "3", + "Doc": "" + }, + { + "CName": "CUI_JUSTIFY_AROUND", + "CsName": "Around", + "Value": "4", + "Doc": "" } ], - "Doc": "How an axis labels its values." + "Doc": "" }, { - "CName": "cui_renderer_kind", - "CsName": "Renderer", + "CName": "cui_elevation", + "CsName": "Elevation", "Values": [ { - "CName": "CUI_RENDERER_AUTO", - "CsName": "Auto", + "CName": "CUI_ELEVATION_NONE", + "CsName": "None", "Value": "0", - "Doc": "OpenGL, or software when there is no GPU (CPU-drawn OpenGL, X11 and Win32)" + "Doc": "" }, { - "CName": "CUI_RENDERER_OPENGL", - "CsName": "OpenGL", + "CName": "CUI_ELEVATION_RESTING", + "CsName": "Resting", "Value": "1", "Doc": "" }, { - "CName": "CUI_RENDERER_SOFTWARE", - "CsName": "Software", + "CName": "CUI_ELEVATION_RAISED", + "CsName": "Raised", "Value": "2", "Doc": "" + }, + { + "CName": "CUI_ELEVATION_FLOATING", + "CsName": "Floating", + "Value": "3", + "Doc": "" } ], "Doc": "" }, { - "CName": "cui_file_dialog_kind", - "CsName": "FileDialogKind", + "CName": "cui_text_align", + "CsName": "TextAlign", "Values": [ { - "CName": "CUI_FILE_OPEN", - "CsName": "Open", + "CName": "CUI_TEXT_START", + "CsName": "Start", "Value": "0", "Doc": "" }, { - "CName": "CUI_FILE_SAVE", - "CsName": "Save", + "CName": "CUI_TEXT_CENTER", + "CsName": "Center", "Value": "1", "Doc": "" }, { - "CName": "CUI_FILE_FOLDER", - "CsName": "Folder", + "CName": "CUI_TEXT_RIGHT", + "CsName": "Right", "Value": "2", "Doc": "" + }, + { + "CName": "CUI_TEXT_LEFT", + "CsName": "Left", + "Value": "3", + "Doc": "" + }, + { + "CName": "CUI_TEXT_END", + "CsName": "End", + "Value": "4", + "Doc": "" } ], - "Doc": "Native file dialogs. Blocking; returns true and writes the chosen path (UTF-8) to out when the user confirms. On Linux this uses zenity or kdialog when installed. Pass NULL as app to use the current app (handy in cui_app_run callbacks)." + "Doc": "" }, { - "CName": "cui_sw_format", - "CsName": "SwFormat", + "CName": "cui_button_variant", + "CsName": "ButtonVariant", "Values": [ { - "CName": "CUI_SW_RGBA", - "CsName": "Rgba", + "CName": "CUI_BUTTON_DEFAULT", + "CsName": "Default", "Value": "0", - "Doc": "bytes R, G, B, A in memory" + "Doc": "secondary for buttons, ghost for icon buttons" }, { - "CName": "CUI_SW_BGRA", - "CsName": "Bgra", + "CName": "CUI_BUTTON_SECONDARY", + "CsName": "Secondary", "Value": "1", - "Doc": "bytes B, G, R, A in memory (Win32 DIBs, X11, Cairo)" + "Doc": "neutral filled" + }, + { + "CName": "CUI_BUTTON_PRIMARY", + "CsName": "Primary", + "Value": "2", + "Doc": "the one main action" + }, + { + "CName": "CUI_BUTTON_OUTLINE", + "CsName": "Outline", + "Value": "3", + "Doc": "" + }, + { + "CName": "CUI_BUTTON_GHOST", + "CsName": "Ghost", + "Value": "4", + "Doc": "" + }, + { + "CName": "CUI_BUTTON_DANGER", + "CsName": "Danger", + "Value": "5", + "Doc": "" + }, + { + "CName": "CUI_BUTTON_LINK", + "CsName": "Link", + "Value": "6", + "Doc": "" } ], "Doc": "" }, { - "CName": "CUI_FONT_BODY", - "CsName": "Font", + "CName": "cui_control_size", + "CsName": "ControlSize", "Values": [ { - "CName": "CUI_FONT_BODY", - "CsName": "Body", + "CName": "CUI_SIZE_MD", + "CsName": "Md", "Value": "0", - "Doc": "Inter Regular" + "Doc": "" }, { - "CName": "CUI_FONT_MEDIUM", - "CsName": "Medium", + "CName": "CUI_SIZE_SM", + "CsName": "Sm", "Value": "1", - "Doc": "Inter Medium" + "Doc": "" }, { - "CName": "CUI_FONT_DISPLAY", - "CsName": "Display", + "CName": "CUI_SIZE_LG", + "CsName": "Lg", "Value": "2", - "Doc": "Geist Medium, for headings 28pt and up" - }, + "Doc": "" + } + ], + "Doc": "" + }, + { + "CName": "cui_tabs_variant", + "CsName": "TabsVariant", + "Values": [ { - "CName": "CUI_FONT_MONO", - "CsName": "Mono", - "Value": "3", - "Doc": "Geist Mono" + "CName": "CUI_TABS_UNDERLINE", + "CsName": "Underline", + "Value": "0", + "Doc": "" }, { - "CName": "CUI_FONT_ICONS", - "CsName": "Icons", - "Value": "4", - "Doc": "Lucide icons" + "CName": "CUI_TABS_PILL", + "CsName": "Pill", + "Value": "1", + "Doc": "" } ], "Doc": "" }, { - "CName": "CUI_TOUR_NONE", - "CsName": "TourAction", + "CName": "cui_placement", + "CsName": "Placement", "Values": [ { - "CName": "CUI_TOUR_NONE", - "CsName": "None", + "CName": "CUI_PLACE_BOTTOM_START", + "CsName": "BottomStart", "Value": "0", "Doc": "" }, { - "CName": "CUI_TOUR_NEXT", - "CsName": "Next", + "CName": "CUI_PLACE_BOTTOM", + "CsName": "Bottom", "Value": "1", "Doc": "" }, { - "CName": "CUI_TOUR_BACK", - "CsName": "Back", + "CName": "CUI_PLACE_BOTTOM_END", + "CsName": "BottomEnd", "Value": "2", "Doc": "" }, { - "CName": "CUI_TOUR_DONE", - "CsName": "Done", + "CName": "CUI_PLACE_TOP_START", + "CsName": "TopStart", "Value": "3", "Doc": "" }, { - "CName": "CUI_TOUR_SKIPPED", - "CsName": "Skipped", + "CName": "CUI_PLACE_TOP", + "CsName": "Top", "Value": "4", "Doc": "" + }, + { + "CName": "CUI_PLACE_TOP_END", + "CsName": "TopEnd", + "Value": "5", + "Doc": "" + }, + { + "CName": "CUI_PLACE_RIGHT_START", + "CsName": "RightStart", + "Value": "6", + "Doc": "" + }, + { + "CName": "CUI_PLACE_LEFT_START", + "CsName": "LeftStart", + "Value": "7", + "Doc": "" + }, + { + "CName": "CUI_PLACE_RIGHT", + "CsName": "Right", + "Value": "8", + "Doc": "" + }, + { + "CName": "CUI_PLACE_LEFT", + "CsName": "Left", + "Value": "9", + "Doc": "" } ], "Doc": "" }, { - "CName": "CUI_COMMENT_LIKE", - "CsName": "CommentEvents", - "IsFlags": true, + "CName": "cui_side", + "CsName": "Side", "Values": [ { - "CName": "None", - "CsName": "None", + "CName": "CUI_SIDE_RIGHT", + "CsName": "Right", "Value": "0", "Doc": "" }, { - "CName": "CUI_COMMENT_LIKE", - "CsName": "Like", + "CName": "CUI_SIDE_LEFT", + "CsName": "Left", "Value": "1", "Doc": "" }, { - "CName": "CUI_COMMENT_REPLY", - "CsName": "Reply", + "CName": "CUI_SIDE_BOTTOM", + "CsName": "Bottom", "Value": "2", "Doc": "" + }, + { + "CName": "CUI_SIDE_TOP", + "CsName": "Top", + "Value": "3", + "Doc": "" } ], - "Doc": "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." + "Doc": "" }, { - "CName": "CUI_PLAYER_TOGGLE", - "CsName": "PlayerEvents", - "IsFlags": true, + "CName": "cui_tone", + "CsName": "Tone", "Values": [ { - "CName": "None", - "CsName": "None", + "CName": "CUI_TONE_NEUTRAL", + "CsName": "Neutral", "Value": "0", "Doc": "" }, { - "CName": "CUI_PLAYER_TOGGLE", - "CsName": "Toggle", + "CName": "CUI_TONE_INFO", + "CsName": "Info", "Value": "1", "Doc": "" }, { - "CName": "CUI_PLAYER_PREV", - "CsName": "Prev", + "CName": "CUI_TONE_SUCCESS", + "CsName": "Success", "Value": "2", "Doc": "" }, { - "CName": "CUI_PLAYER_NEXT", - "CsName": "Next", + "CName": "CUI_TONE_WARNING", + "CsName": "Warning", + "Value": "3", + "Doc": "" + }, + { + "CName": "CUI_TONE_DANGER", + "CsName": "Danger", "Value": "4", "Doc": "" }, { - "CName": "CUI_PLAYER_SEEK", - "CsName": "Seek", + "CName": "CUI_TONE_VIOLET", + "CsName": "Violet", + "Value": "5", + "Doc": "" + }, + { + "CName": "CUI_TONE_TEAL", + "CsName": "Teal", + "Value": "6", + "Doc": "" + }, + { + "CName": "CUI_TONE_ROSE", + "CsName": "Rose", + "Value": "7", + "Doc": "" + }, + { + "CName": "CUI_TONE_ACCENT", + "CsName": "Accent", "Value": "8", "Doc": "" } @@ -27535,129 +30042,1996 @@ "Doc": "" }, { - "CName": "CUI_RESPONSE_COPY", - "CsName": "ResponseEvents", - "IsFlags": true, + "CName": "cui_spinner_style", + "CsName": "SpinnerStyle", "Values": [ { - "CName": "None", - "CsName": "None", + "CName": "CUI_SPINNER_ARC", + "CsName": "Arc", "Value": "0", - "Doc": "" + "Doc": "a ring with an arc sweeping round it" }, { - "CName": "CUI_RESPONSE_COPY", - "CsName": "Copy", + "CName": "CUI_SPINNER_COMET", + "CsName": "Comet", "Value": "1", - "Doc": "" + "Doc": "a ring of dots with a head and a tail that thins out dot by dot" }, { - "CName": "CUI_RESPONSE_REGENERATE", - "CsName": "Regenerate", + "CName": "CUI_SPINNER_DOT_MATRIX", + "CsName": "DotMatrix", "Value": "2", - "Doc": "" + "Doc": "a 5x5 grid of dots with a wave running through it, for dense layouts" }, { - "CName": "CUI_RESPONSE_UP", - "CsName": "Up", + "CName": "CUI_SPINNER_FILL_DRAIN", + "CsName": "FillDrain", + "Value": "3", + "Doc": "a tile that fills from the bottom, then dissolves: a step of a job" + }, + { + "CName": "CUI_SPINNER_RADAR", + "CsName": "Radar", "Value": "4", - "Doc": "" + "Doc": "a sweep round a dial; points light up as it passes: searching, scanning" }, { - "CName": "CUI_RESPONSE_DOWN", - "CsName": "Down", + "CName": "CUI_SPINNER_RIPPLE", + "CsName": "Ripple", + "Value": "5", + "Doc": "rings spreading from a dot: connecting, pairing, waiting for the other side" + }, + { + "CName": "CUI_SPINNER_UPLOAD", + "CsName": "Upload", + "Value": "6", + "Doc": "chevrons streaming up: sending" + }, + { + "CName": "CUI_SPINNER_DOWNLOAD", + "CsName": "Download", + "Value": "7", + "Doc": "chevrons streaming down: receiving" + }, + { + "CName": "CUI_SPINNER_TRANSFER", + "CsName": "Transfer", "Value": "8", - "Doc": "" + "Doc": "both, side by side: syncing both ways" }, { - "CName": "CUI_RESPONSE_SHARE", - "CsName": "Share", - "Value": "16", - "Doc": "" + "CName": "CUI_SPINNER_ORBIT", + "CsName": "Orbit", + "Value": "9", + "Doc": "two dots circling, their trails dissolving: syncing" + }, + { + "CName": "CUI_SPINNER_BOUNCE", + "CsName": "Bounce", + "Value": "10", + "Doc": "three bouncing dots with short trails: typing, a chat reply" + }, + { + "CName": "CUI_SPINNER_SCAN", + "CsName": "Scan", + "Value": "11", + "Doc": "a scan line reading a page: indexing, importing" + }, + { + "CName": "CUI_SPINNER_PULSE", + "CsName": "Pulse", + "Value": "12", + "Doc": "a soft disc breathing in density: recording, live" + }, + { + "CName": "CUI_SPINNER_SPIRAL", + "CsName": "Spiral", + "Value": "13", + "Doc": "three arms turning: a long, calm background wait" + }, + { + "CName": "CUI_SPINNER_PLASMA", + "CsName": "Plasma", + "Value": "14", + "Doc": "slow moving noise in a tile: generating an image or audio" } ], - "Doc": "Response actions: copy, regenerate, vote and share under an answer." + "Doc": "Spinner: says that something is happening, for as long as you call it. `size` is its height in points (20 when 0). The default style is a ring with a sweeping arc that holds still with reduced motion. The other styles are drawn in dots on an 8x8 ordered dither, one point a dot below 32 points tall and two from there, and each fits a kind of wait:" }, { - "CName": "CUI_COMPOSER_SEND", - "CsName": "ComposerEvents", - "IsFlags": true, + "CName": "cui_annotation_kind", + "CsName": "AnnotationKind", "Values": [ { - "CName": "None", - "CsName": "None", + "CName": "CUI_ANNOTATION_X", + "CsName": "X", + "Value": "0", + "Doc": "a vertical line at `x`, labelled at its top" + }, + { + "CName": "CUI_ANNOTATION_Y", + "CsName": "Y", + "Value": "1", + "Doc": "a dashed horizontal line at the value `y`, labelled at its end" + }, + { + "CName": "CUI_ANNOTATION_POINT", + "CsName": "Point", + "Value": "2", + "Doc": "a dot at `x`, `y`, labelled beside it" + } + ], + "Doc": "A line, a threshold or a point drawn over a chart, with a two-line label: the label in the foreground color and a muted detail under it. Line and bar charts take them in cui_chart_opts, the dot chart in cui_dot_chart_opts. Labels that would overlap move to the other side of their line, then down." + }, + { + "CName": "cui_status", + "CsName": "Status", + "Values": [ + { + "CName": "CUI_STATUS_IDLE", + "CsName": "Idle", "Value": "0", "Doc": "" }, { - "CName": "CUI_COMPOSER_SEND", - "CsName": "Send", + "CName": "CUI_STATUS_BUSY", + "CsName": "Busy", "Value": "1", "Doc": "" }, { - "CName": "CUI_COMPOSER_STOP", - "CsName": "Stop", + "CName": "CUI_STATUS_SUCCESS", + "CsName": "Success", "Value": "2", "Doc": "" }, { - "CName": "CUI_COMPOSER_ATTACH", - "CsName": "Attach", - "Value": "4", - "Doc": "" + "CName": "CUI_STATUS_ERROR", + "CsName": "Error", + "Value": "3", + "Doc": "" + } + ], + "Doc": "Button that shows the result of the work it started: idle, a spinner while busy, then a check (or an error) that settles back. Width morphs smoothly between the states. Returns true when clicked while idle." + }, + { + "CName": "cui_diff_mode", + "CsName": "DiffMode", + "Values": [ + { + "CName": "CUI_DIFF_SPLIT", + "CsName": "Split", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_DIFF_INLINE", + "CsName": "Inline", + "Value": "1", + "Doc": "" + } + ], + "Doc": "Diff viewer: compares two versions of a text line by line, side by side or inline, with changed words marked inside changed lines. The texts are yours (UTF-8, read during the call); the view keeps a copy and diffs again only when one of them changes, so it is cheap to call every frame." + }, + { + "CName": "cui_diff_row_kind", + "CsName": "DiffRowKind", + "Values": [ + { + "CName": "CUI_DIFF_ROW_SAME", + "CsName": "Same", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_DIFF_ROW_REMOVED", + "CsName": "Removed", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_DIFF_ROW_ADDED", + "CsName": "Added", + "Value": "2", + "Doc": "" + }, + { + "CName": "CUI_DIFF_ROW_CHANGED", + "CsName": "Changed", + "Value": "3", + "Doc": "split: a removed line beside the added line that replaced it" + }, + { + "CName": "CUI_DIFF_ROW_FOLD", + "CsName": "Fold", + "Value": "4", + "Doc": "hidden unchanged lines, starting at old_line / new_line" + } + ], + "Doc": "The rows the view shows after folding, e.g. to put a comment button beside a line. Copies rows [first, first + cap) and returns how many there are (0 before the view's first frame). Call it in the same id scope as the view." + }, + { + "CName": "cui_gauge_style", + "CsName": "GaugeStyle", + "Values": [ + { + "CName": "CUI_GAUGE_AUTO", + "CsName": "Auto", + "Value": "0", + "Doc": "segments with `bands`, the arc without" + }, + { + "CName": "CUI_GAUGE_ARC", + "CsName": "Arc", + "Value": "1", + "Doc": "a track and a value arc with round caps, min and max at its ends" + }, + { + "CName": "CUI_GAUGE_SEGMENTS", + "CsName": "Segments", + "Value": "2", + "Doc": "short segments lit up to the value, in the band colors" + }, + { + "CName": "CUI_GAUGE_RING", + "CsName": "Ring", + "Value": "3", + "Doc": "a slim full ring starting at the top" + } + ], + "Doc": "" + }, + { + "CName": "cui_loader_style", + "CsName": "LoaderStyle", + "Values": [ + { + "CName": "CUI_LOADER_DOTS", + "CsName": "Dots", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_LOADER_BARS", + "CsName": "Bars", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_LOADER_PULSE", + "CsName": "Pulse", + "Value": "2", + "Doc": "" + }, + { + "CName": "CUI_LOADER_ORBIT", + "CsName": "Orbit", + "Value": "3", + "Doc": "" + }, + { + "CName": "CUI_LOADER_GRID", + "CsName": "Grid", + "Value": "4", + "Doc": "" + } + ], + "Doc": "" + }, + { + "CName": "cui_task_status", + "CsName": "CuiTaskStatus", + "Values": [ + { + "CName": "CUI_TASK_PENDING", + "CsName": "Pending", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_TASK_RUNNING", + "CsName": "Running", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_TASK_DONE", + "CsName": "Done", + "Value": "2", + "Doc": "" + }, + { + "CName": "CUI_TASK_FAILED", + "CsName": "Failed", + "Value": "3", + "Doc": "" + }, + { + "CName": "CUI_TASK_SKIPPED", + "CsName": "Skipped", + "Value": "4", + "Doc": "" + } + ], + "Doc": "Tool call: a compact row with the tool, a detail and its status; opens to show the input and the output (shown as JSON when they parse)." + }, + { + "CName": "cui_voice_state", + "CsName": "VoiceState", + "Values": [ + { + "CName": "CUI_VOICE_IDLE", + "CsName": "Idle", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_VOICE_LISTENING", + "CsName": "Listening", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_VOICE_THINKING", + "CsName": "Thinking", + "Value": "2", + "Doc": "" + }, + { + "CName": "CUI_VOICE_SPEAKING", + "CsName": "Speaking", + "Value": "3", + "Doc": "" + }, + { + "CName": "CUI_VOICE_MUTED", + "CsName": "Muted", + "Value": "4", + "Doc": "" + } + ], + "Doc": "What a voice conversation is doing, for the voice session's label (and the voice orb, which shows the first four)." + }, + { + "CName": "cui_voice_owner", + "CsName": "VoiceOwner", + "Values": [ + { + "CName": "CUI_VOICE_YOU", + "CsName": "You", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_VOICE_REPLY", + "CsName": "Reply", + "Value": "1", + "Doc": "" + } + ], + "Doc": "" + }, + { + "CName": "cui_gantt_state", + "CsName": "GanttState", + "Values": [ + { + "CName": "CUI_GANTT_AUTO", + "CsName": "Auto", + "Value": "0", + "Doc": "from the progress and today: 1 is done, more than 0 is active; untouched work is planned when it starts after today, else active" + }, + { + "CName": "CUI_GANTT_DONE", + "CsName": "Done", + "Value": "1", + "Doc": "a green bar" + }, + { + "CName": "CUI_GANTT_ACTIVE", + "CsName": "Active", + "Value": "2", + "Doc": "a bar in the first series color" + }, + { + "CName": "CUI_GANTT_PLANNED", + "CsName": "Planned", + "Value": "3", + "Doc": "a dashed, lightly tinted bar" + } + ], + "Doc": "Gantt chart: a task list beside a timeline of bars. Drag a bar to move it, its ends to resize it. Bars are colored by state (done, active, planned) with their progress inside, dependencies are soft curves with small arrowheads, and today is an accent line. Returns the index of a clicked task, or -1." + }, + { + "CName": "cui_toolbar_style", + "CsName": "ToolbarStyle", + "Values": [ + { + "CName": "CUI_TOOLBAR_PLAIN", + "CsName": "Plain", + "Value": "0", + "Doc": "a strip as wide as its parent, with a hairline under it" + }, + { + "CName": "CUI_TOOLBAR_GROUPED", + "CsName": "Grouped", + "Value": "1", + "Doc": "raised groups inside one muted pill" + }, + { + "CName": "CUI_TOOLBAR_FLOATING", + "CsName": "Floating", + "Value": "2", + "Doc": "one bordered surface pill" + } + ], + "Doc": "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 \"more\" menu; an item chosen there returns true on the next frame. Tab moves through the items." + }, + { + "CName": "cui_log_level", + "CsName": "LogLevel", + "Values": [ + { + "CName": "CUI_LOG_TRACE", + "CsName": "Trace", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_LOG_DEBUG", + "CsName": "Debug", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_LOG_INFO", + "CsName": "Info", + "Value": "2", + "Doc": "" + }, + { + "CName": "CUI_LOG_WARN", + "CsName": "Warn", + "Value": "3", + "Doc": "" + }, + { + "CName": "CUI_LOG_ERROR", + "CsName": "Error", + "Value": "4", + "Doc": "" + }, + { + "CName": "CUI_LOG_LEVEL_COUNT", + "CsName": "LevelCount", + "Value": "5", + "Doc": "" + } + ], + "Doc": "Log console. The app owns the storage: give cui_log_init an array of line records and a byte buffer for the text. Appending never allocates; when either is full the oldest lines are dropped (a ring buffer). Lines longer than the text buffer are cut to fit." + }, + { + "CName": "cui_curve_mode", + "CsName": "CurveMode", + "Values": [ + { + "CName": "CUI_CURVE_SMOOTH", + "CsName": "Smooth", + "Value": "0", + "Doc": "automatic tangents" + }, + { + "CName": "CUI_CURVE_FREE", + "CsName": "Free", + "Value": "1", + "Doc": "the key's own handles" + }, + { + "CName": "CUI_CURVE_LINEAR", + "CsName": "Linear", + "Value": "2", + "Doc": "a straight line to the next key" + }, + { + "CName": "CUI_CURVE_STEP", + "CsName": "Step", + "Value": "3", + "Doc": "hold this value until the next key" + } + ], + "Doc": "Curve editor: keyframes on a plot, for easing, animation timing and response curves. You own the array of keys, sorted by x; the editor edits it in place (moves, handles, modes, adds and removes) and reports what it did in the result, so data you keep beside each key can follow:" + }, + { + "CName": "cui_tag_status", + "CsName": "TagStatus", + "Values": [ + { + "CName": "CUI_TAG_PENDING", + "CsName": "Pending", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_TAG_IN_PROGRESS", + "CsName": "InProgress", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_TAG_SUBMITTED", + "CsName": "Submitted", + "Value": "2", + "Doc": "" + }, + { + "CName": "CUI_TAG_IN_REVIEW", + "CsName": "InReview", + "Value": "3", + "Doc": "" + }, + { + "CName": "CUI_TAG_SUCCESS", + "CsName": "Success", + "Value": "4", + "Doc": "" + }, + { + "CName": "CUI_TAG_FAILED", + "CsName": "Failed", + "Value": "5", + "Doc": "" + }, + { + "CName": "CUI_TAG_EXPIRED", + "CsName": "Expired", + "Value": "6", + "Doc": "" + }, + { + "CName": "CUI_TAG_CUSTOM", + "CsName": "Custom", + "Value": "7", + "Doc": "your `icon` and `tone` only" + } + ], + "Doc": "Status tag: an icon, a label and a fill tinted by the state, for a table cell, a card header or a group of tags. \"In progress\" turns its dashed ring slowly (it holds still with reduced motion). A NULL label shows the state's English name." + }, + { + "CName": "cui_gradient_track", + "CsName": "GradientTrack", + "Values": [ + { + "CName": "CUI_GRADIENT_HUE", + "CsName": "Hue", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_GRADIENT_TEMPERATURE", + "CsName": "Temperature", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_GRADIENT_OPACITY", + "CsName": "Opacity", + "Value": "2", + "Doc": "" + } + ], + "Doc": "Gradient slider: a slider whose track is the value itself (a hue wheel, a white balance temperature, an opacity over a checkerboard, or your own stops), with a thumb filled with the color under it. An optional tool button after the track (an eyedropper) reports clicks. Keys as for the slider. Returns CUI_WELL_* flags." + }, + { + "CName": "cui_timeline_ruler", + "CsName": "TimelineRuler", + "Values": [ + { + "CName": "CUI_TIMELINE_FRAMES", + "CsName": "Frames", + "Value": "0", + "Doc": "frame numbers" + }, + { + "CName": "CUI_TIMELINE_SECONDS", + "CsName": "Seconds", + "Value": "1", + "Doc": "1.5 s" + }, + { + "CName": "CUI_TIMELINE_TIMECODE", + "CsName": "Timecode", + "Value": "2", + "Doc": "minutes:seconds:frames (hours too past an hour)" + } + ], + "Doc": "Timeline editor (dope sheet): a track list on the left, a time ruler on top and a row per track with its keys (and clips, for video and audio tracks). You own the tracks, their keys and clips, the playhead time and the selection; the editor edits them in place and reports what it did:" + }, + { + "CName": "cui_severity", + "CsName": "Severity", + "Values": [ + { + "CName": "CUI_SEVERITY_ERROR", + "CsName": "Error", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_SEVERITY_WARNING", + "CsName": "Warning", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_SEVERITY_INFO", + "CsName": "Info", + "Value": "2", + "Doc": "" + }, + { + "CName": "CUI_SEVERITY_HINT", + "CsName": "Hint", + "Value": "3", + "Doc": "" + } + ], + "Doc": "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's header folds its group. Up and Down move the selection, Left and Right fold and unfold, Enter or a double-click reports `activated` (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." + }, + { + "CName": "cui_job_status", + "CsName": "JobStatus", + "Values": [ + { + "CName": "CUI_JOB_PENDING", + "CsName": "Pending", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_JOB_RUNNING", + "CsName": "Running", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_JOB_PASSED", + "CsName": "Passed", + "Value": "2", + "Doc": "" + }, + { + "CName": "CUI_JOB_FAILED", + "CsName": "Failed", + "Value": "3", + "Doc": "" + }, + { + "CName": "CUI_JOB_SKIPPED", + "CsName": "Skipped", + "Value": "4", + "Doc": "" + }, + { + "CName": "CUI_JOB_CANCELED", + "CsName": "Canceled", + "Value": "5", + "Doc": "" + } + ], + "Doc": "A CI/CD run: stages left to right, each a column of jobs with their status and duration. A stage's header sums up its jobs (failed, running, passed). Running jobs spin. Click a job to get its index (open its log). Below 560 points the stages stack top to bottom." + }, + { + "CName": "cui_query_type", + "CsName": "QueryType", + "Values": [ + { + "CName": "CUI_QUERY_TEXT", + "CsName": "Text", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_QUERY_NUMBER", + "CsName": "Number", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_QUERY_CHOICE", + "CsName": "Choice", + "Value": "2", + "Doc": "" + }, + { + "CName": "CUI_QUERY_BOOL", + "CsName": "Bool", + "Value": "3", + "Doc": "" + } + ], + "Doc": "Conditions joined by \"all\" or \"any\", in groups you can nest: the filter of an issue tracker, a log search or a database view. You own the nodes, in order, each with its depth: node 0 is the outer group (made for you when count is 0). A rule picks a field, an operator for the field's type and a value; a group picks all or any. Returns true when anything changed. cui_query_text writes the query as a sentence, cui_query_match tests a record against it." + }, + { + "CName": "cui_http_method", + "CsName": "HttpVerb", + "Values": [ + { + "CName": "CUI_HTTP_GET", + "CsName": "Get", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_HTTP_POST", + "CsName": "Post", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_HTTP_PUT", + "CsName": "Put", + "Value": "2", + "Doc": "" + }, + { + "CName": "CUI_HTTP_PATCH", + "CsName": "Patch", + "Value": "3", + "Doc": "" + }, + { + "CName": "CUI_HTTP_DELETE", + "CsName": "Delete", + "Value": "4", + "Doc": "" + }, + { + "CName": "CUI_HTTP_HEAD", + "CsName": "Head", + "Value": "5", + "Doc": "" + }, + { + "CName": "CUI_HTTP_OPTIONS", + "CsName": "Options", + "Value": "6", + "Doc": "" + } + ], + "Doc": "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." + }, + { + "CName": "cui_axis_units", + "CsName": "AxisUnits", + "Values": [ + { + "CName": "CUI_AXIS_NUMBER", + "CsName": "Number", + "Value": "0", + "Doc": "numbers, printed with the axis format (default \"%g\")" + }, + { + "CName": "CUI_AXIS_HOURS", + "CsName": "Hours", + "Value": "1", + "Doc": "hours shown as a time of day: 12.25 is 12:15, and 30 is 06:00 the next day" + } + ], + "Doc": "How an axis labels its values." + }, + { + "CName": "cui_format_align", + "CsName": "FormatAlign", + "Values": [ + { + "CName": "CUI_FORMAT_ALIGN_LEFT", + "CsName": "Left", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_FORMAT_ALIGN_CENTER", + "CsName": "Center", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_FORMAT_ALIGN_RIGHT", + "CsName": "Right", + "Value": "2", + "Doc": "" + }, + { + "CName": "CUI_FORMAT_ALIGN_JUSTIFY", + "CsName": "Justify", + "Value": "3", + "Doc": "" + } + ], + "Doc": "Format bar: a floating bar that edits the format of a text selection. A color swatch opens a grid of colors; bold and underline toggle; link reports a click; the size readout follows the text style, chosen from a menu that shows each style at its own size; alignment and list open small flyouts (a corner mark says so); delete asks first, in a small tip with a Delete button. You pass one struct with the format and the bar edits it:" + }, + { + "CName": "cui_format_list", + "CsName": "FormatList", + "Values": [ + { + "CName": "CUI_FORMAT_LIST_NONE", + "CsName": "None", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_FORMAT_LIST_BULLETS", + "CsName": "Bullets", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_FORMAT_LIST_NUMBERS", + "CsName": "Numbers", + "Value": "2", + "Doc": "" + }, + { + "CName": "CUI_FORMAT_LIST_CHECKS", + "CsName": "Checks", + "Value": "3", + "Doc": "" + } + ], + "Doc": "" + }, + { + "CName": "cui_renderer_kind", + "CsName": "Renderer", + "Values": [ + { + "CName": "CUI_RENDERER_AUTO", + "CsName": "Auto", + "Value": "0", + "Doc": "OpenGL, or software when there is no GPU (CPU-drawn OpenGL, X11 and Win32)" + }, + { + "CName": "CUI_RENDERER_OPENGL", + "CsName": "OpenGL", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_RENDERER_SOFTWARE", + "CsName": "Software", + "Value": "2", + "Doc": "" + } + ], + "Doc": "" + }, + { + "CName": "cui_file_dialog_kind", + "CsName": "FileDialogKind", + "Values": [ + { + "CName": "CUI_FILE_OPEN", + "CsName": "Open", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_FILE_SAVE", + "CsName": "Save", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_FILE_FOLDER", + "CsName": "Folder", + "Value": "2", + "Doc": "" + } + ], + "Doc": "Native file dialogs. Blocking; returns true and writes the chosen path (UTF-8) to out when the user confirms. On Linux this uses zenity or kdialog when installed. Pass NULL as app to use the current app (handy in cui_app_run callbacks)." + }, + { + "CName": "cui_sw_format", + "CsName": "SwFormat", + "Values": [ + { + "CName": "CUI_SW_RGBA", + "CsName": "Rgba", + "Value": "0", + "Doc": "bytes R, G, B, A in memory" + }, + { + "CName": "CUI_SW_BGRA", + "CsName": "Bgra", + "Value": "1", + "Doc": "bytes B, G, R, A in memory (Win32 DIBs, X11, Cairo)" + } + ], + "Doc": "" + }, + { + "CName": "CUI_FONT_BODY", + "CsName": "Font", + "Values": [ + { + "CName": "CUI_FONT_BODY", + "CsName": "Body", + "Value": "0", + "Doc": "Inter Regular" + }, + { + "CName": "CUI_FONT_MEDIUM", + "CsName": "Medium", + "Value": "1", + "Doc": "Inter Medium" + }, + { + "CName": "CUI_FONT_DISPLAY", + "CsName": "Display", + "Value": "2", + "Doc": "Geist Medium, for headings 28pt and up" + }, + { + "CName": "CUI_FONT_MONO", + "CsName": "Mono", + "Value": "3", + "Doc": "Geist Mono" + }, + { + "CName": "CUI_FONT_ICONS", + "CsName": "Icons", + "Value": "4", + "Doc": "Lucide icons" + } + ], + "Doc": "" + }, + { + "CName": "CUI_TOUR_NONE", + "CsName": "TourAction", + "Values": [ + { + "CName": "CUI_TOUR_NONE", + "CsName": "None", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_TOUR_NEXT", + "CsName": "Next", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_TOUR_BACK", + "CsName": "Back", + "Value": "2", + "Doc": "" + }, + { + "CName": "CUI_TOUR_DONE", + "CsName": "Done", + "Value": "3", + "Doc": "" + }, + { + "CName": "CUI_TOUR_SKIPPED", + "CsName": "Skipped", + "Value": "4", + "Doc": "" + } + ], + "Doc": "" + }, + { + "CName": "CUI_COMMENT_LIKE", + "CsName": "CommentEvents", + "IsFlags": true, + "Values": [ + { + "CName": "None", + "CsName": "None", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_COMMENT_LIKE", + "CsName": "Like", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_COMMENT_REPLY", + "CsName": "Reply", + "Value": "2", + "Doc": "" + } + ], + "Doc": "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." + }, + { + "CName": "CUI_PLAYER_TOGGLE", + "CsName": "PlayerEvents", + "IsFlags": true, + "Values": [ + { + "CName": "None", + "CsName": "None", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_PLAYER_TOGGLE", + "CsName": "Toggle", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_PLAYER_PREV", + "CsName": "Prev", + "Value": "2", + "Doc": "" + }, + { + "CName": "CUI_PLAYER_NEXT", + "CsName": "Next", + "Value": "4", + "Doc": "" + }, + { + "CName": "CUI_PLAYER_SEEK", + "CsName": "Seek", + "Value": "8", + "Doc": "" + }, + { + "CName": "CUI_PLAYER_SPEED", + "CsName": "Speed", + "Value": "16", + "Doc": "" + } + ], + "Doc": "what the user did, from the now playing card and the voice note: CUI_PLAYER_SPEED is the voice note's speed chip" + }, + { + "CName": "CUI_RESPONSE_COPY", + "CsName": "ResponseEvents", + "IsFlags": true, + "Values": [ + { + "CName": "None", + "CsName": "None", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_RESPONSE_COPY", + "CsName": "Copy", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_RESPONSE_REGENERATE", + "CsName": "Regenerate", + "Value": "2", + "Doc": "" + }, + { + "CName": "CUI_RESPONSE_UP", + "CsName": "Up", + "Value": "4", + "Doc": "" + }, + { + "CName": "CUI_RESPONSE_DOWN", + "CsName": "Down", + "Value": "8", + "Doc": "" + }, + { + "CName": "CUI_RESPONSE_SHARE", + "CsName": "Share", + "Value": "16", + "Doc": "" + } + ], + "Doc": "Response actions: copy, regenerate, vote and share under an answer." + }, + { + "CName": "CUI_COMPOSER_SEND", + "CsName": "ComposerEvents", + "IsFlags": true, + "Values": [ + { + "CName": "None", + "CsName": "None", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_COMPOSER_SEND", + "CsName": "Send", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_COMPOSER_STOP", + "CsName": "Stop", + "Value": "2", + "Doc": "" + }, + { + "CName": "CUI_COMPOSER_ATTACH", + "CsName": "Attach", + "Value": "4", + "Doc": "" + }, + { + "CName": "CUI_COMPOSER_REMOVE", + "CsName": "Remove", + "Value": "8", + "Doc": "" + }, + { + "CName": "CUI_COMPOSER_MODEL", + "CsName": "Model", + "Value": "16", + "Doc": "" + }, + { + "CName": "CUI_COMPOSER_RECORD", + "CsName": "Record", + "Value": "32", + "Doc": "" + }, + { + "CName": "CUI_COMPOSER_CANCEL", + "CsName": "Cancel", + "Value": "64", + "Doc": "" + }, + { + "CName": "CUI_COMPOSER_VOICE", + "CsName": "Voice", + "Value": "128", + "Doc": "" + } + ], + "Doc": "Chat composer: a growing text area with attachments, a model picker and a send button that turns into stop while busy. Enter sends, Shift+Enter adds a line. Returns CUI_COMPOSER_* flags; *removed is the attachment whose x was clicked." + }, + { + "CName": "CUI_VOICE_SESSION_MUTE", + "CsName": "VoiceSessionEvents", + "IsFlags": true, + "Values": [ + { + "CName": "None", + "CsName": "None", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_VOICE_SESSION_MUTE", + "CsName": "Mute", + "Value": "1", + "Doc": "" + }, + { + "CName": "CUI_VOICE_SESSION_END", + "CsName": "End", + "Value": "2", + "Doc": "" + } + ], + "Doc": "Voice session: a spoken conversation with an assistant on one timeline. The waveform scrolls with both voices, you in the foreground color and the assistant in the accent (tag each level in `owners`); a label says what is happening (Listening, Thinking..., Speaking, Muted: the `state` you pass), with a legend, the live transcript under it and Mute and End buttons. While the assistant thinks there is no sound, so push CUI_VOICE_SILENT: the strip shows a flat gap rather than a made-up wave. Returns CUI_VOICE_SESSION_*." + }, + { + "CName": "CUI_WELL_CHANGED", + "CsName": "WellEvents", + "IsFlags": true, + "Values": [ + { + "CName": "None", + "CsName": "None", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_WELL_CHANGED", + "CsName": "Changed", + "Value": "1", + "Doc": "the value changed; the action button was pressed" + }, + { + "CName": "CUI_WELL_ACTION", + "CsName": "Action", + "Value": "2", + "Doc": "the value changed; the action button was pressed" + } + ], + "Doc": "The controls below sit in a control well: a rounded panel with the label on the left, the value on the right and the control under them. `plain` drops the panel and keeps the label row and the control. A label that starts with \"##\" shows no label row. Those that take an action button return these flags:" + }, + { + "CName": "CUI_FORMAT_CHANGED", + "CsName": "FormatEvents", + "IsFlags": true, + "Values": [ + { + "CName": "None", + "CsName": "None", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_FORMAT_CHANGED", + "CsName": "Changed", + "Value": "1", + "Doc": "a field of the format changed" + }, + { + "CName": "CUI_FORMAT_LINK", + "CsName": "Link", + "Value": "2", + "Doc": "the link button was clicked" + }, + { + "CName": "CUI_FORMAT_DELETE", + "CsName": "Delete", + "Value": "4", + "Doc": "delete was confirmed" + }, + { + "CName": "CUI_FORMAT_MORE", + "CsName": "More", + "Value": "8", + "Doc": "the \"...\" button was clicked" + } + ], + "Doc": "" + }, + { + "CName": "CUI_CANVAS_ZOOMED", + "CsName": "CanvasEvents", + "IsFlags": true, + "Values": [ + { + "CName": "None", + "CsName": "None", + "Value": "0", + "Doc": "" + }, + { + "CName": "CUI_CANVAS_ZOOMED", + "CsName": "Zoomed", + "Value": "1", + "Doc": "the zoom changed (in, out, reset or fit)" + }, + { + "CName": "CUI_CANVAS_FIT", + "CsName": "Fit", + "Value": "2", + "Doc": "fit was clicked" + }, + { + "CName": "CUI_CANVAS_TOGGLED", + "CsName": "Toggled", + "Value": "4", + "Doc": "a toggle flipped" + } + ], + "Doc": "" + } + ], + "Functions": [ + { + "CName": "cui_create", + "CsName": "Create", + "CsReturn": "nint", + "Params": [ + { + "CName": "desc", + "CsName": "desc", + "CsType": "in NativeCtxDesc", + "Type": { + "Spelling": "const cui_ctx_desc *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_ctx_desc", + "Kind": "Record", + "IsConst": true + } + } + } + ], + "ReturnType": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + }, + "Module": "Context and frame", + "Doc": "" + }, + { + "CName": "cui_destroy", + "CsName": "Destroy", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Context and frame", + "Doc": "" + }, + { + "CName": "cui_set_renderer", + "CsName": "SetRenderer", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + }, + { + "CName": "renderer", + "CsName": "renderer", + "CsType": "in NativeRendererIface", + "Type": { + "Spelling": "const cui_renderer_iface *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_renderer_iface", + "Kind": "Record", + "IsConst": true + } + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Context and frame", + "Doc": "" + }, + { + "CName": "cui_set_viewport", + "CsName": "SetViewport", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + }, + { + "CName": "width", + "CsName": "width", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "height", + "CsName": "height", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "scale", + "CsName": "scale", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Context and frame", + "Doc": "Size of the drawable area in logical points, and the scale to pixels (2.0 on a typical retina display)." + }, + { + "CName": "cui_viewport_size", + "CsName": "ViewportSize", + "CsReturn": "NativeVec2", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + } + ], + "ReturnType": { + "Spelling": "cui_vec2", + "Kind": "Record" + }, + "Module": "Context and frame", + "Doc": "" + }, + { + "CName": "cui_dpi_scale", + "CsName": "DpiScale", + "CsReturn": "float", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + } + ], + "ReturnType": { + "Spelling": "float", + "Kind": "Float" + }, + "Module": "Context and frame", + "Doc": "" + }, + { + "CName": "cui_begin_frame", + "CsName": "BeginFrame", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + }, + { + "CName": "dt", + "CsName": "dt", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Context and frame", + "Doc": "dt is the elapsed time since the previous frame in seconds. Timers use the full interval (up to an hour). Animation steps are capped after idle." + }, + { + "CName": "cui_end_frame", + "CsName": "EndFrame", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Context and frame", + "Doc": "" + }, + { + "CName": "cui_needs_redraw", + "CsName": "NeedsRedraw", + "CsReturn": "byte", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + } + ], + "ReturnType": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Module": "Context and frame", + "Doc": "True while something animates or input is still settling. Event driven apps can sleep until the next input event when this is false." + }, + { + "CName": "cui_next_wakeup", + "CsName": "NextWakeup", + "CsReturn": "float", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + } + ], + "ReturnType": { + "Spelling": "float", + "Kind": "Float" + }, + "Module": "Context and frame", + "Doc": "Seconds until CUI wants a frame (for caret blink, tooltips, toasts). Negative means \"only on input\"." + }, + { + "CName": "cui_request_redraw", + "CsName": "RequestRedraw", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Context and frame", + "Doc": "" + }, + { + "CName": "cui_request_wakeup", + "CsName": "RequestWakeup", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + }, + { + "CName": "seconds", + "CsName": "seconds", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Context and frame", + "Doc": "Asks for a frame within this many seconds even with no input, for things that change on a timer (a clock, polling, a countdown). Call it each frame while it is needed; an idle app then sleeps until the soonest one instead of redrawing continuously." + }, + { + "CName": "cui_time", + "CsName": "Time", + "CsReturn": "double", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + } + ], + "ReturnType": { + "Spelling": "double", + "Kind": "Double" + }, + "Module": "Context and frame", + "Doc": "" + }, + { + "CName": "cui_delta_time", + "CsName": "DeltaTime", + "CsReturn": "float", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + } + ], + "ReturnType": { + "Spelling": "float", + "Kind": "Float" + }, + "Module": "Context and frame", + "Doc": "seconds since the last frame" + }, + { + "CName": "cui_frame_count", + "CsName": "FrameCount", + "CsReturn": "ulong", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + } + ], + "ReturnType": { + "Spelling": "uint64_t", + "Kind": "ULongLong" + }, + "Module": "Context and frame", + "Doc": "" + }, + { + "CName": "cui_input_mouse_move", + "CsName": "InputMouseMove", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + }, + { + "CName": "x", + "CsName": "x", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "y", + "CsName": "y", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Input (called by the platform layer)", + "Doc": "" + }, + { + "CName": "cui_input_mouse_button", + "CsName": "InputMouseButton", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + }, + { + "CName": "button", + "CsName": "button", + "CsType": "MouseButton", + "Type": { + "Spelling": "cui_mouse_button", + "Kind": "Enum" + } + }, + { + "CName": "down", + "CsName": "down", + "CsType": "byte", + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Input (called by the platform layer)", + "Doc": "" + }, + { + "CName": "cui_input_mouse_leave", + "CsName": "InputMouseLeave", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Input (called by the platform layer)", + "Doc": "" + }, + { + "CName": "cui_input_scroll", + "CsName": "InputScroll", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + }, + { + "CName": "dx", + "CsName": "dx", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "dy", + "CsName": "dy", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Input (called by the platform layer)", + "Doc": "in lines; +dy scrolls up" + }, + { + "CName": "cui_input_key", + "CsName": "InputKey", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + }, + { + "CName": "key", + "CsName": "key", + "CsType": "Key", + "Type": { + "Spelling": "cui_key", + "Kind": "Enum" + } }, { - "CName": "CUI_COMPOSER_REMOVE", - "CsName": "Remove", - "Value": "8", - "Doc": "" + "CName": "down", + "CsName": "down", + "CsType": "byte", + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + } }, { - "CName": "CUI_COMPOSER_MODEL", - "CsName": "Model", - "Value": "16", - "Doc": "" + "CName": "mods", + "CsName": "mods", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } } ], - "Doc": "Chat composer: a growing text area with attachments, a model picker and a send button that turns into stop while busy. Enter sends, Shift+Enter adds a line. Returns CUI_COMPOSER_* flags; *removed is the attachment whose x was clicked." - } - ], - "Functions": [ + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Input (called by the platform layer)", + "Doc": "" + }, { - "CName": "cui_create", - "CsName": "Create", - "CsReturn": "nint", + "CName": "cui_input_text", + "CsName": "InputText", + "CsReturn": "void", "Params": [ { - "CName": "desc", - "CsName": "desc", - "CsType": "in NativeCtxDesc", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "const cui_ctx_desc *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_ctx_desc", - "Kind": "Record", + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + }, + { + "CName": "utf8", + "CsName": "utf8", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } } } ], "ReturnType": { - "Spelling": "cui_ctx *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" - } + "Spelling": "void", + "Kind": "Void" }, - "Module": "Context and frame", + "Module": "Input (called by the platform layer)", "Doc": "" }, { - "CName": "cui_destroy", - "CsName": "Destroy", + "CName": "cui_input_focus", + "CsName": "InputFocus", "CsReturn": "void", "Params": [ { @@ -27672,18 +32046,27 @@ "Kind": "Record" } } + }, + { + "CName": "window_focused", + "CsName": "windowFocused", + "CsType": "byte", + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Context and frame", + "Module": "Input (called by the platform layer)", "Doc": "" }, { - "CName": "cui_set_renderer", - "CsName": "SetRenderer", + "CName": "cui_input_file_hover", + "CsName": "InputFileHover", "CsReturn": "void", "Params": [ { @@ -27700,17 +32083,30 @@ } }, { - "CName": "renderer", - "CsName": "renderer", - "CsType": "in NativeRendererIface", + "CName": "hovering", + "CsName": "hovering", + "CsType": "byte", "Type": { - "Spelling": "const cui_renderer_iface *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_renderer_iface", - "Kind": "Record", - "IsConst": true - } + "Spelling": "_Bool", + "Kind": "Bool" + } + }, + { + "CName": "x", + "CsName": "x", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "y", + "CsName": "y", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" } } ], @@ -27718,12 +32114,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Context and frame", - "Doc": "" + "Module": "Input (called by the platform layer)", + "Doc": "Files dragged from the OS: hover while a drag is over the window (where the platform reports it), then the drop itself. Paths are UTF-8 and copied." }, { - "CName": "cui_set_viewport", - "CsName": "SetViewport", + "CName": "cui_input_file_drop", + "CsName": "InputFileDrop", "CsReturn": "void", "Params": [ { @@ -27740,17 +32136,36 @@ } }, { - "CName": "width", - "CsName": "width", - "CsType": "float", + "CName": "paths", + "CsName": "paths", + "CsType": "nint", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char *const *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } } }, { - "CName": "height", - "CsName": "height", + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "x", + "CsName": "x", "CsType": "float", "Type": { "Spelling": "float", @@ -27758,8 +32173,8 @@ } }, { - "CName": "scale", - "CsName": "scale", + "CName": "y", + "CsName": "y", "CsType": "float", "Type": { "Spelling": "float", @@ -27771,13 +32186,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Context and frame", - "Doc": "Size of the drawable area in logical points, and the scale to pixels (2.0 on a typical retina display)." + "Module": "Input (called by the platform layer)", + "Doc": "" }, { - "CName": "cui_viewport_size", - "CsName": "ViewportSize", - "CsReturn": "NativeVec2", + "CName": "cui_dropped_file_count", + "CsName": "DroppedFileCount", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -27794,16 +32209,16 @@ } ], "ReturnType": { - "Spelling": "cui_vec2", - "Kind": "Record" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Context and frame", - "Doc": "" + "Module": "Input (called by the platform layer)", + "Doc": "Files dropped this frame (dropzones claim theirs first)." }, { - "CName": "cui_dpi_scale", - "CsName": "DpiScale", - "CsReturn": "float", + "CName": "cui_dropped_file", + "CsName": "DroppedFile", + "CsReturn": "nint", "Params": [ { "CName": "ui", @@ -27817,19 +32232,33 @@ "Kind": "Record" } } + }, + { + "CName": "index", + "CsName": "index", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } } ], "ReturnType": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Module": "Context and frame", + "Module": "Input (called by the platform layer)", "Doc": "" }, { - "CName": "cui_begin_frame", - "CsName": "BeginFrame", - "CsReturn": "void", + "CName": "cui_file_drag_active", + "CsName": "FileDragActive", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -27843,27 +32272,18 @@ "Kind": "Record" } } - }, - { - "CName": "dt", - "CsName": "dt", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Context and frame", - "Doc": "dt is the time since the previous frame in seconds." + "Module": "Input (called by the platform layer)", + "Doc": "files are being dragged over the window" }, { - "CName": "cui_end_frame", - "CsName": "EndFrame", + "CName": "cui_set_platform", + "CsName": "SetPlatform", "CsReturn": "void", "Params": [ { @@ -27878,19 +32298,33 @@ "Kind": "Record" } } + }, + { + "CName": "platform", + "CsName": "platform", + "CsType": "in NativePlatformIface", + "Type": { + "Spelling": "const cui_platform_iface *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_platform_iface", + "Kind": "Record", + "IsConst": true + } + } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Context and frame", + "Module": "Input (called by the platform layer)", "Doc": "" }, { - "CName": "cui_needs_redraw", - "CsName": "NeedsRedraw", - "CsReturn": "byte", + "CName": "cui_get_cursor", + "CsName": "GetCursor", + "CsReturn": "Cursor", "Params": [ { "CName": "ui", @@ -27907,16 +32341,16 @@ } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_cursor", + "Kind": "Enum" }, - "Module": "Context and frame", - "Doc": "True while something animates or input is still settling. Event driven apps can sleep until the next input event when this is false." + "Module": "Input (called by the platform layer)", + "Doc": "" }, { - "CName": "cui_next_wakeup", - "CsName": "NextWakeup", - "CsReturn": "float", + "CName": "cui_set_clipboard_text", + "CsName": "SetClipboardText", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -27930,19 +32364,33 @@ "Kind": "Record" } } + }, + { + "CName": "text", + "CsName": "text", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } } ], "ReturnType": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Context and frame", - "Doc": "Seconds until CUI wants a frame (for caret blink, tooltips, toasts). Negative means \"only on input\"." + "Module": "Input (called by the platform layer)", + "Doc": "The system clipboard, for a menu or status bar item that copies or pastes (\"Copy path\"). They go through the platform's clipboard hooks, as the copy button and text fields do: without a hook, setting does nothing and getting returns \"\". The returned text stays valid until the next call." }, { - "CName": "cui_request_redraw", - "CsName": "RequestRedraw", - "CsReturn": "void", + "CName": "cui_get_clipboard_text", + "CsName": "GetClipboardText", + "CsReturn": "nint", "Params": [ { "CName": "ui", @@ -27959,16 +32407,21 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } }, - "Module": "Context and frame", + "Module": "Input (called by the platform layer)", "Doc": "" }, { - "CName": "cui_request_wakeup", - "CsName": "RequestWakeup", - "CsReturn": "void", + "CName": "cui_key_pressed", + "CsName": "KeyPressed", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -27984,26 +32437,26 @@ } }, { - "CName": "seconds", - "CsName": "seconds", - "CsType": "float", + "CName": "key", + "CsName": "key", + "CsType": "Key", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "cui_key", + "Kind": "Enum" } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Context and frame", - "Doc": "Asks for a frame within this many seconds even with no input, for things that change on a timer (a clock, polling, a countdown). Call it each frame while it is needed; an idle app then sleeps until the soonest one instead of redrawing continuously." + "Module": "Input (called by the platform layer)", + "Doc": "Queries, useful for app level shortcuts." }, { - "CName": "cui_time", - "CsName": "Time", - "CsReturn": "double", + "CName": "cui_key_down", + "CsName": "KeyDown", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -28017,19 +32470,28 @@ "Kind": "Record" } } + }, + { + "CName": "key", + "CsName": "key", + "CsType": "Key", + "Type": { + "Spelling": "cui_key", + "Kind": "Enum" + } } ], "ReturnType": { - "Spelling": "double", - "Kind": "Double" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Context and frame", + "Module": "Input (called by the platform layer)", "Doc": "" }, { - "CName": "cui_delta_time", - "CsName": "DeltaTime", - "CsReturn": "float", + "CName": "cui_shortcut", + "CsName": "Shortcut", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -28043,19 +32505,37 @@ "Kind": "Record" } } + }, + { + "CName": "mods", + "CsName": "mods", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "key", + "CsName": "key", + "CsType": "Key", + "Type": { + "Spelling": "cui_key", + "Kind": "Enum" + } } ], "ReturnType": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Context and frame", - "Doc": "seconds since the last frame" + "Module": "Input (called by the platform layer)", + "Doc": "e.g. cui_shortcut(ui, CUI_MOD_PRIMARY, CUI_KEY_K)" }, { - "CName": "cui_frame_count", - "CsName": "FrameCount", - "CsReturn": "ulong", + "CName": "cui_key_mods", + "CsName": "KeyMods", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -28072,16 +32552,16 @@ } ], "ReturnType": { - "Spelling": "uint64_t", - "Kind": "ULongLong" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Context and frame", + "Module": "Input (called by the platform layer)", "Doc": "" }, { - "CName": "cui_input_mouse_move", - "CsName": "InputMouseMove", - "CsReturn": "void", + "CName": "cui_mouse_pos", + "CsName": "MousePos", + "CsReturn": "NativeVec2", "Params": [ { "CName": "ui", @@ -28095,37 +32575,19 @@ "Kind": "Record" } } - }, - { - "CName": "x", - "CsName": "x", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, - { - "CName": "y", - "CsName": "y", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "cui_vec2", + "Kind": "Record" }, "Module": "Input (called by the platform layer)", "Doc": "" }, { - "CName": "cui_input_mouse_button", - "CsName": "InputMouseButton", - "CsReturn": "void", + "CName": "cui_mouse_down", + "CsName": "MouseDown", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -28141,35 +32603,26 @@ } }, { - "CName": "button", - "CsName": "button", + "CName": "b", + "CsName": "b", "CsType": "MouseButton", "Type": { "Spelling": "cui_mouse_button", "Kind": "Enum" } - }, - { - "CName": "down", - "CsName": "down", - "CsType": "byte", - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, "Module": "Input (called by the platform layer)", "Doc": "" }, { - "CName": "cui_input_mouse_leave", - "CsName": "InputMouseLeave", - "CsReturn": "void", + "CName": "cui_mouse_clicked", + "CsName": "MouseClicked", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -28183,63 +32636,54 @@ "Kind": "Record" } } + }, + { + "CName": "b", + "CsName": "b", + "CsType": "MouseButton", + "Type": { + "Spelling": "cui_mouse_button", + "Kind": "Enum" + } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, "Module": "Input (called by the platform layer)", "Doc": "" }, { - "CName": "cui_input_scroll", - "CsName": "InputScroll", - "CsReturn": "void", + "CName": "cui_wants_keyboard", + "CsName": "WantsKeyboard", + "CsReturn": "byte", "Params": [ { "CName": "ui", "CsName": "ui", "CsType": "nint", - "Type": { - "Spelling": "cui_ctx *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" - } - } - }, - { - "CName": "dx", - "CsName": "dx", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, - { - "CName": "dy", - "CsName": "dy", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, "Module": "Input (called by the platform layer)", - "Doc": "in lines; +dy scrolls up" + "Doc": "True when a text field has keyboard focus (so the app should not treat typing as shortcuts)." }, { - "CName": "cui_input_key", - "CsName": "InputKey", - "CsReturn": "void", + "CName": "cui_wants_mouse", + "CsName": "WantsMouse", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -28253,45 +32697,18 @@ "Kind": "Record" } } - }, - { - "CName": "key", - "CsName": "key", - "CsType": "Key", - "Type": { - "Spelling": "cui_key", - "Kind": "Enum" - } - }, - { - "CName": "down", - "CsName": "down", - "CsType": "byte", - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - } - }, - { - "CName": "mods", - "CsName": "mods", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, "Module": "Input (called by the platform layer)", "Doc": "" }, { - "CName": "cui_input_text", - "CsName": "InputText", + "CName": "cui_set_theme", + "CsName": "SetTheme", "CsReturn": "void", "Params": [ { @@ -28308,17 +32725,12 @@ } }, { - "CName": "utf8", - "CsName": "utf8", - "CsType": "nint", + "CName": "mode", + "CsName": "mode", + "CsType": "Theme", "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "cui_theme_mode", + "Kind": "Enum" } } ], @@ -28326,13 +32738,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Input (called by the platform layer)", + "Module": "Theme", "Doc": "" }, { - "CName": "cui_input_focus", - "CsName": "InputFocus", - "CsReturn": "void", + "CName": "cui_get_theme_mode", + "CsName": "GetThemeMode", + "CsReturn": "Theme", "Params": [ { "CName": "ui", @@ -28346,27 +32758,18 @@ "Kind": "Record" } } - }, - { - "CName": "window_focused", - "CsName": "windowFocused", - "CsType": "byte", - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "cui_theme_mode", + "Kind": "Enum" }, - "Module": "Input (called by the platform layer)", + "Module": "Theme", "Doc": "" }, { - "CName": "cui_input_file_hover", - "CsName": "InputFileHover", + "CName": "cui_set_accent", + "CsName": "SetAccent", "CsReturn": "void", "Params": [ { @@ -28383,30 +32786,12 @@ } }, { - "CName": "hovering", - "CsName": "hovering", - "CsType": "byte", - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - } - }, - { - "CName": "x", - "CsName": "x", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, - { - "CName": "y", - "CsName": "y", - "CsType": "float", + "CName": "accent", + "CsName": "accent", + "CsType": "Accent", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "cui_accent", + "Kind": "Enum" } } ], @@ -28414,13 +32799,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Input (called by the platform layer)", - "Doc": "Files dragged from the OS: hover while a drag is over the window (where the platform reports it), then the drop itself. Paths are UTF-8 and copied." + "Module": "Theme", + "Doc": "" }, { - "CName": "cui_input_file_drop", - "CsName": "InputFileDrop", - "CsReturn": "void", + "CName": "cui_get_accent", + "CsName": "GetAccent", + "CsReturn": "Accent", "Params": [ { "CName": "ui", @@ -28434,65 +32819,19 @@ "Kind": "Record" } } - }, - { - "CName": "paths", - "CsName": "paths", - "CsType": "nint", - "Type": { - "Spelling": "const char *const *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - } - }, - { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "x", - "CsName": "x", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, - { - "CName": "y", - "CsName": "y", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "cui_accent", + "Kind": "Enum" }, - "Module": "Input (called by the platform layer)", + "Module": "Theme", "Doc": "" }, { - "CName": "cui_dropped_file_count", - "CsName": "DroppedFileCount", - "CsReturn": "int", + "CName": "cui_theme_get", + "CsName": "ThemeGet", + "CsReturn": "nint", "Params": [ { "CName": "ui", @@ -28509,16 +32848,20 @@ } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_theme *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_theme", + "Kind": "Record" + } }, - "Module": "Input (called by the platform layer)", - "Doc": "Files dropped this frame (dropzones claim theirs first)." + "Module": "Theme", + "Doc": "The active theme. Edit it to customize; changes apply next frame. Theme changes through cui_set_theme/cui_set_accent animate smoothly." }, { - "CName": "cui_dropped_file", - "CsName": "DroppedFile", - "CsReturn": "nint", + "CName": "cui_set_reduced_motion", + "CsName": "SetReducedMotion", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -28534,31 +32877,26 @@ } }, { - "CName": "index", - "CsName": "index", - "CsType": "int", + "CName": "reduced", + "CsName": "reduced", + "CsType": "byte", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" } } ], "ReturnType": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "void", + "Kind": "Void" }, - "Module": "Input (called by the platform layer)", + "Module": "Theme", "Doc": "" }, { - "CName": "cui_file_drag_active", - "CsName": "FileDragActive", - "CsReturn": "byte", + "CName": "cui_color_of", + "CsName": "ColorOf", + "CsReturn": "NativeColor", "Params": [ { "CName": "ui", @@ -28572,18 +32910,27 @@ "Kind": "Record" } } + }, + { + "CName": "c", + "CsName": "c", + "CsType": "NativeColor", + "Type": { + "Spelling": "cui_color", + "Kind": "Record" + } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_color", + "Kind": "Record" }, - "Module": "Input (called by the platform layer)", - "Doc": "files are being dragged over the window" + "Module": "Theme", + "Doc": "resolves tokens" }, { - "CName": "cui_set_platform", - "CsName": "SetPlatform", + "CName": "cui_set_strings", + "CsName": "SetStrings", "CsReturn": "void", "Params": [ { @@ -28600,14 +32947,14 @@ } }, { - "CName": "platform", - "CsName": "platform", - "CsType": "in NativePlatformIface", + "CName": "strings", + "CsName": "strings", + "CsType": "nint", "Type": { - "Spelling": "const cui_platform_iface *", + "Spelling": "const cui_strings *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_platform_iface", + "Spelling": "const cui_strings", "Kind": "Record", "IsConst": true } @@ -28618,13 +32965,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Input (called by the platform layer)", + "Module": "Theme", "Doc": "" }, { - "CName": "cui_get_cursor", - "CsName": "GetCursor", - "CsReturn": "Cursor", + "CName": "cui_get_strings", + "CsName": "GetStrings", + "CsReturn": "nint", "Params": [ { "CName": "ui", @@ -28641,16 +32988,21 @@ } ], "ReturnType": { - "Spelling": "cui_cursor", - "Kind": "Enum" + "Spelling": "const cui_strings *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_strings", + "Kind": "Record", + "IsConst": true + } }, - "Module": "Input (called by the platform layer)", - "Doc": "" + "Module": "Theme", + "Doc": "what was set, or NULL" }, { - "CName": "cui_key_pressed", - "CsName": "KeyPressed", - "CsReturn": "byte", + "CName": "cui_token_color", + "CsName": "TokenColor", + "CsReturn": "NativeColor", "Params": [ { "CName": "ui", @@ -28666,105 +33018,173 @@ } }, { - "CName": "key", - "CsName": "key", - "CsType": "Key", + "CName": "token", + "CsName": "token", + "CsType": "Token", "Type": { - "Spelling": "cui_key", + "Spelling": "cui_token", "Kind": "Enum" } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_color", + "Kind": "Record" }, - "Module": "Input (called by the platform layer)", - "Doc": "Queries, useful for app level shortcuts." + "Module": "Theme", + "Doc": "" }, { - "CName": "cui_key_down", - "CsName": "KeyDown", - "CsReturn": "byte", + "CName": "cui_accent_name", + "CsName": "AccentName", + "CsReturn": "nint", "Params": [ { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "accent", + "CsName": "accent", + "CsType": "Accent", "Type": { - "Spelling": "cui_ctx *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" - } + "Spelling": "cui_accent", + "Kind": "Enum" + } + } + ], + "ReturnType": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Module": "Theme", + "Doc": "" + }, + { + "CName": "cui_oklch", + "CsName": "Oklch", + "CsReturn": "NativeColor", + "Params": [ + { + "CName": "l", + "CsName": "l", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" } }, { - "CName": "key", - "CsName": "key", - "CsType": "Key", + "CName": "c", + "CsName": "c", + "CsType": "float", "Type": { - "Spelling": "cui_key", - "Kind": "Enum" + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "h_degrees", + "CsName": "hDegrees", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "alpha", + "CsName": "alpha", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_color", + "Kind": "Record" }, - "Module": "Input (called by the platform layer)", - "Doc": "" + "Module": "Theme", + "Doc": "Color helpers. Mixing is done in OKLab, like CSS color-mix(in oklab)." }, { - "CName": "cui_shortcut", - "CsName": "Shortcut", - "CsReturn": "byte", + "CName": "cui_mix", + "CsName": "Mix", + "CsReturn": "NativeColor", "Params": [ { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "a", + "CsName": "a", + "CsType": "NativeColor", "Type": { - "Spelling": "cui_ctx *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" - } + "Spelling": "cui_color", + "Kind": "Record" } }, { - "CName": "mods", - "CsName": "mods", - "CsType": "int", + "CName": "b", + "CsName": "b", + "CsType": "NativeColor", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_color", + "Kind": "Record" } }, { - "CName": "key", - "CsName": "key", - "CsType": "Key", + "CName": "t", + "CsName": "t", + "CsType": "float", "Type": { - "Spelling": "cui_key", - "Kind": "Enum" + "Spelling": "float", + "Kind": "Float" } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_color", + "Kind": "Record" }, - "Module": "Input (called by the platform layer)", - "Doc": "e.g. cui_shortcut(ui, CUI_MOD_PRIMARY, CUI_KEY_K)" + "Module": "Theme", + "Doc": "" }, { - "CName": "cui_key_mods", - "CsName": "KeyMods", - "CsReturn": "int", + "CName": "cui_alpha", + "CsName": "Alpha", + "CsReturn": "NativeColor", + "Params": [ + { + "CName": "c", + "CsName": "c", + "CsType": "NativeColor", + "Type": { + "Spelling": "cui_color", + "Kind": "Record" + } + }, + { + "CName": "alpha_multiplier", + "CsName": "alphaMultiplier", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + } + ], + "ReturnType": { + "Spelling": "cui_color", + "Kind": "Record" + }, + "Module": "Theme", + "Doc": "" + }, + { + "CName": "cui_font_load_memory", + "CsName": "FontLoadMemory", + "CsReturn": "Font", "Params": [ { "CName": "ui", @@ -28778,19 +33198,51 @@ "Kind": "Record" } } + }, + { + "CName": "data", + "CsName": "data", + "CsType": "nint", + "Type": { + "Spelling": "const void *", + "Kind": "Pointer", + "Element": { + "Spelling": "const void", + "Kind": "Void", + "IsConst": true + } + } + }, + { + "CName": "size", + "CsName": "size", + "CsType": "nuint", + "Type": { + "Spelling": "size_t", + "Kind": "ULongLong" + } + }, + { + "CName": "copy", + "CsName": "copy", + "CsType": "byte", + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + } } ], "ReturnType": { - "Spelling": "int", + "Spelling": "cui_font", "Kind": "Int" }, - "Module": "Input (called by the platform layer)", - "Doc": "" + "Module": "Fonts", + "Doc": "Load a TrueType/OpenType font. The data must stay alive if copy is false. Returns a font id, or -1 on failure." }, { - "CName": "cui_mouse_pos", - "CsName": "MousePos", - "CsReturn": "NativeVec2", + "CName": "cui_font_load_file", + "CsName": "FontLoadFile", + "CsReturn": "Font", "Params": [ { "CName": "ui", @@ -28804,19 +33256,33 @@ "Kind": "Record" } } + }, + { + "CName": "path", + "CsName": "path", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } } ], "ReturnType": { - "Spelling": "cui_vec2", - "Kind": "Record" + "Spelling": "cui_font", + "Kind": "Int" }, - "Module": "Input (called by the platform layer)", + "Module": "Fonts", "Doc": "" }, { - "CName": "cui_mouse_down", - "CsName": "MouseDown", - "CsReturn": "byte", + "CName": "cui_font_set_role", + "CsName": "FontSetRole", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -28832,26 +33298,35 @@ } }, { - "CName": "b", - "CsName": "b", - "CsType": "MouseButton", + "CName": "role", + "CsName": "role", + "CsType": "Font", "Type": { - "Spelling": "cui_mouse_button", - "Kind": "Enum" + "Spelling": "cui_font", + "Kind": "Int" + } + }, + { + "CName": "font", + "CsName": "font", + "CsType": "Font", + "Type": { + "Spelling": "cui_font", + "Kind": "Int" } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Input (called by the platform layer)", - "Doc": "" + "Module": "Fonts", + "Doc": "Replace one of the built-in roles (e.g. use your brand font as CUI_FONT_BODY)." }, { - "CName": "cui_mouse_clicked", - "CsName": "MouseClicked", - "CsReturn": "byte", + "CName": "cui_font_add_fallback", + "CsName": "FontAddFallback", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -28867,26 +33342,35 @@ } }, { - "CName": "b", - "CsName": "b", - "CsType": "MouseButton", + "CName": "font", + "CsName": "font", + "CsType": "Font", "Type": { - "Spelling": "cui_mouse_button", - "Kind": "Enum" + "Spelling": "cui_font", + "Kind": "Int" + } + }, + { + "CName": "fallback", + "CsName": "fallback", + "CsType": "Font", + "Type": { + "Spelling": "cui_font", + "Kind": "Int" } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Input (called by the platform layer)", - "Doc": "" + "Module": "Fonts", + "Doc": "Glyphs missing from `font` are looked up in `fallback` (e.g. CJK, emoji)." }, { - "CName": "cui_wants_keyboard", - "CsName": "WantsKeyboard", - "CsReturn": "byte", + "CName": "cui_measure_text", + "CsName": "MeasureText", + "CsReturn": "NativeTextMetrics", "Params": [ { "CName": "ui", @@ -28900,45 +33384,60 @@ "Kind": "Record" } } - } - ], - "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Module": "Input (called by the platform layer)", - "Doc": "True when a text field has keyboard focus (so the app should not treat typing as shortcuts)." - }, - { - "CName": "cui_wants_mouse", - "CsName": "WantsMouse", - "CsReturn": "byte", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "font", + "CsName": "font", + "CsType": "Font", + "Type": { + "Spelling": "cui_font", + "Kind": "Int" + } + }, + { + "CName": "size", + "CsName": "size", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } + }, + { + "CName": "len", + "CsName": "len", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_text_metrics", + "Kind": "Record" }, - "Module": "Input (called by the platform layer)", - "Doc": "" + "Module": "Fonts", + "Doc": "CUI_TEXT_SHAPING optionally shapes static RTL lines; see docs/integration.md. Container direction sets the paragraph base. Editing and explicit bidi formatting are unsupported; the shaper implements an experimental OpenType subset." }, { - "CName": "cui_set_theme", - "CsName": "SetTheme", - "CsReturn": "void", + "CName": "cui_box_begin", + "CsName": "BoxBegin", + "CsReturn": "uint", "Params": [ { "CName": "ui", @@ -28954,26 +33453,31 @@ } }, { - "CName": "mode", - "CsName": "mode", - "CsType": "Theme", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeBox", "Type": { - "Spelling": "cui_theme_mode", - "Kind": "Enum" + "Spelling": "const cui_box *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_box", + "Kind": "Record", + "IsConst": true + } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "cui_id", + "Kind": "UInt" }, - "Module": "Theme", + "Module": "Layout", "Doc": "" }, { - "CName": "cui_get_theme_mode", - "CsName": "GetThemeMode", - "CsReturn": "Theme", + "CName": "cui_box_end", + "CsName": "BoxEnd", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -28990,16 +33494,16 @@ } ], "ReturnType": { - "Spelling": "cui_theme_mode", - "Kind": "Enum" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Theme", + "Module": "Layout", "Doc": "" }, { - "CName": "cui_set_accent", - "CsName": "SetAccent", - "CsReturn": "void", + "CName": "cui_row_begin", + "CsName": "RowBegin", + "CsReturn": "uint", "Params": [ { "CName": "ui", @@ -29015,26 +33519,31 @@ } }, { - "CName": "accent", - "CsName": "accent", - "CsType": "Accent", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeBox", "Type": { - "Spelling": "cui_accent", - "Kind": "Enum" + "Spelling": "const cui_box *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_box", + "Kind": "Record", + "IsConst": true + } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "cui_id", + "Kind": "UInt" }, - "Module": "Theme", + "Module": "Layout", "Doc": "" }, { - "CName": "cui_get_accent", - "CsName": "GetAccent", - "CsReturn": "Accent", + "CName": "cui_column_begin", + "CsName": "ColumnBegin", + "CsReturn": "uint", "Params": [ { "CName": "ui", @@ -29048,19 +33557,33 @@ "Kind": "Record" } } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeBox", + "Type": { + "Spelling": "const cui_box *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_box", + "Kind": "Record", + "IsConst": true + } + } } ], "ReturnType": { - "Spelling": "cui_accent", - "Kind": "Enum" + "Spelling": "cui_id", + "Kind": "UInt" }, - "Module": "Theme", + "Module": "Layout", "Doc": "" }, { - "CName": "cui_theme_get", - "CsName": "ThemeGet", - "CsReturn": "nint", + "CName": "cui_spacer", + "CsName": "Spacer", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -29077,19 +33600,15 @@ } ], "ReturnType": { - "Spelling": "cui_theme *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_theme", - "Kind": "Record" - } + "Spelling": "void", + "Kind": "Void" }, - "Module": "Theme", - "Doc": "The active theme. Edit it to customize; changes apply next frame. Theme changes through cui_set_theme/cui_set_accent animate smoothly." + "Module": "Layout", + "Doc": "flexible space" }, { - "CName": "cui_set_reduced_motion", - "CsName": "SetReducedMotion", + "CName": "cui_gap", + "CsName": "Gap", "CsReturn": "void", "Params": [ { @@ -29106,12 +33625,12 @@ } }, { - "CName": "reduced", - "CsName": "reduced", - "CsType": "byte", + "CName": "size", + "CsName": "size", + "CsType": "float", "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "float", + "Kind": "Float" } } ], @@ -29119,13 +33638,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Theme", - "Doc": "" + "Module": "Layout", + "Doc": "fixed space" }, { - "CName": "cui_color_of", - "CsName": "ColorOf", - "CsReturn": "NativeColor", + "CName": "cui_separator", + "CsName": "Separator", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -29139,28 +33658,19 @@ "Kind": "Record" } } - }, - { - "CName": "c", - "CsName": "c", - "CsType": "NativeColor", - "Type": { - "Spelling": "cui_color", - "Kind": "Record" - } } ], "ReturnType": { - "Spelling": "cui_color", - "Kind": "Record" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Theme", - "Doc": "resolves tokens" + "Module": "Layout", + "Doc": "hairline, follows the parent direction" }, { - "CName": "cui_set_strings", - "CsName": "SetStrings", - "CsReturn": "void", + "CName": "cui_card_begin", + "CsName": "CardBegin", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -29176,14 +33686,14 @@ } }, { - "CName": "strings", - "CsName": "strings", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeCardOpts", "Type": { - "Spelling": "const cui_strings *", + "Spelling": "const cui_card_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_strings", + "Spelling": "const cui_card_opts", "Kind": "Record", "IsConst": true } @@ -29191,16 +33701,16 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Theme", - "Doc": "" + "Module": "Layout", + "Doc": "returns true when clicked (hoverable)" }, { - "CName": "cui_get_strings", - "CsName": "GetStrings", - "CsReturn": "nint", + "CName": "cui_card_end", + "CsName": "CardEnd", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -29217,21 +33727,16 @@ } ], "ReturnType": { - "Spelling": "const cui_strings *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_strings", - "Kind": "Record", - "IsConst": true - } + "Spelling": "void", + "Kind": "Void" }, - "Module": "Theme", - "Doc": "what was set, or NULL" + "Module": "Layout", + "Doc": "" }, { - "CName": "cui_token_color", - "CsName": "TokenColor", - "CsReturn": "NativeColor", + "CName": "cui_scroll_begin", + "CsName": "ScrollBegin", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -29247,84 +33752,88 @@ } }, { - "CName": "token", - "CsName": "token", - "CsType": "Token", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeScrollOpts", "Type": { - "Spelling": "cui_token", - "Kind": "Enum" + "Spelling": "const cui_scroll_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_scroll_opts", + "Kind": "Record", + "IsConst": true + } } } ], "ReturnType": { - "Spelling": "cui_color", - "Kind": "Record" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Theme", + "Module": "Layout", "Doc": "" }, { - "CName": "cui_accent_name", - "CsName": "AccentName", - "CsReturn": "nint", + "CName": "cui_scroll_end", + "CsName": "ScrollEnd", + "CsReturn": "void", "Params": [ { - "CName": "accent", - "CsName": "accent", - "CsType": "Accent", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "cui_accent", - "Kind": "Enum" + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } } } ], "ReturnType": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "void", + "Kind": "Void" }, - "Module": "Theme", + "Module": "Layout", "Doc": "" }, { - "CName": "cui_oklch", - "CsName": "Oklch", - "CsReturn": "NativeColor", + "CName": "cui_scroll_to", + "CsName": "ScrollTo", + "CsReturn": "void", "Params": [ { - "CName": "l", - "CsName": "l", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, - { - "CName": "c", - "CsName": "c", - "CsType": "float", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } } }, { - "CName": "h_degrees", - "CsName": "hDegrees", - "CsType": "float", + "CName": "scroll_id", + "CsName": "scrollId", + "CsType": "nint", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } }, { - "CName": "alpha", - "CsName": "alpha", + "CName": "y", + "CsName": "y", "CsType": "float", "Type": { "Spelling": "float", @@ -29333,87 +33842,135 @@ } ], "ReturnType": { - "Spelling": "cui_color", - "Kind": "Record" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Theme", - "Doc": "Color helpers. Mixing is done in OKLab, like CSS color-mix(in oklab)." + "Module": "Layout", + "Doc": "" }, { - "CName": "cui_mix", - "CsName": "Mix", - "CsReturn": "NativeColor", + "CName": "cui_split_begin", + "CsName": "SplitBegin", + "CsReturn": "void", "Params": [ { - "CName": "a", - "CsName": "a", - "CsType": "NativeColor", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "cui_color", - "Kind": "Record" + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } } }, { - "CName": "b", - "CsName": "b", - "CsType": "NativeColor", + "CName": "id", + "CsName": "id", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "ratio", + "CsName": "ratio", + "CsType": "ref float", "Type": { - "Spelling": "cui_color", - "Kind": "Record" + "Spelling": "float *", + "Kind": "Pointer", + "Element": { + "Spelling": "float", + "Kind": "Float" + } } }, { - "CName": "t", - "CsName": "t", - "CsType": "float", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeSplitOpts", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const cui_split_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_split_opts", + "Kind": "Record", + "IsConst": true + } } } ], "ReturnType": { - "Spelling": "cui_color", - "Kind": "Record" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Theme", - "Doc": "" + "Module": "Layout", + "Doc": "Open a split with pane minimums that can fit the available main axis." }, { - "CName": "cui_alpha", - "CsName": "Alpha", - "CsReturn": "NativeColor", + "CName": "cui_split_next", + "CsName": "SplitNext", + "CsReturn": "void", "Params": [ { - "CName": "c", - "CsName": "c", - "CsType": "NativeColor", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "cui_color", - "Kind": "Record" + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Layout", + "Doc": "" + }, + { + "CName": "cui_split_end", + "CsName": "SplitEnd", + "CsReturn": "void", + "Params": [ { - "CName": "alpha_multiplier", - "CsName": "alphaMultiplier", - "CsType": "float", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } } } ], "ReturnType": { - "Spelling": "cui_color", - "Kind": "Record" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Theme", + "Module": "Layout", "Doc": "" }, { - "CName": "cui_font_load_memory", - "CsName": "FontLoadMemory", - "CsReturn": "Font", + "CName": "cui_make_id", + "CsName": "MakeId", + "CsReturn": "uint", "Params": [ { "CName": "ui", @@ -29429,49 +33986,31 @@ } }, { - "CName": "data", - "CsName": "data", + "CName": "str", + "CsName": "str", "CsType": "nint", "Type": { - "Spelling": "const void *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const void", - "Kind": "Void", + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } } - }, - { - "CName": "size", - "CsName": "size", - "CsType": "nuint", - "Type": { - "Spelling": "size_t", - "Kind": "ULongLong" - } - }, - { - "CName": "copy", - "CsName": "copy", - "CsType": "byte", - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - } } ], "ReturnType": { - "Spelling": "cui_font", - "Kind": "Int" + "Spelling": "cui_id", + "Kind": "UInt" }, - "Module": "Fonts", - "Doc": "Load a TrueType/OpenType font. The data must stay alive if copy is false. Returns a font id, or -1 on failure." + "Module": "Identity", + "Doc": "" }, { - "CName": "cui_font_load_file", - "CsName": "FontLoadFile", - "CsReturn": "Font", + "CName": "cui_push_id", + "CsName": "PushId", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -29487,8 +34026,8 @@ } }, { - "CName": "path", - "CsName": "path", + "CName": "str", + "CsName": "str", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -29502,15 +34041,15 @@ } ], "ReturnType": { - "Spelling": "cui_font", - "Kind": "Int" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Fonts", + "Module": "Identity", "Doc": "" }, { - "CName": "cui_font_set_role", - "CsName": "FontSetRole", + "CName": "cui_push_id_int", + "CsName": "PushIdInt", "CsReturn": "void", "Params": [ { @@ -29527,20 +34066,11 @@ } }, { - "CName": "role", - "CsName": "role", - "CsType": "Font", - "Type": { - "Spelling": "cui_font", - "Kind": "Int" - } - }, - { - "CName": "font", - "CsName": "font", - "CsType": "Font", + "CName": "value", + "CsName": "value", + "CsType": "int", "Type": { - "Spelling": "cui_font", + "Spelling": "int", "Kind": "Int" } } @@ -29549,12 +34079,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Fonts", - "Doc": "Replace one of the built-in roles (e.g. use your brand font as CUI_FONT_BODY)." + "Module": "Identity", + "Doc": "" }, { - "CName": "cui_font_add_fallback", - "CsName": "FontAddFallback", + "CName": "cui_pop_id", + "CsName": "PopId", "CsReturn": "void", "Params": [ { @@ -29569,37 +34099,19 @@ "Kind": "Record" } } - }, - { - "CName": "font", - "CsName": "font", - "CsType": "Font", - "Type": { - "Spelling": "cui_font", - "Kind": "Int" - } - }, - { - "CName": "fallback", - "CsName": "fallback", - "CsType": "Font", - "Type": { - "Spelling": "cui_font", - "Kind": "Int" - } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Fonts", - "Doc": "Glyphs missing from `font` are looked up in `fallback` (e.g. CJK, emoji)." + "Module": "Identity", + "Doc": "" }, { - "CName": "cui_measure_text", - "CsName": "MeasureText", - "CsReturn": "NativeTextMetrics", + "CName": "cui_last_id", + "CsName": "LastId", + "CsReturn": "uint", "Params": [ { "CName": "ui", @@ -29613,60 +34125,80 @@ "Kind": "Record" } } - }, - { - "CName": "font", - "CsName": "font", - "CsType": "Font", - "Type": { - "Spelling": "cui_font", - "Kind": "Int" - } - }, + } + ], + "ReturnType": { + "Spelling": "cui_id", + "Kind": "UInt" + }, + "Module": "Identity", + "Doc": "The id and rectangle of the most recent component (for tooltips, popovers)." + }, + { + "CName": "cui_last_rect", + "CsName": "LastRect", + "CsReturn": "NativeRect", + "Params": [ { - "CName": "size", - "CsName": "size", - "CsType": "float", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } } - }, + } + ], + "ReturnType": { + "Spelling": "cui_rect", + "Kind": "Record" + }, + "Module": "Identity", + "Doc": "" + }, + { + "CName": "cui_get_rect", + "CsName": "GetRect", + "CsReturn": "NativeRect", + "Params": [ { - "CName": "text", - "CsName": "text", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "len", - "CsName": "len", - "CsType": "int", + "CName": "id", + "CsName": "id", + "CsType": "uint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_id", + "Kind": "UInt" } } ], "ReturnType": { - "Spelling": "cui_text_metrics", + "Spelling": "cui_rect", "Kind": "Record" }, - "Module": "Fonts", - "Doc": "CUI_TEXT_SHAPING optionally shapes static RTL lines; see docs/integration.md. Container direction sets the paragraph base. Editing and explicit bidi formatting are unsupported; the shaper implements an experimental OpenType subset." + "Module": "Identity", + "Doc": "Rectangle of any component or box id from the latest layout." }, { - "CName": "cui_box_begin", - "CsName": "BoxBegin", - "CsReturn": "uint", + "CName": "cui_last_hovered", + "CsName": "LastHovered", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -29680,32 +34212,44 @@ "Kind": "Record" } } - }, + } + ], + "ReturnType": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Module": "Identity", + "Doc": "" + }, + { + "CName": "cui_is_disabled", + "CsName": "IsDisabled", + "CsReturn": "byte", + "Params": [ { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeBox", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "const cui_box *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_box", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } } ], "ReturnType": { - "Spelling": "cui_id", - "Kind": "UInt" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Layout", + "Module": "Identity", "Doc": "" }, { - "CName": "cui_box_end", - "CsName": "BoxEnd", + "CName": "cui_push_disabled", + "CsName": "PushDisabled", "CsReturn": "void", "Params": [ { @@ -29720,19 +34264,28 @@ "Kind": "Record" } } + }, + { + "CName": "disabled", + "CsName": "disabled", + "CsType": "byte", + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Layout", + "Module": "Identity", "Doc": "" }, { - "CName": "cui_row_begin", - "CsName": "RowBegin", - "CsReturn": "uint", + "CName": "cui_pop_disabled", + "CsName": "PopDisabled", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -29746,33 +34299,19 @@ "Kind": "Record" } } - }, - { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeBox", - "Type": { - "Spelling": "const cui_box *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_box", - "Kind": "Record", - "IsConst": true - } - } } ], "ReturnType": { - "Spelling": "cui_id", - "Kind": "UInt" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Layout", + "Module": "Identity", "Doc": "" }, { - "CName": "cui_column_begin", - "CsName": "ColumnBegin", - "CsReturn": "uint", + "CName": "cui_text_ex", + "CsName": "Text", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -29787,15 +34326,29 @@ } } }, + { + "CName": "text", + "CsName": "text", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeBox", + "CsType": "in NativeTextOpts", "Type": { - "Spelling": "const cui_box *", + "Spelling": "const cui_text_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_box", + "Spelling": "const cui_text_opts", "Kind": "Record", "IsConst": true } @@ -29803,15 +34356,15 @@ } ], "ReturnType": { - "Spelling": "cui_id", - "Kind": "UInt" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Layout", + "Module": "Text", "Doc": "" }, { - "CName": "cui_spacer", - "CsName": "Spacer", + "CName": "cui_heading", + "CsName": "Heading", "CsReturn": "void", "Params": [ { @@ -29826,18 +34379,41 @@ "Kind": "Record" } } + }, + { + "CName": "text", + "CsName": "text", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "level", + "CsName": "level", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Layout", - "Doc": "flexible space" + "Module": "Text", + "Doc": "1..4" }, { - "CName": "cui_gap", - "CsName": "Gap", + "CName": "cui_label", + "CsName": "Label", "CsReturn": "void", "Params": [ { @@ -29854,12 +34430,17 @@ } }, { - "CName": "size", - "CsName": "size", - "CsType": "float", + "CName": "text", + "CsName": "text", + "CsType": "nint", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } } ], @@ -29867,12 +34448,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Layout", - "Doc": "fixed space" + "Module": "Text", + "Doc": "medium weight" }, { - "CName": "cui_separator", - "CsName": "Separator", + "CName": "cui_secondary", + "CsName": "Secondary", "CsReturn": "void", "Params": [ { @@ -29887,19 +34468,33 @@ "Kind": "Record" } } + }, + { + "CName": "text", + "CsName": "text", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Layout", - "Doc": "hairline, follows the parent direction" + "Module": "Text", + "Doc": "secondary color" }, { - "CName": "cui_card_begin", - "CsName": "CardBegin", - "CsReturn": "byte", + "CName": "cui_muted", + "CsName": "Muted", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -29915,30 +34510,30 @@ } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeCardOpts", + "CName": "text", + "CsName": "text", + "CsType": "nint", "Type": { - "Spelling": "const cui_card_opts *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_card_opts", - "Kind": "Record", + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Layout", - "Doc": "returns true when clicked (hoverable)" + "Module": "Text", + "Doc": "small, muted" }, { - "CName": "cui_card_end", - "CsName": "CardEnd", + "CName": "cui_code", + "CsName": "Code", "CsReturn": "void", "Params": [ { @@ -29953,18 +34548,32 @@ "Kind": "Record" } } + }, + { + "CName": "text", + "CsName": "text", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Layout", - "Doc": "" + "Module": "Text", + "Doc": "inline code" }, { - "CName": "cui_scroll_begin", - "CsName": "ScrollBegin", + "CName": "cui_kbd", + "CsName": "Kbd", "CsReturn": "void", "Params": [ { @@ -29981,15 +34590,15 @@ } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeScrollOpts", + "CName": "keys", + "CsName": "keys", + "CsType": "nint", "Type": { - "Spelling": "const cui_scroll_opts *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_scroll_opts", - "Kind": "Record", + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } } @@ -29999,13 +34608,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Layout", - "Doc": "" + "Module": "Text", + "Doc": "keyboard keycap, e.g. \"Ctrl K\"" }, { - "CName": "cui_scroll_end", - "CsName": "ScrollEnd", - "CsReturn": "void", + "CName": "cui_link", + "CsName": "Link", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -30019,18 +34628,32 @@ "Kind": "Record" } } + }, + { + "CName": "text", + "CsName": "text", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Layout", + "Module": "Text", "Doc": "" }, { - "CName": "cui_scroll_to", - "CsName": "ScrollTo", + "CName": "cui_icon", + "CsName": "Icon", "CsReturn": "void", "Params": [ { @@ -30047,8 +34670,8 @@ } }, { - "CName": "scroll_id", - "CsName": "scrollId", + "CName": "icon", + "CsName": "icon", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -30061,26 +34684,35 @@ } }, { - "CName": "y", - "CsName": "y", + "CName": "size", + "CsName": "size", "CsType": "float", "Type": { "Spelling": "float", "Kind": "Float" } + }, + { + "CName": "color", + "CsName": "color", + "CsType": "NativeColor", + "Type": { + "Spelling": "cui_color", + "Kind": "Record" + } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Layout", + "Module": "Text", "Doc": "" }, { - "CName": "cui_split_begin", - "CsName": "SplitBegin", - "CsReturn": "void", + "CName": "cui_button_ex", + "CsName": "Button", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -30096,8 +34728,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -30109,28 +34741,15 @@ } } }, - { - "CName": "ratio", - "CsName": "ratio", - "CsType": "ref float", - "Type": { - "Spelling": "float *", - "Kind": "Pointer", - "Element": { - "Spelling": "float", - "Kind": "Float" - } - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeSplitOpts", + "CsType": "in NativeButtonOpts", "Type": { - "Spelling": "const cui_split_opts *", + "Spelling": "const cui_button_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_split_opts", + "Spelling": "const cui_button_opts", "Kind": "Record", "IsConst": true } @@ -30138,16 +34757,16 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Layout", + "Module": "Buttons", "Doc": "" }, { - "CName": "cui_split_next", - "CsName": "SplitNext", - "CsReturn": "void", + "CName": "cui_icon_button_ex", + "CsName": "IconButton", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -30161,45 +34780,47 @@ "Kind": "Record" } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Layout", - "Doc": "" - }, - { - "CName": "cui_split_end", - "CsName": "SplitEnd", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "icon", + "CsName": "icon", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeButtonOpts", + "Type": { + "Spelling": "const cui_button_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_button_opts", + "Kind": "Record", + "IsConst": true } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Layout", - "Doc": "" + "Module": "Buttons", + "Doc": "Square/round button with only an icon. Give it a tooltip so it has a name." }, { - "CName": "cui_make_id", - "CsName": "MakeId", - "CsReturn": "uint", + "CName": "cui_segmented_ex", + "CsName": "Segmented", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -30215,8 +34836,8 @@ } }, { - "CName": "str", - "CsName": "str", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -30227,19 +34848,74 @@ "IsConst": true } } + }, + { + "CName": "items", + "CsName": "items", + "CsType": "nint", + "Type": { + "Spelling": "const char *const *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "index", + "CsName": "index", + "CsType": "ref int", + "Type": { + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeSegmentedOpts", + "Type": { + "Spelling": "const cui_segmented_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_segmented_opts", + "Kind": "Record", + "IsConst": true + } + } } ], "ReturnType": { - "Spelling": "cui_id", - "Kind": "UInt" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Identity", + "Module": "Buttons", "Doc": "" }, { - "CName": "cui_push_id", - "CsName": "PushId", - "CsReturn": "void", + "CName": "cui_checkbox_ex", + "CsName": "Checkbox", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -30255,8 +34931,8 @@ } }, { - "CName": "str", - "CsName": "str", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -30267,54 +34943,46 @@ "IsConst": true } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Identity", - "Doc": "" - }, - { - "CName": "cui_push_id_int", - "CsName": "PushIdInt", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "value", + "CsName": "value", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "_Bool *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "_Bool", + "Kind": "Bool" } } }, { - "CName": "value", - "CsName": "value", - "CsType": "int", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeCheckOpts", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const cui_check_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_check_opts", + "Kind": "Record", + "IsConst": true + } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Identity", + "Module": "Selection controls", "Doc": "" }, { - "CName": "cui_pop_id", - "CsName": "PopId", - "CsReturn": "void", + "CName": "cui_switch_ex", + "CsName": "Switch", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -30328,71 +34996,60 @@ "Kind": "Record" } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Identity", - "Doc": "" - }, - { - "CName": "cui_last_id", - "CsName": "LastId", - "CsReturn": "uint", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } - } - ], - "ReturnType": { - "Spelling": "cui_id", - "Kind": "UInt" - }, - "Module": "Identity", - "Doc": "The id and rectangle of the most recent component (for tooltips, popovers)." - }, - { - "CName": "cui_last_rect", - "CsName": "LastRect", - "CsReturn": "NativeRect", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "value", + "CsName": "value", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "_Bool *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "_Bool", + "Kind": "Bool" + } + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeCheckOpts", + "Type": { + "Spelling": "const cui_check_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_check_opts", + "Kind": "Record", + "IsConst": true } } } ], "ReturnType": { - "Spelling": "cui_rect", - "Kind": "Record" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Identity", + "Module": "Selection controls", "Doc": "" }, { - "CName": "cui_get_rect", - "CsName": "GetRect", - "CsReturn": "NativeRect", + "CName": "cui_radio_ex", + "CsName": "Radio", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -30408,37 +35065,52 @@ } }, { - "CName": "id", - "CsName": "id", - "CsType": "uint", + "CName": "label", + "CsName": "label", + "CsType": "nint", "Type": { - "Spelling": "cui_id", - "Kind": "UInt" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } - } - ], - "ReturnType": { - "Spelling": "cui_rect", - "Kind": "Record" - }, - "Module": "Identity", - "Doc": "Rectangle of any component or box id from the latest layout." - }, - { - "CName": "cui_last_hovered", - "CsName": "LastHovered", - "CsReturn": "byte", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "value", + "CsName": "value", + "CsType": "ref int", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "int", + "Kind": "Int" + } + } + }, + { + "CName": "option", + "CsName": "option", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeCheckOpts", + "Type": { + "Spelling": "const cui_check_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_check_opts", + "Kind": "Record", + "IsConst": true } } } @@ -30447,12 +35119,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Identity", + "Module": "Selection controls", "Doc": "" }, { - "CName": "cui_is_disabled", - "CsName": "IsDisabled", + "CName": "cui_radio_group", + "CsName": "RadioGroup", "CsReturn": "byte", "Params": [ { @@ -30467,80 +35139,74 @@ "Kind": "Record" } } - } - ], - "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Module": "Identity", - "Doc": "" - }, - { - "CName": "cui_push_disabled", - "CsName": "PushDisabled", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, { - "CName": "disabled", - "CsName": "disabled", - "CsType": "byte", + "CName": "items", + "CsName": "items", + "CsType": "nint", "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "const char *const *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Identity", - "Doc": "" - }, - { - "CName": "cui_pop_disabled", - "CsName": "PopDisabled", - "CsReturn": "void", - "Params": [ + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "index", + "CsName": "index", + "CsType": "ref int", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "int", + "Kind": "Int" } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Identity", + "Module": "Selection controls", "Doc": "" }, { - "CName": "cui_text_ex", - "CsName": "Text", - "CsReturn": "void", + "CName": "cui_slider_ex", + "CsName": "Slider", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -30556,8 +35222,8 @@ } }, { - "CName": "text", - "CsName": "text", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -30569,15 +35235,46 @@ } } }, + { + "CName": "value", + "CsName": "value", + "CsType": "ref float", + "Type": { + "Spelling": "float *", + "Kind": "Pointer", + "Element": { + "Spelling": "float", + "Kind": "Float" + } + } + }, + { + "CName": "min", + "CsName": "min", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "max", + "CsName": "max", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeTextOpts", + "CsType": "in NativeSliderOpts", "Type": { - "Spelling": "const cui_text_opts *", + "Spelling": "const cui_slider_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_text_opts", + "Spelling": "const cui_slider_opts", "Kind": "Record", "IsConst": true } @@ -30585,16 +35282,16 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Text", - "Doc": "" + "Module": "Selection controls", + "Doc": "Elastic slider: the track stretches like rubber when dragged past its ends." }, { - "CName": "cui_heading", - "CsName": "Heading", - "CsReturn": "void", + "CName": "cui_range_slider", + "CsName": "RangeSlider", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -30610,8 +35307,8 @@ } }, { - "CName": "text", - "CsName": "text", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -30624,66 +35321,61 @@ } }, { - "CName": "level", - "CsName": "level", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Text", - "Doc": "1..4" - }, - { - "CName": "cui_label", - "CsName": "Label", - "CsReturn": "void", - "Params": [ - { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "lo", + "CsName": "lo", + "CsType": "ref float", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "float *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "float", + "Kind": "Float" } } }, { - "CName": "text", - "CsName": "text", - "CsType": "nint", + "CName": "hi", + "CsName": "hi", + "CsType": "ref float", "Type": { - "Spelling": "const char *", + "Spelling": "float *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "float", + "Kind": "Float" } } + }, + { + "CName": "min", + "CsName": "min", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "max", + "CsName": "max", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Text", - "Doc": "medium weight" + "Module": "Selection controls", + "Doc": "Range slider with two non-crossing thumbs. Tab focuses the range, Space selects the other thumb, and the slider keys adjust the focused thumb." }, { - "CName": "cui_secondary", - "CsName": "Secondary", - "CsReturn": "void", + "CName": "cui_rating", + "CsName": "Rating", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -30699,8 +35391,8 @@ } }, { - "CName": "text", - "CsName": "text", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -30711,19 +35403,41 @@ "IsConst": true } } + }, + { + "CName": "value", + "CsName": "value", + "CsType": "ref int", + "Type": { + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } + } + }, + { + "CName": "max", + "CsName": "max", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Text", - "Doc": "secondary color" + "Module": "Selection controls", + "Doc": "" }, { - "CName": "cui_muted", - "CsName": "Muted", - "CsReturn": "void", + "CName": "cui_chip_ex", + "CsName": "Chip", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -30739,8 +35453,8 @@ } }, { - "CName": "text", - "CsName": "text", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -30751,59 +35465,46 @@ "IsConst": true } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Text", - "Doc": "small, muted" - }, - { - "CName": "cui_code", - "CsName": "Code", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "selected", + "CsName": "selected", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "_Bool *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "_Bool", + "Kind": "Bool" } } }, { - "CName": "text", - "CsName": "text", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeChipOpts", "Type": { - "Spelling": "const char *", + "Spelling": "const cui_chip_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", + "Spelling": "const cui_chip_opts", + "Kind": "Record", "IsConst": true } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Text", - "Doc": "inline code" + "Module": "Selection controls", + "Doc": "" }, { - "CName": "cui_kbd", - "CsName": "Kbd", - "CsReturn": "void", + "CName": "cui_input_ex", + "CsName": "Input", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -30819,8 +35520,8 @@ } }, { - "CName": "keys", - "CsName": "keys", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -30831,59 +35532,55 @@ "IsConst": true } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Text", - "Doc": "keyboard keycap, e.g. \"Ctrl K\"" - }, - { - "CName": "cui_link", - "CsName": "Link", - "CsReturn": "byte", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "buf", + "CsName": "buf", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "char", + "Kind": "Char_S" } } }, { - "CName": "text", - "CsName": "text", - "CsType": "nint", + "CName": "cap", + "CsName": "cap", + "CsType": "nuint", "Type": { - "Spelling": "const char *", + "Spelling": "size_t", + "Kind": "ULongLong" + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeInputOpts", + "Type": { + "Spelling": "const cui_input_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", + "Spelling": "const cui_input_opts", + "Kind": "Record", "IsConst": true } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Text", - "Doc": "" + "Module": "Text input", + "Doc": "Single line text field. Returns CUI_CHANGED / CUI_SUBMITTED (Enter) flags." }, { - "CName": "cui_icon", - "CsName": "Icon", - "CsReturn": "void", + "CName": "cui_textarea_ex", + "CsName": "Textarea", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -30899,8 +35596,8 @@ } }, { - "CName": "icon", - "CsName": "icon", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -30913,35 +35610,53 @@ } }, { - "CName": "size", - "CsName": "size", - "CsType": "float", + "CName": "buf", + "CsName": "buf", + "CsType": "nint", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "char *", + "Kind": "Pointer", + "Element": { + "Spelling": "char", + "Kind": "Char_S" + } } }, { - "CName": "color", - "CsName": "color", - "CsType": "NativeColor", + "CName": "cap", + "CsName": "cap", + "CsType": "nuint", "Type": { - "Spelling": "cui_color", - "Kind": "Record" + "Spelling": "size_t", + "Kind": "ULongLong" + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeInputOpts", + "Type": { + "Spelling": "const cui_input_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_input_opts", + "Kind": "Record", + "IsConst": true + } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Text", - "Doc": "" + "Module": "Text input", + "Doc": "Multi-line text area with word wrap. The wheel scrolls the text first and goes to the enclosing scroll view at the text area's edges." }, { - "CName": "cui_button_ex", - "CsName": "Button", - "CsReturn": "byte", + "CName": "cui_search_ex", + "CsName": "Search", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -30957,8 +35672,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -30970,15 +35685,37 @@ } } }, + { + "CName": "buf", + "CsName": "buf", + "CsType": "nint", + "Type": { + "Spelling": "char *", + "Kind": "Pointer", + "Element": { + "Spelling": "char", + "Kind": "Char_S" + } + } + }, + { + "CName": "cap", + "CsName": "cap", + "CsType": "nuint", + "Type": { + "Spelling": "size_t", + "Kind": "ULongLong" + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeButtonOpts", + "CsType": "in NativeInputOpts", "Type": { - "Spelling": "const cui_button_opts *", + "Spelling": "const cui_input_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_button_opts", + "Spelling": "const cui_input_opts", "Kind": "Record", "IsConst": true } @@ -30986,15 +35723,15 @@ } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Buttons", - "Doc": "" + "Module": "Text input", + "Doc": "Search field with a search icon and a clear button." }, { - "CName": "cui_icon_button_ex", - "CsName": "IconButton", + "CName": "cui_number_ex", + "CsName": "Number", "CsReturn": "byte", "Params": [ { @@ -31011,8 +35748,8 @@ } }, { - "CName": "icon", - "CsName": "icon", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -31024,15 +35761,46 @@ } } }, + { + "CName": "value", + "CsName": "value", + "CsType": "ref double", + "Type": { + "Spelling": "double *", + "Kind": "Pointer", + "Element": { + "Spelling": "double", + "Kind": "Double" + } + } + }, + { + "CName": "min", + "CsName": "min", + "CsType": "double", + "Type": { + "Spelling": "double", + "Kind": "Double" + } + }, + { + "CName": "max", + "CsName": "max", + "CsType": "double", + "Type": { + "Spelling": "double", + "Kind": "Double" + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeButtonOpts", + "CsType": "in NativeNumberOpts", "Type": { - "Spelling": "const cui_button_opts *", + "Spelling": "const cui_number_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_button_opts", + "Spelling": "const cui_number_opts", "Kind": "Record", "IsConst": true } @@ -31043,12 +35811,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Buttons", - "Doc": "Square/round button with only an icon. Give it a tooltip so it has a name." + "Module": "Text input", + "Doc": "A bounded number field. Only complete finite drafts update the value. Enter or loss of focus shows the accepted value using opts.decimals." }, { - "CName": "cui_segmented_ex", - "CsName": "Segmented", + "CName": "cui_select_ex", + "CsName": "Select", "CsReturn": "byte", "Params": [ { @@ -31122,12 +35890,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeSegmentedOpts", + "CsType": "in NativeSelectOpts", "Type": { - "Spelling": "const cui_segmented_opts *", + "Spelling": "const cui_select_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_segmented_opts", + "Spelling": "const cui_select_opts", "Kind": "Record", "IsConst": true } @@ -31138,12 +35906,24 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Buttons", + "Module": "Select, combobox, date picker", + "Doc": "Enter opens the list or picks the highlighted item. A searchable select returns focus to its trigger when its list closes." + }, + { + "CName": "cui_date_today", + "CsName": "DateToday", + "CsReturn": "NativeDate", + "Params": [], + "ReturnType": { + "Spelling": "cui_date", + "Kind": "Record" + }, + "Module": "Select, combobox, date picker", "Doc": "" }, { - "CName": "cui_checkbox_ex", - "CsName": "Checkbox", + "CName": "cui_calendar", + "CsName": "Calendar", "CsReturn": "byte", "Params": [ { @@ -31160,8 +35940,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -31174,29 +35954,15 @@ } }, { - "CName": "value", - "CsName": "value", - "CsType": "nint", - "Type": { - "Spelling": "_Bool *", - "Kind": "Pointer", - "Element": { - "Spelling": "_Bool", - "Kind": "Bool" - } - } - }, - { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeCheckOpts", + "CName": "value", + "CsName": "value", + "CsType": "ref NativeDate", "Type": { - "Spelling": "const cui_check_opts *", + "Spelling": "cui_date *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_check_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_date", + "Kind": "Record" } } } @@ -31205,12 +35971,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Selection controls", + "Module": "Select, combobox, date picker", "Doc": "" }, { - "CName": "cui_switch_ex", - "CsName": "Switch", + "CName": "cui_date_picker_ex", + "CsName": "DatePicker", "CsReturn": "byte", "Params": [ { @@ -31227,8 +35993,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -31243,25 +36009,25 @@ { "CName": "value", "CsName": "value", - "CsType": "nint", + "CsType": "ref NativeDate", "Type": { - "Spelling": "_Bool *", + "Spelling": "cui_date *", "Kind": "Pointer", "Element": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_date", + "Kind": "Record" } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeCheckOpts", + "CsType": "in NativeDateOpts", "Type": { - "Spelling": "const cui_check_opts *", + "Spelling": "const cui_date_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_check_opts", + "Spelling": "const cui_date_opts", "Kind": "Record", "IsConst": true } @@ -31272,12 +36038,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Selection controls", - "Doc": "" + "Module": "Select, combobox, date picker", + "Doc": "Draw the date trigger with a focus ring when reached by keyboard." }, { - "CName": "cui_radio_ex", - "CsName": "Radio", + "CName": "cui_color_picker", + "CsName": "ColorPicker", "CsReturn": "byte", "Params": [ { @@ -31294,8 +36060,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -31310,36 +36076,13 @@ { "CName": "value", "CsName": "value", - "CsType": "ref int", - "Type": { - "Spelling": "int *", - "Kind": "Pointer", - "Element": { - "Spelling": "int", - "Kind": "Int" - } - } - }, - { - "CName": "option", - "CsName": "option", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeCheckOpts", + "CsType": "ref NativeColor", "Type": { - "Spelling": "const cui_check_opts *", + "Spelling": "cui_color *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_check_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_color", + "Kind": "Record" } } } @@ -31348,12 +36091,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Selection controls", - "Doc": "" + "Module": "Select, combobox, date picker", + "Doc": "Draw the color trigger and reconcile its HSV controls with the caller's RGB." }, { - "CName": "cui_radio_group", - "CsName": "RadioGroup", + "CName": "cui_tabs_ex", + "CsName": "Tabs", "CsReturn": "byte", "Params": [ { @@ -31423,18 +36166,32 @@ "Kind": "Int" } } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeTabsOpts", + "Type": { + "Spelling": "const cui_tabs_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_tabs_opts", + "Kind": "Record", + "IsConst": true + } + } } ], "ReturnType": { "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Selection controls", + "Module": "Navigation", "Doc": "" }, { - "CName": "cui_slider_ex", - "CsName": "Slider", + "CName": "cui_nav_item_ex", + "CsName": "NavItem", "CsReturn": "byte", "Params": [ { @@ -31464,46 +36221,15 @@ } } }, - { - "CName": "value", - "CsName": "value", - "CsType": "ref float", - "Type": { - "Spelling": "float *", - "Kind": "Pointer", - "Element": { - "Spelling": "float", - "Kind": "Float" - } - } - }, - { - "CName": "min", - "CsName": "min", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, - { - "CName": "max", - "CsName": "max", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeSliderOpts", + "CsType": "in NativeNavOpts", "Type": { - "Spelling": "const cui_slider_opts *", + "Spelling": "const cui_nav_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_slider_opts", + "Spelling": "const cui_nav_opts", "Kind": "Record", "IsConst": true } @@ -31514,13 +36240,13 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Selection controls", - "Doc": "Elastic slider: the track stretches like rubber when dragged past its ends." + "Module": "Navigation", + "Doc": "" }, { - "CName": "cui_range_slider", - "CsName": "RangeSlider", - "CsReturn": "byte", + "CName": "cui_nav_section", + "CsName": "NavSection", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -31536,8 +36262,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "title", + "CsName": "title", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -31548,62 +36274,72 @@ "IsConst": true } } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Navigation", + "Doc": "" + }, + { + "CName": "cui_breadcrumb", + "CsName": "Breadcrumb", + "CsReturn": "int", + "Params": [ { - "CName": "lo", - "CsName": "lo", - "CsType": "ref float", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "float *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "hi", - "CsName": "hi", - "CsType": "ref float", + "CName": "items", + "CsName": "items", + "CsType": "nint", "Type": { - "Spelling": "float *", + "Spelling": "const char *const *", "Kind": "Pointer", "Element": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } } }, { - "CName": "min", - "CsName": "min", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, - { - "CName": "max", - "CsName": "max", - "CsType": "float", + "CName": "count", + "CsName": "count", + "CsType": "int", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "int", + "Kind": "Int" } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Selection controls", - "Doc": "" + "Module": "Navigation", + "Doc": "Ancestor links, which show keyboard focus. Returns the clicked index or -1." }, { - "CName": "cui_rating", - "CsName": "Rating", + "CName": "cui_pagination", + "CsName": "Pagination", "CsReturn": "byte", "Params": [ { @@ -31634,8 +36370,8 @@ } }, { - "CName": "value", - "CsName": "value", + "CName": "page", + "CsName": "page", "CsType": "ref int", "Type": { "Spelling": "int *", @@ -31647,8 +36383,8 @@ } }, { - "CName": "max", - "CsName": "max", + "CName": "page_count", + "CsName": "pageCount", "CsType": "int", "Type": { "Spelling": "int", @@ -31660,13 +36396,13 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Selection controls", - "Doc": "" + "Module": "Navigation", + "Doc": "Page buttons, which show keyboard focus; page is 0 based. The compact layout is chosen from the parent's inner width." }, { - "CName": "cui_chip_ex", - "CsName": "Chip", - "CsReturn": "byte", + "CName": "cui_stepper", + "CsName": "Stepper", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -31682,58 +36418,54 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "steps", + "CsName": "steps", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "const char *const *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } } }, { - "CName": "selected", - "CsName": "selected", - "CsType": "nint", + "CName": "count", + "CsName": "count", + "CsType": "int", "Type": { - "Spelling": "_Bool *", - "Kind": "Pointer", - "Element": { - "Spelling": "_Bool", - "Kind": "Bool" - } + "Spelling": "int", + "Kind": "Int" } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeChipOpts", + "CName": "current", + "CsName": "current", + "CsType": "int", "Type": { - "Spelling": "const cui_chip_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_chip_opts", - "Kind": "Record", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Selection controls", - "Doc": "" + "Module": "Navigation", + "Doc": "Process steps; labels collapse to fit the width of their own row." }, { - "CName": "cui_input_ex", - "CsName": "Input", - "CsReturn": "int", + "CName": "cui_popover_begin", + "CsName": "PopoverBegin", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -31763,52 +36495,56 @@ } }, { - "CName": "buf", - "CsName": "buf", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativePopoverOpts", "Type": { - "Spelling": "char *", + "Spelling": "const cui_popover_opts *", "Kind": "Pointer", "Element": { - "Spelling": "char", - "Kind": "Char_S" + "Spelling": "const cui_popover_opts", + "Kind": "Record", + "IsConst": true } } - }, - { - "CName": "cap", - "CsName": "cap", - "CsType": "nuint", - "Type": { - "Spelling": "size_t", - "Kind": "ULongLong" - } - }, + } + ], + "ReturnType": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Module": "Menus and popovers", + "Doc": "" + }, + { + "CName": "cui_popover_end", + "CsName": "PopoverEnd", + "CsReturn": "void", + "Params": [ { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeInputOpts", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "const cui_input_opts *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_input_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Text input", - "Doc": "Single line text field. Returns CUI_CHANGED / CUI_SUBMITTED (Enter) flags." + "Module": "Menus and popovers", + "Doc": "" }, { - "CName": "cui_textarea_ex", - "CsName": "Textarea", + "CName": "cui_tour_ex", + "CsName": "Tour", "CsReturn": "int", "Params": [ { @@ -31839,36 +36575,50 @@ } }, { - "CName": "buf", - "CsName": "buf", + "CName": "steps", + "CsName": "steps", "CsType": "nint", "Type": { - "Spelling": "char *", + "Spelling": "const cui_tour_step *", "Kind": "Pointer", "Element": { - "Spelling": "char", - "Kind": "Char_S" + "Spelling": "const cui_tour_step", + "Kind": "Record", + "IsConst": true } } }, { - "CName": "cap", - "CsName": "cap", - "CsType": "nuint", + "CName": "count", + "CsName": "count", + "CsType": "int", "Type": { - "Spelling": "size_t", - "Kind": "ULongLong" + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "step", + "CsName": "step", + "CsType": "ref int", + "Type": { + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeInputOpts", + "CsType": "in NativeTourOpts", "Type": { - "Spelling": "const cui_input_opts *", + "Spelling": "const cui_tour_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_input_opts", + "Spelling": "const cui_tour_opts", "Kind": "Record", "IsConst": true } @@ -31879,13 +36629,13 @@ "Spelling": "int", "Kind": "Int" }, - "Module": "Text input", - "Doc": "Multi-line text area with word wrap." + "Module": "Menus and popovers", + "Doc": "What happened this frame: one of CUI_TOUR_*." }, { - "CName": "cui_search_ex", - "CsName": "Search", - "CsReturn": "int", + "CName": "cui_popover_open", + "CsName": "PopoverOpen", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -31913,55 +36663,19 @@ "IsConst": true } } - }, - { - "CName": "buf", - "CsName": "buf", - "CsType": "nint", - "Type": { - "Spelling": "char *", - "Kind": "Pointer", - "Element": { - "Spelling": "char", - "Kind": "Char_S" - } - } - }, - { - "CName": "cap", - "CsName": "cap", - "CsType": "nuint", - "Type": { - "Spelling": "size_t", - "Kind": "ULongLong" - } - }, - { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeInputOpts", - "Type": { - "Spelling": "const cui_input_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_input_opts", - "Kind": "Record", - "IsConst": true - } - } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Text input", - "Doc": "Search field with a search icon and a clear button." + "Module": "Menus and popovers", + "Doc": "" }, { - "CName": "cui_number_ex", - "CsName": "Number", - "CsReturn": "byte", + "CName": "cui_popover_close", + "CsName": "PopoverClose", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -31989,63 +36703,58 @@ "IsConst": true } } - }, - { - "CName": "value", - "CsName": "value", - "CsType": "ref double", - "Type": { - "Spelling": "double *", - "Kind": "Pointer", - "Element": { - "Spelling": "double", - "Kind": "Double" - } - } - }, - { - "CName": "min", - "CsName": "min", - "CsType": "double", - "Type": { - "Spelling": "double", - "Kind": "Double" - } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Menus and popovers", + "Doc": "" + }, + { + "CName": "cui_popover_toggle", + "CsName": "PopoverToggle", + "CsReturn": "void", + "Params": [ { - "CName": "max", - "CsName": "max", - "CsType": "double", - "Type": { - "Spelling": "double", - "Kind": "Double" + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeNumberOpts", + "CName": "id", + "CsName": "id", + "CsType": "nint", "Type": { - "Spelling": "const cui_number_opts *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_number_opts", - "Kind": "Record", + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Text input", + "Module": "Menus and popovers", "Doc": "" }, { - "CName": "cui_select_ex", - "CsName": "Select", + "CName": "cui_popover_is_open", + "CsName": "PopoverIsOpen", "CsReturn": "byte", "Params": [ { @@ -32074,57 +36783,56 @@ "IsConst": true } } - }, + } + ], + "ReturnType": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Module": "Menus and popovers", + "Doc": "" + }, + { + "CName": "cui_menu_begin", + "CsName": "MenuBegin", + "CsReturn": "byte", + "Params": [ { - "CName": "items", - "CsName": "items", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const char *const *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "index", - "CsName": "index", - "CsType": "ref int", + "CName": "label", + "CsName": "label", + "CsType": "nint", "Type": { - "Spelling": "int *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeSelectOpts", + "CsType": "in NativeMenuOpts", "Type": { - "Spelling": "const cui_select_opts *", + "Spelling": "const cui_menu_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_select_opts", + "Spelling": "const cui_menu_opts", "Kind": "Record", "IsConst": true } @@ -32135,24 +36843,38 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Select, combobox, date picker", + "Module": "Menus and popovers", "Doc": "" }, { - "CName": "cui_date_today", - "CsName": "DateToday", - "CsReturn": "NativeDate", - "Params": [], + "CName": "cui_menu_end", + "CsName": "MenuEnd", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + } + ], "ReturnType": { - "Spelling": "cui_date", - "Kind": "Record" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Select, combobox, date picker", + "Module": "Menus and popovers", "Doc": "" }, { - "CName": "cui_calendar", - "CsName": "Calendar", + "CName": "cui_context_menu_begin", + "CsName": "ContextMenuBegin", "CsReturn": "byte", "Params": [ { @@ -32181,31 +36903,44 @@ "IsConst": true } } - }, + } + ], + "ReturnType": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Module": "Menus and popovers", + "Doc": "Context menu: opens on right click over the previous component." + }, + { + "CName": "cui_context_menu_end", + "CsName": "ContextMenuEnd", + "CsReturn": "void", + "Params": [ { - "CName": "value", - "CsName": "value", - "CsType": "ref NativeDate", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "cui_date *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "cui_date", + "Spelling": "cui_ctx", "Kind": "Record" } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Select, combobox, date picker", + "Module": "Menus and popovers", "Doc": "" }, { - "CName": "cui_date_picker_ex", - "CsName": "DatePicker", + "CName": "cui_menu_item_ex", + "CsName": "MenuItem", "CsReturn": "byte", "Params": [ { @@ -32222,8 +36957,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -32235,28 +36970,15 @@ } } }, - { - "CName": "value", - "CsName": "value", - "CsType": "ref NativeDate", - "Type": { - "Spelling": "cui_date *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_date", - "Kind": "Record" - } - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeDateOpts", + "CsType": "in NativeMenuItemOpts", "Type": { - "Spelling": "const cui_date_opts *", + "Spelling": "const cui_menu_item_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_date_opts", + "Spelling": "const cui_menu_item_opts", "Kind": "Record", "IsConst": true } @@ -32267,13 +36989,13 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Select, combobox, date picker", + "Module": "Menus and popovers", "Doc": "" }, { - "CName": "cui_color_picker", - "CsName": "ColorPicker", - "CsReturn": "byte", + "CName": "cui_menu_separator", + "CsName": "MenuSeparator", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -32287,46 +37009,59 @@ "Kind": "Record" } } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Menus and popovers", + "Doc": "" + }, + { + "CName": "cui_menu_label", + "CsName": "MenuLabel", + "CsReturn": "void", + "Params": [ { - "CName": "id", - "CsName": "id", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "value", - "CsName": "value", - "CsType": "ref NativeColor", + "CName": "text", + "CsName": "text", + "CsType": "nint", "Type": { - "Spelling": "cui_color *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_color", - "Kind": "Record" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Select, combobox, date picker", + "Module": "Menus and popovers", "Doc": "" }, { - "CName": "cui_tabs_ex", - "CsName": "Tabs", - "CsReturn": "byte", + "CName": "cui_tooltip", + "CsName": "Tooltip", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -32342,8 +37077,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -32354,57 +37089,69 @@ "IsConst": true } } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Menus and popovers", + "Doc": "Tooltip for the previous component. The first hover waits for the delay, measured in elapsed time even when the app sleeps between frames." + }, + { + "CName": "cui_dialog_begin", + "CsName": "DialogBegin", + "CsReturn": "byte", + "Params": [ { - "CName": "items", - "CsName": "items", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const char *const *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "count", - "CsName": "count", - "CsType": "int", + "CName": "title", + "CsName": "title", + "CsType": "nint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } }, { - "CName": "index", - "CsName": "index", - "CsType": "ref int", + "CName": "open", + "CsName": "open", + "CsType": "nint", "Type": { - "Spelling": "int *", + "Spelling": "_Bool *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeTabsOpts", + "CsType": "in NativeDialogOpts", "Type": { - "Spelling": "const cui_tabs_opts *", + "Spelling": "const cui_dialog_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_tabs_opts", + "Spelling": "const cui_dialog_opts", "Kind": "Record", "IsConst": true } @@ -32415,13 +37162,13 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Navigation", - "Doc": "" + "Module": "Dialogs, sheets, toasts, alerts", + "Doc": "Modal dialog. Shown while *open is true; closing sets it to false. Escape leaves a focused text field before it can dismiss the dialog." }, { - "CName": "cui_nav_item_ex", - "CsName": "NavItem", - "CsReturn": "byte", + "CName": "cui_dialog_end", + "CsName": "DialogEnd", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -32435,47 +37182,71 @@ "Kind": "Record" } } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Dialogs, sheets, toasts, alerts", + "Doc": "" + }, + { + "CName": "cui_dialog_footer_begin", + "CsName": "DialogFooterBegin", + "CsReturn": "void", + "Params": [ { - "CName": "label", - "CsName": "label", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Dialogs, sheets, toasts, alerts", + "Doc": "A right-aligned row for dialog actions." + }, + { + "CName": "cui_dialog_footer_end", + "CsName": "DialogFooterEnd", + "CsReturn": "void", + "Params": [ { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeNavOpts", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "const cui_nav_opts *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_nav_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Navigation", + "Module": "Dialogs, sheets, toasts, alerts", "Doc": "" }, { - "CName": "cui_nav_section", - "CsName": "NavSection", - "CsReturn": "void", + "CName": "cui_sheet_begin", + "CsName": "SheetBegin", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -32503,19 +37274,46 @@ "IsConst": true } } + }, + { + "CName": "open", + "CsName": "open", + "CsType": "nint", + "Type": { + "Spelling": "_Bool *", + "Kind": "Pointer", + "Element": { + "Spelling": "_Bool", + "Kind": "Bool" + } + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeSheetOpts", + "Type": { + "Spelling": "const cui_sheet_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_sheet_opts", + "Kind": "Record", + "IsConst": true + } + } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Navigation", + "Module": "Dialogs, sheets, toasts, alerts", "Doc": "" }, { - "CName": "cui_breadcrumb", - "CsName": "Breadcrumb", - "CsReturn": "int", + "CName": "cui_sheet_end", + "CsName": "SheetEnd", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -32529,47 +37327,19 @@ "Kind": "Record" } } - }, - { - "CName": "items", - "CsName": "items", - "CsType": "nint", - "Type": { - "Spelling": "const char *const *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - } - }, - { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Navigation", - "Doc": "returns clicked index or -1" + "Module": "Dialogs, sheets, toasts, alerts", + "Doc": "" }, { - "CName": "cui_pagination", - "CsName": "Pagination", - "CsReturn": "byte", + "CName": "cui_toast_ex", + "CsName": "Toast", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -32585,8 +37355,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "title", + "CsName": "title", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -32599,21 +37369,48 @@ } }, { - "CName": "page", - "CsName": "page", - "CsType": "ref int", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeToastOpts", "Type": { - "Spelling": "int *", + "Spelling": "const cui_toast_opts *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const cui_toast_opts", + "Kind": "Record", + "IsConst": true + } + } + } + ], + "ReturnType": { + "Spelling": "int", + "Kind": "Int" + }, + "Module": "Dialogs, sheets, toasts, alerts", + "Doc": "Queue a toast. Returns a handle; cui_toast_action_clicked(handle) tells whether its action button was pressed before the toast started closing." + }, + { + "CName": "cui_toast_action_clicked", + "CsName": "ToastActionClicked", + "CsReturn": "byte", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "page_count", - "CsName": "pageCount", + "CName": "handle", + "CsName": "handle", "CsType": "int", "Type": { "Spelling": "int", @@ -32625,12 +37422,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Navigation", - "Doc": "page is 0 based" + "Module": "Dialogs, sheets, toasts, alerts", + "Doc": "" }, { - "CName": "cui_stepper", - "CsName": "Stepper", + "CName": "cui_toast_dismiss", + "CsName": "ToastDismiss", "CsReturn": "void", "Params": [ { @@ -32647,36 +37444,8 @@ } }, { - "CName": "steps", - "CsName": "steps", - "CsType": "nint", - "Type": { - "Spelling": "const char *const *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - } - }, - { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "current", - "CsName": "current", + "CName": "handle", + "CsName": "handle", "CsType": "int", "Type": { "Spelling": "int", @@ -32688,12 +37457,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Navigation", + "Module": "Dialogs, sheets, toasts, alerts", "Doc": "" }, { - "CName": "cui_popover_begin", - "CsName": "PopoverBegin", + "CName": "cui_alert_ex", + "CsName": "Alert", "CsReturn": "byte", "Params": [ { @@ -32710,8 +37479,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "title", + "CsName": "title", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -32726,12 +37495,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativePopoverOpts", + "CsType": "in NativeAlertOpts", "Type": { - "Spelling": "const cui_popover_opts *", + "Spelling": "const cui_alert_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_popover_opts", + "Spelling": "const cui_alert_opts", "Kind": "Record", "IsConst": true } @@ -32742,12 +37511,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Menus and popovers", - "Doc": "" + "Module": "Dialogs, sheets, toasts, alerts", + "Doc": "Inline alert. Returns false once dismissed (when dismissible)." }, { - "CName": "cui_popover_end", - "CsName": "PopoverEnd", + "CName": "cui_progress_ex", + "CsName": "Progress", "CsReturn": "void", "Params": [ { @@ -32762,19 +37531,42 @@ "Kind": "Record" } } + }, + { + "CName": "value", + "CsName": "value", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeProgressOpts", + "Type": { + "Spelling": "const cui_progress_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_progress_opts", + "Kind": "Record", + "IsConst": true + } + } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Menus and popovers", + "Module": "Feedback and display", "Doc": "" }, { - "CName": "cui_tour_ex", - "CsName": "Tour", - "CsReturn": "int", + "CName": "cui_spinner_ex", + "CsName": "SpinnerEx", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -32790,80 +37582,74 @@ } }, { - "CName": "id", - "CsName": "id", - "CsType": "nint", + "CName": "size", + "CsName": "size", + "CsType": "float", "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "float", + "Kind": "Float" } }, { - "CName": "steps", - "CsName": "steps", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeSpinnerOpts", "Type": { - "Spelling": "const cui_tour_step *", + "Spelling": "const cui_spinner_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_tour_step", + "Spelling": "const cui_spinner_opts", "Kind": "Record", "IsConst": true } } - }, - { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Feedback and display", + "Doc": "most styles are square; upload and download are 25/32 as wide as tall, transfer 50/32, bounce 40/28, scan 28/32" + }, + { + "CName": "cui_spinner", + "CsName": "Spinner", + "CsReturn": "void", + "Params": [ { - "CName": "step", - "CsName": "step", - "CsType": "ref int", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "int *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeTourOpts", + "CName": "size", + "CsName": "size", + "CsType": "float", "Type": { - "Spelling": "const cui_tour_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_tour_opts", - "Kind": "Record", - "IsConst": true - } + "Spelling": "float", + "Kind": "Float" } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Menus and popovers", - "Doc": "What happened this frame: one of CUI_TOUR_*." + "Module": "Feedback and display", + "Doc": "" }, { - "CName": "cui_popover_open", - "CsName": "PopoverOpen", + "CName": "cui_skeleton", + "CsName": "Skeleton", "CsReturn": "void", "Params": [ { @@ -32880,17 +37666,21 @@ } }, { - "CName": "id", - "CsName": "id", - "CsType": "nint", + "CName": "width", + "CsName": "width", + "CsType": "NativeSize", "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "cui_size", + "Kind": "Record" + } + }, + { + "CName": "height", + "CsName": "height", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" } } ], @@ -32898,12 +37688,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Menus and popovers", + "Module": "Feedback and display", "Doc": "" }, { - "CName": "cui_popover_close", - "CsName": "PopoverClose", + "CName": "cui_skeleton_group_begin_ex", + "CsName": "SkeletonGroupBegin", "CsReturn": "void", "Params": [ { @@ -32920,15 +37710,15 @@ } }, { - "CName": "id", - "CsName": "id", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeSkeletonGroupOpts", "Type": { - "Spelling": "const char *", + "Spelling": "const cui_skeleton_group_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", + "Spelling": "const cui_skeleton_group_opts", + "Kind": "Record", "IsConst": true } } @@ -32938,12 +37728,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Menus and popovers", + "Module": "Feedback and display", "Doc": "" }, { - "CName": "cui_popover_toggle", - "CsName": "PopoverToggle", + "CName": "cui_skeleton_group_end", + "CsName": "SkeletonGroupEnd", "CsReturn": "void", "Params": [ { @@ -32958,33 +37748,19 @@ "Kind": "Record" } } - }, - { - "CName": "id", - "CsName": "id", - "CsType": "nint", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Menus and popovers", + "Module": "Feedback and display", "Doc": "" }, { - "CName": "cui_popover_is_open", - "CsName": "PopoverIsOpen", - "CsReturn": "byte", + "CName": "cui_badge_ex", + "CsName": "Badge", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -33000,8 +37776,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -33012,19 +37788,33 @@ "IsConst": true } } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeBadgeOpts", + "Type": { + "Spelling": "const cui_badge_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_badge_opts", + "Kind": "Record", + "IsConst": true + } + } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Menus and popovers", + "Module": "Feedback and display", "Doc": "" }, { - "CName": "cui_menu_begin", - "CsName": "MenuBegin", - "CsReturn": "byte", + "CName": "cui_avatar_ex", + "CsName": "Avatar", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -33040,8 +37830,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "name", + "CsName": "name", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -33056,12 +37846,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeMenuOpts", + "CsType": "in NativeAvatarOpts", "Type": { - "Spelling": "const cui_menu_opts *", + "Spelling": "const cui_avatar_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_menu_opts", + "Spelling": "const cui_avatar_opts", "Kind": "Record", "IsConst": true } @@ -33069,15 +37859,15 @@ } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Menus and popovers", + "Module": "Feedback and display", "Doc": "" }, { - "CName": "cui_menu_end", - "CsName": "MenuEnd", + "CName": "cui_avatar_group", + "CsName": "AvatarGroup", "CsReturn": "void", "Params": [ { @@ -33092,18 +37882,64 @@ "Kind": "Record" } } + }, + { + "CName": "names", + "CsName": "names", + "CsType": "nint", + "Type": { + "Spelling": "const char *const *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "max_visible", + "CsName": "maxVisible", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "size", + "CsName": "size", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Menus and popovers", + "Module": "Feedback and display", "Doc": "" }, { - "CName": "cui_context_menu_begin", - "CsName": "ContextMenuBegin", + "CName": "cui_empty_state_ex", + "CsName": "EmptyState", "CsReturn": "byte", "Params": [ { @@ -33120,8 +37956,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "title", + "CsName": "title", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -33132,18 +37968,32 @@ "IsConst": true } } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeEmptyOpts", + "Type": { + "Spelling": "const cui_empty_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_empty_opts", + "Kind": "Record", + "IsConst": true + } + } } ], "ReturnType": { "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Menus and popovers", - "Doc": "Context menu: opens on right click over the previous component." + "Module": "Feedback and display", + "Doc": "Empty state. Returns true when its action button is clicked." }, { - "CName": "cui_context_menu_end", - "CsName": "ContextMenuEnd", + "CName": "cui_metric_ex", + "CsName": "Metric", "CsReturn": "void", "Params": [ { @@ -33158,36 +38008,24 @@ "Kind": "Record" } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Menus and popovers", - "Doc": "" - }, - { - "CName": "cui_menu_item_ex", - "CsName": "MenuItem", - "CsReturn": "byte", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, { - "CName": "label", - "CsName": "label", + "CName": "value", + "CsName": "value", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -33202,12 +38040,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeMenuItemOpts", + "CsType": "in NativeMetricOpts", "Type": { - "Spelling": "const cui_menu_item_opts *", + "Spelling": "const cui_metric_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_menu_item_opts", + "Spelling": "const cui_metric_opts", "Kind": "Record", "IsConst": true } @@ -33215,15 +38053,15 @@ } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Menus and popovers", + "Module": "Feedback and display", "Doc": "" }, { - "CName": "cui_menu_separator", - "CsName": "MenuSeparator", + "CName": "cui_meter", + "CsName": "Meter", "CsReturn": "void", "Params": [ { @@ -33238,19 +38076,65 @@ "Kind": "Record" } } + }, + { + "CName": "label", + "CsName": "label", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "used", + "CsName": "used", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "total", + "CsName": "total", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "unit", + "CsName": "unit", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Menus and popovers", + "Module": "Feedback and display", "Doc": "" }, { - "CName": "cui_menu_label", - "CsName": "MenuLabel", - "CsReturn": "void", + "CName": "cui_accordion_begin", + "CsName": "AccordionBegin", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -33266,8 +38150,8 @@ } }, { - "CName": "text", - "CsName": "text", + "CName": "title", + "CsName": "title", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -33278,18 +38162,31 @@ "IsConst": true } } + }, + { + "CName": "open", + "CsName": "open", + "CsType": "nint", + "Type": { + "Spelling": "_Bool *", + "Kind": "Pointer", + "Element": { + "Spelling": "_Bool", + "Kind": "Bool" + } + } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Menus and popovers", - "Doc": "" + "Module": "Data display", + "Doc": "Accordion / disclosure. Content animates its height." }, { - "CName": "cui_tooltip", - "CsName": "Tooltip", + "CName": "cui_accordion_end", + "CsName": "AccordionEnd", "CsReturn": "void", "Params": [ { @@ -33304,32 +38201,18 @@ "Kind": "Record" } } - }, - { - "CName": "text", - "CsName": "text", - "CsType": "nint", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Menus and popovers", - "Doc": "Tooltip for the previous component, shown after a short hover delay." + "Module": "Data display", + "Doc": "" }, { - "CName": "cui_dialog_begin", - "CsName": "DialogBegin", + "CName": "cui_tree_begin", + "CsName": "TreeBegin", "CsReturn": "byte", "Params": [ { @@ -33346,8 +38229,8 @@ } }, { - "CName": "title", - "CsName": "title", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -33375,12 +38258,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeDialogOpts", + "CsType": "in NativeTreeOpts", "Type": { - "Spelling": "const cui_dialog_opts *", + "Spelling": "const cui_tree_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_dialog_opts", + "Spelling": "const cui_tree_opts", "Kind": "Record", "IsConst": true } @@ -33391,12 +38274,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Dialogs, sheets, toasts, alerts", - "Doc": "Modal dialog. Shown while *open is true; closing sets it to false." + "Module": "Data display", + "Doc": "" }, { - "CName": "cui_dialog_end", - "CsName": "DialogEnd", + "CName": "cui_tree_end", + "CsName": "TreeEnd", "CsReturn": "void", "Params": [ { @@ -33417,13 +38300,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Dialogs, sheets, toasts, alerts", + "Module": "Data display", "Doc": "" }, { - "CName": "cui_dialog_footer_begin", - "CsName": "DialogFooterBegin", - "CsReturn": "void", + "CName": "cui_tree_clicked", + "CsName": "TreeClicked", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -33440,16 +38323,16 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Dialogs, sheets, toasts, alerts", - "Doc": "A right-aligned row for dialog actions." + "Module": "Data display", + "Doc": "the node created by the last cui_tree_begin was clicked" }, { - "CName": "cui_dialog_footer_end", - "CsName": "DialogFooterEnd", - "CsReturn": "void", + "CName": "cui_list_item_ex", + "CsName": "ListItem", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -33463,19 +38346,47 @@ "Kind": "Record" } } + }, + { + "CName": "title", + "CsName": "title", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeListItemOpts", + "Type": { + "Spelling": "const cui_list_item_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_list_item_opts", + "Kind": "Record", + "IsConst": true + } + } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Dialogs, sheets, toasts, alerts", + "Module": "Data display", "Doc": "" }, { - "CName": "cui_sheet_begin", - "CsName": "SheetBegin", - "CsReturn": "byte", + "CName": "cui_virtual_list_begin", + "CsName": "VirtualListBegin", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -33491,8 +38402,8 @@ } }, { - "CName": "title", - "CsName": "title", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -33505,43 +38416,69 @@ } }, { - "CName": "open", - "CsName": "open", - "CsType": "nint", + "CName": "count", + "CsName": "count", + "CsType": "int", "Type": { - "Spelling": "_Bool *", + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "row_height", + "CsName": "rowHeight", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "height", + "CsName": "height", + "CsType": "NativeSize", + "Type": { + "Spelling": "cui_size", + "Kind": "Record" + } + }, + { + "CName": "first", + "CsName": "first", + "CsType": "ref int", + "Type": { + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" } } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeSheetOpts", + "CName": "last", + "CsName": "last", + "CsType": "ref int", "Type": { - "Spelling": "const cui_sheet_opts *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_sheet_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "int", + "Kind": "Int" } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Dialogs, sheets, toasts, alerts", - "Doc": "" + "Module": "Data display", + "Doc": "Virtual list: only the visible rows are built, so lists with a million rows stay fast. Fills first/last with the visible range for this row count." }, { - "CName": "cui_sheet_end", - "CsName": "SheetEnd", + "CName": "cui_virtual_list_end", + "CsName": "VirtualListEnd", "CsReturn": "void", "Params": [ { @@ -33562,13 +38499,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Dialogs, sheets, toasts, alerts", + "Module": "Data display", "Doc": "" }, { - "CName": "cui_toast_ex", - "CsName": "Toast", - "CsReturn": "int", + "CName": "cui_table_begin_ex", + "CsName": "TableBegin", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -33584,8 +38521,8 @@ } }, { - "CName": "title", - "CsName": "title", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -33597,15 +38534,38 @@ } } }, + { + "CName": "columns", + "CsName": "columns", + "CsType": "nint", + "Type": { + "Spelling": "const cui_table_column *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_table_column", + "Kind": "Record", + "IsConst": true + } + } + }, + { + "CName": "column_count", + "CsName": "columnCount", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeToastOpts", + "CsType": "in NativeTableOpts", "Type": { - "Spelling": "const cui_toast_opts *", + "Spelling": "const cui_table_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_toast_opts", + "Spelling": "const cui_table_opts", "Kind": "Record", "IsConst": true } @@ -33613,15 +38573,15 @@ } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Dialogs, sheets, toasts, alerts", - "Doc": "Queue a toast. Returns a handle; cui_toast_action_clicked(handle) tells whether its action button was pressed." + "Module": "Data display", + "Doc": "Begin a table with keyboard focus indicators for its sortable headers." }, { - "CName": "cui_toast_action_clicked", - "CsName": "ToastActionClicked", + "CName": "cui_table_row", + "CsName": "TableRow", "CsReturn": "byte", "Params": [ { @@ -33638,12 +38598,12 @@ } }, { - "CName": "handle", - "CsName": "handle", - "CsType": "int", + "CName": "selected", + "CsName": "selected", + "CsType": "byte", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" } } ], @@ -33651,12 +38611,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Dialogs, sheets, toasts, alerts", - "Doc": "" + "Module": "Data display", + "Doc": "Begin a row. Returns true when the row is clicked." }, { - "CName": "cui_toast_dismiss", - "CsName": "ToastDismiss", + "CName": "cui_table_cell", + "CsName": "TableCell", "CsReturn": "void", "Params": [ { @@ -33671,28 +38631,19 @@ "Kind": "Record" } } - }, - { - "CName": "handle", - "CsName": "handle", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Dialogs, sheets, toasts, alerts", - "Doc": "" + "Module": "Data display", + "Doc": "Next cell; put any components inside, or use cui_table_cell_text." }, { - "CName": "cui_alert_ex", - "CsName": "Alert", - "CsReturn": "byte", + "CName": "cui_table_cell_text", + "CsName": "TableCellText", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -33708,8 +38659,8 @@ } }, { - "CName": "title", - "CsName": "title", + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -33720,32 +38671,44 @@ "IsConst": true } } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Data display", + "Doc": "Part of cui_table_cell — Next cell; put any components inside, or use cui_table_cell_text." + }, + { + "CName": "cui_table_end", + "CsName": "TableEnd", + "CsReturn": "void", + "Params": [ { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeAlertOpts", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "const cui_alert_opts *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_alert_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Dialogs, sheets, toasts, alerts", - "Doc": "Inline alert. Returns false once dismissed (when dismissible)." + "Module": "Data display", + "Doc": "" }, { - "CName": "cui_progress_ex", - "CsName": "Progress", + "CName": "cui_line_chart_ex", + "CsName": "LineChart", "CsReturn": "void", "Params": [ { @@ -33762,23 +38725,51 @@ } }, { - "CName": "value", - "CsName": "value", - "CsType": "float", + "CName": "id", + "CsName": "id", + "CsType": "nint", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "series", + "CsName": "series", + "CsType": "nint", + "Type": { + "Spelling": "const cui_series *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_series", + "Kind": "Record", + "IsConst": true + } + } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeProgressOpts", + "CsType": "in NativeChartOpts", "Type": { - "Spelling": "const cui_progress_opts *", + "Spelling": "const cui_chart_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_progress_opts", + "Spelling": "const cui_chart_opts", "Kind": "Record", "IsConst": true } @@ -33789,12 +38780,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Feedback and display", + "Module": "Data display", "Doc": "" }, { - "CName": "cui_spinner", - "CsName": "Spinner", + "CName": "cui_bar_chart_ex", + "CsName": "BarChart", "CsReturn": "void", "Params": [ { @@ -33811,56 +38802,54 @@ } }, { - "CName": "size", - "CsName": "size", - "CsType": "float", + "CName": "id", + "CsName": "id", + "CsType": "nint", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Feedback and display", - "Doc": "" - }, - { - "CName": "cui_skeleton", - "CsName": "Skeleton", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "series", + "CsName": "series", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const cui_series *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const cui_series", + "Kind": "Record", + "IsConst": true } } }, { - "CName": "width", - "CsName": "width", - "CsType": "NativeSize", + "CName": "count", + "CsName": "count", + "CsType": "int", "Type": { - "Spelling": "cui_size", - "Kind": "Record" + "Spelling": "int", + "Kind": "Int" } }, { - "CName": "height", - "CsName": "height", - "CsType": "float", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeChartOpts", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const cui_chart_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_chart_opts", + "Kind": "Record", + "IsConst": true + } } } ], @@ -33868,12 +38857,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Feedback and display", + "Module": "Data display", "Doc": "" }, { - "CName": "cui_badge_ex", - "CsName": "Badge", + "CName": "cui_donut_chart_ex", + "CsName": "DonutChart", "CsReturn": "void", "Params": [ { @@ -33890,8 +38879,8 @@ } }, { - "CName": "text", - "CsName": "text", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -33903,15 +38892,57 @@ } } }, + { + "CName": "values", + "CsName": "values", + "CsType": "nint", + "Type": { + "Spelling": "const float *", + "Kind": "Pointer", + "Element": { + "Spelling": "const float", + "Kind": "Float", + "IsConst": true + } + } + }, + { + "CName": "labels", + "CsName": "labels", + "CsType": "nint", + "Type": { + "Spelling": "const char *const *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeBadgeOpts", + "CsType": "in NativeChartOpts", "Type": { - "Spelling": "const cui_badge_opts *", + "Spelling": "const cui_chart_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_badge_opts", + "Spelling": "const cui_chart_opts", "Kind": "Record", "IsConst": true } @@ -33922,12 +38953,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Feedback and display", + "Module": "Data display", "Doc": "" }, { - "CName": "cui_avatar_ex", - "CsName": "Avatar", + "CName": "cui_sparkline", + "CsName": "Sparkline", "CsReturn": "void", "Params": [ { @@ -33944,31 +38975,53 @@ } }, { - "CName": "name", - "CsName": "name", + "CName": "values", + "CsName": "values", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "const float *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", + "Spelling": "const float", + "Kind": "Float", "IsConst": true } } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeAvatarOpts", + "CName": "count", + "CsName": "count", + "CsType": "int", "Type": { - "Spelling": "const cui_avatar_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_avatar_opts", - "Kind": "Record", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "width", + "CsName": "width", + "CsType": "NativeSize", + "Type": { + "Spelling": "cui_size", + "Kind": "Record" + } + }, + { + "CName": "height", + "CsName": "height", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "color", + "CsName": "color", + "CsType": "NativeColor", + "Type": { + "Spelling": "cui_color", + "Kind": "Record" } } ], @@ -33976,12 +39029,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Feedback and display", + "Module": "Data display", "Doc": "" }, { - "CName": "cui_avatar_group", - "CsName": "AvatarGroup", + "CName": "cui_gauge", + "CsName": "Gauge", "CsReturn": "void", "Params": [ { @@ -33998,40 +39051,26 @@ } }, { - "CName": "names", - "CsName": "names", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { - "Spelling": "const char *const *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "max_visible", - "CsName": "maxVisible", - "CsType": "int", + "CName": "value", + "CsName": "value", + "CsType": "float", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "float", + "Kind": "Float" } }, { @@ -34048,13 +39087,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Feedback and display", + "Module": "Data display", "Doc": "" }, { - "CName": "cui_empty_state_ex", - "CsName": "EmptyState", - "CsReturn": "byte", + "CName": "cui_pattern_meter_ex", + "CsName": "PatternMeter", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -34070,8 +39109,8 @@ } }, { - "CName": "title", - "CsName": "title", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -34083,15 +39122,38 @@ } } }, + { + "CName": "parts", + "CsName": "parts", + "CsType": "nint", + "Type": { + "Spelling": "const cui_meter_part *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_meter_part", + "Kind": "Record", + "IsConst": true + } + } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeEmptyOpts", + "CsType": "in NativePatternMeterOpts", "Type": { - "Spelling": "const cui_empty_opts *", + "Spelling": "const cui_pattern_meter_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_empty_opts", + "Spelling": "const cui_pattern_meter_opts", "Kind": "Record", "IsConst": true } @@ -34099,16 +39161,16 @@ } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Feedback and display", - "Doc": "Empty state. Returns true when its action button is clicked." + "Module": "Data display", + "Doc": "" }, { - "CName": "cui_metric_ex", - "CsName": "Metric", - "CsReturn": "void", + "CName": "cui_image_create", + "CsName": "ImageCreate", + "CsReturn": "nuint", "Params": [ { "CName": "ui", @@ -34124,59 +39186,49 @@ } }, { - "CName": "label", - "CsName": "label", - "CsType": "nint", + "CName": "w", + "CsName": "w", + "CsType": "int", "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" } }, { - "CName": "value", - "CsName": "value", - "CsType": "nint", + "CName": "h", + "CsName": "h", + "CsType": "int", "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeMetricOpts", + "CName": "rgba", + "CsName": "rgba", + "CsType": "nint", "Type": { - "Spelling": "const cui_metric_opts *", + "Spelling": "const void *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_metric_opts", - "Kind": "Record", + "Spelling": "const void", + "Kind": "Void", "IsConst": true } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "cui_texture", + "Kind": "ULongLong" }, - "Module": "Feedback and display", - "Doc": "" + "Module": "Data display", + "Doc": "Images" }, { - "CName": "cui_meter", - "CsName": "Meter", - "CsReturn": "void", + "CName": "cui_image_load", + "CsName": "ImageLoad", + "CsReturn": "nuint", "Params": [ { "CName": "ui", @@ -34192,8 +39244,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "path", + "CsName": "path", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -34206,49 +39258,43 @@ } }, { - "CName": "used", - "CsName": "used", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, - { - "CName": "total", - "CsName": "total", - "CsType": "float", + "CName": "w", + "CsName": "w", + "CsType": "ref int", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } } }, { - "CName": "unit", - "CsName": "unit", - "CsType": "nint", + "CName": "h", + "CsName": "h", + "CsType": "ref int", "Type": { - "Spelling": "const char *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "int", + "Kind": "Int" } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "cui_texture", + "Kind": "ULongLong" }, - "Module": "Feedback and display", - "Doc": "" + "Module": "Data display", + "Doc": "UTF-8 path, PNG/JPEG via stb_image" }, { - "CName": "cui_accordion_begin", - "CsName": "AccordionBegin", - "CsReturn": "byte", + "CName": "cui_image_destroy", + "CsName": "ImageDestroy", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -34264,43 +39310,25 @@ } }, { - "CName": "title", - "CsName": "title", - "CsType": "nint", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - }, - { - "CName": "open", - "CsName": "open", - "CsType": "nint", + "CName": "tex", + "CsName": "tex", + "CsType": "nuint", "Type": { - "Spelling": "_Bool *", - "Kind": "Pointer", - "Element": { - "Spelling": "_Bool", - "Kind": "Bool" - } + "Spelling": "cui_texture", + "Kind": "ULongLong" } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, "Module": "Data display", - "Doc": "Accordion / disclosure. Content animates its height." + "Doc": "" }, { - "CName": "cui_accordion_end", - "CsName": "AccordionEnd", + "CName": "cui_image_ex", + "CsName": "Image", "CsReturn": "void", "Params": [ { @@ -34315,6 +39343,29 @@ "Kind": "Record" } } + }, + { + "CName": "tex", + "CsName": "tex", + "CsType": "nuint", + "Type": { + "Spelling": "cui_texture", + "Kind": "ULongLong" + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeImageOpts", + "Type": { + "Spelling": "const cui_image_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_image_opts", + "Kind": "Record", + "IsConst": true + } + } } ], "ReturnType": { @@ -34325,8 +39376,8 @@ "Doc": "" }, { - "CName": "cui_tree_begin", - "CsName": "TreeBegin", + "CName": "cui_image_viewer_ex", + "CsName": "ImageViewer", "CsReturn": "byte", "Params": [ { @@ -34343,8 +39394,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -34357,27 +39408,54 @@ } }, { - "CName": "open", - "CsName": "open", - "CsType": "nint", + "CName": "tex", + "CsName": "tex", + "CsType": "nuint", "Type": { - "Spelling": "_Bool *", + "Spelling": "cui_texture", + "Kind": "ULongLong" + } + }, + { + "CName": "image_w", + "CsName": "imageW", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "image_h", + "CsName": "imageH", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "view", + "CsName": "view", + "CsType": "ref NativeImageView", + "Type": { + "Spelling": "cui_image_view *", "Kind": "Pointer", "Element": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_image_view", + "Kind": "Record" } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeTreeOpts", + "CsType": "in NativeImageViewerOpts", "Type": { - "Spelling": "const cui_tree_opts *", + "Spelling": "const cui_image_viewer_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_tree_opts", + "Spelling": "const cui_image_viewer_opts", "Kind": "Record", "IsConst": true } @@ -34389,12 +39467,12 @@ "Kind": "Bool" }, "Module": "Data display", - "Doc": "" + "Doc": "Returns true when the view changed." }, { - "CName": "cui_tree_end", - "CsName": "TreeEnd", - "CsReturn": "void", + "CName": "cui_cropper_ex", + "CsName": "Cropper", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -34408,32 +39486,74 @@ "Kind": "Record" } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Data display", - "Doc": "" - }, - { - "CName": "cui_tree_clicked", - "CsName": "TreeClicked", - "CsReturn": "byte", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "tex", + "CsName": "tex", + "CsType": "nuint", + "Type": { + "Spelling": "cui_texture", + "Kind": "ULongLong" + } + }, + { + "CName": "image_w", + "CsName": "imageW", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "image_h", + "CsName": "imageH", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "crop", + "CsName": "crop", + "CsType": "ref NativeRect", + "Type": { + "Spelling": "cui_rect *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_rect", "Kind": "Record" } } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeCropperOpts", + "Type": { + "Spelling": "const cui_cropper_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_cropper_opts", + "Kind": "Record", + "IsConst": true + } + } } ], "ReturnType": { @@ -34441,12 +39561,12 @@ "Kind": "Bool" }, "Module": "Data display", - "Doc": "the node created by the last cui_tree_begin was clicked" + "Doc": "Returns true when the crop changed." }, { - "CName": "cui_list_item_ex", - "CsName": "ListItem", - "CsReturn": "byte", + "CName": "cui_command_palette", + "CsName": "CommandPalette", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -34462,45 +39582,53 @@ } }, { - "CName": "title", - "CsName": "title", + "CName": "open", + "CsName": "open", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "_Bool *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "_Bool", + "Kind": "Bool" } } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeListItemOpts", + "CName": "commands", + "CsName": "commands", + "CsType": "nint", "Type": { - "Spelling": "const cui_list_item_opts *", + "Spelling": "const cui_command *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_list_item_opts", + "Spelling": "const cui_command", "Kind": "Record", "IsConst": true } } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Data display", - "Doc": "" + "Module": "Command palette (block)", + "Doc": "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;" }, { - "CName": "cui_virtual_list_begin", - "CsName": "VirtualListBegin", - "CsReturn": "void", + "CName": "cui_radio_cards_ex", + "CsName": "RadioCards", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -34529,6 +39657,20 @@ } } }, + { + "CName": "choices", + "CsName": "choices", + "CsType": "nint", + "Type": { + "Spelling": "const cui_choice *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_choice", + "Kind": "Record", + "IsConst": true + } + } + }, { "CName": "count", "CsName": "count", @@ -34539,26 +39681,8 @@ } }, { - "CName": "row_height", - "CsName": "rowHeight", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, - { - "CName": "height", - "CsName": "height", - "CsType": "NativeSize", - "Type": { - "Spelling": "cui_size", - "Kind": "Record" - } - }, - { - "CName": "first", - "CsName": "first", + "CName": "index", + "CsName": "index", "CsType": "ref int", "Type": { "Spelling": "int *", @@ -34570,55 +39694,30 @@ } }, { - "CName": "last", - "CsName": "last", - "CsType": "ref int", - "Type": { - "Spelling": "int *", - "Kind": "Pointer", - "Element": { - "Spelling": "int", - "Kind": "Int" - } - } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Data display", - "Doc": "Virtual list: only the visible rows are built, so lists with a million rows stay fast. Fills first/last with the visible range." - }, - { - "CName": "cui_virtual_list_end", - "CsName": "VirtualListEnd", - "CsReturn": "void", - "Params": [ - { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeRadioCardsOpts", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const cui_radio_cards_opts *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const cui_radio_cards_opts", + "Kind": "Record", + "IsConst": true } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Data display", + "Module": "More components", "Doc": "" }, { - "CName": "cui_table_begin_ex", - "CsName": "TableBegin", + "CName": "cui_tag_input_ex", + "CsName": "TagInput", "CsReturn": "byte", "Params": [ { @@ -34649,37 +39748,36 @@ } }, { - "CName": "columns", - "CsName": "columns", + "CName": "buf", + "CsName": "buf", "CsType": "nint", "Type": { - "Spelling": "const cui_table_column *", + "Spelling": "char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_table_column", - "Kind": "Record", - "IsConst": true + "Spelling": "char", + "Kind": "Char_S" } } }, { - "CName": "column_count", - "CsName": "columnCount", - "CsType": "int", + "CName": "cap", + "CsName": "cap", + "CsType": "nuint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "size_t", + "Kind": "ULongLong" } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeTableOpts", + "CsType": "in NativeTagOpts", "Type": { - "Spelling": "const cui_table_opts *", + "Spelling": "const cui_tag_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_table_opts", + "Spelling": "const cui_tag_opts", "Kind": "Record", "IsConst": true } @@ -34690,12 +39788,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Data display", - "Doc": "" + "Module": "More components", + "Doc": "max_tags applies to every tag, including a batch separated by commas." }, { - "CName": "cui_table_row", - "CsName": "TableRow", + "CName": "cui_otp_input", + "CsName": "OtpInput", "CsReturn": "byte", "Params": [ { @@ -34712,51 +39810,52 @@ } }, { - "CName": "selected", - "CsName": "selected", - "CsType": "byte", + "CName": "id", + "CsName": "id", + "CsType": "nint", "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } - } - ], - "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Module": "Data display", - "Doc": "Begin a row. Returns true when the row is clicked." - }, - { - "CName": "cui_table_cell", - "CsName": "TableCell", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "code", + "CsName": "code", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "char", + "Kind": "Char_S" } } + }, + { + "CName": "length", + "CsName": "length", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Data display", - "Doc": "Next cell; put any components inside, or use cui_table_cell_text." + "Module": "More components", + "Doc": "One time code input: `length` boxes; code must hold length + 1 bytes. Returns true when all boxes are filled, including when a paste replaces one complete code with a different complete code." }, { - "CName": "cui_table_cell_text", - "CsName": "TableCellText", + "CName": "cui_button_group_begin", + "CsName": "ButtonGroupBegin", "CsReturn": "void", "Params": [ { @@ -34771,32 +39870,18 @@ "Kind": "Record" } } - }, - { - "CName": "text", - "CsName": "text", - "CsType": "nint", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Data display", - "Doc": "Part of cui_table_cell — Next cell; put any components inside, or use cui_table_cell_text." + "Module": "More components", + "Doc": "Connected buttons. Put buttons between begin and end." }, { - "CName": "cui_table_end", - "CsName": "TableEnd", + "CName": "cui_button_group_end", + "CsName": "ButtonGroupEnd", "CsReturn": "void", "Params": [ { @@ -34817,13 +39902,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Data display", + "Module": "More components", "Doc": "" }, { - "CName": "cui_line_chart_ex", - "CsName": "LineChart", - "CsReturn": "void", + "CName": "cui_copy_button", + "CsName": "CopyButton", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -34853,37 +39938,68 @@ } }, { - "CName": "series", - "CsName": "series", + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { - "Spelling": "const cui_series *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_series", - "Kind": "Record", + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } } + } + ], + "ReturnType": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Module": "More components", + "Doc": "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." + }, + { + "CName": "cui_hold_button_ex", + "CsName": "HoldButton", + "CsReturn": "byte", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } }, { - "CName": "count", - "CsName": "count", - "CsType": "int", + "CName": "label", + "CsName": "label", + "CsType": "nint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeChartOpts", + "CsType": "in NativeHoldOpts", "Type": { - "Spelling": "const cui_chart_opts *", + "Spelling": "const cui_hold_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_chart_opts", + "Spelling": "const cui_hold_opts", "Kind": "Record", "IsConst": true } @@ -34891,16 +40007,16 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Data display", + "Module": "More components", "Doc": "" }, { - "CName": "cui_bar_chart_ex", - "CsName": "BarChart", - "CsReturn": "void", + "CName": "cui_password_strength", + "CsName": "PasswordStrength", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -34916,8 +40032,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "password", + "CsName": "password", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -34928,39 +40044,56 @@ "IsConst": true } } - }, + } + ], + "ReturnType": { + "Spelling": "int", + "Kind": "Int" + }, + "Module": "More components", + "Doc": "Password strength meter (0 weak .. 4 strong). Returns the score." + }, + { + "CName": "cui_timeline_item_ex", + "CsName": "TimelineItem", + "CsReturn": "void", + "Params": [ { - "CName": "series", - "CsName": "series", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const cui_series *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_series", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "count", - "CsName": "count", - "CsType": "int", + "CName": "title", + "CsName": "title", + "CsType": "nint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeChartOpts", + "CsType": "in NativeTimelineOpts", "Type": { - "Spelling": "const cui_chart_opts *", + "Spelling": "const cui_timeline_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_chart_opts", + "Spelling": "const cui_timeline_opts", "Kind": "Record", "IsConst": true } @@ -34971,12 +40104,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Data display", + "Module": "More components", "Doc": "" }, { - "CName": "cui_donut_chart_ex", - "CsName": "DonutChart", + "CName": "cui_reorder_begin", + "CsName": "ReorderBegin", "CsReturn": "void", "Params": [ { @@ -35007,35 +40140,15 @@ } }, { - "CName": "values", - "CsName": "values", - "CsType": "nint", - "Type": { - "Spelling": "const float *", - "Kind": "Pointer", - "Element": { - "Spelling": "const float", - "Kind": "Float", - "IsConst": true - } - } - }, - { - "CName": "labels", - "CsName": "labels", - "CsType": "nint", + "CName": "order", + "CsName": "order", + "CsType": "ref int", "Type": { - "Spelling": "const char *const *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" } } }, @@ -35047,33 +40160,19 @@ "Spelling": "int", "Kind": "Int" } - }, - { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeChartOpts", - "Type": { - "Spelling": "const cui_chart_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_chart_opts", - "Kind": "Record", - "IsConst": true - } - } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Data display", - "Doc": "" + "Module": "More components", + "Doc": "Reorderable list: drag rows to reorder. `order` holds your item indices in display order and is rewritten when a row is dropped. Build the rows in display order: for (i...) cui_reorder_item(ui, i) { draw item order[i] }. Returns true on the frame the order changes." }, { - "CName": "cui_sparkline", - "CsName": "Sparkline", - "CsReturn": "void", + "CName": "cui_reorder_end", + "CsName": "ReorderEnd", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -35087,55 +40186,66 @@ "Kind": "Record" } } - }, + } + ], + "ReturnType": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Module": "More components", + "Doc": "" + }, + { + "CName": "cui_reorder_item_begin", + "CsName": "ReorderItemBegin", + "CsReturn": "void", + "Params": [ { - "CName": "values", - "CsName": "values", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const float *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const float", - "Kind": "Float", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "count", - "CsName": "count", + "CName": "position", + "CsName": "position", "CsType": "int", "Type": { "Spelling": "int", "Kind": "Int" } - }, - { - "CName": "width", - "CsName": "width", - "CsType": "NativeSize", - "Type": { - "Spelling": "cui_size", - "Kind": "Record" - } - }, - { - "CName": "height", - "CsName": "height", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "More components", + "Doc": "" + }, + { + "CName": "cui_reorder_item_end", + "CsName": "ReorderItemEnd", + "CsReturn": "void", + "Params": [ { - "CName": "color", - "CsName": "color", - "CsType": "NativeColor", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "cui_color", - "Kind": "Record" + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } } } ], @@ -35143,12 +40253,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Data display", + "Module": "More components", "Doc": "" }, { - "CName": "cui_gauge", - "CsName": "Gauge", + "CName": "cui_progress_ring", + "CsName": "ProgressRing", "CsReturn": "void", "Params": [ { @@ -35201,13 +40311,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Data display", - "Doc": "" + "Module": "More components", + "Doc": "Circular progress with the value in the middle." }, { - "CName": "cui_image_create", - "CsName": "ImageCreate", - "CsReturn": "nuint", + "CName": "cui_split_button_ex", + "CsName": "SplitButton", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -35223,17 +40333,41 @@ } }, { - "CName": "w", - "CsName": "w", - "CsType": "int", + "CName": "label", + "CsName": "label", + "CsType": "nint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } }, { - "CName": "h", - "CsName": "h", + "CName": "items", + "CsName": "items", + "CsType": "nint", + "Type": { + "Spelling": "const char *const *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + } + }, + { + "CName": "count", + "CsName": "count", "CsType": "int", "Type": { "Spelling": "int", @@ -35241,31 +40375,31 @@ } }, { - "CName": "rgba", - "CsName": "rgba", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeSplitButtonOpts", "Type": { - "Spelling": "const void *", + "Spelling": "const cui_split_button_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const void", - "Kind": "Void", + "Spelling": "const cui_split_button_opts", + "Kind": "Record", "IsConst": true } } } ], "ReturnType": { - "Spelling": "cui_texture", - "Kind": "ULongLong" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Data display", - "Doc": "Images" + "Module": "More actions", + "Doc": "" }, { - "CName": "cui_image_load", - "CsName": "ImageLoad", - "CsReturn": "nuint", + "CName": "cui_toggle_group_ex", + "CsName": "ToggleGroup", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -35281,8 +40415,8 @@ } }, { - "CName": "path", - "CsName": "path", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -35295,43 +40429,72 @@ } }, { - "CName": "w", - "CsName": "w", - "CsType": "ref int", + "CName": "labels", + "CsName": "labels", + "CsType": "nint", + "Type": { + "Spelling": "const char *const *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "values", + "CsName": "values", + "CsType": "nint", "Type": { - "Spelling": "int *", + "Spelling": "_Bool *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" } } }, { - "CName": "h", - "CsName": "h", - "CsType": "ref int", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeToggleGroupOpts", "Type": { - "Spelling": "int *", + "Spelling": "const cui_toggle_group_opts *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const cui_toggle_group_opts", + "Kind": "Record", + "IsConst": true } } } ], "ReturnType": { - "Spelling": "cui_texture", - "Kind": "ULongLong" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Data display", - "Doc": "PNG/JPEG via stb_image" + "Module": "More actions", + "Doc": "Move focus once per arrow press unless a later control took focus." }, { - "CName": "cui_image_destroy", - "CsName": "ImageDestroy", - "CsReturn": "void", + "CName": "cui_confirm_button_ex", + "CsName": "ConfirmButton", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -35347,58 +40510,28 @@ } }, { - "CName": "tex", - "CsName": "tex", - "CsType": "nuint", - "Type": { - "Spelling": "cui_texture", - "Kind": "ULongLong" - } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Data display", - "Doc": "" - }, - { - "CName": "cui_image_ex", - "CsName": "Image", - "CsReturn": "void", - "Params": [ - { - "CName": "ui", - "CsName": "ui", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, - { - "CName": "tex", - "CsName": "tex", - "CsType": "nuint", - "Type": { - "Spelling": "cui_texture", - "Kind": "ULongLong" - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeImageOpts", + "CsType": "in NativeConfirmOpts", "Type": { - "Spelling": "const cui_image_opts *", + "Spelling": "const cui_confirm_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_image_opts", + "Spelling": "const cui_confirm_opts", "Kind": "Record", "IsConst": true } @@ -35406,15 +40539,15 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Data display", + "Module": "More actions", "Doc": "" }, { - "CName": "cui_image_viewer_ex", - "CsName": "ImageViewer", + "CName": "cui_status_button_ex", + "CsName": "StatusButton", "CsReturn": "byte", "Params": [ { @@ -35431,8 +40564,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -35445,54 +40578,23 @@ } }, { - "CName": "tex", - "CsName": "tex", - "CsType": "nuint", - "Type": { - "Spelling": "cui_texture", - "Kind": "ULongLong" - } - }, - { - "CName": "image_w", - "CsName": "imageW", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "image_h", - "CsName": "imageH", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "view", - "CsName": "view", - "CsType": "ref NativeImageView", + "CName": "status", + "CsName": "status", + "CsType": "Status", "Type": { - "Spelling": "cui_image_view *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_image_view", - "Kind": "Record" - } + "Spelling": "cui_status", + "Kind": "Enum" } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeImageViewerOpts", + "CsType": "in NativeStatusButtonOpts", "Type": { - "Spelling": "const cui_image_viewer_opts *", + "Spelling": "const cui_status_button_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_image_viewer_opts", + "Spelling": "const cui_status_button_opts", "Kind": "Record", "IsConst": true } @@ -35503,12 +40605,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Data display", - "Doc": "Returns true when the view changed." + "Module": "More actions", + "Doc": "" }, { - "CName": "cui_cropper_ex", - "CsName": "Cropper", + "CName": "cui_status_spinner_ex", + "CsName": "StatusSpinner", "CsReturn": "byte", "Params": [ { @@ -35539,54 +40641,23 @@ } }, { - "CName": "tex", - "CsName": "tex", - "CsType": "nuint", - "Type": { - "Spelling": "cui_texture", - "Kind": "ULongLong" - } - }, - { - "CName": "image_w", - "CsName": "imageW", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "image_h", - "CsName": "imageH", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "crop", - "CsName": "crop", - "CsType": "ref NativeRect", + "CName": "status", + "CsName": "status", + "CsType": "Status", "Type": { - "Spelling": "cui_rect *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_rect", - "Kind": "Record" - } + "Spelling": "cui_status", + "Kind": "Enum" } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeCropperOpts", + "CsType": "in NativeStatusSpinnerOpts", "Type": { - "Spelling": "const cui_cropper_opts *", + "Spelling": "const cui_status_spinner_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_cropper_opts", + "Spelling": "const cui_status_spinner_opts", "Kind": "Record", "IsConst": true } @@ -35597,12 +40668,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Data display", - "Doc": "Returns true when the crop changed." + "Module": "More actions", + "Doc": "" }, { - "CName": "cui_command_palette", - "CsName": "CommandPalette", + "CName": "cui_reactions", + "CsName": "Reactions", "CsReturn": "int", "Params": [ { @@ -35619,29 +40690,29 @@ } }, { - "CName": "open", - "CsName": "open", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { - "Spelling": "_Bool *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, { - "CName": "commands", - "CsName": "commands", + "CName": "items", + "CsName": "items", "CsType": "nint", "Type": { - "Spelling": "const cui_command *", + "Spelling": "cui_reaction *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_command", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_reaction", + "Kind": "Record" } } }, @@ -35659,13 +40730,13 @@ "Spelling": "int", "Kind": "Int" }, - "Module": "Command palette (block)", - "Doc": "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;" + "Module": "More actions", + "Doc": "" }, { - "CName": "cui_radio_cards_ex", - "CsName": "RadioCards", - "CsReturn": "byte", + "CName": "cui_speed_dial_ex", + "CsName": "SpeedDial", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -35695,14 +40766,14 @@ } }, { - "CName": "choices", - "CsName": "choices", + "CName": "actions", + "CsName": "actions", "CsType": "nint", "Type": { - "Spelling": "const cui_choice *", + "Spelling": "const cui_speed_action *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_choice", + "Spelling": "const cui_speed_action", "Kind": "Record", "IsConst": true } @@ -35718,8 +40789,48 @@ } }, { - "CName": "index", - "CsName": "index", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeSpeedDialOpts", + "Type": { + "Spelling": "const cui_speed_dial_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_speed_dial_opts", + "Kind": "Record", + "IsConst": true + } + } + } + ], + "ReturnType": { + "Spelling": "int", + "Kind": "Int" + }, + "Module": "More actions", + "Doc": "Balance the action scope even if an action closes the dial during the build." + }, + { + "CName": "cui_theme_switcher", + "CsName": "ThemeSwitcher", + "CsReturn": "byte", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + }, + { + "CName": "mode", + "CsName": "mode", "CsType": "ref int", "Type": { "Spelling": "int *", @@ -35731,17 +40842,12 @@ } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeRadioCardsOpts", + "CName": "with_system", + "CsName": "withSystem", + "CsType": "byte", "Type": { - "Spelling": "const cui_radio_cards_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_radio_cards_opts", - "Kind": "Record", - "IsConst": true - } + "Spelling": "_Bool", + "Kind": "Bool" } } ], @@ -35749,12 +40855,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "More components", - "Doc": "" + "Module": "More actions", + "Doc": "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." }, { - "CName": "cui_tag_input_ex", - "CsName": "TagInput", + "CName": "cui_theme_toggle", + "CsName": "ThemeToggle", "CsReturn": "byte", "Params": [ { @@ -35769,52 +40875,56 @@ "Kind": "Record" } } - }, + } + ], + "ReturnType": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Module": "More actions", + "Doc": "Sun and moon icon button that toggles the theme with a morph." + }, + { + "CName": "cui_user_menu_begin", + "CsName": "UserMenuBegin", + "CsReturn": "byte", + "Params": [ { - "CName": "id", - "CsName": "id", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "buf", - "CsName": "buf", + "CName": "name", + "CsName": "name", "CsType": "nint", "Type": { - "Spelling": "char *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "char", - "Kind": "Char_S" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, - { - "CName": "cap", - "CsName": "cap", - "CsType": "nuint", - "Type": { - "Spelling": "size_t", - "Kind": "ULongLong" - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeTagOpts", + "CsType": "in NativeUserMenuOpts", "Type": { - "Spelling": "const cui_tag_opts *", + "Spelling": "const cui_user_menu_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_tag_opts", + "Spelling": "const cui_user_menu_opts", "Kind": "Record", "IsConst": true } @@ -35825,13 +40935,39 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "More components", + "Module": "More actions", "Doc": "" }, { - "CName": "cui_otp_input", - "CsName": "OtpInput", - "CsReturn": "byte", + "CName": "cui_user_menu_end", + "CsName": "UserMenuEnd", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "More actions", + "Doc": "" + }, + { + "CName": "cui_swipe_item_begin", + "CsName": "SwipeItemBegin", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -35861,21 +40997,45 @@ } }, { - "CName": "code", - "CsName": "code", + "CName": "left", + "CsName": "left", "CsType": "nint", "Type": { - "Spelling": "char *", + "Spelling": "const cui_swipe_action *", "Kind": "Pointer", "Element": { - "Spelling": "char", - "Kind": "Char_S" + "Spelling": "const cui_swipe_action", + "Kind": "Record", + "IsConst": true } } }, { - "CName": "length", - "CsName": "length", + "CName": "left_count", + "CsName": "leftCount", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "right", + "CsName": "right", + "CsType": "nint", + "Type": { + "Spelling": "const cui_swipe_action *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_swipe_action", + "Kind": "Record", + "IsConst": true + } + } + }, + { + "CName": "right_count", + "CsName": "rightCount", "CsType": "int", "Type": { "Spelling": "int", @@ -35884,16 +41044,16 @@ } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "More components", - "Doc": "One time code input: `length` boxes; code must hold length + 1 bytes. Returns true when all boxes are filled (once per change)." + "Module": "More actions", + "Doc": "" }, { - "CName": "cui_button_group_begin", - "CsName": "ButtonGroupBegin", - "CsReturn": "void", + "CName": "cui_swipe_item_end", + "CsName": "SwipeItemEnd", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -35910,16 +41070,16 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "int", + "Kind": "Int" }, - "Module": "More components", - "Doc": "Connected buttons. Put buttons between begin and end." + "Module": "More actions", + "Doc": "" }, { - "CName": "cui_button_group_end", - "CsName": "ButtonGroupEnd", - "CsReturn": "void", + "CName": "cui_data_grid_begin_ex", + "CsName": "DataGridBegin", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -35933,57 +41093,89 @@ "Kind": "Record" } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "More components", - "Doc": "" - }, - { - "CName": "cui_copy_button", - "CsName": "CopyButton", - "CsReturn": "byte", - "Params": [ + }, + { + "CName": "id", + "CsName": "id", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "columns", + "CsName": "columns", + "CsType": "nint", + "Type": { + "Spelling": "const cui_grid_column *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_grid_column", + "Kind": "Record", + "IsConst": true + } + } + }, + { + "CName": "column_count", + "CsName": "columnCount", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "row_count", + "CsName": "rowCount", + "CsType": "int", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "first", + "CsName": "first", + "CsType": "ref int", + "Type": { + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "int", + "Kind": "Int" } } }, { - "CName": "id", - "CsName": "id", - "CsType": "nint", + "CName": "last", + "CsName": "last", + "CsType": "ref int", "Type": { - "Spelling": "const char *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "int", + "Kind": "Int" } } }, { - "CName": "text", - "CsName": "text", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeGridOpts", "Type": { - "Spelling": "const char *", + "Spelling": "const cui_grid_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", + "Spelling": "const cui_grid_opts", + "Kind": "Record", "IsConst": true } } @@ -35993,12 +41185,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "More components", - "Doc": "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." + "Module": "Data grid", + "Doc": "Returns a visible range for the current row count, even after the grid shrinks." }, { - "CName": "cui_hold_button_ex", - "CsName": "HoldButton", + "CName": "cui_data_grid_row", + "CsName": "DataGridRow", "CsReturn": "byte", "Params": [ { @@ -36015,31 +41207,12 @@ } }, { - "CName": "label", - "CsName": "label", - "CsType": "nint", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - }, - { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeHoldOpts", + "CName": "row", + "CsName": "row", + "CsType": "int", "Type": { - "Spelling": "const cui_hold_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_hold_opts", - "Kind": "Record", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" } } ], @@ -36047,13 +41220,13 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "More components", - "Doc": "" + "Module": "Data grid", + "Doc": "true when the row was clicked" }, { - "CName": "cui_password_strength", - "CsName": "PasswordStrength", - "CsReturn": "int", + "CName": "cui_data_grid_cell", + "CsName": "DataGridCell", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -36067,32 +41240,18 @@ "Kind": "Record" } } - }, - { - "CName": "password", - "CsName": "password", - "CsType": "nint", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "void", + "Kind": "Void" }, - "Module": "More components", - "Doc": "Password strength meter (0 weak .. 4 strong). Returns the score." + "Module": "Data grid", + "Doc": "next cell; put components inside" }, { - "CName": "cui_timeline_item_ex", - "CsName": "TimelineItem", + "CName": "cui_data_grid_cell_text", + "CsName": "DataGridCellText", "CsReturn": "void", "Params": [ { @@ -36109,8 +41268,8 @@ } }, { - "CName": "title", - "CsName": "title", + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -36121,33 +41280,19 @@ "IsConst": true } } - }, - { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeTimelineOpts", - "Type": { - "Spelling": "const cui_timeline_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_timeline_opts", - "Kind": "Record", - "IsConst": true - } - } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "More components", + "Module": "Data grid", "Doc": "" }, { - "CName": "cui_reorder_begin", - "CsName": "ReorderBegin", - "CsReturn": "void", + "CName": "cui_data_grid_cell_edit", + "CsName": "DataGridCellEdit", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -36163,52 +41308,38 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "buf", + "CsName": "buf", "CsType": "nint", "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - }, - { - "CName": "order", - "CsName": "order", - "CsType": "ref int", - "Type": { - "Spelling": "int *", + "Spelling": "char *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "char", + "Kind": "Char_S" } } }, { - "CName": "count", - "CsName": "count", - "CsType": "int", + "CName": "cap", + "CsName": "cap", + "CsType": "nuint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "size_t", + "Kind": "ULongLong" } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "More components", - "Doc": "Reorderable list: drag rows to reorder. `order` holds your item indices in display order and is rewritten when a row is dropped. Build the rows in display order: for (i...) cui_reorder_item(ui, i) { draw item order[i] }. Returns true on the frame the order changes." + "Module": "Data grid", + "Doc": "Editable text cell: double click (or Enter on the cursor row) to edit, Enter or clicking away commits, Esc reverts. True when committed." }, { - "CName": "cui_reorder_end", - "CsName": "ReorderEnd", + "CName": "cui_data_grid_edit", + "CsName": "DataGridEdit", "CsReturn": "byte", "Params": [ { @@ -36223,53 +41354,40 @@ "Kind": "Record" } } - } - ], - "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Module": "More components", - "Doc": "" - }, - { - "CName": "cui_reorder_item_begin", - "CsName": "ReorderItemBegin", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "buf", + "CsName": "buf", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "char", + "Kind": "Char_S" } } }, { - "CName": "position", - "CsName": "position", - "CsType": "int", + "CName": "cap", + "CsName": "cap", + "CsType": "nuint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "size_t", + "Kind": "ULongLong" } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "More components", - "Doc": "" + "Module": "Data grid", + "Doc": "The same editable text, inside the current cell (after an avatar, say)." }, { - "CName": "cui_reorder_item_end", - "CsName": "ReorderItemEnd", + "CName": "cui_data_grid_end", + "CsName": "DataGridEnd", "CsReturn": "void", "Params": [ { @@ -36290,13 +41408,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "More components", + "Module": "Data grid", "Doc": "" }, { - "CName": "cui_progress_ring", - "CsName": "ProgressRing", - "CsReturn": "void", + "CName": "cui_tree_cell", + "CsName": "TreeCell", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -36326,52 +41444,39 @@ } }, { - "CName": "value", - "CsName": "value", - "CsType": "float", + "CName": "depth", + "CsName": "depth", + "CsType": "int", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "int", + "Kind": "Int" } }, { - "CName": "size", - "CsName": "size", - "CsType": "float", + "CName": "has_children", + "CsName": "hasChildren", + "CsType": "byte", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "_Bool", + "Kind": "Bool" } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "More components", - "Doc": "Circular progress with the value in the middle." - }, - { - "CName": "cui_split_button_ex", - "CsName": "SplitButton", - "CsReturn": "int", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "open", + "CsName": "open", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "_Bool *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "_Bool", + "Kind": "Bool" } } }, { - "CName": "label", - "CsName": "label", + "CName": "icon", + "CsName": "icon", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -36382,60 +41487,18 @@ "IsConst": true } } - }, - { - "CName": "items", - "CsName": "items", - "CsType": "nint", - "Type": { - "Spelling": "const char *const *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - } - }, - { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeSplitButtonOpts", - "Type": { - "Spelling": "const cui_split_button_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_split_button_opts", - "Kind": "Record", - "IsConst": true - } - } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "More actions", - "Doc": "" + "Module": "Data grid", + "Doc": "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." }, { - "CName": "cui_toggle_group_ex", - "CsName": "ToggleGroup", + "CName": "cui_filter_bar", + "CsName": "FilterBar", "CsReturn": "byte", "Params": [ { @@ -36466,21 +41529,16 @@ } }, { - "CName": "labels", - "CsName": "labels", + "CName": "fields", + "CsName": "fields", "CsType": "nint", "Type": { - "Spelling": "const char *const *", + "Spelling": "const cui_filter_field *", "Kind": "Pointer", "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "const cui_filter_field", + "Kind": "Record", + "IsConst": true } } }, @@ -36494,44 +41552,52 @@ } }, { - "CName": "values", - "CsName": "values", - "CsType": "nint", + "CName": "selected", + "CsName": "selected", + "CsType": "ref uint", "Type": { - "Spelling": "_Bool *", + "Spelling": "uint32_t *", "Kind": "Pointer", "Element": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "uint32_t", + "Kind": "UInt" } } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeToggleGroupOpts", + "CName": "search", + "CsName": "search", + "CsType": "nint", "Type": { - "Spelling": "const cui_toggle_group_opts *", + "Spelling": "char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_toggle_group_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "char", + "Kind": "Char_S" } } + }, + { + "CName": "search_cap", + "CsName": "searchCap", + "CsType": "nuint", + "Type": { + "Spelling": "size_t", + "Kind": "ULongLong" + } } ], "ReturnType": { "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "More actions", - "Doc": "" + "Module": "Data grid", + "Doc": "Draw filter chips and open the new chip's value list when a field is added." }, { - "CName": "cui_confirm_button_ex", - "CsName": "ConfirmButton", - "CsReturn": "byte", + "CName": "cui_tree_table_begin_ex", + "CsName": "TreeTableBegin", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -36547,8 +41613,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -36561,77 +41627,59 @@ } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeConfirmOpts", + "CName": "columns", + "CsName": "columns", + "CsType": "nint", "Type": { - "Spelling": "const cui_confirm_opts *", + "Spelling": "const cui_grid_column *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_confirm_opts", + "Spelling": "const cui_grid_column", "Kind": "Record", "IsConst": true } } - } - ], - "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Module": "More actions", - "Doc": "" - }, - { - "CName": "cui_status_button_ex", - "CsName": "StatusButton", - "CsReturn": "byte", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "column_count", + "CsName": "columnCount", + "CsType": "int", "Type": { - "Spelling": "cui_ctx *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" - } + "Spelling": "int", + "Kind": "Int" } }, { - "CName": "label", - "CsName": "label", + "CName": "nodes", + "CsName": "nodes", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "cui_tree_node *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "cui_tree_node", + "Kind": "Record" } } }, { - "CName": "status", - "CsName": "status", - "CsType": "Status", + "CName": "node_count", + "CsName": "nodeCount", + "CsType": "int", "Type": { - "Spelling": "cui_status", - "Kind": "Enum" + "Spelling": "int", + "Kind": "Int" } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeStatusButtonOpts", + "CsType": "in NativeTreeTableOpts", "Type": { - "Spelling": "const cui_status_button_opts *", + "Spelling": "const cui_tree_table_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_status_button_opts", + "Spelling": "const cui_tree_table_opts", "Kind": "Record", "IsConst": true } @@ -36639,16 +41687,42 @@ } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Tree table and path bar", + "Doc": "" + }, + { + "CName": "cui_tree_table_row", + "CsName": "TreeTableRow", + "CsReturn": "int", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + } + ], + "ReturnType": { + "Spelling": "int", + "Kind": "Int" }, - "Module": "More actions", - "Doc": "" + "Module": "Tree table and path bar", + "Doc": "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)." }, { - "CName": "cui_reactions", - "CsName": "Reactions", - "CsReturn": "int", + "CName": "cui_tree_table_name", + "CsName": "TreeTableName", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -36664,8 +41738,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -36678,25 +41752,43 @@ } }, { - "CName": "items", - "CsName": "items", + "CName": "icon", + "CsName": "icon", "CsType": "nint", "Type": { - "Spelling": "cui_reaction *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_reaction", - "Kind": "Record" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Tree table and path bar", + "Doc": "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)." + }, + { + "CName": "cui_tree_table_depth", + "CsName": "TreeTableDepth", + "CsReturn": "int", + "Params": [ { - "CName": "count", - "CsName": "count", - "CsType": "int", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } } } ], @@ -36704,13 +41796,13 @@ "Spelling": "int", "Kind": "Int" }, - "Module": "More actions", - "Doc": "" + "Module": "Tree table and path bar", + "Doc": "depth of the current row, 0 at the top" }, { - "CName": "cui_speed_dial_ex", - "CsName": "SpeedDial", - "CsReturn": "int", + "CName": "cui_tree_table_end", + "CsName": "TreeTableEnd", + "CsReturn": "NativeTreeTableEvents", "Params": [ { "CName": "ui", @@ -36724,38 +41816,45 @@ "Kind": "Record" } } - }, + } + ], + "ReturnType": { + "Spelling": "cui_tree_table_events", + "Kind": "Record" + }, + "Module": "Tree table and path bar", + "Doc": "" + }, + { + "CName": "cui_tree_sort", + "CsName": "TreeSort", + "CsReturn": "int", + "Params": [ { - "CName": "id", - "CsName": "id", + "CName": "nodes", + "CsName": "nodes", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "cui_tree_node *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "cui_tree_node", + "Kind": "Record" } } }, { - "CName": "actions", - "CsName": "actions", - "CsType": "nint", + "CName": "node_count", + "CsName": "nodeCount", + "CsType": "int", "Type": { - "Spelling": "const cui_speed_action *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_speed_action", - "Kind": "Record", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" } }, { - "CName": "count", - "CsName": "count", + "CName": "root", + "CsName": "root", "CsType": "int", "Type": { "Spelling": "int", @@ -36763,16 +41862,28 @@ } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeSpeedDialOpts", + "CName": "cmp", + "CsName": "cmp", + "CsType": "nint", "Type": { - "Spelling": "const cui_speed_dial_opts *", + "Spelling": "int (*)(void *, int, int)", "Kind": "Pointer", "Element": { - "Spelling": "const cui_speed_dial_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "int (void *, int, int)", + "Kind": "FunctionProto" + } + } + }, + { + "CName": "user", + "CsName": "user", + "CsType": "nint", + "Type": { + "Spelling": "void *", + "Kind": "Pointer", + "Element": { + "Spelling": "void", + "Kind": "Void" } } } @@ -36781,13 +41892,13 @@ "Spelling": "int", "Kind": "Int" }, - "Module": "More actions", - "Doc": "" + "Module": "Tree table and path bar", + "Doc": "Sorts every sibling list (stable) by cmp, relinking the nodes. Returns the new first top level node." }, { - "CName": "cui_theme_switcher", - "CsName": "ThemeSwitcher", - "CsReturn": "byte", + "CName": "cui_path_bar_ex", + "CsName": "PathBar", + "CsReturn": "NativePathBarResult", "Params": [ { "CName": "ui", @@ -36803,64 +41914,72 @@ } }, { - "CName": "mode", - "CsName": "mode", - "CsType": "ref int", + "CName": "id", + "CsName": "id", + "CsType": "nint", "Type": { - "Spelling": "int *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, { - "CName": "with_system", - "CsName": "withSystem", - "CsType": "byte", + "CName": "segments", + "CsName": "segments", + "CsType": "nint", "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "const char *const *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } } - } - ], - "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Module": "More actions", - "Doc": "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." - }, - { - "CName": "cui_theme_toggle", - "CsName": "ThemeToggle", - "CsReturn": "byte", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "count", + "CsName": "count", + "CsType": "int", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativePathBarOpts", + "Type": { + "Spelling": "const cui_path_bar_opts *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const cui_path_bar_opts", + "Kind": "Record", + "IsConst": true } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_path_bar_result", + "Kind": "Record" }, - "Module": "More actions", - "Doc": "Sun and moon icon button that toggles the theme with a morph." + "Module": "Tree table and path bar", + "Doc": "" }, { - "CName": "cui_user_menu_begin", - "CsName": "UserMenuBegin", + "CName": "cui_path_bar_menu_begin", + "CsName": "PathBarMenuBegin", "CsReturn": "byte", "Params": [ { @@ -36877,8 +41996,8 @@ } }, { - "CName": "name", - "CsName": "name", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -36891,16 +42010,15 @@ } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeUserMenuOpts", + "CName": "segment", + "CsName": "segment", + "CsType": "ref int", "Type": { - "Spelling": "const cui_user_menu_opts *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_user_menu_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "int", + "Kind": "Int" } } } @@ -36909,12 +42027,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "More actions", - "Doc": "" + "Module": "Tree table and path bar", + "Doc": "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." }, { - "CName": "cui_user_menu_end", - "CsName": "UserMenuEnd", + "CName": "cui_path_bar_menu_end", + "CsName": "PathBarMenuEnd", "CsReturn": "void", "Params": [ { @@ -36935,30 +42053,30 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "More actions", + "Module": "Tree table and path bar", "Doc": "" }, { - "CName": "cui_swipe_item_begin", - "CsName": "SwipeItemBegin", - "CsReturn": "void", + "CName": "cui_fs_list", + "CsName": "FsList", + "CsReturn": "int", "Params": [ { - "CName": "ui", - "CsName": "ui", + "CName": "user", + "CsName": "user", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "void *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "void", + "Kind": "Void" } } }, { - "CName": "id", - "CsName": "id", + "CName": "path", + "CsName": "path", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -36971,22 +42089,21 @@ } }, { - "CName": "left", - "CsName": "left", - "CsType": "nint", + "CName": "out", + "CsName": "@out", + "CsType": "ref NativeFileEntry", "Type": { - "Spelling": "const cui_swipe_action *", + "Spelling": "cui_file_entry *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_swipe_action", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_file_entry", + "Kind": "Record" } } }, { - "CName": "left_count", - "CsName": "leftCount", + "CName": "cap", + "CsName": "cap", "CsType": "int", "Type": { "Spelling": "int", @@ -36994,52 +42111,34 @@ } }, { - "CName": "right", - "CsName": "right", + "CName": "names", + "CsName": "names", "CsType": "nint", "Type": { - "Spelling": "const cui_swipe_action *", + "Spelling": "char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_swipe_action", - "Kind": "Record", - "IsConst": true + "Spelling": "char", + "Kind": "Char_S" } } }, { - "CName": "right_count", - "CsName": "rightCount", - "CsType": "int", + "CName": "names_cap", + "CsName": "namesCap", + "CsType": "nuint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "size_t", + "Kind": "ULongLong" } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "More actions", - "Doc": "" - }, - { - "CName": "cui_swipe_item_end", - "CsName": "SwipeItemEnd", - "CsReturn": "int", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "hidden", + "CsName": "hidden", + "CsType": "byte", "Type": { - "Spelling": "cui_ctx *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" - } + "Spelling": "_Bool", + "Kind": "Bool" } } ], @@ -37047,13 +42146,13 @@ "Spelling": "int", "Kind": "Int" }, - "Module": "More actions", + "Module": "Tree table and path bar", "Doc": "" }, { - "CName": "cui_data_grid_begin_ex", - "CsName": "DataGridBegin", - "CsReturn": "byte", + "CName": "cui_file_browser_ex", + "CsName": "FileBrowser", + "CsReturn": "NativeFileBrowserResult", "Params": [ { "CName": "ui", @@ -37083,72 +42182,36 @@ } }, { - "CName": "columns", - "CsName": "columns", + "CName": "path", + "CsName": "path", "CsType": "nint", "Type": { - "Spelling": "const cui_grid_column *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_grid_column", - "Kind": "Record", - "IsConst": true - } - } - }, - { - "CName": "column_count", - "CsName": "columnCount", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "row_count", - "CsName": "rowCount", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "first", - "CsName": "first", - "CsType": "ref int", - "Type": { - "Spelling": "int *", + "Spelling": "char *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "char", + "Kind": "Char_S" } } }, { - "CName": "last", - "CsName": "last", - "CsType": "ref int", + "CName": "path_cap", + "CsName": "pathCap", + "CsType": "nuint", "Type": { - "Spelling": "int *", - "Kind": "Pointer", - "Element": { - "Spelling": "int", - "Kind": "Int" - } + "Spelling": "size_t", + "Kind": "ULongLong" } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeGridOpts", + "CsType": "in NativeFileBrowserOpts", "Type": { - "Spelling": "const cui_grid_opts *", + "Spelling": "const cui_file_browser_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_grid_opts", + "Spelling": "const cui_file_browser_opts", "Kind": "Record", "IsConst": true } @@ -37156,15 +42219,15 @@ } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_file_browser_result", + "Kind": "Record" }, - "Module": "Data grid", - "Doc": "" + "Module": "Tree table and path bar", + "Doc": "path: the folder shown, yours; the browser writes it as you move around." }, { - "CName": "cui_data_grid_row", - "CsName": "DataGridRow", + "CName": "cui_file_picker_ex", + "CsName": "FilePicker", "CsReturn": "byte", "Params": [ { @@ -37181,109 +42244,35 @@ } }, { - "CName": "row", - "CsName": "row", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - } - ], - "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Module": "Data grid", - "Doc": "true when the row was clicked" - }, - { - "CName": "cui_data_grid_cell", - "CsName": "DataGridCell", - "CsReturn": "void", - "Params": [ - { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", - "Type": { - "Spelling": "cui_ctx *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" - } - } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Data grid", - "Doc": "next cell; put components inside" - }, - { - "CName": "cui_data_grid_cell_text", - "CsName": "DataGridCellText", - "CsReturn": "void", - "Params": [ - { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", - "Type": { - "Spelling": "cui_ctx *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" - } - } - }, - { - "CName": "text", - "CsName": "text", - "CsType": "nint", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Data grid", - "Doc": "" - }, - { - "CName": "cui_data_grid_cell_edit", - "CsName": "DataGridCellEdit", - "CsReturn": "byte", - "Params": [ + "CName": "id", + "CsName": "id", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, { - "CName": "ui", - "CsName": "ui", + "CName": "open", + "CsName": "open", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "_Bool *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "_Bool", + "Kind": "Bool" } } }, { - "CName": "buf", - "CsName": "buf", + "CName": "out", + "CsName": "@out", "CsType": "nint", "Type": { "Spelling": "char *", @@ -37295,26 +42284,40 @@ } }, { - "CName": "cap", - "CsName": "cap", + "CName": "out_cap", + "CsName": "outCap", "CsType": "nuint", "Type": { "Spelling": "size_t", "Kind": "ULongLong" } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeFilePickerOpts", + "Type": { + "Spelling": "const cui_file_picker_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_file_picker_opts", + "Kind": "Record", + "IsConst": true + } + } } ], "ReturnType": { "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Data grid", - "Doc": "Editable text cell: double click (or Enter on the cursor row) to edit, Enter or clicking away commits, Esc reverts. True when committed." + "Module": "Tree table and path bar", + "Doc": "True once, with the chosen path in out, when the dialog is confirmed; *open turns false then, or on Cancel and Esc." }, { - "CName": "cui_data_grid_edit", - "CsName": "DataGridEdit", - "CsReturn": "byte", + "CName": "cui_code_block_ex", + "CsName": "CodeBlock", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -37330,50 +42333,44 @@ } }, { - "CName": "buf", - "CsName": "buf", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { - "Spelling": "char *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "char", - "Kind": "Char_S" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, { - "CName": "cap", - "CsName": "cap", - "CsType": "nuint", + "CName": "code", + "CsName": "code", + "CsType": "nint", "Type": { - "Spelling": "size_t", - "Kind": "ULongLong" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } - } - ], - "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Module": "Data grid", - "Doc": "The same editable text, inside the current cell (after an avatar, say)." - }, - { - "CName": "cui_data_grid_end", - "CsName": "DataGridEnd", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeCodeOpts", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const cui_code_opts *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const cui_code_opts", + "Kind": "Record", + "IsConst": true } } } @@ -37382,12 +42379,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Data grid", + "Module": "Code", "Doc": "" }, { - "CName": "cui_tree_cell", - "CsName": "TreeCell", + "CName": "cui_json_view_ex", + "CsName": "JsonView", "CsReturn": "byte", "Params": [ { @@ -37404,8 +42401,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -37418,46 +42415,29 @@ } }, { - "CName": "depth", - "CsName": "depth", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "has_children", - "CsName": "hasChildren", - "CsType": "byte", - "Type": { - "Spelling": "_Bool", - "Kind": "Bool" - } - }, - { - "CName": "open", - "CsName": "open", + "CName": "json", + "CsName": "json", "CsType": "nint", "Type": { - "Spelling": "_Bool *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, { - "CName": "icon", - "CsName": "icon", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeJsonOpts", "Type": { - "Spelling": "const char *", + "Spelling": "const cui_json_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", + "Spelling": "const cui_json_opts", + "Kind": "Record", "IsConst": true } } @@ -37467,13 +42447,13 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Data grid", - "Doc": "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." + "Module": "Code", + "Doc": "" }, { - "CName": "cui_filter_bar", - "CsName": "FilterBar", - "CsReturn": "byte", + "CName": "cui_markdown_ex", + "CsName": "Markdown", + "CsReturn": "NativeMarkdownResult", "Params": [ { "CName": "ui", @@ -37503,44 +42483,49 @@ } }, { - "CName": "fields", - "CsName": "fields", + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { - "Spelling": "const cui_filter_field *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_filter_field", - "Kind": "Record", + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } } }, { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "selected", - "CsName": "selected", - "CsType": "ref uint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeMarkdownOpts", "Type": { - "Spelling": "uint32_t *", + "Spelling": "const cui_markdown_opts *", "Kind": "Pointer", "Element": { - "Spelling": "uint32_t", - "Kind": "UInt" + "Spelling": "const cui_markdown_opts", + "Kind": "Record", + "IsConst": true } } - }, + } + ], + "ReturnType": { + "Spelling": "cui_markdown_result", + "Kind": "Record" + }, + "Module": "Markdown view", + "Doc": "" + }, + { + "CName": "cui_markdown_apply_task", + "CsName": "MarkdownApplyTask", + "CsReturn": "byte", + "Params": [ { - "CName": "search", - "CsName": "search", + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { "Spelling": "char *", @@ -37552,12 +42537,17 @@ } }, { - "CName": "search_cap", - "CsName": "searchCap", - "CsType": "nuint", + "CName": "result", + "CsName": "result", + "CsType": "in NativeMarkdownResult", "Type": { - "Spelling": "size_t", - "Kind": "ULongLong" + "Spelling": "const cui_markdown_result *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_markdown_result", + "Kind": "Record", + "IsConst": true + } } } ], @@ -37565,13 +42555,13 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Data grid", - "Doc": "" + "Module": "Markdown view", + "Doc": "Writes a reported task toggle into text ('x' or ' ' between the brackets). Returns false when nothing was toggled or text no longer has a box there." }, { - "CName": "cui_tree_table_begin_ex", - "CsName": "TreeTableBegin", - "CsReturn": "void", + "CName": "cui_code_editor_ex", + "CsName": "CodeEditor", + "CsReturn": "NativeCodeEditorResult", "Params": [ { "CName": "ui", @@ -37601,44 +42591,84 @@ } }, { - "CName": "columns", - "CsName": "columns", + "CName": "buf", + "CsName": "buf", "CsType": "nint", "Type": { - "Spelling": "const cui_grid_column *", + "Spelling": "char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_grid_column", - "Kind": "Record", - "IsConst": true + "Spelling": "char", + "Kind": "Char_S" } } }, { - "CName": "column_count", - "CsName": "columnCount", - "CsType": "int", + "CName": "cap", + "CsName": "cap", + "CsType": "nuint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "size_t", + "Kind": "ULongLong" } }, { - "CName": "nodes", - "CsName": "nodes", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeCodeEditorOpts", + "Type": { + "Spelling": "const cui_code_editor_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_code_editor_opts", + "Kind": "Record", + "IsConst": true + } + } + } + ], + "ReturnType": { + "Spelling": "cui_code_editor_result", + "Kind": "Record" + }, + "Module": "Code editor", + "Doc": "" + }, + { + "CName": "cui_code_editor_goto", + "CsName": "CodeEditorGoto", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "cui_tree_node *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "cui_tree_node", + "Spelling": "cui_ctx", "Kind": "Record" } } }, { - "CName": "node_count", - "CsName": "nodeCount", + "CName": "id", + "CsName": "id", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "line", + "CsName": "line", "CsType": "int", "Type": { "Spelling": "int", @@ -37646,17 +42676,12 @@ } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeTreeTableOpts", + "CName": "column", + "CsName": "column", + "CsType": "int", "Type": { - "Spelling": "const cui_tree_table_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_tree_table_opts", - "Kind": "Record", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" } } ], @@ -37664,13 +42689,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Tree table and path bar", - "Doc": "" + "Module": "Code editor", + "Doc": "On the editor's next frame: put the caret at a line and column (1 based), focus the editor and scroll there. Call from the same id scope." }, { - "CName": "cui_tree_table_row", - "CsName": "TreeTableRow", - "CsReturn": "int", + "CName": "cui_code_editor_select", + "CsName": "CodeEditorSelect", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -37684,18 +42709,50 @@ "Kind": "Record" } } + }, + { + "CName": "id", + "CsName": "id", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "anchor", + "CsName": "anchor", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "cursor", + "CsName": "cursor", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Tree table and path bar", - "Doc": "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)." + "Module": "Code editor", + "Doc": "On the next frame: select bytes anchor..cursor, focus and scroll there." }, { - "CName": "cui_tree_table_name", - "CsName": "TreeTableName", + "CName": "cui_code_editor_find", + "CsName": "CodeEditorFind", "CsReturn": "void", "Params": [ { @@ -37712,8 +42769,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -37726,8 +42783,8 @@ } }, { - "CName": "icon", - "CsName": "icon", + "CName": "query", + "CsName": "query", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -37744,13 +42801,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Tree table and path bar", - "Doc": "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)." + "Module": "Code editor", + "Doc": "Opens the find bar with query and selects the next match (NULL closes)." }, { - "CName": "cui_tree_table_depth", - "CsName": "TreeTableDepth", - "CsReturn": "int", + "CName": "cui_diff_view_ex", + "CsName": "DiffView", + "CsReturn": "NativeDiffResult", "Params": [ { "CName": "ui", @@ -37764,115 +42821,75 @@ "Kind": "Record" } } - } - ], - "ReturnType": { - "Spelling": "int", - "Kind": "Int" - }, - "Module": "Tree table and path bar", - "Doc": "depth of the current row, 0 at the top" - }, - { - "CName": "cui_tree_table_end", - "CsName": "TreeTableEnd", - "CsReturn": "NativeTreeTableEvents", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } - } - ], - "ReturnType": { - "Spelling": "cui_tree_table_events", - "Kind": "Record" - }, - "Module": "Tree table and path bar", - "Doc": "" - }, - { - "CName": "cui_tree_sort", - "CsName": "TreeSort", - "CsReturn": "int", - "Params": [ + }, { - "CName": "nodes", - "CsName": "nodes", + "CName": "old_text", + "CsName": "oldText", "CsType": "nint", "Type": { - "Spelling": "cui_tree_node *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_tree_node", - "Kind": "Record" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, { - "CName": "node_count", - "CsName": "nodeCount", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "root", - "CsName": "root", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "cmp", - "CsName": "cmp", + "CName": "new_text", + "CsName": "newText", "CsType": "nint", "Type": { - "Spelling": "int (*)(void *, int, int)", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "int (void *, int, int)", - "Kind": "FunctionProto" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, { - "CName": "user", - "CsName": "user", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeDiffOpts", "Type": { - "Spelling": "void *", + "Spelling": "const cui_diff_opts *", "Kind": "Pointer", "Element": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "const cui_diff_opts", + "Kind": "Record", + "IsConst": true } } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_diff_result", + "Kind": "Record" }, - "Module": "Tree table and path bar", - "Doc": "Sorts every sibling list (stable) by cmp, relinking the nodes. Returns the new first top level node." - }, - { - "CName": "cui_path_bar_ex", - "CsName": "PathBar", - "CsReturn": "NativePathBarResult", + "Module": "Diff viewer", + "Doc": "" + }, + { + "CName": "cui_diff_view_rows", + "CsName": "DiffViewRows", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -37902,27 +42919,21 @@ } }, { - "CName": "segments", - "CsName": "segments", + "CName": "rows", + "CsName": "rows", "CsType": "nint", "Type": { - "Spelling": "const char *const *", + "Spelling": "cui_diff_row *", "Kind": "Pointer", "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "cui_diff_row", + "Kind": "Record" } } }, { - "CName": "count", - "CsName": "count", + "CName": "first", + "CsName": "first", "CsType": "int", "Type": { "Spelling": "int", @@ -37930,48 +42941,53 @@ } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativePathBarOpts", + "CName": "cap", + "CsName": "cap", + "CsType": "int", "Type": { - "Spelling": "const cui_path_bar_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_path_bar_opts", - "Kind": "Record", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" } } ], "ReturnType": { - "Spelling": "cui_path_bar_result", - "Kind": "Record" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Tree table and path bar", + "Module": "Diff viewer", "Doc": "" }, { - "CName": "cui_path_bar_menu_begin", - "CsName": "PathBarMenuBegin", - "CsReturn": "byte", + "CName": "cui_diff_compute", + "CsName": "DiffCompute", + "CsReturn": "int", "Params": [ { - "CName": "ui", - "CsName": "ui", + "CName": "old_text", + "CsName": "oldText", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, { - "CName": "id", - "CsName": "id", + "CName": "old_len", + "CsName": "oldLen", + "CsType": "nuint", + "Type": { + "Spelling": "size_t", + "Kind": "ULongLong" + } + }, + { + "CName": "new_text", + "CsName": "newText", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -37984,73 +43000,97 @@ } }, { - "CName": "segment", - "CsName": "segment", - "CsType": "ref int", + "CName": "new_len", + "CsName": "newLen", + "CsType": "nuint", "Type": { - "Spelling": "int *", + "Spelling": "size_t", + "Kind": "ULongLong" + } + }, + { + "CName": "flags", + "CsName": "flags", + "CsType": "uint", + "Type": { + "Spelling": "unsigned int", + "Kind": "UInt" + } + }, + { + "CName": "hunks", + "CsName": "hunks", + "CsType": "nint", + "Type": { + "Spelling": "cui_diff_hunk *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_diff_hunk", + "Kind": "Record" } } - } - ], - "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Module": "Tree table and path bar", - "Doc": "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." - }, - { - "CName": "cui_path_bar_menu_end", - "CsName": "PathBarMenuEnd", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "cap", + "CsName": "cap", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "stats", + "CsName": "stats", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "cui_diff_stats *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", + "Spelling": "cui_diff_stats", "Kind": "Record" } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Tree table and path bar", + "Module": "Diff viewer", "Doc": "" }, { - "CName": "cui_fs_list", - "CsName": "FsList", - "CsReturn": "int", + "CName": "cui_diff_words", + "CsName": "DiffWords", + "CsReturn": "byte", "Params": [ { - "CName": "user", - "CsName": "user", + "CName": "old_line", + "CsName": "oldLine", "CsType": "nint", "Type": { - "Spelling": "void *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, { - "CName": "path", - "CsName": "path", + "CName": "old_len", + "CsName": "oldLen", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "new_line", + "CsName": "newLine", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -38063,70 +43103,87 @@ } }, { - "CName": "out", - "CsName": "@out", - "CsType": "ref NativeFileEntry", + "CName": "new_len", + "CsName": "newLen", + "CsType": "int", "Type": { - "Spelling": "cui_file_entry *", + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "old_ranges", + "CsName": "oldRanges", + "CsType": "nint", + "Type": { + "Spelling": "cui_diff_range *", "Kind": "Pointer", "Element": { - "Spelling": "cui_file_entry", + "Spelling": "cui_diff_range", "Kind": "Record" } } }, { - "CName": "cap", - "CsName": "cap", - "CsType": "int", + "CName": "old_count", + "CsName": "oldCount", + "CsType": "ref int", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } } }, { - "CName": "names", - "CsName": "names", + "CName": "new_ranges", + "CsName": "newRanges", "CsType": "nint", "Type": { - "Spelling": "char *", + "Spelling": "cui_diff_range *", "Kind": "Pointer", "Element": { - "Spelling": "char", - "Kind": "Char_S" + "Spelling": "cui_diff_range", + "Kind": "Record" } } }, { - "CName": "names_cap", - "CsName": "namesCap", - "CsType": "nuint", + "CName": "new_count", + "CsName": "newCount", + "CsType": "ref int", "Type": { - "Spelling": "size_t", - "Kind": "ULongLong" + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } } }, { - "CName": "hidden", - "CsName": "hidden", - "CsType": "byte", + "CName": "cap", + "CsName": "cap", + "CsType": "int", "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Tree table and path bar", + "Module": "Diff viewer", "Doc": "" }, { - "CName": "cui_file_browser_ex", - "CsName": "FileBrowser", - "CsReturn": "NativeFileBrowserResult", + "CName": "cui_chat_message_ex", + "CsName": "ChatMessage", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -38142,8 +43199,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -38155,37 +43212,15 @@ } } }, - { - "CName": "path", - "CsName": "path", - "CsType": "nint", - "Type": { - "Spelling": "char *", - "Kind": "Pointer", - "Element": { - "Spelling": "char", - "Kind": "Char_S" - } - } - }, - { - "CName": "path_cap", - "CsName": "pathCap", - "CsType": "nuint", - "Type": { - "Spelling": "size_t", - "Kind": "ULongLong" - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeFileBrowserOpts", + "CsType": "in NativeChatOpts", "Type": { - "Spelling": "const cui_file_browser_opts *", + "Spelling": "const cui_chat_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_file_browser_opts", + "Spelling": "const cui_chat_opts", "Kind": "Record", "IsConst": true } @@ -38193,16 +43228,16 @@ } ], "ReturnType": { - "Spelling": "cui_file_browser_result", - "Kind": "Record" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Tree table and path bar", - "Doc": "path: the folder shown, yours; the browser writes it as you move around." + "Module": "Conversation", + "Doc": "" }, { - "CName": "cui_file_picker_ex", - "CsName": "FilePicker", - "CsReturn": "byte", + "CName": "cui_chat_divider", + "CsName": "ChatDivider", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -38218,8 +43253,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -38230,68 +43265,59 @@ "IsConst": true } } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Conversation", + "Doc": "\"Today\"" + }, + { + "CName": "cui_typing_indicator", + "CsName": "TypingIndicator", + "CsReturn": "void", + "Params": [ { - "CName": "open", - "CsName": "open", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "_Bool *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "out", - "CsName": "@out", + "CName": "name", + "CsName": "name", "CsType": "nint", "Type": { - "Spelling": "char *", - "Kind": "Pointer", - "Element": { - "Spelling": "char", - "Kind": "Char_S" - } - } - }, - { - "CName": "out_cap", - "CsName": "outCap", - "CsType": "nuint", - "Type": { - "Spelling": "size_t", - "Kind": "ULongLong" - } - }, - { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeFilePickerOpts", - "Type": { - "Spelling": "const cui_file_picker_opts *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_file_picker_opts", - "Kind": "Record", + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Tree table and path bar", - "Doc": "True once, with the chosen path in out, when the dialog is confirmed; *open turns false then, or on Cancel and Esc." + "Module": "Conversation", + "Doc": "bouncing dots, still with reduced motion" }, { - "CName": "cui_code_block_ex", - "CsName": "CodeBlock", - "CsReturn": "void", + "CName": "cui_comment_ex", + "CsName": "Comment", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -38321,8 +43347,22 @@ } }, { - "CName": "code", - "CsName": "code", + "CName": "author", + "CsName": "author", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -38337,12 +43377,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeCodeOpts", + "CsType": "in NativeCommentOpts", "Type": { - "Spelling": "const cui_code_opts *", + "Spelling": "const cui_comment_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_code_opts", + "Spelling": "const cui_comment_opts", "Kind": "Record", "IsConst": true } @@ -38350,16 +43390,16 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Code", + "Module": "Conversation", "Doc": "" }, { - "CName": "cui_json_view_ex", - "CsName": "JsonView", - "CsReturn": "byte", + "CName": "cui_presence", + "CsName": "Presence", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -38389,45 +43429,58 @@ } }, { - "CName": "json", - "CsName": "json", + "CName": "users", + "CsName": "users", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "const cui_presence_user *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", + "Spelling": "const cui_presence_user", + "Kind": "Record", "IsConst": true } } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeJsonOpts", + "CName": "count", + "CsName": "count", + "CsType": "int", "Type": { - "Spelling": "const cui_json_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_json_opts", - "Kind": "Record", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "max_visible", + "CsName": "maxVisible", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "size", + "CsName": "size", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Code", + "Module": "Conversation", "Doc": "" }, { - "CName": "cui_markdown_ex", - "CsName": "Markdown", - "CsReturn": "NativeMarkdownResult", + "CName": "cui_carousel_begin", + "CsName": "CarouselBegin", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -38457,85 +43510,131 @@ } }, { - "CName": "text", - "CsName": "text", - "CsType": "nint", + "CName": "count", + "CsName": "count", + "CsType": "int", "Type": { - "Spelling": "const char *", + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "index", + "CsName": "index", + "CsType": "ref int", + "Type": { + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "int", + "Kind": "Int" } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeMarkdownOpts", + "CsType": "in NativeCarouselOpts", + "Type": { + "Spelling": "const cui_carousel_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_carousel_opts", + "Kind": "Record", + "IsConst": true + } + } + } + ], + "ReturnType": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Module": "Media", + "Doc": "" + }, + { + "CName": "cui_carousel_slide_begin", + "CsName": "CarouselSlideBegin", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "const cui_markdown_opts *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_markdown_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } } ], "ReturnType": { - "Spelling": "cui_markdown_result", - "Kind": "Record" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Markdown view", + "Module": "Media", "Doc": "" }, { - "CName": "cui_markdown_apply_task", - "CsName": "MarkdownApplyTask", - "CsReturn": "byte", + "CName": "cui_carousel_slide_end", + "CsName": "CarouselSlideEnd", + "CsReturn": "void", "Params": [ { - "CName": "text", - "CsName": "text", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "char *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "char", - "Kind": "Char_S" + "Spelling": "cui_ctx", + "Kind": "Record" } } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Media", + "Doc": "" + }, + { + "CName": "cui_carousel_end", + "CsName": "CarouselEnd", + "CsReturn": "void", + "Params": [ { - "CName": "result", - "CsName": "result", - "CsType": "in NativeMarkdownResult", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "const cui_markdown_result *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_markdown_result", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Markdown view", - "Doc": "Writes a reported task toggle into text ('x' or ' ' between the brackets). Returns false when nothing was toggled or text no longer has a box there." + "Module": "Media", + "Doc": "" }, { - "CName": "cui_code_editor_ex", - "CsName": "CodeEditor", - "CsReturn": "NativeCodeEditorResult", + "CName": "cui_image_compare_ex", + "CsName": "ImageCompare", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -38565,36 +43664,45 @@ } }, { - "CName": "buf", - "CsName": "buf", - "CsType": "nint", + "CName": "before", + "CsName": "before", + "CsType": "nuint", "Type": { - "Spelling": "char *", - "Kind": "Pointer", - "Element": { - "Spelling": "char", - "Kind": "Char_S" - } + "Spelling": "cui_texture", + "Kind": "ULongLong" } }, { - "CName": "cap", - "CsName": "cap", + "CName": "after", + "CsName": "after", "CsType": "nuint", "Type": { - "Spelling": "size_t", + "Spelling": "cui_texture", "Kind": "ULongLong" } }, + { + "CName": "pos", + "CsName": "pos", + "CsType": "ref float", + "Type": { + "Spelling": "float *", + "Kind": "Pointer", + "Element": { + "Spelling": "float", + "Kind": "Float" + } + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeCodeEditorOpts", + "CsType": "in NativeCompareOpts", "Type": { - "Spelling": "const cui_code_editor_opts *", + "Spelling": "const cui_compare_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_code_editor_opts", + "Spelling": "const cui_compare_opts", "Kind": "Record", "IsConst": true } @@ -38602,15 +43710,15 @@ } ], "ReturnType": { - "Spelling": "cui_code_editor_result", - "Kind": "Record" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Code editor", + "Module": "Media", "Doc": "" }, { - "CName": "cui_code_editor_goto", - "CsName": "CodeEditorGoto", + "CName": "cui_card_stack_begin", + "CsName": "CardStackBegin", "CsReturn": "void", "Params": [ { @@ -38641,8 +43749,8 @@ } }, { - "CName": "line", - "CsName": "line", + "CName": "count", + "CsName": "count", "CsType": "int", "Type": { "Spelling": "int", @@ -38650,12 +43758,17 @@ } }, { - "CName": "column", - "CsName": "column", - "CsType": "int", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeCardStackOpts", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const cui_card_stack_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_card_stack_opts", + "Kind": "Record", + "IsConst": true + } } } ], @@ -38663,12 +43776,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Code editor", - "Doc": "On the editor's next frame: put the caret at a line and column (1 based), focus the editor and scroll there. Call from the same id scope." + "Module": "Media", + "Doc": "" }, { - "CName": "cui_code_editor_select", - "CsName": "CodeEditorSelect", + "CName": "cui_card_stack_item_begin", + "CsName": "CardStackItemBegin", "CsReturn": "void", "Params": [ { @@ -38685,31 +43798,8 @@ } }, { - "CName": "id", - "CsName": "id", - "CsType": "nint", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - }, - { - "CName": "anchor", - "CsName": "anchor", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "cursor", - "CsName": "cursor", + "CName": "depth", + "CsName": "depth", "CsType": "int", "Type": { "Spelling": "int", @@ -38721,12 +43811,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Code editor", - "Doc": "On the next frame: select bytes anchor..cursor, focus and scroll there." + "Module": "Media", + "Doc": "" }, { - "CName": "cui_code_editor_find", - "CsName": "CodeEditorFind", + "CName": "cui_card_stack_item_end", + "CsName": "CardStackItemEnd", "CsReturn": "void", "Params": [ { @@ -38741,47 +43831,19 @@ "Kind": "Record" } } - }, - { - "CName": "id", - "CsName": "id", - "CsType": "nint", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - }, - { - "CName": "query", - "CsName": "query", - "CsType": "nint", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Code editor", - "Doc": "Opens the find bar with query and selects the next match (NULL closes)." + "Module": "Media", + "Doc": "" }, { - "CName": "cui_diff_view_ex", - "CsName": "DiffView", - "CsReturn": "NativeDiffResult", + "CName": "cui_card_stack_end", + "CsName": "CardStackEnd", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -38795,24 +43857,36 @@ "Kind": "Record" } } - }, + } + ], + "ReturnType": { + "Spelling": "int", + "Kind": "Int" + }, + "Module": "Media", + "Doc": "" + }, + { + "CName": "cui_counter_ex", + "CsName": "Counter", + "CsReturn": "void", + "Params": [ { - "CName": "id", - "CsName": "id", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "old_text", - "CsName": "oldText", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -38825,28 +43899,23 @@ } }, { - "CName": "new_text", - "CsName": "newText", - "CsType": "nint", + "CName": "value", + "CsName": "value", + "CsType": "double", "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "double", + "Kind": "Double" } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeDiffOpts", + "CsType": "in NativeCounterOpts", "Type": { - "Spelling": "const cui_diff_opts *", + "Spelling": "const cui_counter_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_diff_opts", + "Spelling": "const cui_counter_opts", "Kind": "Record", "IsConst": true } @@ -38854,16 +43923,16 @@ } ], "ReturnType": { - "Spelling": "cui_diff_result", - "Kind": "Record" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Diff viewer", + "Module": "Media", "Doc": "" }, { - "CName": "cui_diff_view_rows", - "CsName": "DiffViewRows", - "CsReturn": "int", + "CName": "cui_ticker_ex", + "CsName": "Ticker", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -38893,21 +43962,22 @@ } }, { - "CName": "rows", - "CsName": "rows", + "CName": "items", + "CsName": "items", "CsType": "nint", "Type": { - "Spelling": "cui_diff_row *", + "Spelling": "const cui_ticker_item *", "Kind": "Pointer", "Element": { - "Spelling": "cui_diff_row", - "Kind": "Record" + "Spelling": "const cui_ticker_item", + "Kind": "Record", + "IsConst": true } } }, { - "CName": "first", - "CsName": "first", + "CName": "count", + "CsName": "count", "CsType": "int", "Type": { "Spelling": "int", @@ -38915,53 +43985,48 @@ } }, { - "CName": "cap", - "CsName": "cap", - "CsType": "int", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeTickerOpts", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const cui_ticker_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_ticker_opts", + "Kind": "Record", + "IsConst": true + } } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Diff viewer", + "Module": "Media", "Doc": "" }, { - "CName": "cui_diff_compute", - "CsName": "DiffCompute", + "CName": "cui_heatmap_ex", + "CsName": "Heatmap", "CsReturn": "int", "Params": [ { - "CName": "old_text", - "CsName": "oldText", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "old_len", - "CsName": "oldLen", - "CsType": "nuint", - "Type": { - "Spelling": "size_t", - "Kind": "ULongLong" - } - }, - { - "CName": "new_text", - "CsName": "newText", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -38974,39 +44039,22 @@ } }, { - "CName": "new_len", - "CsName": "newLen", - "CsType": "nuint", - "Type": { - "Spelling": "size_t", - "Kind": "ULongLong" - } - }, - { - "CName": "flags", - "CsName": "flags", - "CsType": "uint", - "Type": { - "Spelling": "unsigned int", - "Kind": "UInt" - } - }, - { - "CName": "hunks", - "CsName": "hunks", + "CName": "values", + "CsName": "values", "CsType": "nint", "Type": { - "Spelling": "cui_diff_hunk *", + "Spelling": "const float *", "Kind": "Pointer", "Element": { - "Spelling": "cui_diff_hunk", - "Kind": "Record" + "Spelling": "const float", + "Kind": "Float", + "IsConst": true } } }, { - "CName": "cap", - "CsName": "cap", + "CName": "rows", + "CsName": "rows", "CsType": "int", "Type": { "Spelling": "int", @@ -39014,15 +44062,25 @@ } }, { - "CName": "stats", - "CsName": "stats", - "CsType": "nint", + "CName": "cols", + "CsName": "cols", + "CsType": "int", "Type": { - "Spelling": "cui_diff_stats *", + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeHeatmapOpts", + "Type": { + "Spelling": "const cui_heatmap_opts *", "Kind": "Pointer", "Element": { - "Spelling": "cui_diff_stats", - "Kind": "Record" + "Spelling": "const cui_heatmap_opts", + "Kind": "Record", + "IsConst": true } } } @@ -39031,40 +44089,30 @@ "Spelling": "int", "Kind": "Int" }, - "Module": "Diff viewer", + "Module": "More charts", "Doc": "" }, { - "CName": "cui_diff_words", - "CsName": "DiffWords", - "CsReturn": "byte", + "CName": "cui_calendar_heatmap_ex", + "CsName": "CalendarHeatmap", + "CsReturn": "int", "Params": [ { - "CName": "old_line", - "CsName": "oldLine", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "old_len", - "CsName": "oldLen", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "new_line", - "CsName": "newLine", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -39077,87 +44125,63 @@ } }, { - "CName": "new_len", - "CsName": "newLen", - "CsType": "int", + "CName": "start", + "CsName": "start", + "CsType": "NativeDate", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_date", + "Kind": "Record" } }, { - "CName": "old_ranges", - "CsName": "oldRanges", + "CName": "values", + "CsName": "values", "CsType": "nint", "Type": { - "Spelling": "cui_diff_range *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_diff_range", - "Kind": "Record" - } - } - }, - { - "CName": "old_count", - "CsName": "oldCount", - "CsType": "ref int", - "Type": { - "Spelling": "int *", + "Spelling": "const float *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const float", + "Kind": "Float", + "IsConst": true } } }, { - "CName": "new_ranges", - "CsName": "newRanges", - "CsType": "nint", + "CName": "days", + "CsName": "days", + "CsType": "int", "Type": { - "Spelling": "cui_diff_range *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_diff_range", - "Kind": "Record" - } + "Spelling": "int", + "Kind": "Int" } }, { - "CName": "new_count", - "CsName": "newCount", - "CsType": "ref int", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeCalendarHeatmapOpts", "Type": { - "Spelling": "int *", + "Spelling": "const cui_calendar_heatmap_opts *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const cui_calendar_heatmap_opts", + "Kind": "Record", + "IsConst": true } } - }, - { - "CName": "cap", - "CsName": "cap", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Diff viewer", + "Module": "More charts", "Doc": "" }, { - "CName": "cui_chat_message_ex", - "CsName": "ChatMessage", - "CsReturn": "void", + "CName": "cui_treemap_ex", + "CsName": "Treemap", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -39173,8 +44197,8 @@ } }, { - "CName": "text", - "CsName": "text", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -39186,15 +44210,38 @@ } } }, + { + "CName": "items", + "CsName": "items", + "CsType": "nint", + "Type": { + "Spelling": "const cui_viz_item *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_viz_item", + "Kind": "Record", + "IsConst": true + } + } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeChatOpts", + "CsType": "in NativeTreemapOpts", "Type": { - "Spelling": "const cui_chat_opts *", + "Spelling": "const cui_treemap_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_chat_opts", + "Spelling": "const cui_treemap_opts", "Kind": "Record", "IsConst": true } @@ -39202,16 +44249,16 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Conversation", + "Module": "More charts", "Doc": "" }, { - "CName": "cui_chat_divider", - "CsName": "ChatDivider", - "CsReturn": "void", + "CName": "cui_radar_chart_ex", + "CsName": "RadarChart", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -39227,8 +44274,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -39239,58 +44286,83 @@ "IsConst": true } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Conversation", - "Doc": "\"Today\"" - }, - { - "CName": "cui_typing_indicator", - "CsName": "TypingIndicator", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "series", + "CsName": "series", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const cui_series *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const cui_series", + "Kind": "Record", + "IsConst": true } } }, { - "CName": "name", - "CsName": "name", + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "axes", + "CsName": "axes", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "const char *const *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + } + }, + { + "CName": "axis_count", + "CsName": "axisCount", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeRadarOpts", + "Type": { + "Spelling": "const cui_radar_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_radar_opts", + "Kind": "Record", "IsConst": true } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Conversation", - "Doc": "bouncing dots" + "Module": "More charts", + "Doc": "" }, { - "CName": "cui_comment_ex", - "CsName": "Comment", + "CName": "cui_funnel_ex", + "CsName": "Funnel", "CsReturn": "int", "Params": [ { @@ -39321,42 +44393,37 @@ } }, { - "CName": "author", - "CsName": "author", + "CName": "stages", + "CsName": "stages", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "const cui_viz_item *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", + "Spelling": "const cui_viz_item", + "Kind": "Record", "IsConst": true } } }, { - "CName": "text", - "CsName": "text", - "CsType": "nint", + "CName": "count", + "CsName": "count", + "CsType": "int", "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeCommentOpts", + "CsType": "in NativeFunnelOpts", "Type": { - "Spelling": "const cui_comment_opts *", + "Spelling": "const cui_funnel_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_comment_opts", + "Spelling": "const cui_funnel_opts", "Kind": "Record", "IsConst": true } @@ -39367,13 +44434,13 @@ "Spelling": "int", "Kind": "Int" }, - "Module": "Conversation", + "Module": "More charts", "Doc": "" }, { - "CName": "cui_presence", - "CsName": "Presence", - "CsReturn": "void", + "CName": "cui_sankey_ex", + "CsName": "Sankey", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -39403,22 +44470,27 @@ } }, { - "CName": "users", - "CsName": "users", + "CName": "nodes", + "CsName": "nodes", "CsType": "nint", "Type": { - "Spelling": "const cui_presence_user *", + "Spelling": "const char *const *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_presence_user", - "Kind": "Record", - "IsConst": true + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } } }, { - "CName": "count", - "CsName": "count", + "CName": "node_count", + "CsName": "nodeCount", "CsType": "int", "Type": { "Spelling": "int", @@ -39426,8 +44498,22 @@ } }, { - "CName": "max_visible", - "CsName": "maxVisible", + "CName": "links", + "CsName": "links", + "CsType": "nint", + "Type": { + "Spelling": "const cui_sankey_link *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_sankey_link", + "Kind": "Record", + "IsConst": true + } + } + }, + { + "CName": "link_count", + "CsName": "linkCount", "CsType": "int", "Type": { "Spelling": "int", @@ -39435,26 +44521,31 @@ } }, { - "CName": "size", - "CsName": "size", - "CsType": "float", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeSankeyOpts", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const cui_sankey_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_sankey_opts", + "Kind": "Record", + "IsConst": true + } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Conversation", - "Doc": "" + "Module": "More charts", + "Doc": "Returns the clicked node index, node_count + the clicked input link index, or -1." }, { - "CName": "cui_carousel_begin", - "CsName": "CarouselBegin", - "CsReturn": "byte", + "CName": "cui_waffle_ex", + "CsName": "Waffle", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -39483,6 +44574,20 @@ } } }, + { + "CName": "items", + "CsName": "items", + "CsType": "nint", + "Type": { + "Spelling": "const cui_viz_item *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_viz_item", + "Kind": "Record", + "IsConst": true + } + } + }, { "CName": "count", "CsName": "count", @@ -39492,28 +44597,15 @@ "Kind": "Int" } }, - { - "CName": "index", - "CsName": "index", - "CsType": "ref int", - "Type": { - "Spelling": "int *", - "Kind": "Pointer", - "Element": { - "Spelling": "int", - "Kind": "Int" - } - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeCarouselOpts", + "CsType": "in NativeWaffleOpts", "Type": { - "Spelling": "const cui_carousel_opts *", + "Spelling": "const cui_waffle_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_carousel_opts", + "Spelling": "const cui_waffle_opts", "Kind": "Record", "IsConst": true } @@ -39521,16 +44613,16 @@ } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Media", + "Module": "More charts", "Doc": "" }, { - "CName": "cui_carousel_slide_begin", - "CsName": "CarouselSlideBegin", - "CsReturn": "void", + "CName": "cui_split_bar_ex", + "CsName": "SplitBar", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -39544,71 +44636,70 @@ "Kind": "Record" } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Media", - "Doc": "" - }, - { - "CName": "cui_carousel_slide_end", - "CsName": "CarouselSlideEnd", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Media", - "Doc": "" - }, - { - "CName": "cui_carousel_end", - "CsName": "CarouselEnd", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "items", + "CsName": "items", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const cui_viz_item *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const cui_viz_item", + "Kind": "Record", + "IsConst": true + } + } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeSplitBarOpts", + "Type": { + "Spelling": "const cui_split_bar_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_split_bar_opts", + "Kind": "Record", + "IsConst": true } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Media", + "Module": "More charts", "Doc": "" }, { - "CName": "cui_image_compare_ex", - "CsName": "ImageCompare", - "CsReturn": "byte", + "CName": "cui_bar_list_ex", + "CsName": "BarList", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -39638,45 +44729,37 @@ } }, { - "CName": "before", - "CsName": "before", - "CsType": "nuint", - "Type": { - "Spelling": "cui_texture", - "Kind": "ULongLong" - } - }, - { - "CName": "after", - "CsName": "after", - "CsType": "nuint", + "CName": "items", + "CsName": "items", + "CsType": "nint", "Type": { - "Spelling": "cui_texture", - "Kind": "ULongLong" + "Spelling": "const cui_viz_item *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_viz_item", + "Kind": "Record", + "IsConst": true + } } }, { - "CName": "pos", - "CsName": "pos", - "CsType": "ref float", + "CName": "count", + "CsName": "count", + "CsType": "int", "Type": { - "Spelling": "float *", - "Kind": "Pointer", - "Element": { - "Spelling": "float", - "Kind": "Float" - } + "Spelling": "int", + "Kind": "Int" } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeCompareOpts", + "CsType": "in NativeBarListOpts", "Type": { - "Spelling": "const cui_compare_opts *", + "Spelling": "const cui_bar_list_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_compare_opts", + "Spelling": "const cui_bar_list_opts", "Kind": "Record", "IsConst": true } @@ -39684,16 +44767,16 @@ } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Media", + "Module": "More charts", "Doc": "" }, { - "CName": "cui_card_stack_begin", - "CsName": "CardStackBegin", - "CsReturn": "void", + "CName": "cui_activity_rings_ex", + "CsName": "ActivityRings", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -39722,6 +44805,20 @@ } } }, + { + "CName": "rings", + "CsName": "rings", + "CsType": "nint", + "Type": { + "Spelling": "const cui_viz_item *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_viz_item", + "Kind": "Record", + "IsConst": true + } + } + }, { "CName": "count", "CsName": "count", @@ -39734,12 +44831,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeCardStackOpts", + "CsType": "in NativeRingsOpts", "Type": { - "Spelling": "const cui_card_stack_opts *", + "Spelling": "const cui_rings_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_card_stack_opts", + "Spelling": "const cui_rings_opts", "Kind": "Record", "IsConst": true } @@ -39747,16 +44844,16 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Media", + "Module": "More charts", "Doc": "" }, { - "CName": "cui_card_stack_item_begin", - "CsName": "CardStackItemBegin", - "CsReturn": "void", + "CName": "cui_scatter_chart_ex", + "CsName": "ScatterChart", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -39772,63 +44869,53 @@ } }, { - "CName": "depth", - "CsName": "depth", - "CsType": "int", + "CName": "id", + "CsName": "id", + "CsType": "nint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Media", - "Doc": "" - }, - { - "CName": "cui_card_stack_item_end", - "CsName": "CardStackItemEnd", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "series", + "CsName": "series", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const cui_scatter_series *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const cui_scatter_series", + "Kind": "Record", + "IsConst": true } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Media", - "Doc": "" - }, - { - "CName": "cui_card_stack_end", - "CsName": "CardStackEnd", - "CsReturn": "int", - "Params": [ + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeScatterOpts", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const cui_scatter_opts *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const cui_scatter_opts", + "Kind": "Record", + "IsConst": true } } } @@ -39837,12 +44924,12 @@ "Spelling": "int", "Kind": "Int" }, - "Module": "Media", + "Module": "More charts", "Doc": "" }, { - "CName": "cui_counter_ex", - "CsName": "Counter", + "CName": "cui_radial_gauge_ex", + "CsName": "RadialGauge", "CsReturn": "void", "Params": [ { @@ -39875,21 +44962,39 @@ { "CName": "value", "CsName": "value", - "CsType": "double", + "CsType": "float", "Type": { - "Spelling": "double", - "Kind": "Double" + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "min", + "CsName": "min", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "max", + "CsName": "max", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeCounterOpts", + "CsType": "in NativeRadialGaugeOpts", "Type": { - "Spelling": "const cui_counter_opts *", + "Spelling": "const cui_radial_gauge_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_counter_opts", + "Spelling": "const cui_radial_gauge_opts", "Kind": "Record", "IsConst": true } @@ -39900,13 +45005,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Media", + "Module": "More charts", "Doc": "" }, { - "CName": "cui_ticker_ex", - "CsName": "Ticker", - "CsReturn": "void", + "CName": "cui_candlestick_ex", + "CsName": "Candlestick", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -39936,14 +45041,14 @@ } }, { - "CName": "items", - "CsName": "items", + "CName": "candles", + "CsName": "candles", "CsType": "nint", "Type": { - "Spelling": "const cui_ticker_item *", + "Spelling": "const cui_candle *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_ticker_item", + "Spelling": "const cui_candle", "Kind": "Record", "IsConst": true } @@ -39961,12 +45066,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeTickerOpts", + "CsType": "in NativeCandlestickOpts", "Type": { - "Spelling": "const cui_ticker_opts *", + "Spelling": "const cui_candlestick_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_ticker_opts", + "Spelling": "const cui_candlestick_opts", "Kind": "Record", "IsConst": true } @@ -39974,16 +45079,16 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Media", - "Doc": "" + "Module": "More charts", + "Doc": "Returns the candle under the crosshair (pointer or keys), or -1." }, { - "CName": "cui_heatmap_ex", - "CsName": "Heatmap", - "CsReturn": "int", + "CName": "cui_shimmer_text_ex", + "CsName": "ShimmerText", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -39999,8 +45104,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -40013,46 +45118,82 @@ } }, { - "CName": "values", - "CsName": "values", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeTextFxOpts", "Type": { - "Spelling": "const float *", + "Spelling": "const cui_text_fx_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const float", - "Kind": "Float", + "Spelling": "const cui_text_fx_opts", + "Kind": "Record", "IsConst": true } } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Motion and text effects", + "Doc": "Text with a highlight sweeping across it, for \"Thinking...\" states." + }, + { + "CName": "cui_typewriter_ex", + "CsName": "Typewriter", + "CsReturn": "byte", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } }, { - "CName": "rows", - "CsName": "rows", - "CsType": "int", + "CName": "id", + "CsName": "id", + "CsType": "nint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } }, { - "CName": "cols", - "CsName": "cols", - "CsType": "int", + "CName": "text", + "CsName": "text", + "CsType": "nint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeHeatmapOpts", + "CsType": "in NativeTextFxOpts", "Type": { - "Spelling": "const cui_heatmap_opts *", + "Spelling": "const cui_text_fx_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_heatmap_opts", + "Spelling": "const cui_text_fx_opts", "Kind": "Record", "IsConst": true } @@ -40060,16 +45201,16 @@ } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "More charts", - "Doc": "" + "Module": "Motion and text effects", + "Doc": "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." }, { - "CName": "cui_calendar_heatmap_ex", - "CsName": "CalendarHeatmap", - "CsReturn": "int", + "CName": "cui_text_reveal_ex", + "CsName": "TextReveal", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -40099,46 +45240,28 @@ } }, { - "CName": "start", - "CsName": "start", - "CsType": "NativeDate", - "Type": { - "Spelling": "cui_date", - "Kind": "Record" - } - }, - { - "CName": "values", - "CsName": "values", + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { - "Spelling": "const float *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const float", - "Kind": "Float", + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } } }, - { - "CName": "days", - "CsName": "days", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeCalendarHeatmapOpts", + "CsType": "in NativeTextFxOpts", "Type": { - "Spelling": "const cui_calendar_heatmap_opts *", + "Spelling": "const cui_text_fx_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_calendar_heatmap_opts", + "Spelling": "const cui_text_fx_opts", "Kind": "Record", "IsConst": true } @@ -40146,16 +45269,16 @@ } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "void", + "Kind": "Void" }, - "Module": "More charts", - "Doc": "" + "Module": "Motion and text effects", + "Doc": "Words fade and rise into place one after another, when first shown and again whenever the text changes." }, { - "CName": "cui_treemap_ex", - "CsName": "Treemap", - "CsReturn": "int", + "CName": "cui_word_rotate_ex", + "CsName": "WordRotate", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -40185,16 +45308,21 @@ } }, { - "CName": "items", - "CsName": "items", + "CName": "words", + "CsName": "words", "CsType": "nint", "Type": { - "Spelling": "const cui_viz_item *", + "Spelling": "const char *const *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_viz_item", - "Kind": "Record", - "IsConst": true + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } } }, @@ -40207,15 +45335,24 @@ "Kind": "Int" } }, + { + "CName": "interval", + "CsName": "interval", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeTreemapOpts", + "CsType": "in NativeTextFxOpts", "Type": { - "Spelling": "const cui_treemap_opts *", + "Spelling": "const cui_text_fx_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_treemap_opts", + "Spelling": "const cui_text_fx_opts", "Kind": "Record", "IsConst": true } @@ -40223,16 +45360,16 @@ } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "void", + "Kind": "Void" }, - "Module": "More charts", - "Doc": "" + "Module": "Motion and text effects", + "Doc": "One word at a time; the next one rolls up into place and the width follows." }, { - "CName": "cui_radar_chart_ex", - "CsName": "RadarChart", - "CsReturn": "int", + "CName": "cui_number_roll_ex", + "CsName": "NumberRoll", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -40262,65 +45399,82 @@ } }, { - "CName": "series", - "CsName": "series", + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { - "Spelling": "const cui_series *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_series", - "Kind": "Record", + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } } }, { - "CName": "count", - "CsName": "count", - "CsType": "int", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeTextFxOpts", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const cui_text_fx_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_text_fx_opts", + "Kind": "Record", + "IsConst": true + } } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Motion and text effects", + "Doc": "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 (\"$64,210\", \"1.2k\"); digits are tabular." + }, + { + "CName": "cui_gradient_text_ex", + "CsName": "GradientText", + "CsReturn": "void", + "Params": [ { - "CName": "axes", - "CsName": "axes", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const char *const *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "axis_count", - "CsName": "axisCount", - "CsType": "int", + "CName": "text", + "CsName": "text", + "CsType": "nint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeRadarOpts", + "CsType": "in NativeGradientTextOpts", "Type": { - "Spelling": "const cui_radar_opts *", + "Spelling": "const cui_gradient_text_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_radar_opts", + "Spelling": "const cui_gradient_text_opts", "Kind": "Record", "IsConst": true } @@ -40328,16 +45482,16 @@ } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "void", + "Kind": "Void" }, - "Module": "More charts", + "Module": "Motion and text effects", "Doc": "" }, { - "CName": "cui_funnel_ex", - "CsName": "Funnel", - "CsReturn": "int", + "CName": "cui_spotlight_begin", + "CsName": "SpotlightBegin", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -40367,54 +45521,57 @@ } }, { - "CName": "stages", - "CsName": "stages", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeSpotlightOpts", "Type": { - "Spelling": "const cui_viz_item *", + "Spelling": "const cui_spotlight_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_viz_item", + "Spelling": "const cui_spotlight_opts", "Kind": "Record", "IsConst": true } } - }, - { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Motion and text effects", + "Doc": "" + }, + { + "CName": "cui_spotlight_end", + "CsName": "SpotlightEnd", + "CsReturn": "void", + "Params": [ { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeFunnelOpts", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "const cui_funnel_opts *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_funnel_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "void", + "Kind": "Void" }, - "Module": "More charts", + "Module": "Motion and text effects", "Doc": "" }, { - "CName": "cui_sankey_ex", - "CsName": "Sankey", - "CsReturn": "int", + "CName": "cui_loader_ex", + "CsName": "Loader", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -40430,79 +45587,68 @@ } }, { - "CName": "id", - "CsName": "id", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeLoaderOpts", "Type": { - "Spelling": "const char *", + "Spelling": "const cui_loader_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", + "Spelling": "const cui_loader_opts", + "Kind": "Record", "IsConst": true } } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Motion and text effects", + "Doc": "" + }, + { + "CName": "cui_dock_begin", + "CsName": "DockBegin", + "CsReturn": "void", + "Params": [ { - "CName": "nodes", - "CsName": "nodes", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const char *const *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "node_count", - "CsName": "nodeCount", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "links", - "CsName": "links", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { - "Spelling": "const cui_sankey_link *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_sankey_link", - "Kind": "Record", + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } } }, - { - "CName": "link_count", - "CsName": "linkCount", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeSankeyOpts", + "CsType": "in NativeDockOpts", "Type": { - "Spelling": "const cui_sankey_opts *", + "Spelling": "const cui_dock_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_sankey_opts", + "Spelling": "const cui_dock_opts", "Kind": "Record", "IsConst": true } @@ -40510,16 +45656,16 @@ } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "void", + "Kind": "Void" }, - "Module": "More charts", + "Module": "Motion and text effects", "Doc": "" }, { - "CName": "cui_waffle_ex", - "CsName": "Waffle", - "CsReturn": "int", + "CName": "cui_dock_item_ex", + "CsName": "DockItem", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -40535,8 +45681,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "icon", + "CsName": "icon", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -40549,37 +45695,28 @@ } }, { - "CName": "items", - "CsName": "items", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { - "Spelling": "const cui_viz_item *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_viz_item", - "Kind": "Record", + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } } }, - { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeWaffleOpts", + "CsType": "in NativeDockItemOpts", "Type": { - "Spelling": "const cui_waffle_opts *", + "Spelling": "const cui_dock_item_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_waffle_opts", + "Spelling": "const cui_dock_item_opts", "Kind": "Record", "IsConst": true } @@ -40587,16 +45724,16 @@ } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "More charts", + "Module": "Motion and text effects", "Doc": "" }, { - "CName": "cui_split_bar_ex", - "CsName": "SplitBar", - "CsReturn": "int", + "CName": "cui_dock_separator", + "CsName": "DockSeparator", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -40610,70 +45747,45 @@ "Kind": "Record" } } - }, - { - "CName": "id", - "CsName": "id", - "CsType": "nint", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Motion and text effects", + "Doc": "" + }, + { + "CName": "cui_dock_end", + "CsName": "DockEnd", + "CsReturn": "void", + "Params": [ { - "CName": "items", - "CsName": "items", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const cui_viz_item *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_viz_item", - "Kind": "Record", - "IsConst": true - } - } - }, - { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeSplitBarOpts", - "Type": { - "Spelling": "const cui_split_bar_opts *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_split_bar_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "void", + "Kind": "Void" }, - "Module": "More charts", + "Module": "Motion and text effects", "Doc": "" }, { - "CName": "cui_bar_list_ex", - "CsName": "BarList", - "CsReturn": "int", + "CName": "cui_tab_bar_ex", + "CsName": "TabBar", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -40707,10 +45819,10 @@ "CsName": "items", "CsType": "nint", "Type": { - "Spelling": "const cui_viz_item *", + "Spelling": "const cui_tab_bar_item *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_viz_item", + "Spelling": "const cui_tab_bar_item", "Kind": "Record", "IsConst": true } @@ -40725,15 +45837,28 @@ "Kind": "Int" } }, + { + "CName": "selected", + "CsName": "selected", + "CsType": "ref int", + "Type": { + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeBarListOpts", + "CsType": "in NativeTabBarOpts", "Type": { - "Spelling": "const cui_bar_list_opts *", + "Spelling": "const cui_tab_bar_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_bar_list_opts", + "Spelling": "const cui_tab_bar_opts", "Kind": "Record", "IsConst": true } @@ -40741,16 +45866,16 @@ } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "More charts", - "Doc": "" + "Module": "Motion and text effects", + "Doc": "Move one tab per arrow press, keeping the move tied to the original focus." }, { - "CName": "cui_activity_rings_ex", - "CsName": "ActivityRings", - "CsReturn": "int", + "CName": "cui_control_tile_ex", + "CsName": "ControlTile", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -40766,8 +45891,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -40780,37 +45905,27 @@ } }, { - "CName": "rings", - "CsName": "rings", + "CName": "on", + "CsName": "on", "CsType": "nint", "Type": { - "Spelling": "const cui_viz_item *", + "Spelling": "_Bool *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_viz_item", - "Kind": "Record", - "IsConst": true + "Spelling": "_Bool", + "Kind": "Bool" } } }, - { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeRingsOpts", + "CsType": "in NativeTileOpts", "Type": { - "Spelling": "const cui_rings_opts *", + "Spelling": "const cui_tile_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_rings_opts", + "Spelling": "const cui_tile_opts", "Kind": "Record", "IsConst": true } @@ -40818,16 +45933,16 @@ } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "More charts", + "Module": "Motion and text effects", "Doc": "" }, { - "CName": "cui_scatter_chart_ex", - "CsName": "ScatterChart", - "CsReturn": "int", + "CName": "cui_waveform_ex", + "CsName": "Waveform", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -40857,15 +45972,15 @@ } }, { - "CName": "series", - "CsName": "series", + "CName": "peaks", + "CsName": "peaks", "CsType": "nint", "Type": { - "Spelling": "const cui_scatter_series *", + "Spelling": "const float *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_scatter_series", - "Kind": "Record", + "Spelling": "const float", + "Kind": "Float", "IsConst": true } } @@ -40879,15 +45994,28 @@ "Kind": "Int" } }, + { + "CName": "progress", + "CsName": "progress", + "CsType": "ref float", + "Type": { + "Spelling": "float *", + "Kind": "Pointer", + "Element": { + "Spelling": "float", + "Kind": "Float" + } + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeScatterOpts", + "CsType": "in NativeWaveformOpts", "Type": { - "Spelling": "const cui_scatter_opts *", + "Spelling": "const cui_waveform_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_scatter_opts", + "Spelling": "const cui_waveform_opts", "Kind": "Record", "IsConst": true } @@ -40895,16 +46023,16 @@ } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "More charts", + "Module": "Motion and text effects", "Doc": "" }, { - "CName": "cui_radial_gauge_ex", - "CsName": "RadialGauge", - "CsReturn": "void", + "CName": "cui_now_playing_ex", + "CsName": "NowPlaying", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -40934,41 +46062,27 @@ } }, { - "CName": "value", - "CsName": "value", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, - { - "CName": "min", - "CsName": "min", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, - { - "CName": "max", - "CsName": "max", - "CsType": "float", + "CName": "np", + "CsName": "np", + "CsType": "ref NativeNowPlaying", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "cui_now_playing *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_now_playing", + "Kind": "Record" + } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeRadialGaugeOpts", + "CsType": "in NativeNowPlayingOpts", "Type": { - "Spelling": "const cui_radial_gauge_opts *", + "Spelling": "const cui_now_playing_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_radial_gauge_opts", + "Spelling": "const cui_now_playing_opts", "Kind": "Record", "IsConst": true } @@ -40976,16 +46090,16 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "int", + "Kind": "Int" }, - "Module": "More charts", + "Module": "Motion and text effects", "Doc": "" }, { - "CName": "cui_candlestick_ex", - "CsName": "Candlestick", - "CsReturn": "int", + "CName": "cui_reasoning_begin", + "CsName": "ReasoningBegin", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -41015,53 +46129,56 @@ } }, { - "CName": "candles", - "CsName": "candles", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeReasoningOpts", "Type": { - "Spelling": "const cui_candle *", + "Spelling": "const cui_reasoning_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_candle", + "Spelling": "const cui_reasoning_opts", "Kind": "Record", "IsConst": true } } - }, - { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, + } + ], + "ReturnType": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Module": "AI interfaces", + "Doc": "" + }, + { + "CName": "cui_reasoning_end", + "CsName": "ReasoningEnd", + "CsReturn": "void", + "Params": [ { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeCandlestickOpts", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "const cui_candlestick_opts *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_candlestick_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "void", + "Kind": "Void" }, - "Module": "More charts", - "Doc": "Returns the candle under the crosshair (pointer or keys), or -1." + "Module": "AI interfaces", + "Doc": "" }, { - "CName": "cui_shimmer_text_ex", - "CsName": "ShimmerText", + "CName": "cui_tool_call_ex", + "CsName": "ToolCall", "CsReturn": "void", "Params": [ { @@ -41078,8 +46195,22 @@ } }, { - "CName": "text", - "CsName": "text", + "CName": "id", + "CsName": "id", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "name", + "CsName": "name", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -41094,12 +46225,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeTextFxOpts", + "CsType": "in NativeToolCallOpts", "Type": { - "Spelling": "const cui_text_fx_opts *", + "Spelling": "const cui_tool_call_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_text_fx_opts", + "Spelling": "const cui_tool_call_opts", "Kind": "Record", "IsConst": true } @@ -41110,13 +46241,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Motion and text effects", - "Doc": "Text with a highlight sweeping across it, for \"Thinking...\" states." + "Module": "AI interfaces", + "Doc": "" }, { - "CName": "cui_typewriter_ex", - "CsName": "Typewriter", - "CsReturn": "byte", + "CName": "cui_agent_plan_ex", + "CsName": "AgentPlan", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -41146,28 +46277,37 @@ } }, { - "CName": "text", - "CsName": "text", + "CName": "steps", + "CsName": "steps", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "const cui_plan_step *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", + "Spelling": "const cui_plan_step", + "Kind": "Record", "IsConst": true } } }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeTextFxOpts", + "CsType": "in NativeAgentPlanOpts", "Type": { - "Spelling": "const cui_text_fx_opts *", + "Spelling": "const cui_agent_plan_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_text_fx_opts", + "Spelling": "const cui_agent_plan_opts", "Kind": "Record", "IsConst": true } @@ -41175,15 +46315,15 @@ } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Motion and text effects", - "Doc": "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." + "Module": "AI interfaces", + "Doc": "" }, { - "CName": "cui_text_reveal_ex", - "CsName": "TextReveal", + "CName": "cui_agent_status_ex", + "CsName": "AgentStatus", "CsReturn": "void", "Params": [ { @@ -41199,20 +46339,6 @@ } } }, - { - "CName": "id", - "CsName": "id", - "CsType": "nint", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - }, { "CName": "text", "CsName": "text", @@ -41230,12 +46356,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeTextFxOpts", + "CsType": "in NativeAgentStatusOpts", "Type": { - "Spelling": "const cui_text_fx_opts *", + "Spelling": "const cui_agent_status_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_text_fx_opts", + "Spelling": "const cui_agent_status_opts", "Kind": "Record", "IsConst": true } @@ -41246,13 +46372,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Motion and text effects", - "Doc": "Words fade and rise into place one after another, when first shown and again whenever the text changes." + "Module": "AI interfaces", + "Doc": "" }, { - "CName": "cui_word_rotate_ex", - "CsName": "WordRotate", - "CsReturn": "void", + "CName": "cui_source_list", + "CsName": "SourceList", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -41282,21 +46408,16 @@ } }, { - "CName": "words", - "CsName": "words", + "CName": "sources", + "CsName": "sources", "CsType": "nint", "Type": { - "Spelling": "const char *const *", + "Spelling": "const cui_source *", "Kind": "Pointer", "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "const cui_source", + "Kind": "Record", + "IsConst": true } } }, @@ -41308,25 +46429,51 @@ "Spelling": "int", "Kind": "Int" } + } + ], + "ReturnType": { + "Spelling": "int", + "Kind": "Int" + }, + "Module": "AI interfaces", + "Doc": "" + }, + { + "CName": "cui_citation", + "CsName": "Citation", + "CsReturn": "byte", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } }, { - "CName": "interval", - "CsName": "interval", - "CsType": "float", + "CName": "number", + "CsName": "number", + "CsType": "int", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "int", + "Kind": "Int" } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeTextFxOpts", + "CName": "source", + "CsName": "source", + "CsType": "in NativeSource", "Type": { - "Spelling": "const cui_text_fx_opts *", + "Spelling": "const cui_source *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_text_fx_opts", + "Spelling": "const cui_source", "Kind": "Record", "IsConst": true } @@ -41334,15 +46481,15 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Motion and text effects", - "Doc": "One word at a time; the next one rolls up into place and the width follows." + "Module": "AI interfaces", + "Doc": "" }, { - "CName": "cui_number_roll_ex", - "CsName": "NumberRoll", + "CName": "cui_context_meter_ex", + "CsName": "ContextMeter", "CsReturn": "void", "Params": [ { @@ -41373,28 +46520,32 @@ } }, { - "CName": "text", - "CsName": "text", - "CsType": "nint", + "CName": "used", + "CsName": "used", + "CsType": "float", "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "limit", + "CsName": "limit", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeTextFxOpts", + "CsType": "in NativeContextOpts", "Type": { - "Spelling": "const cui_text_fx_opts *", + "Spelling": "const cui_context_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_text_fx_opts", + "Spelling": "const cui_context_opts", "Kind": "Record", "IsConst": true } @@ -41405,13 +46556,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Motion and text effects", - "Doc": "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 (\"$64,210\", \"1.2k\"); digits are tabular." + "Module": "AI interfaces", + "Doc": "" }, { - "CName": "cui_gradient_text_ex", - "CsName": "GradientText", - "CsReturn": "void", + "CName": "cui_response_actions_ex", + "CsName": "ResponseActions", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -41427,8 +46578,8 @@ } }, { - "CName": "text", - "CsName": "text", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -41443,12 +46594,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeGradientTextOpts", + "CsType": "in NativeResponseActionsOpts", "Type": { - "Spelling": "const cui_gradient_text_opts *", + "Spelling": "const cui_response_actions_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_gradient_text_opts", + "Spelling": "const cui_response_actions_opts", "Kind": "Record", "IsConst": true } @@ -41456,16 +46607,16 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Motion and text effects", + "Module": "AI interfaces", "Doc": "" }, { - "CName": "cui_spotlight_begin", - "CsName": "SpotlightBegin", - "CsReturn": "void", + "CName": "cui_prompt_suggestions_ex", + "CsName": "PromptSuggestions", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -41494,15 +46645,38 @@ } } }, + { + "CName": "items", + "CsName": "items", + "CsType": "nint", + "Type": { + "Spelling": "const cui_prompt_suggestion *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_prompt_suggestion", + "Kind": "Record", + "IsConst": true + } + } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeSpotlightOpts", + "CsType": "in NativePromptSuggestionsOpts", "Type": { - "Spelling": "const cui_spotlight_opts *", + "Spelling": "const cui_prompt_suggestions_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_spotlight_opts", + "Spelling": "const cui_prompt_suggestions_opts", "Kind": "Record", "IsConst": true } @@ -41510,16 +46684,16 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Motion and text effects", + "Module": "AI interfaces", "Doc": "" }, { - "CName": "cui_spotlight_end", - "CsName": "SpotlightEnd", - "CsReturn": "void", + "CName": "cui_model_picker_ex", + "CsName": "ModelPicker", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -41533,42 +46707,66 @@ "Kind": "Record" } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Motion and text effects", - "Doc": "" - }, - { - "CName": "cui_loader_ex", - "CsName": "Loader", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "models", + "CsName": "models", + "CsType": "nint", + "Type": { + "Spelling": "const cui_model *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_model", + "Kind": "Record", + "IsConst": true + } + } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "selected", + "CsName": "selected", + "CsType": "ref int", + "Type": { + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeLoaderOpts", + "CsType": "in NativeModelPickerOpts", "Type": { - "Spelling": "const cui_loader_opts *", + "Spelling": "const cui_model_picker_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_loader_opts", + "Spelling": "const cui_model_picker_opts", "Kind": "Record", "IsConst": true } @@ -41576,16 +46774,16 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Motion and text effects", + "Module": "AI interfaces", "Doc": "" }, { - "CName": "cui_dock_begin", - "CsName": "DockBegin", - "CsReturn": "void", + "CName": "cui_chat_composer_ex", + "CsName": "ChatComposer", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -41614,15 +46812,37 @@ } } }, + { + "CName": "buf", + "CsName": "buf", + "CsType": "nint", + "Type": { + "Spelling": "char *", + "Kind": "Pointer", + "Element": { + "Spelling": "char", + "Kind": "Char_S" + } + } + }, + { + "CName": "cap", + "CsName": "cap", + "CsType": "nuint", + "Type": { + "Spelling": "size_t", + "Kind": "ULongLong" + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeDockOpts", + "CsType": "in NativeComposerOpts", "Type": { - "Spelling": "const cui_dock_opts *", + "Spelling": "const cui_composer_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_dock_opts", + "Spelling": "const cui_composer_opts", "Kind": "Record", "IsConst": true } @@ -41630,15 +46850,15 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Motion and text effects", + "Module": "AI interfaces", "Doc": "" }, { - "CName": "cui_dock_item_ex", - "CsName": "DockItem", + "CName": "cui_voice_orb_ex", + "CsName": "VoiceOrb", "CsReturn": "byte", "Params": [ { @@ -41655,8 +46875,8 @@ } }, { - "CName": "icon", - "CsName": "icon", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -41669,28 +46889,32 @@ } }, { - "CName": "label", - "CsName": "label", - "CsType": "nint", + "CName": "state", + "CsName": "state", + "CsType": "VoiceState", "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "cui_voice_state", + "Kind": "Enum" + } + }, + { + "CName": "level", + "CsName": "level", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeDockItemOpts", + "CsType": "in NativeVoiceOrbOpts", "Type": { - "Spelling": "const cui_dock_item_opts *", + "Spelling": "const cui_voice_orb_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_dock_item_opts", + "Spelling": "const cui_voice_orb_opts", "Kind": "Record", "IsConst": true } @@ -41701,13 +46925,13 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Motion and text effects", + "Module": "AI interfaces", "Doc": "" }, { - "CName": "cui_dock_separator", - "CsName": "DockSeparator", - "CsReturn": "void", + "CName": "cui_voice_wave_ex", + "CsName": "VoiceWave", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -41721,83 +46945,81 @@ "Kind": "Record" } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Motion and text effects", - "Doc": "" - }, - { - "CName": "cui_dock_end", - "CsName": "DockEnd", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Motion and text effects", - "Doc": "" - }, - { - "CName": "cui_tab_bar_ex", - "CsName": "TabBar", - "CsReturn": "byte", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "levels", + "CsName": "levels", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const float *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const float", + "Kind": "Float", + "IsConst": true } } }, { - "CName": "id", - "CsName": "id", - "CsType": "nint", + "CName": "count", + "CsName": "count", + "CsType": "int", "Type": { - "Spelling": "const char *", + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeVoiceWaveOpts", + "Type": { + "Spelling": "const cui_voice_wave_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", + "Spelling": "const cui_voice_wave_opts", + "Kind": "Record", "IsConst": true } } - }, + } + ], + "ReturnType": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Module": "Voice", + "Doc": "" + }, + { + "CName": "cui_voice_resample", + "CsName": "VoiceResample", + "CsReturn": "int", + "Params": [ { - "CName": "items", - "CsName": "items", + "CName": "levels", + "CsName": "levels", "CsType": "nint", "Type": { - "Spelling": "const cui_tab_bar_item *", + "Spelling": "const float *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_tab_bar_item", - "Kind": "Record", + "Spelling": "const float", + "Kind": "Float", "IsConst": true } } @@ -41812,44 +47034,39 @@ } }, { - "CName": "selected", - "CsName": "selected", - "CsType": "ref int", + "CName": "out", + "CsName": "@out", + "CsType": "ref float", "Type": { - "Spelling": "int *", + "Spelling": "float *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "float", + "Kind": "Float" } } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeTabBarOpts", + "CName": "columns", + "CsName": "columns", + "CsType": "int", "Type": { - "Spelling": "const cui_tab_bar_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_tab_bar_opts", - "Kind": "Record", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Motion and text effects", - "Doc": "" + "Module": "Voice", + "Doc": "Resamples a clip to `columns` levels the way the clip strip does (the loudest level of each stretch; a stretch with no audio stays CUI_VOICE_SILENT), for keeping a short waveform with a message. Returns the number written." }, { - "CName": "cui_control_tile_ex", - "CsName": "ControlTile", - "CsReturn": "byte", + "CName": "cui_voice_note_ex", + "CsName": "VoiceNote", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -41865,8 +47082,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -41879,27 +47096,27 @@ } }, { - "CName": "on", - "CsName": "on", - "CsType": "nint", + "CName": "note", + "CsName": "note", + "CsType": "ref NativeVoiceNote", "Type": { - "Spelling": "_Bool *", + "Spelling": "cui_voice_note *", "Kind": "Pointer", "Element": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_voice_note", + "Kind": "Record" } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeTileOpts", + "CsType": "in NativeVoiceNoteOpts", "Type": { - "Spelling": "const cui_tile_opts *", + "Spelling": "const cui_voice_note_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_tile_opts", + "Spelling": "const cui_voice_note_opts", "Kind": "Record", "IsConst": true } @@ -41907,16 +47124,16 @@ } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Motion and text effects", + "Module": "Voice", "Doc": "" }, { - "CName": "cui_waveform_ex", - "CsName": "Waveform", - "CsReturn": "byte", + "CName": "cui_voice_session_ex", + "CsName": "VoiceSession", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -41946,8 +47163,17 @@ } }, { - "CName": "peaks", - "CsName": "peaks", + "CName": "state", + "CsName": "state", + "CsType": "VoiceState", + "Type": { + "Spelling": "cui_voice_state", + "Kind": "Enum" + } + }, + { + "CName": "levels", + "CsName": "levels", "CsType": "nint", "Type": { "Spelling": "const float *", @@ -41968,28 +47194,15 @@ "Kind": "Int" } }, - { - "CName": "progress", - "CsName": "progress", - "CsType": "ref float", - "Type": { - "Spelling": "float *", - "Kind": "Pointer", - "Element": { - "Spelling": "float", - "Kind": "Float" - } - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeWaveformOpts", + "CsType": "in NativeVoiceSessionOpts", "Type": { - "Spelling": "const cui_waveform_opts *", + "Spelling": "const cui_voice_session_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_waveform_opts", + "Spelling": "const cui_voice_session_opts", "Kind": "Record", "IsConst": true } @@ -41997,16 +47210,16 @@ } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Motion and text effects", + "Module": "Voice", "Doc": "" }, { - "CName": "cui_now_playing_ex", - "CsName": "NowPlaying", - "CsReturn": "int", + "CName": "cui_kanban_begin", + "CsName": "KanbanBegin", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -42034,45 +47247,18 @@ "IsConst": true } } - }, - { - "CName": "np", - "CsName": "np", - "CsType": "ref NativeNowPlaying", - "Type": { - "Spelling": "cui_now_playing *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_now_playing", - "Kind": "Record" - } - } - }, - { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeNowPlayingOpts", - "Type": { - "Spelling": "const cui_now_playing_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_now_playing_opts", - "Kind": "Record", - "IsConst": true - } - } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Motion and text effects", + "Module": "Planning", "Doc": "" }, { - "CName": "cui_reasoning_begin", - "CsName": "ReasoningBegin", + "CName": "cui_kanban_column_begin_ex", + "CsName": "KanbanColumnBegin", "CsReturn": "byte", "Params": [ { @@ -42089,8 +47275,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "title", + "CsName": "title", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -42102,15 +47288,24 @@ } } }, + { + "CName": "card_count", + "CsName": "cardCount", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeReasoningOpts", + "CsType": "in NativeKanbanColumnOpts", "Type": { - "Spelling": "const cui_reasoning_opts *", + "Spelling": "const cui_kanban_column_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_reasoning_opts", + "Spelling": "const cui_kanban_column_opts", "Kind": "Record", "IsConst": true } @@ -42121,13 +47316,13 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "AI interfaces", - "Doc": "" + "Module": "Planning", + "Doc": "true: \"+\" clicked" }, { - "CName": "cui_reasoning_end", - "CsName": "ReasoningEnd", - "CsReturn": "void", + "CName": "cui_kanban_card_begin", + "CsName": "KanbanCardBegin", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -42141,18 +47336,27 @@ "Kind": "Record" } } + }, + { + "CName": "card_id", + "CsName": "cardId", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "AI interfaces", - "Doc": "" + "Module": "Planning", + "Doc": "true when clicked" }, { - "CName": "cui_tool_call_ex", - "CsName": "ToolCall", + "CName": "cui_kanban_card_end", + "CsName": "KanbanCardEnd", "CsReturn": "void", "Params": [ { @@ -42167,60 +47371,83 @@ "Kind": "Record" } } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Planning", + "Doc": "" + }, + { + "CName": "cui_kanban_column_end", + "CsName": "KanbanColumnEnd", + "CsReturn": "void", + "Params": [ { - "CName": "id", - "CsName": "id", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Planning", + "Doc": "" + }, + { + "CName": "cui_kanban_end", + "CsName": "KanbanEnd", + "CsReturn": "byte", + "Params": [ { - "CName": "name", - "CsName": "name", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeToolCallOpts", + "CName": "move", + "CsName": "move", + "CsType": "ref NativeKanbanMove", "Type": { - "Spelling": "const cui_tool_call_opts *", + "Spelling": "cui_kanban_move *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_tool_call_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_kanban_move", + "Kind": "Record" } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "AI interfaces", + "Module": "Planning", "Doc": "" }, { - "CName": "cui_agent_plan_ex", - "CsName": "AgentPlan", + "CName": "cui_week_calendar_ex", + "CsName": "WeekCalendar", "CsReturn": "int", "Params": [ { @@ -42251,16 +47478,24 @@ } }, { - "CName": "steps", - "CsName": "steps", + "CName": "week_start", + "CsName": "weekStart", + "CsType": "NativeDate", + "Type": { + "Spelling": "cui_date", + "Kind": "Record" + } + }, + { + "CName": "events", + "CsName": "events", "CsType": "nint", "Type": { - "Spelling": "const cui_plan_step *", + "Spelling": "cui_cal_event *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_plan_step", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_cal_event", + "Kind": "Record" } } }, @@ -42276,12 +47511,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeAgentPlanOpts", + "CsType": "in NativeWeekOpts", "Type": { - "Spelling": "const cui_agent_plan_opts *", + "Spelling": "const cui_week_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_agent_plan_opts", + "Spelling": "const cui_week_opts", "Kind": "Record", "IsConst": true } @@ -42292,13 +47527,13 @@ "Spelling": "int", "Kind": "Int" }, - "Module": "AI interfaces", - "Doc": "" + "Module": "Planning", + "Doc": "Returns the activated event index or -1. Read-only events still activate." }, { - "CName": "cui_agent_status_ex", - "CsName": "AgentStatus", - "CsReturn": "void", + "CName": "cui_month_calendar_ex", + "CsName": "MonthCalendar", + "CsReturn": "NativeMonthResult", "Params": [ { "CName": "ui", @@ -42314,8 +47549,8 @@ } }, { - "CName": "text", - "CsName": "text", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -42327,15 +47562,51 @@ } } }, + { + "CName": "month", + "CsName": "month", + "CsType": "ref NativeDate", + "Type": { + "Spelling": "cui_date *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_date", + "Kind": "Record" + } + } + }, + { + "CName": "events", + "CsName": "events", + "CsType": "nint", + "Type": { + "Spelling": "const cui_month_event *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_month_event", + "Kind": "Record", + "IsConst": true + } + } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeAgentStatusOpts", + "CsType": "in NativeMonthOpts", "Type": { - "Spelling": "const cui_agent_status_opts *", + "Spelling": "const cui_month_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_agent_status_opts", + "Spelling": "const cui_month_opts", "Kind": "Record", "IsConst": true } @@ -42343,15 +47614,15 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "cui_month_result", + "Kind": "Record" }, - "Module": "AI interfaces", + "Module": "Planning", "Doc": "" }, { - "CName": "cui_source_list", - "CsName": "SourceList", + "CName": "cui_gantt_ex", + "CsName": "Gantt", "CsReturn": "int", "Params": [ { @@ -42382,16 +47653,15 @@ } }, { - "CName": "sources", - "CsName": "sources", + "CName": "tasks", + "CsName": "tasks", "CsType": "nint", "Type": { - "Spelling": "const cui_source *", + "Spelling": "cui_gantt_task *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_source", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_gantt_task", + "Kind": "Record" } } }, @@ -42403,36 +47673,19 @@ "Spelling": "int", "Kind": "Int" } - } - ], - "ReturnType": { - "Spelling": "int", - "Kind": "Int" - }, - "Module": "AI interfaces", - "Doc": "" - }, - { - "CName": "cui_citation", - "CsName": "Citation", - "CsReturn": "byte", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "origin", + "CsName": "origin", + "CsType": "NativeDate", "Type": { - "Spelling": "cui_ctx *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" - } + "Spelling": "cui_date", + "Kind": "Record" } }, { - "CName": "number", - "CsName": "number", + "CName": "days", + "CsName": "days", "CsType": "int", "Type": { "Spelling": "int", @@ -42440,14 +47693,14 @@ } }, { - "CName": "source", - "CsName": "source", - "CsType": "in NativeSource", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeGanttOpts", "Type": { - "Spelling": "const cui_source *", + "Spelling": "const cui_gantt_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_source", + "Spelling": "const cui_gantt_opts", "Kind": "Record", "IsConst": true } @@ -42455,16 +47708,16 @@ } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Module": "AI interfaces", - "Doc": "" + "Module": "Planning", + "Doc": "Returns the activated task index or -1. Read-only tasks still activate." }, { - "CName": "cui_context_meter_ex", - "CsName": "ContextMeter", - "CsReturn": "void", + "CName": "cui_hover_card_begin", + "CsName": "HoverCardBegin", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -42493,50 +47746,58 @@ } } }, - { - "CName": "used", - "CsName": "used", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, - { - "CName": "limit", - "CsName": "limit", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeContextOpts", + "CsType": "in NativeHoverCardOpts", "Type": { - "Spelling": "const cui_context_opts *", + "Spelling": "const cui_hover_card_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_context_opts", + "Spelling": "const cui_hover_card_opts", "Kind": "Record", "IsConst": true } } } ], + "ReturnType": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Module": "Disclosure", + "Doc": "Keep a dismissed card closed until the pointer leaves its anchor." + }, + { + "CName": "cui_hover_card_end", + "CsName": "HoverCardEnd", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + } + ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "AI interfaces", + "Module": "Disclosure", "Doc": "" }, { - "CName": "cui_response_actions_ex", - "CsName": "ResponseActions", - "CsReturn": "int", + "CName": "cui_confirm_popover_ex", + "CsName": "ConfirmPopover", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -42568,12 +47829,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeResponseActionsOpts", + "CsType": "in NativeConfirmPopoverOpts", "Type": { - "Spelling": "const cui_response_actions_opts *", + "Spelling": "const cui_confirm_popover_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_response_actions_opts", + "Spelling": "const cui_confirm_popover_opts", "Kind": "Record", "IsConst": true } @@ -42581,16 +47842,16 @@ } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "AI interfaces", - "Doc": "" + "Module": "Disclosure", + "Doc": "Require a fresh Enter when an activation opens the question in this frame." }, { - "CName": "cui_prompt_suggestions_ex", - "CsName": "PromptSuggestions", - "CsReturn": "int", + "CName": "cui_expandable_text_ex", + "CsName": "ExpandableText", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -42620,37 +47881,28 @@ } }, { - "CName": "items", - "CsName": "items", + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { - "Spelling": "const cui_prompt_suggestion *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_prompt_suggestion", - "Kind": "Record", + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } } }, - { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativePromptSuggestionsOpts", + "CsType": "in NativeExpandableTextOpts", "Type": { - "Spelling": "const cui_prompt_suggestions_opts *", + "Spelling": "const cui_expandable_text_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_prompt_suggestions_opts", + "Spelling": "const cui_expandable_text_opts", "Kind": "Record", "IsConst": true } @@ -42658,15 +47910,15 @@ } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "AI interfaces", - "Doc": "" + "Module": "Disclosure", + "Doc": "Draw expandable text with a toggle that keeps its identity when its label changes." }, { - "CName": "cui_model_picker_ex", - "CsName": "ModelPicker", + "CName": "cui_expandable_card_begin", + "CsName": "ExpandableCardBegin", "CsReturn": "byte", "Params": [ { @@ -42683,8 +47935,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "title", + "CsName": "title", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -42697,50 +47949,27 @@ } }, { - "CName": "models", - "CsName": "models", + "CName": "open", + "CsName": "open", "CsType": "nint", "Type": { - "Spelling": "const cui_model *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_model", - "Kind": "Record", - "IsConst": true - } - } - }, - { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "selected", - "CsName": "selected", - "CsType": "ref int", - "Type": { - "Spelling": "int *", + "Spelling": "_Bool *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeModelPickerOpts", + "CsType": "in NativeExpandableCardOpts", "Type": { - "Spelling": "const cui_model_picker_opts *", + "Spelling": "const cui_expandable_card_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_model_picker_opts", + "Spelling": "const cui_expandable_card_opts", "Kind": "Record", "IsConst": true } @@ -42751,13 +47980,13 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "AI interfaces", + "Module": "Disclosure", "Doc": "" }, { - "CName": "cui_chat_composer_ex", - "CsName": "ChatComposer", - "CsReturn": "int", + "CName": "cui_expandable_card_end", + "CsName": "ExpandableCardEnd", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -42771,69 +48000,19 @@ "Kind": "Record" } } - }, - { - "CName": "id", - "CsName": "id", - "CsType": "nint", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - }, - { - "CName": "buf", - "CsName": "buf", - "CsType": "nint", - "Type": { - "Spelling": "char *", - "Kind": "Pointer", - "Element": { - "Spelling": "char", - "Kind": "Char_S" - } - } - }, - { - "CName": "cap", - "CsName": "cap", - "CsType": "nuint", - "Type": { - "Spelling": "size_t", - "Kind": "ULongLong" - } - }, - { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeComposerOpts", - "Type": { - "Spelling": "const cui_composer_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_composer_opts", - "Kind": "Record", - "IsConst": true - } - } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "void", + "Kind": "Void" }, - "Module": "AI interfaces", + "Module": "Disclosure", "Doc": "" }, { - "CName": "cui_voice_orb_ex", - "CsName": "VoiceOrb", - "CsReturn": "byte", + "CName": "cui_toc", + "CsName": "Toc", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -42848,9 +48027,9 @@ } } }, - { - "CName": "id", - "CsName": "id", + { + "CName": "scroll_id", + "CsName": "scrollId", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -42863,48 +48042,39 @@ } }, { - "CName": "state", - "CsName": "state", - "CsType": "VoiceState", - "Type": { - "Spelling": "cui_voice_state", - "Kind": "Enum" - } - }, - { - "CName": "level", - "CsName": "level", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, - { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeVoiceOrbOpts", + "CName": "items", + "CsName": "items", + "CsType": "nint", "Type": { - "Spelling": "const cui_voice_orb_opts *", + "Spelling": "const cui_toc_item *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_voice_orb_opts", + "Spelling": "const cui_toc_item", "Kind": "Record", "IsConst": true } } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Module": "AI interfaces", + "Module": "Disclosure", "Doc": "" }, { - "CName": "cui_kanban_begin", - "CsName": "KanbanBegin", + "CName": "cui_toc_anchor", + "CsName": "TocAnchor", "CsReturn": "void", "Params": [ { @@ -42921,8 +48091,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "anchor", + "CsName": "anchor", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -42939,12 +48109,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Planning", + "Module": "Disclosure", "Doc": "" }, { - "CName": "cui_kanban_column_begin_ex", - "CsName": "KanbanColumnBegin", + "CName": "cui_banner_ex", + "CsName": "Banner", "CsReturn": "byte", "Params": [ { @@ -42961,8 +48131,8 @@ } }, { - "CName": "title", - "CsName": "title", + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -42975,23 +48145,27 @@ } }, { - "CName": "card_count", - "CsName": "cardCount", - "CsType": "int", + "CName": "open", + "CsName": "open", + "CsType": "nint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool *", + "Kind": "Pointer", + "Element": { + "Spelling": "_Bool", + "Kind": "Bool" + } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeKanbanColumnOpts", + "CsType": "in NativeBannerOpts", "Type": { - "Spelling": "const cui_kanban_column_opts *", + "Spelling": "const cui_banner_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_kanban_column_opts", + "Spelling": "const cui_banner_opts", "Kind": "Record", "IsConst": true } @@ -43002,47 +48176,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Planning", - "Doc": "true: \"+\" clicked" - }, - { - "CName": "cui_kanban_card_begin", - "CsName": "KanbanCardBegin", - "CsReturn": "byte", - "Params": [ - { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", - "Type": { - "Spelling": "cui_ctx *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" - } - } - }, - { - "CName": "card_id", - "CsName": "cardId", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - } - ], - "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Module": "Planning", - "Doc": "true when clicked" + "Module": "More feedback", + "Doc": "" }, { - "CName": "cui_kanban_card_end", - "CsName": "KanbanCardEnd", + "CName": "cui_countdown_ex", + "CsName": "Countdown", "CsReturn": "void", "Params": [ { @@ -43057,83 +48196,55 @@ "Kind": "Record" } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Planning", - "Doc": "" - }, - { - "CName": "cui_kanban_column_end", - "CsName": "KanbanColumnEnd", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Planning", - "Doc": "" - }, - { - "CName": "cui_kanban_end", - "CsName": "KanbanEnd", - "CsReturn": "byte", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "seconds_left", + "CsName": "secondsLeft", + "CsType": "double", "Type": { - "Spelling": "cui_ctx *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" - } + "Spelling": "double", + "Kind": "Double" } }, { - "CName": "move", - "CsName": "move", - "CsType": "ref NativeKanbanMove", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeCountdownOpts", "Type": { - "Spelling": "cui_kanban_move *", + "Spelling": "const cui_countdown_opts *", "Kind": "Pointer", "Element": { - "Spelling": "cui_kanban_move", - "Kind": "Record" + "Spelling": "const cui_countdown_opts", + "Kind": "Record", + "IsConst": true } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Planning", + "Module": "More feedback", "Doc": "" }, { - "CName": "cui_week_calendar_ex", - "CsName": "WeekCalendar", + "CName": "cui_checklist_ex", + "CsName": "Checklist", "CsReturn": "int", "Params": [ { @@ -43164,23 +48275,14 @@ } }, { - "CName": "week_start", - "CsName": "weekStart", - "CsType": "NativeDate", - "Type": { - "Spelling": "cui_date", - "Kind": "Record" - } - }, - { - "CName": "events", - "CsName": "events", + "CName": "steps", + "CsName": "steps", "CsType": "nint", "Type": { - "Spelling": "cui_cal_event *", + "Spelling": "cui_check_step *", "Kind": "Pointer", "Element": { - "Spelling": "cui_cal_event", + "Spelling": "cui_check_step", "Kind": "Record" } } @@ -43197,12 +48299,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeWeekOpts", + "CsType": "in NativeChecklistOpts", "Type": { - "Spelling": "const cui_week_opts *", + "Spelling": "const cui_checklist_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_week_opts", + "Spelling": "const cui_checklist_opts", "Kind": "Record", "IsConst": true } @@ -43213,13 +48315,13 @@ "Spelling": "int", "Kind": "Int" }, - "Module": "Planning", + "Module": "More feedback", "Doc": "" }, { - "CName": "cui_month_calendar_ex", - "CsName": "MonthCalendar", - "CsReturn": "NativeMonthResult", + "CName": "cui_veil_begin_ex", + "CsName": "VeilBegin", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -43249,67 +48351,70 @@ } }, { - "CName": "month", - "CsName": "month", - "CsType": "ref NativeDate", + "CName": "revealed", + "CsName": "revealed", + "CsType": "nint", "Type": { - "Spelling": "cui_date *", + "Spelling": "_Bool *", "Kind": "Pointer", "Element": { - "Spelling": "cui_date", - "Kind": "Record" + "Spelling": "_Bool", + "Kind": "Bool" } } }, { - "CName": "events", - "CsName": "events", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeVeilOpts", "Type": { - "Spelling": "const cui_month_event *", + "Spelling": "const cui_veil_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_month_event", + "Spelling": "const cui_veil_opts", "Kind": "Record", "IsConst": true } } - }, - { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, + } + ], + "ReturnType": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Module": "More feedback", + "Doc": "Draw the cover while leaving hit testing to other widgets when it is disabled." + }, + { + "CName": "cui_veil_end", + "CsName": "VeilEnd", + "CsReturn": "void", + "Params": [ { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeMonthOpts", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "const cui_month_opts *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_month_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } } ], "ReturnType": { - "Spelling": "cui_month_result", - "Kind": "Record" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Planning", + "Module": "More feedback", "Doc": "" }, { - "CName": "cui_gantt_ex", - "CsName": "Gantt", - "CsReturn": "int", + "CName": "cui_multi_select_ex", + "CsName": "MultiSelect", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -43339,15 +48444,21 @@ } }, { - "CName": "tasks", - "CsName": "tasks", + "CName": "items", + "CsName": "items", "CsType": "nint", "Type": { - "Spelling": "cui_gantt_task *", + "Spelling": "const char *const *", "Kind": "Pointer", "Element": { - "Spelling": "cui_gantt_task", - "Kind": "Record" + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } } }, @@ -43361,32 +48472,27 @@ } }, { - "CName": "origin", - "CsName": "origin", - "CsType": "NativeDate", - "Type": { - "Spelling": "cui_date", - "Kind": "Record" - } - }, - { - "CName": "days", - "CsName": "days", - "CsType": "int", + "CName": "selected", + "CsName": "selected", + "CsType": "nint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool *", + "Kind": "Pointer", + "Element": { + "Spelling": "_Bool", + "Kind": "Bool" + } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeGanttOpts", + "CsType": "in NativeMultiSelectOpts", "Type": { - "Spelling": "const cui_gantt_opts *", + "Spelling": "const cui_multi_select_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_gantt_opts", + "Spelling": "const cui_multi_select_opts", "Kind": "Record", "IsConst": true } @@ -43394,15 +48500,15 @@ } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Planning", + "Module": "Pickers", "Doc": "" }, { - "CName": "cui_hover_card_begin", - "CsName": "HoverCardBegin", + "CName": "cui_range_calendar", + "CsName": "RangeCalendar", "CsReturn": "byte", "Params": [ { @@ -43433,31 +48539,39 @@ } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeHoverCardOpts", + "CName": "range", + "CsName": "range", + "CsType": "ref NativeDateRange", "Type": { - "Spelling": "const cui_hover_card_opts *", + "Spelling": "cui_date_range *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_hover_card_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_date_range", + "Kind": "Record" } } + }, + { + "CName": "months", + "CsName": "months", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } } ], "ReturnType": { "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Disclosure", - "Doc": "" + "Module": "Pickers", + "Doc": "One or two months side by side; click a start and an end." }, { - "CName": "cui_hover_card_end", - "CsName": "HoverCardEnd", - "CsReturn": "void", + "CName": "cui_date_range_picker_ex", + "CsName": "DateRangePicker", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -43471,18 +48585,103 @@ "Kind": "Record" } } + }, + { + "CName": "id", + "CsName": "id", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "range", + "CsName": "range", + "CsType": "ref NativeDateRange", + "Type": { + "Spelling": "cui_date_range *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_date_range", + "Kind": "Record" + } + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeDateRangeOpts", + "Type": { + "Spelling": "const cui_date_range_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_date_range_opts", + "Kind": "Record", + "IsConst": true + } + } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Disclosure", + "Module": "Pickers", "Doc": "" }, { - "CName": "cui_confirm_popover_ex", - "CsName": "ConfirmPopover", + "CName": "cui_date_to_days", + "CsName": "DateToDays", + "CsReturn": "int", + "Params": [ + { + "CName": "d", + "CsName": "d", + "CsType": "NativeDate", + "Type": { + "Spelling": "cui_date", + "Kind": "Record" + } + } + ], + "ReturnType": { + "Spelling": "int", + "Kind": "Int" + }, + "Module": "Pickers", + "Doc": "days since 1970-01-01" + }, + { + "CName": "cui_date_from_days", + "CsName": "DateFromDays", + "CsReturn": "NativeDate", + "Params": [ + { + "CName": "days", + "CsName": "days", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + } + ], + "ReturnType": { + "Spelling": "cui_date", + "Kind": "Record" + }, + "Module": "Pickers", + "Doc": "" + }, + { + "CName": "cui_time_picker_ex", + "CsName": "TimePicker", "CsReturn": "byte", "Params": [ { @@ -43512,15 +48711,41 @@ } } }, + { + "CName": "hour", + "CsName": "hour", + "CsType": "ref int", + "Type": { + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } + } + }, + { + "CName": "minute", + "CsName": "minute", + "CsType": "ref int", + "Type": { + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeConfirmPopoverOpts", + "CsType": "in NativeTimeOpts", "Type": { - "Spelling": "const cui_confirm_popover_opts *", + "Spelling": "const cui_time_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_confirm_popover_opts", + "Spelling": "const cui_time_opts", "Kind": "Record", "IsConst": true } @@ -43531,12 +48756,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Disclosure", + "Module": "Pickers", "Doc": "" }, { - "CName": "cui_expandable_text_ex", - "CsName": "ExpandableText", + "CName": "cui_wheel_picker_ex", + "CsName": "WheelPicker", "CsReturn": "byte", "Params": [ { @@ -43567,28 +48792,55 @@ } }, { - "CName": "text", - "CsName": "text", + "CName": "items", + "CsName": "items", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "const char *const *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "index", + "CsName": "index", + "CsType": "ref int", + "Type": { + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeExpandableTextOpts", + "CsType": "in NativeWheelOpts", "Type": { - "Spelling": "const cui_expandable_text_opts *", + "Spelling": "const cui_wheel_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_expandable_text_opts", + "Spelling": "const cui_wheel_opts", "Kind": "Record", "IsConst": true } @@ -43599,12 +48851,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Disclosure", - "Doc": "" + "Module": "Pickers", + "Doc": "Build a wheel picker, apply input routed to its drum, and draw its focus ring with its rows." }, { - "CName": "cui_expandable_card_begin", - "CsName": "ExpandableCardBegin", + "CName": "cui_time_dial", + "CsName": "TimeDial", "CsReturn": "byte", "Params": [ { @@ -43621,8 +48873,8 @@ } }, { - "CName": "title", - "CsName": "title", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -43635,70 +48887,52 @@ } }, { - "CName": "open", - "CsName": "open", - "CsType": "nint", + "CName": "hour", + "CsName": "hour", + "CsType": "ref int", "Type": { - "Spelling": "_Bool *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" } } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeExpandableCardOpts", + "CName": "minute", + "CsName": "minute", + "CsType": "ref int", "Type": { - "Spelling": "const cui_expandable_card_opts *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_expandable_card_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "int", + "Kind": "Int" } } - } - ], - "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Module": "Disclosure", - "Doc": "" - }, - { - "CName": "cui_expandable_card_end", - "CsName": "ExpandableCardEnd", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "size", + "CsName": "size", + "CsType": "float", "Type": { - "Spelling": "cui_ctx *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" - } + "Spelling": "float", + "Kind": "Float" } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Disclosure", - "Doc": "" + "Module": "Pickers", + "Doc": "Time dial: a clock face. Drag the hand to set hours, then minutes." }, { - "CName": "cui_toc", - "CsName": "Toc", - "CsReturn": "int", + "CName": "cui_ruler_slider_ex", + "CsName": "RulerSlider", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -43714,8 +48948,8 @@ } }, { - "CName": "scroll_id", - "CsName": "scrollId", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -43728,40 +48962,62 @@ } }, { - "CName": "items", - "CsName": "items", - "CsType": "nint", + "CName": "value", + "CsName": "value", + "CsType": "ref float", "Type": { - "Spelling": "const cui_toc_item *", + "Spelling": "float *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_toc_item", - "Kind": "Record", - "IsConst": true + "Spelling": "float", + "Kind": "Float" } } }, { - "CName": "count", - "CsName": "count", - "CsType": "int", + "CName": "min", + "CsName": "min", + "CsType": "float", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "max", + "CsName": "max", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeRulerOpts", + "Type": { + "Spelling": "const cui_ruler_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_ruler_opts", + "Kind": "Record", + "IsConst": true + } } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Disclosure", - "Doc": "" + "Module": "Pickers", + "Doc": "Build a ruler slider: it takes vertical wheel input before the enclosing view and keeps every rounded value in range." }, { - "CName": "cui_toc_anchor", - "CsName": "TocAnchor", - "CsReturn": "void", + "CName": "cui_histogram_slider_ex", + "CsName": "HistogramSlider", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -43777,8 +49033,8 @@ } }, { - "CName": "anchor", - "CsName": "anchor", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -43789,69 +49045,83 @@ "IsConst": true } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Disclosure", - "Doc": "" - }, - { - "CName": "cui_banner_ex", - "CsName": "Banner", - "CsReturn": "byte", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "bins", + "CsName": "bins", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const float *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const float", + "Kind": "Float", + "IsConst": true } } }, { - "CName": "text", - "CsName": "text", - "CsType": "nint", + "CName": "bin_count", + "CsName": "binCount", + "CsType": "int", "Type": { - "Spelling": "const char *", + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "lo", + "CsName": "lo", + "CsType": "ref float", + "Type": { + "Spelling": "float *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "float", + "Kind": "Float" } } }, { - "CName": "open", - "CsName": "open", - "CsType": "nint", + "CName": "hi", + "CsName": "hi", + "CsType": "ref float", "Type": { - "Spelling": "_Bool *", + "Spelling": "float *", "Kind": "Pointer", "Element": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "float", + "Kind": "Float" } } }, + { + "CName": "min", + "CsName": "min", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "max", + "CsName": "max", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeBannerOpts", + "CsType": "in NativeHistogramOpts", "Type": { - "Spelling": "const cui_banner_opts *", + "Spelling": "const cui_histogram_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_banner_opts", + "Spelling": "const cui_histogram_opts", "Kind": "Record", "IsConst": true } @@ -43862,13 +49132,13 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "More feedback", + "Module": "Pickers", "Doc": "" }, { - "CName": "cui_countdown_ex", - "CsName": "Countdown", - "CsReturn": "void", + "CName": "cui_knob_ex", + "CsName": "Knob", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -43898,23 +49168,45 @@ } }, { - "CName": "seconds_left", - "CsName": "secondsLeft", - "CsType": "double", + "CName": "value", + "CsName": "value", + "CsType": "ref float", "Type": { - "Spelling": "double", - "Kind": "Double" + "Spelling": "float *", + "Kind": "Pointer", + "Element": { + "Spelling": "float", + "Kind": "Float" + } + } + }, + { + "CName": "min", + "CsName": "min", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "max", + "CsName": "max", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeCountdownOpts", + "CsType": "in NativeKnobOpts", "Type": { - "Spelling": "const cui_countdown_opts *", + "Spelling": "const cui_knob_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_countdown_opts", + "Spelling": "const cui_knob_opts", "Kind": "Record", "IsConst": true } @@ -43922,16 +49214,16 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "More feedback", + "Module": "Pickers", "Doc": "" }, { - "CName": "cui_checklist_ex", - "CsName": "Checklist", - "CsReturn": "int", + "CName": "cui_fader_ex", + "CsName": "Fader", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -43961,36 +49253,45 @@ } }, { - "CName": "steps", - "CsName": "steps", - "CsType": "nint", + "CName": "value", + "CsName": "value", + "CsType": "ref float", "Type": { - "Spelling": "cui_check_step *", + "Spelling": "float *", "Kind": "Pointer", "Element": { - "Spelling": "cui_check_step", - "Kind": "Record" + "Spelling": "float", + "Kind": "Float" } } }, { - "CName": "count", - "CsName": "count", - "CsType": "int", + "CName": "min", + "CsName": "min", + "CsType": "float", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "max", + "CsName": "max", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeChecklistOpts", + "CsType": "in NativeFaderOpts", "Type": { - "Spelling": "const cui_checklist_opts *", + "Spelling": "const cui_fader_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_checklist_opts", + "Spelling": "const cui_fader_opts", "Kind": "Record", "IsConst": true } @@ -43998,15 +49299,15 @@ } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "More feedback", + "Module": "Pickers", "Doc": "" }, { - "CName": "cui_multi_select_ex", - "CsName": "MultiSelect", + "CName": "cui_level_meter_ex", + "CsName": "LevelMeter", "CsReturn": "byte", "Params": [ { @@ -44037,55 +49338,37 @@ } }, { - "CName": "items", - "CsName": "items", + "CName": "levels", + "CsName": "levels", "CsType": "nint", "Type": { - "Spelling": "const char *const *", + "Spelling": "const float *", "Kind": "Pointer", "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "const float", + "Kind": "Float", + "IsConst": true } } }, { - "CName": "count", - "CsName": "count", + "CName": "channels", + "CsName": "channels", "CsType": "int", "Type": { "Spelling": "int", "Kind": "Int" } }, - { - "CName": "selected", - "CsName": "selected", - "CsType": "nint", - "Type": { - "Spelling": "_Bool *", - "Kind": "Pointer", - "Element": { - "Spelling": "_Bool", - "Kind": "Bool" - } - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeMultiSelectOpts", + "CsType": "in NativeLevelMeterOpts", "Type": { - "Spelling": "const cui_multi_select_opts *", + "Spelling": "const cui_level_meter_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_multi_select_opts", + "Spelling": "const cui_level_meter_opts", "Kind": "Record", "IsConst": true } @@ -44097,11 +49380,11 @@ "Kind": "Bool" }, "Module": "Pickers", - "Doc": "" + "Doc": "Returns true when the clip light was clicked to clear it." }, { - "CName": "cui_range_calendar", - "CsName": "RangeCalendar", + "CName": "cui_signature_pad_ex", + "CsName": "SignaturePad", "CsReturn": "byte", "Params": [ { @@ -44132,39 +49415,31 @@ } }, { - "CName": "range", - "CsName": "range", - "CsType": "ref NativeDateRange", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeSignatureOpts", "Type": { - "Spelling": "cui_date_range *", + "Spelling": "const cui_signature_opts *", "Kind": "Pointer", "Element": { - "Spelling": "cui_date_range", - "Kind": "Record" + "Spelling": "const cui_signature_opts", + "Kind": "Record", + "IsConst": true } } - }, - { - "CName": "months", - "CsName": "months", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } } ], "ReturnType": { "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Pickers", - "Doc": "One or two months side by side; click a start and an end." + "Module": "Capture", + "Doc": "" }, { - "CName": "cui_date_range_picker_ex", - "CsName": "DateRangePicker", - "CsReturn": "byte", + "CName": "cui_signature_points", + "CsName": "SignaturePoints", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -44194,52 +49469,52 @@ } }, { - "CName": "range", - "CsName": "range", - "CsType": "ref NativeDateRange", + "CName": "points", + "CsName": "points", + "CsType": "nint", "Type": { - "Spelling": "cui_date_range *", + "Spelling": "const cui_vec2 **", "Kind": "Pointer", "Element": { - "Spelling": "cui_date_range", - "Kind": "Record" + "Spelling": "const cui_vec2 *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_vec2", + "Kind": "Record", + "IsConst": true + } } } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeDateRangeOpts", + "CName": "stroke_ends", + "CsName": "strokeEnds", + "CsType": "nint", "Type": { - "Spelling": "const cui_date_range_opts *", + "Spelling": "const int **", "Kind": "Pointer", "Element": { - "Spelling": "const cui_date_range_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "const int *", + "Kind": "Pointer", + "Element": { + "Spelling": "const int", + "Kind": "Int", + "IsConst": true + } } } - } - ], - "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Module": "Pickers", - "Doc": "" - }, - { - "CName": "cui_date_to_days", - "CsName": "DateToDays", - "CsReturn": "int", - "Params": [ + }, { - "CName": "d", - "CsName": "d", - "CsType": "NativeDate", + "CName": "stroke_count", + "CsName": "strokeCount", + "CsType": "ref int", "Type": { - "Spelling": "cui_date", - "Kind": "Record" + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } } } ], @@ -44247,35 +49522,53 @@ "Spelling": "int", "Kind": "Int" }, - "Module": "Pickers", - "Doc": "days since 1970-01-01" + "Module": "Capture", + "Doc": "" }, { - "CName": "cui_date_from_days", - "CsName": "DateFromDays", - "CsReturn": "NativeDate", + "CName": "cui_signature_clear", + "CsName": "SignatureClear", + "CsReturn": "void", "Params": [ { - "CName": "days", - "CsName": "days", - "CsType": "int", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + }, + { + "CName": "id", + "CsName": "id", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } } ], "ReturnType": { - "Spelling": "cui_date", - "Kind": "Record" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Pickers", + "Module": "Capture", "Doc": "" }, { - "CName": "cui_time_picker_ex", - "CsName": "TimePicker", - "CsReturn": "byte", + "CName": "cui_dropzone_ex", + "CsName": "Dropzone", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -44305,41 +49598,56 @@ } }, { - "CName": "hour", - "CsName": "hour", - "CsType": "ref int", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeDropzoneOpts", "Type": { - "Spelling": "int *", + "Spelling": "const cui_dropzone_opts *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const cui_dropzone_opts", + "Kind": "Record", + "IsConst": true } } - }, + } + ], + "ReturnType": { + "Spelling": "int", + "Kind": "Int" + }, + "Module": "Capture", + "Doc": "Build a dropzone and show drag feedback only while it can accept a drop." + }, + { + "CName": "cui_path_has_extension", + "CsName": "PathHasExtension", + "CsReturn": "byte", + "Params": [ { - "CName": "minute", - "CsName": "minute", - "CsType": "ref int", + "CName": "path", + "CsName": "path", + "CsType": "nint", "Type": { - "Spelling": "int *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeTimeOpts", + "CName": "accept", + "CsName": "accept", + "CsType": "nint", "Type": { - "Spelling": "const cui_time_opts *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_time_opts", - "Kind": "Record", + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } } @@ -44349,13 +49657,13 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Pickers", + "Module": "Capture", "Doc": "" }, { - "CName": "cui_wheel_picker_ex", - "CsName": "WheelPicker", - "CsReturn": "byte", + "CName": "cui_avatar_upload", + "CsName": "AvatarUpload", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -44385,72 +49693,53 @@ } }, { - "CName": "items", - "CsName": "items", + "CName": "name", + "CsName": "name", "CsType": "nint", "Type": { - "Spelling": "const char *const *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "index", - "CsName": "index", - "CsType": "ref int", + "CName": "image", + "CsName": "image", + "CsType": "ref nuint", "Type": { - "Spelling": "int *", + "Spelling": "cui_texture *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_texture", + "Kind": "ULongLong" } } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeWheelOpts", + "CName": "size", + "CsName": "size", + "CsType": "float", "Type": { - "Spelling": "const cui_wheel_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_wheel_opts", - "Kind": "Record", - "IsConst": true - } + "Spelling": "float", + "Kind": "Float" } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Pickers", - "Doc": "" + "Module": "Capture", + "Doc": "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." }, { - "CName": "cui_time_dial", - "CsName": "TimeDial", - "CsReturn": "byte", + "CName": "cui_inline_edit_ex", + "CsName": "InlineEdit", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -44480,51 +49769,52 @@ } }, { - "CName": "hour", - "CsName": "hour", - "CsType": "ref int", + "CName": "buf", + "CsName": "buf", + "CsType": "nint", "Type": { - "Spelling": "int *", + "Spelling": "char *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "char", + "Kind": "Char_S" } } }, { - "CName": "minute", - "CsName": "minute", - "CsType": "ref int", + "CName": "cap", + "CsName": "cap", + "CsType": "nuint", "Type": { - "Spelling": "int *", - "Kind": "Pointer", - "Element": { - "Spelling": "int", - "Kind": "Int" - } + "Spelling": "size_t", + "Kind": "ULongLong" } }, { - "CName": "size", - "CsName": "size", - "CsType": "float", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeInlineEditOpts", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const cui_inline_edit_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_inline_edit_opts", + "Kind": "Record", + "IsConst": true + } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Pickers", - "Doc": "Time dial: a clock face. Drag the hand to set hours, then minutes." + "Module": "More inputs", + "Doc": "" }, { - "CName": "cui_ruler_slider_ex", - "CsName": "RulerSlider", + "CName": "cui_scrub_ex", + "CsName": "Scrub", "CsReturn": "byte", "Params": [ { @@ -44588,12 +49878,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeRulerOpts", + "CsType": "in NativeScrubOpts", "Type": { - "Spelling": "const cui_ruler_opts *", + "Spelling": "const cui_scrub_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_ruler_opts", + "Spelling": "const cui_scrub_opts", "Kind": "Record", "IsConst": true } @@ -44604,12 +49894,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Pickers", - "Doc": "" + "Module": "More inputs", + "Doc": "Edit a bounded scrub value and accept only a complete, finite numeric draft." }, { - "CName": "cui_histogram_slider_ex", - "CsName": "HistogramSlider", + "CName": "cui_money_input_ex", + "CsName": "MoneyInput", "CsReturn": "byte", "Params": [ { @@ -44626,8 +49916,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -44640,81 +49930,27 @@ } }, { - "CName": "bins", - "CsName": "bins", - "CsType": "nint", - "Type": { - "Spelling": "const float *", - "Kind": "Pointer", - "Element": { - "Spelling": "const float", - "Kind": "Float", - "IsConst": true - } - } - }, - { - "CName": "bin_count", - "CsName": "binCount", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "lo", - "CsName": "lo", - "CsType": "ref float", - "Type": { - "Spelling": "float *", - "Kind": "Pointer", - "Element": { - "Spelling": "float", - "Kind": "Float" - } - } - }, - { - "CName": "hi", - "CsName": "hi", - "CsType": "ref float", + "CName": "value", + "CsName": "value", + "CsType": "ref double", "Type": { - "Spelling": "float *", + "Spelling": "double *", "Kind": "Pointer", "Element": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "double", + "Kind": "Double" } } }, - { - "CName": "min", - "CsName": "min", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, - { - "CName": "max", - "CsName": "max", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeHistogramOpts", + "CsType": "in NativeMoneyOpts", "Type": { - "Spelling": "const cui_histogram_opts *", + "Spelling": "const cui_money_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_histogram_opts", + "Spelling": "const cui_money_opts", "Kind": "Record", "IsConst": true } @@ -44725,12 +49961,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Pickers", - "Doc": "" + "Module": "More inputs", + "Doc": "Edit an amount only if its grouped display can represent the result." }, { - "CName": "cui_knob_ex", - "CsName": "Knob", + "CName": "cui_shortcut_recorder_ex", + "CsName": "ShortcutRecorder", "CsReturn": "byte", "Params": [ { @@ -44761,45 +49997,27 @@ } }, { - "CName": "value", - "CsName": "value", - "CsType": "ref float", + "CName": "combo", + "CsName": "combo", + "CsType": "ref NativeKeyCombo", "Type": { - "Spelling": "float *", + "Spelling": "cui_key_combo *", "Kind": "Pointer", "Element": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "cui_key_combo", + "Kind": "Record" } } }, - { - "CName": "min", - "CsName": "min", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, - { - "CName": "max", - "CsName": "max", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeKnobOpts", + "CsType": "in NativeShortcutRecorderOpts", "Type": { - "Spelling": "const cui_knob_opts *", + "Spelling": "const cui_shortcut_recorder_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_knob_opts", + "Spelling": "const cui_shortcut_recorder_opts", "Kind": "Record", "IsConst": true } @@ -44810,12 +50028,79 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Pickers", + "Module": "More inputs", "Doc": "" }, { - "CName": "cui_fader_ex", - "CsName": "Fader", + "CName": "cui_shortcut_label", + "CsName": "ShortcutLabel", + "CsReturn": "nint", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + }, + { + "CName": "combo", + "CsName": "combo", + "CsType": "NativeKeyCombo", + "Type": { + "Spelling": "cui_key_combo", + "Kind": "Record" + } + } + ], + "ReturnType": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Module": "More inputs", + "Doc": "" + }, + { + "CName": "cui_key_name", + "CsName": "KeyName", + "CsReturn": "nint", + "Params": [ + { + "CName": "key", + "CsName": "key", + "CsType": "Key", + "Type": { + "Spelling": "cui_key", + "Kind": "Enum" + } + } + ], + "ReturnType": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + }, + "Module": "More inputs", + "Doc": "" + }, + { + "CName": "cui_node_editor_begin_ex", + "CsName": "NodeEditorBegin", "CsReturn": "byte", "Params": [ { @@ -44846,45 +50131,27 @@ } }, { - "CName": "value", - "CsName": "value", - "CsType": "ref float", + "CName": "view", + "CsName": "view", + "CsType": "ref NativeNodeView", "Type": { - "Spelling": "float *", + "Spelling": "cui_node_view *", "Kind": "Pointer", "Element": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "cui_node_view", + "Kind": "Record" } } }, - { - "CName": "min", - "CsName": "min", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, - { - "CName": "max", - "CsName": "max", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeFaderOpts", + "CsType": "in NativeNodeEditorOpts", "Type": { - "Spelling": "const cui_fader_opts *", + "Spelling": "const cui_node_editor_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_fader_opts", + "Spelling": "const cui_node_editor_opts", "Kind": "Record", "IsConst": true } @@ -44895,12 +50162,38 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Pickers", + "Module": "Node editor", + "Doc": "Build the editor canvas and process gestures while it is enabled." + }, + { + "CName": "cui_node_editor_end", + "CsName": "NodeEditorEnd", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Node editor", "Doc": "" }, { - "CName": "cui_level_meter_ex", - "CsName": "LevelMeter", + "CName": "cui_node_begin_ex", + "CsName": "NodeBegin", "CsReturn": "byte", "Params": [ { @@ -44917,51 +50210,63 @@ } }, { - "CName": "id", - "CsName": "id", - "CsType": "nint", + "CName": "node_id", + "CsName": "nodeId", + "CsType": "int", "Type": { - "Spelling": "const char *", + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "x", + "CsName": "x", + "CsType": "ref float", + "Type": { + "Spelling": "float *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "float", + "Kind": "Float" } } }, { - "CName": "levels", - "CsName": "levels", - "CsType": "nint", + "CName": "y", + "CsName": "y", + "CsType": "ref float", "Type": { - "Spelling": "const float *", + "Spelling": "float *", "Kind": "Pointer", "Element": { - "Spelling": "const float", - "Kind": "Float", - "IsConst": true + "Spelling": "float", + "Kind": "Float" } } }, { - "CName": "channels", - "CsName": "channels", - "CsType": "int", + "CName": "title", + "CsName": "title", + "CsType": "nint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeLevelMeterOpts", + "CsType": "in NativeNodeOpts", "Type": { - "Spelling": "const cui_level_meter_opts *", + "Spelling": "const cui_node_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_level_meter_opts", + "Spelling": "const cui_node_opts", "Kind": "Record", "IsConst": true } @@ -44972,12 +50277,38 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Pickers", - "Doc": "Returns true when the clip light was clicked to clear it." + "Module": "Node editor", + "Doc": "" }, { - "CName": "cui_signature_pad_ex", - "CsName": "SignaturePad", + "CName": "cui_node_end", + "CsName": "NodeEnd", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Node editor", + "Doc": "" + }, + { + "CName": "cui_node_input_ex", + "CsName": "NodeInput", "CsReturn": "byte", "Params": [ { @@ -44994,8 +50325,17 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "pin_id", + "CsName": "pinId", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -45010,12 +50350,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeSignatureOpts", + "CsType": "in NativePinOpts", "Type": { - "Spelling": "const cui_signature_opts *", + "Spelling": "const cui_pin_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_signature_opts", + "Spelling": "const cui_pin_opts", "Kind": "Record", "IsConst": true } @@ -45026,13 +50366,13 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Capture", + "Module": "Node editor", "Doc": "" }, { - "CName": "cui_signature_points", - "CsName": "SignaturePoints", - "CsReturn": "int", + "CName": "cui_node_output_ex", + "CsName": "NodeOutput", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -45048,79 +50388,53 @@ } }, { - "CName": "id", - "CsName": "id", - "CsType": "nint", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - }, - { - "CName": "points", - "CsName": "points", - "CsType": "nint", + "CName": "pin_id", + "CsName": "pinId", + "CsType": "int", "Type": { - "Spelling": "const cui_vec2 **", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_vec2 *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_vec2", - "Kind": "Record", - "IsConst": true - } - } + "Spelling": "int", + "Kind": "Int" } }, { - "CName": "stroke_ends", - "CsName": "strokeEnds", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { - "Spelling": "const int **", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const int *", - "Kind": "Pointer", - "Element": { - "Spelling": "const int", - "Kind": "Int", - "IsConst": true - } + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, { - "CName": "stroke_count", - "CsName": "strokeCount", - "CsType": "ref int", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativePinOpts", "Type": { - "Spelling": "int *", + "Spelling": "const cui_pin_opts *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const cui_pin_opts", + "Kind": "Record", + "IsConst": true } } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Capture", + "Module": "Node editor", "Doc": "" }, { - "CName": "cui_signature_clear", - "CsName": "SignatureClear", + "CName": "cui_node_content_begin", + "CsName": "NodeContentBegin", "CsReturn": "void", "Params": [ { @@ -45135,18 +50449,30 @@ "Kind": "Record" } } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Node editor", + "Doc": "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." + }, + { + "CName": "cui_node_content_end", + "CsName": "NodeContentEnd", + "CsReturn": "void", + "Params": [ { - "CName": "id", - "CsName": "id", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } } @@ -45155,13 +50481,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Capture", + "Module": "Node editor", "Doc": "" }, { - "CName": "cui_dropzone_ex", - "CsName": "Dropzone", - "CsReturn": "int", + "CName": "cui_node_link", + "CsName": "NodeLink", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -45177,71 +50503,81 @@ } }, { - "CName": "id", - "CsName": "id", - "CsType": "nint", + "CName": "link_id", + "CsName": "linkId", + "CsType": "int", "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeDropzoneOpts", + "CName": "from_pin", + "CsName": "fromPin", + "CsType": "int", "Type": { - "Spelling": "const cui_dropzone_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_dropzone_opts", - "Kind": "Record", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "to_pin", + "CsName": "toPin", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Capture", - "Doc": "" + "Module": "Node editor", + "Doc": "A link from an output pin to an input pin. Returns true while it is selected." }, { - "CName": "cui_path_has_extension", - "CsName": "PathHasExtension", + "CName": "cui_node_link_created", + "CsName": "NodeLinkCreated", "CsReturn": "byte", "Params": [ { - "CName": "path", - "CsName": "path", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "accept", - "CsName": "accept", - "CsType": "nint", + "CName": "from_pin", + "CsName": "fromPin", + "CsType": "ref int", "Type": { - "Spelling": "const char *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "int", + "Kind": "Int" + } + } + }, + { + "CName": "to_pin", + "CsName": "toPin", + "CsType": "ref int", + "Type": { + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" } } } @@ -45250,13 +50586,13 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Capture", - "Doc": "" + "Module": "Node editor", + "Doc": "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)." }, { - "CName": "cui_avatar_upload", - "CsName": "AvatarUpload", - "CsReturn": "int", + "CName": "cui_node_link_removed", + "CsName": "NodeLinkRemoved", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -45272,67 +50608,69 @@ } }, { - "CName": "id", - "CsName": "id", - "CsType": "nint", + "CName": "link_id", + "CsName": "linkId", + "CsType": "ref int", "Type": { - "Spelling": "const char *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "int", + "Kind": "Int" } } - }, + } + ], + "ReturnType": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Module": "Node editor", + "Doc": "Part of cui_node_link — A link from an output pin to an input pin. Returns true while it is selected." + }, + { + "CName": "cui_node_deleted", + "CsName": "NodeDeleted", + "CsReturn": "byte", + "Params": [ { - "CName": "name", - "CsName": "name", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "image", - "CsName": "image", - "CsType": "ref nuint", + "CName": "node_id", + "CsName": "nodeId", + "CsType": "ref int", "Type": { - "Spelling": "cui_texture *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "cui_texture", - "Kind": "ULongLong" + "Spelling": "int", + "Kind": "Int" } } - }, - { - "CName": "size", - "CsName": "size", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Capture", - "Doc": "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." + "Module": "Node editor", + "Doc": "" }, { - "CName": "cui_inline_edit_ex", - "CsName": "InlineEdit", - "CsReturn": "int", + "CName": "cui_menu_bar_begin", + "CsName": "MenuBarBegin", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -45362,52 +50700,56 @@ } }, { - "CName": "buf", - "CsName": "buf", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeMenuBarOpts", "Type": { - "Spelling": "char *", + "Spelling": "const cui_menu_bar_opts *", "Kind": "Pointer", "Element": { - "Spelling": "char", - "Kind": "Char_S" + "Spelling": "const cui_menu_bar_opts", + "Kind": "Record", + "IsConst": true } } - }, - { - "CName": "cap", - "CsName": "cap", - "CsType": "nuint", - "Type": { - "Spelling": "size_t", - "Kind": "ULongLong" - } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Doc": "" + }, + { + "CName": "cui_menu_bar_end", + "CsName": "MenuBarEnd", + "CsReturn": "void", + "Params": [ { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeInlineEditOpts", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "const cui_inline_edit_opts *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_inline_edit_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } } ], "ReturnType": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "void", + "Kind": "Void" }, - "Module": "More inputs", + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", "Doc": "" }, { - "CName": "cui_scrub_ex", - "CsName": "Scrub", + "CName": "cui_menu_bar_menu_begin", + "CsName": "MenuBarMenuBegin", "CsReturn": "byte", "Params": [ { @@ -45438,62 +50780,57 @@ } }, { - "CName": "value", - "CsName": "value", - "CsType": "ref float", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeMenuBarMenuOpts", "Type": { - "Spelling": "float *", + "Spelling": "const cui_menu_bar_menu_opts *", "Kind": "Pointer", "Element": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const cui_menu_bar_menu_opts", + "Kind": "Record", + "IsConst": true } } - }, - { - "CName": "min", - "CsName": "min", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, - { - "CName": "max", - "CsName": "max", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - }, + } + ], + "ReturnType": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Doc": "" + }, + { + "CName": "cui_menu_bar_menu_end", + "CsName": "MenuBarMenuEnd", + "CsReturn": "void", + "Params": [ { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeScrubOpts", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "const cui_scrub_opts *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_scrub_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "More inputs", + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", "Doc": "" }, { - "CName": "cui_money_input_ex", - "CsName": "MoneyInput", - "CsReturn": "byte", + "CName": "cui_toolbar_begin", + "CsName": "ToolbarBegin", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -45523,43 +50860,56 @@ } }, { - "CName": "value", - "CsName": "value", - "CsType": "ref double", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeToolbarOpts", "Type": { - "Spelling": "double *", + "Spelling": "const cui_toolbar_opts *", "Kind": "Pointer", "Element": { - "Spelling": "double", - "Kind": "Double" + "Spelling": "const cui_toolbar_opts", + "Kind": "Record", + "IsConst": true } } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Doc": "" + }, + { + "CName": "cui_toolbar_end", + "CsName": "ToolbarEnd", + "CsReturn": "void", + "Params": [ { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeMoneyOpts", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "const cui_money_opts *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_money_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "More inputs", + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", "Doc": "" }, { - "CName": "cui_shortcut_recorder_ex", - "CsName": "ShortcutRecorder", + "CName": "cui_toolbar_button_ex", + "CsName": "ToolbarButton", "CsReturn": "byte", "Params": [ { @@ -45576,8 +50926,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "icon", + "CsName": "icon", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -45589,28 +50939,15 @@ } } }, - { - "CName": "combo", - "CsName": "combo", - "CsType": "ref NativeKeyCombo", - "Type": { - "Spelling": "cui_key_combo *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_key_combo", - "Kind": "Record" - } - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeShortcutRecorderOpts", + "CsType": "in NativeToolOpts", "Type": { - "Spelling": "const cui_shortcut_recorder_opts *", + "Spelling": "const cui_tool_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_shortcut_recorder_opts", + "Spelling": "const cui_tool_opts", "Kind": "Record", "IsConst": true } @@ -45621,13 +50958,13 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "More inputs", + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", "Doc": "" }, { - "CName": "cui_shortcut_label", - "CsName": "ShortcutLabel", - "CsReturn": "nint", + "CName": "cui_toolbar_separator", + "CsName": "ToolbarSeparator", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -45641,59 +50978,96 @@ "Kind": "Record" } } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Doc": "" + }, + { + "CName": "cui_toolbar_spacer", + "CsName": "ToolbarSpacer", + "CsReturn": "void", + "Params": [ { - "CName": "combo", - "CsName": "combo", - "CsType": "NativeKeyCombo", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "cui_key_combo", - "Kind": "Record" + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } } } ], "ReturnType": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "void", + "Kind": "Void" }, - "Module": "More inputs", - "Doc": "" + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Doc": "pushes the following items to the right" }, { - "CName": "cui_key_name", - "CsName": "KeyName", - "CsReturn": "nint", + "CName": "cui_toolbar_group_begin", + "CsName": "ToolbarGroupBegin", + "CsReturn": "void", "Params": [ { - "CName": "key", - "CsName": "key", - "CsType": "Key", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "cui_key", - "Kind": "Enum" + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } } } ], "ReturnType": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "void", + "Kind": "Void" + }, + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Doc": "A group of items: a raised well in the grouped style, set apart by separators in the others." + }, + { + "CName": "cui_toolbar_group_end", + "CsName": "ToolbarGroupEnd", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" }, - "Module": "More inputs", + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", "Doc": "" }, { - "CName": "cui_node_editor_begin_ex", - "CsName": "NodeEditorBegin", + "CName": "cui_toolbar_radio_ex", + "CsName": "ToolbarRadio", "CsReturn": "byte", "Params": [ { @@ -45724,27 +51098,55 @@ } }, { - "CName": "view", - "CsName": "view", - "CsType": "ref NativeNodeView", + "CName": "icons", + "CsName": "icons", + "CsType": "nint", "Type": { - "Spelling": "cui_node_view *", + "Spelling": "const char *const *", "Kind": "Pointer", "Element": { - "Spelling": "cui_node_view", - "Kind": "Record" + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "index", + "CsName": "index", + "CsType": "ref int", + "Type": { + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeNodeEditorOpts", + "CsType": "in NativeToolbarRadioOpts", "Type": { - "Spelling": "const cui_node_editor_opts *", + "Spelling": "const cui_toolbar_radio_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_node_editor_opts", + "Spelling": "const cui_toolbar_radio_opts", "Kind": "Record", "IsConst": true } @@ -45755,13 +51157,13 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Node editor", + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", "Doc": "" }, { - "CName": "cui_node_editor_end", - "CsName": "NodeEditorEnd", - "CsReturn": "void", + "CName": "cui_toolbar_primary_ex", + "CsName": "ToolbarPrimary", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -45775,18 +51177,46 @@ "Kind": "Record" } } + }, + { + "CName": "icon", + "CsName": "icon", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeToolOpts", + "Type": { + "Spelling": "const cui_tool_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_tool_opts", + "Kind": "Record", + "IsConst": true + } + } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Node editor", - "Doc": "" + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Doc": "The main action at the end of a grouped toolbar: a larger button filled with the text color." }, { - "CName": "cui_node_begin_ex", - "CsName": "NodeBegin", + "CName": "cui_toolbar_cycle_ex", + "CsName": "ToolbarCycle", "CsReturn": "byte", "Params": [ { @@ -45803,63 +51233,69 @@ } }, { - "CName": "node_id", - "CsName": "nodeId", - "CsType": "int", + "CName": "id", + "CsName": "id", + "CsType": "nint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } }, { - "CName": "x", - "CsName": "x", - "CsType": "ref float", + "CName": "items", + "CsName": "items", + "CsType": "nint", "Type": { - "Spelling": "float *", + "Spelling": "const char *const *", "Kind": "Pointer", "Element": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } } }, { - "CName": "y", - "CsName": "y", - "CsType": "ref float", + "CName": "count", + "CsName": "count", + "CsType": "int", "Type": { - "Spelling": "float *", - "Kind": "Pointer", - "Element": { - "Spelling": "float", - "Kind": "Float" - } + "Spelling": "int", + "Kind": "Int" } }, { - "CName": "title", - "CsName": "title", - "CsType": "nint", + "CName": "index", + "CsName": "index", + "CsType": "ref int", "Type": { - "Spelling": "const char *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "int", + "Kind": "Int" } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeNodeOpts", + "CsType": "in NativeToolOpts", "Type": { - "Spelling": "const cui_node_opts *", + "Spelling": "const cui_tool_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_node_opts", + "Spelling": "const cui_tool_opts", "Kind": "Record", "IsConst": true } @@ -45870,12 +51306,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Node editor", - "Doc": "" + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Doc": "A small picker that steps through its choices on each click (\"1x\", \"2x\", \"4x\"). Returns true when *index changed." }, { - "CName": "cui_node_end", - "CsName": "NodeEnd", + "CName": "cui_flyout_mark", + "CsName": "FlyoutMark", "CsReturn": "void", "Params": [ { @@ -45896,13 +51332,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Node editor", - "Doc": "" + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Doc": "A small triangle in the corner of the previous component (at the end side) that says it opens a flyout or a menu. Any button can take it." }, { - "CName": "cui_node_input_ex", - "CsName": "NodeInput", - "CsReturn": "byte", + "CName": "cui_status_bar_begin", + "CsName": "StatusBarBegin", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -45918,17 +51354,8 @@ } }, { - "CName": "pin_id", - "CsName": "pinId", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "label", - "CsName": "label", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -45943,12 +51370,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativePinOpts", + "CsType": "in NativeStatusBarOpts", "Type": { - "Spelling": "const cui_pin_opts *", + "Spelling": "const cui_status_bar_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_pin_opts", + "Spelling": "const cui_status_bar_opts", "Kind": "Record", "IsConst": true } @@ -45956,16 +51383,16 @@ } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Node editor", + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", "Doc": "" }, { - "CName": "cui_node_output_ex", - "CsName": "NodeOutput", - "CsReturn": "byte", + "CName": "cui_status_bar_end", + "CsName": "StatusBarEnd", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -45979,55 +51406,18 @@ "Kind": "Record" } } - }, - { - "CName": "pin_id", - "CsName": "pinId", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "label", - "CsName": "label", - "CsType": "nint", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - }, - { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativePinOpts", - "Type": { - "Spelling": "const cui_pin_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_pin_opts", - "Kind": "Record", - "IsConst": true - } - } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Node editor", + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", "Doc": "" }, { - "CName": "cui_node_content_begin", - "CsName": "NodeContentBegin", + "CName": "cui_status_bar_spacer", + "CsName": "StatusBarSpacer", "CsReturn": "void", "Params": [ { @@ -46048,12 +51438,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Node editor", - "Doc": "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." + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Doc": "" }, { - "CName": "cui_node_content_end", - "CsName": "NodeContentEnd", + "CName": "cui_status_bar_text_ex", + "CsName": "StatusBarText", "CsReturn": "void", "Params": [ { @@ -46068,18 +51458,46 @@ "Kind": "Record" } } + }, + { + "CName": "text", + "CsName": "text", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeStatusItemOpts", + "Type": { + "Spelling": "const cui_status_item_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_status_item_opts", + "Kind": "Record", + "IsConst": true + } + } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Node editor", - "Doc": "" + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Doc": "A message; `tone` colors its icon." }, { - "CName": "cui_node_link", - "CsName": "NodeLink", + "CName": "cui_status_bar_item_ex", + "CsName": "StatusBarItem", "CsReturn": "byte", "Params": [ { @@ -46096,30 +51514,31 @@ } }, { - "CName": "link_id", - "CsName": "linkId", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "from_pin", - "CsName": "fromPin", - "CsType": "int", + "CName": "label", + "CsName": "label", + "CsType": "nint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } }, { - "CName": "to_pin", - "CsName": "toPin", - "CsType": "int", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeStatusItemOpts", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const cui_status_item_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_status_item_opts", + "Kind": "Record", + "IsConst": true + } } } ], @@ -46127,13 +51546,13 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Node editor", - "Doc": "A link from an output pin to an input pin. Returns true while it is selected." + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Doc": "A small clickable item (\"Ln 12, Col 4\", \"UTF-8\"). Returns true when clicked." }, { - "CName": "cui_node_link_created", - "CsName": "NodeLinkCreated", - "CsReturn": "byte", + "CName": "cui_status_bar_progress_ex", + "CsName": "StatusBarProgress", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -46149,43 +51568,40 @@ } }, { - "CName": "from_pin", - "CsName": "fromPin", - "CsType": "ref int", + "CName": "value", + "CsName": "value", + "CsType": "float", "Type": { - "Spelling": "int *", - "Kind": "Pointer", - "Element": { - "Spelling": "int", - "Kind": "Int" - } + "Spelling": "float", + "Kind": "Float" } }, { - "CName": "to_pin", - "CsName": "toPin", - "CsType": "ref int", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeStatusProgressOpts", "Type": { - "Spelling": "int *", + "Spelling": "const cui_status_progress_opts *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const cui_status_progress_opts", + "Kind": "Record", + "IsConst": true } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Node editor", - "Doc": "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)." + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Doc": "" }, { - "CName": "cui_node_link_removed", - "CsName": "NodeLinkRemoved", - "CsReturn": "byte", + "CName": "cui_doc_tabs_ex", + "CsName": "DocTabs", + "CsReturn": "NativeDocTabsResult", "Params": [ { "CName": "ui", @@ -46201,47 +51617,45 @@ } }, { - "CName": "link_id", - "CsName": "linkId", - "CsType": "ref int", + "CName": "id", + "CsName": "id", + "CsType": "nint", "Type": { - "Spelling": "int *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } - } - ], - "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Module": "Node editor", - "Doc": "Part of cui_node_link — A link from an output pin to an input pin. Returns true while it is selected." - }, - { - "CName": "cui_node_deleted", - "CsName": "NodeDeleted", - "CsReturn": "byte", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "tabs", + "CsName": "tabs", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const cui_doc_tab *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const cui_doc_tab", + "Kind": "Record", + "IsConst": true } } }, { - "CName": "node_id", - "CsName": "nodeId", + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "selected", + "CsName": "selected", "CsType": "ref int", "Type": { "Spelling": "int *", @@ -46251,18 +51665,32 @@ "Kind": "Int" } } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeDocTabsOpts", + "Type": { + "Spelling": "const cui_doc_tabs_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_doc_tabs_opts", + "Kind": "Record", + "IsConst": true + } + } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_doc_tabs_result", + "Kind": "Record" }, - "Module": "Node editor", + "Module": "App chrome: menu bar, toolbar, status bar, document tabs", "Doc": "" }, { - "CName": "cui_menu_bar_begin", - "CsName": "MenuBarBegin", + "CName": "cui_dockspace_begin_ex", + "CsName": "DockspaceBegin", "CsReturn": "void", "Params": [ { @@ -46295,12 +51723,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeMenuBarOpts", + "CsType": "in NativeDockspaceOpts", "Type": { - "Spelling": "const cui_menu_bar_opts *", + "Spelling": "const cui_dockspace_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_menu_bar_opts", + "Spelling": "const cui_dockspace_opts", "Kind": "Record", "IsConst": true } @@ -46311,12 +51739,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Module": "Docking", "Doc": "" }, { - "CName": "cui_menu_bar_end", - "CsName": "MenuBarEnd", + "CName": "cui_dockspace_end", + "CsName": "DockspaceEnd", "CsReturn": "void", "Params": [ { @@ -46337,12 +51765,12 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Module": "Docking", "Doc": "" }, { - "CName": "cui_menu_bar_menu_begin", - "CsName": "MenuBarMenuBegin", + "CName": "cui_dock_panel_begin_ex", + "CsName": "DockPanelBegin", "CsReturn": "byte", "Params": [ { @@ -46359,8 +51787,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "title", + "CsName": "title", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -46372,15 +51800,28 @@ } } }, + { + "CName": "open", + "CsName": "open", + "CsType": "nint", + "Type": { + "Spelling": "_Bool *", + "Kind": "Pointer", + "Element": { + "Spelling": "_Bool", + "Kind": "Bool" + } + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeMenuBarMenuOpts", + "CsType": "in NativeDockPanelOpts", "Type": { - "Spelling": "const cui_menu_bar_menu_opts *", + "Spelling": "const cui_dock_panel_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_menu_bar_menu_opts", + "Spelling": "const cui_dock_panel_opts", "Kind": "Record", "IsConst": true } @@ -46391,12 +51832,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Module": "Docking", "Doc": "" }, { - "CName": "cui_menu_bar_menu_end", - "CsName": "MenuBarMenuEnd", + "CName": "cui_dock_panel_end", + "CsName": "DockPanelEnd", "CsReturn": "void", "Params": [ { @@ -46417,13 +51858,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Module": "Docking", "Doc": "" }, { - "CName": "cui_toolbar_begin", - "CsName": "ToolbarBegin", - "CsReturn": "void", + "CName": "cui_dock_save", + "CsName": "DockSave", + "CsReturn": "nuint", "Params": [ { "CName": "ui", @@ -46453,31 +51894,39 @@ } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeToolbarOpts", + "CName": "buf", + "CsName": "buf", + "CsType": "nint", "Type": { - "Spelling": "const cui_toolbar_opts *", + "Spelling": "char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_toolbar_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "char", + "Kind": "Char_S" } } + }, + { + "CName": "cap", + "CsName": "cap", + "CsType": "nuint", + "Type": { + "Spelling": "size_t", + "Kind": "ULongLong" + } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "size_t", + "Kind": "ULongLong" }, - "Module": "App chrome: menu bar, toolbar, status bar, document tabs", - "Doc": "" + "Module": "Docking", + "Doc": "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's share, [..] is a leaf's 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's *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." }, { - "CName": "cui_toolbar_end", - "CsName": "ToolbarEnd", - "CsReturn": "void", + "CName": "cui_dock_load", + "CsName": "DockLoad", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -46491,18 +51940,46 @@ "Kind": "Record" } } + }, + { + "CName": "id", + "CsName": "id", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "text", + "CsName": "text", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Module": "Docking", "Doc": "" }, { - "CName": "cui_toolbar_button_ex", - "CsName": "ToolbarButton", + "CName": "cui_inspector_begin_ex", + "CsName": "InspectorBegin", "CsReturn": "byte", "Params": [ { @@ -46519,8 +51996,8 @@ } }, { - "CName": "icon", - "CsName": "icon", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -46535,12 +52012,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeToolOpts", + "CsType": "in NativeInspectorOpts", "Type": { - "Spelling": "const cui_tool_opts *", + "Spelling": "const cui_inspector_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_tool_opts", + "Spelling": "const cui_inspector_opts", "Kind": "Record", "IsConst": true } @@ -46551,12 +52028,12 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Module": "Docking", "Doc": "" }, { - "CName": "cui_toolbar_separator", - "CsName": "ToolbarSeparator", + "CName": "cui_inspector_end", + "CsName": "InspectorEnd", "CsReturn": "void", "Params": [ { @@ -46577,13 +52054,13 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Module": "Docking", "Doc": "" }, { - "CName": "cui_toolbar_spacer", - "CsName": "ToolbarSpacer", - "CsReturn": "void", + "CName": "cui_inspector_group", + "CsName": "InspectorGroup", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -46597,19 +52074,46 @@ "Kind": "Record" } } + }, + { + "CName": "title", + "CsName": "title", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "open", + "CsName": "open", + "CsType": "nint", + "Type": { + "Spelling": "_Bool *", + "Kind": "Pointer", + "Element": { + "Spelling": "_Bool", + "Kind": "Bool" + } + } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "App chrome: menu bar, toolbar, status bar, document tabs", - "Doc": "pushes the following items to the right" + "Module": "Docking", + "Doc": "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." }, { - "CName": "cui_status_bar_begin", - "CsName": "StatusBarBegin", - "CsReturn": "void", + "CName": "cui_prop_float_ex", + "CsName": "PropFloat", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -46625,8 +52129,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -46639,57 +52143,44 @@ } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeStatusBarOpts", + "CName": "value", + "CsName": "value", + "CsType": "ref float", "Type": { - "Spelling": "const cui_status_bar_opts *", + "Spelling": "float *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_status_bar_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "float", + "Kind": "Float" } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "App chrome: menu bar, toolbar, status bar, document tabs", - "Doc": "" - }, - { - "CName": "cui_status_bar_end", - "CsName": "StatusBarEnd", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativePropOpts", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const cui_prop_opts *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const cui_prop_opts", + "Kind": "Record", + "IsConst": true } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Module": "Docking", "Doc": "" }, { - "CName": "cui_status_bar_spacer", - "CsName": "StatusBarSpacer", - "CsReturn": "void", + "CName": "cui_prop_int_ex", + "CsName": "PropInt", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -46703,56 +52194,43 @@ "Kind": "Record" } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "App chrome: menu bar, toolbar, status bar, document tabs", - "Doc": "" - }, - { - "CName": "cui_status_bar_text_ex", - "CsName": "StatusBarText", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, { - "CName": "text", - "CsName": "text", - "CsType": "nint", + "CName": "value", + "CsName": "value", + "CsType": "ref int", "Type": { - "Spelling": "const char *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "int", + "Kind": "Int" } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeStatusItemOpts", + "CsType": "in NativePropOpts", "Type": { - "Spelling": "const cui_status_item_opts *", + "Spelling": "const cui_prop_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_status_item_opts", + "Spelling": "const cui_prop_opts", "Kind": "Record", "IsConst": true } @@ -46760,15 +52238,15 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "App chrome: menu bar, toolbar, status bar, document tabs", - "Doc": "A message; `tone` colors its icon." + "Module": "Docking", + "Doc": "" }, { - "CName": "cui_status_bar_item_ex", - "CsName": "StatusBarItem", + "CName": "cui_prop_text_ex", + "CsName": "PropText", "CsReturn": "byte", "Params": [ { @@ -46798,15 +52276,37 @@ } } }, + { + "CName": "buf", + "CsName": "buf", + "CsType": "nint", + "Type": { + "Spelling": "char *", + "Kind": "Pointer", + "Element": { + "Spelling": "char", + "Kind": "Char_S" + } + } + }, + { + "CName": "cap", + "CsName": "cap", + "CsType": "nuint", + "Type": { + "Spelling": "size_t", + "Kind": "ULongLong" + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeStatusItemOpts", + "CsType": "in NativePropOpts", "Type": { - "Spelling": "const cui_status_item_opts *", + "Spelling": "const cui_prop_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_status_item_opts", + "Spelling": "const cui_prop_opts", "Kind": "Record", "IsConst": true } @@ -46817,13 +52317,13 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "App chrome: menu bar, toolbar, status bar, document tabs", - "Doc": "A small clickable item (\"Ln 12, Col 4\", \"UTF-8\"). Returns true when clicked." + "Module": "Docking", + "Doc": "" }, { - "CName": "cui_status_bar_progress_ex", - "CsName": "StatusBarProgress", - "CsReturn": "void", + "CName": "cui_prop_bool_ex", + "CsName": "PropBool", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -46838,24 +52338,42 @@ } } }, + { + "CName": "label", + "CsName": "label", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, { "CName": "value", "CsName": "value", - "CsType": "float", + "CsType": "nint", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "_Bool *", + "Kind": "Pointer", + "Element": { + "Spelling": "_Bool", + "Kind": "Bool" + } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeStatusProgressOpts", + "CsType": "in NativePropOpts", "Type": { - "Spelling": "const cui_status_progress_opts *", + "Spelling": "const cui_prop_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_status_progress_opts", + "Spelling": "const cui_prop_opts", "Kind": "Record", "IsConst": true } @@ -46863,16 +52381,16 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Module": "Docking", "Doc": "" }, { - "CName": "cui_doc_tabs_ex", - "CsName": "DocTabs", - "CsReturn": "NativeDocTabsResult", + "CName": "cui_prop_enum_ex", + "CsName": "PropEnum", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -46888,8 +52406,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -46902,16 +52420,21 @@ } }, { - "CName": "tabs", - "CsName": "tabs", + "CName": "items", + "CsName": "items", "CsType": "nint", "Type": { - "Spelling": "const cui_doc_tab *", + "Spelling": "const char *const *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_doc_tab", - "Kind": "Record", - "IsConst": true + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } } }, @@ -46925,8 +52448,8 @@ } }, { - "CName": "selected", - "CsName": "selected", + "CName": "index", + "CsName": "index", "CsType": "ref int", "Type": { "Spelling": "int *", @@ -46940,12 +52463,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeDocTabsOpts", + "CsType": "in NativePropOpts", "Type": { - "Spelling": "const cui_doc_tabs_opts *", + "Spelling": "const cui_prop_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_doc_tabs_opts", + "Spelling": "const cui_prop_opts", "Kind": "Record", "IsConst": true } @@ -46953,16 +52476,16 @@ } ], "ReturnType": { - "Spelling": "cui_doc_tabs_result", - "Kind": "Record" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "App chrome: menu bar, toolbar, status bar, document tabs", + "Module": "Docking", "Doc": "" }, { - "CName": "cui_dockspace_begin_ex", - "CsName": "DockspaceBegin", - "CsReturn": "void", + "CName": "cui_prop_color_ex", + "CsName": "PropColor", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -46978,8 +52501,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -46992,56 +52515,43 @@ } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeDockspaceOpts", + "CName": "value", + "CsName": "value", + "CsType": "ref NativeColor", "Type": { - "Spelling": "const cui_dockspace_opts *", + "Spelling": "cui_color *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_dockspace_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_color", + "Kind": "Record" } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Docking", - "Doc": "" - }, - { - "CName": "cui_dockspace_end", - "CsName": "DockspaceEnd", - "CsReturn": "void", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativePropOpts", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const cui_prop_opts *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const cui_prop_opts", + "Kind": "Record", + "IsConst": true } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, "Module": "Docking", - "Doc": "" + "Doc": "A swatch and hex value that opens the color picker." }, { - "CName": "cui_dock_panel_begin_ex", - "CsName": "DockPanelBegin", + "CName": "cui_prop_vec_ex", + "CsName": "PropVec", "CsReturn": "byte", "Params": [ { @@ -47058,8 +52568,8 @@ } }, { - "CName": "title", - "CsName": "title", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -47072,27 +52582,36 @@ } }, { - "CName": "open", - "CsName": "open", - "CsType": "nint", + "CName": "value", + "CsName": "value", + "CsType": "ref float", "Type": { - "Spelling": "_Bool *", + "Spelling": "float *", "Kind": "Pointer", "Element": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "float", + "Kind": "Float" } } }, + { + "CName": "components", + "CsName": "components", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeDockPanelOpts", + "CsType": "in NativePropOpts", "Type": { - "Spelling": "const cui_dock_panel_opts *", + "Spelling": "const cui_prop_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_dock_panel_opts", + "Spelling": "const cui_prop_opts", "Kind": "Record", "IsConst": true } @@ -47104,69 +52623,51 @@ "Kind": "Bool" }, "Module": "Docking", - "Doc": "" + "Doc": "Compact X, Y (Z, W) scrub fields side by side; value holds 2, 3 or 4 floats." }, { - "CName": "cui_dock_panel_end", - "CsName": "DockPanelEnd", + "CName": "cui_log_init", + "CsName": "LogInit", "CsReturn": "void", "Params": [ { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "buf", + "CsName": "buf", + "CsType": "ref NativeLogBuffer", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "cui_log_buffer *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", + "Spelling": "cui_log_buffer", "Kind": "Record" } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Docking", - "Doc": "" - }, - { - "CName": "cui_dock_save", - "CsName": "DockSave", - "CsReturn": "nuint", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "lines", + "CsName": "lines", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "cui_log_line *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", + "Spelling": "cui_log_line", "Kind": "Record" } } }, { - "CName": "id", - "CsName": "id", - "CsType": "nint", + "CName": "line_cap", + "CsName": "lineCap", + "CsType": "int", "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" } }, { - "CName": "buf", - "CsName": "buf", + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { "Spelling": "char *", @@ -47178,8 +52679,8 @@ } }, { - "CName": "cap", - "CsName": "cap", + "CName": "text_cap", + "CsName": "textCap", "CsType": "nuint", "Type": { "Spelling": "size_t", @@ -47188,33 +52689,42 @@ } ], "ReturnType": { - "Spelling": "size_t", - "Kind": "ULongLong" + "Spelling": "void", + "Kind": "Void" }, "Module": "Docking", - "Doc": "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's share, [..] is a leaf's 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's *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." + "Doc": "" }, { - "CName": "cui_dock_load", - "CsName": "DockLoad", - "CsReturn": "byte", + "CName": "cui_log_appendv", + "CsName": "LogAppendv", + "CsReturn": "void", "Params": [ { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "buf", + "CsName": "buf", + "CsType": "ref NativeLogBuffer", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "cui_log_buffer *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", + "Spelling": "cui_log_buffer", "Kind": "Record" } } }, { - "CName": "id", - "CsName": "id", + "CName": "level", + "CsName": "level", + "CsType": "LogLevel", + "Type": { + "Spelling": "cui_log_level", + "Kind": "Enum" + } + }, + { + "CName": "fmt", + "CsName": "fmt", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -47227,48 +52737,65 @@ } }, { - "CName": "text", - "CsName": "text", + "CName": "ap", + "CsName": "ap", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "va_list", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "char", + "Kind": "Char_S" } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, "Module": "Docking", "Doc": "" }, { - "CName": "cui_inspector_begin_ex", - "CsName": "InspectorBegin", - "CsReturn": "byte", + "CName": "cui_log_append_text", + "CsName": "LogAppendText", + "CsReturn": "void", "Params": [ { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "buf", + "CsName": "buf", + "CsType": "ref NativeLogBuffer", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "cui_log_buffer *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", + "Spelling": "cui_log_buffer", "Kind": "Record" } } }, { - "CName": "id", - "CsName": "id", + "CName": "level", + "CsName": "level", + "CsType": "LogLevel", + "Type": { + "Spelling": "cui_log_level", + "Kind": "Enum" + } + }, + { + "CName": "time", + "CsName": "time", + "CsType": "double", + "Type": { + "Spelling": "double", + "Kind": "Double" + } + }, + { + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -47281,41 +52808,36 @@ } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeInspectorOpts", + "CName": "len", + "CsName": "len", + "CsType": "int", "Type": { - "Spelling": "const cui_inspector_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_inspector_opts", - "Kind": "Record", - "IsConst": true - } + "Spelling": "int", + "Kind": "Int" } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, "Module": "Docking", - "Doc": "" + "Doc": "Appends len bytes (-1: up to the terminator) stamped with time." }, { - "CName": "cui_inspector_end", - "CsName": "InspectorEnd", + "CName": "cui_log_clear", + "CsName": "LogClear", "CsReturn": "void", "Params": [ { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "buf", + "CsName": "buf", + "CsType": "ref NativeLogBuffer", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "cui_log_buffer *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", + "Spelling": "cui_log_buffer", "Kind": "Record" } } @@ -47329,129 +52851,68 @@ "Doc": "" }, { - "CName": "cui_inspector_group", - "CsName": "InspectorGroup", - "CsReturn": "byte", + "CName": "cui_log_get", + "CsName": "LogGet", + "CsReturn": "nint", "Params": [ { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", - "Type": { - "Spelling": "cui_ctx *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" - } - } - }, - { - "CName": "title", - "CsName": "title", - "CsType": "nint", + "CName": "buf", + "CsName": "buf", + "CsType": "in NativeLogBuffer", "Type": { - "Spelling": "const char *", + "Spelling": "const cui_log_buffer *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", + "Spelling": "const cui_log_buffer", + "Kind": "Record", "IsConst": true } } }, { - "CName": "open", - "CsName": "open", - "CsType": "nint", - "Type": { - "Spelling": "_Bool *", - "Kind": "Pointer", - "Element": { - "Spelling": "_Bool", - "Kind": "Bool" - } - } - } - ], - "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Module": "Docking", - "Doc": "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." - }, - { - "CName": "cui_prop_float_ex", - "CsName": "PropFloat", - "CsReturn": "byte", - "Params": [ - { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "i", + "CsName": "i", + "CsType": "int", "Type": { - "Spelling": "cui_ctx *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" - } + "Spelling": "int", + "Kind": "Int" } }, { - "CName": "label", - "CsName": "label", + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - }, - { - "CName": "value", - "CsName": "value", - "CsType": "ref float", - "Type": { - "Spelling": "float *", - "Kind": "Pointer", - "Element": { - "Spelling": "float", - "Kind": "Float" - } - } - }, - { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativePropOpts", - "Type": { - "Spelling": "const cui_prop_opts *", + "Spelling": "const char **", "Kind": "Pointer", "Element": { - "Spelling": "const cui_prop_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "const cui_log_line *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_log_line", + "Kind": "Record", + "IsConst": true + } }, "Module": "Docking", - "Doc": "" + "Doc": "Line i (0 = oldest), or NULL when out of range. *text is terminated (and len bytes long)." }, { - "CName": "cui_prop_int_ex", - "CsName": "PropInt", - "CsReturn": "byte", + "CName": "cui_log_view_ex", + "CsName": "LogView", + "CsReturn": "void", "Params": [ { "CName": "ui", @@ -47467,8 +52928,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -47481,27 +52942,27 @@ } }, { - "CName": "value", - "CsName": "value", - "CsType": "ref int", + "CName": "buf", + "CsName": "buf", + "CsType": "ref NativeLogBuffer", "Type": { - "Spelling": "int *", + "Spelling": "cui_log_buffer *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_log_buffer", + "Kind": "Record" } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativePropOpts", + "CsType": "in NativeLogViewOpts", "Type": { - "Spelling": "const cui_prop_opts *", + "Spelling": "const cui_log_view_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_prop_opts", + "Spelling": "const cui_log_view_opts", "Kind": "Record", "IsConst": true } @@ -47509,47 +52970,33 @@ } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, "Module": "Docking", - "Doc": "" + "Doc": "Toolbar: level filters, a search field that filters and highlights, Follow (keeps the newest line in view; scrolling up turns it off, reaching the bottom turns it back on), Copy (selected lines, or all shown) and Clear. Click a line to select it, Shift+click for a range; with the list focused, arrows move, Shift+arrows extend, Ctrl+A selects all, Ctrl+C copies, Esc clears the selection, End follows again." }, { - "CName": "cui_prop_text_ex", - "CsName": "PropText", - "CsReturn": "byte", + "CName": "cui_terminal_init", + "CsName": "TerminalInit", + "CsReturn": "void", "Params": [ { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", - "Type": { - "Spelling": "cui_ctx *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" - } - } - }, - { - "CName": "label", - "CsName": "label", - "CsType": "nint", + "CName": "t", + "CsName": "t", + "CsType": "ref NativeTerminalBuffer", "Type": { - "Spelling": "const char *", + "Spelling": "cui_terminal_buffer *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "cui_terminal_buffer", + "Kind": "Record" } } }, { - "CName": "buf", - "CsName": "buf", + "CName": "text", + "CsName": "text", "CsType": "nint", "Type": { "Spelling": "char *", @@ -47561,8 +53008,8 @@ } }, { - "CName": "cap", - "CsName": "cap", + "CName": "text_cap", + "CsName": "textCap", "CsType": "nuint", "Type": { "Spelling": "size_t", @@ -47570,48 +53017,56 @@ } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativePropOpts", + "CName": "lines", + "CsName": "lines", + "CsType": "nint", "Type": { - "Spelling": "const cui_prop_opts *", + "Spelling": "cui_terminal_line *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_prop_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_terminal_line", + "Kind": "Record" } } + }, + { + "CName": "line_cap", + "CsName": "lineCap", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Docking", + "Module": "Terminal", "Doc": "" }, { - "CName": "cui_prop_bool_ex", - "CsName": "PropBool", - "CsReturn": "byte", + "CName": "cui_terminal_write", + "CsName": "TerminalWrite", + "CsReturn": "void", "Params": [ { - "CName": "ui", - "CsName": "ui", - "CsType": "nint", + "CName": "t", + "CsName": "t", + "CsType": "ref NativeTerminalBuffer", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "cui_terminal_buffer *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", + "Spelling": "cui_terminal_buffer", "Kind": "Record" } } }, { - "CName": "label", - "CsName": "label", + "CName": "data", + "CsName": "data", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -47624,44 +53079,52 @@ } }, { - "CName": "value", - "CsName": "value", - "CsType": "nint", + "CName": "len", + "CsName": "len", + "CsType": "int", "Type": { - "Spelling": "_Bool *", - "Kind": "Pointer", - "Element": { - "Spelling": "_Bool", - "Kind": "Bool" - } + "Spelling": "int", + "Kind": "Int" } - }, + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Terminal", + "Doc": "len -1: up to the terminator" + }, + { + "CName": "cui_terminal_clear", + "CsName": "TerminalClear", + "CsReturn": "void", + "Params": [ { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativePropOpts", + "CName": "t", + "CsName": "t", + "CsType": "ref NativeTerminalBuffer", "Type": { - "Spelling": "const cui_prop_opts *", + "Spelling": "cui_terminal_buffer *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_prop_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_terminal_buffer", + "Kind": "Record" } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "void", + "Kind": "Void" }, - "Module": "Docking", + "Module": "Terminal", "Doc": "" }, { - "CName": "cui_prop_enum_ex", - "CsName": "PropEnum", - "CsReturn": "byte", + "CName": "cui_terminal_ex", + "CsName": "Terminal", + "CsReturn": "NativeTerminalResult", "Params": [ { "CName": "ui", @@ -47677,8 +53140,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -47691,55 +53154,27 @@ } }, { - "CName": "items", - "CsName": "items", - "CsType": "nint", - "Type": { - "Spelling": "const char *const *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char *const", - "Kind": "Pointer", - "IsConst": true, - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - } - }, - { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "index", - "CsName": "index", - "CsType": "ref int", + "CName": "t", + "CsName": "t", + "CsType": "ref NativeTerminalBuffer", "Type": { - "Spelling": "int *", + "Spelling": "cui_terminal_buffer *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_terminal_buffer", + "Kind": "Record" } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativePropOpts", + "CsType": "in NativeTerminalOpts", "Type": { - "Spelling": "const cui_prop_opts *", + "Spelling": "const cui_terminal_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_prop_opts", + "Spelling": "const cui_terminal_opts", "Kind": "Record", "IsConst": true } @@ -47747,15 +53182,15 @@ } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_terminal_result", + "Kind": "Record" }, - "Module": "Docking", + "Module": "Terminal", "Doc": "" }, { - "CName": "cui_prop_color_ex", - "CsName": "PropColor", + "CName": "cui_emoji_font_load_file", + "CsName": "EmojiFontLoadFile", "CsReturn": "byte", "Params": [ { @@ -47772,8 +53207,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "path", + "CsName": "path", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -47784,45 +53219,18 @@ "IsConst": true } } - }, - { - "CName": "value", - "CsName": "value", - "CsType": "ref NativeColor", - "Type": { - "Spelling": "cui_color *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_color", - "Kind": "Record" - } - } - }, - { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativePropOpts", - "Type": { - "Spelling": "const cui_prop_opts *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_prop_opts", - "Kind": "Record", - "IsConst": true - } - } } ], "ReturnType": { "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Docking", - "Doc": "A swatch and hex value that opens the color picker." + "Module": "Emoji", + "Doc": "Color emoji come from an emoji font: the system's (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's ligatures. Big fonts are read from the file as needed rather than loaded whole. Drawn emoji are kept in one texture and reused." }, { - "CName": "cui_prop_vec_ex", - "CsName": "PropVec", + "CName": "cui_emoji_font_load_memory", + "CsName": "EmojiFontLoadMemory", "CsReturn": "byte", "Params": [ { @@ -47839,52 +53247,60 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "data", + "CsName": "data", "CsType": "nint", "Type": { - "Spelling": "const char *", + "Spelling": "const void *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", + "Spelling": "const void", + "Kind": "Void", "IsConst": true } } }, { - "CName": "value", - "CsName": "value", - "CsType": "ref float", + "CName": "size", + "CsName": "size", + "CsType": "nuint", "Type": { - "Spelling": "float *", - "Kind": "Pointer", - "Element": { - "Spelling": "float", - "Kind": "Float" - } + "Spelling": "size_t", + "Kind": "ULongLong" } }, { - "CName": "components", - "CsName": "components", - "CsType": "int", + "CName": "copy", + "CsName": "copy", + "CsType": "byte", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "_Bool", + "Kind": "Bool" } - }, + } + ], + "ReturnType": { + "Spelling": "_Bool", + "Kind": "Bool" + }, + "Module": "Emoji", + "Doc": "" + }, + { + "CName": "cui_emoji_font_load_system", + "CsName": "EmojiFontLoadSystem", + "CsReturn": "byte", + "Params": [ { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativePropOpts", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "const cui_prop_opts *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_prop_opts", - "Kind": "Record", - "IsConst": true + "Spelling": "cui_ctx", + "Kind": "Record" } } } @@ -47893,109 +53309,79 @@ "Spelling": "_Bool", "Kind": "Bool" }, - "Module": "Docking", - "Doc": "Compact X, Y (Z, W) scrub fields side by side; value holds 2, 3 or 4 floats." + "Module": "Emoji", + "Doc": "" }, { - "CName": "cui_log_init", - "CsName": "LogInit", - "CsReturn": "void", + "CName": "cui_emoji_supported", + "CsName": "EmojiSupported", + "CsReturn": "byte", "Params": [ { - "CName": "buf", - "CsName": "buf", - "CsType": "ref NativeLogBuffer", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "cui_log_buffer *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "cui_log_buffer", + "Spelling": "cui_ctx", "Kind": "Record" } } }, { - "CName": "lines", - "CsName": "lines", + "CName": "utf8", + "CsName": "utf8", "CsType": "nint", "Type": { - "Spelling": "cui_log_line *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "cui_log_line", - "Kind": "Record" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, { - "CName": "line_cap", - "CsName": "lineCap", + "CName": "len", + "CsName": "len", "CsType": "int", "Type": { "Spelling": "int", "Kind": "Int" } - }, - { - "CName": "text", - "CsName": "text", - "CsType": "nint", - "Type": { - "Spelling": "char *", - "Kind": "Pointer", - "Element": { - "Spelling": "char", - "Kind": "Char_S" - } - } - }, - { - "CName": "text_cap", - "CsName": "textCap", - "CsType": "nuint", - "Type": { - "Spelling": "size_t", - "Kind": "ULongLong" - } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Docking", - "Doc": "" + "Module": "Emoji", + "Doc": "the font (or platform) can draw it" }, { - "CName": "cui_log_appendv", - "CsName": "LogAppendv", + "CName": "cui_draw_emoji", + "CsName": "DrawEmoji", "CsReturn": "void", "Params": [ { - "CName": "buf", - "CsName": "buf", - "CsType": "ref NativeLogBuffer", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "cui_log_buffer *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "cui_log_buffer", + "Spelling": "cui_ctx", "Kind": "Record" } } }, { - "CName": "level", - "CsName": "level", - "CsType": "LogLevel", - "Type": { - "Spelling": "cui_log_level", - "Kind": "Enum" - } - }, - { - "CName": "fmt", - "CsName": "fmt", + "CName": "utf8", + "CsName": "utf8", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -48008,16 +53394,21 @@ } }, { - "CName": "ap", - "CsName": "ap", - "CsType": "nint", + "CName": "len", + "CsName": "len", + "CsType": "int", "Type": { - "Spelling": "va_list", - "Kind": "Pointer", - "Element": { - "Spelling": "char", - "Kind": "Char_S" - } + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "r", + "CsName": "r", + "CsType": "NativeRect", + "Type": { + "Spelling": "cui_rect", + "Kind": "Record" } } ], @@ -48025,48 +53416,30 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Docking", + "Module": "Emoji", "Doc": "" }, { - "CName": "cui_log_append_text", - "CsName": "LogAppendText", + "CName": "cui_emoji", + "CsName": "Emoji", "CsReturn": "void", "Params": [ { - "CName": "buf", - "CsName": "buf", - "CsType": "ref NativeLogBuffer", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "cui_log_buffer *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "cui_log_buffer", + "Spelling": "cui_ctx", "Kind": "Record" } } }, { - "CName": "level", - "CsName": "level", - "CsType": "LogLevel", - "Type": { - "Spelling": "cui_log_level", - "Kind": "Enum" - } - }, - { - "CName": "time", - "CsName": "time", - "CsType": "double", - "Type": { - "Spelling": "double", - "Kind": "Double" - } - }, - { - "CName": "text", - "CsName": "text", + "CName": "utf8", + "CsName": "utf8", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -48079,12 +53452,12 @@ } }, { - "CName": "len", - "CsName": "len", - "CsType": "int", + "CName": "size", + "CsName": "size", + "CsType": "float", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "float", + "Kind": "Float" } } ], @@ -48092,98 +53465,72 @@ "Spelling": "void", "Kind": "Void" }, - "Module": "Docking", - "Doc": "Appends len bytes (-1: up to the terminator) stamped with time." + "Module": "Emoji", + "Doc": "one emoji as a component" }, { - "CName": "cui_log_clear", - "CsName": "LogClear", - "CsReturn": "void", + "CName": "cui_emoji_picker_ex", + "CsName": "EmojiPicker", + "CsReturn": "nint", "Params": [ { - "CName": "buf", - "CsName": "buf", - "CsType": "ref NativeLogBuffer", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "cui_log_buffer *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "cui_log_buffer", + "Spelling": "cui_ctx", "Kind": "Record" } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Docking", - "Doc": "" - }, - { - "CName": "cui_log_get", - "CsName": "LogGet", - "CsReturn": "nint", - "Params": [ + }, { - "CName": "buf", - "CsName": "buf", - "CsType": "in NativeLogBuffer", + "CName": "id", + "CsName": "id", + "CsType": "nint", "Type": { - "Spelling": "const cui_log_buffer *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_log_buffer", - "Kind": "Record", + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } } }, { - "CName": "i", - "CsName": "i", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "text", - "CsName": "text", - "CsType": "nint", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeEmojiPickerOpts", "Type": { - "Spelling": "const char **", - "Kind": "Pointer", - "Element": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "const cui_emoji_picker_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_emoji_picker_opts", + "Kind": "Record", + "IsConst": true } } } ], "ReturnType": { - "Spelling": "const cui_log_line *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_log_line", - "Kind": "Record", + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } }, - "Module": "Docking", - "Doc": "Line i (0 = oldest), or NULL when out of range. *text is terminated (and len bytes long)." + "Module": "Emoji", + "Doc": "" }, { - "CName": "cui_log_view_ex", - "CsName": "LogView", - "CsReturn": "void", + "CName": "cui_hex_view_ex", + "CsName": "HexView", + "CsReturn": "NativeHexResult", "Params": [ { "CName": "ui", @@ -48213,14 +53560,37 @@ } }, { - "CName": "buf", - "CsName": "buf", - "CsType": "ref NativeLogBuffer", + "CName": "data", + "CsName": "data", + "CsType": "nint", "Type": { - "Spelling": "cui_log_buffer *", + "Spelling": "const uint8_t *", "Kind": "Pointer", "Element": { - "Spelling": "cui_log_buffer", + "Spelling": "const uint8_t", + "Kind": "UChar", + "IsConst": true + } + } + }, + { + "CName": "size", + "CsName": "size", + "CsType": "nuint", + "Type": { + "Spelling": "size_t", + "Kind": "ULongLong" + } + }, + { + "CName": "sel", + "CsName": "sel", + "CsType": "ref NativeHexSelection", + "Type": { + "Spelling": "cui_hex_selection *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_hex_selection", "Kind": "Record" } } @@ -48228,12 +53598,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeLogViewOpts", + "CsType": "in NativeHexViewOpts", "Type": { - "Spelling": "const cui_log_view_opts *", + "Spelling": "const cui_hex_view_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_log_view_opts", + "Spelling": "const cui_hex_view_opts", "Kind": "Record", "IsConst": true } @@ -48241,103 +53611,82 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "cui_hex_result", + "Kind": "Record" }, - "Module": "Docking", - "Doc": "Toolbar: level filters, a search field that filters and highlights, Follow (keeps the newest line in view; scrolling up turns it off, reaching the bottom turns it back on), Copy (selected lines, or all shown) and Clear. Click a line to select it, Shift+click for a range; with the list focused, arrows move, Shift+arrows extend, Ctrl+A selects all, Ctrl+C copies, Esc clears the selection, End follows again." + "Module": "Hex viewer", + "Doc": "sel may be NULL: the view then keeps the selection itself." }, { - "CName": "cui_terminal_init", - "CsName": "TerminalInit", + "CName": "cui_hex_view_goto", + "CsName": "HexViewGoto", "CsReturn": "void", "Params": [ { - "CName": "t", - "CsName": "t", - "CsType": "ref NativeTerminalBuffer", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "cui_terminal_buffer *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "cui_terminal_buffer", + "Spelling": "cui_ctx", "Kind": "Record" } } }, { - "CName": "text", - "CsName": "text", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { - "Spelling": "char *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "char", - "Kind": "Char_S" + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true } } }, { - "CName": "text_cap", - "CsName": "textCap", + "CName": "offset", + "CsName": "offset", "CsType": "nuint", "Type": { "Spelling": "size_t", "Kind": "ULongLong" } - }, - { - "CName": "lines", - "CsName": "lines", - "CsType": "nint", - "Type": { - "Spelling": "cui_terminal_line *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_terminal_line", - "Kind": "Record" - } - } - }, - { - "CName": "line_cap", - "CsName": "lineCap", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Terminal", - "Doc": "" + "Module": "Hex viewer", + "Doc": "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." }, { - "CName": "cui_terminal_write", - "CsName": "TerminalWrite", - "CsReturn": "void", + "CName": "cui_flame_graph_ex", + "CsName": "FlameGraph", + "CsReturn": "NativeFlameResult", "Params": [ { - "CName": "t", - "CsName": "t", - "CsType": "ref NativeTerminalBuffer", + "CName": "ui", + "CsName": "ui", + "CsType": "nint", "Type": { - "Spelling": "cui_terminal_buffer *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "cui_terminal_buffer", + "Spelling": "cui_ctx", "Kind": "Record" } } }, { - "CName": "data", - "CsName": "data", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -48350,52 +53699,115 @@ } }, { - "CName": "len", - "CsName": "len", + "CName": "spans", + "CsName": "spans", + "CsType": "nint", + "Type": { + "Spelling": "const cui_flame_span *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_flame_span", + "Kind": "Record", + "IsConst": true + } + } + }, + { + "CName": "count", + "CsName": "count", "CsType": "int", "Type": { "Spelling": "int", "Kind": "Int" } + }, + { + "CName": "view", + "CsName": "view", + "CsType": "ref NativeFlameView", + "Type": { + "Spelling": "cui_flame_view *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_flame_view", + "Kind": "Record" + } + } + }, + { + "CName": "selected", + "CsName": "selected", + "CsType": "ref int", + "Type": { + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeFlameOpts", + "Type": { + "Spelling": "const cui_flame_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_flame_opts", + "Kind": "Record", + "IsConst": true + } + } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "cui_flame_result", + "Kind": "Record" }, - "Module": "Terminal", - "Doc": "len -1: up to the terminator" + "Module": "Flame graph", + "Doc": "selected: index into spans, -1 for none (may be NULL)." }, { - "CName": "cui_terminal_clear", - "CsName": "TerminalClear", + "CName": "cui_flame_sort", + "CsName": "FlameSort", "CsReturn": "void", "Params": [ { - "CName": "t", - "CsName": "t", - "CsType": "ref NativeTerminalBuffer", + "CName": "spans", + "CsName": "spans", + "CsType": "nint", "Type": { - "Spelling": "cui_terminal_buffer *", + "Spelling": "cui_flame_span *", "Kind": "Pointer", "Element": { - "Spelling": "cui_terminal_buffer", + "Spelling": "cui_flame_span", "Kind": "Record" } } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } } ], "ReturnType": { "Spelling": "void", "Kind": "Void" }, - "Module": "Terminal", - "Doc": "" + "Module": "Flame graph", + "Doc": "Sorts spans into the order the graph needs: by depth, then start (longer first on ties)." }, { - "CName": "cui_terminal_ex", - "CsName": "Terminal", - "CsReturn": "NativeTerminalResult", + "CName": "cui_flame_span_rect", + "CsName": "FlameSpanRect", + "CsReturn": "NativeRect", "Params": [ { "CName": "ui", @@ -48411,41 +53823,23 @@ } }, { - "CName": "id", - "CsName": "id", - "CsType": "nint", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } - } - }, - { - "CName": "t", - "CsName": "t", - "CsType": "ref NativeTerminalBuffer", + "CName": "flame", + "CsName": "flame", + "CsType": "uint", "Type": { - "Spelling": "cui_terminal_buffer *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_terminal_buffer", - "Kind": "Record" - } + "Spelling": "cui_id", + "Kind": "UInt" } }, { - "CName": "opts", - "CsName": "opts", - "CsType": "in NativeTerminalOpts", + "CName": "span", + "CsName": "span", + "CsType": "in NativeFlameSpan", "Type": { - "Spelling": "const cui_terminal_opts *", + "Spelling": "const cui_flame_span *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_terminal_opts", + "Spelling": "const cui_flame_span", "Kind": "Record", "IsConst": true } @@ -48453,16 +53847,16 @@ } ], "ReturnType": { - "Spelling": "cui_terminal_result", + "Spelling": "cui_rect", "Kind": "Record" }, - "Module": "Terminal", - "Doc": "" + "Module": "Flame graph", + "Doc": "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." }, { - "CName": "cui_emoji_font_load_file", - "CsName": "EmojiFontLoadFile", - "CsReturn": "byte", + "CName": "cui_curve_editor_ex", + "CsName": "CurveEditor", + "CsReturn": "NativeCurveResult", "Params": [ { "CName": "ui", @@ -48478,8 +53872,8 @@ } }, { - "CName": "path", - "CsName": "path", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -48490,103 +53884,113 @@ "IsConst": true } } - } - ], - "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Module": "Emoji", - "Doc": "Color emoji come from an emoji font: the system's (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's ligatures. Big fonts are read from the file as needed rather than loaded whole. Drawn emoji are kept in one texture and reused." - }, - { - "CName": "cui_emoji_font_load_memory", - "CsName": "EmojiFontLoadMemory", - "CsReturn": "byte", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "keys", + "CsName": "keys", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "cui_curve_key *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", + "Spelling": "cui_curve_key", "Kind": "Record" } } }, { - "CName": "data", - "CsName": "data", - "CsType": "nint", + "CName": "count", + "CsName": "count", + "CsType": "ref int", "Type": { - "Spelling": "const void *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "const void", - "Kind": "Void", - "IsConst": true + "Spelling": "int", + "Kind": "Int" } } }, { - "CName": "size", - "CsName": "size", - "CsType": "nuint", + "CName": "capacity", + "CsName": "capacity", + "CsType": "int", "Type": { - "Spelling": "size_t", - "Kind": "ULongLong" + "Spelling": "int", + "Kind": "Int" } }, { - "CName": "copy", - "CsName": "copy", - "CsType": "byte", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeCurveOpts", "Type": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "const cui_curve_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_curve_opts", + "Kind": "Record", + "IsConst": true + } } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "cui_curve_result", + "Kind": "Record" }, - "Module": "Emoji", + "Module": "Curve and gradient editors", "Doc": "" }, { - "CName": "cui_emoji_font_load_system", - "CsName": "EmojiFontLoadSystem", - "CsReturn": "byte", + "CName": "cui_curve_eval", + "CsName": "CurveEval", + "CsReturn": "float", "Params": [ { - "CName": "ui", - "CsName": "ui", + "CName": "keys", + "CsName": "keys", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const cui_curve_key *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const cui_curve_key", + "Kind": "Record", + "IsConst": true } } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "x", + "CsName": "x", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } } ], "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" + "Spelling": "float", + "Kind": "Float" }, - "Module": "Emoji", - "Doc": "" + "Module": "Curve and gradient editors", + "Doc": "The curve's value at x: exactly what the editor draws. keys sorted by x." }, { - "CName": "cui_emoji_supported", - "CsName": "EmojiSupported", - "CsReturn": "byte", + "CName": "cui_gradient_editor_ex", + "CsName": "GradientEditor", + "CsReturn": "NativeGradientResult", "Params": [ { "CName": "ui", @@ -48602,8 +54006,8 @@ } }, { - "CName": "utf8", - "CsName": "utf8", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -48616,57 +54020,34 @@ } }, { - "CName": "len", - "CsName": "len", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - } - ], - "ReturnType": { - "Spelling": "_Bool", - "Kind": "Bool" - }, - "Module": "Emoji", - "Doc": "the font (or platform) can draw it" - }, - { - "CName": "cui_draw_emoji", - "CsName": "DrawEmoji", - "CsReturn": "void", - "Params": [ - { - "CName": "ui", - "CsName": "ui", + "CName": "stops", + "CsName": "stops", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "cui_gradient_stop *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", + "Spelling": "cui_gradient_stop", "Kind": "Record" } } }, { - "CName": "utf8", - "CsName": "utf8", - "CsType": "nint", + "CName": "count", + "CsName": "count", + "CsType": "ref int", "Type": { - "Spelling": "const char *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true + "Spelling": "int", + "Kind": "Int" } } }, { - "CName": "len", - "CsName": "len", + "CName": "capacity", + "CsName": "capacity", "CsType": "int", "Type": { "Spelling": "int", @@ -48674,57 +54055,58 @@ } }, { - "CName": "r", - "CsName": "r", - "CsType": "NativeRect", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeGradientOpts", "Type": { - "Spelling": "cui_rect", - "Kind": "Record" + "Spelling": "const cui_gradient_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_gradient_opts", + "Kind": "Record", + "IsConst": true + } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "cui_gradient_result", + "Kind": "Record" }, - "Module": "Emoji", + "Module": "Curve and gradient editors", "Doc": "" }, { - "CName": "cui_emoji", - "CsName": "Emoji", - "CsReturn": "void", + "CName": "cui_gradient_eval", + "CsName": "GradientEval", + "CsReturn": "NativeColor", "Params": [ { - "CName": "ui", - "CsName": "ui", + "CName": "stops", + "CsName": "stops", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "const cui_gradient_stop *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", - "Kind": "Record" + "Spelling": "const cui_gradient_stop", + "Kind": "Record", + "IsConst": true } } }, { - "CName": "utf8", - "CsName": "utf8", - "CsType": "nint", - "Type": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" } }, { - "CName": "size", - "CsName": "size", + "CName": "t", + "CsName": "t", "CsType": "float", "Type": { "Spelling": "float", @@ -48733,16 +54115,16 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "cui_color", + "Kind": "Record" }, - "Module": "Emoji", - "Doc": "one emoji as a component" + "Module": "Curve and gradient editors", + "Doc": "The color at t: exactly what the ramp shows (each channel, alpha too, interpolated in sRGB between the stops on either side; the end colors continue past the first and last stop)." }, { - "CName": "cui_emoji_picker_ex", - "CsName": "EmojiPicker", - "CsReturn": "nint", + "CName": "cui_status_tag_ex", + "CsName": "StatusTag", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -48758,8 +54140,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -48771,15 +54153,24 @@ } } }, + { + "CName": "status", + "CsName": "status", + "CsType": "TagStatus", + "Type": { + "Spelling": "cui_tag_status", + "Kind": "Enum" + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeEmojiPickerOpts", + "CsType": "in NativeStatusTagOpts", "Type": { - "Spelling": "const cui_emoji_picker_opts *", + "Spelling": "const cui_status_tag_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_emoji_picker_opts", + "Spelling": "const cui_status_tag_opts", "Kind": "Record", "IsConst": true } @@ -48787,21 +54178,16 @@ } ], "ReturnType": { - "Spelling": "const char *", - "Kind": "Pointer", - "Element": { - "Spelling": "const char", - "Kind": "Char_S", - "IsConst": true - } + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Emoji", + "Module": "Creative controls", "Doc": "" }, { - "CName": "cui_hex_view_ex", - "CsName": "HexView", - "CsReturn": "NativeHexResult", + "CName": "cui_ratio_slider_ex", + "CsName": "RatioSlider", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -48817,8 +54203,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "first", + "CsName": "first", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -48831,50 +54217,41 @@ } }, { - "CName": "data", - "CsName": "data", + "CName": "second", + "CsName": "second", "CsType": "nint", "Type": { - "Spelling": "const uint8_t *", + "Spelling": "const char *", "Kind": "Pointer", "Element": { - "Spelling": "const uint8_t", - "Kind": "UChar", + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } } }, { - "CName": "size", - "CsName": "size", - "CsType": "nuint", - "Type": { - "Spelling": "size_t", - "Kind": "ULongLong" - } - }, - { - "CName": "sel", - "CsName": "sel", - "CsType": "ref NativeHexSelection", + "CName": "ratio", + "CsName": "ratio", + "CsType": "ref float", "Type": { - "Spelling": "cui_hex_selection *", + "Spelling": "float *", "Kind": "Pointer", "Element": { - "Spelling": "cui_hex_selection", - "Kind": "Record" + "Spelling": "float", + "Kind": "Float" } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeHexViewOpts", + "CsType": "in NativeRatioSliderOpts", "Type": { - "Spelling": "const cui_hex_view_opts *", + "Spelling": "const cui_ratio_slider_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_hex_view_opts", + "Spelling": "const cui_ratio_slider_opts", "Kind": "Record", "IsConst": true } @@ -48882,16 +54259,16 @@ } ], "ReturnType": { - "Spelling": "cui_hex_result", - "Kind": "Record" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Hex viewer", - "Doc": "sel may be NULL: the view then keeps the selection itself." + "Module": "Creative controls", + "Doc": "" }, { - "CName": "cui_hex_view_goto", - "CsName": "HexViewGoto", - "CsReturn": "void", + "CName": "cui_gradient_slider_ex", + "CsName": "GradientSlider", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -48907,8 +54284,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -48921,26 +54298,62 @@ } }, { - "CName": "offset", - "CsName": "offset", - "CsType": "nuint", + "CName": "value", + "CsName": "value", + "CsType": "ref float", "Type": { - "Spelling": "size_t", - "Kind": "ULongLong" + "Spelling": "float *", + "Kind": "Pointer", + "Element": { + "Spelling": "float", + "Kind": "Float" + } + } + }, + { + "CName": "min", + "CsName": "min", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "max", + "CsName": "max", + "CsType": "float", + "Type": { + "Spelling": "float", + "Kind": "Float" + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeGradientSliderOpts", + "Type": { + "Spelling": "const cui_gradient_slider_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_gradient_slider_opts", + "Kind": "Record", + "IsConst": true + } } } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Hex viewer", - "Doc": "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." + "Module": "Creative controls", + "Doc": "Edit a gradient slider without snapping a passive model value or an endpoint." }, { - "CName": "cui_flame_graph_ex", - "CsName": "FlameGraph", - "CsReturn": "NativeFlameResult", + "CName": "cui_step_slider_ex", + "CsName": "StepSlider", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -48956,8 +54369,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -48970,22 +54383,21 @@ } }, { - "CName": "spans", - "CsName": "spans", - "CsType": "nint", + "CName": "value", + "CsName": "value", + "CsType": "ref int", "Type": { - "Spelling": "const cui_flame_span *", + "Spelling": "int *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_flame_span", - "Kind": "Record", - "IsConst": true + "Spelling": "int", + "Kind": "Int" } } }, { - "CName": "count", - "CsName": "count", + "CName": "min", + "CsName": "min", "CsType": "int", "Type": { "Spelling": "int", @@ -48993,40 +54405,23 @@ } }, { - "CName": "view", - "CsName": "view", - "CsType": "ref NativeFlameView", - "Type": { - "Spelling": "cui_flame_view *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_flame_view", - "Kind": "Record" - } - } - }, - { - "CName": "selected", - "CsName": "selected", - "CsType": "ref int", + "CName": "max", + "CsName": "max", + "CsType": "int", "Type": { - "Spelling": "int *", - "Kind": "Pointer", - "Element": { - "Spelling": "int", - "Kind": "Int" - } + "Spelling": "int", + "Kind": "Int" } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeFlameOpts", + "CsType": "in NativeStepSliderOpts", "Type": { - "Spelling": "const cui_flame_opts *", + "Spelling": "const cui_step_slider_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_flame_opts", + "Spelling": "const cui_step_slider_opts", "Kind": "Record", "IsConst": true } @@ -49034,83 +54429,88 @@ } ], "ReturnType": { - "Spelling": "cui_flame_result", - "Kind": "Record" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Flame graph", - "Doc": "selected: index into spans, -1 for none (may be NULL)." + "Module": "Creative controls", + "Doc": "" }, { - "CName": "cui_flame_sort", - "CsName": "FlameSort", - "CsReturn": "void", + "CName": "cui_palette_strip_ex", + "CsName": "PaletteStrip", + "CsReturn": "int", "Params": [ { - "CName": "spans", - "CsName": "spans", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "cui_flame_span *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "cui_flame_span", + "Spelling": "cui_ctx", "Kind": "Record" } } }, { - "CName": "count", - "CsName": "count", - "CsType": "int", + "CName": "label", + "CsName": "label", + "CsType": "nint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } - } - ], - "ReturnType": { - "Spelling": "void", - "Kind": "Void" - }, - "Module": "Flame graph", - "Doc": "Sorts spans into the order the graph needs: by depth, then start (longer first on ties)." - }, - { - "CName": "cui_flame_span_rect", - "CsName": "FlameSpanRect", - "CsReturn": "NativeRect", - "Params": [ + }, { - "CName": "ui", - "CsName": "ui", + "CName": "colors", + "CsName": "colors", "CsType": "nint", "Type": { - "Spelling": "cui_ctx *", + "Spelling": "cui_color *", "Kind": "Pointer", "Element": { - "Spelling": "cui_ctx", + "Spelling": "cui_color", "Kind": "Record" } } }, { - "CName": "flame", - "CsName": "flame", - "CsType": "uint", + "CName": "locked", + "CsName": "locked", + "CsType": "nint", "Type": { - "Spelling": "cui_id", - "Kind": "UInt" + "Spelling": "_Bool *", + "Kind": "Pointer", + "Element": { + "Spelling": "_Bool", + "Kind": "Bool" + } } }, { - "CName": "span", - "CsName": "span", - "CsType": "in NativeFlameSpan", + "CName": "count", + "CsName": "count", + "CsType": "int", "Type": { - "Spelling": "const cui_flame_span *", + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativePaletteStripOpts", + "Type": { + "Spelling": "const cui_palette_strip_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_flame_span", + "Spelling": "const cui_palette_strip_opts", "Kind": "Record", "IsConst": true } @@ -49118,16 +54518,16 @@ } ], "ReturnType": { - "Spelling": "cui_rect", - "Kind": "Record" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Flame graph", - "Doc": "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." + "Module": "Creative controls", + "Doc": "" }, { - "CName": "cui_curve_editor_ex", - "CsName": "CurveEditor", - "CsReturn": "NativeCurveResult", + "CName": "cui_aspect_picker_ex", + "CsName": "AspectPicker", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -49143,8 +54543,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -49157,21 +54557,8 @@ } }, { - "CName": "keys", - "CsName": "keys", - "CsType": "nint", - "Type": { - "Spelling": "cui_curve_key *", - "Kind": "Pointer", - "Element": { - "Spelling": "cui_curve_key", - "Kind": "Record" - } - } - }, - { - "CName": "count", - "CsName": "count", + "CName": "index", + "CsName": "index", "CsType": "ref int", "Type": { "Spelling": "int *", @@ -49182,24 +54569,15 @@ } } }, - { - "CName": "capacity", - "CsName": "capacity", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeCurveOpts", + "CsType": "in NativeAspectPickerOpts", "Type": { - "Spelling": "const cui_curve_opts *", + "Spelling": "const cui_aspect_picker_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_curve_opts", + "Spelling": "const cui_aspect_picker_opts", "Kind": "Record", "IsConst": true } @@ -49207,61 +54585,16 @@ } ], "ReturnType": { - "Spelling": "cui_curve_result", - "Kind": "Record" + "Spelling": "_Bool", + "Kind": "Bool" }, - "Module": "Curve and gradient editors", + "Module": "Creative controls", "Doc": "" }, { - "CName": "cui_curve_eval", - "CsName": "CurveEval", - "CsReturn": "float", - "Params": [ - { - "CName": "keys", - "CsName": "keys", - "CsType": "nint", - "Type": { - "Spelling": "const cui_curve_key *", - "Kind": "Pointer", - "Element": { - "Spelling": "const cui_curve_key", - "Kind": "Record", - "IsConst": true - } - } - }, - { - "CName": "count", - "CsName": "count", - "CsType": "int", - "Type": { - "Spelling": "int", - "Kind": "Int" - } - }, - { - "CName": "x", - "CsName": "x", - "CsType": "float", - "Type": { - "Spelling": "float", - "Kind": "Float" - } - } - ], - "ReturnType": { - "Spelling": "float", - "Kind": "Float" - }, - "Module": "Curve and gradient editors", - "Doc": "The curve's value at x: exactly what the editor draws. keys sorted by x." - }, - { - "CName": "cui_gradient_editor_ex", - "CsName": "GradientEditor", - "CsReturn": "NativeGradientResult", + "CName": "cui_option_action_ex", + "CsName": "OptionAction", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -49277,8 +54610,8 @@ } }, { - "CName": "id", - "CsName": "id", + "CName": "label", + "CsName": "label", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -49291,21 +54624,36 @@ } }, { - "CName": "stops", - "CsName": "stops", + "CName": "items", + "CsName": "items", "CsType": "nint", "Type": { - "Spelling": "cui_gradient_stop *", + "Spelling": "const char *const *", "Kind": "Pointer", "Element": { - "Spelling": "cui_gradient_stop", - "Kind": "Record" + "Spelling": "const char *const", + "Kind": "Pointer", + "IsConst": true, + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } } }, { "CName": "count", "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "index", + "CsName": "index", "CsType": "ref int", "Type": { "Spelling": "int *", @@ -49317,23 +54665,28 @@ } }, { - "CName": "capacity", - "CsName": "capacity", - "CsType": "int", + "CName": "icon", + "CsName": "icon", + "CsType": "nint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeGradientOpts", + "CsType": "in NativeOptionActionOpts", "Type": { - "Spelling": "const cui_gradient_opts *", + "Spelling": "const cui_option_action_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_gradient_opts", + "Spelling": "const cui_option_action_opts", "Kind": "Record", "IsConst": true } @@ -49341,56 +54694,91 @@ } ], "ReturnType": { - "Spelling": "cui_gradient_result", - "Kind": "Record" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Curve and gradient editors", + "Module": "Creative controls", "Doc": "" }, { - "CName": "cui_gradient_eval", - "CsName": "GradientEval", - "CsReturn": "NativeColor", + "CName": "cui_seed_field_ex", + "CsName": "SeedField", + "CsReturn": "int", "Params": [ { - "CName": "stops", - "CsName": "stops", + "CName": "ui", + "CsName": "ui", "CsType": "nint", "Type": { - "Spelling": "const cui_gradient_stop *", + "Spelling": "cui_ctx *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_gradient_stop", - "Kind": "Record", + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + }, + { + "CName": "label", + "CsName": "label", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", "IsConst": true } } }, { - "CName": "count", - "CsName": "count", - "CsType": "int", + "CName": "seed", + "CsName": "seed", + "CsType": "ref uint", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "uint32_t *", + "Kind": "Pointer", + "Element": { + "Spelling": "uint32_t", + "Kind": "UInt" + } } }, { - "CName": "t", - "CsName": "t", - "CsType": "float", + "CName": "locked", + "CsName": "locked", + "CsType": "nint", "Type": { - "Spelling": "float", - "Kind": "Float" + "Spelling": "_Bool *", + "Kind": "Pointer", + "Element": { + "Spelling": "_Bool", + "Kind": "Bool" + } + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeSeedFieldOpts", + "Type": { + "Spelling": "const cui_seed_field_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_seed_field_opts", + "Kind": "Record", + "IsConst": true + } } } ], "ReturnType": { - "Spelling": "cui_color", - "Kind": "Record" + "Spelling": "int", + "Kind": "Int" }, - "Module": "Curve and gradient editors", - "Doc": "The color at t: exactly what the ramp shows (each channel, alpha too, interpolated in sRGB between the stops on either side; the end colors continue past the first and last stop)." + "Module": "Creative controls", + "Doc": "" }, { "CName": "cui_timeline_editor_ex", @@ -49862,7 +55250,7 @@ "Kind": "Bool" }, "Module": "Query builder", - "Doc": "" + "Doc": "Read-only and disabled builders preserve the input rules and count." }, { "CName": "cui_query_op_name", @@ -50692,7 +56080,7 @@ "Kind": "Record" }, "Module": "Trace viewer", - "Doc": "" + "Doc": "Draw the trace and report changes to its range, scroll position, or measurement." }, { "CName": "cui_trace_sort", @@ -51588,7 +56976,7 @@ "Kind": "Record" }, "Module": "Time histogram", - "Doc": "" + "Doc": "Draw a time histogram and cancel a pending selection when it becomes disabled." }, { "CName": "cui_coverage_ex", @@ -52051,7 +57439,7 @@ "Kind": "Record" }, "Module": "Instruments: dot-matrix chart, event track, readout, dot-matrix display", - "Doc": "" + "Doc": "Draw a dot chart and report activation at the current sample or pointer position." }, { "CName": "cui_event_track_ex", @@ -52086,67 +57474,526 @@ } }, { - "CName": "times", - "CsName": "times", + "CName": "times", + "CsName": "times", + "CsType": "nint", + "Type": { + "Spelling": "double *", + "Kind": "Pointer", + "Element": { + "Spelling": "double", + "Kind": "Double" + } + } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "ref int", + "Type": { + "Spelling": "int *", + "Kind": "Pointer", + "Element": { + "Spelling": "int", + "Kind": "Int" + } + } + }, + { + "CName": "capacity", + "CsName": "capacity", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "min", + "CsName": "min", + "CsType": "double", + "Type": { + "Spelling": "double", + "Kind": "Double" + } + }, + { + "CName": "max", + "CsName": "max", + "CsType": "double", + "Type": { + "Spelling": "double", + "Kind": "Double" + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeEventTrackOpts", + "Type": { + "Spelling": "const cui_event_track_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_event_track_opts", + "Kind": "Record", + "IsConst": true + } + } + } + ], + "ReturnType": { + "Spelling": "cui_event_track_result", + "Kind": "Record" + }, + "Module": "Instruments: dot-matrix chart, event track, readout, dot-matrix display", + "Doc": "" + }, + { + "CName": "cui_readout_ex", + "CsName": "Readout", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + }, + { + "CName": "label", + "CsName": "label", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "value", + "CsName": "value", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeReadoutOpts", + "Type": { + "Spelling": "const cui_readout_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_readout_opts", + "Kind": "Record", + "IsConst": true + } + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Instruments: dot-matrix chart, event track, readout, dot-matrix display", + "Doc": "" + }, + { + "CName": "cui_dot_display_ex", + "CsName": "DotDisplay", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + }, + { + "CName": "text", + "CsName": "text", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeDotDisplayOpts", + "Type": { + "Spelling": "const cui_dot_display_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_dot_display_opts", + "Kind": "Record", + "IsConst": true + } + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Instruments: dot-matrix chart, event track, readout, dot-matrix display", + "Doc": "" + }, + { + "CName": "cui_format_bar_ex", + "CsName": "FormatBar", + "CsReturn": "int", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + }, + { + "CName": "id", + "CsName": "id", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "format", + "CsName": "format", + "CsType": "ref NativeTextFormat", + "Type": { + "Spelling": "cui_text_format *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_text_format", + "Kind": "Record" + } + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeFormatBarOpts", + "Type": { + "Spelling": "const cui_format_bar_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_format_bar_opts", + "Kind": "Record", + "IsConst": true + } + } + } + ], + "ReturnType": { + "Spelling": "int", + "Kind": "Int" + }, + "Module": "Instruments: dot-matrix chart, event track, readout, dot-matrix display", + "Doc": "Returns CUI_FORMAT_* flags." + }, + { + "CName": "cui_live_cursors_ex", + "CsName": "LiveCursors", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + }, + { + "CName": "id", + "CsName": "id", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "users", + "CsName": "users", + "CsType": "nint", + "Type": { + "Spelling": "const cui_live_user *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_live_user", + "Kind": "Record", + "IsConst": true + } + } + }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeLiveCursorsOpts", + "Type": { + "Spelling": "const cui_live_cursors_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_live_cursors_opts", + "Kind": "Record", + "IsConst": true + } + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Instruments: dot-matrix chart, event track, readout, dot-matrix display", + "Doc": "" + }, + { + "CName": "cui_presence_pill_ex", + "CsName": "PresencePill", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } + } + }, + { + "CName": "id", + "CsName": "id", + "CsType": "nint", + "Type": { + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "users", + "CsName": "users", "CsType": "nint", "Type": { - "Spelling": "double *", + "Spelling": "const cui_live_user *", "Kind": "Pointer", "Element": { - "Spelling": "double", - "Kind": "Double" + "Spelling": "const cui_live_user", + "Kind": "Record", + "IsConst": true } } }, { "CName": "count", "CsName": "count", - "CsType": "ref int", + "CsType": "int", "Type": { - "Spelling": "int *", + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "opts", + "CsName": "opts", + "CsType": "in NativePresencePillOpts", + "Type": { + "Spelling": "const cui_presence_pill_opts *", "Kind": "Pointer", "Element": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "const cui_presence_pill_opts", + "Kind": "Record", + "IsConst": true + } + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Instruments: dot-matrix chart, event track, readout, dot-matrix display", + "Doc": "" + }, + { + "CName": "cui_selection_ring_ex", + "CsName": "SelectionRing", + "CsReturn": "void", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" } } }, { - "CName": "capacity", - "CsName": "capacity", - "CsType": "int", + "CName": "color", + "CsName": "color", + "CsType": "NativeColor", "Type": { - "Spelling": "int", - "Kind": "Int" + "Spelling": "cui_color", + "Kind": "Record" } }, { - "CName": "min", - "CsName": "min", - "CsType": "double", + "CName": "opts", + "CsName": "opts", + "CsType": "in NativeSelectionRingOpts", "Type": { - "Spelling": "double", - "Kind": "Double" + "Spelling": "const cui_selection_ring_opts *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_selection_ring_opts", + "Kind": "Record", + "IsConst": true + } + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "Instruments: dot-matrix chart, event track, readout, dot-matrix display", + "Doc": "" + }, + { + "CName": "cui_canvas_controls_ex", + "CsName": "CanvasControls", + "CsReturn": "int", + "Params": [ + { + "CName": "ui", + "CsName": "ui", + "CsType": "nint", + "Type": { + "Spelling": "cui_ctx *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_ctx", + "Kind": "Record" + } } }, { - "CName": "max", - "CsName": "max", - "CsType": "double", + "CName": "id", + "CsName": "id", + "CsType": "nint", "Type": { - "Spelling": "double", - "Kind": "Double" + "Spelling": "const char *", + "Kind": "Pointer", + "Element": { + "Spelling": "const char", + "Kind": "Char_S", + "IsConst": true + } + } + }, + { + "CName": "view", + "CsName": "view", + "CsType": "ref NativeNodeView", + "Type": { + "Spelling": "cui_node_view *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_node_view", + "Kind": "Record" + } } }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeEventTrackOpts", + "CsType": "in NativeCanvasControlsOpts", "Type": { - "Spelling": "const cui_event_track_opts *", + "Spelling": "const cui_canvas_controls_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_event_track_opts", + "Spelling": "const cui_canvas_controls_opts", "Kind": "Record", "IsConst": true } @@ -52154,16 +58001,16 @@ } ], "ReturnType": { - "Spelling": "cui_event_track_result", - "Kind": "Record" + "Spelling": "int", + "Kind": "Int" }, "Module": "Instruments: dot-matrix chart, event track, readout, dot-matrix display", - "Doc": "" + "Doc": "Returns CUI_CANVAS_* flags." }, { - "CName": "cui_readout_ex", - "CsName": "Readout", - "CsReturn": "void", + "CName": "cui_result_card_ex", + "CsName": "ResultCard", + "CsReturn": "byte", "Params": [ { "CName": "ui", @@ -52179,8 +58026,8 @@ } }, { - "CName": "label", - "CsName": "label", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -52193,8 +58040,17 @@ } }, { - "CName": "value", - "CsName": "value", + "CName": "image", + "CsName": "image", + "CsType": "nuint", + "Type": { + "Spelling": "cui_texture", + "Kind": "ULongLong" + } + }, + { + "CName": "title", + "CsName": "title", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -52209,12 +58065,12 @@ { "CName": "opts", "CsName": "opts", - "CsType": "in NativeReadoutOpts", + "CsType": "in NativeResultCardOpts", "Type": { - "Spelling": "const cui_readout_opts *", + "Spelling": "const cui_result_card_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_readout_opts", + "Spelling": "const cui_result_card_opts", "Kind": "Record", "IsConst": true } @@ -52222,16 +58078,16 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "_Bool", + "Kind": "Bool" }, "Module": "Instruments: dot-matrix chart, event track, readout, dot-matrix display", "Doc": "" }, { - "CName": "cui_dot_display_ex", - "CsName": "DotDisplay", - "CsReturn": "void", + "CName": "cui_selection_bar_ex", + "CsName": "SelectionBar", + "CsReturn": "int", "Params": [ { "CName": "ui", @@ -52247,8 +58103,8 @@ } }, { - "CName": "text", - "CsName": "text", + "CName": "id", + "CsName": "id", "CsType": "nint", "Type": { "Spelling": "const char *", @@ -52260,15 +58116,47 @@ } } }, + { + "CName": "count", + "CsName": "count", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, + { + "CName": "actions", + "CsName": "actions", + "CsType": "nint", + "Type": { + "Spelling": "const cui_selection_action *", + "Kind": "Pointer", + "Element": { + "Spelling": "const cui_selection_action", + "Kind": "Record", + "IsConst": true + } + } + }, + { + "CName": "action_count", + "CsName": "actionCount", + "CsType": "int", + "Type": { + "Spelling": "int", + "Kind": "Int" + } + }, { "CName": "opts", "CsName": "opts", - "CsType": "in NativeDotDisplayOpts", + "CsType": "in NativeSelectionBarOpts", "Type": { - "Spelling": "const cui_dot_display_opts *", + "Spelling": "const cui_selection_bar_opts *", "Kind": "Pointer", "Element": { - "Spelling": "const cui_dot_display_opts", + "Spelling": "const cui_selection_bar_opts", "Kind": "Record", "IsConst": true } @@ -52276,11 +58164,11 @@ } ], "ReturnType": { - "Spelling": "void", - "Kind": "Void" + "Spelling": "int", + "Kind": "Int" }, "Module": "Instruments: dot-matrix chart, event track, readout, dot-matrix display", - "Doc": "" + "Doc": "Returns the action picked, CUI_SELECTION_CLEARED when the clear button or Esc cleared the selection, or CUI_SELECTION_NONE." }, { "CName": "cui_draw_rect", @@ -53790,6 +59678,67 @@ "Module": "cui_app", "Doc": "" }, + { + "CName": "cui_app_maximize", + "CsName": "AppMaximize", + "CsReturn": "void", + "Params": [ + { + "CName": "app", + "CsName": "app", + "CsType": "nint", + "Type": { + "Spelling": "cui_app *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_app", + "Kind": "Record" + } + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "cui_app", + "Doc": "Maximizes the window on its display, as the title bar's maximize button does. NULL means the running app, so a cui_app_run callback can call it on its first frame; with the loop form it is fine right after cui_app_create. Nothing happens for a fixed-size window or where the window manager does not support it (an X11 window manager without EWMH)." + }, + { + "CName": "cui_app_follow_system_theme", + "CsName": "AppFollowSystemTheme", + "CsReturn": "void", + "Params": [ + { + "CName": "app", + "CsName": "app", + "CsType": "nint", + "Type": { + "Spelling": "cui_app *", + "Kind": "Pointer", + "Element": { + "Spelling": "cui_app", + "Kind": "Record" + } + } + }, + { + "CName": "follow", + "CsName": "follow", + "CsType": "byte", + "Type": { + "Spelling": "_Bool", + "Kind": "Bool" + } + } + ], + "ReturnType": { + "Spelling": "void", + "Kind": "Void" + }, + "Module": "cui_app", + "Doc": "Starts or stops following the OS light/dark setting, as cui_app_desc.follow_system_theme does at creation, for a theme switcher with Light, Dark and System. Starting applies the OS setting at once, where the platform reports one. Stopping keeps the current theme, so a cui_set_theme after it lasts. Later OS changes are followed on Windows and macOS." + }, { "CName": "cui_app_is_software", "CsName": "AppIsSoftware", @@ -54662,6 +60611,14 @@ "CName": "CUI_REGEX_DOTALL", "Value": 4 }, + { + "CName": "CUI_SELECTION_NONE", + "Value": -1 + }, + { + "CName": "CUI_SELECTION_CLEARED", + "Value": -2 + }, { "CName": "CUI_SHADE_TEXT" }, @@ -54680,6 +60637,10 @@ { "CName": "CUI_SHADE_SOLID", "Value": 4 + }, + { + "CName": "CUI_SHADE_DITHER", + "Value": 5 } ], "Icons": [ diff --git a/bindings/coverage.txt b/bindings/coverage.txt index 0fc3020..44983b4 100644 --- a/bindings/coverage.txt +++ b/bindings/coverage.txt @@ -1,10 +1,17 @@ Generated by tools/bindgen.cs. Do not edit. OPTIONS -Generated: 170; pending ownership/length semantics: 0 +Generated: 194; pending ownership/length semantics: 0 RECORDS -Data records generated as array items: 104 +Data records generated as array items: 111 +GENERATED cui_voice_note -> VoiceNoteState +GENERATED cui_live_user -> LiveUser +GENERATED cui_selection_action -> SelectionAction +GENERATED cui_meter_part -> MeterPart +GENERATED cui_text_format -> TextFormat (+ write-back) +GENERATED cui_text_style -> TextStyle +GENERATED cui_aspect -> Aspect GENERATED cui_event_track_result -> EventTrackResult (+ write-back) GENERATED cui_dot_chart_result -> DotChartResult (+ write-back) GENERATED cui_chart_annotation -> ChartAnnotation @@ -57,7 +64,7 @@ GENERATED cui_month_result -> MonthResult (+ write-back) GENERATED cui_month_event -> MonthEvent GENERATED cui_tour_step -> TourStep GENERATED cui_candle -> Candle (+ write-back) -GENERATED cui_gauge_band -> GaugeBand (+ write-back) +GENERATED cui_gauge_band -> GaugeBand GENERATED cui_hex_range -> HexRange GENERATED cui_swipe_action -> SwipeAction GENERATED cui_timeline_view -> TimelineView (+ write-back) @@ -112,7 +119,7 @@ GENERATED cui_hex_result -> HexResult (+ write-back) WIDGETS Wrapper emission is being migrated by header section (Phase 2, Step 2). Not a completed coverage gate. -Generated wrappers: 277; raw functions covered including scope ends: 317/496 +Generated wrappers: 302; raw functions covered including scope ends: 345/532 MANUAL cui_create: `CuiSurface.Create` owns context creation (CuiSurface.cs). MANUAL cui_destroy: `CuiSurface.Dispose` (CuiSurface.cs). MANUAL cui_set_renderer: `CuiSurface.Create` installs the software renderer; CuiApp lets CUI pick (CuiSurface.cs). @@ -142,6 +149,8 @@ MANUAL cui_dropped_file: `CuiSurface.DroppedFile(index)` (CuiSurface.Input.cs) a MANUAL cui_file_drag_active: `CuiSurface.FileDragActive` (CuiSurface.Input.cs). EXCLUDED cui_set_platform: Platform input is delivered by the window backend and the test harness, not by draw code. MANUAL cui_get_cursor: `ui.Cursor` (Ui.Frame.cs). +MANUAL cui_set_clipboard_text: `Ui.SetClipboard(text)` (Ui/Ui.cs): the platform clipboard hook, for a menu or status bar item that copies. +MANUAL cui_get_clipboard_text: `Ui.GetClipboard()` (Ui/Ui.cs): copies the returned text out of CUI's frame memory before the frame ends. MANUAL cui_key_pressed: `ui.KeyPressed(key)` (Ui.Frame.cs). MANUAL cui_key_down: `ui.KeyDown(key)` (Ui.Frame.cs). MANUAL cui_shortcut: `ui.Shortcut(mods, key)` (Ui.Overlays.cs): unmodified while a text field has focus. @@ -257,8 +266,11 @@ GENERATED cui_toast_action_clicked GENERATED cui_toast_dismiss GENERATED cui_alert_ex GENERATED cui_progress_ex +GENERATED cui_spinner_ex GENERATED cui_spinner GENERATED cui_skeleton +GENERATED cui_skeleton_group_begin_ex +GENERATED cui_skeleton_group_end GENERATED cui_badge_ex GENERATED cui_avatar_ex GENERATED cui_avatar_group @@ -283,6 +295,7 @@ MANUAL cui_bar_chart_ex: Charts take managed series and decimate long feeds into MANUAL cui_donut_chart_ex: Charts take managed series and decimate long feeds into the frame arena; auto-decimation is Phase 2, Step 3. GENERATED cui_sparkline GENERATED cui_gauge +GENERATED cui_pattern_meter_ex MANUAL cui_image_create: ui.CreateImage (Ui/Ui.Images.cs): validates the pixel span, pins it and hands over the texture handle. MANUAL cui_image_load: ui.LoadImage (Ui/Ui.Images.cs): decodes a PNG or JPEG, reports the pixel size and returns the handle as the result. MANUAL cui_image_destroy: ui.DestroyImage (Ui/Ui.Images.cs): releases a texture handle; 0 is ignored so a field clears in one step. @@ -308,6 +321,7 @@ GENERATED cui_split_button_ex MANUAL cui_toggle_group_ex: ui.ToggleGroup (Ui/Ui.BoolGroups.cs): the group edits one bool per label in the caller's array; the wrapper copies through a frame-arena byte block because native writes count bools, not one. GENERATED cui_confirm_button_ex GENERATED cui_status_button_ex +GENERATED cui_status_spinner_ex GENERATED cui_reactions GENERATED cui_speed_dial_ex GENERATED cui_theme_switcher @@ -408,6 +422,10 @@ GENERATED cui_prompt_suggestions_ex GENERATED cui_model_picker_ex GENERATED cui_chat_composer_ex GENERATED cui_voice_orb_ex +GENERATED cui_voice_wave_ex +MANUAL cui_voice_resample: `CuiVoice.Resample(levels, columns)` (Ui/CuiVoice.cs): the resampling the clip strip does, so an app can keep a short waveform with a message. +GENERATED cui_voice_note_ex +GENERATED cui_voice_session_ex GENERATED cui_kanban_begin GENERATED cui_kanban_column_begin_ex GENERATED cui_kanban_card_begin @@ -428,6 +446,8 @@ GENERATED cui_toc_anchor GENERATED cui_banner_ex GENERATED cui_countdown_ex GENERATED cui_checklist_ex +GENERATED cui_veil_begin_ex +GENERATED cui_veil_end MANUAL cui_multi_select_ex: ui.MultiSelect (Ui/Ui.BoolGroups.cs): the list edits one bool per item in the caller's array; the wrapper copies through a frame-arena byte block because native writes count bools, not one. GENERATED cui_range_calendar GENERATED cui_date_range_picker_ex @@ -474,6 +494,12 @@ GENERATED cui_toolbar_end GENERATED cui_toolbar_button_ex GENERATED cui_toolbar_separator GENERATED cui_toolbar_spacer +GENERATED cui_toolbar_group_begin +GENERATED cui_toolbar_group_end +GENERATED cui_toolbar_radio_ex +GENERATED cui_toolbar_primary_ex +GENERATED cui_toolbar_cycle_ex +GENERATED cui_flyout_mark GENERATED cui_status_bar_begin GENERATED cui_status_bar_end GENERATED cui_status_bar_spacer @@ -523,6 +549,14 @@ GENERATED cui_curve_editor_ex MANUAL cui_curve_eval: `CuiMath.EvaluateCurve(keys, x)` (Ui/CuiMath.cs): the same evaluation the curve editor draws with. GENERATED cui_gradient_editor_ex MANUAL cui_gradient_eval: `CuiMath.EvaluateGradient(stops, t)` (Ui/CuiMath.cs). +GENERATED cui_status_tag_ex +GENERATED cui_ratio_slider_ex +GENERATED cui_gradient_slider_ex +GENERATED cui_step_slider_ex +MANUAL cui_palette_strip_ex: Ui.PaletteStrip in Ui.CreativeControls.cs owns both arrays: the colors and the lock flags are edited in place, and native counts them by the one `count`. +GENERATED cui_aspect_picker_ex +GENERATED cui_option_action_ex +GENERATED cui_seed_field_ex EXCLUDED cui_timeline_editor_ex: A timeline track holds three nested arrays (keys, clips, selections), so the record would need array-of-record support one level deeper than the generator has. Available through the raw layer. GENERATED cui_kv_editor_ex GENERATED cui_problems_ex @@ -560,6 +594,13 @@ MANUAL cui_dot_chart_ex: A dot series carries its samples as a bare pointer, and GENERATED cui_event_track_ex GENERATED cui_readout_ex GENERATED cui_dot_display_ex +GENERATED cui_format_bar_ex +GENERATED cui_live_cursors_ex +GENERATED cui_presence_pill_ex +GENERATED cui_selection_ring_ex +MANUAL cui_canvas_controls_ex: Ui.CanvasControls in Ui.CreativeControls.cs owns the toggle flags: each toggle is a `bool *` native flips, which a record cannot hold. +GENERATED cui_result_card_ex +MANUAL cui_selection_bar_ex: Ui.SelectionBar in Ui.CreativeControls.cs owns the selection flags native clears, and passes the action array it converts. MANUAL cui_draw_rect: `ui.DrawRect` (Ui.Draw.cs): a RectF and a radius, no corners struct. MANUAL cui_draw_rect_border: `ui.DrawRect(rect, fill, border, width, radius)` (Ui.Draw.cs): the border overload. MANUAL cui_draw_rect_gradient: `ui.DrawRectGradient` (Ui.Draw.cs). @@ -589,6 +630,8 @@ MANUAL cui_app_quit: `CuiApp.Quit` and `CuiApp.RequestClose` (CuiApp.cs). MANUAL cui_app_set_title: `CuiAppOptions.Title`; `CuiApplicationBuilder.Window` updates it (CuiApp.cs). MANUAL cui_app_set_size: `CuiAppOptions.Width`/`Height` (CuiApp.cs). MANUAL cui_app_size: `CuiApp` reports the size through `Ui.ViewportSize()`. +EXCLUDED cui_app_maximize: Window/app ownership belongs to CuiApp; CuiSurface exposes the supported subset. +EXCLUDED cui_app_follow_system_theme: Window/app ownership belongs to CuiApp; CuiSurface exposes the supported subset. MANUAL cui_app_is_software: `CuiApp.IsSoftwareRenderer` (CuiApp.cs). MANUAL cui_app_native_window: `CuiApp.NativeWindow` (CuiApp.cs). MANUAL cui_app_backend: `CuiApp.Backend` (CuiApp.cs). diff --git a/bindings/overrides.json b/bindings/overrides.json index 7737bb1..7b0efad 100644 --- a/bindings/overrides.json +++ b/bindings/overrides.json @@ -27,6 +27,18 @@ ], "CUI_COMMENT_LIKE": [ "None = 0" + ], + "CUI_WELL_CHANGED": [ + "None = 0" + ], + "CUI_FORMAT_CHANGED": [ + "None = 0" + ], + "CUI_CANVAS_ZOOMED": [ + "None = 0" + ], + "CUI_VOICE_SESSION_MUTE": [ + "None = 0" ] }, "flagsEnums": [ @@ -34,7 +46,11 @@ "CUI_PLAYER_TOGGLE", "CUI_COMPOSER_SEND", "CUI_RESPONSE_COPY", - "CUI_COMMENT_LIKE" + "CUI_COMMENT_LIKE", + "CUI_WELL_CHANGED", + "CUI_FORMAT_CHANGED", + "CUI_CANVAS_ZOOMED", + "CUI_VOICE_SESSION_MUTE" ], "skipFunctions": [], "skipStructs": [], @@ -45,7 +61,11 @@ "CUI_COMPOSER_SEND": "ComposerEvents", "CUI_RESPONSE_COPY": "ResponseEvents", "CUI_COMMENT_LIKE": "CommentEvents", - "CUI_TOUR_NONE": "TourAction" + "CUI_TOUR_NONE": "TourAction", + "CUI_WELL_CHANGED": "WellEvents", + "CUI_FORMAT_CHANGED": "FormatEvents", + "CUI_CANVAS_ZOOMED": "CanvasEvents", + "CUI_VOICE_SESSION_MUTE": "VoiceSessionEvents" }, "typeAliases": { "cui_font": { @@ -95,6 +115,11 @@ "type": "nint", "record": "TableSort", "why": "The grid sorts by a table sort the wrapper keeps in the frame arena and writes back to GridState." + }, + "cui_live_cursors_opts.view": { + "type": "nint", + "record": "NodeView", + "why": "Positions are canvas points under this pan and zoom; the wrapper keeps the native copy in the frame arena so the options never expose an address the caller could leave dangling." } }, "optionalInjectedParams": { @@ -103,6 +128,21 @@ }, "cui_chat_message_ex.markdownResult": { "why": "The markdown view's links and task toggles are only wanted when the bubble renders markdown: with a null result pointer native reports nothing and the common call stays `ui.ChatMessage(text, opts)`." + }, + "cui_treemap_ex.selected": { + "why": "A treemap with no selection to keep passes NULL: the wrapper's overload without `ref int selected` does that, so a chart that only displays its items needs no throwaway local." + }, + "cui_voice_wave_ex.progress": { + "why": "A waveform that is not being played has no progress to report: the overload without `ref float progress` passes NULL, and the whole clip is drawn." + }, + "cui_palette_strip_ex.seed": { + "why": "Without a seed the shuffle button only reports its press: the overload without `ref uint seed` passes NULL." + }, + "cui_voice_session_ex.muted": { + "why": "A session without a Mute button passes NULL for `muted`: the overload without `ref bool muted` does that." + }, + "cui_gradient_slider_ex.colorout": { + "why": "Most sliders do not need the color under the thumb: the overload without `ref Color colorOut` passes NULL." } }, "parameterDefaults": { @@ -236,6 +276,18 @@ "storage": "enum", "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." + }, + "cui_format_bar_ex.format": { + "storage": "value", + "why": "cui_text_format is the bar's state: the wrapper converts it to TextFormat, passes it and writes it back when the call returns." + }, + "cui_canvas_controls_ex.view": { + "storage": "value", + "why": "cui_node_view is the canvas pan and zoom; the wrapper converts it to NodeView and writes it back when the call returns." + }, + "cui_voice_note_ex.note": { + "storage": "value", + "why": "cui_voice_note is playback state: convert to VoiceNoteState, write back position, speed and playing, and preserve the caller-owned const levels array." } }, "capacityParams": { @@ -827,6 +879,24 @@ }, "cui_dot_chart_ex": { "why": "A dot series carries its samples as a bare pointer, and their number is the call's, not the series': the wrapper builds the array in the frame arena from managed series, as the line and bar charts do." + }, + "cui_canvas_controls_ex": { + "why": "Ui.CanvasControls in Ui.CreativeControls.cs owns the toggle flags: each toggle is a `bool *` native flips, which a record cannot hold." + }, + "cui_palette_strip_ex": { + "why": "Ui.PaletteStrip in Ui.CreativeControls.cs owns both arrays: the colors and the lock flags are edited in place, and native counts them by the one `count`." + }, + "cui_selection_bar_ex": { + "why": "Ui.SelectionBar in Ui.CreativeControls.cs owns the selection flags native clears, and passes the action array it converts." + }, + "cui_voice_resample": { + "why": "`CuiVoice.Resample(levels, columns)` (Ui/CuiVoice.cs): the resampling the clip strip does, so an app can keep a short waveform with a message." + }, + "cui_set_clipboard_text": { + "why": "`Ui.SetClipboard(text)` (Ui/Ui.cs): the platform clipboard hook, for a menu or status bar item that copies." + }, + "cui_get_clipboard_text": { + "why": "`Ui.GetClipboard()` (Ui/Ui.cs): copies the returned text out of CUI's frame memory before the frame ends." } }, "outParams": { @@ -889,6 +959,10 @@ "cui_filter_field.options": { "count": "option_count", "why": "FilterField is input-only filter metadata; native reads exactly the options copied into the arena." + }, + "cui_voice_note.levels": { + "count": "count", + "why": "VoiceNote is in/out playback state; native reads exactly the levels copied into the arena." } }, "recordNames": { @@ -1307,6 +1381,34 @@ "cui_event_track_result": { "name": "EventTrackResult", "why": "What the event track reports back: whether it changed, and which event was added, removed or selected." + }, + "cui_aspect": { + "name": "Aspect", + "why": "Aspect ratio choices the picker draws: width, height and an optional name, built at the call site." + }, + "cui_text_style": { + "name": "TextStyle", + "why": "A style the format bar offers: its name, the size it sets, and how it previews in the menu." + }, + "cui_text_format": { + "name": "TextFormat", + "why": "The format bar's state: the tone, bold/underline/link, the chosen style and size. The bar writes it back." + }, + "cui_meter_part": { + "name": "MeterPart", + "why": "One part of a pattern meter's bar: name, value, color and dot density." + }, + "cui_selection_action": { + "name": "SelectionAction", + "why": "An action in the selection bar: icon, label, and the tone that marks a destructive one." + }, + "cui_live_user": { + "name": "LiveUser", + "why": "One collaborator on a shared canvas: where the pointer is, the tone it draws in and what it says." + }, + "cui_voice_note": { + "name": "VoiceNoteState", + "why": "A recorded message's playback state: the levels, the position, the length and the speed. The bubble writes position, speed and playing back; named after the state because the widget is Ui.VoiceNote." } }, "extraOptionFields": { @@ -1434,6 +1536,9 @@ }, "cui_url_set_params": { "why": "C helper: encodes pairs into a caller buffer. Not a frame call." + }, + "cui_voice_resample": { + "why": "C helper: resamples a clip's levels into caller memory. A static utility with no frame and no cui_ctx." } }, "arrayLengths": { @@ -1497,6 +1602,34 @@ "cui_comment_ex": { "name": "CommentEvents", "why": "The int is a CUI_COMMENT_* flag word: like and reply." + }, + "cui_gradient_slider_ex": { + "name": "WellEvents", + "why": "Returns CUI_WELL_* flags: the value changed or the tool button was pressed." + }, + "cui_step_slider_ex": { + "name": "WellEvents", + "why": "Returns CUI_WELL_* flags: the value changed or the tool button was pressed." + }, + "cui_option_action_ex": { + "name": "WellEvents", + "why": "Returns CUI_WELL_* flags: a choice changed or the action was pressed." + }, + "cui_seed_field_ex": { + "name": "WellEvents", + "why": "Returns CUI_WELL_* flags: the seed or lock changed, or the dice was pressed." + }, + "cui_format_bar_ex": { + "name": "FormatEvents", + "why": "Returns CUI_FORMAT_* flags, separate from the TextFormat state it edits." + }, + "cui_voice_note_ex": { + "name": "PlayerEvents", + "why": "Returns CUI_PLAYER_* flags, shared with NowPlaying: toggle, seek and speed." + }, + "cui_voice_session_ex": { + "name": "VoiceSessionEvents", + "why": "Returns CUI_VOICE_SESSION_* flags: mute toggled or End was pressed." } }, "textFields": { @@ -1688,6 +1821,26 @@ "cui_event_track_opts.selected": { "type": "int", "why": "The selected event: the track moves it with the keys and a drag, so the wrapper writes it back." + }, + "cui_treemap_opts.selected": { + "type": "int", + "why": "The selected tile, or -1: a click changes it, so the wrapper writes it back." + }, + "cui_voice_wave_opts.progress": { + "type": "float", + "why": "A clip's played fraction: seeking moves it, so the wrapper writes it back." + }, + "cui_palette_strip_opts.seed": { + "type": "uint", + "why": "The shuffle state: shuffling moves the seed on, so the wrapper writes it back." + }, + "cui_voice_session_opts.muted": { + "type": "bool", + "why": "The mute button flips it, so the wrapper writes it back." + }, + "cui_gradient_slider_opts.color_out": { + "type": "Color", + "why": "Receives the color under the thumb, e.g. for an eyedropper." } }, "arrayParams": { @@ -1731,6 +1884,34 @@ "cui_month_opts.day_names": { "atLeast": "7", "why": "Seven short day names, Monday first: native reads all seven, so the wrapper rejects a shorter array." + }, + "cui_toolbar_radio_opts.labels": { + "atLeast": "icons.Length", + "why": "One name per icon: native reads `count` labels, so the wrapper rejects a shorter array." + }, + "cui_step_slider_opts.labels": { + "atLeast": "(long)max - min + 1", + "why": "Native normalizes max <= min to two stops and indexes every stop. Normalize before checking labels and reject a range whose stop count would overflow C int, even without labels.", + "prepare": [ + "if (max <= min)", + "{", + " if (min == int.MaxValue) throw new ArgumentOutOfRangeException(nameof(min), \"The range must leave room for two stops.\");", + " max = min + 1;", + "}", + "if ((long)max - min >= int.MaxValue) throw new ArgumentOutOfRangeException(nameof(max), \"The step count must fit in a native int.\");" + ] + }, + "cui_voice_wave_opts.owners": { + "atLeast": "levels.Length", + "why": "One owner per level: native reads `count` owner bytes, so the wrapper rejects a shorter array." + }, + "cui_voice_session_opts.owners": { + "atLeast": "levels.Length", + "why": "One owner per level: native reads `count` owner bytes, so the wrapper rejects a shorter array." + }, + "cui_sankey_opts.node_colors": { + "atLeast": "nodes.Length", + "why": "One color per node: native reads `node_count` entries, so the wrapper rejects a shorter array." } }, "inOutArrays": { @@ -1801,6 +1982,18 @@ }, "cui_tree_table_opts.user": { "why": "The `void *` for the label callback above; the bridge supplies the GCHandle address for it." + }, + "cui_canvas_controls_opts.toggles": { + "why": "Each toggle carries a `bool *` of its own; a value record cannot own a pointer per item, so Ui.CanvasControls takes the flags as a span." + }, + "cui_canvas_controls_opts.toggle_count": { + "why": "The length of `toggles`, which the hand-written wrapper derives from the span it is given." + }, + "cui_selection_bar_opts.selected": { + "why": "One flag per selection item, cleared by native; Ui.SelectionBar takes the flags as a span it owns and passes on." + }, + "cui_selection_bar_opts.item_count": { + "why": "The length of `selected`, which the hand-written wrapper derives from the span it is given." } }, "optionFieldCounts": { @@ -1811,6 +2004,10 @@ "cui_keymap_opts.categories": { "count": "category_count", "why": "The legend's names are counted by `category_count`, not `category_count`'s plural form." + }, + "cui_aspect_picker_opts.ratios": { + "count": "count", + "why": "The picker's choices are counted by `count`, not by a plural of `ratios`." } }, "optionTextFields": { diff --git a/docs/API-SURFACE.txt b/docs/API-SURFACE.txt index e4e31db..fbb8389 100644 --- a/docs/API-SURFACE.txt +++ b/docs/API-SURFACE.txt @@ -88,11 +88,16 @@ struct CuiSharp.ApiParam class CuiSharp.AppChromeMenuBarToolbarStatusBarDocumentTabsUiExtensions static Boolean StatusBarItem(Ui, UiText, StatusItemOpts) static Boolean ToolbarButton(Ui, UiText, ref Boolean, ToolOpts) + static Boolean ToolbarCycle(Ui, UiText, ReadOnlySpan, ref Int32, ref Boolean, ToolOpts) + static Boolean ToolbarPrimary(Ui, UiText, ref Boolean, ToolOpts) + static Boolean ToolbarRadio(Ui, UiText, ReadOnlySpan, ref Int32, ToolbarRadioOpts) static DocTabsResult DocTabs(Ui, UiText, ReadOnlySpan, ref Int32, DocTabsOpts) static LayoutScope MenuBar(Ui, UiText, MenuBarOpts) static LayoutScope StatusBar(Ui, UiText, StatusBarOpts) static LayoutScope Toolbar(Ui, UiText, ToolbarOpts) + static LayoutScope ToolbarGroup(Ui) static OpenScope MenuBarMenu(Ui, UiText, MenuBarMenuOpts) + static Void FlyoutMark(Ui) static Void MenuBarMenu(Ui, UiText, DrawFn, MenuBarMenuOpts) static Void StatusBarProgress(Ui, Single, StatusProgressOpts) static Void StatusBarSpacer(Ui) @@ -102,11 +107,16 @@ class CuiSharp.AppChromeMenuBarToolbarStatusBarDocumentTabsUiExtensions class CuiSharp.AppChromeMenuBarToolbarStatusBarDocumentTabsUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4 Boolean StatusBarItem(UiText, StatusItemOpts) Boolean ToolbarButton(UiText, ref Boolean, ToolOpts) + Boolean ToolbarCycle(UiText, ReadOnlySpan, ref Int32, ref Boolean, ToolOpts) + Boolean ToolbarPrimary(UiText, ref Boolean, ToolOpts) + Boolean ToolbarRadio(UiText, ReadOnlySpan, ref Int32, ToolbarRadioOpts) DocTabsResult DocTabs(UiText, ReadOnlySpan, ref Int32, DocTabsOpts) LayoutScope MenuBar(UiText, MenuBarOpts) LayoutScope StatusBar(UiText, StatusBarOpts) LayoutScope Toolbar(UiText, ToolbarOpts) + LayoutScope ToolbarGroup() OpenScope MenuBarMenu(UiText, MenuBarMenuOpts) + Void FlyoutMark() Void MenuBarMenu(UiText, DrawFn, MenuBarMenuOpts) Void StatusBarProgress(Single, StatusProgressOpts) Void StatusBarSpacer() @@ -114,6 +124,18 @@ class CuiSharp.AppChromeMenuBarToolbarStatusBarDocumentTabsUiExtensions+$2E78 Void ToolbarSeparator() Void ToolbarSpacer() class CuiSharp.AppChromeMenuBarToolbarStatusBarDocumentTabsUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4+$D152016828D0F2CB0A8B78500F4F70D3 +struct CuiSharp.Aspect + ctor(Int32, Int32, String) + field Int32 H + field Int32 W + field String Label +struct CuiSharp.AspectPickerOpts + field Aspect[] Ratios + field Boolean Custom + field Boolean Plain + field Int32 Base + field String CustomLabel + field String Value struct CuiSharp.AutomationScope Void Dispose() struct CuiSharp.AvatarOpts @@ -260,6 +282,16 @@ struct CuiSharp.CandlestickOpts field Size Width field String Format field String[] Labels +struct CuiSharp.CanvasControlsOpts + field Boolean NoFit + field Boolean StartSide + field RectF Content + field Single[] Steps +enum CuiSharp.CanvasEvents + Fit + None + Toggled + Zoomed struct CuiSharp.CanvasResult field Boolean Clicked field Boolean Hovered @@ -267,6 +299,11 @@ struct CuiSharp.CanvasResult field RectF Rect field Single MouseX field Single MouseY +struct CuiSharp.CanvasToggle + ctor(String, String) + property Boolean On { get; set; } + property String Icon { get; set; } + property String Label { get; set; } class CuiSharp.CaptureUiExtensions static Boolean SignaturePad(Ui, UiText, SignatureOpts) static Int32 AvatarUpload(Ui, UiText, UiText, ref UInt64, Single) @@ -319,6 +356,7 @@ class CuiSharp.ChartNormalizer static Single FindBaseline(ReadOnlySpan) struct CuiSharp.ChartOpts field Boolean Area + field Boolean Dither field Boolean NoGrid field Boolean NoLegend field Boolean Smooth @@ -503,15 +541,22 @@ struct CuiSharp.CompareOpts field String BeforeLabel enum CuiSharp.ComposerEvents Attach + Cancel Model None + Record Remove Send Stop + Voice struct CuiSharp.ComposerOpts field Boolean Busy + field Boolean Mic + field Boolean Recording field Int32 MaxLines field Model[] Models + field Single RecordSeconds + field Single[] Levels field Size Width field String Placeholder field String[] Attachments @@ -582,6 +627,25 @@ class CuiSharp.CoverageUiExtensions class CuiSharp.CoverageUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4 CoverageResult Coverage(UiText, ReadOnlySpan, CoverageOpts) class CuiSharp.CoverageUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4+$D152016828D0F2CB0A8B78500F4F70D3 +class CuiSharp.CreativeControlsUiExtensions + static Boolean AspectPicker(Ui, UiText, ref Int32, AspectPickerOpts) + static Boolean RatioSlider(Ui, UiText, UiText, ref Single, RatioSliderOpts) + static Boolean StatusTag(Ui, UiText, TagStatus, StatusTagOpts) + static WellEvents GradientSlider(Ui, UiText, ref Single, Single, Single, GradientSliderOpts) + static WellEvents GradientSlider(Ui, UiText, ref Single, Single, Single, ref Color, GradientSliderOpts) + static WellEvents OptionAction(Ui, UiText, ReadOnlySpan, ref Int32, UiText, OptionActionOpts) + static WellEvents SeedField(Ui, UiText, ref UInt32, ref Boolean, SeedFieldOpts) + static WellEvents StepSlider(Ui, UiText, ref Int32, Int32, Int32, StepSliderOpts) +class CuiSharp.CreativeControlsUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4 + Boolean AspectPicker(UiText, ref Int32, AspectPickerOpts) + Boolean RatioSlider(UiText, UiText, ref Single, RatioSliderOpts) + Boolean StatusTag(UiText, TagStatus, StatusTagOpts) + WellEvents GradientSlider(UiText, ref Single, Single, Single, GradientSliderOpts) + WellEvents GradientSlider(UiText, ref Single, Single, Single, ref Color, GradientSliderOpts) + WellEvents OptionAction(UiText, ReadOnlySpan, ref Int32, UiText, OptionActionOpts) + WellEvents SeedField(UiText, ref UInt32, ref Boolean, SeedFieldOpts) + WellEvents StepSlider(UiText, ref Int32, Int32, Int32, StepSliderOpts) +class CuiSharp.CreativeControlsUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4+$D152016828D0F2CB0A8B78500F4F70D3 struct CuiSharp.CropperOpts field Boolean Round field Single Aspect @@ -723,6 +787,9 @@ enum CuiSharp.CuiTaskStatus Skipped class CuiSharp.CuiTree static Int32 Sort(TreeNode[], Int32, Comparison, String) +class CuiSharp.CuiVoice + field Single Silent + static Int32 Resample(ReadOnlySpan, Span) class CuiSharp.CuiWindow FilePickResult PickFile(FileDialogOpts) Void Minimize() @@ -795,6 +862,7 @@ class CuiSharp.DataDisplayUiExtensions static Boolean ListItem(Ui, UiText, ListItemOpts) static Boolean TableRow(Ui, Boolean) static Boolean TreeClicked(Ui) + static Int32 PatternMeter(Ui, UiText, ReadOnlySpan, PatternMeterOpts) static LayoutScope VirtualList(Ui, UiText, Int32, Single, Size, out Int32, out Int32) static OpenScope Accordion(Ui, UiText, ref Boolean) static OpenScope Table(Ui, UiText, ReadOnlySpan, TableOpts) @@ -814,6 +882,7 @@ class CuiSharp.DataDisplayUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4 Boolean ListItem(UiText, ListItemOpts) Boolean TableRow(Boolean) Boolean TreeClicked() + Int32 PatternMeter(UiText, ReadOnlySpan, PatternMeterOpts) LayoutScope VirtualList(UiText, Int32, Single, Size, out Int32, out Int32) OpenScope Accordion(UiText, ref Boolean) OpenScope Table(UiText, ReadOnlySpan, TableOpts) @@ -872,8 +941,10 @@ class CuiSharp.DependencyGraphUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4 GraphResult GraphView(UiText, ReadOnlySpan, ReadOnlySpan, ref Int32, GraphOpts) class CuiSharp.DependencyGraphUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4+$D152016828D0F2CB0A8B78500F4F70D3 struct CuiSharp.DialogOpts + field Boolean Draggable field Boolean NoCloseButton field Boolean Persistent + field Boolean Resizable field Single Width field String Description class CuiSharp.DialogsSheetsToastsAlertsUiExtensions @@ -1207,6 +1278,7 @@ class CuiSharp.FeatureFlagsUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4 class CuiSharp.FeatureFlagsUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4+$D152016828D0F2CB0A8B78500F4F70D3 class CuiSharp.FeedbackAndDisplayUiExtensions static Boolean EmptyState(Ui, UiText, EmptyOpts) + static LayoutScope SkeletonGroup(Ui, SkeletonGroupOpts) static Void Avatar(Ui, UiText, AvatarOpts) static Void AvatarGroup(Ui, ReadOnlySpan, Int32, Single) static Void Badge(Ui, UiText, BadgeOpts) @@ -1215,8 +1287,10 @@ class CuiSharp.FeedbackAndDisplayUiExtensions static Void Progress(Ui, Single, ProgressOpts) static Void Skeleton(Ui, Size, Single) static Void Spinner(Ui, Single) + static Void Spinner(Ui, Single, SpinnerOpts) class CuiSharp.FeedbackAndDisplayUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4 Boolean EmptyState(UiText, EmptyOpts) + LayoutScope SkeletonGroup(SkeletonGroupOpts) Void Avatar(UiText, AvatarOpts) Void AvatarGroup(ReadOnlySpan, Int32, Single) Void Badge(UiText, BadgeOpts) @@ -1225,6 +1299,7 @@ class CuiSharp.FeedbackAndDisplayUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932 Void Progress(Single, ProgressOpts) Void Skeleton(Size, Single) Void Spinner(Single) + Void Spinner(Single, SpinnerOpts) class CuiSharp.FeedbackAndDisplayUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4+$D152016828D0F2CB0A8B78500F4F70D3 struct CuiSharp.FileBrowserOpts field Boolean FoldersOnly @@ -1332,6 +1407,30 @@ class CuiSharp.FontUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4 Void AddFontFallback(Font, Font) Void SetFont(Font, Font) class CuiSharp.FontUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4+$D152016828D0F2CB0A8B78500F4F70D3 +enum CuiSharp.FormatAlign + Center + Justify + Left + Right +struct CuiSharp.FormatBarOpts + field Boolean NoDelete + field Boolean NoMore + field String DeleteQuestion + field String Footer + field String FooterKeys + field TextStyle[] Styles + field Tone[] Colors +enum CuiSharp.FormatEvents + Changed + Delete + Link + More + None +enum CuiSharp.FormatList + Bullets + Checks + None + Numbers struct CuiSharp.FunnelOpts field Color Color field Single Height @@ -1343,9 +1442,15 @@ struct CuiSharp.GanttOpts field Single DayWidth field Single RowHeight field Size Height +enum CuiSharp.GanttState + Active + Auto + Done + Planned struct CuiSharp.GanttTask - ctor(String, String, Int32, Int32, Single, Tone, Int32, Boolean) + ctor(String, String, Int32, Int32, Single, Tone, Int32, Boolean, GanttState) field Boolean Milestone + field GanttState State field Int32 DependsOn field Int32 End field Int32 Start @@ -1354,9 +1459,15 @@ struct CuiSharp.GanttTask field String Owner field Tone Tone struct CuiSharp.GaugeBand - ctor(Single, Tone) + ctor(Single, Tone, String) field Single To + field String Name field Tone Tone +enum CuiSharp.GaugeStyle + Arc + Auto + Ring + Segments struct CuiSharp.GradientOpts field Single Height field Size Width @@ -1366,6 +1477,19 @@ struct CuiSharp.GradientResult field Int32 Added field Int32 Removed field Int32 Selected +struct CuiSharp.GradientSliderOpts + field Boolean Disabled + field Boolean Plain + field Boolean Swatch + field Boolean ToolOn + field Color Color + field GradientStop[] Stops + field GradientTrack Track + field Single Step + field String Format + field String Tool + field String ToolTooltip + field String Value struct CuiSharp.GradientStop ctor(Single, Color) field Color Color @@ -1377,6 +1501,10 @@ struct CuiSharp.GradientTextOpts field Font Font field Single Size field Size Width +enum CuiSharp.GradientTrack + Hue + Opacity + Temperature struct CuiSharp.GraphEdge ctor(Int32, Int32) field Int32 From @@ -1842,13 +1970,23 @@ struct CuiSharp.InspectorOpts field Single LabelWidth field Size Width class CuiSharp.InstrumentsDotMatrixChartEventTrackReadoutDotMatrixDisplayUiExtensions + static Boolean ResultCard(Ui, UiText, UInt64, UiText, ResultCardOpts) static EventTrackResult EventTrack(Ui, UiText, Span, ref Int32, Double, Double, ref Int32, EventTrackOpts) + static FormatEvents FormatBar(Ui, UiText, ref TextFormat, FormatBarOpts) static Void DotDisplay(Ui, UiText, DotDisplayOpts) + static Void LiveCursors(Ui, UiText, ReadOnlySpan, ref NodeView, LiveCursorsOpts) + static Void PresencePill(Ui, UiText, ReadOnlySpan, PresencePillOpts) static Void Readout(Ui, UiText, UiText, ReadoutOpts) + static Void SelectionRing(Ui, Color, SelectionRingOpts) class CuiSharp.InstrumentsDotMatrixChartEventTrackReadoutDotMatrixDisplayUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4 + Boolean ResultCard(UiText, UInt64, UiText, ResultCardOpts) EventTrackResult EventTrack(UiText, Span, ref Int32, Double, Double, ref Int32, EventTrackOpts) + FormatEvents FormatBar(UiText, ref TextFormat, FormatBarOpts) Void DotDisplay(UiText, DotDisplayOpts) + Void LiveCursors(UiText, ReadOnlySpan, ref NodeView, LiveCursorsOpts) + Void PresencePill(UiText, ReadOnlySpan, PresencePillOpts) Void Readout(UiText, UiText, ReadoutOpts) + Void SelectionRing(Color, SelectionRingOpts) class CuiSharp.InstrumentsDotMatrixChartEventTrackReadoutDotMatrixDisplayUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4+$D152016828D0F2CB0A8B78500F4F70D3 class CuiSharp.Interop.Native static Accent GetAccent(IntPtr) @@ -1859,6 +1997,7 @@ class CuiSharp.Interop.Native static Byte AppIsSoftware(IntPtr) static Byte AppOpenUrl(IntPtr) static Byte AppScreenshot(IntPtr, IntPtr, Int32, Int32) + static Byte AspectPicker(IntPtr, IntPtr, ref Int32, in NativeAspectPickerOpts) static Byte Banner(IntPtr, IntPtr, IntPtr, in NativeBannerOpts) static Byte Button(IntPtr, IntPtr, in NativeButtonOpts) static Byte Calendar(IntPtr, IntPtr, ref NativeDate) @@ -1960,8 +2099,10 @@ class CuiSharp.Interop.Native static Byte RangeCalendar(IntPtr, IntPtr, ref NativeDateRange, Int32) static Byte RangeSlider(IntPtr, IntPtr, ref Single, ref Single, Single, Single) static Byte Rating(IntPtr, IntPtr, ref Int32, Int32) + static Byte RatioSlider(IntPtr, IntPtr, IntPtr, ref Single, in NativeRatioSliderOpts) static Byte ReasoningBegin(IntPtr, IntPtr, in NativeReasoningOpts) static Byte ReorderEnd(IntPtr) + static Byte ResultCard(IntPtr, IntPtr, UIntPtr, IntPtr, in NativeResultCardOpts) static Byte RulerSlider(IntPtr, IntPtr, ref Single, Single, Single, in NativeRulerOpts) static Byte Scrub(IntPtr, IntPtr, ref Single, Single, Single, in NativeScrubOpts) static Byte Segmented(IntPtr, IntPtr, IntPtr, Int32, ref Int32, in NativeSegmentedOpts) @@ -1973,6 +2114,8 @@ class CuiSharp.Interop.Native static Byte Slider(IntPtr, IntPtr, ref Single, Single, Single, in NativeSliderOpts) static Byte StatusBarItem(IntPtr, IntPtr, in NativeStatusItemOpts) static Byte StatusButton(IntPtr, IntPtr, Status, in NativeStatusButtonOpts) + static Byte StatusSpinner(IntPtr, IntPtr, Status, in NativeStatusSpinnerOpts) + static Byte StatusTag(IntPtr, IntPtr, TagStatus, in NativeStatusTagOpts) static Byte SwLastDamage(IntPtr, ref Int32, ref Int32, ref Int32, ref Int32) static Byte Switch(IntPtr, IntPtr, IntPtr, in NativeCheckOpts) static Byte TabBar(IntPtr, IntPtr, IntPtr, Int32, ref Int32, in NativeTabBarOpts) @@ -1987,13 +2130,18 @@ class CuiSharp.Interop.Native static Byte ToastActionClicked(IntPtr, Int32) static Byte ToggleGroup(IntPtr, IntPtr, IntPtr, Int32, IntPtr, in NativeToggleGroupOpts) static Byte ToolbarButton(IntPtr, IntPtr, in NativeToolOpts) + static Byte ToolbarCycle(IntPtr, IntPtr, IntPtr, Int32, ref Int32, in NativeToolOpts) + static Byte ToolbarPrimary(IntPtr, IntPtr, in NativeToolOpts) + static Byte ToolbarRadio(IntPtr, IntPtr, IntPtr, Int32, ref Int32, in NativeToolbarRadioOpts) static Byte TreeBegin(IntPtr, IntPtr, IntPtr, in NativeTreeOpts) static Byte TreeCell(IntPtr, IntPtr, Int32, Byte, IntPtr, IntPtr) static Byte TreeClicked(IntPtr) static Byte Typewriter(IntPtr, IntPtr, IntPtr, in NativeTextFxOpts) static Byte UrlSetParams(IntPtr, UIntPtr, IntPtr, Int32) static Byte UserMenuBegin(IntPtr, IntPtr, in NativeUserMenuOpts) + static Byte VeilBegin(IntPtr, IntPtr, IntPtr, in NativeVeilOpts) static Byte VoiceOrb(IntPtr, IntPtr, VoiceState, Single, in NativeVoiceOrbOpts) + static Byte VoiceWave(IntPtr, IntPtr, IntPtr, Int32, in NativeVoiceWaveOpts) static Byte WantsKeyboard(IntPtr) static Byte WantsMouse(IntPtr) static Byte Waveform(IntPtr, IntPtr, IntPtr, Int32, ref Single, in NativeWaveformOpts) @@ -2011,6 +2159,7 @@ class CuiSharp.Interop.Native static Int32 Breadcrumb(IntPtr, IntPtr, Int32) static Int32 CalendarHeatmap(IntPtr, IntPtr, NativeDate, IntPtr, Int32, in NativeCalendarHeatmapOpts) static Int32 Candlestick(IntPtr, IntPtr, IntPtr, Int32, in NativeCandlestickOpts) + static Int32 CanvasControls(IntPtr, IntPtr, ref NativeNodeView, in NativeCanvasControlsOpts) static Int32 CardStackEnd(IntPtr) static Int32 ChatComposer(IntPtr, IntPtr, IntPtr, UIntPtr, in NativeComposerOpts) static Int32 Checklist(IntPtr, IntPtr, IntPtr, Int32, in NativeChecklistOpts) @@ -2021,15 +2170,20 @@ class CuiSharp.Interop.Native static Int32 DiffViewRows(IntPtr, IntPtr, IntPtr, Int32, Int32) static Int32 DroppedFileCount(IntPtr) static Int32 Dropzone(IntPtr, IntPtr, in NativeDropzoneOpts) + static Int32 FormatBar(IntPtr, IntPtr, ref NativeTextFormat, in NativeFormatBarOpts) static Int32 FsList(IntPtr, IntPtr, ref NativeFileEntry, Int32, IntPtr, UIntPtr, Byte) static Int32 Funnel(IntPtr, IntPtr, IntPtr, Int32, in NativeFunnelOpts) static Int32 Gantt(IntPtr, IntPtr, IntPtr, Int32, NativeDate, Int32, in NativeGanttOpts) + static Int32 GradientSlider(IntPtr, IntPtr, ref Single, Single, Single, in NativeGradientSliderOpts) static Int32 Heatmap(IntPtr, IntPtr, IntPtr, Int32, Int32, in NativeHeatmapOpts) static Int32 InlineEdit(IntPtr, IntPtr, IntPtr, UIntPtr, in NativeInlineEditOpts) static Int32 Input(IntPtr, IntPtr, IntPtr, UIntPtr, in NativeInputOpts) static Int32 KeyMods(IntPtr) static Int32 NowPlaying(IntPtr, IntPtr, ref NativeNowPlaying, in NativeNowPlayingOpts) + static Int32 OptionAction(IntPtr, IntPtr, IntPtr, Int32, ref Int32, IntPtr, in NativeOptionActionOpts) + static Int32 PaletteStrip(IntPtr, IntPtr, IntPtr, IntPtr, Int32, in NativePaletteStripOpts) static Int32 PasswordStrength(IntPtr, IntPtr) + static Int32 PatternMeter(IntPtr, IntPtr, IntPtr, Int32, in NativePatternMeterOpts) static Int32 PromptSuggestions(IntPtr, IntPtr, IntPtr, Int32, in NativePromptSuggestionsOpts) static Int32 RadarChart(IntPtr, IntPtr, IntPtr, Int32, IntPtr, Int32, in NativeRadarOpts) static Int32 Reactions(IntPtr, IntPtr, IntPtr, Int32) @@ -2038,11 +2192,14 @@ class CuiSharp.Interop.Native static Int32 Sankey(IntPtr, IntPtr, IntPtr, Int32, IntPtr, Int32, in NativeSankeyOpts) static Int32 ScatterChart(IntPtr, IntPtr, IntPtr, Int32, in NativeScatterOpts) static Int32 Search(IntPtr, IntPtr, IntPtr, UIntPtr, in NativeInputOpts) + static Int32 SeedField(IntPtr, IntPtr, ref UInt32, IntPtr, in NativeSeedFieldOpts) + static Int32 SelectionBar(IntPtr, IntPtr, Int32, IntPtr, Int32, in NativeSelectionBarOpts) static Int32 SignaturePoints(IntPtr, IntPtr, IntPtr, IntPtr, ref Int32) static Int32 SourceList(IntPtr, IntPtr, IntPtr, Int32) static Int32 SpeedDial(IntPtr, IntPtr, IntPtr, Int32, in NativeSpeedDialOpts) static Int32 SplitBar(IntPtr, IntPtr, IntPtr, Int32, in NativeSplitBarOpts) static Int32 SplitButton(IntPtr, IntPtr, IntPtr, Int32, in NativeSplitButtonOpts) + static Int32 StepSlider(IntPtr, IntPtr, ref Int32, Int32, Int32, in NativeStepSliderOpts) static Int32 SwipeItemEnd(IntPtr) static Int32 Textarea(IntPtr, IntPtr, IntPtr, UIntPtr, in NativeInputOpts) static Int32 Toast(IntPtr, IntPtr, in NativeToastOpts) @@ -2053,6 +2210,9 @@ class CuiSharp.Interop.Native static Int32 TreeTableRow(IntPtr) static Int32 Treemap(IntPtr, IntPtr, IntPtr, Int32, in NativeTreemapOpts) static Int32 UrlParams(IntPtr, IntPtr, Int32) + static Int32 VoiceNote(IntPtr, IntPtr, ref NativeVoiceNote, in NativeVoiceNoteOpts) + static Int32 VoiceResample(IntPtr, Int32, ref Single, Int32) + static Int32 VoiceSession(IntPtr, IntPtr, VoiceState, IntPtr, Int32, in NativeVoiceSessionOpts) static Int32 Waffle(IntPtr, IntPtr, IntPtr, Int32, in NativeWaffleOpts) static Int32 WeekCalendar(IntPtr, IntPtr, NativeDate, IntPtr, Int32, in NativeWeekOpts) static IntPtr AccentName(Accent) @@ -2064,6 +2224,7 @@ class CuiSharp.Interop.Native static IntPtr CronDescribe(IntPtr, IntPtr) static IntPtr DroppedFile(IntPtr, Int32) static IntPtr EmojiPicker(IntPtr, IntPtr, in NativeEmojiPickerOpts) + static IntPtr GetClipboardText(IntPtr) static IntPtr GetDrawData(IntPtr) static IntPtr GetStrings(IntPtr) static IntPtr GlCreate(IntPtr) @@ -2148,6 +2309,8 @@ class CuiSharp.Interop.Native static Void AccordionEnd(IntPtr) static Void AgentStatus(IntPtr, IntPtr, in NativeAgentStatusOpts) static Void AppDestroy(IntPtr) + static Void AppFollowSystemTheme(IntPtr, Byte) + static Void AppMaximize(IntPtr) static Void AppQuit(IntPtr) static Void AppSetSize(IntPtr, Int32, Int32) static Void AppSetTitle(IntPtr, IntPtr) @@ -2209,6 +2372,7 @@ class CuiSharp.Interop.Native static Void EndFrame(IntPtr) static Void ExpandableCardEnd(IntPtr) static Void FlameSort(IntPtr, Int32) + static Void FlyoutMark(IntPtr) static Void FontAddFallback(IntPtr, Font, Font) static Void FontSetRole(IntPtr, Font, Font) static Void Gap(IntPtr, Single) @@ -2239,6 +2403,7 @@ class CuiSharp.Interop.Native static Void Kbd(IntPtr, IntPtr) static Void Label(IntPtr, IntPtr) static Void LineChart(IntPtr, IntPtr, IntPtr, Int32, in NativeChartOpts) + static Void LiveCursors(IntPtr, IntPtr, IntPtr, Int32, in NativeLiveCursorsOpts) static Void Loader(IntPtr, in NativeLoaderOpts) static Void LogAppendText(ref NativeLogBuffer, LogLevel, Double, IntPtr, Int32) static Void LogAppendv(ref NativeLogBuffer, LogLevel, IntPtr, IntPtr) @@ -2269,6 +2434,7 @@ class CuiSharp.Interop.Native static Void PopoverOpen(IntPtr, IntPtr) static Void PopoverToggle(IntPtr, IntPtr) static Void Presence(IntPtr, IntPtr, IntPtr, Int32, Int32, Single) + static Void PresencePill(IntPtr, IntPtr, IntPtr, Int32, in NativePresencePillOpts) static Void Progress(IntPtr, Single, in NativeProgressOpts) static Void ProgressRing(IntPtr, IntPtr, Single, Single) static Void PushClip(IntPtr, NativeRect) @@ -2288,8 +2454,10 @@ class CuiSharp.Interop.Native static Void ScrollEnd(IntPtr) static Void ScrollTo(IntPtr, IntPtr, Single) static Void Secondary(IntPtr, IntPtr) + static Void SelectionRing(IntPtr, NativeColor, in NativeSelectionRingOpts) static Void Separator(IntPtr) static Void SetAccent(IntPtr, Accent) + static Void SetClipboardText(IntPtr, IntPtr) static Void SetPlatform(IntPtr, in NativePlatformIface) static Void SetReducedMotion(IntPtr, Byte) static Void SetRenderer(IntPtr, in NativeRendererIface) @@ -2300,9 +2468,12 @@ class CuiSharp.Interop.Native static Void ShimmerText(IntPtr, IntPtr, in NativeTextFxOpts) static Void SignatureClear(IntPtr, IntPtr) static Void Skeleton(IntPtr, NativeSize, Single) + static Void SkeletonGroupBegin(IntPtr, in NativeSkeletonGroupOpts) + static Void SkeletonGroupEnd(IntPtr) static Void Spacer(IntPtr) static Void Sparkline(IntPtr, IntPtr, Int32, NativeSize, Single, NativeColor) static Void Spinner(IntPtr, Single) + static Void SpinnerEx(IntPtr, Single, in NativeSpinnerOpts) static Void SplitBegin(IntPtr, IntPtr, ref Single, in NativeSplitOpts) static Void SplitEnd(IntPtr) static Void SplitNext(IntPtr) @@ -2335,6 +2506,8 @@ class CuiSharp.Interop.Native static Void ToolCall(IntPtr, IntPtr, IntPtr, in NativeToolCallOpts) static Void ToolbarBegin(IntPtr, IntPtr, in NativeToolbarOpts) static Void ToolbarEnd(IntPtr) + static Void ToolbarGroupBegin(IntPtr) + static Void ToolbarGroupEnd(IntPtr) static Void ToolbarSeparator(IntPtr) static Void ToolbarSpacer(IntPtr) static Void Tooltip(IntPtr, IntPtr) @@ -2344,6 +2517,7 @@ class CuiSharp.Interop.Native static Void TreeTableName(IntPtr, IntPtr, IntPtr) static Void TypingIndicator(IntPtr, IntPtr) static Void UserMenuEnd(IntPtr) + static Void VeilEnd(IntPtr) static Void VirtualListBegin(IntPtr, IntPtr, Int32, Single, NativeSize, ref Int32, ref Int32) static Void VirtualListEnd(IntPtr) static Void WordRotate(IntPtr, IntPtr, IntPtr, Int32, Single, in NativeTextFxOpts) @@ -2403,6 +2577,19 @@ struct CuiSharp.Interop.NativeAppDesc field IntPtr Title field Renderer Renderer field Theme Theme +struct CuiSharp.Interop.NativeAspect + field Int32 H + field Int32 W + field IntPtr Label +struct CuiSharp.Interop.NativeAspectPickerOpts + field Byte Custom + field Byte Plain + field Int32 Base + field Int32 Count + field Int32 Sentinel + field IntPtr CustomLabel + field IntPtr Ratios + field IntPtr Value struct CuiSharp.Interop.NativeAvatarOpts field Byte Square field Int32 Sentinel @@ -2526,12 +2713,25 @@ struct CuiSharp.Interop.NativeCandlestickOpts field NativeColor Up field NativeSize Width field Single Height +struct CuiSharp.Interop.NativeCanvasControlsOpts + field Byte NoFit + field Byte StartSide + field Int32 Sentinel + field Int32 StepCount + field Int32 ToggleCount + field IntPtr Steps + field IntPtr Toggles + field NativeRect Content struct CuiSharp.Interop.NativeCanvasResult field Byte Clicked field Byte Hovered field Byte Pressed field NativeRect Rect field NativeVec2 Mouse +struct CuiSharp.Interop.NativeCanvasToggle + field IntPtr Icon + field IntPtr Label + field IntPtr On struct CuiSharp.Interop.NativeCardOpts field Align Align field Byte Hoverable @@ -2571,6 +2771,7 @@ struct CuiSharp.Interop.NativeChartAnnotation field IntPtr Label struct CuiSharp.Interop.NativeChartOpts field Byte Area + field Byte Dither field Byte NoGrid field Byte NoLegend field Byte Smooth @@ -2702,16 +2903,21 @@ struct CuiSharp.Interop.NativeCompareOpts field Single Height struct CuiSharp.Interop.NativeComposerOpts field Byte Busy + field Byte Mic + field Byte Recording field Int32 AttachmentCount + field Int32 LevelCount field Int32 MaxLines field Int32 ModelCount field Int32 Sentinel field IntPtr Attachments + field IntPtr Levels field IntPtr Model field IntPtr Models field IntPtr Placeholder field IntPtr Removed field NativeSize Width + field Single RecordSeconds struct CuiSharp.Interop.NativeConfirmOpts field ButtonVariant Variant field ControlSize Size @@ -2838,8 +3044,10 @@ struct CuiSharp.Interop.NativeDiagnostic field IntPtr Source field Severity Severity struct CuiSharp.Interop.NativeDialogOpts + field Byte Draggable field Byte NoCloseButton field Byte Persistent + field Byte Resizable field Int32 Sentinel field IntPtr Description field Single Width @@ -3133,6 +3341,17 @@ struct CuiSharp.Interop.NativeFlameView field Double End field Double Start field Single Scroll +struct CuiSharp.Interop.NativeFormatBarOpts + field Byte NoDelete + field Byte NoMore + field Int32 ColorCount + field Int32 Sentinel + field Int32 StyleCount + field IntPtr Colors + field IntPtr DeleteQuestion + field IntPtr Footer + field IntPtr FooterKeys + field IntPtr Styles struct CuiSharp.Interop.NativeFunnelOpts field Int32 Sentinel field IntPtr Format @@ -3148,6 +3367,7 @@ struct CuiSharp.Interop.NativeGanttOpts field Single RowHeight struct CuiSharp.Interop.NativeGanttTask field Byte Milestone + field GanttState State field Int32 DependsOn field Int32 End field Int32 Start @@ -3156,6 +3376,7 @@ struct CuiSharp.Interop.NativeGanttTask field Single Progress field Tone Tone struct CuiSharp.Interop.NativeGaugeBand + field IntPtr Name field Single To field Tone Tone struct CuiSharp.Interop.NativeGradientOpts @@ -3168,6 +3389,22 @@ struct CuiSharp.Interop.NativeGradientResult field Int32 Added field Int32 Removed field Int32 Selected +struct CuiSharp.Interop.NativeGradientSliderOpts + field Byte Disabled + field Byte Plain + field Byte Swatch + field Byte ToolOn + field GradientTrack Track + field Int32 Sentinel + field Int32 StopCount + field IntPtr ColorOut + field IntPtr Format + field IntPtr Stops + field IntPtr Tool + field IntPtr ToolTooltip + field IntPtr Value + field NativeColor Color + field Single Step struct CuiSharp.Interop.NativeGradientStop field NativeColor Color field Single Pos @@ -3394,6 +3631,20 @@ struct CuiSharp.Interop.NativeListItemOpts field IntPtr Icon field IntPtr Subtitle field IntPtr Trailing +struct CuiSharp.Interop.NativeLiveCursorsOpts + field Byte NoGlide + field Int32 Sentinel + field IntPtr View +struct CuiSharp.Interop.NativeLiveUser + field Byte Away + field Byte Speaking + field IntPtr Name + field IntPtr Says + field NativeColor Color + field Single X + field Single Y + field Tone Tone + field UIntPtr Avatar struct CuiSharp.Interop.NativeLoaderOpts field Int32 Sentinel field LoaderStyle Style @@ -3452,9 +3703,11 @@ struct CuiSharp.Interop.NativeMenuItemOpts field Byte Checked field Byte Danger field Byte Disabled + field Font Font field Int32 Sentinel field IntPtr Icon field IntPtr Shortcut + field Single TextSize struct CuiSharp.Interop.NativeMenuOpts field ButtonVariant Variant field Byte IconOnly @@ -3462,6 +3715,11 @@ struct CuiSharp.Interop.NativeMenuOpts field IntPtr Icon field Placement Placement field Single Width +struct CuiSharp.Interop.NativeMeterPart + field IntPtr Name + field NativeColor Color + field Single Density + field Single Value struct CuiSharp.Interop.NativeMetricOpts field Byte LowerIsBetter field Int32 Sentinel @@ -3569,6 +3827,20 @@ struct CuiSharp.Interop.NativeNumberOpts field IntPtr Label field IntPtr Suffix field NativeSize Width +struct CuiSharp.Interop.NativeOptionActionOpts + field Byte ActionDisabled + field Byte ActionOn + field Byte Plain + field Int32 Sentinel + field IntPtr Tooltip + field IntPtr Value +struct CuiSharp.Interop.NativePaletteStripOpts + field Byte NoShuffle + field Byte Plain + field Int32 Sentinel + field IntPtr Seed + field IntPtr Value + field Single Height struct CuiSharp.Interop.NativePathBarOpts field Byte Menus field Byte NoEdit @@ -3582,6 +3854,17 @@ struct CuiSharp.Interop.NativePathBarResult field Byte Editing field Int32 Clicked field IntPtr Submitted +struct CuiSharp.Interop.NativePatternMeterOpts + field Byte Grayscale + field Byte NoLegend + field Int32 Sentinel + field IntPtr Format + field IntPtr FreeLabel + field IntPtr Label + field IntPtr Unit + field NativeSize Width + field Single Height + field Single Total struct CuiSharp.Interop.NativePinOpts field Int32 Sentinel field Int32 Type @@ -3615,6 +3898,10 @@ struct CuiSharp.Interop.NativePopoverOpts field Single Gap field Single Pad field Single Width +struct CuiSharp.Interop.NativePresencePillOpts + field Int32 MaxVisible + field Int32 Sentinel + field Single Size struct CuiSharp.Interop.NativePresenceUser field Byte Idle field IntPtr Name @@ -3630,6 +3917,7 @@ struct CuiSharp.Interop.NativeProblemsResult field Int32 Selected field Int32 Shown struct CuiSharp.Interop.NativeProgressOpts + field Byte Dither field Byte Indeterminate field Byte ShowValue field Int32 Sentinel @@ -3683,19 +3971,29 @@ struct CuiSharp.Interop.NativeRadarOpts struct CuiSharp.Interop.NativeRadialGaugeOpts field Byte NoNeedle field Byte ShowTarget + field GaugeStyle Style field Int32 BandCount field Int32 Sentinel field Int32 Ticks field IntPtr Bands + field IntPtr Detail field IntPtr Format field IntPtr Label field IntPtr Unit + field NativeColor Color field Single Size field Single Sweep field Single Target struct CuiSharp.Interop.NativeRadioCardsOpts field Int32 Columns field Int32 Sentinel +struct CuiSharp.Interop.NativeRatioSliderOpts + field Byte Disabled + field Int32 Sentinel + field NativeSize Width + field Single Height + field Single Step + field Tone Tone struct CuiSharp.Interop.NativeReaction field Byte Active field Int32 Count @@ -3761,6 +4059,15 @@ struct CuiSharp.Interop.NativeResponseActionsOpts field Int32 Sentinel field IntPtr CopyText field IntPtr Vote +struct CuiSharp.Interop.NativeResultCardOpts + field Int32 ImageH + field Int32 ImageW + field Int32 Sentinel + field IntPtr Badge + field IntPtr Caption + field NativeSize Width + field Single Aspect + field Tone BadgeTone struct CuiSharp.Interop.NativeRingsOpts field Byte Legend field Int32 Sentinel @@ -3783,6 +4090,7 @@ struct CuiSharp.Interop.NativeSankeyLink struct CuiSharp.Interop.NativeSankeyOpts field Int32 Sentinel field IntPtr Format + field IntPtr NodeColors field NativeSize Width field Single Height field Single NodeWidth @@ -3828,6 +4136,12 @@ struct CuiSharp.Interop.NativeScrubOpts field IntPtr Suffix field NativeSize Width field Single Step +struct CuiSharp.Interop.NativeSeedFieldOpts + field Byte Plain + field Int32 Sentinel + field IntPtr FixedText + field IntPtr RandomText + field IntPtr Value struct CuiSharp.Interop.NativeSegmentedOpts field Byte FullWidth field ControlSize Size @@ -3841,6 +4155,21 @@ struct CuiSharp.Interop.NativeSelectOpts field IntPtr Label field IntPtr Placeholder field NativeSize Width +struct CuiSharp.Interop.NativeSelectionAction + field IntPtr Icon + field IntPtr Label + field Tone Tone +struct CuiSharp.Interop.NativeSelectionBarOpts + field Byte NoEscape + field Int32 ItemCount + field Int32 Sentinel + field IntPtr CountFormat + field IntPtr Selected + field UInt32 Anchor +struct CuiSharp.Interop.NativeSelectionRingOpts + field Int32 Sentinel + field IntPtr Name + field Single Radius struct CuiSharp.Interop.NativeSeries field Int32 Count field IntPtr Name @@ -3869,6 +4198,11 @@ struct CuiSharp.Interop.NativeSignatureOpts struct CuiSharp.Interop.NativeSize field Single Value field SizeKind Kind +struct CuiSharp.Interop.NativeSkeletonGroupOpts + field Byte Dither + field Int32 Sentinel + field NativeSize Width + field Single Gap struct CuiSharp.Interop.NativeSliderOpts field Byte Disabled field Byte ShowValue @@ -3888,6 +4222,11 @@ struct CuiSharp.Interop.NativeSpeedDialOpts field IntPtr Icon field IntPtr Tooltip field Placement Placement +struct CuiSharp.Interop.NativeSpinnerOpts + field Int32 Sentinel + field NativeColor Color + field NativeColor Track + field SpinnerStyle Style struct CuiSharp.Interop.NativeSplitBarOpts field Byte NoLegend field Int32 Sentinel @@ -3955,6 +4294,28 @@ struct CuiSharp.Interop.NativeStatusProgressOpts field Int32 Sentinel field IntPtr Label field Single Width +struct CuiSharp.Interop.NativeStatusSpinnerOpts + field Byte Keep + field Int32 Sentinel + field NativeColor Color + field Single Size +struct CuiSharp.Interop.NativeStatusTagOpts + field Byte Removable + field ControlSize Size + field Int32 Sentinel + field IntPtr Icon + field IntPtr Id + field Tone Tone +struct CuiSharp.Interop.NativeStepSliderOpts + field Byte Disabled + field Byte Plain + field Byte ToolOn + field Int32 Sentinel + field IntPtr Format + field IntPtr Labels + field IntPtr Tool + field IntPtr ToolTooltip + field IntPtr Value struct CuiSharp.Interop.NativeStrings field IntPtr Today field NativeStringsMonthArray Month @@ -4053,6 +4414,15 @@ struct CuiSharp.Interop.NativeTestItem field IntPtr Name field JobStatus Status field Single Duration +struct CuiSharp.Interop.NativeTextFormat + field Byte Bold + field Byte Link + field Byte Underline + field FormatAlign Align + field FormatList List + field Int32 Style + field Single Size + field Tone Color struct CuiSharp.Interop.NativeTextFxOpts field Byte Caret field Byte Nowrap @@ -4085,6 +4455,11 @@ struct CuiSharp.Interop.NativeTextOpts field Single LineHeight field Single Size field TextAlign Align +struct CuiSharp.Interop.NativeTextStyle + field Font Font + field IntPtr Name + field Single PreviewSize + field Single Size struct CuiSharp.Interop.NativeTheme field e__FixedBuffer Heading field NativeColor ToneAmber @@ -4240,14 +4615,20 @@ struct CuiSharp.Interop.NativeToolCallOpts field Single Seconds struct CuiSharp.Interop.NativeToolOpts field Byte Disabled + field Byte Flyout field Int32 Sentinel field IntPtr Label field IntPtr Shortcut field IntPtr Toggle field IntPtr Tooltip + field Tone Tone struct CuiSharp.Interop.NativeToolbarOpts field Byte NoBorder field Int32 Sentinel + field ToolbarStyle Style +struct CuiSharp.Interop.NativeToolbarRadioOpts + field Int32 Sentinel + field IntPtr Labels struct CuiSharp.Interop.NativeTourOpts field Byte BlockTarget field Int32 Sentinel @@ -4325,6 +4706,7 @@ struct CuiSharp.Interop.NativeTreeTableOpts struct CuiSharp.Interop.NativeTreemapOpts field Int32 Sentinel field IntPtr Format + field IntPtr Selected field NativeSize Width field Single Height struct CuiSharp.Interop.NativeUptimeOpts @@ -4349,6 +4731,14 @@ struct CuiSharp.Interop.NativeUserMenuOpts struct CuiSharp.Interop.NativeVec2 field Single X field Single Y +struct CuiSharp.Interop.NativeVeilOpts + field Byte Toggle + field Int32 Sentinel + field IntPtr Hint + field IntPtr Label + field NativeColor Color + field NativeSize Width + field Single Radius struct CuiSharp.Interop.NativeVertex field NativeColor BorderColor field NativeColor Color @@ -4370,10 +4760,43 @@ struct CuiSharp.Interop.NativeVizItem field IntPtr Label field NativeColor Color field Single Value +struct CuiSharp.Interop.NativeVoiceNote + field Byte Playing + field Int32 Count + field IntPtr Levels + field Single Duration + field Single Position + field Single Speed +struct CuiSharp.Interop.NativeVoiceNoteOpts + field Byte Mine + field Int32 Sentinel + field NativeSize Width struct CuiSharp.Interop.NativeVoiceOrbOpts field Int32 Sentinel field NativeColor Color field Single Size +struct CuiSharp.Interop.NativeVoiceSessionOpts + field Byte NoEnd + field Int32 Sentinel + field IntPtr Assistant + field IntPtr Label + field IntPtr Muted + field IntPtr Owners + field IntPtr Transcript + field IntPtr Upcoming + field IntPtr You + field NativeSize Width + field VoiceOwner Speaker +struct CuiSharp.Interop.NativeVoiceWaveOpts + field Byte Clip + field Int32 Sentinel + field IntPtr Owners + field IntPtr Progress + field NativeColor Color + field NativeSize Width + field Single Pitch + field Single Step + field VoiceOwner Owner struct CuiSharp.Interop.NativeWaffleOpts field Int32 Columns field Int32 Rows @@ -4618,6 +5041,19 @@ struct CuiSharp.ListItemOpts field String Icon field String Subtitle field String Trailing +struct CuiSharp.LiveCursorsOpts + field Boolean NoGlide +struct CuiSharp.LiveUser + ctor(String, Color, Tone, Single, Single, String, Boolean, Boolean, UInt64) + field Boolean Away + field Boolean Speaking + field Color Color + field Single X + field Single Y + field String Name + field String Says + field Tone Tone + field UInt64 Avatar struct CuiSharp.LoaderOpts field Color Color field LoaderStyle Style @@ -4723,6 +5159,8 @@ struct CuiSharp.MenuItemOpts field Boolean Checked field Boolean Danger field Boolean Disabled + field Font Font + field Single TextSize field String Icon field String Shortcut struct CuiSharp.MenuOpts @@ -4764,6 +5202,12 @@ class CuiSharp.MenusAndPopoversUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4 Void PopoverToggle(UiText) Void Tooltip(UiText) class CuiSharp.MenusAndPopoversUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4+$D152016828D0F2CB0A8B78500F4F70D3 +struct CuiSharp.MeterPart + ctor(String, Single, Color, Single) + field Color Color + field Single Density + field Single Value + field String Name struct CuiSharp.MetricOpts field Boolean LowerIsBetter field Single Delta @@ -4817,6 +5261,7 @@ struct CuiSharp.MonthResult class CuiSharp.MoreActionsUiExtensions static Boolean ConfirmButton(Ui, UiText, ConfirmOpts) static Boolean StatusButton(Ui, UiText, Status, StatusButtonOpts) + static Boolean StatusSpinner(Ui, UiText, Status, StatusSpinnerOpts) static Boolean ThemeSwitcher(Ui, ref Int32, Boolean) static Boolean ThemeToggle(Ui) static Int32 Reactions(Ui, UiText, Span) @@ -4828,6 +5273,7 @@ class CuiSharp.MoreActionsUiExtensions class CuiSharp.MoreActionsUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4 Boolean ConfirmButton(UiText, ConfirmOpts) Boolean StatusButton(UiText, Status, StatusButtonOpts) + Boolean StatusSpinner(UiText, Status, StatusSpinnerOpts) Boolean ThemeSwitcher(ref Int32, Boolean) Boolean ThemeToggle() Int32 Reactions(UiText, Span) @@ -4849,6 +5295,7 @@ class CuiSharp.MoreChartsUiExtensions static Int32 ScatterChart(Ui, UiText, ReadOnlySpan, ScatterOpts) static Int32 SplitBar(Ui, UiText, ReadOnlySpan, SplitBarOpts) static Int32 Treemap(Ui, UiText, ReadOnlySpan, TreemapOpts) + static Int32 Treemap(Ui, UiText, ReadOnlySpan, ref Int32, TreemapOpts) static Int32 Waffle(Ui, UiText, ReadOnlySpan, WaffleOpts) static Void RadialGauge(Ui, UiText, Single, Single, Single, RadialGaugeOpts) class CuiSharp.MoreChartsUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4 @@ -4863,6 +5310,7 @@ class CuiSharp.MoreChartsUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4 Int32 ScatterChart(UiText, ReadOnlySpan, ScatterOpts) Int32 SplitBar(UiText, ReadOnlySpan, SplitBarOpts) Int32 Treemap(UiText, ReadOnlySpan, TreemapOpts) + Int32 Treemap(UiText, ReadOnlySpan, ref Int32, TreemapOpts) Int32 Waffle(UiText, ReadOnlySpan, WaffleOpts) Void RadialGauge(UiText, Single, Single, Single, RadialGaugeOpts) class CuiSharp.MoreChartsUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4+$D152016828D0F2CB0A8B78500F4F70D3 @@ -4886,11 +5334,15 @@ class CuiSharp.MoreComponentsUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4+< class CuiSharp.MoreFeedbackUiExtensions static Boolean Banner(Ui, UiText, ref Boolean, BannerOpts) static Int32 Checklist(Ui, UiText, ReadOnlySpan, ChecklistOpts) + static OpenScope Veil(Ui, UiText, ref Boolean, VeilOpts) static Void Countdown(Ui, UiText, Double, CountdownOpts) + static Void Veil(Ui, UiText, ref Boolean, DrawFn, VeilOpts) class CuiSharp.MoreFeedbackUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4 Boolean Banner(UiText, ref Boolean, BannerOpts) Int32 Checklist(UiText, ReadOnlySpan, ChecklistOpts) + OpenScope Veil(UiText, ref Boolean, VeilOpts) Void Countdown(UiText, Double, CountdownOpts) + Void Veil(UiText, ref Boolean, DrawFn, VeilOpts) class CuiSharp.MoreFeedbackUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4+$D152016828D0F2CB0A8B78500F4F70D3 class CuiSharp.MoreInputsUiExtensions static Boolean MoneyInput(Ui, UiText, ref Double, MoneyOpts) @@ -5053,11 +5505,22 @@ struct CuiSharp.NumberOpts struct CuiSharp.OpenScope Void Dispose() property Boolean Open { get; } +struct CuiSharp.OptionActionOpts + field Boolean ActionDisabled + field Boolean ActionOn + field Boolean Plain + field String Tooltip + field String Value class CuiSharp.PaintFn : MulticastDelegate IAsyncResult BeginInvoke(Ui, RectF, AsyncCallback, Object) Void EndInvoke(IAsyncResult) Void Invoke(Ui, RectF) ctor(Object, IntPtr) +struct CuiSharp.PaletteStripOpts + field Boolean NoShuffle + field Boolean Plain + field Single Height + field String Value struct CuiSharp.PathBarOpts field Boolean Menus field Boolean NoEdit @@ -5071,6 +5534,16 @@ struct CuiSharp.PathBarResult field Boolean Editing field Int32 Clicked field String Submitted +struct CuiSharp.PatternMeterOpts + field Boolean Grayscale + field Boolean NoLegend + field Single Height + field Single Total + field Size Width + field String Format + field String FreeLabel + field String Label + field String Unit class CuiSharp.PickersUiExtensions static Boolean DateRangePicker(Ui, UiText, ref DateRange, DateRangeOpts) static Boolean Fader(Ui, UiText, ref Single, Single, Single, FaderOpts) @@ -5157,12 +5630,16 @@ enum CuiSharp.PlayerEvents None Prev Seek + Speed Toggle struct CuiSharp.PopoverOpts field Placement Placement field Single Gap field Single Pad field Single Width +struct CuiSharp.PresencePillOpts + field Int32 MaxVisible + field Single Size struct CuiSharp.PresenceUser ctor(String, Color, UInt64, Boolean) field Boolean Idle @@ -5193,6 +5670,7 @@ struct CuiSharp.ProblemsResult field Int32 Selected field Int32 Shown struct CuiSharp.ProgressOpts + field Boolean Dither field Boolean Indeterminate field Boolean ShowValue field Single Height @@ -5251,16 +5729,25 @@ struct CuiSharp.RadarOpts struct CuiSharp.RadialGaugeOpts field Boolean NoNeedle field Boolean ShowTarget + field Color Color field GaugeBand[] Bands + field GaugeStyle Style field Int32 Ticks field Single Size field Single Sweep field Single Target + field String Detail field String Format field String Label field String Unit struct CuiSharp.RadioCardsOpts field Int32 Columns +struct CuiSharp.RatioSliderOpts + field Boolean Disabled + field Single Height + field Single Step + field Size Width + field Tone Tone struct CuiSharp.Reaction ctor(String, Int32, Boolean) field Boolean Active @@ -5350,6 +5837,14 @@ enum CuiSharp.ResponseEvents Regenerate Share Up +struct CuiSharp.ResultCardOpts + field Int32 ImageH + field Int32 ImageW + field Single Aspect + field Size Width + field String Badge + field String Caption + field Tone BadgeTone struct CuiSharp.RingsOpts field Boolean Legend field Single Size @@ -5369,6 +5864,7 @@ struct CuiSharp.SankeyLink field Int32 To field Single Value struct CuiSharp.SankeyOpts + field Color[] NodeColors field Single Height field Single NodeWidth field Size Width @@ -5420,6 +5916,11 @@ struct CuiSharp.ScrubOpts field String Format field String Icon field String Suffix +struct CuiSharp.SeedFieldOpts + field Boolean Plain + field String FixedText + field String RandomText + field String Value struct CuiSharp.SegmentedOpts field Boolean FullWidth field ControlSize Size @@ -5447,6 +5948,15 @@ struct CuiSharp.SelectOpts field String Label field String Placeholder field String[] Icons +struct CuiSharp.SelectionAction + ctor(String, String, Tone) + field String Icon + field String Label + field Tone Tone +struct CuiSharp.SelectionBarOpts + field Boolean NoEscape + field String CountFormat + field UInt32 Anchor class CuiSharp.SelectionControlsUiExtensions static Boolean Checkbox(Ui, UiText, ref Boolean, CheckOpts) static Boolean Chip(Ui, UiText, ref Boolean, ChipOpts) @@ -5466,6 +5976,9 @@ class CuiSharp.SelectionControlsUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B Boolean Slider(UiText, ref Single, Single, Single, SliderOpts) Boolean Switch(UiText, ref Boolean, CheckOpts) class CuiSharp.SelectionControlsUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4+$D152016828D0F2CB0A8B78500F4F70D3 +struct CuiSharp.SelectionRingOpts + field Single Radius + field String Name class CuiSharp.SemanticAccessibilityNode Boolean Equals(Object) Boolean Equals(SemanticAccessibilityNode) @@ -5625,6 +6138,10 @@ enum CuiSharp.SizeKind Fixed Grow Percent +struct CuiSharp.SkeletonGroupOpts + field Boolean Dither + field Single Gap + field Size Width struct CuiSharp.SliderOpts field Boolean Disabled field Boolean ShowValue @@ -5644,6 +6161,26 @@ struct CuiSharp.SpeedDialOpts field Placement Placement field String Icon field String Tooltip +struct CuiSharp.SpinnerOpts + field Color Color + field Color Track + field SpinnerStyle Style +enum CuiSharp.SpinnerStyle + Arc + Bounce + Comet + DotMatrix + Download + FillDrain + Orbit + Plasma + Pulse + Radar + Ripple + Scan + Spiral + Transfer + Upload struct CuiSharp.SplitBarOpts field Boolean NoLegend field Single Height @@ -5720,6 +6257,25 @@ struct CuiSharp.StatusProgressOpts field Boolean Indeterminate field Single Width field String Label +struct CuiSharp.StatusSpinnerOpts + field Boolean Keep + field Color Color + field Single Size +struct CuiSharp.StatusTagOpts + field Boolean Removable + field ControlSize Size + field String Icon + field String Id + field Tone Tone +struct CuiSharp.StepSliderOpts + field Boolean Disabled + field Boolean Plain + field Boolean ToolOn + field String Format + field String Tool + field String ToolTooltip + field String Value + field String[] Labels enum CuiSharp.SwFormat Bgra Rgba @@ -5763,6 +6319,15 @@ struct CuiSharp.TagOpts field Size Width field String Label field String Placeholder +enum CuiSharp.TagStatus + Custom + Expired + Failed + InProgress + InReview + Pending + Submitted + Success class CuiSharp.Terminal Void Clear() Void Dispose() @@ -5829,6 +6394,16 @@ class CuiSharp.TextBuffer property Int32 ByteLength { get; } property ReadOnlySpan Utf8 { get; } property String Value { get; } +struct CuiSharp.TextFormat + ctor(Tone, Boolean, Boolean, Boolean, Int32, Single, FormatAlign, FormatList) + field Boolean Bold + field Boolean Link + field Boolean Underline + field FormatAlign Align + field FormatList List + field Int32 Style + field Single Size + field Tone Color struct CuiSharp.TextFxOpts field Boolean Caret field Boolean Nowrap @@ -5862,6 +6437,12 @@ struct CuiSharp.TextOpts field Single Size field Size Width field TextAlign Align +struct CuiSharp.TextStyle + ctor(String, Single, Single, Font) + field Font Font + field Single PreviewSize + field Single Size + field String Name class CuiSharp.TextUiExtensions static Boolean Link(Ui, UiText) static Void Code(Ui, UiText) @@ -6060,11 +6641,20 @@ struct CuiSharp.ToolCallOpts field String Output struct CuiSharp.ToolOpts field Boolean Disabled + field Boolean Flyout field String Label field String Shortcut field String Tooltip + field Tone Tone struct CuiSharp.ToolbarOpts field Boolean NoBorder + field ToolbarStyle Style +struct CuiSharp.ToolbarRadioOpts + field String[] Labels +enum CuiSharp.ToolbarStyle + Floating + Grouped + Plain enum CuiSharp.TourAction Back Done @@ -6207,6 +6797,7 @@ struct CuiSharp.Ui Boolean Shortcut(Mods, Key) Boolean TagInput(UiText, ref String, TagOpts) Boolean ToggleGroup(UiText, ReadOnlySpan, Span, ToggleGroupOpts) + CanvasEvents CanvasControls(UiText, ref NodeView, Span, CanvasControlsOpts) CanvasResult Canvas(UiText, Size, Size, PaintFn) ClipScope Clip(RectF) Color ColorOf(Color) @@ -6219,6 +6810,7 @@ struct CuiSharp.Ui InputResult Input(UiText, ref String, InputOpts) InputResult Search(UiText, ref String, InputOpts) InputResult TextArea(UiText, ref String, InputOpts) + Int32 SelectionBar(UiText, Span, ReadOnlySpan, SelectionBarOpts) KeyedScope Keyed(T[], KeyFn) LayoutScope ReorderItem(Int32) RectF RectOf(UInt32) @@ -6228,6 +6820,7 @@ struct CuiSharp.Ui Span State(UiText) Span State(UiText, Action) String DroppedFile(Int32) + String GetClipboard() TextMetrics MeasureText(UiText, Single, Font) UInt32 MakeId(UiText) UInt64 CreateImage(Int32, Int32, ReadOnlySpan) @@ -6257,9 +6850,12 @@ struct CuiSharp.Ui Void PushClip(RectF) Void ReorderBegin(UiText, Int32[]) Void RequestRedraw() + Void SetClipboard(UiText) Void SetLocalization(Localization) Void SetReducedMotion(Boolean) Void ToggleTheme() + WellEvents PaletteStrip(UiText, Span, Span, PaletteStripOpts) + WellEvents PaletteStrip(UiText, ref UInt32, Span, Span, PaletteStripOpts) property Accent Accent { get; set; } property Boolean FileDragActive { get; } property Boolean IsDisabled { get; } @@ -6326,19 +6922,75 @@ struct CuiSharp.Vec2 ctor(Single, Single) field Single X field Single Y +struct CuiSharp.VeilOpts + field Boolean Toggle + field Color Color + field Single Radius + field Size Width + field String Hint + field String Label struct CuiSharp.VizItem ctor(String, Single, Color) field Color Color field Single Value field String Label +struct CuiSharp.VoiceNoteOpts + field Boolean Mine + field Size Width +struct CuiSharp.VoiceNoteState + ctor(Single[], Single, Single, Single, Boolean) + field Boolean Playing + field Single Duration + field Single Position + field Single Speed + field Single[] Levels struct CuiSharp.VoiceOrbOpts field Color Color field Single Size +enum CuiSharp.VoiceOwner + Reply + You +enum CuiSharp.VoiceSessionEvents + End + Mute + None +struct CuiSharp.VoiceSessionOpts + field Boolean NoEnd + field Byte[] Owners + field Size Width + field String Assistant + field String Label + field String Transcript + field String Upcoming + field String You + field VoiceOwner Speaker enum CuiSharp.VoiceState Idle Listening + Muted Speaking Thinking +class CuiSharp.VoiceUiExtensions + static Boolean VoiceWave(Ui, UiText, ReadOnlySpan, VoiceWaveOpts) + static Boolean VoiceWave(Ui, UiText, ReadOnlySpan, ref Single, VoiceWaveOpts) + static PlayerEvents VoiceNote(Ui, UiText, ref VoiceNoteState, VoiceNoteOpts) + static VoiceSessionEvents VoiceSession(Ui, UiText, VoiceState, ReadOnlySpan, VoiceSessionOpts) + static VoiceSessionEvents VoiceSession(Ui, UiText, VoiceState, ReadOnlySpan, ref Boolean, VoiceSessionOpts) +class CuiSharp.VoiceUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4 + Boolean VoiceWave(UiText, ReadOnlySpan, VoiceWaveOpts) + Boolean VoiceWave(UiText, ReadOnlySpan, ref Single, VoiceWaveOpts) + PlayerEvents VoiceNote(UiText, ref VoiceNoteState, VoiceNoteOpts) + VoiceSessionEvents VoiceSession(UiText, VoiceState, ReadOnlySpan, VoiceSessionOpts) + VoiceSessionEvents VoiceSession(UiText, VoiceState, ReadOnlySpan, ref Boolean, VoiceSessionOpts) +class CuiSharp.VoiceUiExtensions+$2E78AC6C4589E2D26F56ACB2C0F932B4+$D152016828D0F2CB0A8B78500F4F70D3 +struct CuiSharp.VoiceWaveOpts + field Boolean Clip + field Byte[] Owners + field Color Color + field Single Pitch + field Single Step + field Size Width + field VoiceOwner Owner struct CuiSharp.WaffleOpts field Int32 Columns field Int32 Rows @@ -6366,6 +7018,10 @@ struct CuiSharp.WeekOpts field Single HourHeight field Single StartHour field Size Height +enum CuiSharp.WellEvents + Action + Changed + None struct CuiSharp.WheelOpts field Boolean JoinLeft field Boolean JoinRight diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index cb11d49..b7e9864 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -43,7 +43,7 @@ src/CuiSharp.Tools/ dotnet cui: the docs and API offline, then build, src/CuiSharp.Templates/ dotnet new cui-app / cui-mini src/CuiSharp.Tests/ ABI, enums, marshalling, frame behaviour, hosting, tools, docs drift src/CuiSharp.Benchmarks/ BenchmarkDotNet suites + --fps and --scale harnesses -samples/CuiSharp.Gallery/ twenty-nine pages of every component, one file per page +samples/CuiSharp.Gallery/ thirty-two pages of every component, one file per page native/ submodule + the two build scripts tools/ bindgen.cs, regen.ps1, verify-template.ps1, api-surface.ps1, snapshots.ps1 bindings/ api.json (generated IR), overrides.json (inputs), coverage.txt (report) @@ -125,6 +125,11 @@ the declaration beneath it, and a note written to CUI's next reader (`left to ri interface: see cui__keep_ltr`), which would otherwise stand in for the description the header has. What stays uncommented is counted in `docs/PLAN.md` rather than filled in by hand. +A `parameterStorage: value` record can mix output scalars with caller-owned const arrays, as +`VoiceNoteState` does. Write-back preserves those managed array references while copying the scalar +state; an arena pointer cannot recover the caller's array identity, and rebuilding the record with +null arrays would erase the next frame's input. + Record array counts derive only through explicit `recordFieldCounts` overrides identifying input-only metadata (`QueryField.Choices`, `ApiEndpoint.Params`, `UptimeService.Days`, `StackFrame.Source`, `FilterField.Options`). An output count is information, so declaration shape diff --git a/docs/PERFORMANCE.md b/docs/PERFORMANCE.md index 7bab3a4..8d5f615 100644 --- a/docs/PERFORMANCE.md +++ b/docs/PERFORMANCE.md @@ -35,21 +35,32 @@ on every pull request, every shape in the on-demand job. | | Value | Where it is enforced | |---|---|---| -| Gallery frame, 1240x820, software raster | **0.83 ms** mean (p50 0.69, p95 1.16, p99 1.39) | budget 0.90 ms, `--fps 900` | -| Build only (a GPU would rasterize) | 0.02 ms | same run | +| Gallery frame, real-time chart harness, 1280x720, software raster | **0.94 ms** mean (p50 0.78, p95 1.30, p99 1.88) | budget 1.00 ms, `--fps 900` | +| Build only (a GPU would rasterize) | 0.07 ms | same run | | Managed allocation per frame | **0 B** | `FrameLifecycleTests`, `NewComponentTests` | -| Gallery AOT executable, win-x64 | **2 954 752 B** | budget 2.95 MB | +| Gallery AOT executable, win-x64 | **3 177 984 B** | budget 3.20 MB | | A million virtual list rows | ~12 µs | `--scale` | | A million chart points, undecimated | 45.9 ms | why decimation exists | | A million chart points, decimated to 800 | 0.018 ms | same | | Idle window CPU | 0 % | by construction: CUI sleeps between frames | -The executable grew again with CUI 1.4, from 2 878 976 B to 2 918 400 B: the five instrument -components, and the header comments CUI 1.4 wrote for every field of every options struct, which -reach the gallery as generated documentation. It is 2 954 752 B now: the gallery carries its own -`.ico` from 0.4.1, and the 34 494 B icon is most of the difference. That leaves 4.5 % under -the budget, so the next component sync has to buy its bytes. Frame time is unchanged (p50 0.68, p95 1.10, p99 -1.33 ms) and a frame still allocates nothing. +0.4.3 takes the executable to 3 177 984 B, 223 232 B more than 0.4.2, and the budget with it: the +148 commits of CUI added thirty-six functions and thirty-two structs, including the voice and +creative controls drawn by three new gallery pages. XML summaries are not linked code; they do not +explain executable growth. + +The frame ceiling deliberately moves from 0.90 to 1.00 ms for this sync. An isolated worktree of +`main` (5fbab51, CUI 1.4.0), with its own freshly built native library, measured 0.82, 0.84 and +0.82 ms. Alternating three runs of the new pin on the same machine measured 0.94, 0.94 and 0.94 ms; +every run allocated 0 B. This is a repeatable roughly 14% regression across the sync, not a claim +of run-to-run noise. The cause within the upstream/rendering changes has not been profiled, and +binary size alone does not establish it. The row records the last new-pin run. + +Earlier, CUI 1.4 and its five instruments took the executable from 2 878 976 B to 2 918 400 B. +At 0.4.2 it measured 2 954 752 B: the gallery carries its own `.ico` from 0.4.1, and the +34 494 B icon explains most of that later difference. That measurement left 4.5% below the +then-current size ceiling. The earlier frame run measured p50 0.68, p95 1.10, p99 1.33 ms, +with 0 B/frame. The executable grew from 2 141 184 B to 2 579 456 B with CUI 1.3, and the growth is upstream's: the twenty components it added are about 5 000 lines of new C (`cui_devtools.c`, `cui_devpanels.c`, @@ -68,11 +79,13 @@ What is inside the executable, and what each widget family costs: [SIZE.md](SIZE ## Gallery, page by page -`tools/page-costs.ps1` walks all twenty-nine pages in one headless process: it clicks each page, +`tools/page-costs.ps1` walks every page in one headless process: it clicks each page, proves the heading says the page opened, parks the pointer, and then *dwells* — holding the page for three seconds while it really draws, through the silent `pulse` command, so the measurement never pays for serialising the tree it is measuring — while `dotnet cui` samples the app's -process. The run below is the reference machine, light theme, `-Each 3`. +process. The run below is the historical 29-page gallery on the reference machine, light theme, +`-Each 3`; it has not been repeated for the three new pages. Their steady-state managed allocation +is tested separately by `GalleryPageTests`. `ms/frame` is wall time over frames completed in the dwell: it includes the protocol round trips around the drawing, so it is an upper bound of what the page's own frame costs. diff --git a/docs/PLAN.md b/docs/PLAN.md index 1052fba..2e956c5 100644 --- a/docs/PLAN.md +++ b/docs/PLAN.md @@ -12,6 +12,11 @@ in [ARCHITECTURE.md](ARCHITECTURE.md). Every item here passes the same gates as do not depend on Workspaces. Still needed: safe rewrites for the remaining rules and sequential fix-all for overlapping scope bodies. Nested loops and ambiguous row keys remain manual. +- **Profile the real-time chart regression across the latest CUI sync.** Alternating isolated old- + and new-pin builds measured 0.82–0.84 ms versus 0.94 ms at 1280x720, with 0 B/frame throughout. + The frame ceiling moved to 1.00 ms explicitly; identify the cost before claiming a cause or + dismissing it as noise. Native fixes still belong upstream. + ## 2. Where upstream has to move first `native/CUI` is pristine (D2). These are its work, not ours: @@ -20,7 +25,7 @@ in [ARCHITECTURE.md](ARCHITECTURE.md). Every item here passes the same gates as painting a sample and comparing pixels, because a missing glyph still reports a `.notdef` advance. - **A window icon** on all three platforms, and `_NET_WM_ICON` on X11. The handle is now reachable (`CuiWindow.NativeWindow`), so an app can P/Invoke its own on Windows today. -- **Documentation on the declaration.** 94 wrapped functions still say nothing but the C name. +- **Documentation on the declaration.** 91 wrapped functions still say nothing but the C name. Everything CUI writes now reaches the wrapper (above the declaration, beside it, above the definition, the component's paragraph wherever upstream attached it, and every field and constant comment), so what is left is what upstream has not written: `ui.Button`, `ui.Text`, `ui.Card` and diff --git a/docs/RELEASING.md b/docs/RELEASING.md index 0dceef1..1eaac0e 100644 --- a/docs/RELEASING.md +++ b/docs/RELEASING.md @@ -51,7 +51,7 @@ what `release.yml` and `ci.yml` pin; `build-native.sh` fails if the produced `li ## 3. Regenerate the face of the release ```sh -pwsh tools/snapshots.ps1 # light, twenty-nine pages +pwsh tools/snapshots.ps1 # light, thirty-two pages pwsh tools/snapshots.ps1 -Theme dark -Suffix -dark -Pages overview,charts,studio,data ``` diff --git a/docs/SIZE.md b/docs/SIZE.md index f228041..13b5312 100644 --- a/docs/SIZE.md +++ b/docs/SIZE.md @@ -2,8 +2,9 @@ A CuiSharp app publishes as one NativeAOT executable. This page says what is inside it, which lever moves the size, and what the package now does about it. Every number is measured by -`tools/size-report.ps1` on one Windows machine (win-x64, .NET SDK 10.0.14, CUI 1.3.1, stripped); -treat absolute values as indicative and the shape of the differences as the finding. +`tools/size-report.ps1` on one Windows machine (win-x64, stripped). The historical profile study +used CUI 1.3.1; the 0.4.3 snapshot below uses CUI `6e6b353`. Treat absolute values as indicative, +and do not attribute a difference across revisions to a single build switch. ```sh pwsh tools/size-report.ps1 -All # every shape, both widths @@ -12,19 +13,11 @@ pwsh tools/size-report.ps1 -All -Csv .tmp/size.csv ## Where the bytes go -A minimal app — a column, a heading, a button, a line of text — publishes at **1 165 312 B**: +A minimal app — a column, a heading, a button, a line of text — publishes at **1 176 064 B**: -| Part | Bytes | Share of the executable | -|---|---|---| -| CUI native, linked out of `cui.lib` | ~280 000 | 24% | -| CuiSharp's own managed code | ~42 000 | 3.6% | -| .NET runtime and framework | ~845 000 | 72% | - -The last row is the one that decides everything else: a hello world with no CuiSharp reference at -all is **870 912 B**, so the runtime you already pay for is most of a small app and CUI's whole -contribution is about 295 KB on top of it. Half of that is native, half is framework code the -library's shape drags in — the headless channel's IO stack, number and string formatting, enum -reflection. +A hello world with no CuiSharp reference is **870 912 B**, roughly 74% of that size. The +remaining **305 152 B** is the incremental cost of this app over that floor, not a linker-derived +split between native and managed code. The historical native-section study below predates this pin. ## What the package ships @@ -59,6 +52,19 @@ way: | `dotnet new cui-app`, published | — | 2 282 496 | | `dotnet new cui-mini`, published | — | 1 198 080 | +Those are historical profile measurements, not a same-library comparison with 0.4.3. +The current shipped snapshot is: + +| App | 0.4.3, shipped | +|---|---| +| minimal app | 1 176 064 B | +| gallery, 32 pages | 3 177 984 B | +| `dotnet new cui-app`, published | 2 306 048 B | +| `dotnet new cui-mini`, published | 1 201 664 B | + +The gallery adds 223 232 B over 0.4.2 with thirty-six new C functions, thirty-two structs and +three new pages. That cross-revision growth does not measure the size profile's effectiveness. + Nearly all of it is the headless channel: `System.IO`, `Console`, `Encoding` and the reflection over an enum the command lexer reads arrive with it, and a switch only removes them when the trimmer knows the answer at build time. The rest is `StackTraceSupport` and @@ -83,9 +89,9 @@ Difference from the minimal app on the shipped width — the same frame plus one | Added | Cost | |---|---| | a table with eight rows | +7 168 B (0.6%) | -| a line chart, 200 points | +30 720 B (2.6%) | -| an inline edit, a checkbox, a slider | +33 792 B (2.9%) | -| Markdown and a code block | +61 440 B (5.3%) | +| a line chart, 200 points | +56 320 B (4.8%) | +| an inline edit, a checkbox, a slider | +35 840 B (3.0%) | +| Markdown and a code block | +65 024 B (5.5%) | **A feature costs tens of kilobytes, not hundreds.** An app that uses a table and a chart pays about 3% over one that does not, which is why the work in this release was about the floor and not about @@ -93,7 +99,7 @@ widgets. ## And what the native library costs -The archive is 1 372 KB of sections across 58 translation units; the biggest are the embedded font +In the historical CUI 1.3.1 section study, the archive was 1 372 KB across 58 translation units; the biggest are the embedded font blob (94 KB of `.rdata`), then `cui_viz` 83, `cui_pickers` 56, `cui_emoji` 56, `cui_image` 49, `cui_devtools` 49, `cui_flame` 44, `cui_text` 44. diff --git a/docs/images/gallery/30-creative-dark.png b/docs/images/gallery/30-creative-dark.png new file mode 100644 index 0000000..29fc524 Binary files /dev/null and b/docs/images/gallery/30-creative-dark.png differ diff --git a/docs/images/gallery/30-creative.png b/docs/images/gallery/30-creative.png new file mode 100644 index 0000000..c001ec0 Binary files /dev/null and b/docs/images/gallery/30-creative.png differ diff --git a/docs/images/gallery/31-collab-dark.png b/docs/images/gallery/31-collab-dark.png new file mode 100644 index 0000000..4d680ef Binary files /dev/null and b/docs/images/gallery/31-collab-dark.png differ diff --git a/docs/images/gallery/31-collab.png b/docs/images/gallery/31-collab.png new file mode 100644 index 0000000..9f540b5 Binary files /dev/null and b/docs/images/gallery/31-collab.png differ diff --git a/docs/images/gallery/32-voice-dark.png b/docs/images/gallery/32-voice-dark.png new file mode 100644 index 0000000..542fd2c Binary files /dev/null and b/docs/images/gallery/32-voice-dark.png differ diff --git a/docs/images/gallery/32-voice.png b/docs/images/gallery/32-voice.png new file mode 100644 index 0000000..eb7a730 Binary files /dev/null and b/docs/images/gallery/32-voice.png differ diff --git a/native/CUI b/native/CUI index 5a9c12b..6e6b353 160000 --- a/native/CUI +++ b/native/CUI @@ -1 +1 @@ -Subproject commit 5a9c12b433d4501bc2f5632ead3a1cc05e5b1ee5 +Subproject commit 6e6b35326f655405822fcf863fac0d3bb35bb787 diff --git a/samples/CuiSharp.Gallery/CuiSharp.Gallery.csproj b/samples/CuiSharp.Gallery/CuiSharp.Gallery.csproj index 7d0b56c..4841fa1 100644 --- a/samples/CuiSharp.Gallery/CuiSharp.Gallery.csproj +++ b/samples/CuiSharp.Gallery/CuiSharp.Gallery.csproj @@ -19,6 +19,7 @@ + diff --git a/src/CuiSharp.Tests/GalleryPageTests.cs b/src/CuiSharp.Tests/GalleryPageTests.cs new file mode 100644 index 0000000..e58fdfe --- /dev/null +++ b/src/CuiSharp.Tests/GalleryPageTests.cs @@ -0,0 +1,26 @@ +using CuiSharp.Gallery; +using CuiSharp.Testing; + +namespace CuiSharp.Tests; + +public class GalleryPageTests +{ + [Theory] + [InlineData(29, "Creative controls")] + [InlineData(30, "Collaboration")] + [InlineData(31, "Voice")] + public void TheNewGalleryPagesDrawWithoutAllocating(int page, string heading) + { + using var gallery = new GalleryApp { Page = page }; + using var app = TestApp.Start(gallery.Frame, 1240, 820); + Assert.True(app.Find("Heading", heading).Rect.W > 0); + Assert.True(app.PaintedAnything()); + app.Frame(30); + for (int i = 0; i < 10; i++) + { + app.Frame(); + Assert.Equal(0, app.Surface.LastFrame.AllocatedBytes); + } + Assert.Empty(app.Faults); + } +} diff --git a/src/CuiSharp.Tests/OptionMappings.g.cs b/src/CuiSharp.Tests/OptionMappings.g.cs index 5f2ab79..e0ecd60 100644 --- a/src/CuiSharp.Tests/OptionMappings.g.cs +++ b/src/CuiSharp.Tests/OptionMappings.g.cs @@ -601,6 +601,8 @@ public void EveryGeneratedOptionMapsItsFields() Danger = true, Disabled = true, Checked = true, + Font = (Font)1, + TextSize = 2.5f, }; var native = value.ToNative(); Assert.Equal("é", Marshal.PtrToStringUTF8(native.Icon)); @@ -608,6 +610,8 @@ public void EveryGeneratedOptionMapsItsFields() Assert.Equal((byte)1, native.Danger); Assert.Equal((byte)1, native.Disabled); Assert.Equal((byte)1, native.Checked); + Assert.Equal(value.Font, native.Font); + Assert.Equal(value.TextSize, native.TextSize); var zero = default(MenuItemOpts).ToNative(); Assert.Equal((nint)0, zero.Icon); Assert.Equal((nint)0, zero.Shortcut); @@ -624,16 +628,22 @@ public void EveryGeneratedOptionMapsItsFields() Width = 2.5f, NoCloseButton = true, Persistent = true, + Draggable = true, + Resizable = true, }; var native = value.ToNative(); Assert.Equal("é", Marshal.PtrToStringUTF8(native.Description)); Assert.Equal(value.Width, native.Width); Assert.Equal((byte)1, native.NoCloseButton); Assert.Equal((byte)1, native.Persistent); + Assert.Equal((byte)1, native.Draggable); + Assert.Equal((byte)1, native.Resizable); var zero = default(DialogOpts).ToNative(); Assert.Equal((nint)0, zero.Description); Assert.Equal((byte)0, zero.NoCloseButton); Assert.Equal((byte)0, zero.Persistent); + Assert.Equal((byte)0, zero.Draggable); + Assert.Equal((byte)0, zero.Resizable); } // cui_sheet_opts @@ -704,6 +714,7 @@ public void EveryGeneratedOptionMapsItsFields() Label = "é", ShowValue = true, Width = Size.Px(24), + Dither = true, }; var native = value.ToNative(); Assert.Equal((byte)1, native.Indeterminate); @@ -713,10 +724,50 @@ public void EveryGeneratedOptionMapsItsFields() Assert.Equal((byte)1, native.ShowValue); Assert.Equal(SizeKind.Fixed, native.Width.Kind); Assert.Equal(24f, native.Width.Value); + Assert.Equal((byte)1, native.Dither); var zero = default(ProgressOpts).ToNative(); Assert.Equal((byte)0, zero.Indeterminate); Assert.Equal((nint)0, zero.Label); Assert.Equal((byte)0, zero.ShowValue); + Assert.Equal((byte)0, zero.Dither); + } + + // cui_spinner_opts + { + var value = new SpinnerOpts + { + Style = (SpinnerStyle)1, + Color = new Color(12, 34, 56, 78), + Track = new Color(12, 34, 56, 78), + }; + var native = value.ToNative(); + Assert.Equal(value.Style, native.Style); + Assert.Equal((byte)12, native.Color.R); + Assert.Equal((byte)34, native.Color.G); + Assert.Equal((byte)56, native.Color.B); + Assert.Equal((byte)78, native.Color.A); + Assert.Equal((byte)12, native.Track.R); + Assert.Equal((byte)34, native.Track.G); + Assert.Equal((byte)56, native.Track.B); + Assert.Equal((byte)78, native.Track.A); + var zero = default(SpinnerOpts).ToNative(); + } + + // cui_skeleton_group_opts + { + var value = new SkeletonGroupOpts + { + Dither = true, + Width = Size.Px(24), + Gap = 2.5f, + }; + var native = value.ToNative(); + Assert.Equal((byte)1, native.Dither); + Assert.Equal(SizeKind.Fixed, native.Width.Kind); + Assert.Equal(24f, native.Width.Value); + Assert.Equal(value.Gap, native.Gap); + var zero = default(SkeletonGroupOpts).ToNative(); + Assert.Equal((byte)0, zero.Dither); } // cui_badge_opts @@ -885,6 +936,7 @@ public void EveryGeneratedOptionMapsItsFields() Min = 2.5f, Max = 2.5f, Annotations = [new ChartAnnotation()], + Dither = true, }; var native = value.ToNative(); Assert.Equal(SizeKind.Fixed, native.Width.Kind); @@ -901,6 +953,7 @@ public void EveryGeneratedOptionMapsItsFields() Assert.Equal(value.Min, native.Min); Assert.Equal(value.Max, native.Max); Assert.NotEqual((nint)0, native.Annotations); + Assert.Equal((byte)1, native.Dither); var zero = default(ChartOpts).ToNative(); Assert.Equal((nint)0, zero.Labels); Assert.Equal((byte)0, zero.Area); @@ -910,6 +963,41 @@ public void EveryGeneratedOptionMapsItsFields() Assert.Equal((byte)0, zero.Smooth); Assert.Equal((nint)0, zero.Format); Assert.Equal((nint)0, zero.Annotations); + Assert.Equal((byte)0, zero.Dither); + } + + // cui_pattern_meter_opts + { + var value = new PatternMeterOpts + { + Total = 2.5f, + Label = "é", + Unit = "é", + Format = "é", + FreeLabel = "é", + Grayscale = true, + NoLegend = true, + Height = 2.5f, + Width = Size.Px(24), + }; + var native = value.ToNative(); + Assert.Equal(value.Total, native.Total); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Label)); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Unit)); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Format)); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.FreeLabel)); + Assert.Equal((byte)1, native.Grayscale); + Assert.Equal((byte)1, native.NoLegend); + Assert.Equal(value.Height, native.Height); + Assert.Equal(SizeKind.Fixed, native.Width.Kind); + Assert.Equal(24f, native.Width.Value); + var zero = default(PatternMeterOpts).ToNative(); + Assert.Equal((nint)0, zero.Label); + Assert.Equal((nint)0, zero.Unit); + Assert.Equal((nint)0, zero.Format); + Assert.Equal((nint)0, zero.FreeLabel); + Assert.Equal((byte)0, zero.Grayscale); + Assert.Equal((byte)0, zero.NoLegend); } // cui_image_opts @@ -1139,6 +1227,25 @@ public void EveryGeneratedOptionMapsItsFields() Assert.Equal((nint)0, zero.Icon); } + // cui_status_spinner_opts + { + var value = new StatusSpinnerOpts + { + Size = 2.5f, + Color = new Color(12, 34, 56, 78), + Keep = true, + }; + var native = value.ToNative(); + Assert.Equal(value.Size, native.Size); + Assert.Equal((byte)12, native.Color.R); + Assert.Equal((byte)34, native.Color.G); + Assert.Equal((byte)56, native.Color.B); + Assert.Equal((byte)78, native.Color.A); + Assert.Equal((byte)1, native.Keep); + var zero = default(StatusSpinnerOpts).ToNative(); + Assert.Equal((byte)0, zero.Keep); + } + // cui_speed_dial_opts { var value = new SpeedDialOpts @@ -1696,12 +1803,13 @@ public void EveryGeneratedOptionMapsItsFields() Height = 2.5f, Format = "é", }; - var native = value.ToNative(); + var native = value.ToNative((nint)123); Assert.Equal(SizeKind.Fixed, native.Width.Kind); Assert.Equal(24f, native.Width.Value); Assert.Equal(value.Height, native.Height); Assert.Equal("é", Marshal.PtrToStringUTF8(native.Format)); - var zero = default(TreemapOpts).ToNative(); + Assert.Equal((nint)123, native.Selected); + var zero = default(TreemapOpts).ToNative((nint)123); Assert.Equal((nint)0, zero.Format); } @@ -1754,6 +1862,7 @@ public void EveryGeneratedOptionMapsItsFields() Height = 2.5f, Format = "é", NodeWidth = 2.5f, + NodeColors = [new Color()], }; var native = value.ToNative(); Assert.Equal(SizeKind.Fixed, native.Width.Kind); @@ -1761,8 +1870,10 @@ public void EveryGeneratedOptionMapsItsFields() Assert.Equal(value.Height, native.Height); Assert.Equal("é", Marshal.PtrToStringUTF8(native.Format)); Assert.Equal(value.NodeWidth, native.NodeWidth); + Assert.NotEqual((nint)0, native.NodeColors); var zero = default(SankeyOpts).ToNative(); Assert.Equal((nint)0, zero.Format); + Assert.Equal((nint)0, zero.NodeColors); } // cui_waffle_opts @@ -1893,6 +2004,9 @@ public void EveryGeneratedOptionMapsItsFields() Target = 2.5f, ShowTarget = true, NoNeedle = true, + Style = (GaugeStyle)1, + Detail = "é", + Color = new Color(12, 34, 56, 78), }; var native = value.ToNative(); Assert.Equal("é", Marshal.PtrToStringUTF8(native.Label)); @@ -1905,6 +2019,12 @@ public void EveryGeneratedOptionMapsItsFields() Assert.Equal(value.Target, native.Target); Assert.Equal((byte)1, native.ShowTarget); Assert.Equal((byte)1, native.NoNeedle); + Assert.Equal(value.Style, native.Style); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Detail)); + Assert.Equal((byte)12, native.Color.R); + Assert.Equal((byte)34, native.Color.G); + Assert.Equal((byte)56, native.Color.B); + Assert.Equal((byte)78, native.Color.A); var zero = default(RadialGaugeOpts).ToNative(); Assert.Equal((nint)0, zero.Label); Assert.Equal((nint)0, zero.Format); @@ -1912,6 +2032,7 @@ public void EveryGeneratedOptionMapsItsFields() Assert.Equal((nint)0, zero.Bands); Assert.Equal((byte)0, zero.ShowTarget); Assert.Equal((byte)0, zero.NoNeedle); + Assert.Equal((nint)0, zero.Detail); } // cui_candlestick_opts @@ -2309,6 +2430,10 @@ public void EveryGeneratedOptionMapsItsFields() Models = [new Model()], MaxLines = (int)1, Width = Size.Px(24), + Mic = true, + Recording = true, + Levels = [3f, 7f], + RecordSeconds = 2.5f, }; var native = value.ToNative((nint)123, (nint)123); Assert.Equal("é", Marshal.PtrToStringUTF8(native.Placeholder)); @@ -2321,11 +2446,19 @@ public void EveryGeneratedOptionMapsItsFields() Assert.Equal(value.MaxLines, native.MaxLines); Assert.Equal(SizeKind.Fixed, native.Width.Kind); Assert.Equal(24f, native.Width.Value); + Assert.Equal((byte)1, native.Mic); + Assert.Equal((byte)1, native.Recording); + Assert.Equal(3f, ((float*)native.Levels)[0]); + Assert.Equal(7f, ((float*)native.Levels)[1]); + Assert.Equal(value.RecordSeconds, native.RecordSeconds); var zero = default(ComposerOpts).ToNative((nint)123, (nint)123); Assert.Equal((nint)0, zero.Placeholder); Assert.Equal((byte)0, zero.Busy); Assert.Equal((nint)0, zero.Attachments); Assert.Equal((nint)0, zero.Models); + Assert.Equal((byte)0, zero.Mic); + Assert.Equal((byte)0, zero.Recording); + Assert.Equal((nint)0, zero.Levels); } // cui_voice_orb_opts @@ -2344,6 +2477,87 @@ public void EveryGeneratedOptionMapsItsFields() var zero = default(VoiceOrbOpts).ToNative(); } + // cui_voice_wave_opts + { + var value = new VoiceWaveOpts + { + Clip = true, + Owners = [new byte()], + Owner = (VoiceOwner)1, + Color = new Color(12, 34, 56, 78), + Pitch = 2.5f, + Step = 2.5f, + Width = Size.Px(24), + }; + var native = value.ToNative((nint)123); + Assert.Equal((byte)1, native.Clip); + Assert.Equal((nint)123, native.Progress); + Assert.NotEqual((nint)0, native.Owners); + Assert.Equal(value.Owner, native.Owner); + Assert.Equal((byte)12, native.Color.R); + Assert.Equal((byte)34, native.Color.G); + Assert.Equal((byte)56, native.Color.B); + Assert.Equal((byte)78, native.Color.A); + Assert.Equal(value.Pitch, native.Pitch); + Assert.Equal(value.Step, native.Step); + Assert.Equal(SizeKind.Fixed, native.Width.Kind); + Assert.Equal(24f, native.Width.Value); + var zero = default(VoiceWaveOpts).ToNative((nint)123); + Assert.Equal((byte)0, zero.Clip); + Assert.Equal((nint)0, zero.Owners); + } + + // cui_voice_note_opts + { + var value = new VoiceNoteOpts + { + Mine = true, + Width = Size.Px(24), + }; + var native = value.ToNative(); + Assert.Equal((byte)1, native.Mine); + Assert.Equal(SizeKind.Fixed, native.Width.Kind); + Assert.Equal(24f, native.Width.Value); + var zero = default(VoiceNoteOpts).ToNative(); + Assert.Equal((byte)0, zero.Mine); + } + + // cui_voice_session_opts + { + var value = new VoiceSessionOpts + { + Owners = [new byte()], + Label = "é", + Transcript = "é", + Upcoming = "é", + Speaker = (VoiceOwner)1, + You = "é", + Assistant = "é", + NoEnd = true, + Width = Size.Px(24), + }; + var native = value.ToNative((nint)123); + Assert.NotEqual((nint)0, native.Owners); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Label)); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Transcript)); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Upcoming)); + Assert.Equal(value.Speaker, native.Speaker); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.You)); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Assistant)); + Assert.Equal((nint)123, native.Muted); + Assert.Equal((byte)1, native.NoEnd); + Assert.Equal(SizeKind.Fixed, native.Width.Kind); + Assert.Equal(24f, native.Width.Value); + var zero = default(VoiceSessionOpts).ToNative((nint)123); + Assert.Equal((nint)0, zero.Owners); + Assert.Equal((nint)0, zero.Label); + Assert.Equal((nint)0, zero.Transcript); + Assert.Equal((nint)0, zero.Upcoming); + Assert.Equal((nint)0, zero.You); + Assert.Equal((nint)0, zero.Assistant); + Assert.Equal((byte)0, zero.NoEnd); + } + // cui_kanban_column_opts { var value = new KanbanColumnOpts @@ -2565,6 +2779,34 @@ public void EveryGeneratedOptionMapsItsFields() Assert.Equal((nint)0, zero.Description); } + // cui_veil_opts + { + var value = new VeilOpts + { + Label = "é", + Hint = "é", + Toggle = true, + Radius = 2.5f, + Color = new Color(12, 34, 56, 78), + Width = Size.Px(24), + }; + var native = value.ToNative(); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Label)); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Hint)); + Assert.Equal((byte)1, native.Toggle); + Assert.Equal(value.Radius, native.Radius); + Assert.Equal((byte)12, native.Color.R); + Assert.Equal((byte)34, native.Color.G); + Assert.Equal((byte)56, native.Color.B); + Assert.Equal((byte)78, native.Color.A); + Assert.Equal(SizeKind.Fixed, native.Width.Kind); + Assert.Equal(24f, native.Width.Value); + var zero = default(VeilOpts).ToNative(); + Assert.Equal((nint)0, zero.Label); + Assert.Equal((nint)0, zero.Hint); + Assert.Equal((byte)0, zero.Toggle); + } + // cui_multi_select_opts { var value = new MultiSelectOpts @@ -3023,9 +3265,11 @@ public void EveryGeneratedOptionMapsItsFields() var value = new ToolbarOpts { NoBorder = true, + Style = (ToolbarStyle)1, }; var native = value.ToNative(); Assert.Equal((byte)1, native.NoBorder); + Assert.Equal(value.Style, native.Style); var zero = default(ToolbarOpts).ToNative(); Assert.Equal((byte)0, zero.NoBorder); } @@ -3038,6 +3282,8 @@ public void EveryGeneratedOptionMapsItsFields() Tooltip = "é", Shortcut = "é", Disabled = true, + Tone = (Tone)1, + Flyout = true, }; var native = value.ToNative((nint)123); Assert.Equal("é", Marshal.PtrToStringUTF8(native.Label)); @@ -3045,11 +3291,27 @@ public void EveryGeneratedOptionMapsItsFields() Assert.Equal("é", Marshal.PtrToStringUTF8(native.Shortcut)); Assert.Equal((nint)123, native.Toggle); Assert.Equal((byte)1, native.Disabled); + Assert.Equal(value.Tone, native.Tone); + Assert.Equal((byte)1, native.Flyout); var zero = default(ToolOpts).ToNative((nint)123); Assert.Equal((nint)0, zero.Label); Assert.Equal((nint)0, zero.Tooltip); Assert.Equal((nint)0, zero.Shortcut); Assert.Equal((byte)0, zero.Disabled); + Assert.Equal((byte)0, zero.Flyout); + } + + // cui_toolbar_radio_opts + { + var value = new ToolbarRadioOpts + { + Labels = ["one", "two"], + }; + var native = value.ToNative(); + Assert.Equal("one", Marshal.PtrToStringUTF8(((nint*)native.Labels)[0])); + Assert.Equal("two", Marshal.PtrToStringUTF8(((nint*)native.Labels)[1])); + var zero = default(ToolbarRadioOpts).ToNative(); + Assert.Equal((nint)0, zero.Labels); } // cui_status_bar_opts @@ -3397,6 +3659,221 @@ public void EveryGeneratedOptionMapsItsFields() var zero = default(GradientOpts).ToNative((nint)123); } + // cui_status_tag_opts + { + var value = new StatusTagOpts + { + Size = (ControlSize)1, + Removable = true, + Icon = "é", + Tone = (Tone)1, + Id = "é", + }; + var native = value.ToNative(); + Assert.Equal(value.Size, native.Size); + Assert.Equal((byte)1, native.Removable); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Icon)); + Assert.Equal(value.Tone, native.Tone); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Id)); + var zero = default(StatusTagOpts).ToNative(); + Assert.Equal((byte)0, zero.Removable); + Assert.Equal((nint)0, zero.Icon); + Assert.Equal((nint)0, zero.Id); + } + + // cui_ratio_slider_opts + { + var value = new RatioSliderOpts + { + Tone = (Tone)1, + Step = 2.5f, + Height = 2.5f, + Width = Size.Px(24), + Disabled = true, + }; + var native = value.ToNative(); + Assert.Equal(value.Tone, native.Tone); + Assert.Equal(value.Step, native.Step); + Assert.Equal(value.Height, native.Height); + Assert.Equal(SizeKind.Fixed, native.Width.Kind); + Assert.Equal(24f, native.Width.Value); + Assert.Equal((byte)1, native.Disabled); + var zero = default(RatioSliderOpts).ToNative(); + Assert.Equal((byte)0, zero.Disabled); + } + + // cui_gradient_slider_opts + { + var value = new GradientSliderOpts + { + Track = (GradientTrack)1, + Stops = [new GradientStop()], + Color = new Color(12, 34, 56, 78), + Step = 2.5f, + Format = "é", + Value = "é", + Swatch = true, + Tool = "é", + ToolTooltip = "é", + ToolOn = true, + Plain = true, + Disabled = true, + }; + var native = value.ToNative((nint)123); + Assert.Equal(value.Track, native.Track); + Assert.NotEqual((nint)0, native.Stops); + Assert.Equal((byte)12, native.Color.R); + Assert.Equal((byte)34, native.Color.G); + Assert.Equal((byte)56, native.Color.B); + Assert.Equal((byte)78, native.Color.A); + Assert.Equal((nint)123, native.ColorOut); + Assert.Equal(value.Step, native.Step); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Format)); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Value)); + Assert.Equal((byte)1, native.Swatch); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Tool)); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.ToolTooltip)); + Assert.Equal((byte)1, native.ToolOn); + Assert.Equal((byte)1, native.Plain); + Assert.Equal((byte)1, native.Disabled); + var zero = default(GradientSliderOpts).ToNative((nint)123); + Assert.Equal((nint)0, zero.Stops); + Assert.Equal((nint)0, zero.Format); + Assert.Equal((nint)0, zero.Value); + Assert.Equal((byte)0, zero.Swatch); + Assert.Equal((nint)0, zero.Tool); + Assert.Equal((nint)0, zero.ToolTooltip); + Assert.Equal((byte)0, zero.ToolOn); + Assert.Equal((byte)0, zero.Plain); + Assert.Equal((byte)0, zero.Disabled); + } + + // cui_step_slider_opts + { + var value = new StepSliderOpts + { + Labels = ["one", "two"], + Format = "é", + Value = "é", + Tool = "é", + ToolTooltip = "é", + ToolOn = true, + Plain = true, + Disabled = true, + }; + var native = value.ToNative(); + Assert.Equal("one", Marshal.PtrToStringUTF8(((nint*)native.Labels)[0])); + Assert.Equal("two", Marshal.PtrToStringUTF8(((nint*)native.Labels)[1])); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Format)); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Value)); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Tool)); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.ToolTooltip)); + Assert.Equal((byte)1, native.ToolOn); + Assert.Equal((byte)1, native.Plain); + Assert.Equal((byte)1, native.Disabled); + var zero = default(StepSliderOpts).ToNative(); + Assert.Equal((nint)0, zero.Labels); + Assert.Equal((nint)0, zero.Format); + Assert.Equal((nint)0, zero.Value); + Assert.Equal((nint)0, zero.Tool); + Assert.Equal((nint)0, zero.ToolTooltip); + Assert.Equal((byte)0, zero.ToolOn); + Assert.Equal((byte)0, zero.Plain); + Assert.Equal((byte)0, zero.Disabled); + } + + // cui_palette_strip_opts + { + var value = new PaletteStripOpts + { + Value = "é", + NoShuffle = true, + Height = 2.5f, + Plain = true, + }; + var native = value.ToNative((nint)123); + Assert.Equal((nint)123, native.Seed); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Value)); + Assert.Equal((byte)1, native.NoShuffle); + Assert.Equal(value.Height, native.Height); + Assert.Equal((byte)1, native.Plain); + var zero = default(PaletteStripOpts).ToNative((nint)123); + Assert.Equal((nint)0, zero.Value); + Assert.Equal((byte)0, zero.NoShuffle); + Assert.Equal((byte)0, zero.Plain); + } + + // cui_aspect_picker_opts + { + var value = new AspectPickerOpts + { + Ratios = [new Aspect()], + Custom = true, + CustomLabel = "é", + Base = (int)1, + Value = "é", + Plain = true, + }; + var native = value.ToNative(); + Assert.NotEqual((nint)0, native.Ratios); + Assert.Equal((byte)1, native.Custom); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.CustomLabel)); + Assert.Equal(value.Base, native.Base); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Value)); + Assert.Equal((byte)1, native.Plain); + var zero = default(AspectPickerOpts).ToNative(); + Assert.Equal((nint)0, zero.Ratios); + Assert.Equal((byte)0, zero.Custom); + Assert.Equal((nint)0, zero.CustomLabel); + Assert.Equal((nint)0, zero.Value); + Assert.Equal((byte)0, zero.Plain); + } + + // cui_option_action_opts + { + var value = new OptionActionOpts + { + Tooltip = "é", + ActionOn = true, + ActionDisabled = true, + Value = "é", + Plain = true, + }; + var native = value.ToNative(); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Tooltip)); + Assert.Equal((byte)1, native.ActionOn); + Assert.Equal((byte)1, native.ActionDisabled); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Value)); + Assert.Equal((byte)1, native.Plain); + var zero = default(OptionActionOpts).ToNative(); + Assert.Equal((nint)0, zero.Tooltip); + Assert.Equal((byte)0, zero.ActionOn); + Assert.Equal((byte)0, zero.ActionDisabled); + Assert.Equal((nint)0, zero.Value); + Assert.Equal((byte)0, zero.Plain); + } + + // cui_seed_field_opts + { + var value = new SeedFieldOpts + { + Value = "é", + RandomText = "é", + FixedText = "é", + Plain = true, + }; + var native = value.ToNative(); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Value)); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.RandomText)); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.FixedText)); + Assert.Equal((byte)1, native.Plain); + var zero = default(SeedFieldOpts).ToNative(); + Assert.Equal((nint)0, zero.Value); + Assert.Equal((nint)0, zero.RandomText); + Assert.Equal((nint)0, zero.FixedText); + Assert.Equal((byte)0, zero.Plain); + } + // cui_timeline_editor_opts { var value = new TimelineEditorOpts @@ -3922,6 +4399,142 @@ public void EveryGeneratedOptionMapsItsFields() Assert.Equal((byte)0, zero.Marquee); } + // cui_format_bar_opts + { + var value = new FormatBarOpts + { + Styles = [new TextStyle()], + Colors = [new Tone()], + Footer = "é", + FooterKeys = "é", + DeleteQuestion = "é", + NoDelete = true, + NoMore = true, + }; + var native = value.ToNative(); + Assert.NotEqual((nint)0, native.Styles); + Assert.NotEqual((nint)0, native.Colors); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Footer)); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.FooterKeys)); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.DeleteQuestion)); + Assert.Equal((byte)1, native.NoDelete); + Assert.Equal((byte)1, native.NoMore); + var zero = default(FormatBarOpts).ToNative(); + Assert.Equal((nint)0, zero.Styles); + Assert.Equal((nint)0, zero.Colors); + Assert.Equal((nint)0, zero.Footer); + Assert.Equal((nint)0, zero.FooterKeys); + Assert.Equal((nint)0, zero.DeleteQuestion); + Assert.Equal((byte)0, zero.NoDelete); + Assert.Equal((byte)0, zero.NoMore); + } + + // cui_live_cursors_opts + { + var value = new LiveCursorsOpts + { + NoGlide = true, + }; + var native = value.ToNative((nint)123); + Assert.Equal((nint)123, native.View); + Assert.Equal((byte)1, native.NoGlide); + var zero = default(LiveCursorsOpts).ToNative((nint)123); + Assert.Equal((byte)0, zero.NoGlide); + } + + // cui_presence_pill_opts + { + var value = new PresencePillOpts + { + Size = 2.5f, + MaxVisible = (int)1, + }; + var native = value.ToNative(); + Assert.Equal(value.Size, native.Size); + Assert.Equal(value.MaxVisible, native.MaxVisible); + var zero = default(PresencePillOpts).ToNative(); + } + + // cui_selection_ring_opts + { + var value = new SelectionRingOpts + { + Name = "é", + Radius = 2.5f, + }; + var native = value.ToNative(); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Name)); + Assert.Equal(value.Radius, native.Radius); + var zero = default(SelectionRingOpts).ToNative(); + Assert.Equal((nint)0, zero.Name); + } + + // cui_canvas_controls_opts + { + var value = new CanvasControlsOpts + { + Steps = [3f, 7f], + Content = new RectF(1, 2, 3, 4), + NoFit = true, + StartSide = true, + }; + var native = value.ToNative(); + Assert.Equal(3f, ((float*)native.Steps)[0]); + Assert.Equal(7f, ((float*)native.Steps)[1]); + Assert.Equal(UiMarshal.ToNative(value.Content), native.Content); + Assert.Equal((byte)1, native.NoFit); + Assert.Equal((byte)1, native.StartSide); + var zero = default(CanvasControlsOpts).ToNative(); + Assert.Equal((nint)0, zero.Steps); + Assert.Equal((nint)0, zero.Toggles); + Assert.Equal((byte)0, zero.NoFit); + Assert.Equal((byte)0, zero.StartSide); + } + + // cui_result_card_opts + { + var value = new ResultCardOpts + { + Caption = "é", + Badge = "é", + BadgeTone = (Tone)1, + ImageW = (int)1, + ImageH = (int)1, + Width = Size.Px(24), + Aspect = 2.5f, + }; + var native = value.ToNative(); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Caption)); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.Badge)); + Assert.Equal(value.BadgeTone, native.BadgeTone); + Assert.Equal(value.ImageW, native.ImageW); + Assert.Equal(value.ImageH, native.ImageH); + Assert.Equal(SizeKind.Fixed, native.Width.Kind); + Assert.Equal(24f, native.Width.Value); + Assert.Equal(value.Aspect, native.Aspect); + var zero = default(ResultCardOpts).ToNative(); + Assert.Equal((nint)0, zero.Caption); + Assert.Equal((nint)0, zero.Badge); + } + + // cui_selection_bar_opts + { + var value = new SelectionBarOpts + { + CountFormat = "é", + Anchor = (uint)1, + NoEscape = true, + }; + var native = value.ToNative(); + Assert.Equal("é", Marshal.PtrToStringUTF8(native.CountFormat)); + Assert.Equal(value.Anchor, native.Anchor); + Assert.Equal((byte)1, native.NoEscape); + var zero = default(SelectionBarOpts).ToNative(); + Assert.Equal((nint)0, zero.Selected); + Assert.Equal((nint)0, zero.CountFormat); + Assert.Equal((byte)0, zero.NoEscape); + } + // cui_file_dialog_opts { var value = new FileDialogOpts diff --git a/src/CuiSharp/Interop/Constants.g.cs b/src/CuiSharp/Interop/Constants.g.cs index 5d4677c..b1c9df4 100644 --- a/src/CuiSharp/Interop/Constants.g.cs +++ b/src/CuiSharp/Interop/Constants.g.cs @@ -21,9 +21,12 @@ internal static class CuiFlags internal const int CUI_REGEX_ICASE = 1; internal const int CUI_REGEX_MULTILINE = 2; internal const int CUI_REGEX_DOTALL = 4; + internal const int CUI_SELECTION_NONE = -1; + internal const int CUI_SELECTION_CLEARED = -2; internal const int CUI_SHADE_TEXT = 0; internal const int CUI_SHADE_RRECT = 1; internal const int CUI_SHADE_SHADOW = 2; internal const int CUI_SHADE_IMAGE = 3; internal const int CUI_SHADE_SOLID = 4; + internal const int CUI_SHADE_DITHER = 5; } diff --git a/src/CuiSharp/Interop/Enums.g.cs b/src/CuiSharp/Interop/Enums.g.cs index 64e0ca9..1ac38c7 100644 --- a/src/CuiSharp/Interop/Enums.g.cs +++ b/src/CuiSharp/Interop/Enums.g.cs @@ -316,6 +316,41 @@ public enum Tone Accent = 8, } +/// Spinner: says that something is happening, for as long as you call it. `size` is its height in points (20 when 0). The default style is a ring with a sweeping arc that holds still with reduced motion. The other styles are drawn in dots on an 8x8 ordered dither, one point a dot below 32 points tall and two from there, and each fits a kind of wait: +public enum SpinnerStyle +{ + /// a ring with an arc sweeping round it + Arc = 0, + /// a ring of dots with a head and a tail that thins out dot by dot + Comet = 1, + /// a 5x5 grid of dots with a wave running through it, for dense layouts + DotMatrix = 2, + /// a tile that fills from the bottom, then dissolves: a step of a job + FillDrain = 3, + /// a sweep round a dial; points light up as it passes: searching, scanning + Radar = 4, + /// rings spreading from a dot: connecting, pairing, waiting for the other side + Ripple = 5, + /// chevrons streaming up: sending + Upload = 6, + /// chevrons streaming down: receiving + Download = 7, + /// both, side by side: syncing both ways + Transfer = 8, + /// two dots circling, their trails dissolving: syncing + Orbit = 9, + /// three bouncing dots with short trails: typing, a chat reply + Bounce = 10, + /// a scan line reading a page: indexing, importing + Scan = 11, + /// a soft disc breathing in density: recording, live + Pulse = 12, + /// three arms turning: a long, calm background wait + Spiral = 13, + /// slow moving noise in a tile: generating an image or audio + Plasma = 14, +} + /// A line, a threshold or a point drawn over a chart, with a two-line label: the label in the foreground color and a muted detail under it. Line and bar charts take them in cui_chart_opts, the dot chart in cui_dot_chart_opts. Labels that would overlap move to the other side of their line, then down. public enum AnnotationKind { @@ -355,6 +390,19 @@ public enum DiffRowKind Fold = 4, } +/// cui_gauge_style +public enum GaugeStyle +{ + /// segments with `bands`, the arc without + Auto = 0, + /// a track and a value arc with round caps, min and max at its ends + Arc = 1, + /// short segments lit up to the value, in the band colors + Segments = 2, + /// a slim full ring starting at the top + Ring = 3, +} + /// cui_loader_style public enum LoaderStyle { @@ -375,13 +423,45 @@ public enum CuiTaskStatus Skipped = 4, } -/// Voice orb: a living shape for voice modes. level is the input or output loudness (0..1). Returns true when clicked. +/// What a voice conversation is doing, for the voice session's label (and the voice orb, which shows the first four). public enum VoiceState { Idle = 0, Listening = 1, Thinking = 2, Speaking = 3, + Muted = 4, +} + +/// cui_voice_owner +public enum VoiceOwner +{ + You = 0, + Reply = 1, +} + +/// Gantt chart: a task list beside a timeline of bars. Drag a bar to move it, its ends to resize it. Bars are colored by state (done, active, planned) with their progress inside, dependencies are soft curves with small arrowheads, and today is an accent line. Returns the index of a clicked task, or -1. +public enum GanttState +{ + /// from the progress and today: 1 is done, more than 0 is active; untouched work is planned when it starts after today, else active + Auto = 0, + /// a green bar + Done = 1, + /// a bar in the first series color + Active = 2, + /// a dashed, lightly tinted bar + Planned = 3, +} + +/// 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 "more" menu; an item chosen there returns true on the next frame. Tab moves through the items. +public enum ToolbarStyle +{ + /// a strip as wide as its parent, with a hairline under it + Plain = 0, + /// raised groups inside one muted pill + Grouped = 1, + /// one bordered surface pill + Floating = 2, } /// Log console. The app owns the storage: give cui_log_init an array of line records and a byte buffer for the text. Appending never allocates; when either is full the oldest lines are dropped (a ring buffer). Lines longer than the text buffer are cut to fit. @@ -408,6 +488,28 @@ public enum CurveMode Step = 3, } +/// Status tag: an icon, a label and a fill tinted by the state, for a table cell, a card header or a group of tags. "In progress" turns its dashed ring slowly (it holds still with reduced motion). A NULL label shows the state's English name. +public enum TagStatus +{ + Pending = 0, + InProgress = 1, + Submitted = 2, + InReview = 3, + Success = 4, + Failed = 5, + Expired = 6, + /// your `icon` and `tone` only + Custom = 7, +} + +/// Gradient slider: a slider whose track is the value itself (a hue wheel, a white balance temperature, an opacity over a checkerboard, or your own stops), with a thumb filled with the color under it. An optional tool button after the track (an eyedropper) reports clicks. Keys as for the slider. Returns CUI_WELL_* flags. +public enum GradientTrack +{ + Hue = 0, + Temperature = 1, + Opacity = 2, +} + /// Timeline editor (dope sheet): a track list on the left, a time ruler on top and a row per track with its keys (and clips, for video and audio tracks). You own the tracks, their keys and clips, the playhead time and the selection; the editor edits them in place and reports what it did: public enum TimelineRuler { @@ -469,6 +571,24 @@ public enum AxisUnits Hours = 1, } +/// Format bar: a floating bar that edits the format of a text selection. A color swatch opens a grid of colors; bold and underline toggle; link reports a click; the size readout follows the text style, chosen from a menu that shows each style at its own size; alignment and list open small flyouts (a corner mark says so); delete asks first, in a small tip with a Delete button. You pass one struct with the format and the bar edits it: +public enum FormatAlign +{ + Left = 0, + Center = 1, + Right = 2, + Justify = 3, +} + +/// cui_format_list +public enum FormatList +{ + None = 0, + Bullets = 1, + Numbers = 2, + Checks = 3, +} + /// cui_renderer_kind public enum Renderer { @@ -529,7 +649,7 @@ public enum CommentEvents Reply = 2, } -/// CUI_PLAYER_TOGGLE +/// what the user did, from the now playing card and the voice note: CUI_PLAYER_SPEED is the voice note's speed chip [System.Flags] public enum PlayerEvents { @@ -538,6 +658,7 @@ public enum PlayerEvents Prev = 2, Next = 4, Seek = 8, + Speed = 16, } /// Response actions: copy, regenerate, vote and share under an answer. @@ -562,4 +683,55 @@ public enum ComposerEvents Attach = 4, Remove = 8, Model = 16, + Record = 32, + Cancel = 64, + Voice = 128, +} + +/// Voice session: a spoken conversation with an assistant on one timeline. The waveform scrolls with both voices, you in the foreground color and the assistant in the accent (tag each level in `owners`); a label says what is happening (Listening, Thinking..., Speaking, Muted: the `state` you pass), with a legend, the live transcript under it and Mute and End buttons. While the assistant thinks there is no sound, so push CUI_VOICE_SILENT: the strip shows a flat gap rather than a made-up wave. Returns CUI_VOICE_SESSION_*. +[System.Flags] +public enum VoiceSessionEvents +{ + None = 0, + Mute = 1, + End = 2, +} + +/// The controls below sit in a control well: a rounded panel with the label on the left, the value on the right and the control under them. `plain` drops the panel and keeps the label row and the control. A label that starts with "##" shows no label row. Those that take an action button return these flags: +[System.Flags] +public enum WellEvents +{ + None = 0, + /// the value changed; the action button was pressed + Changed = 1, + /// the value changed; the action button was pressed + Action = 2, +} + +/// CUI_FORMAT_CHANGED +[System.Flags] +public enum FormatEvents +{ + None = 0, + /// a field of the format changed + Changed = 1, + /// the link button was clicked + Link = 2, + /// delete was confirmed + Delete = 4, + /// the "..." button was clicked + More = 8, +} + +/// CUI_CANVAS_ZOOMED +[System.Flags] +public enum CanvasEvents +{ + None = 0, + /// the zoom changed (in, out, reset or fit) + Zoomed = 1, + /// fit was clicked + Fit = 2, + /// a toggle flipped + Toggled = 4, } diff --git a/src/CuiSharp/Interop/Native.g.cs b/src/CuiSharp/Interop/Native.g.cs index 029d885..d3815b7 100644 --- a/src/CuiSharp/Interop/Native.g.cs +++ b/src/CuiSharp/Interop/Native.g.cs @@ -36,7 +36,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_dpi_scale")] public static partial float DpiScale(nint ui); - /// dt is the time since the previous frame in seconds. + /// dt is the elapsed time since the previous frame in seconds. Timers use the full interval (up to an hour). Animation steps are capped after idle. [LibraryImport("cui", EntryPoint = "cui_begin_frame")] public static partial void BeginFrame(nint ui, float dt); @@ -128,6 +128,14 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_get_cursor")] public static partial Cursor GetCursor(nint ui); + /// The system clipboard, for a menu or status bar item that copies or pastes ("Copy path"). They go through the platform's clipboard hooks, as the copy button and text fields do: without a hook, setting does nothing and getting returns "". The returned text stays valid until the next call. + [LibraryImport("cui", EntryPoint = "cui_set_clipboard_text")] + public static partial void SetClipboardText(nint ui, nint text); + + /// cui_get_clipboard_text + [LibraryImport("cui", EntryPoint = "cui_get_clipboard_text")] + public static partial nint GetClipboardText(nint ui); + /// Queries, useful for app level shortcuts. [LibraryImport("cui", EntryPoint = "cui_key_pressed")] public static partial byte KeyPressed(nint ui, Key key); @@ -288,7 +296,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_scroll_to")] public static partial void ScrollTo(nint ui, nint scrollId, float y); - /// cui_split_begin + /// Open a split with pane minimums that can fit the available main axis. [LibraryImport("cui", EntryPoint = "cui_split_begin")] public static partial void SplitBegin(nint ui, nint id, ref float ratio, in NativeSplitOpts opts); @@ -412,7 +420,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_slider_ex")] public static partial byte Slider(nint ui, nint label, ref float value, float min, float max, in NativeSliderOpts opts); - /// cui_range_slider + /// Range slider with two non-crossing thumbs. Tab focuses the range, Space selects the other thumb, and the slider keys adjust the focused thumb. [LibraryImport("cui", EntryPoint = "cui_range_slider")] public static partial byte RangeSlider(nint ui, nint label, ref float lo, ref float hi, float min, float max); @@ -428,7 +436,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_input_ex")] public static partial int Input(nint ui, nint id, nint buf, nuint cap, in NativeInputOpts opts); - /// Multi-line text area with word wrap. + /// Multi-line text area with word wrap. The wheel scrolls the text first and goes to the enclosing scroll view at the text area's edges. [LibraryImport("cui", EntryPoint = "cui_textarea_ex")] public static partial int Textarea(nint ui, nint id, nint buf, nuint cap, in NativeInputOpts opts); @@ -436,11 +444,11 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_search_ex")] public static partial int Search(nint ui, nint id, nint buf, nuint cap, in NativeInputOpts opts); - /// cui_number_ex + /// A bounded number field. Only complete finite drafts update the value. Enter or loss of focus shows the accepted value using opts.decimals. [LibraryImport("cui", EntryPoint = "cui_number_ex")] public static partial byte Number(nint ui, nint id, ref double value, double min, double max, in NativeNumberOpts opts); - /// cui_select_ex + /// Enter opens the list or picks the highlighted item. A searchable select returns focus to its trigger when its list closes. [LibraryImport("cui", EntryPoint = "cui_select_ex")] public static partial byte Select(nint ui, nint id, nint items, int count, ref int index, in NativeSelectOpts opts); @@ -452,11 +460,11 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_calendar")] public static partial byte Calendar(nint ui, nint id, ref NativeDate value); - /// cui_date_picker_ex + /// Draw the date trigger with a focus ring when reached by keyboard. [LibraryImport("cui", EntryPoint = "cui_date_picker_ex")] public static partial byte DatePicker(nint ui, nint id, ref NativeDate value, in NativeDateOpts opts); - /// cui_color_picker + /// Draw the color trigger and reconcile its HSV controls with the caller's RGB. [LibraryImport("cui", EntryPoint = "cui_color_picker")] public static partial byte ColorPicker(nint ui, nint id, ref NativeColor value); @@ -472,15 +480,15 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_nav_section")] public static partial void NavSection(nint ui, nint title); - /// returns clicked index or -1 + /// Ancestor links, which show keyboard focus. Returns the clicked index or -1. [LibraryImport("cui", EntryPoint = "cui_breadcrumb")] public static partial int Breadcrumb(nint ui, nint items, int count); - /// page is 0 based + /// Page buttons, which show keyboard focus; page is 0 based. The compact layout is chosen from the parent's inner width. [LibraryImport("cui", EntryPoint = "cui_pagination")] public static partial byte Pagination(nint ui, nint id, ref int page, int pageCount); - /// cui_stepper + /// Process steps; labels collapse to fit the width of their own row. [LibraryImport("cui", EntryPoint = "cui_stepper")] public static partial void Stepper(nint ui, nint steps, int count, int current); @@ -540,11 +548,11 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_menu_label")] public static partial void MenuLabel(nint ui, nint text); - /// Tooltip for the previous component, shown after a short hover delay. + /// Tooltip for the previous component. The first hover waits for the delay, measured in elapsed time even when the app sleeps between frames. [LibraryImport("cui", EntryPoint = "cui_tooltip")] public static partial void Tooltip(nint ui, nint text); - /// Modal dialog. Shown while *open is true; closing sets it to false. + /// Modal dialog. Shown while *open is true; closing sets it to false. Escape leaves a focused text field before it can dismiss the dialog. [LibraryImport("cui", EntryPoint = "cui_dialog_begin")] public static partial byte DialogBegin(nint ui, nint title, nint open, in NativeDialogOpts opts); @@ -568,7 +576,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_sheet_end")] public static partial void SheetEnd(nint ui); - /// Queue a toast. Returns a handle; cui_toast_action_clicked(handle) tells whether its action button was pressed. + /// Queue a toast. Returns a handle; cui_toast_action_clicked(handle) tells whether its action button was pressed before the toast started closing. [LibraryImport("cui", EntryPoint = "cui_toast_ex")] public static partial int Toast(nint ui, nint title, in NativeToastOpts opts); @@ -588,6 +596,10 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_progress_ex")] public static partial void Progress(nint ui, float value, in NativeProgressOpts opts); + /// most styles are square; upload and download are 25/32 as wide as tall, transfer 50/32, bounce 40/28, scan 28/32 + [LibraryImport("cui", EntryPoint = "cui_spinner_ex")] + public static partial void SpinnerEx(nint ui, float size, in NativeSpinnerOpts opts); + /// cui_spinner [LibraryImport("cui", EntryPoint = "cui_spinner")] public static partial void Spinner(nint ui, float size); @@ -596,6 +608,14 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_skeleton")] public static partial void Skeleton(nint ui, NativeSize width, float height); + /// cui_skeleton_group_begin_ex + [LibraryImport("cui", EntryPoint = "cui_skeleton_group_begin_ex")] + public static partial void SkeletonGroupBegin(nint ui, in NativeSkeletonGroupOpts opts); + + /// cui_skeleton_group_end + [LibraryImport("cui", EntryPoint = "cui_skeleton_group_end")] + public static partial void SkeletonGroupEnd(nint ui); + /// cui_badge_ex [LibraryImport("cui", EntryPoint = "cui_badge_ex")] public static partial void Badge(nint ui, nint text, in NativeBadgeOpts opts); @@ -644,7 +664,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_list_item_ex")] public static partial byte ListItem(nint ui, nint title, in NativeListItemOpts opts); - /// Virtual list: only the visible rows are built, so lists with a million rows stay fast. Fills first/last with the visible range. + /// Virtual list: only the visible rows are built, so lists with a million rows stay fast. Fills first/last with the visible range for this row count. [LibraryImport("cui", EntryPoint = "cui_virtual_list_begin")] public static partial void VirtualListBegin(nint ui, nint id, int count, float rowHeight, NativeSize height, ref int first, ref int last); @@ -652,7 +672,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_virtual_list_end")] public static partial void VirtualListEnd(nint ui); - /// cui_table_begin_ex + /// Begin a table with keyboard focus indicators for its sortable headers. [LibraryImport("cui", EntryPoint = "cui_table_begin_ex")] public static partial byte TableBegin(nint ui, nint id, nint columns, int columnCount, in NativeTableOpts opts); @@ -692,11 +712,15 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_gauge")] public static partial void Gauge(nint ui, nint label, float value, float size); + /// cui_pattern_meter_ex + [LibraryImport("cui", EntryPoint = "cui_pattern_meter_ex")] + public static partial int PatternMeter(nint ui, nint id, nint parts, int count, in NativePatternMeterOpts opts); + /// Images [LibraryImport("cui", EntryPoint = "cui_image_create")] public static partial nuint ImageCreate(nint ui, int w, int h, nint rgba); - /// PNG/JPEG via stb_image + /// UTF-8 path, PNG/JPEG via stb_image [LibraryImport("cui", EntryPoint = "cui_image_load")] public static partial nuint ImageLoad(nint ui, nint path, ref int w, ref int h); @@ -724,11 +748,11 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_radio_cards_ex")] public static partial byte RadioCards(nint ui, nint id, nint choices, int count, ref int index, in NativeRadioCardsOpts opts); - /// cui_tag_input_ex + /// max_tags applies to every tag, including a batch separated by commas. [LibraryImport("cui", EntryPoint = "cui_tag_input_ex")] public static partial byte TagInput(nint ui, nint id, nint buf, nuint cap, in NativeTagOpts opts); - /// One time code input: `length` boxes; code must hold length + 1 bytes. Returns true when all boxes are filled (once per change). + /// One time code input: `length` boxes; code must hold length + 1 bytes. Returns true when all boxes are filled, including when a paste replaces one complete code with a different complete code. [LibraryImport("cui", EntryPoint = "cui_otp_input")] public static partial byte OtpInput(nint ui, nint id, nint code, int length); @@ -780,7 +804,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_split_button_ex")] public static partial int SplitButton(nint ui, nint label, nint items, int count, in NativeSplitButtonOpts opts); - /// cui_toggle_group_ex + /// Move focus once per arrow press unless a later control took focus. [LibraryImport("cui", EntryPoint = "cui_toggle_group_ex")] public static partial byte ToggleGroup(nint ui, nint id, nint labels, int count, nint values, in NativeToggleGroupOpts opts); @@ -792,11 +816,15 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_status_button_ex")] public static partial byte StatusButton(nint ui, nint label, Status status, in NativeStatusButtonOpts opts); + /// cui_status_spinner_ex + [LibraryImport("cui", EntryPoint = "cui_status_spinner_ex")] + public static partial byte StatusSpinner(nint ui, nint id, Status status, in NativeStatusSpinnerOpts opts); + /// cui_reactions [LibraryImport("cui", EntryPoint = "cui_reactions")] public static partial int Reactions(nint ui, nint id, nint items, int count); - /// cui_speed_dial_ex + /// Balance the action scope even if an action closes the dial during the build. [LibraryImport("cui", EntryPoint = "cui_speed_dial_ex")] public static partial int SpeedDial(nint ui, nint id, nint actions, int count, in NativeSpeedDialOpts opts); @@ -824,7 +852,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_swipe_item_end")] public static partial int SwipeItemEnd(nint ui); - /// cui_data_grid_begin_ex + /// Returns a visible range for the current row count, even after the grid shrinks. [LibraryImport("cui", EntryPoint = "cui_data_grid_begin_ex")] public static partial byte DataGridBegin(nint ui, nint id, nint columns, int columnCount, int rowCount, ref int first, ref int last, in NativeGridOpts opts); @@ -856,7 +884,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_tree_cell")] public static partial byte TreeCell(nint ui, nint label, int depth, byte hasChildren, nint open, nint icon); - /// cui_filter_bar + /// Draw filter chips and open the new chip's value list when a field is added. [LibraryImport("cui", EntryPoint = "cui_filter_bar")] public static partial byte FilterBar(nint ui, nint id, nint fields, int count, ref uint selected, nint search, nuint searchCap); @@ -964,7 +992,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_chat_divider")] public static partial void ChatDivider(nint ui, nint label); - /// bouncing dots + /// bouncing dots, still with reduced motion [LibraryImport("cui", EntryPoint = "cui_typing_indicator")] public static partial void TypingIndicator(nint ui, nint name); @@ -1040,7 +1068,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_funnel_ex")] public static partial int Funnel(nint ui, nint id, nint stages, int count, in NativeFunnelOpts opts); - /// cui_sankey_ex + /// Returns the clicked node index, node_count + the clicked input link index, or -1. [LibraryImport("cui", EntryPoint = "cui_sankey_ex")] public static partial int Sankey(nint ui, nint id, nint nodes, int nodeCount, nint links, int linkCount, in NativeSankeyOpts opts); @@ -1124,7 +1152,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_dock_end")] public static partial void DockEnd(nint ui); - /// cui_tab_bar_ex + /// Move one tab per arrow press, keeping the move tied to the original focus. [LibraryImport("cui", EntryPoint = "cui_tab_bar_ex")] public static partial byte TabBar(nint ui, nint id, nint items, int count, ref int selected, in NativeTabBarOpts opts); @@ -1192,6 +1220,22 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_voice_orb_ex")] public static partial byte VoiceOrb(nint ui, nint id, VoiceState state, float level, in NativeVoiceOrbOpts opts); + /// cui_voice_wave_ex + [LibraryImport("cui", EntryPoint = "cui_voice_wave_ex")] + public static partial byte VoiceWave(nint ui, nint id, nint levels, int count, in NativeVoiceWaveOpts opts); + + /// Resamples a clip to `columns` levels the way the clip strip does (the loudest level of each stretch; a stretch with no audio stays CUI_VOICE_SILENT), for keeping a short waveform with a message. Returns the number written. + [LibraryImport("cui", EntryPoint = "cui_voice_resample")] + public static partial int VoiceResample(nint levels, int count, ref float @out, int columns); + + /// cui_voice_note_ex + [LibraryImport("cui", EntryPoint = "cui_voice_note_ex")] + public static partial int VoiceNote(nint ui, nint id, ref NativeVoiceNote note, in NativeVoiceNoteOpts opts); + + /// cui_voice_session_ex + [LibraryImport("cui", EntryPoint = "cui_voice_session_ex")] + public static partial int VoiceSession(nint ui, nint id, VoiceState state, nint levels, int count, in NativeVoiceSessionOpts opts); + /// cui_kanban_begin [LibraryImport("cui", EntryPoint = "cui_kanban_begin")] public static partial void KanbanBegin(nint ui, nint id); @@ -1216,7 +1260,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_kanban_end")] public static partial byte KanbanEnd(nint ui, ref NativeKanbanMove move); - /// cui_week_calendar_ex + /// Returns the activated event index or -1. Read-only events still activate. [LibraryImport("cui", EntryPoint = "cui_week_calendar_ex")] public static partial int WeekCalendar(nint ui, nint id, NativeDate weekStart, nint events, int count, in NativeWeekOpts opts); @@ -1224,11 +1268,11 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_month_calendar_ex")] public static partial NativeMonthResult MonthCalendar(nint ui, nint id, ref NativeDate month, nint events, int count, in NativeMonthOpts opts); - /// cui_gantt_ex + /// Returns the activated task index or -1. Read-only tasks still activate. [LibraryImport("cui", EntryPoint = "cui_gantt_ex")] public static partial int Gantt(nint ui, nint id, nint tasks, int count, NativeDate origin, int days, in NativeGanttOpts opts); - /// cui_hover_card_begin + /// Keep a dismissed card closed until the pointer leaves its anchor. [LibraryImport("cui", EntryPoint = "cui_hover_card_begin")] public static partial byte HoverCardBegin(nint ui, nint id, in NativeHoverCardOpts opts); @@ -1236,11 +1280,11 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_hover_card_end")] public static partial void HoverCardEnd(nint ui); - /// cui_confirm_popover_ex + /// Require a fresh Enter when an activation opens the question in this frame. [LibraryImport("cui", EntryPoint = "cui_confirm_popover_ex")] public static partial byte ConfirmPopover(nint ui, nint id, in NativeConfirmPopoverOpts opts); - /// cui_expandable_text_ex + /// Draw expandable text with a toggle that keeps its identity when its label changes. [LibraryImport("cui", EntryPoint = "cui_expandable_text_ex")] public static partial byte ExpandableText(nint ui, nint id, nint text, in NativeExpandableTextOpts opts); @@ -1272,6 +1316,14 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_checklist_ex")] public static partial int Checklist(nint ui, nint id, nint steps, int count, in NativeChecklistOpts opts); + /// Draw the cover while leaving hit testing to other widgets when it is disabled. + [LibraryImport("cui", EntryPoint = "cui_veil_begin_ex")] + public static partial byte VeilBegin(nint ui, nint id, nint revealed, in NativeVeilOpts opts); + + /// cui_veil_end + [LibraryImport("cui", EntryPoint = "cui_veil_end")] + public static partial void VeilEnd(nint ui); + /// cui_multi_select_ex [LibraryImport("cui", EntryPoint = "cui_multi_select_ex")] public static partial byte MultiSelect(nint ui, nint id, nint items, int count, nint selected, in NativeMultiSelectOpts opts); @@ -1296,7 +1348,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_time_picker_ex")] public static partial byte TimePicker(nint ui, nint id, ref int hour, ref int minute, in NativeTimeOpts opts); - /// cui_wheel_picker_ex + /// Build a wheel picker, apply input routed to its drum, and draw its focus ring with its rows. [LibraryImport("cui", EntryPoint = "cui_wheel_picker_ex")] public static partial byte WheelPicker(nint ui, nint id, nint items, int count, ref int index, in NativeWheelOpts opts); @@ -1304,7 +1356,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_time_dial")] public static partial byte TimeDial(nint ui, nint id, ref int hour, ref int minute, float size); - /// cui_ruler_slider_ex + /// Build a ruler slider: it takes vertical wheel input before the enclosing view and keeps every rounded value in range. [LibraryImport("cui", EntryPoint = "cui_ruler_slider_ex")] public static partial byte RulerSlider(nint ui, nint label, ref float value, float min, float max, in NativeRulerOpts opts); @@ -1336,7 +1388,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_signature_clear")] public static partial void SignatureClear(nint ui, nint id); - /// cui_dropzone_ex + /// Build a dropzone and show drag feedback only while it can accept a drop. [LibraryImport("cui", EntryPoint = "cui_dropzone_ex")] public static partial int Dropzone(nint ui, nint id, in NativeDropzoneOpts opts); @@ -1352,11 +1404,11 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_inline_edit_ex")] public static partial int InlineEdit(nint ui, nint id, nint buf, nuint cap, in NativeInlineEditOpts opts); - /// cui_scrub_ex + /// Edit a bounded scrub value and accept only a complete, finite numeric draft. [LibraryImport("cui", EntryPoint = "cui_scrub_ex")] public static partial byte Scrub(nint ui, nint label, ref float value, float min, float max, in NativeScrubOpts opts); - /// cui_money_input_ex + /// Edit an amount only if its grouped display can represent the result. [LibraryImport("cui", EntryPoint = "cui_money_input_ex")] public static partial byte MoneyInput(nint ui, nint id, ref double value, in NativeMoneyOpts opts); @@ -1372,7 +1424,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_key_name")] public static partial nint KeyName(Key key); - /// cui_node_editor_begin_ex + /// Build the editor canvas and process gestures while it is enabled. [LibraryImport("cui", EntryPoint = "cui_node_editor_begin_ex")] public static partial byte NodeEditorBegin(nint ui, nint id, ref NativeNodeView view, in NativeNodeEditorOpts opts); @@ -1456,6 +1508,30 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_toolbar_spacer")] public static partial void ToolbarSpacer(nint ui); + /// A group of items: a raised well in the grouped style, set apart by separators in the others. + [LibraryImport("cui", EntryPoint = "cui_toolbar_group_begin")] + public static partial void ToolbarGroupBegin(nint ui); + + /// cui_toolbar_group_end + [LibraryImport("cui", EntryPoint = "cui_toolbar_group_end")] + public static partial void ToolbarGroupEnd(nint ui); + + /// cui_toolbar_radio_ex + [LibraryImport("cui", EntryPoint = "cui_toolbar_radio_ex")] + public static partial byte ToolbarRadio(nint ui, nint id, nint icons, int count, ref int index, in NativeToolbarRadioOpts opts); + + /// The main action at the end of a grouped toolbar: a larger button filled with the text color. + [LibraryImport("cui", EntryPoint = "cui_toolbar_primary_ex")] + public static partial byte ToolbarPrimary(nint ui, nint icon, in NativeToolOpts opts); + + /// A small picker that steps through its choices on each click ("1x", "2x", "4x"). Returns true when *index changed. + [LibraryImport("cui", EntryPoint = "cui_toolbar_cycle_ex")] + public static partial byte ToolbarCycle(nint ui, nint id, nint items, int count, ref int index, in NativeToolOpts opts); + + /// A small triangle in the corner of the previous component (at the end side) that says it opens a flyout or a menu. Any button can take it. + [LibraryImport("cui", EntryPoint = "cui_flyout_mark")] + public static partial void FlyoutMark(nint ui); + /// cui_status_bar_begin [LibraryImport("cui", EntryPoint = "cui_status_bar_begin")] public static partial void StatusBarBegin(nint ui, nint id, in NativeStatusBarOpts opts); @@ -1652,6 +1728,38 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_gradient_eval")] public static partial NativeColor GradientEval(nint stops, int count, float t); + /// cui_status_tag_ex + [LibraryImport("cui", EntryPoint = "cui_status_tag_ex")] + public static partial byte StatusTag(nint ui, nint label, TagStatus status, in NativeStatusTagOpts opts); + + /// cui_ratio_slider_ex + [LibraryImport("cui", EntryPoint = "cui_ratio_slider_ex")] + public static partial byte RatioSlider(nint ui, nint first, nint second, ref float ratio, in NativeRatioSliderOpts opts); + + /// Edit a gradient slider without snapping a passive model value or an endpoint. + [LibraryImport("cui", EntryPoint = "cui_gradient_slider_ex")] + public static partial int GradientSlider(nint ui, nint label, ref float value, float min, float max, in NativeGradientSliderOpts opts); + + /// cui_step_slider_ex + [LibraryImport("cui", EntryPoint = "cui_step_slider_ex")] + public static partial int StepSlider(nint ui, nint label, ref int value, int min, int max, in NativeStepSliderOpts opts); + + /// cui_palette_strip_ex + [LibraryImport("cui", EntryPoint = "cui_palette_strip_ex")] + public static partial int PaletteStrip(nint ui, nint label, nint colors, nint locked, int count, in NativePaletteStripOpts opts); + + /// cui_aspect_picker_ex + [LibraryImport("cui", EntryPoint = "cui_aspect_picker_ex")] + public static partial byte AspectPicker(nint ui, nint label, ref int index, in NativeAspectPickerOpts opts); + + /// cui_option_action_ex + [LibraryImport("cui", EntryPoint = "cui_option_action_ex")] + public static partial int OptionAction(nint ui, nint label, nint items, int count, ref int index, nint icon, in NativeOptionActionOpts opts); + + /// cui_seed_field_ex + [LibraryImport("cui", EntryPoint = "cui_seed_field_ex")] + public static partial int SeedField(nint ui, nint label, ref uint seed, nint locked, in NativeSeedFieldOpts opts); + /// time: the playhead in seconds (may be NULL). [LibraryImport("cui", EntryPoint = "cui_timeline_editor_ex")] public static partial NativeTimelineEditorResult TimelineEditor(nint ui, nint id, nint tracks, int count, ref float time, in NativeTimelineEditorOpts opts); @@ -1668,7 +1776,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_pipeline_ex")] public static partial NativePipelineResult Pipeline(nint ui, nint id, nint stages, int stageCount, nint jobs, int jobCount, in NativePipelineOpts opts); - /// cui_query_builder_ex + /// Read-only and disabled builders preserve the input rules and count. [LibraryImport("cui", EntryPoint = "cui_query_builder_ex")] public static partial byte QueryBuilder(nint ui, nint id, nint fields, int fieldCount, nint nodes, ref int count, int capacity, in NativeQueryOpts opts); @@ -1712,7 +1820,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_waterfall_ex")] public static partial NativeWaterfallResult Waterfall(nint ui, nint id, nint requests, int count, in NativeWaterfallOpts opts); - /// cui_trace_view_ex + /// Draw the trace and report changes to its range, scroll position, or measurement. [LibraryImport("cui", EntryPoint = "cui_trace_view_ex")] public static partial NativeTraceResult TraceView(nint ui, nint id, nint tracks, int trackCount, nint spans, int spanCount, ref NativeTraceView view, ref int selected, in NativeTraceOpts opts); @@ -1764,7 +1872,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_uptime_ex")] public static partial NativeUptimeResult Uptime(nint ui, nint id, nint services, int count, in NativeUptimeOpts opts); - /// cui_time_histogram_ex + /// Draw a time histogram and cancel a pending selection when it becomes disabled. [LibraryImport("cui", EntryPoint = "cui_time_histogram_ex")] public static partial NativeTimeHistogramResult TimeHistogram(nint ui, nint id, double start, double bucketSeconds, int buckets, nint series, int seriesCount, ref double selStart, ref double selEnd, in NativeTimeHistogramOpts opts); @@ -1784,7 +1892,7 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_api_explorer_ex")] public static partial NativeApiExplorerResult ApiExplorer(nint ui, nint id, nint endpoints, int count, in NativeApiExplorerOpts opts); - /// cui_dot_chart_ex + /// Draw a dot chart and report activation at the current sample or pointer position. [LibraryImport("cui", EntryPoint = "cui_dot_chart_ex")] public static partial NativeDotChartResult DotChart(nint ui, nint id, nint series, int seriesCount, int count, in NativeDotChartOpts opts); @@ -1800,6 +1908,34 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_dot_display_ex")] public static partial void DotDisplay(nint ui, nint text, in NativeDotDisplayOpts opts); + /// Returns CUI_FORMAT_* flags. + [LibraryImport("cui", EntryPoint = "cui_format_bar_ex")] + public static partial int FormatBar(nint ui, nint id, ref NativeTextFormat format, in NativeFormatBarOpts opts); + + /// cui_live_cursors_ex + [LibraryImport("cui", EntryPoint = "cui_live_cursors_ex")] + public static partial void LiveCursors(nint ui, nint id, nint users, int count, in NativeLiveCursorsOpts opts); + + /// cui_presence_pill_ex + [LibraryImport("cui", EntryPoint = "cui_presence_pill_ex")] + public static partial void PresencePill(nint ui, nint id, nint users, int count, in NativePresencePillOpts opts); + + /// cui_selection_ring_ex + [LibraryImport("cui", EntryPoint = "cui_selection_ring_ex")] + public static partial void SelectionRing(nint ui, NativeColor color, in NativeSelectionRingOpts opts); + + /// Returns CUI_CANVAS_* flags. + [LibraryImport("cui", EntryPoint = "cui_canvas_controls_ex")] + public static partial int CanvasControls(nint ui, nint id, ref NativeNodeView view, in NativeCanvasControlsOpts opts); + + /// cui_result_card_ex + [LibraryImport("cui", EntryPoint = "cui_result_card_ex")] + public static partial byte ResultCard(nint ui, nint id, nuint image, nint title, in NativeResultCardOpts opts); + + /// Returns the action picked, CUI_SELECTION_CLEARED when the clear button or Esc cleared the selection, or CUI_SELECTION_NONE. + [LibraryImport("cui", EntryPoint = "cui_selection_bar_ex")] + public static partial int SelectionBar(nint ui, nint id, int count, nint actions, int actionCount, in NativeSelectionBarOpts opts); + /// cui_draw_rect [LibraryImport("cui", EntryPoint = "cui_draw_rect")] public static partial void DrawRect(nint ui, NativeRect r, NativeCorners radius, NativeColor fill); @@ -1916,6 +2052,14 @@ public static unsafe partial class Native [LibraryImport("cui", EntryPoint = "cui_app_size")] public static partial NativeVec2 AppSize(nint app); + /// Maximizes the window on its display, as the title bar's maximize button does. NULL means the running app, so a cui_app_run callback can call it on its first frame; with the loop form it is fine right after cui_app_create. Nothing happens for a fixed-size window or where the window manager does not support it (an X11 window manager without EWMH). + [LibraryImport("cui", EntryPoint = "cui_app_maximize")] + public static partial void AppMaximize(nint app); + + /// Starts or stops following the OS light/dark setting, as cui_app_desc.follow_system_theme does at creation, for a theme switcher with Light, Dark and System. Starting applies the OS setting at once, where the platform reports one. Stopping keeps the current theme, so a cui_set_theme after it lasts. Later OS changes are followed on Windows and macOS. + [LibraryImport("cui", EntryPoint = "cui_app_follow_system_theme")] + public static partial void AppFollowSystemTheme(nint app, byte follow); + /// True when the software renderer is drawing (no usable OpenGL, or it was asked for). [LibraryImport("cui", EntryPoint = "cui_app_is_software")] public static partial byte AppIsSoftware(nint app); diff --git a/src/CuiSharp/Interop/Structs.g.cs b/src/CuiSharp/Interop/Structs.g.cs index 3853891..152cd80 100644 --- a/src/CuiSharp/Interop/Structs.g.cs +++ b/src/CuiSharp/Interop/Structs.g.cs @@ -578,7 +578,7 @@ public unsafe struct NativeInputOpts public nint Hint; /// error text below (red) (offset 40) public nint Error; - /// shows dots instead of the text, with an eye button that reveals it (offset 48) + /// shows dots instead of the text, with an eye button that reveals it (inactive when disabled) (offset 48) public byte Password; /// _Bool (offset 49) public byte Disabled; @@ -766,7 +766,7 @@ public unsafe struct NativeMenuOpts public byte IconOnly; } -/// cui_menu_item_opts (32 bytes) +/// cui_menu_item_opts (40 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeMenuItemOpts { @@ -782,6 +782,10 @@ public unsafe struct NativeMenuItemOpts public byte Disabled; /// a check mark at the right edge of the item (offset 26) public byte Checked; + /// the label's font, default CUI_FONT_BODY: a style menu shows each style in its own (offset 28) + public Font Font; + /// the label's size in points, default the body size; the item grows to fit it (offset 32) + public float TextSize; } /// cui_dialog_opts (24 bytes) @@ -798,6 +802,10 @@ public unsafe struct NativeDialogOpts public byte NoCloseButton; /// clicking outside or Esc does not close (offset 21) public byte Persistent; + /// the header moves the dialog; it stays inside the window (offset 22) + public byte Draggable; + /// the edges and corners resize it, down to a minimum size; the content is clipped when it no longer fits (offset 23) + public byte Resizable; } /// cui_sheet_opts (24 bytes) @@ -854,18 +862,48 @@ public unsafe struct NativeProgressOpts { /// int (offset 0) public int Sentinel; - /// _Bool (offset 4) + /// no value: a segment (or with `dither`, a soft band of dots) travels the track (offset 4) public byte Indeterminate; /// cui_tone (offset 8) public Tone Tone; - /// float (offset 12) + /// points, default 6 (8 with `dither`) (offset 12) public float Height; - /// const char * (offset 16) + /// a row above the bar with this name (offset 16) public nint Label; - /// _Bool (offset 24) + /// a whole percentage at the end of that row (offset 24) public byte ShowValue; /// cui_size (offset 28) public NativeSize Width; + /// drawn in dots: the fill dissolves over 60 points past its edge, and the pattern drifts forward while the bar is not full; reduced motion holds it still (offset 36) + public byte Dither; +} + +/// cui_spinner_opts (16 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeSpinnerOpts +{ + /// int (offset 0) + public int Sentinel; + /// cui_spinner_style (offset 4) + public SpinnerStyle Style; + /// default the secondary text color for the ring, the text color for dots (offset 8) + public NativeColor Color; + /// the dots' base (a comet's ring, a dot matrix's dots), default `color` at 12% (offset 12) + public NativeColor Track; +} + +/// Skeleton group: placeholders for content that is loading, built inside it with cui_skeleton (in rows and columns as the content will be), share one shine that passes over them together. With `dither` they are drawn in dots and a band of brighter dots travels over them, asking for 20 frames a second while on screen; reduced motion holds the band still. Groups nest. (20 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeSkeletonGroupOpts +{ + /// int (offset 0) + public int Sentinel; + /// in dots, with a band of brighter dots passing over them (offset 4) + public byte Dither; + /// default: fill (offset 8) + public NativeSize Width; + /// between what is built inside, default 8 (offset 16) + public float Gap; } /// cui_badge_opts (32 bytes) @@ -970,7 +1008,7 @@ public unsafe struct NativeListItemOpts public nint Avatar; } -/// Table (24 bytes) +/// Table: sortable headers and selectable rows show keyboard focus. (24 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeTableColumn { @@ -1064,7 +1102,7 @@ public unsafe struct NativeChartOpts public byte NoGrid; /// _Bool (offset 30) public byte NoLegend; - /// bar chart (offset 31) + /// bars stack in one column; lines stack on the series before them (offset 31) public byte Stacked; /// curved lines (offset 32) public byte Smooth; @@ -1078,6 +1116,48 @@ public unsafe struct NativeChartOpts public nint Annotations; /// number of `annotations` (offset 64) public int AnnotationCount; + /// line chart: every series filled with dots that thin out from its line to the bottom of its band (implies `area`); with `stacked`, bands never mix colors (offset 68) + public byte Dither; +} + +/// Pattern meter: a stacked usage bar (storage, budgets, quotas) whose parts differ in color and in the density of their dots, so it still reads in grayscale, in print and without telling hues apart. One dot of space parts the parts, and the rest of `total` is free space in the track color. Hovering a part, or its legend entry, steps the others back and shows its name, value and share above the bar; the keyboard does the same with Left and Right. Returns the part shown, or -1. (24 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeMeterPart +{ + /// in the legend and the readout (offset 0) + public nint Name; + /// in the meter's units (offset 8) + public float Value; + /// default: the series palette, in order (offset 12) + public NativeColor Color; + /// share of dots lit, 0..1; 0 takes the next of 1, 0.66, 0.42, 0.24, 0.14, 0.08 (offset 16) + public float Density; +} + +/// cui_pattern_meter_opts (56 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativePatternMeterOpts +{ + /// int (offset 0) + public int Sentinel; + /// the whole bar; 0 means the sum of the parts (no free space) (offset 4) + public float Total; + /// the title over the bar, e.g. "Storage" (offset 8) + public nint Label; + /// after every value, e.g. "GB" (offset 16) + public nint Unit; + /// printf format of a value, default "%g" (offset 24) + public nint Format; + /// the legend entry of the free space, default "Free"; "" leaves it out (offset 32) + public nint FreeLabel; + /// every part in the foreground color, told apart by density alone (offset 40) + public byte Grayscale; + /// _Bool (offset 41) + public byte NoLegend; + /// points, default 18 (offset 44) + public float Height; + /// default: fill (offset 48) + public NativeSize Width; } /// cui_image_opts (28 bytes) @@ -1248,7 +1328,7 @@ public unsafe struct NativeSplitButtonOpts public byte Disabled; } -/// Toggle group: a row of toggles (bold, italic...). values[i] is toggled when item i is clicked; with exclusive set exactly one stays on. Labels become tooltips when icon_only is set. Returns true when a value changed. (24 bytes) +/// Toggle group: a row of toggles (bold, italic...). values[i] is toggled when item i is clicked; with exclusive set exactly one stays on. Labels become tooltips when icon_only is set. Left and Right move focus one item. Returns true when a value changed. (24 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeToggleGroupOpts { @@ -1302,6 +1382,20 @@ public unsafe struct NativeStatusButtonOpts public ControlSize Size; } +/// Status spinner: a dither ring while the status is busy that resolves when the work ends: it fills to a disc in the success color with a check, or the danger color with a cross, holds it for a moment and dissolves away. It keeps its space throughout. Returns true while it shows something, so an app can stop calling it after a result. (16 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeStatusSpinnerOpts +{ + /// int (offset 0) + public int Sentinel; + /// points, default 20 (offset 4) + public float Size; + /// the ring while busy, default the text color (offset 8) + public NativeColor Color; + /// the check or cross stays instead of dissolving away (offset 12) + public byte Keep; +} + /// Reactions: icon pills with counts. Clicking toggles `active` and adjusts the count. Returns the index that changed, or -1. (16 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeReaction @@ -1606,13 +1700,13 @@ public unsafe struct NativeFilePickerOpts public nint ListUser; } -/// Code block with syntax highlighting (lang: "c", "cpp", "js", "ts", "python", "rust", "go", "json", "shell", or "text" for none), line numbers, a title bar and a copy button. Long lines scroll sideways. (48 bytes) +/// Code block with syntax highlighting (lang: "c", "cpp", "js", "ts", "python", "rust", "go", "json", "shell", "sql", or "text" for none), line numbers, a title bar and a copy button. Long lines scroll sideways. (48 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeCodeOpts { /// int (offset 0) public int Sentinel; - /// "c", "cpp", "js", "ts", "python", "rust", "go", "json", "shell" or "text" (no colors); shown in the title bar (offset 8) + /// "c", "cpp", "js", "ts", "python", "rust", "go", "json", "shell", "sql" or "text" (no colors); shown in the title bar (offset 8) public nint Lang; /// e.g. a file name (offset 16) public nint Title; @@ -1700,7 +1794,7 @@ public unsafe struct NativeCodeEditorOpts { /// int (offset 0) public int Sentinel; - /// as cui_code_block: "c", "cpp", "js", "ts", "python", "rust", "go", "json", "shell"; "text" for none (offset 8) + /// as cui_code_block: "c", "cpp", "js", "ts", "python", "rust", "go", "json", "shell", "sql"; "text" for none (offset 8) public nint Lang; /// default fill (offset 16) public NativeSize Width; @@ -2030,7 +2124,7 @@ public unsafe struct NativeTickerOpts public float Height; } -/// Heatmap: a rows x cols matrix (values[row * cols + col]) on one hue, light to dark, with a scale below. (56 bytes) +/// Heatmap: a rows x cols matrix (values[row * cols + col]) in five steps from the empty surface to the accent, with the range and a Less / More key below. (56 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeHeatmapOpts { @@ -2046,7 +2140,7 @@ public unsafe struct NativeHeatmapOpts public float Min; /// value range, default the data's (offset 32) public float Max; - /// hue of the scale, default the accent (offset 36) + /// the top step, default the accent; the steps mix toward it from the empty surface (offset 36) public NativeColor Color; /// const char * (offset 40) public nint Format; @@ -2062,7 +2156,7 @@ public unsafe struct NativeCalendarHeatmapOpts public int Sentinel; /// size of a day's square in points, default 11 (offset 4) public float Cell; - /// cui_color (offset 8) + /// the top step, default the accent (offset 8) public NativeColor Color; /// const char * (offset 16) public nint Format; @@ -2070,7 +2164,7 @@ public unsafe struct NativeCalendarHeatmapOpts public nint Unit; } -/// Treemap: rectangles with areas proportional to their values. (16 bytes) +/// Treemap: rectangles with areas proportional to their values, on neutral tiles graded by size, each with its label, value and share. The accent marks only the hovered or selected tile; an item's own `color` fills its tile instead. (16 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeVizItem { @@ -2082,7 +2176,7 @@ public unsafe struct NativeVizItem public NativeColor Color; } -/// cui_treemap_opts (24 bytes) +/// cui_treemap_opts (32 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeTreemapOpts { @@ -2090,13 +2184,15 @@ public unsafe struct NativeTreemapOpts public int Sentinel; /// cui_size (offset 4) public NativeSize Width; - /// float (offset 12) + /// default 300 (offset 12) public float Height; - /// const char * (offset 16) + /// the values, e.g. "%.0f KB" (offset 16) public nint Format; + /// the selected item or -1, kept by you; a click selects, a second click clears. `NULL`: no selection (offset 24) + public nint Selected; } -/// Radar chart: series over shared axes (series[i].values[axis]). (32 bytes) +/// Radar chart: series over shared axes (series[i].values[axis]), light fills with crisp outlines on hairline rings. The last series shows its points, or the one nearest the pointer, with a chip of the hovered value. (32 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeRadarOpts { @@ -2128,7 +2224,7 @@ public unsafe struct NativeFunnelOpts public NativeColor Color; } -/// Sankey: flows between nodes; columns follow the links from the sources. (12 bytes) +/// Sankey: flows between nodes; columns follow the links from the sources. Slim nodes in the colors you give them, flows shaded from source to target color, and hovering a node or a flow lights its whole path upstream and downstream. (12 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeSankeyLink { @@ -2140,7 +2236,7 @@ public unsafe struct NativeSankeyLink public float Value; } -/// cui_sankey_opts (32 bytes) +/// cui_sankey_opts (40 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeSankeyOpts { @@ -2152,8 +2248,10 @@ public unsafe struct NativeSankeyOpts public float Height; /// const char * (offset 16) public nint Format; - /// width of the node bars in points, default 12 (offset 24) + /// width of the node bars in points, default 6 (offset 24) public float NodeWidth; + /// one per node, colored by meaning; `NULL`, or an unset entry, falls back to the palette for outcomes and neutral gray for sources and steps (offset 32) + public nint NodeColors; } /// Waffle: a 10 x 10 grid of squares split by share, with a legend. (24 bytes) @@ -2262,17 +2360,19 @@ public unsafe struct NativeScatterOpts public byte NoLegend; } -/// Radial gauge: one value on a dial with colored bands, labelled ticks, a needle and a target marker, for dashboards (speed, load, temperature, a score against a goal). The needle springs to new values. (8 bytes) +/// Radial gauge: one value as a large number on an arc, for dashboards (load, speed, temperature, a score against a goal). Three styles: CUI_GAUGE_SEGMENTS a ring of short segments, lit in each band's tone up to the value, with the current band's name as a chip under the label CUI_GAUGE_ARC a track and a value arc with round caps, min and max at the ends, and a marker at `target` CUI_GAUGE_RING a slim full ring from the top, with `detail` under it CUI_GAUGE_AUTO (the default) picks the segments when `bands` are given and the arc otherwise. The arc fills to new values with a spring. (16 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeGaugeBand { - /// from the band before (or min) up to `to` (offset 0) + /// the band runs from the band before (or min) up to here (offset 0) public float To; - /// from the band before (or min) up to `to` (offset 4) + /// its color (offset 4) public Tone Tone; + /// shown as a chip while the value is in this band (segments style); `NULL` for none (offset 8) + public nint Name; } -/// cui_radial_gauge_opts (64 bytes) +/// cui_radial_gauge_opts (88 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeRadialGaugeOpts { @@ -2280,26 +2380,32 @@ public unsafe struct NativeRadialGaugeOpts public int Sentinel; /// under the value (offset 8) public nint Label; - /// the value and the tick labels, default "%.0f" (offset 16) + /// the value, the ends and the target, default whole numbers with large ones shortened (1.8k) (offset 16) public nint Format; - /// after the value, smaller (offset 24) + /// after the value, smaller and muted (offset 24) public nint Unit; /// width, default 200; the height follows the sweep (offset 32) public float Size; - /// degrees of arc, default 240 (90 to 300) (offset 36) + /// degrees of arc, default 270 (90 to 300); the ring is always a full turn (offset 36) public float Sweep; /// colored stretches of the arc, each from the one before up to its `to`; at most 16 (offset 40) public nint Bands; /// number of `bands` (offset 48) public int BandCount; - /// labelled divisions, default 5; -1 hides the ticks (offset 52) + /// -1 hides the min and max labels at the ends of the arc (offset 52) public int Ticks; /// a marker on the arc, when show_target is set (offset 56) public float Target; - /// draws the marker at `target` (offset 60) + /// draws the marker at `target`, labelled with its value (arc style) (offset 60) public byte ShowTarget; - /// a thick arc filled to the value instead of a needle (offset 61) + /// kept for older code; no style has a needle (offset 61) public byte NoNeedle; + /// CUI_GAUGE_AUTO picks segments with `bands`, else the arc (offset 64) + public GaugeStyle Style; + /// a muted line under the gauge, e.g. "190 of 500 GB"; `NULL` for none (offset 72) + public nint Detail; + /// the value's color; unset: the band the value is in, else the accent (the ring: the first series color) (offset 80) + public NativeColor Color; } /// Candlestick chart: open, high, low and close per period with volume under it, for prices. The wheel zooms around the pointer, dragging (or Shift+wheel) pans, a crosshair shows each candle's values, and the price axis fits the candles in view. Zoomed out past a few points per candle, candles merge per pixel column, so a long history stays fast. When the view shows the newest candle it follows new ones as they are appended. With the chart focused, Left and Right move the crosshair (Shift: ten at a time), Home and End jump to the ends, + and - zoom and 0 fits everything. (20 bytes) @@ -2576,7 +2682,7 @@ public unsafe struct NativeToolCallOpts public float Seconds; } -/// Agent plan: steps with their status on a connected rail, and progress. (24 bytes) +/// Agent plan: steps with their status on a connected rail, and progress. Reduced motion holds the running glyph still, including in tool calls. (24 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativePlanStep { @@ -2702,7 +2808,7 @@ public unsafe struct NativeModelPickerOpts public Placement Placement; } -/// cui_composer_opts (88 bytes) +/// cui_composer_opts (104 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeComposerOpts { @@ -2728,9 +2834,19 @@ public unsafe struct NativeComposerOpts public int MaxLines; /// cui_size (offset 76) public NativeSize Width; + /// a microphone button beside send, which returns `CUI_COMPOSER_RECORD` (offset 84) + public byte Mic; + /// shows the recorder instead of the text: set it on `CUI_COMPOSER_RECORD`, clear it on cancel or send (offset 85) + public byte Recording; + /// the microphone's levels while recording (0..1, newest last), drawn as a scrolling voice waveform (offset 88) + public nint Levels; + /// number of `levels` (offset 96) + public int LevelCount; + /// how long the take is so far, shown beside the recording dot (offset 100) + public float RecordSeconds; } -/// cui_voice_orb_opts (12 bytes) +/// Deprecated: use the voice session (cui_voice_session), the voice waveform (cui_voice_wave) or the composer's recorder instead. Kept so existing code builds; it gets no new features. Voice orb: a living shape for voice modes. level is the input or output loudness (0..1). Returns true when clicked. (12 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeVoiceOrbOpts { @@ -2742,6 +2858,88 @@ public unsafe struct NativeVoiceOrbOpts public NativeColor Color; } +/// cui_voice_wave_opts (48 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeVoiceWaveOpts +{ + /// int (offset 0) + public int Sentinel; + /// the whole clip resampled to the width, instead of the newest levels scrolling in (offset 4) + public byte Clip; + /// a clip's played fraction (0..1): colors the played part, draws a playhead and seeks; implies `clip` (offset 8) + public nint Progress; + /// one per level, `CUI_VOICE_YOU` or `CUI_VOICE_REPLY`, for two voices on one timeline; `NULL`: all `owner` (offset 16) + public nint Owners; + /// whose voice it is: you in the foreground color, the reply in the accent (offset 24) + public VoiceOwner Owner; + /// lit dots in this color instead of the owner's (offset 28) + public NativeColor Color; + /// distance between dot centers in points, default 3.6; the strip is 14 pitches tall (offset 32) + public float Pitch; + /// how far an arrow key seeks, as a fraction of the clip, default 0.05 (offset 36) + public float Step; + /// default fill (offset 40) + public NativeSize Width; +} + +/// Voice note: a recorded message in a bubble, with play and pause, its voice waveform as the seek bar (click or drag; the arrow keys step), the time played and the length, and a speed chip that cycles 1x, 1.5x and 2x. It plays nothing itself: you play the audio and pass the position on every frame. Returns CUI_PLAYER_TOGGLE, CUI_PLAYER_SEEK and CUI_PLAYER_SPEED. (32 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeVoiceNote +{ + /// the clip's loudness, 0..1, oldest first (resampled to fit) (offset 0) + public nint Levels; + /// number of `levels` (offset 8) + public int Count; + /// seconds played; written when the user seeks (offset 12) + public float Position; + /// length of the clip in seconds (offset 16) + public float Duration; + /// playback rate, 1, 1.5 or 2 (0 reads as 1); the chip moves it to the next (offset 20) + public float Speed; + /// shows pause instead of play; the play button flips it (offset 24) + public byte Playing; +} + +/// cui_voice_note_opts (16 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeVoiceNoteOpts +{ + /// int (offset 0) + public int Sentinel; + /// a message you sent: tinted with the accent and placed at the end of the row (offset 4) + public byte Mine; + /// default 330 points, narrower in a narrower container (offset 8) + public NativeSize Width; +} + +/// cui_voice_session_opts (88 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeVoiceSessionOpts +{ + /// int (offset 0) + public int Sentinel; + /// one per level: `CUI_VOICE_YOU` or `CUI_VOICE_REPLY`; `NULL`: all yours (offset 8) + public nint Owners; + /// text for the state instead of "Listening", "Thinking...", "Speaking", "Muted" or "Waiting" (offset 16) + public nint Label; + /// the words of the current turn spoken so far, under the strip; `NULL` for none (offset 24) + public nint Transcript; + /// the rest of the turn, not spoken yet: dimmed after `transcript` (offset 32) + public nint Upcoming; + /// whose turn the transcript is, named before it (offset 40) + public VoiceOwner Speaker; + /// your name in the legend and the transcript, default "You" (offset 48) + public nint You; + /// the assistant's name, default "Assistant" (offset 56) + public nint Assistant; + /// the microphone is muted: the button reads Unmute; a click flips it. `NULL` leaves Mute out (offset 64) + public nint Muted; + /// leaves the End button out (offset 72) + public byte NoEnd; + /// default fill (offset 76) + public NativeSize Width; +} + /// Kanban board: columns of cards you drag between columns and within them. The board reports drops; you move the card in your data: (16 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeKanbanMove @@ -2860,7 +3058,7 @@ public unsafe struct NativeMonthResult public byte MonthChanged; } -/// 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. (40 bytes) +/// cui_gantt_task (48 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeGanttTask { @@ -2872,14 +3070,16 @@ public unsafe struct NativeGanttTask public int Start; /// day the bar ends, counted from `origin` (it is end - start days long); dragging changes it (offset 20) public int End; - /// 0..1: the part of the bar drawn darker, as done (offset 24) + /// 0..1: the part of the bar filled in, as done, with the percentage at its end (offset 24) public float Progress; - /// cui_tone (offset 28) + /// overrides the state's color when set (offset 28) public Tone Tone; - /// index of the task this one waits for: an arrow runs from its end to this start. -1 for none (offset 32) + /// index of the task this one waits for: a curve runs from its end to this start. -1 for none (offset 32) public int DependsOn; - /// a diamond at `start` instead of a bar; it cannot be resized (offset 36) + /// an outlined diamond at `start`, labelled with its name and date, instead of a bar; it cannot be resized (offset 36) public byte Milestone; + /// done, active or planned; CUI_GANTT_AUTO works it out from `progress` and `today` (offset 40) + public GanttState State; } /// cui_gantt_opts (28 bytes) @@ -2894,7 +3094,7 @@ public unsafe struct NativeGanttOpts public float RowHeight; /// cui_size (offset 12) public NativeSize Height; - /// day to mark as today, counted from `origin`; 0 marks none (offset 20) + /// day to mark as today, counted from `origin`, with an accent line and a "Today" chip; 0 marks none (offset 20) public int Today; /// _Bool (offset 24) public byte ReadOnly; @@ -2914,7 +3114,7 @@ public unsafe struct NativeHoverCardOpts public float Delay; } -/// Confirm popover: a small question anchored to the previous component. Open it with cui_popover_open(ui, id). Returns true when confirmed. (48 bytes) +/// Confirm popover: a small question anchored to the previous component. Open it with cui_popover_open(ui, id). A new Enter press can confirm it. Returns true when confirmed. (48 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeConfirmPopoverOpts { @@ -3032,6 +3232,26 @@ public unsafe struct NativeChecklistOpts public nint Description; } +/// Veil: covers what is built inside it (a picture, a secret such as an API key, a spoiler) with a slowly moving dither in muted tones that keeps its space. A click, or Enter or Space, reveals it: the veil dissolves dot by dot in about a quarter of a second, and comes back the same way when *revealed is set to false again. While covered, the content takes no clicks and no keyboard focus. Reduced motion holds the noise still and reveals at once. (48 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeVeilOpts +{ + /// int (offset 0) + public int Sentinel; + /// a line in the middle of the veil, e.g. "Sensitive image"; `NULL` for none (offset 8) + public nint Label; + /// a smaller line under it, e.g. "Click to show" (offset 16) + public nint Hint; + /// a click on the revealed content covers it again (offset 24) + public byte Toggle; + /// corners of the veil, default 0 (offset 28) + public float Radius; + /// the veil's ground, default the muted surface; its dots are a step toward the text color (offset 32) + public NativeColor Color; + /// default: the content's width (offset 36) + public NativeSize Width; +} + /// Multi-select: a field with chips for the chosen items and a list with checkboxes (and search). selected[i] is true for chosen items. (48 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeMultiSelectOpts @@ -3426,17 +3646,19 @@ public unsafe struct NativeMenuBarMenuOpts public byte Disabled; } -/// 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 "more" menu; an item chosen there returns true on the next frame. (8 bytes) +/// cui_toolbar_opts (12 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeToolbarOpts { /// int (offset 0) public int Sentinel; - /// _Bool (offset 4) + /// plain style: no hairline under the strip (offset 4) public byte NoBorder; + /// cui_toolbar_style (offset 8) + public ToolbarStyle Style; } -/// cui_tool_opts (48 bytes) +/// cui_tool_opts (56 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeToolOpts { @@ -3452,6 +3674,20 @@ public unsafe struct NativeToolOpts public nint Toggle; /// _Bool (offset 40) public byte Disabled; + /// icon and label color: always on a plain button (CUI_TONE_DANGER for delete), only while on for a toggle (offset 44) + public Tone Tone; + /// the corner mark that says the button opens more options (cui_flyout_mark) (offset 48) + public byte Flyout; +} + +/// An inset set of icons of which one is on, like a segmented control. Left and Right move the choice. Returns true when *index changed. In the overflow menu each icon is an item named by its label. (16 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeToolbarRadioOpts +{ + /// int (offset 0) + public int Sentinel; + /// a name for each icon, for the overflow menu; `NULL` leaves them unnamed (offset 8) + public nint Labels; } /// 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. (8 bytes) @@ -4014,6 +4250,188 @@ public unsafe struct NativeGradientResult public int Selected; } +/// cui_status_tag_opts (40 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeStatusTagOpts +{ + /// int (offset 0) + public int Sentinel; + /// CUI_SIZE_SM is 24 points high, for tables and tag groups; default 30 (offset 4) + public ControlSize Size; + /// the tag becomes a button that shows an x on hover: the call returns true when it is clicked, or on Enter, Delete or Backspace (offset 8) + public byte Removable; + /// instead of the state's icon (offset 16) + public nint Icon; + /// instead of the state's color; 0 keeps it (gray for CUI_TAG_CUSTOM) (offset 24) + public Tone Tone; + /// identity of a removable tag when two share a label (offset 32) + public nint Id; +} + +/// Ratio slider: a whole split into two named parts, with a bar between them to drag. *ratio is the first part's share, 0..1. Both names and percentages stay readable: the split stops where a part would get too narrow for them. Arrows move one step (Shift: ten), Home and End go to the limits. (28 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeRatioSliderOpts +{ + /// int (offset 0) + public int Sentinel; + /// color of the first part; 0 uses the accent (offset 4) + public Tone Tone; + /// arrow key step as a share, default 0.01 (one percent) (offset 8) + public float Step; + /// default 52 (offset 12) + public float Height; + /// default fill (offset 16) + public NativeSize Width; + /// _Bool (offset 24) + public byte Disabled; +} + +/// cui_gradient_slider_opts (88 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeGradientSliderOpts +{ + /// int (offset 0) + public int Sentinel; + /// the built-in track, default the hue wheel; ignored when `stops` is set (offset 4) + public GradientTrack Track; + /// your own track, positions 0..1 (offset 8) + public nint Stops; + /// int (offset 16) + public int StopCount; + /// CUI_GRADIENT_OPACITY: the color it fades in; unset: the accent (offset 20) + public NativeColor Color; + /// receives the color under the thumb (offset 24) + public nint ColorOut; + /// snap to multiples of step from min; 0 = continuous (offset 32) + public float Step; + /// printf format for the value; default "%.0f°" for hue, "%.0f K" for temperature, a percent of the range for opacity, "%.0f" for stops (offset 40) + public nint Format; + /// text at the right of the label instead of the formatted value (offset 48) + public nint Value; + /// a dot in the color under the thumb after the track (offset 56) + public byte Swatch; + /// icon of a button after the track, e.g. a picker; a click returns CUI_WELL_ACTION (offset 64) + public nint Tool; + /// names the tool button (offset 72) + public nint ToolTooltip; + /// shows the tool button pressed, e.g. while picking (offset 80) + public byte ToolOn; + /// no well around it (offset 81) + public byte Plain; + /// _Bool (offset 82) + public byte Disabled; +} + +/// Step slider: a few discrete stops marked with dots; the thumb snaps to each and glides between them. Arrows move one stop, Home and End go to the ends. Returns CUI_WELL_* flags. (56 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeStepSliderOpts +{ + /// int (offset 0) + public int Sentinel; + /// a name for each stop, shown as the value: labels[*value - min] (offset 8) + public nint Labels; + /// printf format for the value, default "%d" (offset 16) + public nint Format; + /// text at the right of the label instead (offset 24) + public nint Value; + /// icon of a button after the track; a click returns CUI_WELL_ACTION (offset 32) + public nint Tool; + /// const char * (offset 40) + public nint ToolTooltip; + /// _Bool (offset 48) + public byte ToolOn; + /// _Bool (offset 49) + public byte Plain; + /// _Bool (offset 50) + public byte Disabled; +} + +/// Palette strip: a joined row of color swatches (up to 16). A click on a swatch locks or unlocks it, and the shuffle button after the row recolors the unlocked ones. The swatch under the pointer widens and shows its hex code. Tab reaches the swatches, Left and Right move between them, Space or Enter locks. Returns CUI_WELL_CHANGED when a lock or a color changed and CUI_WELL_ACTION when shuffle was pressed. (40 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativePaletteStripOpts +{ + /// int (offset 0) + public int Sentinel; + /// shuffle state, yours: shuffle recolors the unlocked swatches from it and moves it on, so the same seed gives the same colors; NULL only reports the press (offset 8) + public nint Seed; + /// text at the right of the label, e.g. "Click a swatch to lock it" (offset 16) + public nint Value; + /// no shuffle button (offset 24) + public byte NoShuffle; + /// default 32 (offset 28) + public float Height; + /// _Bool (offset 32) + public byte Plain; +} + +/// Aspect ratio picker: each choice drawn as a rectangle of its own proportions with its ratio under it, and an optional dashed "Custom". The value at the right of the label is the size in pixels. Tab reaches the choices, Left and Right move between them. (16 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeAspect +{ + /// label NULL shows "w:h" (offset 0) + public int W; + /// label NULL shows "w:h" (offset 4) + public int H; + /// label NULL shows "w:h" (offset 8) + public nint Label; +} + +/// cui_aspect_picker_opts (56 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeAspectPickerOpts +{ + /// int (offset 0) + public int Sentinel; + /// your choices; NULL: 1:1, 4:5, 3:2, 16:9, 9:16 and 21:9 (offset 8) + public nint Ratios; + /// int (offset 16) + public int Count; + /// adds a "Custom" choice after a divider; *index == the count of choices selects it (offset 20) + public byte Custom; + /// default "Custom" (offset 24) + public nint CustomLabel; + /// the short side in pixels, for the size at the right of the label; default 1080, negative hides the size (offset 32) + public int Base; + /// text at the right of the label instead of the size (offset 40) + public nint Value; + /// _Bool (offset 48) + public byte Plain; +} + +/// Option field with action: a compact segmented choice and the icon button of the action it feeds (save as png, jpg or webp, then download). Returns CUI_WELL_* flags. (40 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeOptionActionOpts +{ + /// int (offset 0) + public int Sentinel; + /// names the action button (offset 8) + public nint Tooltip; + /// shows the action button pressed (offset 16) + public byte ActionOn; + /// _Bool (offset 17) + public byte ActionDisabled; + /// text at the right of the label (offset 24) + public nint Value; + /// _Bool (offset 32) + public byte Plain; +} + +/// Seed field: a random seed in the monospaced font. The dice rolls a new one, its digits rolling into place, and the lock keeps it fixed (the dice is off while locked). Returns CUI_WELL_CHANGED when the seed or the lock changed and CUI_WELL_ACTION on a roll. (40 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeSeedFieldOpts +{ + /// int (offset 0) + public int Sentinel; + /// text at the right of the label (offset 8) + public nint Value; + /// the mode word in the field while unlocked, default "random" (offset 16) + public nint RandomText; + /// and while locked, default "fixed" (offset 24) + public nint FixedText; + /// _Bool (offset 32) + public byte Plain; +} + /// cui_timeline_clip (32 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeTimelineClip @@ -4610,7 +5028,7 @@ public unsafe struct NativeTraceResult { /// `*selected` changed this frame (click or keys) (offset 0) public byte SelectionChanged; - /// the visible time range or the scroll in `*view` changed (zoom, pan, fit) (offset 1) + /// time range, scroll position, or measurement in `*view` changed (offset 1) public byte ViewChanged; /// span under the pointer, or -1 (offset 4) public int Hovered; @@ -5108,7 +5526,7 @@ public unsafe struct NativeDotChartOpts [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeDotChartResult { - /// the sample under the pointer or the keyboard cursor, or -1 (offset 0) + /// pointer or keyboard sample, middle on first keyboard activation, else -1 (offset 0) public int Hovered; /// that sample's x, in x units (offset 8) public double X; @@ -5204,6 +5622,214 @@ public unsafe struct NativeDotDisplayOpts public NativeSize Width; } +/// cui_text_format (24 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeTextFormat +{ + /// the text color, as a tone so it follows the theme; CUI_TONE_NEUTRAL is the text color (offset 0) + public Tone Color; + /// _Bool (offset 4) + public byte Bold; + /// _Bool (offset 5) + public byte Underline; + /// the selection is a link: the link button shows pressed (offset 6) + public byte Link; + /// index into the styles (default: 0 Header, 1 Title, 2 Subtitle, 3 Normal text) (offset 8) + public int Style; + /// the size readout, in your units; set from the style when the style changes (offset 12) + public float Size; + /// cui_format_align (offset 16) + public FormatAlign Align; + /// cui_format_list (offset 20) + public FormatList List; +} + +/// One text style of the style menu. (24 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeTextStyle +{ + /// "Header" (offset 0) + public nint Name; + /// the size it sets in your document, shown in the readout, e.g. 44 (offset 8) + public float Size; + /// the size of its name in the menu, in points (offset 12) + public float PreviewSize; + /// the font of its name in the menu (offset 16) + public Font Font; +} + +/// cui_format_bar_opts (72 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeFormatBarOpts +{ + /// int (offset 0) + public int Sentinel; + /// `NULL`: Header, Title, Subtitle and Normal text (offset 8) + public nint Styles; + /// int (offset 16) + public int StyleCount; + /// the color grid; `NULL`: eight tones, the text color first (offset 24) + public nint Colors; + /// int (offset 32) + public int ColorCount; + /// a muted line under the styles, default "Text options"; "" leaves it out (offset 40) + public nint Footer; + /// keycaps beside it, default "Ctrl Alt 0" ("" for none); a hint, the shortcut is yours (offset 48) + public nint FooterKeys; + /// default "Delete this text?" (offset 56) + public nint DeleteQuestion; + /// leaves out the delete button (offset 64) + public byte NoDelete; + /// leaves out the "..." button (offset 65) + public byte NoMore; +} + +/// Live cursors: other people's pointers over the previous component (a canvas, a document, a node editor), each an arrow in their color with a name flag and an optional chat bubble. You pass where each pointer is whenever it changes; the cursors glide there, at the same speed at any frame rate. Positions are points from the component's top-left corner, or canvas points under `view` (the node editor's pan and zoom). Cursors only draw: they take no input and no focus. (48 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeLiveUser +{ + /// on the flag, and the identity that keeps a cursor gliding: keep it stable (offset 0) + public nint Name; + /// the cursor, flag and avatar; unset: `tone` (offset 8) + public NativeColor Color; + /// the color as a tone of the theme when `color` is unset; 0: a tone chosen from the name (offset 12) + public Tone Tone; + /// where the pointer is (offset 16) + public float X; + /// where the pointer is (offset 20) + public float Y; + /// a chat bubble under the flag; `NULL` for none (offset 24) + public nint Says; + /// presence pill: a ring and moving level bars on this person (offset 32) + public byte Speaking; + /// the pointer is hidden (it left the canvas); still in the presence pill (offset 33) + public byte Away; + /// presence pill: a picture instead of the initials (offset 40) + public nuint Avatar; +} + +/// cui_live_cursors_opts (24 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeLiveCursorsOpts +{ + /// int (offset 0) + public int Sentinel; + /// positions are canvas points under this pan and zoom; `NULL`: points in the component (offset 8) + public nint View; + /// jump to each new position (offset 16) + public byte NoGlide; +} + +/// Presence pill: who is here, as overlapping avatars in their colors. Whoever is speaking gets a ring, and the pill shows moving level bars and their name. (12 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativePresencePillOpts +{ + /// int (offset 0) + public int Sentinel; + /// avatar size, default 26 (offset 4) + public float Size; + /// default 5; the rest become "+n" (offset 8) + public int MaxVisible; +} + +/// Selection ring: a ring in someone's color around the previous component, for "this item is selected by Kate", with an optional name flag on its corner. (24 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeSelectionRingOpts +{ + /// int (offset 0) + public int Sentinel; + /// a small flag at the top end corner; `NULL` for none (offset 8) + public nint Name; + /// the ring's corner radius; 0 follows the component's corners (offset 16) + public float Radius; +} + +/// Canvas controls: a floating rail of zoom controls over the previous component, at its end edge: zoom in, the zoom as a percentage (a click resets it to 100%), zoom out, fit, and toggles of your own (grid, layers). It drives a pan and zoom view, the same struct as the node editor's, so it works with a node editor as it is; zooming keeps the middle of the component in place and eases there. Zoom steps through presets (25% to 400% unless you pass your own). Tab moves through the buttons. (24 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeCanvasToggle +{ + /// const char * (offset 0) + public nint Icon; + /// the tooltip (offset 8) + public nint Label; + /// flipped on click, shown pressed while true (offset 16) + public nint On; +} + +/// cui_canvas_controls_opts (56 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeCanvasControlsOpts +{ + /// int (offset 0) + public int Sentinel; + /// zoom presets, ascending; `NULL`: 0.25 0.33 0.5 0.67 0.8 1 1.25 1.5 2 3 4 (offset 8) + public nint Steps; + /// int (offset 16) + public int StepCount; + /// the content's bounds in canvas points, for fit; empty: fit is only reported (offset 20) + public NativeRect Content; + /// const cui_canvas_toggle * (offset 40) + public nint Toggles; + /// int (offset 48) + public int ToggleCount; + /// leaves out the fit button (offset 52) + public byte NoFit; + /// the rail sits at the start edge (left, or right in a right-to-left interface) (offset 53) + public byte StartSide; +} + +/// Result card: a picture with rounded corners, an optional status chip in the top corner, and a title and caption on a soft fade at the bottom, for a render, an export or a generated image. Put its actions under it in a floating toolbar (cui_toolbar with CUI_TOOLBAR_FLOATING, cycle pickers for choices like 2x or PNG). The picture fills the card and is cropped to it. The card is focusable; a click, Enter or Space returns true (open it large). (48 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeResultCardOpts +{ + /// int (offset 0) + public int Sentinel; + /// under the title, wraps (offset 8) + public nint Caption; + /// the status chip, e.g. "Done in 4.2 s"; `NULL` for none (offset 16) + public nint Badge; + /// the chip's dot, default success (offset 24) + public Tone BadgeTone; + /// the picture's size in pixels, to crop it without stretching; 0: stretched (offset 28) + public int ImageW; + /// the picture's size in pixels, to crop it without stretching; 0: stretched (offset 32) + public int ImageH; + /// default fill, up to 320 (offset 36) + public NativeSize Width; + /// height over width, default 1.25 (offset 44) + public float Aspect; +} + +/// Selection bar: a floating bar that slides up under the previous component (a list, a table, a grid) while something in it is selected: "3 selected" with a clear button, then labeled actions. Esc clears the selection too. Give it the count, or your array of flags in `selected` and it counts and clears them itself. (24 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeSelectionAction +{ + /// const char * (offset 0) + public nint Icon; + /// const char * (offset 8) + public nint Label; + /// CUI_TONE_DANGER for a destructive action (offset 16) + public Tone Tone; +} + +/// cui_selection_bar_opts (40 bytes) +[StructLayout(LayoutKind.Sequential)] +public unsafe struct NativeSelectionBarOpts +{ + /// int (offset 0) + public int Sentinel; + /// your flags, one per item: counted, and cleared by the clear button and Esc (offset 8) + public nint Selected; + /// how many flags `selected` holds (offset 16) + public int ItemCount; + /// default "%d selected" (offset 24) + public nint CountFormat; + /// the component it sits under; 0: the previous component (offset 32) + public uint Anchor; + /// Esc does not clear (offset 36) + public byte NoEscape; +} + /// cui_corners (16 bytes) [StructLayout(LayoutKind.Sequential)] public unsafe struct NativeCorners diff --git a/src/CuiSharp/Interop/UiMarshal.cs b/src/CuiSharp/Interop/UiMarshal.cs index e7673f9..521670d 100644 --- a/src/CuiSharp/Interop/UiMarshal.cs +++ b/src/CuiSharp/Interop/UiMarshal.cs @@ -23,6 +23,18 @@ internal static nint Values(ReadOnlySpan values) where T : unmanaged internal static Interop.NativeSize ToNative(Size value) => new() { Kind = value.Kind, Value = value.Value }; internal static Interop.NativeColor ToNative(Color value) => new() { R = value.R, G = value.G, B = value.B, A = value.A }; + + /// + /// Colors as native entries: `Color` and `cui_color` are different structs, so an array of them + /// converts one element at a time into the frame arena rather than being copied as bytes. + /// + internal static nint Colors(ReadOnlySpan values) + { + if (values.IsEmpty) return 0; + Interop.NativeColor* target = Utf8.AllocFrame(values.Length); + for (int i = 0; i < values.Length; i++) target[i] = ToNative(values[i]); + return (nint)target; + } internal static Interop.NativeDate ToNative(Date value) => new() { Year = value.Year, Month = value.Month, Day = value.Day }; internal static Interop.NativeRect ToNative(RectF value) => new() { X = value.X, Y = value.Y, W = value.W, H = value.H }; internal static Date FromNative(Interop.NativeDate value) => new(value.Year, value.Month, value.Day); @@ -57,4 +69,10 @@ internal static bool[] ReadBooleans(byte* source, int capacity) for (int i = 0; i < capacity; i++) result[i] = source[i] != 0; return result; } + + /// Copies native colors back into the caller's span, up to its length. + internal static void ReadColors(Interop.NativeColor* source, Span destination) + { + for (int i = 0; i < destination.Length; i++) destination[i] = FromNative(source[i]); + } } diff --git a/src/CuiSharp/Ui/AiInterfaces.g.cs b/src/CuiSharp/Ui/AiInterfaces.g.cs index 6bfd82a..a4a9011 100644 --- a/src/CuiSharp/Ui/AiInterfaces.g.cs +++ b/src/CuiSharp/Ui/AiInterfaces.g.cs @@ -37,7 +37,7 @@ public void ToolCall(UiText id, UiText name, ToolCallOpts o = default) WidgetRecorder.Note(ui.Handle, "ToolCall", id); } - /// Agent plan: steps with their status on a connected rail, and progress. + /// Agent plan: steps with their status on a connected rail, and progress. Reduced motion holds the running glyph still, including in tool calls. public int AgentPlan(UiText id, ReadOnlySpan steps, AgentPlanOpts o = default) { var __steps = Utf8.AllocFrame(steps.Length); @@ -130,7 +130,7 @@ public ComposerEvents ChatComposer(UiText id, ref string buf, int cap, ref int r return (ComposerEvents)__result; } - /// cui_voice_orb_ex + /// Deprecated: use the voice session (cui_voice_session), the voice waveform (cui_voice_wave) or the composer's recorder instead. Kept so existing code builds; it gets no new features. Voice orb: a living shape for voice modes. level is the input or output loudness (0..1). Returns true when clicked. public bool VoiceOrb(UiText id, VoiceState state, float level, VoiceOrbOpts o = default) { var __opts = o.ToNative(); diff --git a/src/CuiSharp/Ui/AppChromeMenuBarToolbarStatusBarDocumentTabs.g.cs b/src/CuiSharp/Ui/AppChromeMenuBarToolbarStatusBarDocumentTabs.g.cs index 1d30a19..5286477 100644 --- a/src/CuiSharp/Ui/AppChromeMenuBarToolbarStatusBarDocumentTabs.g.cs +++ b/src/CuiSharp/Ui/AppChromeMenuBarToolbarStatusBarDocumentTabs.g.cs @@ -37,7 +37,7 @@ public void MenuBarMenu(UiText label, DrawFn body, MenuBarMenuOpts o = default) if (scope) body(ui); } - /// 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 "more" menu; an item chosen there returns true on the next frame. + /// 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 "more" menu; an item chosen there returns true on the next frame. Tab moves through the items. public LayoutScope Toolbar(UiText id, ToolbarOpts o = default) { var __opts = o.ToNative(); @@ -68,6 +68,52 @@ public void ToolbarSpacer() Native.ToolbarSpacer(ui.Handle); } + /// A group of items: a raised well in the grouped style, set apart by separators in the others. + public LayoutScope ToolbarGroup() + { + Native.ToolbarGroupBegin(ui.Handle); + return new LayoutScope(ui.Handle, &Native.ToolbarGroupEnd, "ToolbarGroup", null); + } + + /// An inset set of icons of which one is on, like a segmented control. Left and Right move the choice. Returns true when *index changed. In the overflow menu each icon is an item named by its label. + public bool ToolbarRadio(UiText id, ReadOnlySpan icons, ref int index, ToolbarRadioOpts o = default) + { + if (o.Labels is { } __labels && __labels.Length < icons.Length) + throw new ArgumentException($"Labels needs at least {icons.Length} entries.", nameof(o)); + var __opts = o.ToNative(); + var __result = Native.ToolbarRadio(ui.Handle, Utf8.Get(id), UiMarshal.Strings(icons), (int)(icons.Length), ref index, in __opts); + WidgetRecorder.NoteValue(ui.Handle, "ToolbarRadio", id, (double)index); + return __result != 0; + } + + /// The main action at the end of a grouped toolbar: a larger button filled with the text color. + public bool ToolbarPrimary(UiText icon, ref bool toggle, ToolOpts o = default) + { + byte __toggle = (byte)(toggle ? 1 : 0); + var __opts = o.ToNative((nint)(&__toggle)); + var __result = Native.ToolbarPrimary(ui.Handle, Utf8.Get(icon), in __opts); + toggle = __toggle != 0; + WidgetRecorder.NoteValue(ui.Handle, "ToolbarPrimary", icon, toggle); + return __result != 0; + } + + /// A small picker that steps through its choices on each click ("1x", "2x", "4x"). Returns true when *index changed. + public bool ToolbarCycle(UiText id, ReadOnlySpan items, ref int index, ref bool toggle, ToolOpts o = default) + { + byte __toggle = (byte)(toggle ? 1 : 0); + var __opts = o.ToNative((nint)(&__toggle)); + var __result = Native.ToolbarCycle(ui.Handle, Utf8.Get(id), UiMarshal.Strings(items), (int)(items.Length), ref index, in __opts); + toggle = __toggle != 0; + WidgetRecorder.NoteValue(ui.Handle, "ToolbarCycle", id, (double)index); + return __result != 0; + } + + /// A small triangle in the corner of the previous component (at the end side) that says it opens a flyout or a menu. Any button can take it. + public void FlyoutMark() + { + Native.FlyoutMark(ui.Handle); + } + /// 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. public LayoutScope StatusBar(UiText id, StatusBarOpts o = default) { diff --git a/src/CuiSharp/Ui/Capture.g.cs b/src/CuiSharp/Ui/Capture.g.cs index 5ffc04b..86b1e61 100644 --- a/src/CuiSharp/Ui/Capture.g.cs +++ b/src/CuiSharp/Ui/Capture.g.cs @@ -29,7 +29,7 @@ public void SignatureClear(UiText id) WidgetRecorder.Note(ui.Handle, "SignatureClear", id); } - /// 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. "png;jpg;pdf". + /// Build a dropzone and show drag feedback only while it can accept a drop. public int Dropzone(UiText id, DropzoneOpts o = default) { var __opts = o.ToNative(); diff --git a/src/CuiSharp/Ui/Code.g.cs b/src/CuiSharp/Ui/Code.g.cs index c487371..e27c79a 100644 --- a/src/CuiSharp/Ui/Code.g.cs +++ b/src/CuiSharp/Ui/Code.g.cs @@ -13,7 +13,7 @@ public static unsafe class CodeUiExtensions { extension(Ui ui) { - /// Code block with syntax highlighting (lang: "c", "cpp", "js", "ts", "python", "rust", "go", "json", "shell", or "text" for none), line numbers, a title bar and a copy button. Long lines scroll sideways. + /// Code block with syntax highlighting (lang: "c", "cpp", "js", "ts", "python", "rust", "go", "json", "shell", "sql", or "text" for none), line numbers, a title bar and a copy button. Long lines scroll sideways. public void CodeBlock(UiText id, UiText code, CodeOpts o = default) { var __opts = o.ToNative(); diff --git a/src/CuiSharp/Ui/Conversation.g.cs b/src/CuiSharp/Ui/Conversation.g.cs index 00358b3..aa5a72b 100644 --- a/src/CuiSharp/Ui/Conversation.g.cs +++ b/src/CuiSharp/Ui/Conversation.g.cs @@ -38,7 +38,7 @@ public void ChatDivider(UiText label) WidgetRecorder.Note(ui.Handle, "ChatDivider", label); } - /// bouncing dots + /// bouncing dots, still with reduced motion public void TypingIndicator(UiText name) { Native.TypingIndicator(ui.Handle, Utf8.Get(name)); diff --git a/src/CuiSharp/Ui/CreativeControls.g.cs b/src/CuiSharp/Ui/CreativeControls.g.cs new file mode 100644 index 0000000..95030a8 --- /dev/null +++ b/src/CuiSharp/Ui/CreativeControls.g.cs @@ -0,0 +1,101 @@ +// +// Generated by tools/bindgen.cs from native/CUI/include/cui/*.h. +// Do not edit: change the generator or bindings/overrides.json and run +// dotnet run tools/bindgen.cs +// +#nullable enable +using System.Runtime.InteropServices; +using CuiSharp.Interop; + +namespace CuiSharp; + +public static unsafe class CreativeControlsUiExtensions +{ + extension(Ui ui) + { + /// cui_status_tag_ex + public bool StatusTag(UiText label, TagStatus status, StatusTagOpts o = default) + { + var __opts = o.ToNative(); + var __result = Native.StatusTag(ui.Handle, Utf8.Get(label), status, in __opts); + WidgetRecorder.Note(ui.Handle, "StatusTag", label); + return __result != 0; + } + + /// Ratio slider: a whole split into two named parts, with a bar between them to drag. *ratio is the first part's share, 0..1. Both names and percentages stay readable: the split stops where a part would get too narrow for them. Arrows move one step (Shift: ten), Home and End go to the limits. + public bool RatioSlider(UiText first, UiText second, ref float ratio, RatioSliderOpts o = default) + { + var __opts = o.ToNative(); + var __result = Native.RatioSlider(ui.Handle, Utf8.Get(first), Utf8.Get(second), ref ratio, in __opts); + WidgetRecorder.NoteValue(ui.Handle, "RatioSlider", first, (double)ratio); + return __result != 0; + } + + /// Edit a gradient slider without snapping a passive model value or an endpoint. + public WellEvents GradientSlider(UiText label, ref float value, float min, float max, ref Color colorout, GradientSliderOpts o = default) + { + NativeColor __colorout = UiMarshal.ToNative(colorout); + var __opts = o.ToNative((nint)(&__colorout)); + var __result = Native.GradientSlider(ui.Handle, Utf8.Get(label), ref value, min, max, in __opts); + colorout = UiMarshal.FromNative(__colorout); + WidgetRecorder.NoteValue(ui.Handle, "GradientSlider", label, (double)value); + return (WellEvents)__result; + } + + /// Same as the overload with ref colorout, but reports nothing back: the state pointer is null, so the widget stores no state the caller could read. + public WellEvents GradientSlider(UiText label, ref float value, float min, float max, GradientSliderOpts o = default) + { + var __opts = o.ToNative(0); + var __result = Native.GradientSlider(ui.Handle, Utf8.Get(label), ref value, min, max, in __opts); + WidgetRecorder.NoteValue(ui.Handle, "GradientSlider", label, (double)value); + return (WellEvents)__result; + } + + /// Step slider: a few discrete stops marked with dots; the thumb snaps to each and glides between them. Arrows move one stop, Home and End go to the ends. Returns CUI_WELL_* flags. + public WellEvents StepSlider(UiText label, ref int value, int min, int max, StepSliderOpts o = default) + { + if (max <= min) + { + if (min == int.MaxValue) throw new ArgumentOutOfRangeException(nameof(min), "The range must leave room for two stops."); + max = min + 1; + } + if ((long)max - min >= int.MaxValue) throw new ArgumentOutOfRangeException(nameof(max), "The step count must fit in a native int."); + if (o.Labels is { } __labels && __labels.Length < (long)max - min + 1) + throw new ArgumentException($"Labels needs at least {(long)max - min + 1} entries.", nameof(o)); + var __opts = o.ToNative(); + var __result = Native.StepSlider(ui.Handle, Utf8.Get(label), ref value, min, max, in __opts); + WidgetRecorder.NoteValue(ui.Handle, "StepSlider", label, (double)value); + return (WellEvents)__result; + } + + /// cui_aspect_picker_ex + public bool AspectPicker(UiText label, ref int index, AspectPickerOpts o = default) + { + var __opts = o.ToNative(); + var __result = Native.AspectPicker(ui.Handle, Utf8.Get(label), ref index, in __opts); + WidgetRecorder.NoteValue(ui.Handle, "AspectPicker", label, (double)index); + return __result != 0; + } + + /// Option field with action: a compact segmented choice and the icon button of the action it feeds (save as png, jpg or webp, then download). Returns CUI_WELL_* flags. + public WellEvents OptionAction(UiText label, ReadOnlySpan items, ref int index, UiText icon, OptionActionOpts o = default) + { + var __opts = o.ToNative(); + var __result = Native.OptionAction(ui.Handle, Utf8.Get(label), UiMarshal.Strings(items), (int)(items.Length), ref index, Utf8.Get(icon), in __opts); + WidgetRecorder.NoteValue(ui.Handle, "OptionAction", label, (double)index); + return (WellEvents)__result; + } + + /// Seed field: a random seed in the monospaced font. The dice rolls a new one, its digits rolling into place, and the lock keeps it fixed (the dice is off while locked). Returns CUI_WELL_CHANGED when the seed or the lock changed and CUI_WELL_ACTION on a roll. + public WellEvents SeedField(UiText label, ref uint seed, ref bool locked, SeedFieldOpts o = default) + { + byte __locked = (byte)(locked ? 1 : 0); + var __opts = o.ToNative(); + var __result = Native.SeedField(ui.Handle, Utf8.Get(label), ref seed, (nint)(&__locked), in __opts); + locked = __locked != 0; + WidgetRecorder.NoteValue(ui.Handle, "SeedField", label, locked); + return (WellEvents)__result; + } + + } +} diff --git a/src/CuiSharp/Ui/CuiVoice.cs b/src/CuiSharp/Ui/CuiVoice.cs new file mode 100644 index 0000000..c77987f --- /dev/null +++ b/src/CuiSharp/Ui/CuiVoice.cs @@ -0,0 +1,32 @@ +using CuiSharp.Interop; + +namespace CuiSharp; + +/// +/// Voice helpers without a frame: the resampling the waveform strip does, for keeping a short +/// waveform with a recorded message. +/// +public static class CuiVoice +{ + /// + /// Resamples a clip to levels the way the clip strip does: each + /// column takes the loudest level of its stretch, and a stretch with no audio stays + /// . + /// + /// The clip's loudness, 0..1, oldest first, and for no audio. + /// Where the resampled levels go; its length is how many are kept. + /// How many levels were written. + /// Input and output overlap; native resampling is not in-place. + public static unsafe int Resample(ReadOnlySpan levels, Span columns) + { + if (columns.IsEmpty) return 0; + if (levels.Overlaps(columns)) + throw new ArgumentException("Resampling requires non-overlapping input and output.", nameof(columns)); + fixed (float* source = levels) + fixed (float* target = columns) + return Native.VoiceResample((nint)source, levels.Length, ref *target, columns.Length); + } + + /// A level below zero is no audio at all: silence, or the assistant thinking. + public const float Silent = -1.0f; +} diff --git a/src/CuiSharp/Ui/DataDisplay.g.cs b/src/CuiSharp/Ui/DataDisplay.g.cs index 4a85581..8686f58 100644 --- a/src/CuiSharp/Ui/DataDisplay.g.cs +++ b/src/CuiSharp/Ui/DataDisplay.g.cs @@ -64,7 +64,7 @@ public bool ListItem(UiText title, ListItemOpts o = default) return __result != 0; } - /// Virtual list: only the visible rows are built, so lists with a million rows stay fast. Fills first/last with the visible range. + /// Virtual list: only the visible rows are built, so lists with a million rows stay fast. Fills first/last with the visible range for this row count. public LayoutScope VirtualList(UiText id, int count, float rowHeight, Size height, out int first, out int last) { int __first = 0; @@ -75,7 +75,7 @@ public LayoutScope VirtualList(UiText id, int count, float rowHeight, Size heigh return new LayoutScope(ui.Handle, &Native.VirtualListEnd, "VirtualList", id, deriveNamedId: true); } - /// cui_table_begin_ex + /// Begin a table with keyboard focus indicators for its sortable headers. public OpenScope Table(UiText id, ReadOnlySpan columns, ref TableSort sort, TableOpts o = default) { var __columns = Utf8.AllocFrame(columns.Length); @@ -138,6 +138,17 @@ public void Gauge(UiText label, float value, float size = 130) WidgetRecorder.Note(ui.Handle, "Gauge", label); } + /// Pattern meter: a stacked usage bar (storage, budgets, quotas) whose parts differ in color and in the density of their dots, so it still reads in grayscale, in print and without telling hues apart. One dot of space parts the parts, and the rest of `total` is free space in the track color. Hovering a part, or its legend entry, steps the others back and shows its name, value and share above the bar; the keyboard does the same with Left and Right. Returns the part shown, or -1. + public int PatternMeter(UiText id, ReadOnlySpan parts, PatternMeterOpts o = default) + { + var __parts = Utf8.AllocFrame(parts.Length); + for (int i = 0; i < parts.Length; i++) __parts[i] = parts[i].ToNative(); + var __opts = o.ToNative(); + var __result = Native.PatternMeter(ui.Handle, Utf8.Get(id), (nint)__parts, (int)(parts.Length), in __opts); + WidgetRecorder.Note(ui.Handle, "PatternMeter", id); + return __result; + } + /// cui_image_ex public void Image(ulong tex, ImageOpts o = default) { diff --git a/src/CuiSharp/Ui/DialogsSheetsToastsAlerts.g.cs b/src/CuiSharp/Ui/DialogsSheetsToastsAlerts.g.cs index 7542f2b..d28399b 100644 --- a/src/CuiSharp/Ui/DialogsSheetsToastsAlerts.g.cs +++ b/src/CuiSharp/Ui/DialogsSheetsToastsAlerts.g.cs @@ -13,7 +13,7 @@ public static unsafe class DialogsSheetsToastsAlertsUiExtensions { extension(Ui ui) { - /// Modal dialog. Shown while *open is true; closing sets it to false. + /// Modal dialog. Shown while *open is true; closing sets it to false. Escape leaves a focused text field before it can dismiss the dialog. public OpenScope Dialog(UiText title, ref bool open, DialogOpts o = default) { byte __open = (byte)(open ? 1 : 0); @@ -56,7 +56,7 @@ public void Sheet(UiText title, ref bool open, DrawFn body, SheetOpts o = defaul if (scope) body(ui); } - /// Queue a toast. Returns a handle; cui_toast_action_clicked(handle) tells whether its action button was pressed. + /// Queue a toast. Returns a handle; cui_toast_action_clicked(handle) tells whether its action button was pressed before the toast started closing. public int Toast(UiText title, ToastOpts o = default) { var __opts = o.ToNative(); diff --git a/src/CuiSharp/Ui/Disclosure.g.cs b/src/CuiSharp/Ui/Disclosure.g.cs index 1021954..edd33f7 100644 --- a/src/CuiSharp/Ui/Disclosure.g.cs +++ b/src/CuiSharp/Ui/Disclosure.g.cs @@ -13,7 +13,7 @@ public static unsafe class DisclosureUiExtensions { extension(Ui ui) { - /// Hover card: rich content that appears when the pointer rests on the previous component, and stays while the pointer is over either. + /// Keep a dismissed card closed until the pointer leaves its anchor. public OpenScope HoverCard(UiText id, HoverCardOpts o = default) { var __opts = o.ToNative(); @@ -29,7 +29,7 @@ public void HoverCard(UiText id, DrawFn body, HoverCardOpts o = default) if (scope) body(ui); } - /// Confirm popover: a small question anchored to the previous component. Open it with cui_popover_open(ui, id). Returns true when confirmed. + /// Require a fresh Enter when an activation opens the question in this frame. public bool ConfirmPopover(UiText id, ConfirmPopoverOpts o = default) { var __opts = o.ToNative(); @@ -38,7 +38,7 @@ public bool ConfirmPopover(UiText id, ConfirmPopoverOpts o = default) return __result != 0; } - /// Text clamped to a few lines with a fade and Show more / Show less. + /// Draw expandable text with a toggle that keeps its identity when its label changes. public bool ExpandableText(UiText id, UiText text, ExpandableTextOpts o = default) { var __opts = o.ToNative(); diff --git a/src/CuiSharp/Ui/Emoji.g.cs b/src/CuiSharp/Ui/Emoji.g.cs index 15161cb..754cccf 100644 --- a/src/CuiSharp/Ui/Emoji.g.cs +++ b/src/CuiSharp/Ui/Emoji.g.cs @@ -63,7 +63,7 @@ public void Emoji(UiText utf8, float size) var __recentSlot = ui.RentText(Native.MakeId(ui.Handle, Utf8.Get(id)) ^ 0xa3514724u, ref recent, 512); int __tone = (int)(tone); if (o.GroupNames is { } __groupnames && __groupnames.Length < 10) - throw new ArgumentException("GroupNames needs at least 10 entries.", nameof(o)); + throw new ArgumentException($"GroupNames needs at least {10} entries.", nameof(o)); var __opts = o.ToNative((nint)__recentSlot.Buffer, (nuint)__recentSlot.Capacity, (nint)(&__tone)); var __result = Native.EmojiPicker(ui.Handle, Utf8.Get(id), in __opts); if (Ui.TextChanged(__recentSlot)) recent = Ui.DecodeText(__recentSlot); diff --git a/src/CuiSharp/Ui/FeedbackAndDisplay.g.cs b/src/CuiSharp/Ui/FeedbackAndDisplay.g.cs index e73ba67..7b8fa17 100644 --- a/src/CuiSharp/Ui/FeedbackAndDisplay.g.cs +++ b/src/CuiSharp/Ui/FeedbackAndDisplay.g.cs @@ -20,6 +20,13 @@ public void Progress(float value, ProgressOpts o = default) Native.Progress(ui.Handle, value, in __opts); } + /// most styles are square; upload and download are 25/32 as wide as tall, transfer 50/32, bounce 40/28, scan 28/32 + public void Spinner(float size, SpinnerOpts o = default) + { + var __opts = o.ToNative(); + Native.SpinnerEx(ui.Handle, size, in __opts); + } + /// cui_spinner public void Spinner(float size = 16) { @@ -32,6 +39,14 @@ public void Skeleton(Size width, float height) Native.Skeleton(ui.Handle, UiMarshal.ToNative(width), height); } + /// Skeleton group: placeholders for content that is loading, built inside it with cui_skeleton (in rows and columns as the content will be), share one shine that passes over them together. With `dither` they are drawn in dots and a band of brighter dots travels over them, asking for 20 frames a second while on screen; reduced motion holds the band still. Groups nest. + public LayoutScope SkeletonGroup(SkeletonGroupOpts o = default) + { + var __opts = o.ToNative(); + Native.SkeletonGroupBegin(ui.Handle, in __opts); + return new LayoutScope(ui.Handle, &Native.SkeletonGroupEnd, "SkeletonGroup", null); + } + /// cui_badge_ex public void Badge(UiText text, BadgeOpts o = default) { diff --git a/src/CuiSharp/Ui/InstrumentsDotMatrixChartEventTrackReadoutDotMatrixDisplay.g.cs b/src/CuiSharp/Ui/InstrumentsDotMatrixChartEventTrackReadoutDotMatrixDisplay.g.cs index 6620554..255ddb7 100644 --- a/src/CuiSharp/Ui/InstrumentsDotMatrixChartEventTrackReadoutDotMatrixDisplay.g.cs +++ b/src/CuiSharp/Ui/InstrumentsDotMatrixChartEventTrackReadoutDotMatrixDisplay.g.cs @@ -45,5 +45,54 @@ public void DotDisplay(UiText text, DotDisplayOpts o = default) WidgetRecorder.Note(ui.Handle, "DotDisplay", text); } + /// Returns CUI_FORMAT_* flags. + public FormatEvents FormatBar(UiText id, ref TextFormat format, FormatBarOpts o = default) + { + var __format = format.ToNative(); + var __opts = o.ToNative(); + var __result = Native.FormatBar(ui.Handle, Utf8.Get(id), ref __format, in __opts); + format = TextFormat.FromNative(__format); + WidgetRecorder.Note(ui.Handle, "FormatBar", id); + return (FormatEvents)__result; + } + + /// cui_live_cursors_ex + public void LiveCursors(UiText id, ReadOnlySpan users, ref NodeView nodeview, LiveCursorsOpts o = default) + { + var __users = Utf8.AllocFrame(users.Length); + for (int i = 0; i < users.Length; i++) __users[i] = users[i].ToNative(); + var __nodeview = nodeview.ToNative(); + var __opts = o.ToNative((nint)(&__nodeview)); + Native.LiveCursors(ui.Handle, Utf8.Get(id), (nint)__users, (int)(users.Length), in __opts); + nodeview = NodeView.FromNative(__nodeview); + WidgetRecorder.Note(ui.Handle, "LiveCursors", id); + } + + /// Presence pill: who is here, as overlapping avatars in their colors. Whoever is speaking gets a ring, and the pill shows moving level bars and their name. + public void PresencePill(UiText id, ReadOnlySpan users, PresencePillOpts o = default) + { + var __users = Utf8.AllocFrame(users.Length); + for (int i = 0; i < users.Length; i++) __users[i] = users[i].ToNative(); + var __opts = o.ToNative(); + Native.PresencePill(ui.Handle, Utf8.Get(id), (nint)__users, (int)(users.Length), in __opts); + WidgetRecorder.Note(ui.Handle, "PresencePill", id); + } + + /// Selection ring: a ring in someone's color around the previous component, for "this item is selected by Kate", with an optional name flag on its corner. + public void SelectionRing(Color color, SelectionRingOpts o = default) + { + var __opts = o.ToNative(); + Native.SelectionRing(ui.Handle, UiMarshal.ToNative(color), in __opts); + } + + /// Result card: a picture with rounded corners, an optional status chip in the top corner, and a title and caption on a soft fade at the bottom, for a render, an export or a generated image. Put its actions under it in a floating toolbar (cui_toolbar with CUI_TOOLBAR_FLOATING, cycle pickers for choices like 2x or PNG). The picture fills the card and is cropped to it. The card is focusable; a click, Enter or Space returns true (open it large). + public bool ResultCard(UiText id, ulong image, UiText title, ResultCardOpts o = default) + { + var __opts = o.ToNative(); + var __result = Native.ResultCard(ui.Handle, Utf8.Get(id), (nuint)(image), Utf8.Get(title), in __opts); + WidgetRecorder.Note(ui.Handle, "ResultCard", id); + return __result != 0; + } + } } diff --git a/src/CuiSharp/Ui/Layout.g.cs b/src/CuiSharp/Ui/Layout.g.cs index 470d29a..9ec0c08 100644 --- a/src/CuiSharp/Ui/Layout.g.cs +++ b/src/CuiSharp/Ui/Layout.g.cs @@ -86,7 +86,7 @@ public void ScrollTo(UiText scrollId, float y) WidgetRecorder.Note(ui.Handle, "ScrollTo", scrollId); } - /// Resizable split view: two panes with a draggable divider. `ratio` is the size of the first pane in 0..1. Call cui_split_next between the panes. + /// Open a split with pane minimums that can fit the available main axis. public LayoutScope Split(UiText id, ref float ratio, SplitOpts o = default) { var __ratio = Utf8.AllocFrame(1); diff --git a/src/CuiSharp/Ui/MenusAndPopovers.g.cs b/src/CuiSharp/Ui/MenusAndPopovers.g.cs index 7d290fa..75c4a5c 100644 --- a/src/CuiSharp/Ui/MenusAndPopovers.g.cs +++ b/src/CuiSharp/Ui/MenusAndPopovers.g.cs @@ -122,7 +122,7 @@ public void MenuLabel(UiText text) WidgetRecorder.Note(ui.Handle, "MenuLabel", text); } - /// Tooltip for the previous component, shown after a short hover delay. + /// Tooltip for the previous component. The first hover waits for the delay, measured in elapsed time even when the app sleeps between frames. public void Tooltip(UiText text) { Native.Tooltip(ui.Handle, Utf8.Get(text)); diff --git a/src/CuiSharp/Ui/MoreActions.g.cs b/src/CuiSharp/Ui/MoreActions.g.cs index 88cff92..8ae21a7 100644 --- a/src/CuiSharp/Ui/MoreActions.g.cs +++ b/src/CuiSharp/Ui/MoreActions.g.cs @@ -40,6 +40,15 @@ public bool StatusButton(UiText label, Status status, StatusButtonOpts o = defau return __result != 0; } + /// Status spinner: a dither ring while the status is busy that resolves when the work ends: it fills to a disc in the success color with a check, or the danger color with a cross, holds it for a moment and dissolves away. It keeps its space throughout. Returns true while it shows something, so an app can stop calling it after a result. + public bool StatusSpinner(UiText id, Status status, StatusSpinnerOpts o = default) + { + var __opts = o.ToNative(); + var __result = Native.StatusSpinner(ui.Handle, Utf8.Get(id), status, in __opts); + WidgetRecorder.Note(ui.Handle, "StatusSpinner", id); + return __result != 0; + } + /// Reactions: icon pills with counts. Clicking toggles `active` and adjusts the count. Returns the index that changed, or -1. public int Reactions(UiText id, Span items) { @@ -54,7 +63,7 @@ public int Reactions(UiText id, Span items) return __result; } - /// Speed dial: a round floating action button that fans out related actions. Returns the chosen action index, or -1. + /// Balance the action scope even if an action closes the dial during the build. public int SpeedDial(UiText id, ReadOnlySpan actions, SpeedDialOpts o = default) { var __actions = Utf8.AllocFrame(actions.Length); diff --git a/src/CuiSharp/Ui/MoreCharts.g.cs b/src/CuiSharp/Ui/MoreCharts.g.cs index 297fc93..3cac219 100644 --- a/src/CuiSharp/Ui/MoreCharts.g.cs +++ b/src/CuiSharp/Ui/MoreCharts.g.cs @@ -13,14 +13,14 @@ public static unsafe class MoreChartsUiExtensions { extension(Ui ui) { - /// Heatmap: a rows x cols matrix (values[row * cols + col]) on one hue, light to dark, with a scale below. + /// Heatmap: a rows x cols matrix (values[row * cols + col]) in five steps from the empty surface to the accent, with the range and a Less / More key below. public int Heatmap(UiText id, ReadOnlySpan values, int rows, int cols, HeatmapOpts o = default) { if (values.Length < rows * cols) throw new ArgumentException("values needs at least rows * cols entries.", nameof(values)); if (o.RowLabels is { } __rowlabels && __rowlabels.Length < rows) - throw new ArgumentException("RowLabels needs at least rows entries.", nameof(o)); + throw new ArgumentException($"RowLabels needs at least {rows} entries.", nameof(o)); if (o.ColLabels is { } __collabels && __collabels.Length < cols) - throw new ArgumentException("ColLabels needs at least cols entries.", nameof(o)); + throw new ArgumentException($"ColLabels needs at least {cols} entries.", nameof(o)); var __opts = o.ToNative(); var __result = Native.Heatmap(ui.Handle, Utf8.Get(id), UiMarshal.Values(values), rows, cols, in __opts); WidgetRecorder.Note(ui.Handle, "Heatmap", id); @@ -37,17 +37,30 @@ public int CalendarHeatmap(UiText id, Date start, ReadOnlySpan values, Ca } /// cui_treemap_ex + public int Treemap(UiText id, ReadOnlySpan items, ref int selected, TreemapOpts o = default) + { + var __items = Utf8.AllocFrame(items.Length); + for (int i = 0; i < items.Length; i++) __items[i] = items[i].ToNative(); + int __selected = (int)(selected); + var __opts = o.ToNative((nint)(&__selected)); + var __result = Native.Treemap(ui.Handle, Utf8.Get(id), (nint)__items, (int)(items.Length), in __opts); + selected = __selected; + WidgetRecorder.NoteValue(ui.Handle, "Treemap", id, (double)selected); + return __result; + } + + /// Same as the overload with ref selected, but reports nothing back: the state pointer is null, so the widget stores no state the caller could read. public int Treemap(UiText id, ReadOnlySpan items, TreemapOpts o = default) { var __items = Utf8.AllocFrame(items.Length); for (int i = 0; i < items.Length; i++) __items[i] = items[i].ToNative(); - var __opts = o.ToNative(); + var __opts = o.ToNative(0); var __result = Native.Treemap(ui.Handle, Utf8.Get(id), (nint)__items, (int)(items.Length), in __opts); WidgetRecorder.Note(ui.Handle, "Treemap", id); return __result; } - /// Radar chart: series over shared axes (series[i].values[axis]). + /// Radar chart: series over shared axes (series[i].values[axis]), light fills with crisp outlines on hairline rings. The last series shows its points, or the one nearest the pointer, with a chip of the hovered value. public int RadarChart(UiText id, ReadOnlySpan series, ReadOnlySpan axes, RadarOpts o = default) { var __series = Utf8.AllocFrame(series.Length); @@ -69,11 +82,13 @@ public int Funnel(UiText id, ReadOnlySpan stages, FunnelOpts o = defaul return __result; } - /// Sankey: flows between nodes; columns follow the links from the sources. + /// Returns the clicked node index, node_count + the clicked input link index, or -1. public int Sankey(UiText id, ReadOnlySpan nodes, ReadOnlySpan links, SankeyOpts o = default) { var __links = Utf8.AllocFrame(links.Length); for (int i = 0; i < links.Length; i++) __links[i] = links[i].ToNative(); + if (o.NodeColors is { } __nodecolors && __nodecolors.Length < nodes.Length) + throw new ArgumentException($"NodeColors needs at least {nodes.Length} entries.", nameof(o)); var __opts = o.ToNative(); var __result = Native.Sankey(ui.Handle, Utf8.Get(id), UiMarshal.Strings(nodes), (int)(nodes.Length), (nint)__links, (int)(links.Length), in __opts); WidgetRecorder.Note(ui.Handle, "Sankey", id); @@ -149,7 +164,7 @@ public int Candlestick(UiText id, ReadOnlySpan candles, CandlestickOpts var __candles = Utf8.AllocFrame(candles.Length); for (int i = 0; i < candles.Length; i++) __candles[i] = candles[i].ToNative(); if (o.Labels is { } __labels && __labels.Length < candles.Length) - throw new ArgumentException("Labels needs at least candles.Length entries.", nameof(o)); + throw new ArgumentException($"Labels needs at least {candles.Length} entries.", nameof(o)); var __opts = o.ToNative(); var __result = Native.Candlestick(ui.Handle, Utf8.Get(id), (nint)__candles, (int)(candles.Length), in __opts); WidgetRecorder.Note(ui.Handle, "Candlestick", id); diff --git a/src/CuiSharp/Ui/MoreFeedback.g.cs b/src/CuiSharp/Ui/MoreFeedback.g.cs index 65c02e7..ea9e84a 100644 --- a/src/CuiSharp/Ui/MoreFeedback.g.cs +++ b/src/CuiSharp/Ui/MoreFeedback.g.cs @@ -43,5 +43,23 @@ public int Checklist(UiText id, ReadOnlySpan steps, ChecklistOpts o = return __result; } + /// Draw the cover while leaving hit testing to other widgets when it is disabled. + public OpenScope Veil(UiText id, ref bool revealed, VeilOpts o = default) + { + byte __revealed = (byte)(revealed ? 1 : 0); + var __opts = o.ToNative(); + var __result = Native.VeilBegin(ui.Handle, Utf8.Get(id), (nint)(&__revealed), in __opts); + revealed = __revealed != 0; + return new OpenScope(ui.Handle, &Native.VeilEnd, "Veil", id, __result != 0); + } + + /// Draws the body only when the container opens, and closes it on exceptions. + public void Veil(UiText id, ref bool revealed, DrawFn body, VeilOpts o = default) + { + ArgumentNullException.ThrowIfNull(body); + using var scope = ui.Veil(id, ref revealed, o); + if (scope) body(ui); + } + } } diff --git a/src/CuiSharp/Ui/MoreInputs.g.cs b/src/CuiSharp/Ui/MoreInputs.g.cs index 9dba57c..d25d5fa 100644 --- a/src/CuiSharp/Ui/MoreInputs.g.cs +++ b/src/CuiSharp/Ui/MoreInputs.g.cs @@ -24,7 +24,7 @@ public int InlineEdit(UiText id, ref string buf, int cap = 256, InlineEditOpts o return __result; } - /// 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. + /// Edit a bounded scrub value and accept only a complete, finite numeric draft. public bool Scrub(UiText label, ref float value, float min, float max, ScrubOpts o = default) { var __opts = o.ToNative(); @@ -33,7 +33,7 @@ public bool Scrub(UiText label, ref float value, float min, float max, ScrubOpts return __result != 0; } - /// Money field: shows the amount with thousands separators, edits as plain digits, keeps a fixed number of decimals. + /// Edit an amount only if its grouped display can represent the result. public bool MoneyInput(UiText id, ref double value, MoneyOpts o = default) { var __opts = o.ToNative(); diff --git a/src/CuiSharp/Ui/MotionAndTextEffects.g.cs b/src/CuiSharp/Ui/MotionAndTextEffects.g.cs index b951124..ee0d5a7 100644 --- a/src/CuiSharp/Ui/MotionAndTextEffects.g.cs +++ b/src/CuiSharp/Ui/MotionAndTextEffects.g.cs @@ -100,7 +100,7 @@ public void DockSeparator() Native.DockSeparator(ui.Handle); } - /// Bottom tab bar for compact layouts, with a pill that glides to the selection. + /// Move one tab per arrow press, keeping the move tied to the original focus. public bool TabBar(UiText id, ReadOnlySpan items, ref int selected, TabBarOpts o = default) { var __items = Utf8.AllocFrame(items.Length); diff --git a/src/CuiSharp/Ui/Navigation.g.cs b/src/CuiSharp/Ui/Navigation.g.cs index 233da15..dc54f0f 100644 --- a/src/CuiSharp/Ui/Navigation.g.cs +++ b/src/CuiSharp/Ui/Navigation.g.cs @@ -39,14 +39,14 @@ public void NavSection(UiText title) WidgetRecorder.Note(ui.Handle, "NavSection", title); } - /// returns clicked index or -1 + /// Ancestor links, which show keyboard focus. Returns the clicked index or -1. public int Breadcrumb(ReadOnlySpan items) { var __result = Native.Breadcrumb(ui.Handle, UiMarshal.Strings(items), (int)(items.Length)); return __result; } - /// page is 0 based + /// Page buttons, which show keyboard focus; page is 0 based. The compact layout is chosen from the parent's inner width. public bool Pagination(UiText id, ref int page, int pageCount) { var __result = Native.Pagination(ui.Handle, Utf8.Get(id), ref page, pageCount); @@ -54,7 +54,7 @@ public bool Pagination(UiText id, ref int page, int pageCount) return __result != 0; } - /// cui_stepper + /// Process steps; labels collapse to fit the width of their own row. public void Stepper(ReadOnlySpan steps, int current) { Native.Stepper(ui.Handle, UiMarshal.Strings(steps), (int)(steps.Length), current); diff --git a/src/CuiSharp/Ui/NodeEditor.g.cs b/src/CuiSharp/Ui/NodeEditor.g.cs index 876292f..394f43f 100644 --- a/src/CuiSharp/Ui/NodeEditor.g.cs +++ b/src/CuiSharp/Ui/NodeEditor.g.cs @@ -13,7 +13,7 @@ public static unsafe class NodeEditorUiExtensions { extension(Ui ui) { - /// 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: + /// Build the editor canvas and process gestures while it is enabled. public OpenScope NodeEditor(UiText id, ref NodeView view, NodeEditorOpts o = default) { var __view = view.ToNative(); diff --git a/src/CuiSharp/Ui/Options.g.cs b/src/CuiSharp/Ui/Options.g.cs index 0d4144e..8d35439 100644 --- a/src/CuiSharp/Ui/Options.g.cs +++ b/src/CuiSharp/Ui/Options.g.cs @@ -415,7 +415,7 @@ public partial struct InputOpts public string? Hint; /// error text below (red) public string? Error; - /// shows dots instead of the text, with an eye button that reveals it + /// shows dots instead of the text, with an eye button that reveals it (inactive when disabled) public bool Password; /// _Bool disabled public bool Disabled; @@ -664,6 +664,10 @@ public partial struct MenuItemOpts public bool Disabled; /// a check mark at the right edge of the item public bool Checked; + /// the label's font, default CUI_FONT_BODY: a style menu shows each style in its own + public Font Font; + /// the label's size in points, default the body size; the item grows to fit it + public float TextSize; internal readonly NativeMenuItemOpts ToNative() => new() { @@ -673,6 +677,8 @@ public partial struct MenuItemOpts Danger = (byte)(Danger ? 1 : 0), Disabled = (byte)(Disabled ? 1 : 0), Checked = (byte)(Checked ? 1 : 0), + Font = Font, + TextSize = TextSize, }; } @@ -687,6 +693,10 @@ public partial struct DialogOpts public bool NoCloseButton; /// clicking outside or Esc does not close public bool Persistent; + /// the header moves the dialog; it stays inside the window + public bool Draggable; + /// the edges and corners resize it, down to a minimum size; the content is clipped when it no longer fits + public bool Resizable; internal readonly NativeDialogOpts ToNative() => new() { @@ -695,6 +705,8 @@ public partial struct DialogOpts Width = Width, NoCloseButton = (byte)(NoCloseButton ? 1 : 0), Persistent = (byte)(Persistent ? 1 : 0), + Draggable = (byte)(Draggable ? 1 : 0), + Resizable = (byte)(Resizable ? 1 : 0), }; } @@ -767,18 +779,20 @@ public partial struct AlertOpts /// cui_progress_opts. All fields are optional; zero selects the native default. public partial struct ProgressOpts { - /// _Bool indeterminate + /// no value: a segment (or with `dither`, a soft band of dots) travels the track public bool Indeterminate; /// cui_tone tone public Tone Tone; - /// float height + /// points, default 6 (8 with `dither`) public float Height; - /// const char * label + /// a row above the bar with this name public string? Label; - /// _Bool show_value + /// a whole percentage at the end of that row public bool ShowValue; /// cui_size width public Size Width; + /// drawn in dots: the fill dissolves over 60 points past its edge, and the pattern drifts forward while the bar is not full; reduced motion holds it still + public bool Dither; internal readonly NativeProgressOpts ToNative() => new() { @@ -789,6 +803,45 @@ public partial struct ProgressOpts Label = Utf8.Get(Label), ShowValue = (byte)(ShowValue ? 1 : 0), Width = UiMarshal.ToNative(Width), + Dither = (byte)(Dither ? 1 : 0), + }; +} + +/// cui_spinner_opts. All fields are optional; zero selects the native default. +public partial struct SpinnerOpts +{ + /// cui_spinner_style style + public SpinnerStyle Style; + /// default the secondary text color for the ring, the text color for dots + public Color Color; + /// the dots' base (a comet's ring, a dot matrix's dots), default `color` at 12% + public Color Track; + + internal readonly NativeSpinnerOpts ToNative() => new() + { + Sentinel = 0, + Style = Style, + Color = UiMarshal.ToNative(Color), + Track = UiMarshal.ToNative(Track), + }; +} + +/// Skeleton group: placeholders for content that is loading, built inside it with cui_skeleton (in rows and columns as the content will be), share one shine that passes over them together. With `dither` they are drawn in dots and a band of brighter dots travels over them, asking for 20 frames a second while on screen; reduced motion holds the band still. Groups nest. All fields are optional; zero selects the native default. +public partial struct SkeletonGroupOpts +{ + /// in dots, with a band of brighter dots passing over them + public bool Dither; + /// default: fill + public Size Width; + /// between what is built inside, default 8 + public float Gap; + + internal readonly NativeSkeletonGroupOpts ToNative() => new() + { + Sentinel = 0, + Dither = (byte)(Dither ? 1 : 0), + Width = UiMarshal.ToNative(Width), + Gap = Gap, }; } @@ -969,7 +1022,7 @@ public partial struct ChartOpts public bool NoGrid; /// _Bool no_legend public bool NoLegend; - /// bar chart + /// bars stack in one column; lines stack on the series before them public bool Stacked; /// curved lines public bool Smooth; @@ -981,6 +1034,8 @@ public partial struct ChartOpts public float Max; /// lines and points drawn over the chart (line and bar charts) public ChartAnnotation[]? Annotations; + /// line chart: every series filled with dots that thin out from its line to the bottom of its band (implies `area`); with `stacked`, bands never mix colors + public bool Dither; /// C# only: Upper bound on drawn points. 0 derives twice the viewport width; longer series are min/max decimated into the frame arena. public int MaxPoints; /// C# only: Scale each series against its own first finite nonzero sample so series of different magnitudes compare by shape; see ChartNormalizer. @@ -1003,6 +1058,44 @@ public partial struct ChartOpts Max = Max, Annotations = ChartAnnotation.ToFrameArray(Annotations), AnnotationCount = Annotations?.Length ?? 0, + Dither = (byte)(Dither ? 1 : 0), + }; +} + +/// Pattern meter: a stacked usage bar (storage, budgets, quotas) whose parts differ in color and in the density of their dots, so it still reads in grayscale, in print and without telling hues apart. One dot of space parts the parts, and the rest of `total` is free space in the track color. Hovering a part, or its legend entry, steps the others back and shows its name, value and share above the bar; the keyboard does the same with Left and Right. Returns the part shown, or -1. All fields are optional; zero selects the native default. +public partial struct PatternMeterOpts +{ + /// the whole bar; 0 means the sum of the parts (no free space) + public float Total; + /// the title over the bar, e.g. "Storage" + public string? Label; + /// after every value, e.g. "GB" + public string? Unit; + /// printf format of a value, default "%g" + public string? Format; + /// the legend entry of the free space, default "Free"; "" leaves it out + public string? FreeLabel; + /// every part in the foreground color, told apart by density alone + public bool Grayscale; + /// _Bool no_legend + public bool NoLegend; + /// points, default 18 + public float Height; + /// default: fill + public Size Width; + + internal readonly NativePatternMeterOpts ToNative() => new() + { + Sentinel = 0, + Total = Total, + Label = Utf8.Get(Label), + Unit = Utf8.Get(Unit), + Format = Utf8.Get(Format), + FreeLabel = Utf8.Get(FreeLabel), + Grayscale = (byte)(Grayscale ? 1 : 0), + NoLegend = (byte)(NoLegend ? 1 : 0), + Height = Height, + Width = UiMarshal.ToNative(Width), }; } @@ -1182,7 +1275,7 @@ public partial struct SplitButtonOpts }; } -/// Toggle group: a row of toggles (bold, italic...). values[i] is toggled when item i is clicked; with exclusive set exactly one stays on. Labels become tooltips when icon_only is set. Returns true when a value changed. All fields are optional; zero selects the native default. +/// Toggle group: a row of toggles (bold, italic...). values[i] is toggled when item i is clicked; with exclusive set exactly one stays on. Labels become tooltips when icon_only is set. Left and Right move focus one item. Returns true when a value changed. All fields are optional; zero selects the native default. public partial struct ToggleGroupOpts { /// const char *const * icons @@ -1257,7 +1350,26 @@ public partial struct StatusButtonOpts }; } -/// Speed dial: a round floating action button that fans out related actions. Returns the chosen action index, or -1. All fields are optional; zero selects the native default. +/// Status spinner: a dither ring while the status is busy that resolves when the work ends: it fills to a disc in the success color with a check, or the danger color with a cross, holds it for a moment and dissolves away. It keeps its space throughout. Returns true while it shows something, so an app can stop calling it after a result. All fields are optional; zero selects the native default. +public partial struct StatusSpinnerOpts +{ + /// points, default 20 + public float Size; + /// the ring while busy, default the text color + public Color Color; + /// the check or cross stays instead of dissolving away + public bool Keep; + + internal readonly NativeStatusSpinnerOpts ToNative() => new() + { + Sentinel = 0, + Size = Size, + Color = UiMarshal.ToNative(Color), + Keep = (byte)(Keep ? 1 : 0), + }; +} + +/// cui_speed_dial_opts. All fields are optional; zero selects the native default. public partial struct SpeedDialOpts { /// const char * icon @@ -1463,10 +1575,10 @@ public partial struct FilePickerOpts }; } -/// Code block with syntax highlighting (lang: "c", "cpp", "js", "ts", "python", "rust", "go", "json", "shell", or "text" for none), line numbers, a title bar and a copy button. Long lines scroll sideways. All fields are optional; zero selects the native default. +/// Code block with syntax highlighting (lang: "c", "cpp", "js", "ts", "python", "rust", "go", "json", "shell", "sql", or "text" for none), line numbers, a title bar and a copy button. Long lines scroll sideways. All fields are optional; zero selects the native default. public partial struct CodeOpts { - /// "c", "cpp", "js", "ts", "python", "rust", "go", "json", "shell" or "text" (no colors); shown in the title bar + /// "c", "cpp", "js", "ts", "python", "rust", "go", "json", "shell", "sql" or "text" (no colors); shown in the title bar public string? Lang; /// e.g. a file name public string? Title; @@ -1547,7 +1659,7 @@ public partial struct MarkdownOpts /// cui_code_editor_opts. All fields are optional; zero selects the native default. public partial struct CodeEditorOpts { - /// as cui_code_block: "c", "cpp", "js", "ts", "python", "rust", "go", "json", "shell"; "text" for none + /// as cui_code_block: "c", "cpp", "js", "ts", "python", "rust", "go", "json", "shell", "sql"; "text" for none public string? Lang; /// default fill public Size Width; @@ -1804,7 +1916,7 @@ public partial struct TickerOpts }; } -/// Heatmap: a rows x cols matrix (values[row * cols + col]) on one hue, light to dark, with a scale below. All fields are optional; zero selects the native default. +/// Heatmap: a rows x cols matrix (values[row * cols + col]) in five steps from the empty surface to the accent, with the range and a Less / More key below. All fields are optional; zero selects the native default. public partial struct HeatmapOpts { /// one label per row, left of the grid; `NULL` for none @@ -1817,7 +1929,7 @@ public partial struct HeatmapOpts public float Min; /// value range, default the data's public float Max; - /// hue of the scale, default the accent + /// the top step, default the accent; the steps mix toward it from the empty surface public Color Color; /// const char * format public string? Format; @@ -1843,7 +1955,7 @@ public partial struct CalendarHeatmapOpts { /// size of a day's square in points, default 11 public float Cell; - /// cui_color color + /// the top step, default the accent public Color Color; /// const char * format public string? Format; @@ -1865,21 +1977,22 @@ public partial struct TreemapOpts { /// cui_size width public Size Width; - /// float height + /// default 300 public float Height; - /// const char * format + /// the values, e.g. "%.0f KB" public string? Format; - internal readonly NativeTreemapOpts ToNative() => new() + internal readonly NativeTreemapOpts ToNative(nint selected) => new() { Sentinel = 0, Width = UiMarshal.ToNative(Width), Height = Height, Format = Utf8.Get(Format), + Selected = selected, }; } -/// Radar chart: series over shared axes (series[i].values[axis]). All fields are optional; zero selects the native default. +/// Radar chart: series over shared axes (series[i].values[axis]), light fills with crisp outlines on hairline rings. The last series shows its points, or the one nearest the pointer, with a chip of the hovered value. All fields are optional; zero selects the native default. public partial struct RadarOpts { /// float size @@ -1923,7 +2036,7 @@ public partial struct FunnelOpts }; } -/// Sankey: flows between nodes; columns follow the links from the sources. All fields are optional; zero selects the native default. +/// cui_sankey_opts. All fields are optional; zero selects the native default. public partial struct SankeyOpts { /// cui_size width @@ -1932,8 +2045,10 @@ public partial struct SankeyOpts public float Height; /// const char * format public string? Format; - /// width of the node bars in points, default 12 + /// width of the node bars in points, default 6 public float NodeWidth; + /// one per node, colored by meaning; `NULL`, or an unset entry, falls back to the palette for outcomes and neutral gray for sources and steps + public Color[]? NodeColors; internal readonly NativeSankeyOpts ToNative() => new() { @@ -1942,6 +2057,7 @@ public partial struct SankeyOpts Height = Height, Format = Utf8.Get(Format), NodeWidth = NodeWidth, + NodeColors = UiMarshal.Colors(NodeColors), }; } @@ -2075,24 +2191,30 @@ public partial struct RadialGaugeOpts { /// under the value public string? Label; - /// the value and the tick labels, default "%.0f" + /// the value, the ends and the target, default whole numbers with large ones shortened (1.8k) public string? Format; - /// after the value, smaller + /// after the value, smaller and muted public string? Unit; /// width, default 200; the height follows the sweep public float Size; - /// degrees of arc, default 240 (90 to 300) + /// degrees of arc, default 270 (90 to 300); the ring is always a full turn public float Sweep; /// colored stretches of the arc, each from the one before up to its `to`; at most 16 public GaugeBand[]? Bands; - /// labelled divisions, default 5; -1 hides the ticks + /// -1 hides the min and max labels at the ends of the arc public int Ticks; /// a marker on the arc, when show_target is set public float Target; - /// draws the marker at `target` + /// draws the marker at `target`, labelled with its value (arc style) public bool ShowTarget; - /// a thick arc filled to the value instead of a needle + /// kept for older code; no style has a needle public bool NoNeedle; + /// CUI_GAUGE_AUTO picks segments with `bands`, else the arc + public GaugeStyle Style; + /// a muted line under the gauge, e.g. "190 of 500 GB"; `NULL` for none + public string? Detail; + /// the value's color; unset: the band the value is in, else the accent (the ring: the first series color) + public Color Color; internal readonly NativeRadialGaugeOpts ToNative() => new() { @@ -2108,6 +2230,9 @@ public partial struct RadialGaugeOpts Target = Target, ShowTarget = (byte)(ShowTarget ? 1 : 0), NoNeedle = (byte)(NoNeedle ? 1 : 0), + Style = Style, + Detail = Utf8.Get(Detail), + Color = UiMarshal.ToNative(Color), }; } @@ -2293,7 +2418,7 @@ public partial struct DockItemOpts }; } -/// Bottom tab bar for compact layouts, with a pill that glides to the selection. All fields are optional; zero selects the native default. +/// cui_tab_bar_opts. All fields are optional; zero selects the native default. public partial struct TabBarOpts { /// cui_size width @@ -2422,7 +2547,7 @@ public partial struct ToolCallOpts }; } -/// Agent plan: steps with their status on a connected rail, and progress. All fields are optional; zero selects the native default. +/// Agent plan: steps with their status on a connected rail, and progress. Reduced motion holds the running glyph still, including in tool calls. All fields are optional; zero selects the native default. public partial struct AgentPlanOpts { /// heading of the plan, default "Plan" @@ -2535,6 +2660,14 @@ public partial struct ComposerOpts public int MaxLines; /// cui_size width public Size Width; + /// a microphone button beside send, which returns `CUI_COMPOSER_RECORD` + public bool Mic; + /// shows the recorder instead of the text: set it on `CUI_COMPOSER_RECORD`, clear it on cancel or send + public bool Recording; + /// the microphone's levels while recording (0..1, newest last), drawn as a scrolling voice waveform + public float[]? Levels; + /// how long the take is so far, shown beside the recording dot + public float RecordSeconds; internal readonly NativeComposerOpts ToNative(nint removed, nint model) => new() { @@ -2549,10 +2682,15 @@ public partial struct ComposerOpts Model = model, MaxLines = MaxLines, Width = UiMarshal.ToNative(Width), + Mic = (byte)(Mic ? 1 : 0), + Recording = (byte)(Recording ? 1 : 0), + Levels = UiMarshal.Values(Levels), + LevelCount = Levels?.Length ?? 0, + RecordSeconds = RecordSeconds, }; } -/// cui_voice_orb_opts. All fields are optional; zero selects the native default. +/// Deprecated: use the voice session (cui_voice_session), the voice waveform (cui_voice_wave) or the composer's recorder instead. Kept so existing code builds; it gets no new features. Voice orb: a living shape for voice modes. level is the input or output loudness (0..1). Returns true when clicked. All fields are optional; zero selects the native default. public partial struct VoiceOrbOpts { /// float size @@ -2568,6 +2706,92 @@ public partial struct VoiceOrbOpts }; } +/// cui_voice_wave_opts. All fields are optional; zero selects the native default. +public partial struct VoiceWaveOpts +{ + /// the whole clip resampled to the width, instead of the newest levels scrolling in + public bool Clip; + /// one per level, `CUI_VOICE_YOU` or `CUI_VOICE_REPLY`, for two voices on one timeline; `NULL`: all `owner` + public byte[]? Owners; + /// whose voice it is: you in the foreground color, the reply in the accent + public VoiceOwner Owner; + /// lit dots in this color instead of the owner's + public Color Color; + /// distance between dot centers in points, default 3.6; the strip is 14 pitches tall + public float Pitch; + /// how far an arrow key seeks, as a fraction of the clip, default 0.05 + public float Step; + /// default fill + public Size Width; + + internal readonly NativeVoiceWaveOpts ToNative(nint progress) => new() + { + Sentinel = 0, + Clip = (byte)(Clip ? 1 : 0), + Progress = progress, + Owners = UiMarshal.Values(Owners), + Owner = Owner, + Color = UiMarshal.ToNative(Color), + Pitch = Pitch, + Step = Step, + Width = UiMarshal.ToNative(Width), + }; +} + +/// Voice note: a recorded message in a bubble, with play and pause, its voice waveform as the seek bar (click or drag; the arrow keys step), the time played and the length, and a speed chip that cycles 1x, 1.5x and 2x. It plays nothing itself: you play the audio and pass the position on every frame. Returns CUI_PLAYER_TOGGLE, CUI_PLAYER_SEEK and CUI_PLAYER_SPEED. All fields are optional; zero selects the native default. +public partial struct VoiceNoteOpts +{ + /// a message you sent: tinted with the accent and placed at the end of the row + public bool Mine; + /// default 330 points, narrower in a narrower container + public Size Width; + + internal readonly NativeVoiceNoteOpts ToNative() => new() + { + Sentinel = 0, + Mine = (byte)(Mine ? 1 : 0), + Width = UiMarshal.ToNative(Width), + }; +} + +/// cui_voice_session_opts. All fields are optional; zero selects the native default. +public partial struct VoiceSessionOpts +{ + /// one per level: `CUI_VOICE_YOU` or `CUI_VOICE_REPLY`; `NULL`: all yours + public byte[]? Owners; + /// text for the state instead of "Listening", "Thinking...", "Speaking", "Muted" or "Waiting" + public string? Label; + /// the words of the current turn spoken so far, under the strip; `NULL` for none + public string? Transcript; + /// the rest of the turn, not spoken yet: dimmed after `transcript` + public string? Upcoming; + /// whose turn the transcript is, named before it + public VoiceOwner Speaker; + /// your name in the legend and the transcript, default "You" + public string? You; + /// the assistant's name, default "Assistant" + public string? Assistant; + /// leaves the End button out + public bool NoEnd; + /// default fill + public Size Width; + + internal readonly NativeVoiceSessionOpts ToNative(nint muted) => new() + { + Sentinel = 0, + Owners = UiMarshal.Values(Owners), + Label = Utf8.Get(Label), + Transcript = Utf8.Get(Transcript), + Upcoming = Utf8.Get(Upcoming), + Speaker = Speaker, + You = Utf8.Get(You), + Assistant = Utf8.Get(Assistant), + Muted = muted, + NoEnd = (byte)(NoEnd ? 1 : 0), + Width = UiMarshal.ToNative(Width), + }; +} + /// cui_kanban_column_opts. All fields are optional; zero selects the native default. public partial struct KanbanColumnOpts { @@ -2587,7 +2811,7 @@ public partial struct KanbanColumnOpts }; } -/// 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. +/// cui_week_opts. All fields are optional; zero selects the native default. public partial struct WeekOpts { /// first hour shown, default 7; set together with `end_hour` @@ -2641,7 +2865,7 @@ public partial struct MonthOpts }; } -/// 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. All fields are optional; zero selects the native default. +/// cui_gantt_opts. All fields are optional; zero selects the native default. public partial struct GanttOpts { /// points per day, default 30 @@ -2650,7 +2874,7 @@ public partial struct GanttOpts public float RowHeight; /// cui_size height public Size Height; - /// day to mark as today, counted from `origin`; 0 marks none + /// day to mark as today, counted from `origin`, with an accent line and a "Today" chip; 0 marks none public int Today; /// _Bool read_only public bool ReadOnly; @@ -2685,7 +2909,7 @@ public partial struct HoverCardOpts }; } -/// Confirm popover: a small question anchored to the previous component. Open it with cui_popover_open(ui, id). Returns true when confirmed. All fields are optional; zero selects the native default. +/// Confirm popover: a small question anchored to the previous component. Open it with cui_popover_open(ui, id). A new Enter press can confirm it. Returns true when confirmed. All fields are optional; zero selects the native default. public partial struct ConfirmPopoverOpts { /// the question, in medium weight at the top, e.g. "Delete this file?" @@ -2811,6 +3035,34 @@ public partial struct ChecklistOpts }; } +/// Veil: covers what is built inside it (a picture, a secret such as an API key, a spoiler) with a slowly moving dither in muted tones that keeps its space. A click, or Enter or Space, reveals it: the veil dissolves dot by dot in about a quarter of a second, and comes back the same way when *revealed is set to false again. While covered, the content takes no clicks and no keyboard focus. Reduced motion holds the noise still and reveals at once. All fields are optional; zero selects the native default. +public partial struct VeilOpts +{ + /// a line in the middle of the veil, e.g. "Sensitive image"; `NULL` for none + public string? Label; + /// a smaller line under it, e.g. "Click to show" + public string? Hint; + /// a click on the revealed content covers it again + public bool Toggle; + /// corners of the veil, default 0 + public float Radius; + /// the veil's ground, default the muted surface; its dots are a step toward the text color + public Color Color; + /// default: the content's width + public Size Width; + + internal readonly NativeVeilOpts ToNative() => new() + { + Sentinel = 0, + Label = Utf8.Get(Label), + Hint = Utf8.Get(Hint), + Toggle = (byte)(Toggle ? 1 : 0), + Radius = Radius, + Color = UiMarshal.ToNative(Color), + Width = UiMarshal.ToNative(Width), + }; +} + /// Multi-select: a field with chips for the chosen items and a list with checkboxes (and search). selected[i] is true for chosen items. All fields are optional; zero selects the native default. public partial struct MultiSelectOpts { @@ -3221,7 +3473,7 @@ public partial struct ShortcutRecorderOpts }; } -/// 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: All fields are optional; zero selects the native default. +/// cui_node_editor_opts. All fields are optional; zero selects the native default. public partial struct NodeEditorOpts { /// default: fill the width, 440 tall @@ -3310,16 +3562,19 @@ public partial struct MenuBarMenuOpts }; } -/// 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 "more" menu; an item chosen there returns true on the next frame. All fields are optional; zero selects the native default. +/// 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 "more" menu; an item chosen there returns true on the next frame. Tab moves through the items. All fields are optional; zero selects the native default. public partial struct ToolbarOpts { - /// _Bool no_border + /// plain style: no hairline under the strip public bool NoBorder; + /// cui_toolbar_style style + public ToolbarStyle Style; internal readonly NativeToolbarOpts ToNative() => new() { Sentinel = 0, NoBorder = (byte)(NoBorder ? 1 : 0), + Style = Style, }; } @@ -3334,6 +3589,10 @@ public partial struct ToolOpts public string? Shortcut; /// _Bool disabled public bool Disabled; + /// icon and label color: always on a plain button (CUI_TONE_DANGER for delete), only while on for a toggle + public Tone Tone; + /// the corner mark that says the button opens more options (cui_flyout_mark) + public bool Flyout; internal readonly NativeToolOpts ToNative(nint toggle) => new() { @@ -3343,6 +3602,21 @@ public partial struct ToolOpts Shortcut = Utf8.Get(Shortcut), Toggle = toggle, Disabled = (byte)(Disabled ? 1 : 0), + Tone = Tone, + Flyout = (byte)(Flyout ? 1 : 0), + }; +} + +/// An inset set of icons of which one is on, like a segmented control. Left and Right move the choice. Returns true when *index changed. In the overflow menu each icon is an item named by its label. All fields are optional; zero selects the native default. +public partial struct ToolbarRadioOpts +{ + /// a name for each icon, for the overflow menu; `NULL` leaves them unnamed + public string[]? Labels; + + internal readonly NativeToolbarRadioOpts ToNative() => new() + { + Sentinel = 0, + Labels = UiMarshal.Strings(Labels), }; } @@ -3734,6 +4008,237 @@ public partial struct GradientOpts }; } +/// cui_status_tag_opts. All fields are optional; zero selects the native default. +public partial struct StatusTagOpts +{ + /// CUI_SIZE_SM is 24 points high, for tables and tag groups; default 30 + public ControlSize Size; + /// the tag becomes a button that shows an x on hover: the call returns true when it is clicked, or on Enter, Delete or Backspace + public bool Removable; + /// instead of the state's icon + public string? Icon; + /// instead of the state's color; 0 keeps it (gray for CUI_TAG_CUSTOM) + public Tone Tone; + /// identity of a removable tag when two share a label + public string? Id; + + internal readonly NativeStatusTagOpts ToNative() => new() + { + Sentinel = 0, + Size = Size, + Removable = (byte)(Removable ? 1 : 0), + Icon = Utf8.Get(Icon), + Tone = Tone, + Id = Utf8.Get(Id), + }; +} + +/// Ratio slider: a whole split into two named parts, with a bar between them to drag. *ratio is the first part's share, 0..1. Both names and percentages stay readable: the split stops where a part would get too narrow for them. Arrows move one step (Shift: ten), Home and End go to the limits. All fields are optional; zero selects the native default. +public partial struct RatioSliderOpts +{ + /// color of the first part; 0 uses the accent + public Tone Tone; + /// arrow key step as a share, default 0.01 (one percent) + public float Step; + /// default 52 + public float Height; + /// default fill + public Size Width; + /// _Bool disabled + public bool Disabled; + + internal readonly NativeRatioSliderOpts ToNative() => new() + { + Sentinel = 0, + Tone = Tone, + Step = Step, + Height = Height, + Width = UiMarshal.ToNative(Width), + Disabled = (byte)(Disabled ? 1 : 0), + }; +} + +/// cui_gradient_slider_opts. All fields are optional; zero selects the native default. +public partial struct GradientSliderOpts +{ + /// the built-in track, default the hue wheel; ignored when `stops` is set + public GradientTrack Track; + /// your own track, positions 0..1 + public GradientStop[]? Stops; + /// CUI_GRADIENT_OPACITY: the color it fades in; unset: the accent + public Color Color; + /// snap to multiples of step from min; 0 = continuous + public float Step; + /// printf format for the value; default "%.0f°" for hue, "%.0f K" for temperature, a percent of the range for opacity, "%.0f" for stops + public string? Format; + /// text at the right of the label instead of the formatted value + public string? Value; + /// a dot in the color under the thumb after the track + public bool Swatch; + /// icon of a button after the track, e.g. a picker; a click returns CUI_WELL_ACTION + public string? Tool; + /// names the tool button + public string? ToolTooltip; + /// shows the tool button pressed, e.g. while picking + public bool ToolOn; + /// no well around it + public bool Plain; + /// _Bool disabled + public bool Disabled; + + internal readonly NativeGradientSliderOpts ToNative(nint colorOut) => new() + { + Sentinel = 0, + Track = Track, + Stops = GradientStop.ToFrameArray(Stops), + StopCount = Stops?.Length ?? 0, + Color = UiMarshal.ToNative(Color), + ColorOut = colorOut, + Step = Step, + Format = Utf8.Get(Format), + Value = Utf8.Get(Value), + Swatch = (byte)(Swatch ? 1 : 0), + Tool = Utf8.Get(Tool), + ToolTooltip = Utf8.Get(ToolTooltip), + ToolOn = (byte)(ToolOn ? 1 : 0), + Plain = (byte)(Plain ? 1 : 0), + Disabled = (byte)(Disabled ? 1 : 0), + }; +} + +/// Step slider: a few discrete stops marked with dots; the thumb snaps to each and glides between them. Arrows move one stop, Home and End go to the ends. Returns CUI_WELL_* flags. All fields are optional; zero selects the native default. +public partial struct StepSliderOpts +{ + /// a name for each stop, shown as the value: labels[*value - min] + public string[]? Labels; + /// printf format for the value, default "%d" + public string? Format; + /// text at the right of the label instead + public string? Value; + /// icon of a button after the track; a click returns CUI_WELL_ACTION + public string? Tool; + /// const char * tool_tooltip + public string? ToolTooltip; + /// _Bool tool_on + public bool ToolOn; + /// _Bool plain + public bool Plain; + /// _Bool disabled + public bool Disabled; + + internal readonly NativeStepSliderOpts ToNative() => new() + { + Sentinel = 0, + Labels = UiMarshal.Strings(Labels), + Format = Utf8.Get(Format), + Value = Utf8.Get(Value), + Tool = Utf8.Get(Tool), + ToolTooltip = Utf8.Get(ToolTooltip), + ToolOn = (byte)(ToolOn ? 1 : 0), + Plain = (byte)(Plain ? 1 : 0), + Disabled = (byte)(Disabled ? 1 : 0), + }; +} + +/// Palette strip: a joined row of color swatches (up to 16). A click on a swatch locks or unlocks it, and the shuffle button after the row recolors the unlocked ones. The swatch under the pointer widens and shows its hex code. Tab reaches the swatches, Left and Right move between them, Space or Enter locks. Returns CUI_WELL_CHANGED when a lock or a color changed and CUI_WELL_ACTION when shuffle was pressed. All fields are optional; zero selects the native default. +public partial struct PaletteStripOpts +{ + /// text at the right of the label, e.g. "Click a swatch to lock it" + public string? Value; + /// no shuffle button + public bool NoShuffle; + /// default 32 + public float Height; + /// _Bool plain + public bool Plain; + + internal readonly NativePaletteStripOpts ToNative(nint seed) => new() + { + Sentinel = 0, + Seed = seed, + Value = Utf8.Get(Value), + NoShuffle = (byte)(NoShuffle ? 1 : 0), + Height = Height, + Plain = (byte)(Plain ? 1 : 0), + }; +} + +/// cui_aspect_picker_opts. All fields are optional; zero selects the native default. +public partial struct AspectPickerOpts +{ + /// your choices; NULL: 1:1, 4:5, 3:2, 16:9, 9:16 and 21:9 + public Aspect[]? Ratios; + /// adds a "Custom" choice after a divider; *index == the count of choices selects it + public bool Custom; + /// default "Custom" + public string? CustomLabel; + /// the short side in pixels, for the size at the right of the label; default 1080, negative hides the size + public int Base; + /// text at the right of the label instead of the size + public string? Value; + /// _Bool plain + public bool Plain; + + internal readonly NativeAspectPickerOpts ToNative() => new() + { + Sentinel = 0, + Ratios = Aspect.ToFrameArray(Ratios), + Count = Ratios?.Length ?? 0, + Custom = (byte)(Custom ? 1 : 0), + CustomLabel = Utf8.Get(CustomLabel), + Base = Base, + Value = Utf8.Get(Value), + Plain = (byte)(Plain ? 1 : 0), + }; +} + +/// Option field with action: a compact segmented choice and the icon button of the action it feeds (save as png, jpg or webp, then download). Returns CUI_WELL_* flags. All fields are optional; zero selects the native default. +public partial struct OptionActionOpts +{ + /// names the action button + public string? Tooltip; + /// shows the action button pressed + public bool ActionOn; + /// _Bool action_disabled + public bool ActionDisabled; + /// text at the right of the label + public string? Value; + /// _Bool plain + public bool Plain; + + internal readonly NativeOptionActionOpts ToNative() => new() + { + Sentinel = 0, + Tooltip = Utf8.Get(Tooltip), + ActionOn = (byte)(ActionOn ? 1 : 0), + ActionDisabled = (byte)(ActionDisabled ? 1 : 0), + Value = Utf8.Get(Value), + Plain = (byte)(Plain ? 1 : 0), + }; +} + +/// Seed field: a random seed in the monospaced font. The dice rolls a new one, its digits rolling into place, and the lock keeps it fixed (the dice is off while locked). Returns CUI_WELL_CHANGED when the seed or the lock changed and CUI_WELL_ACTION on a roll. All fields are optional; zero selects the native default. +public partial struct SeedFieldOpts +{ + /// text at the right of the label + public string? Value; + /// the mode word in the field while unlocked, default "random" + public string? RandomText; + /// and while locked, default "fixed" + public string? FixedText; + /// _Bool plain + public bool Plain; + + internal readonly NativeSeedFieldOpts ToNative() => new() + { + Sentinel = 0, + Value = Utf8.Get(Value), + RandomText = Utf8.Get(RandomText), + FixedText = Utf8.Get(FixedText), + Plain = (byte)(Plain ? 1 : 0), + }; +} + /// cui_timeline_editor_opts. All fields are optional; zero selects the native default. public partial struct TimelineEditorOpts { @@ -3962,7 +4467,7 @@ public partial struct WaterfallOpts }; } -/// 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+wheel or a drag pans, click selects a span, Shift+drag measures a time range. A lane's name folds it. Keys: Left and Right step through the selected span's lane, + 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. All fields are optional; zero selects the native default. +/// cui_trace_opts. All fields are optional; zero selects the native default. public partial struct TraceOpts { /// cui_size width @@ -4075,7 +4580,7 @@ public partial struct UptimeOpts }; } -/// 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. All fields are optional; zero selects the native default. +/// cui_time_histogram_opts. All fields are optional; zero selects the native default. public partial struct TimeHistogramOpts { /// cui_size width @@ -4330,6 +4835,162 @@ public partial struct DotDisplayOpts }; } +/// cui_format_bar_opts. All fields are optional; zero selects the native default. +public partial struct FormatBarOpts +{ + /// `NULL`: Header, Title, Subtitle and Normal text + public TextStyle[]? Styles; + /// the color grid; `NULL`: eight tones, the text color first + public Tone[]? Colors; + /// a muted line under the styles, default "Text options"; "" leaves it out + public string? Footer; + /// keycaps beside it, default "Ctrl Alt 0" ("" for none); a hint, the shortcut is yours + public string? FooterKeys; + /// default "Delete this text?" + public string? DeleteQuestion; + /// leaves out the delete button + public bool NoDelete; + /// leaves out the "..." button + public bool NoMore; + + internal readonly NativeFormatBarOpts ToNative() => new() + { + Sentinel = 0, + Styles = TextStyle.ToFrameArray(Styles), + StyleCount = Styles?.Length ?? 0, + Colors = UiMarshal.Values(Colors), + ColorCount = Colors?.Length ?? 0, + Footer = Utf8.Get(Footer), + FooterKeys = Utf8.Get(FooterKeys), + DeleteQuestion = Utf8.Get(DeleteQuestion), + NoDelete = (byte)(NoDelete ? 1 : 0), + NoMore = (byte)(NoMore ? 1 : 0), + }; +} + +/// cui_live_cursors_opts. All fields are optional; zero selects the native default. +public partial struct LiveCursorsOpts +{ + /// jump to each new position + public bool NoGlide; + + internal readonly NativeLiveCursorsOpts ToNative(nint view) => new() + { + Sentinel = 0, + View = view, + NoGlide = (byte)(NoGlide ? 1 : 0), + }; +} + +/// Presence pill: who is here, as overlapping avatars in their colors. Whoever is speaking gets a ring, and the pill shows moving level bars and their name. All fields are optional; zero selects the native default. +public partial struct PresencePillOpts +{ + /// avatar size, default 26 + public float Size; + /// default 5; the rest become "+n" + public int MaxVisible; + + internal readonly NativePresencePillOpts ToNative() => new() + { + Sentinel = 0, + Size = Size, + MaxVisible = MaxVisible, + }; +} + +/// Selection ring: a ring in someone's color around the previous component, for "this item is selected by Kate", with an optional name flag on its corner. All fields are optional; zero selects the native default. +public partial struct SelectionRingOpts +{ + /// a small flag at the top end corner; `NULL` for none + public string? Name; + /// the ring's corner radius; 0 follows the component's corners + public float Radius; + + internal readonly NativeSelectionRingOpts ToNative() => new() + { + Sentinel = 0, + Name = Utf8.Get(Name), + Radius = Radius, + }; +} + +/// cui_canvas_controls_opts. All fields are optional; zero selects the native default. +public partial struct CanvasControlsOpts +{ + /// zoom presets, ascending; `NULL`: 0.25 0.33 0.5 0.67 0.8 1 1.25 1.5 2 3 4 + public float[]? Steps; + /// the content's bounds in canvas points, for fit; empty: fit is only reported + public RectF Content; + /// leaves out the fit button + public bool NoFit; + /// the rail sits at the start edge (left, or right in a right-to-left interface) + public bool StartSide; + + internal readonly NativeCanvasControlsOpts ToNative() => new() + { + Sentinel = 0, + Steps = UiMarshal.Values(Steps), + StepCount = Steps?.Length ?? 0, + Content = UiMarshal.ToNative(Content), + Toggles = default, + ToggleCount = default, + NoFit = (byte)(NoFit ? 1 : 0), + StartSide = (byte)(StartSide ? 1 : 0), + }; +} + +/// Result card: a picture with rounded corners, an optional status chip in the top corner, and a title and caption on a soft fade at the bottom, for a render, an export or a generated image. Put its actions under it in a floating toolbar (cui_toolbar with CUI_TOOLBAR_FLOATING, cycle pickers for choices like 2x or PNG). The picture fills the card and is cropped to it. The card is focusable; a click, Enter or Space returns true (open it large). All fields are optional; zero selects the native default. +public partial struct ResultCardOpts +{ + /// under the title, wraps + public string? Caption; + /// the status chip, e.g. "Done in 4.2 s"; `NULL` for none + public string? Badge; + /// the chip's dot, default success + public Tone BadgeTone; + /// the picture's size in pixels, to crop it without stretching; 0: stretched + public int ImageW; + /// the picture's size in pixels, to crop it without stretching; 0: stretched + public int ImageH; + /// default fill, up to 320 + public Size Width; + /// height over width, default 1.25 + public float Aspect; + + internal readonly NativeResultCardOpts ToNative() => new() + { + Sentinel = 0, + Caption = Utf8.Get(Caption), + Badge = Utf8.Get(Badge), + BadgeTone = BadgeTone, + ImageW = ImageW, + ImageH = ImageH, + Width = UiMarshal.ToNative(Width), + Aspect = Aspect, + }; +} + +/// cui_selection_bar_opts. All fields are optional; zero selects the native default. +public partial struct SelectionBarOpts +{ + /// default "%d selected" + public string? CountFormat; + /// the component it sits under; 0: the previous component + public uint Anchor; + /// Esc does not clear + public bool NoEscape; + + internal readonly NativeSelectionBarOpts ToNative() => new() + { + Sentinel = 0, + Selected = default, + ItemCount = default, + CountFormat = Utf8.Get(CountFormat), + Anchor = Anchor, + NoEscape = (byte)(NoEscape ? 1 : 0), + }; +} + /// cui_file_dialog_opts. All fields are optional; zero selects the native default. public partial struct FileDialogOpts { diff --git a/src/CuiSharp/Ui/Pickers.g.cs b/src/CuiSharp/Ui/Pickers.g.cs index d96a710..158130c 100644 --- a/src/CuiSharp/Ui/Pickers.g.cs +++ b/src/CuiSharp/Ui/Pickers.g.cs @@ -43,7 +43,7 @@ public bool TimePicker(UiText id, ref int hour, ref int minute, TimeOpts o = def return __result != 0; } - /// 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. + /// Build a wheel picker, apply input routed to its drum, and draw its focus ring with its rows. public bool WheelPicker(UiText id, ReadOnlySpan items, ref int index, WheelOpts o = default) { var __opts = o.ToNative(); @@ -60,7 +60,7 @@ public bool TimeDial(UiText id, ref int hour, ref int minute, float size) return __result != 0; } - /// Ruler slider: a tape measure that slides under a fixed marker, with momentum and snapping to step. + /// Build a ruler slider: it takes vertical wheel input before the enclosing view and keeps every rounded value in range. public bool RulerSlider(UiText label, ref float value, float min, float max, RulerOpts o = default) { var __opts = o.ToNative(); diff --git a/src/CuiSharp/Ui/Planning.g.cs b/src/CuiSharp/Ui/Planning.g.cs index 3ecbb46..596eb9f 100644 --- a/src/CuiSharp/Ui/Planning.g.cs +++ b/src/CuiSharp/Ui/Planning.g.cs @@ -63,7 +63,7 @@ public LayoutScope KanbanCard(int cardId, out bool clicked) return new LayoutScope(ui.Handle, &Native.KanbanCardEnd, "KanbanCard", null); } - /// 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. + /// Returns the activated event index or -1. Read-only events still activate. public int WeekCalendar(UiText id, Date weekStart, Span events, WeekOpts o = default) { var __events = Utf8.AllocFrame(events.Length); @@ -86,9 +86,9 @@ public MonthResult MonthCalendar(UiText id, ref Date month, ReadOnlySpanGantt 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. + /// Returns the activated task index or -1. Read-only tasks still activate. public int Gantt(UiText id, Span tasks, Date origin, int days, GanttOpts o = default) { var __tasks = Utf8.AllocFrame(tasks.Length); diff --git a/src/CuiSharp/Ui/QueryBuilder.g.cs b/src/CuiSharp/Ui/QueryBuilder.g.cs index 02ad639..e8ce30b 100644 --- a/src/CuiSharp/Ui/QueryBuilder.g.cs +++ b/src/CuiSharp/Ui/QueryBuilder.g.cs @@ -13,7 +13,7 @@ public static unsafe class QueryBuilderUiExtensions { extension(Ui ui) { - /// cui_query_builder_ex + /// Read-only and disabled builders preserve the input rules and count. public bool QueryBuilder(UiText id, ReadOnlySpan fields, Span nodes, ref int count, QueryOpts o = default) { var __fields = Utf8.AllocFrame(fields.Length); diff --git a/src/CuiSharp/Ui/Records.g.cs b/src/CuiSharp/Ui/Records.g.cs index d34cbf4..cad12e7 100644 --- a/src/CuiSharp/Ui/Records.g.cs +++ b/src/CuiSharp/Ui/Records.g.cs @@ -9,6 +9,319 @@ namespace CuiSharp; +/// Voice note: a recorded message in a bubble, with play and pause, its voice waveform as the seek bar (click or drag; the arrow keys step), the time played and the length, and a speed chip that cycles 1x, 1.5x and 2x. It plays nothing itself: you play the audio and pass the position on every frame. Returns CUI_PLAYER_TOGGLE, CUI_PLAYER_SEEK and CUI_PLAYER_SPEED. Elements are copied into the frame arena by the wrapper. +public unsafe partial struct VoiceNoteState +{ + /// the clip's loudness, 0..1, oldest first (resampled to fit) + public float[]? Levels; + /// seconds played; written when the user seeks + public float Position; + /// length of the clip in seconds + public float Duration; + /// playback rate, 1, 1.5 or 2 (0 reads as 1); the chip moves it to the next + public float Speed; + /// shows pause instead of play; the play button flips it + public bool Playing; + + public VoiceNoteState(float[]? Levels, float Position = default, float Duration = default, float Speed = default, bool Playing = default) { this.Levels = Levels; this.Position = Position; this.Duration = Duration; this.Speed = Speed; this.Playing = Playing; } + + internal readonly NativeVoiceNote ToNative() => new() + { + Levels = UiMarshal.Values(Levels), + Count = Levels?.Length ?? 0, + Position = Position, + Duration = Duration, + Speed = Speed, + Playing = (byte)(Playing ? 1 : 0), + }; + + /// Copies an array of these into the frame arena; the wrapper hands the pointer to CUI. + internal static nint ToFrameArray(VoiceNoteState[]? items) + { + if (items is null || items.Length is 0) return 0; + var block = Utf8.AllocFrame(items.Length); + for (int i = 0; i < items.Length; i++) block[i] = items[i].ToNative(); + return (nint)block; + } + + internal static VoiceNoteState FromNative(NativeVoiceNote n) => new() + { + Levels = null, + Position = n.Position, + Duration = n.Duration, + Speed = n.Speed, + Playing = n.Playing != 0, + }; +} + +/// Live cursors: other people's pointers over the previous component (a canvas, a document, a node editor), each an arrow in their color with a name flag and an optional chat bubble. You pass where each pointer is whenever it changes; the cursors glide there, at the same speed at any frame rate. Positions are points from the component's top-left corner, or canvas points under `view` (the node editor's pan and zoom). Cursors only draw: they take no input and no focus. Elements are copied into the frame arena by the wrapper. +public unsafe partial struct LiveUser +{ + /// on the flag, and the identity that keeps a cursor gliding: keep it stable + public string? Name; + /// the cursor, flag and avatar; unset: `tone` + public Color Color; + /// the color as a tone of the theme when `color` is unset; 0: a tone chosen from the name + public Tone Tone; + /// where the pointer is + public float X; + /// where the pointer is + public float Y; + /// a chat bubble under the flag; `NULL` for none + public string? Says; + /// presence pill: a ring and moving level bars on this person + public bool Speaking; + /// the pointer is hidden (it left the canvas); still in the presence pill + public bool Away; + /// presence pill: a picture instead of the initials + public ulong Avatar; + + public LiveUser(string? Name, Color Color = default, Tone Tone = default, float X = default, float Y = default, string? Says = null, bool Speaking = default, bool Away = default, ulong Avatar = default) { this.Name = Name; this.Color = Color; this.Tone = Tone; this.X = X; this.Y = Y; this.Says = Says; this.Speaking = Speaking; this.Away = Away; this.Avatar = Avatar; } + + internal readonly NativeLiveUser ToNative() => new() + { + Name = Utf8.Get(Name), + Color = UiMarshal.ToNative(Color), + Tone = Tone, + X = X, + Y = Y, + Says = Utf8.Get(Says), + Speaking = (byte)(Speaking ? 1 : 0), + Away = (byte)(Away ? 1 : 0), + Avatar = (nuint)(Avatar), + }; + + /// Copies an array of these into the frame arena; the wrapper hands the pointer to CUI. + internal static nint ToFrameArray(LiveUser[]? items) + { + if (items is null || items.Length is 0) return 0; + var block = Utf8.AllocFrame(items.Length); + for (int i = 0; i < items.Length; i++) block[i] = items[i].ToNative(); + return (nint)block; + } + + internal static LiveUser FromNative(NativeLiveUser n) => new() + { + Name = Marshal.PtrToStringUTF8(n.Name), + Color = UiMarshal.FromNative(n.Color), + Tone = n.Tone, + X = n.X, + Y = n.Y, + Says = Marshal.PtrToStringUTF8(n.Says), + Speaking = n.Speaking != 0, + Away = n.Away != 0, + Avatar = n.Avatar, + }; +} + +/// Selection bar: a floating bar that slides up under the previous component (a list, a table, a grid) while something in it is selected: "3 selected" with a clear button, then labeled actions. Esc clears the selection too. Give it the count, or your array of flags in `selected` and it counts and clears them itself. Elements are copied into the frame arena by the wrapper. +public unsafe partial struct SelectionAction +{ + /// const char * icon + public string? Icon; + /// const char * label + public string? Label; + /// CUI_TONE_DANGER for a destructive action + public Tone Tone; + + public SelectionAction(string? Icon, string? Label = null, Tone Tone = default) { this.Icon = Icon; this.Label = Label; this.Tone = Tone; } + + internal readonly NativeSelectionAction ToNative() => new() + { + Icon = Utf8.Get(Icon), + Label = Utf8.Get(Label), + Tone = Tone, + }; + + /// Copies an array of these into the frame arena; the wrapper hands the pointer to CUI. + internal static nint ToFrameArray(SelectionAction[]? items) + { + if (items is null || items.Length is 0) return 0; + var block = Utf8.AllocFrame(items.Length); + for (int i = 0; i < items.Length; i++) block[i] = items[i].ToNative(); + return (nint)block; + } + + internal static SelectionAction FromNative(NativeSelectionAction n) => new() + { + Icon = Marshal.PtrToStringUTF8(n.Icon), + Label = Marshal.PtrToStringUTF8(n.Label), + Tone = n.Tone, + }; +} + +/// Pattern meter: a stacked usage bar (storage, budgets, quotas) whose parts differ in color and in the density of their dots, so it still reads in grayscale, in print and without telling hues apart. One dot of space parts the parts, and the rest of `total` is free space in the track color. Hovering a part, or its legend entry, steps the others back and shows its name, value and share above the bar; the keyboard does the same with Left and Right. Returns the part shown, or -1. Elements are copied into the frame arena by the wrapper. +public unsafe partial struct MeterPart +{ + /// in the legend and the readout + public string? Name; + /// in the meter's units + public float Value; + /// default: the series palette, in order + public Color Color; + /// share of dots lit, 0..1; 0 takes the next of 1, 0.66, 0.42, 0.24, 0.14, 0.08 + public float Density; + + public MeterPart(string? Name, float Value = default, Color Color = default, float Density = default) { this.Name = Name; this.Value = Value; this.Color = Color; this.Density = Density; } + + internal readonly NativeMeterPart ToNative() => new() + { + Name = Utf8.Get(Name), + Value = Value, + Color = UiMarshal.ToNative(Color), + Density = Density, + }; + + /// Copies an array of these into the frame arena; the wrapper hands the pointer to CUI. + internal static nint ToFrameArray(MeterPart[]? items) + { + if (items is null || items.Length is 0) return 0; + var block = Utf8.AllocFrame(items.Length); + for (int i = 0; i < items.Length; i++) block[i] = items[i].ToNative(); + return (nint)block; + } + + internal static MeterPart FromNative(NativeMeterPart n) => new() + { + Name = Marshal.PtrToStringUTF8(n.Name), + Value = n.Value, + Color = UiMarshal.FromNative(n.Color), + Density = n.Density, + }; +} + +/// Elements are copied into the frame arena by the wrapper. +public unsafe partial struct TextFormat +{ + /// the text color, as a tone so it follows the theme; CUI_TONE_NEUTRAL is the text color + public Tone Color; + /// _Bool bold + public bool Bold; + /// _Bool underline + public bool Underline; + /// the selection is a link: the link button shows pressed + public bool Link; + /// index into the styles (default: 0 Header, 1 Title, 2 Subtitle, 3 Normal text) + public int Style; + /// the size readout, in your units; set from the style when the style changes + public float Size; + /// cui_format_align align + public FormatAlign Align; + /// cui_format_list list + public FormatList List; + + public TextFormat(Tone Color, bool Bold = default, bool Underline = default, bool Link = default, int Style = default, float Size = default, FormatAlign Align = default, FormatList List = default) { this.Color = Color; this.Bold = Bold; this.Underline = Underline; this.Link = Link; this.Style = Style; this.Size = Size; this.Align = Align; this.List = List; } + + internal readonly NativeTextFormat ToNative() => new() + { + Color = Color, + Bold = (byte)(Bold ? 1 : 0), + Underline = (byte)(Underline ? 1 : 0), + Link = (byte)(Link ? 1 : 0), + Style = Style, + Size = Size, + Align = Align, + List = List, + }; + + /// Copies an array of these into the frame arena; the wrapper hands the pointer to CUI. + internal static nint ToFrameArray(TextFormat[]? items) + { + if (items is null || items.Length is 0) return 0; + var block = Utf8.AllocFrame(items.Length); + for (int i = 0; i < items.Length; i++) block[i] = items[i].ToNative(); + return (nint)block; + } + + internal static TextFormat FromNative(NativeTextFormat n) => new() + { + Color = n.Color, + Bold = n.Bold != 0, + Underline = n.Underline != 0, + Link = n.Link != 0, + Style = n.Style, + Size = n.Size, + Align = n.Align, + List = n.List, + }; +} + +/// One text style of the style menu. Elements are copied into the frame arena by the wrapper. +public unsafe partial struct TextStyle +{ + /// "Header" + public string? Name; + /// the size it sets in your document, shown in the readout, e.g. 44 + public float Size; + /// the size of its name in the menu, in points + public float PreviewSize; + /// the font of its name in the menu + public Font Font; + + public TextStyle(string? Name, float Size = default, float PreviewSize = default, Font Font = default) { this.Name = Name; this.Size = Size; this.PreviewSize = PreviewSize; this.Font = Font; } + + internal readonly NativeTextStyle ToNative() => new() + { + Name = Utf8.Get(Name), + Size = Size, + PreviewSize = PreviewSize, + Font = Font, + }; + + /// Copies an array of these into the frame arena; the wrapper hands the pointer to CUI. + internal static nint ToFrameArray(TextStyle[]? items) + { + if (items is null || items.Length is 0) return 0; + var block = Utf8.AllocFrame(items.Length); + for (int i = 0; i < items.Length; i++) block[i] = items[i].ToNative(); + return (nint)block; + } + + internal static TextStyle FromNative(NativeTextStyle n) => new() + { + Name = Marshal.PtrToStringUTF8(n.Name), + Size = n.Size, + PreviewSize = n.PreviewSize, + Font = n.Font, + }; +} + +/// Aspect ratio picker: each choice drawn as a rectangle of its own proportions with its ratio under it, and an optional dashed "Custom". The value at the right of the label is the size in pixels. Tab reaches the choices, Left and Right move between them. Elements are copied into the frame arena by the wrapper. +public unsafe partial struct Aspect +{ + /// label NULL shows "w:h" + public int W; + /// label NULL shows "w:h" + public int H; + /// label NULL shows "w:h" + public string? Label; + + public Aspect(int W, int H = default, string? Label = null) { this.W = W; this.H = H; this.Label = Label; } + + internal readonly NativeAspect ToNative() => new() + { + W = W, + H = H, + Label = Utf8.Get(Label), + }; + + /// Copies an array of these into the frame arena; the wrapper hands the pointer to CUI. + internal static nint ToFrameArray(Aspect[]? items) + { + if (items is null || items.Length is 0) return 0; + var block = Utf8.AllocFrame(items.Length); + for (int i = 0; i < items.Length; i++) block[i] = items[i].ToNative(); + return (nint)block; + } + + internal static Aspect FromNative(NativeAspect n) => new() + { + W = n.W, + H = n.H, + Label = Marshal.PtrToStringUTF8(n.Label), + }; +} + /// Elements are copied into the frame arena by the wrapper. public unsafe partial struct EventTrackResult { @@ -56,7 +369,7 @@ internal static nint ToFrameArray(EventTrackResult[]? items) /// Elements are copied into the frame arena by the wrapper. public unsafe partial struct DotChartResult { - /// the sample under the pointer or the keyboard cursor, or -1 + /// pointer or keyboard sample, middle on first keyboard activation, else -1 public int Hovered; /// that sample's x, in x units public double X; @@ -538,7 +851,7 @@ public unsafe partial struct TraceResult { /// `*selected` changed this frame (click or keys) public bool SelectionChanged; - /// the visible time range or the scroll in `*view` changed (zoom, pan, fit) + /// time range, scroll position, or measurement in `*view` changed public bool ViewChanged; /// span under the pointer, or -1 public int Hovered; @@ -2085,20 +2398,23 @@ internal static nint ToFrameArray(Candle[]? items) }; } -/// Radial gauge: one value on a dial with colored bands, labelled ticks, a needle and a target marker, for dashboards (speed, load, temperature, a score against a goal). The needle springs to new values. Elements are copied into the frame arena by the wrapper. +/// Radial gauge: one value as a large number on an arc, for dashboards (load, speed, temperature, a score against a goal). Three styles: CUI_GAUGE_SEGMENTS a ring of short segments, lit in each band's tone up to the value, with the current band's name as a chip under the label CUI_GAUGE_ARC a track and a value arc with round caps, min and max at the ends, and a marker at `target` CUI_GAUGE_RING a slim full ring from the top, with `detail` under it CUI_GAUGE_AUTO (the default) picks the segments when `bands` are given and the arc otherwise. The arc fills to new values with a spring. Elements are copied into the frame arena by the wrapper. public unsafe partial struct GaugeBand { - /// from the band before (or min) up to `to` + /// the band runs from the band before (or min) up to here public float To; - /// from the band before (or min) up to `to` + /// its color public Tone Tone; + /// shown as a chip while the value is in this band (segments style); `NULL` for none + public string? Name; - public GaugeBand(float To, Tone Tone = default) { this.To = To; this.Tone = Tone; } + public GaugeBand(float To, Tone Tone = default, string? Name = null) { this.To = To; this.Tone = Tone; this.Name = Name; } internal readonly NativeGaugeBand ToNative() => new() { To = To, Tone = Tone, + Name = Utf8.Get(Name), }; /// Copies an array of these into the frame arena; the wrapper hands the pointer to CUI. @@ -2114,6 +2430,7 @@ internal static nint ToFrameArray(GaugeBand[]? items) { To = n.To, Tone = n.Tone, + Name = Marshal.PtrToStringUTF8(n.Name), }; } @@ -3342,7 +3659,7 @@ internal static nint ToFrameArray(PathBarResult[]? items) }; } -/// Sankey: flows between nodes; columns follow the links from the sources. Elements are copied into the frame arena by the wrapper. +/// Sankey: flows between nodes; columns follow the links from the sources. Slim nodes in the colors you give them, flows shaded from source to target color, and hovering a node or a flow lights its whole path upstream and downstream. Elements are copied into the frame arena by the wrapper. public unsafe partial struct SankeyLink { /// index of the node the flow leaves @@ -3470,7 +3787,7 @@ internal static nint ToFrameArray(DiffRow[]? items) }; } -/// 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. Elements are copied into the frame arena by the wrapper. +/// Elements are copied into the frame arena by the wrapper. public unsafe partial struct GanttTask { /// shown in the task list and, when it fits, on the bar @@ -3481,16 +3798,18 @@ public unsafe partial struct GanttTask public int Start; /// day the bar ends, counted from `origin` (it is end - start days long); dragging changes it public int End; - /// 0..1: the part of the bar drawn darker, as done + /// 0..1: the part of the bar filled in, as done, with the percentage at its end public float Progress; - /// cui_tone tone + /// overrides the state's color when set public Tone Tone; - /// index of the task this one waits for: an arrow runs from its end to this start. -1 for none + /// index of the task this one waits for: a curve runs from its end to this start. -1 for none public int DependsOn; - /// a diamond at `start` instead of a bar; it cannot be resized + /// an outlined diamond at `start`, labelled with its name and date, instead of a bar; it cannot be resized public bool Milestone; + /// done, active or planned; CUI_GANTT_AUTO works it out from `progress` and `today` + public GanttState State; - public GanttTask(string? Name, string? Owner = null, int Start = default, int End = default, float Progress = default, Tone Tone = default, int DependsOn = default, bool Milestone = default) { this.Name = Name; this.Owner = Owner; this.Start = Start; this.End = End; this.Progress = Progress; this.Tone = Tone; this.DependsOn = DependsOn; this.Milestone = Milestone; } + public GanttTask(string? Name, string? Owner = null, int Start = default, int End = default, float Progress = default, Tone Tone = default, int DependsOn = default, bool Milestone = default, GanttState State = default) { this.Name = Name; this.Owner = Owner; this.Start = Start; this.End = End; this.Progress = Progress; this.Tone = Tone; this.DependsOn = DependsOn; this.Milestone = Milestone; this.State = State; } internal readonly NativeGanttTask ToNative() => new() { @@ -3502,6 +3821,7 @@ public unsafe partial struct GanttTask Tone = Tone, DependsOn = DependsOn, Milestone = (byte)(Milestone ? 1 : 0), + State = State, }; /// Copies an array of these into the frame arena; the wrapper hands the pointer to CUI. @@ -3523,6 +3843,7 @@ internal static nint ToFrameArray(GanttTask[]? items) Tone = n.Tone, DependsOn = n.DependsOn, Milestone = n.Milestone != 0, + State = n.State, }; } @@ -3762,7 +4083,7 @@ internal static nint ToFrameArray(Source[]? items) }; } -/// Agent plan: steps with their status on a connected rail, and progress. Elements are copied into the frame arena by the wrapper. +/// Agent plan: steps with their status on a connected rail, and progress. Reduced motion holds the running glyph still, including in tool calls. Elements are copied into the frame arena by the wrapper. public unsafe partial struct PlanStep { /// the step's text; shimmers while the step is running @@ -3942,7 +4263,7 @@ internal static nint ToFrameArray(TabBarItem[]? items) }; } -/// Treemap: rectangles with areas proportional to their values. Elements are copied into the frame arena by the wrapper. +/// Treemap: rectangles with areas proportional to their values, on neutral tiles graded by size, each with its label, value and share. The accent marks only the hovered or selected tile; an item's own `color` fills its tile instead. Elements are copied into the frame arena by the wrapper. public unsafe partial struct VizItem { /// const char * label @@ -4010,7 +4331,7 @@ internal static nint ToFrameArray(TableSort[]? items) }; } -/// Table Elements are copied into the frame arena by the wrapper. +/// Table: sortable headers and selectable rows show keyboard focus. Elements are copied into the frame arena by the wrapper. public unsafe partial struct TableColumn { /// text of the column's header diff --git a/src/CuiSharp/Ui/SelectComboboxDatePicker.g.cs b/src/CuiSharp/Ui/SelectComboboxDatePicker.g.cs index 8b3b66f..8b8d044 100644 --- a/src/CuiSharp/Ui/SelectComboboxDatePicker.g.cs +++ b/src/CuiSharp/Ui/SelectComboboxDatePicker.g.cs @@ -13,7 +13,7 @@ public static unsafe class SelectComboboxDatePickerUiExtensions { extension(Ui ui) { - /// cui_select_ex + /// Enter opens the list or picks the highlighted item. A searchable select returns focus to its trigger when its list closes. public bool Select(UiText id, ReadOnlySpan items, ref int index, SelectOpts o = default) { if (o.Icons is { } __icons && __icons.Length < items.Length) throw new ArgumentException("Icons must contain at least one entry per item.", nameof(o)); @@ -33,7 +33,7 @@ public bool Calendar(UiText id, ref Date value) return __result != 0; } - /// cui_date_picker_ex + /// Draw the date trigger with a focus ring when reached by keyboard. public bool DatePicker(UiText id, ref Date value, DateOpts o = default) { var __value = UiMarshal.ToNative(value); @@ -44,7 +44,7 @@ public bool DatePicker(UiText id, ref Date value, DateOpts o = default) return __result != 0; } - /// cui_color_picker + /// Draw the color trigger and reconcile its HSV controls with the caller's RGB. public bool ColorPicker(UiText id, ref Color value) { var __value = UiMarshal.ToNative(value); diff --git a/src/CuiSharp/Ui/SelectionControls.g.cs b/src/CuiSharp/Ui/SelectionControls.g.cs index 2380260..2a1a75d 100644 --- a/src/CuiSharp/Ui/SelectionControls.g.cs +++ b/src/CuiSharp/Ui/SelectionControls.g.cs @@ -61,7 +61,7 @@ public bool Slider(UiText label, ref float value, float min, float max, SliderOp return __result != 0; } - /// cui_range_slider + /// Range slider with two non-crossing thumbs. Tab focuses the range, Space selects the other thumb, and the slider keys adjust the focused thumb. public bool RangeSlider(UiText label, ref float lo, ref float hi, float min, float max) { var __result = Native.RangeSlider(ui.Handle, Utf8.Get(label), ref lo, ref hi, min, max); diff --git a/src/CuiSharp/Ui/TimeHistogram.g.cs b/src/CuiSharp/Ui/TimeHistogram.g.cs index 4803ce0..4999c0c 100644 --- a/src/CuiSharp/Ui/TimeHistogram.g.cs +++ b/src/CuiSharp/Ui/TimeHistogram.g.cs @@ -13,7 +13,7 @@ public static unsafe class TimeHistogramUiExtensions { extension(Ui ui) { - /// 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. + /// Draw a time histogram and cancel a pending selection when it becomes disabled. public TimeHistogramResult TimeHistogram(UiText id, double start, double bucketSeconds, int buckets, ReadOnlySpan series, ref double selStart, ref double selEnd, TimeHistogramOpts o = default) { var __series = Utf8.AllocFrame(series.Length); diff --git a/src/CuiSharp/Ui/TraceViewer.g.cs b/src/CuiSharp/Ui/TraceViewer.g.cs index f983232..d7ae56e 100644 --- a/src/CuiSharp/Ui/TraceViewer.g.cs +++ b/src/CuiSharp/Ui/TraceViewer.g.cs @@ -13,7 +13,7 @@ public static unsafe class TraceViewerUiExtensions { extension(Ui ui) { - /// 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+wheel or a drag pans, click selects a span, Shift+drag measures a time range. A lane's name folds it. Keys: Left and Right step through the selected span's lane, + 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. + /// Draw the trace and report changes to its range, scroll position, or measurement. public TraceResult TraceView(UiText id, ReadOnlySpan tracks, ReadOnlySpan spans, ref TraceViewState view, ref int selected, TraceOpts o = default) { var __tracks = Utf8.AllocFrame(tracks.Length); diff --git a/src/CuiSharp/Ui/Ui.CreativeControls.cs b/src/CuiSharp/Ui/Ui.CreativeControls.cs new file mode 100644 index 0000000..95575ec --- /dev/null +++ b/src/CuiSharp/Ui/Ui.CreativeControls.cs @@ -0,0 +1,165 @@ +using CuiSharp.Interop; + +namespace CuiSharp; + +/// +/// A toggle on a canvas controls rail: an icon, the tooltip that names it, and whether it is on. +/// The rail flips on a click and leaves the state to the caller. +/// +public struct CanvasToggle +{ + /// A toggle showing , named by in its tooltip. + public CanvasToggle(string icon, string label) + { + Icon = icon; + Label = label; + On = false; + } + + /// The glyph. + public string Icon { get; init; } + + /// The tooltip, and the name a test finds the toggle by. + public string Label { get; init; } + + /// Shown pressed while true, and flipped when the toggle is clicked. + public bool On { get; set; } +} + +public unsafe ref partial struct Ui +{ + /// + /// A rail of zoom presets, a fit button and the caller's own toggles, over the previous + /// component. Returns the CUI_CANVAS_* flags for what was asked for. + /// + /// The widget id, which is also the identity of its hover and keyboard state. + /// The canvas pan and zoom, written back when the rail moves it. + /// The rail's own toggles, in order; the flipped state comes back in the span. + /// The zoom presets, the content's bounds and which side the rail sits on. + /// + /// Hand-written because each toggle carries a bool * of its own: a value record cannot own + /// a pointer per item, so the flags live in the frame arena for the call and are copied back into + /// the span afterwards. + /// + public CanvasEvents CanvasControls(UiText id, ref NodeView view, scoped Span toggles, CanvasControlsOpts o = default) + { + int count = toggles.Length; + byte* flags = count == 0 ? null : Utf8.AllocFrameBytes(count); + NativeCanvasToggle* native = count == 0 ? null : Utf8.AllocFrame(count); + for (int i = 0; i < count; i++) + { + CanvasToggle toggle = toggles[i]; + flags[i] = (byte)(toggle.On ? 1 : 0); + native[i] = new NativeCanvasToggle + { + Icon = Utf8.Get(toggle.Icon), + Label = Utf8.Get(toggle.Label), + On = (nint)(flags + i), + }; + } + + var opts = o.ToNative(); + opts.Toggles = (nint)native; + opts.ToggleCount = count; + + var handle = view.ToNative(); + int result = Native.CanvasControls(Handle, Utf8.Get(id), ref handle, in opts); + view = NodeView.FromNative(handle); + + for (int i = 0; i < count; i++) + { + CanvasToggle toggle = toggles[i]; + toggle.On = flags[i] != 0; + toggles[i] = toggle; + } + + WidgetRecorder.Note(Handle, "CanvasControls", id); + return (CanvasEvents)result; + } + + /// + /// A joined row of color swatches that can be locked, with a shuffle button that recolors the + /// unlocked ones. Returns the CUI_WELL_* flags for what changed. + /// + /// The row's label; a label starting with "##" shows no label row. + /// The shuffle state: shuffling moves it on, so the same seed gives the same colors. + /// The swatches; a shuffle writes the colors it picked back into the span. + /// One flag per swatch, flipped by a click and copied back. + /// The row's height, value text and whether it has a shuffle button. + /// + /// Both buffers describe the same swatches and must have equal lengths. CUI displays up to 16. + /// Hand-written because both arrays are edited in place and share one native count. + /// + public WellEvents PaletteStrip(UiText label, ref uint seed, scoped Span colors, scoped Span locked, PaletteStripOpts o = default) + { + uint nativeSeed = seed; + WellEvents result = PaletteStripCore(label, &nativeSeed, colors, locked, o); + seed = nativeSeed; + return result; + } + + /// + /// A palette strip without shuffle state: the shuffle button only reports that it was pressed. + /// + /// The row's label; a label starting with "##" shows no label row. + /// The swatches. Without a seed, shuffle leaves them unchanged. + /// One flag per swatch, flipped by a click and copied back. + /// The row's height, value text and whether it has a shuffle button. + public WellEvents PaletteStrip(UiText label, scoped Span colors, scoped Span locked, PaletteStripOpts o = default) => + PaletteStripCore(label, null, colors, locked, o); + + private WellEvents PaletteStripCore(UiText label, uint* seed, scoped Span colors, scoped Span locked, PaletteStripOpts o) + { + if (locked.Length != colors.Length) + throw new ArgumentException("One lock flag is required per color.", nameof(locked)); + + int count = colors.Length; + NativeColor* nativeColors = (NativeColor*)UiMarshal.Colors(colors); + byte* flags = count == 0 ? null : Utf8.AllocFrameBytes(count); + for (int i = 0; i < count; i++) flags[i] = (byte)(locked[i] ? 1 : 0); + + var opts = o.ToNative((nint)seed); + int result = Native.PaletteStrip(Handle, Utf8.Get(label), (nint)nativeColors, (nint)flags, count, in opts); + UiMarshal.ReadColors(nativeColors, colors); + for (int i = 0; i < count; i++) locked[i] = flags[i] != 0; + + WidgetRecorder.Note(Handle, "PaletteStrip", label); + return (WellEvents)result; + } + + /// + /// A bar that says how many items are selected, with the actions that apply to them, over the + /// component it belongs to. Returns the action index, -1 when nothing happened, or -2 when + /// the clear button or Esc cleared the selection. + /// + /// The widget id, which is also the identity of its hover and keyboard state. + /// One flag per item; the clear button and Esc clear them, and the loop copies them back. + /// The actions to offer; CUI_TONE_DANGER marks a destructive one. + /// The count format, the component it sits under and whether Esc clears. + /// + /// Hand-written because selected is a bool * per item that native clears itself: the + /// span is the caller's storage, so the wrapper passes it and copies the cleared flags back. + /// + public int SelectionBar(UiText id, scoped Span selected, scoped ReadOnlySpan actions, SelectionBarOpts o = default) + { + int itemCount = selected.Length; + byte* flags = itemCount == 0 ? null : Utf8.AllocFrameBytes(itemCount); + for (int i = 0; i < itemCount; i++) flags[i] = (byte)(selected[i] ? 1 : 0); + + NativeSelectionAction* nativeActions = actions.IsEmpty + ? null + : Utf8.AllocFrame(actions.Length); + for (int i = 0; i < actions.Length; i++) nativeActions[i] = actions[i].ToNative(); + + var opts = o.ToNative(); + opts.Selected = (nint)flags; + opts.ItemCount = itemCount; + + int result = Native.SelectionBar(Handle, Utf8.Get(id), itemCount, (nint)nativeActions, actions.Length, in opts); + + for (int i = 0; i < itemCount; i++) selected[i] = flags[i] != 0; + + WidgetRecorder.Note(Handle, "SelectionBar", id); + return result; + } +} diff --git a/src/CuiSharp/Ui/Ui.cs b/src/CuiSharp/Ui/Ui.cs index 129415c..feafed0 100644 --- a/src/CuiSharp/Ui/Ui.cs +++ b/src/CuiSharp/Ui/Ui.cs @@ -226,4 +226,20 @@ public void DonutChart(UiText id, float[] values, string[]? labels = null, Chart /// Requests another frame; call only from the synchronous draw path. public void RequestRedraw() => Native.RequestRedraw(Handle); public bool NeedsRedraw => Native.NeedsRedraw(Handle) != 0; + + /// + /// Puts text on the system clipboard, through the platform's clipboard hook, for a menu or a + /// status bar item that copies. Without a hook it does nothing. + /// + public void SetClipboard(UiText text) => Native.SetClipboardText(Handle, Utf8.Get(text)); + + /// + /// The system clipboard, or null when the platform has no clipboard hook. The text is copied out + /// of CUI's frame memory, so it stays valid after the frame. + /// + public string? GetClipboard() + { + nint text = Native.GetClipboardText(Handle); + return text == 0 ? null : System.Runtime.InteropServices.Marshal.PtrToStringUTF8(text); + } } diff --git a/src/CuiSharp/Ui/Voice.g.cs b/src/CuiSharp/Ui/Voice.g.cs new file mode 100644 index 0000000..d575439 --- /dev/null +++ b/src/CuiSharp/Ui/Voice.g.cs @@ -0,0 +1,78 @@ +// +// Generated by tools/bindgen.cs from native/CUI/include/cui/*.h. +// Do not edit: change the generator or bindings/overrides.json and run +// dotnet run tools/bindgen.cs +// +#nullable enable +using System.Runtime.InteropServices; +using CuiSharp.Interop; + +namespace CuiSharp; + +public static unsafe class VoiceUiExtensions +{ + extension(Ui ui) + { + /// cui_voice_wave_ex + public bool VoiceWave(UiText id, ReadOnlySpan levels, ref float progress, VoiceWaveOpts o = default) + { + float __progress = (float)(progress); + if (o.Owners is { } __owners && __owners.Length < levels.Length) + throw new ArgumentException($"Owners needs at least {levels.Length} entries.", nameof(o)); + var __opts = o.ToNative((nint)(&__progress)); + var __result = Native.VoiceWave(ui.Handle, Utf8.Get(id), UiMarshal.Values(levels), (int)(levels.Length), in __opts); + progress = __progress; + WidgetRecorder.NoteValue(ui.Handle, "VoiceWave", id, (double)progress); + return __result != 0; + } + + /// Same as the overload with ref progress, but reports nothing back: the state pointer is null, so the widget stores no state the caller could read. + public bool VoiceWave(UiText id, ReadOnlySpan levels, VoiceWaveOpts o = default) + { + if (o.Owners is { } __owners && __owners.Length < levels.Length) + throw new ArgumentException($"Owners needs at least {levels.Length} entries.", nameof(o)); + var __opts = o.ToNative(0); + var __result = Native.VoiceWave(ui.Handle, Utf8.Get(id), UiMarshal.Values(levels), (int)(levels.Length), in __opts); + WidgetRecorder.Note(ui.Handle, "VoiceWave", id); + return __result != 0; + } + + /// Voice note: a recorded message in a bubble, with play and pause, its voice waveform as the seek bar (click or drag; the arrow keys step), the time played and the length, and a speed chip that cycles 1x, 1.5x and 2x. It plays nothing itself: you play the audio and pass the position on every frame. Returns CUI_PLAYER_TOGGLE, CUI_PLAYER_SEEK and CUI_PLAYER_SPEED. + public PlayerEvents VoiceNote(UiText id, ref VoiceNoteState note, VoiceNoteOpts o = default) + { + var __note = note.ToNative(); + var __opts = o.ToNative(); + var __result = Native.VoiceNote(ui.Handle, Utf8.Get(id), ref __note, in __opts); + var __updatednote = VoiceNoteState.FromNative(__note); + __updatednote.Levels = note.Levels; + note = __updatednote; + WidgetRecorder.Note(ui.Handle, "VoiceNote", id); + return (PlayerEvents)__result; + } + + /// cui_voice_session_ex + public VoiceSessionEvents VoiceSession(UiText id, VoiceState state, ReadOnlySpan levels, ref bool muted, VoiceSessionOpts o = default) + { + byte __muted = (byte)(muted ? 1 : 0); + if (o.Owners is { } __owners && __owners.Length < levels.Length) + throw new ArgumentException($"Owners needs at least {levels.Length} entries.", nameof(o)); + var __opts = o.ToNative((nint)(&__muted)); + var __result = Native.VoiceSession(ui.Handle, Utf8.Get(id), state, UiMarshal.Values(levels), (int)(levels.Length), in __opts); + muted = __muted != 0; + WidgetRecorder.NoteValue(ui.Handle, "VoiceSession", id, muted); + return (VoiceSessionEvents)__result; + } + + /// Same as the overload with ref muted, but reports nothing back: the state pointer is null, so the widget stores no state the caller could read. + public VoiceSessionEvents VoiceSession(UiText id, VoiceState state, ReadOnlySpan levels, VoiceSessionOpts o = default) + { + if (o.Owners is { } __owners && __owners.Length < levels.Length) + throw new ArgumentException($"Owners needs at least {levels.Length} entries.", nameof(o)); + var __opts = o.ToNative(0); + var __result = Native.VoiceSession(ui.Handle, Utf8.Get(id), state, UiMarshal.Values(levels), (int)(levels.Length), in __opts); + WidgetRecorder.Note(ui.Handle, "VoiceSession", id); + return (VoiceSessionEvents)__result; + } + + } +} diff --git a/tools/bindgen.cs b/tools/bindgen.cs index ddc6c13..8472aa9 100644 --- a/tools/bindgen.cs +++ b/tools/bindgen.cs @@ -403,7 +403,7 @@ sealed record ArrayParamOverride(string Why); /// An option array whose length is one of the widget's own parameters. The wrapper /// checks the length before the call, so a short array cannot be over-read. /// -sealed record OptionArrayCheck(string AtLeast, string Why); +sealed record OptionArrayCheck(string AtLeast, string Why, string[]? Prepare = null); /// /// A record array the widget edits in place. ChangedWhen is the condition the widget reports @@ -1529,6 +1529,7 @@ sealed class Idiomatic "Test explorer", "Stack trace", "HTTP request bar", "Uptime bars", "Time histogram", "Coverage", "Blame", "Feature flags", "API explorer", "Instruments: dot-matrix chart, event track, readout, dot-matrix display", + "Voice", "Creative controls", ]; public Idiomatic(Api api, Overrides overrides) @@ -1664,11 +1665,13 @@ private void ValidateOverrides() RequireReason(key, value.Why); int dot = key.LastIndexOf('.'); string function = key[..dot], param = key[(dot + 1)..]; - if (!_api.Functions.Any(f => f.CName == function)) - throw new InvalidOperationException($"Unknown function for optional injected parameter: {key}"); - // The key names the parameter the wrapper emits, not the C field: an injection that - // renames (`param`) or whose record camels differently is matched by that name. - if (!_overrides.InjectedFields.Any(e => ComponentParamName(e.Key, e.Value) == param)) + var target = _api.Functions.SingleOrDefault(f => f.CName == function) + ?? throw new InvalidOperationException($"Unknown function for optional injected parameter: {key}"); + // A matching name on some other widget is not an injection this signature owns. + bool UsesOption(string fieldKey) => target.Params.Any(p => p.Type.Element is { } element + && Trim(element.Spelling) == fieldKey[..fieldKey.IndexOf('.')]); + if (!_overrides.InjectedFields.Any(e => UsesOption(e.Key) && ComponentParamName(e.Key, e.Value) == param) + && !IsOptionPointerParam(target, param)) throw new InvalidOperationException($"Optional injected parameter needs a matching injected field: {key}"); } foreach (var (key, value) in _overrides.ParameterDefaults) @@ -1866,6 +1869,23 @@ private void ValidateOverrides() } } + /// + /// Whether an `optionPointers` field emits a wrapper parameter spelled `param`. The key names + /// an option field (`struct.field`), the optional-injection key names a function's parameter, + /// so the two are matched on the name the field becomes. + /// + private bool IsOptionPointerParam(FunctionModel function, string param) => + _overrides.OptionPointers.Keys.Any(key => + { + int dot = key.LastIndexOf('.'); + if (dot < 0 || !function.Params.Any(p => p.Type.Element is { } element + && Trim(element.Spelling) == key[..dot])) return false; + StructModel? str = _api.Structs.FirstOrDefault(s => s.CName == key[..dot]); + FieldModel? field = str?.Fields.FirstOrDefault(f => f.CName == key[(dot + 1)..]); + string name = _overrides.OptionFieldNames.TryGetValue(key, out var rename) ? rename.Name : field?.CsName ?? ""; + return field is not null && Names.Escape(Names.Camel(name)) == param; + }); + private void RequireField(string key) { if (!_api.Structs.Any(s => s.Fields.Any(f => s.CName + "." + f.CName == key))) @@ -1978,12 +1998,17 @@ private OptionPlan PlanOption(StructModel str) if (f.Type.Kind == "Pointer" && f.Type.Element?.IsConst == true && _records.TryGetValue(Trim(f.Type.Element.Spelling), out var element)) return ($"{element.Name}[]?", $"{element.Name}.ToFrameArray({fieldName})"); - if (IsStringArray(f.Type) || IsFloatArray(f.Type) || IsDoubleArray(f.Type)) + if (IsStringArray(f.Type) || IsFloatArray(f.Type) || IsDoubleArray(f.Type) || IsByteArray(f.Type)) return IsStringArray(f.Type) ? ("string[]?", $"UiMarshal.Strings({fieldName})") : IsDoubleArray(f.Type) ? ("double[]?", $"UiMarshal.Values({fieldName})") - : ("float[]?", $"UiMarshal.Values({fieldName})"); + : IsByteArray(f.Type) + ? ("byte[]?", $"UiMarshal.Values({fieldName})") + : ("float[]?", $"UiMarshal.Values({fieldName})"); + if (IsColorArray(f.Type)) return ("Color[]?", $"UiMarshal.Colors({fieldName})"); + if (FriendlyEnumElement(f.Type) is { } enumName) + return ($"{enumName}[]?", $"UiMarshal.Values<{enumName}>({fieldName})"); if (f.Type.Kind is "Pointer" or "ConstantArray" || f.CsType.StartsWith("Native", StringComparison.Ordinal) && type == f.CsType) throw new NotSupportedException($"{f.CName}: {f.CType} needs explicit ownership/length semantics"); @@ -2018,12 +2043,8 @@ private RecordPlan PlanRecord(StructModel str, string name) } // Read-back needs the value to survive the call: a field backed by a C pointer is // CUI's memory, while a fixed buffer belongs to the record the caller handed over. - bool canReadBack = fields.All(f => f.Type switch - { - "string[]?" or "float[]?" => false, - "string?" => f.Native.IsFixedBuffer, - _ => true, - }); + bool canReadBack = fields.All(f => !(f.Native.Type.Kind == "Pointer" && IsArrayField(f.Native.Type)) + && (f.Type != "string?" || f.Native.IsFixedBuffer)); return new(str, name, [.. fields], canReadBack); } @@ -2115,7 +2136,7 @@ public string Records() "bool[]?" => $"UiMarshal.ReadBooleans(n.{f.Native.CsName}, {f.Native.ArrayLength})", "int[]?" or "float[]?" when f.Native.IsFixedBuffer => $"UiMarshal.ReadValues(n.{f.Native.CsName}, {f.Native.ArrayLength})", - "string[]?" or "float[]?" => "null", + _ when f.Native.Type.Kind == "Pointer" && IsArrayField(f.Native.Type) => "null", "Size" or "Color" or "Date" or "RectF" => $"UiMarshal.FromNative(n.{f.Native.CsName})", _ => f.Native.Type.Kind != "Pointer" && _records.TryGetValue(Trim(f.Native.Type.Spelling), out var nestedField) ? $"{nestedField.Name}.FromNative(n.{f.Native.CsName})" @@ -2140,9 +2161,26 @@ public string Records() private static bool IsDoubleArray(CType t) => t.Kind == "Pointer" && t.Element is { Kind: "Double" }; private static bool IsIntArray(CType t) => t.Kind == "Pointer" && t.Element is { Kind: "Int", IsConst: true }; - /// An option field the wrapper turns into an array: strings, floats, doubles, or records. + /// + /// A `const cui_color *` is an array of colors, and `cui_color` is not a data record: it is the + /// managed Color with a native layout, so the elements convert one at a time. + /// + private static bool IsColorArray(CType t) => + t.Kind == "Pointer" && t.Element is { Kind: "Record", IsConst: true } && Trim(t.Element.Spelling) == "cui_color"; + + /// The friendly name of an enum an array points at, when it points at one. + private string? FriendlyEnumElement(CType t) + { + if (t.Kind != "Pointer" || t.Element is not { Kind: "Enum", IsConst: true }) return null; + string spelling = Trim(t.Element.Spelling); + foreach (EnumModel model in _api.Enums) if (model.CName == spelling) return model.CsName; + return null; + } + + /// An option field the wrapper turns into an array: strings, floats, doubles, bytes, colors, enums, or records. private bool IsArrayField(CType t) => - IsStringArray(t) || IsFloatArray(t) || IsDoubleArray(t) || IsRecordArray(t); + IsStringArray(t) || IsFloatArray(t) || IsDoubleArray(t) || IsByteArray(t) + || IsColorArray(t) || FriendlyEnumElement(t) is not null || IsRecordArray(t); /// An array of records the wrapper converts into the frame arena, like `cui_chart_annotation`. private bool IsRecordArray(CType t) => @@ -2469,18 +2507,20 @@ private WidgetPlan PlanWidget(FunctionModel function) continue; } - if (IsPrimitiveName(field.InjectedType!) || field.InjectedType == "Date" || _overrides.OptionPointers.ContainsKey(option.Native.CName + "." + field.Native.CName)) + if (IsPrimitiveName(field.InjectedType!) || field.InjectedType is "Date" or "Color" || _overrides.OptionPointers.ContainsKey(option.Native.CName + "." + field.Native.CName)) { // Named after the option field it fills, so the call reads like the API. string primitiveParam = Names.Escape(Names.Camel(field.Name)); string nativeLocal = $"__{primitiveParam}"; bool isDate = field.InjectedType == "Date"; + bool isColor = field.InjectedType == "Color"; // A field declared in `optionPointers` with a type that is not a primitive // is an enum: the caller hands over `ref Mods`, and the storage the widget // writes through is that enum itself, whose layout is the C int. - bool isEnum = !isDate && !IsPrimitiveName(field.InjectedType!); + bool isEnum = !isDate && !isColor && !IsPrimitiveName(field.InjectedType!); string nativeType = isEnum ? field.InjectedType! - : isDate ? "NativeDate" : field.Native.Type.Element!.Kind switch + : isDate ? "NativeDate" + : isColor ? "NativeColor" : field.Native.Type.Element!.Kind switch { "Bool" => "byte", "Float" => "float", @@ -2488,13 +2528,13 @@ private WidgetPlan PlanWidget(FunctionModel function) _ => "int", }; bool isFlag = nativeType == "byte"; - prepare.Add(isDate + prepare.Add(isDate || isColor ? $"{nativeType} {nativeLocal} = UiMarshal.ToNative({primitiveParam});" : isEnum ? $"{nativeType} {nativeLocal} = {primitiveParam};" : $"{nativeType} {nativeLocal} = ({nativeType})({primitiveParam}{(isFlag ? " ? 1 : 0" : "")});"); nativeArgs.Add($"(nint)(&{nativeLocal})"); - readBack.Add(isDate + readBack.Add(isDate || isColor ? $"{primitiveParam} = UiMarshal.FromNative({nativeLocal});" : isEnum ? $"{primitiveParam} = {nativeLocal};" @@ -2528,9 +2568,11 @@ private WidgetPlan PlanWidget(FunctionModel function) _overrides.OptionArrayChecks.ContainsKey(option.Native.CName + "." + f.Native.CName))) { var check = _overrides.OptionArrayChecks[option.Native.CName + "." + checkedArray.Native.CName]; + if (check.Prepare is { } prelude) prepare.AddRange(prelude); prepare.Add($"if (o.{checkedArray.Name} is {{ }} __{Names.Camel(checkedArray.Name)} && __{Names.Camel(checkedArray.Name)}.Length < {check.AtLeast})"); - prepare.Add($" throw new ArgumentException(\"{checkedArray.Name} needs at least {check.AtLeast} entries.\", nameof(o));"); - } foreach (string array in stringArrays) + prepare.Add($" throw new ArgumentException($\"{checkedArray.Name} needs at least {{{check.AtLeast}}} entries.\", nameof(o));"); + } + foreach (string array in stringArrays) { var icons = option.Fields.SingleOrDefault(f => !f.Hidden && f.Native.CName == "icons"); if (icons is not null) @@ -2737,9 +2779,21 @@ private WidgetPlan PlanWidget(FunctionModel function) : $"var __{name} = UiMarshal.ToNative({name});"); arguments.Add((mode == "in " ? "in " : "ref ") + "__" + name); if (mode != "in ") - writeBack.Add($"{name} = " + (record - ? $"{_records[Trim(p.Type.Element!.Spelling)].Name}.FromNative(__{name});" - : $"UiMarshal.FromNative(__{name});")); + { + var plan = record ? _records[Trim(p.Type.Element!.Spelling)] : null; + var borrowed = plan?.Fields.Where(f => !f.Hidden && f.Native.Type.Kind == "Pointer" + && f.Native.Type.Element?.IsConst == true && IsArrayField(f.Native.Type)).ToArray() ?? []; + string converted = record ? $"{plan!.Name}.FromNative(__{name})" : $"UiMarshal.FromNative(__{name})"; + if (borrowed.Length == 0) writeBack.Add($"{name} = {converted};"); + else + { + // Const arrays are caller-owned input, not output state. FromNative + // cannot recover their managed identity from an arena address. + writeBack.Add($"var __updated{name} = {converted};"); + foreach (var field in borrowed) writeBack.Add($"__updated{name}.{field.Name} = {name}.{field.Name};"); + writeBack.Add($"{name} = __updated{name};"); + } + } } else { @@ -2891,7 +2945,7 @@ private static uint TextKeySalt(string overrideKey) return hash; } - private string? NoteLine(WidgetPlan widget) + private string? NoteLine(WidgetPlan widget, string[]? skip = null) { // A container records itself through the scope it returns, which knows where it ends. if (widget.End is not null) return null; @@ -2918,13 +2972,16 @@ private static uint TextKeySalt(string overrideKey) target = $"string.IsNullOrEmpty({options.Name}.Tooltip) ? {namer.Name} : (UiText){options.Name}.Tooltip"; } + WidgetParam? Pick(Func predicate) => + widget.Params.Where(p => skip is null || !skip.Contains(p.Name, StringComparer.Ordinal)).FirstOrDefault(predicate); + // 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 => + WidgetParam? textValue = Pick(p => p.Mode == "ref " && p.Type == "string"); + WidgetParam? boolValue = Pick(p => p.Mode == "ref " && p.Type == "bool"); + WidgetParam? numberValue = Pick(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) : ""; @@ -3072,7 +3129,7 @@ public Dictionary Widgets() foreach (string line in reducedWriteBack) sb.AppendLine(" " + line); // The optional overload draws the same widget, so it has to be as findable as // the full one: a test that clicks it must see the id it was drawn with. - if (NoteLine(w) is { } reducedNote) sb.AppendLine(" " + reducedNote); + if (NoteLine(w, optional.Select(i => i.Param).ToArray()) is { } reducedNote) sb.AppendLine(" " + reducedNote); if (w.End is not null) sb.AppendLine($" return {ScopeNew(w, "__result", w.Return)};"); else if (w.ReturnStatement is { } reducedStatement) sb.AppendLine(" " + reducedStatement); @@ -3516,6 +3573,12 @@ static IEnumerable Lines(string text) => var notInjected = Clone(overrides); notInjected.OptionalInjectedParams["cui_table_begin_ex.missing"] = new("Synthetic negative test."); Check("optional injected state must name a real injection", Rejects(() => new Idiomatic(api, notInjected))); + var wrongWidget = Clone(overrides); + wrongWidget.OptionalInjectedParams["cui_button_ex.selected"] = new("Synthetic negative test."); + Check("optional scalar state belongs to this widget", Rejects(() => new Idiomatic(api, wrongWidget))); + wrongWidget = Clone(overrides); + wrongWidget.OptionalInjectedParams["cui_button_ex.sort"] = new("Synthetic negative test."); + Check("optional record state belongs to this widget", Rejects(() => new Idiomatic(api, wrongWidget))); Console.WriteLine($"bindgen self-test: {checks} passed (no files written)"); } diff --git a/tools/gallery-pages.ps1 b/tools/gallery-pages.ps1 index bdf45c4..3e3b6e9 100644 --- a/tools/gallery-pages.ps1 +++ b/tools/gallery-pages.ps1 @@ -42,4 +42,7 @@ $GalleryPages = @( [pscustomobject]@{ Number = '27'; Key = 'audio'; Label = 'Audio'; Heading = 'Audio'; Scrolled = $true } [pscustomobject]@{ Number = '28'; Key = 'files'; Label = 'Files'; Heading = 'Files'; Scrolled = $true } [pscustomobject]@{ Number = '29'; Key = 'instruments'; Label = 'Instruments'; Heading = 'Instruments'; Scrolled = $true } + [pscustomobject]@{ Number = '30'; Key = 'creative'; Label = 'Creative controls'; Heading = 'Creative controls'; Scrolled = $true } + [pscustomobject]@{ Number = '31'; Key = 'collab'; Label = 'Collaboration'; Heading = 'Collaboration'; Scrolled = $true } + [pscustomobject]@{ Number = '32'; Key = 'voice'; Label = 'Voice'; Heading = 'Voice'; Scrolled = $true } )