GUI native modules and data
Open searchable reader
platinum_core::ui_document
platinum_core::ui_document
Canonical renderer-free authored UI documents, styles, layout and transactions.
Extracted from the SDK game UI implementation; no game identities, rendering,
file loading or action execution are part of this module. Assets remain inert
data. Hosts authorize dependencies/actions and sandbox external parsers.
Parse entrypoints and validation apply conservative default byte, element,
attribute and depth budgets. Deserialize of public serde types alone is not
validation: bound bytes before decoding and call `validate` before use. Layout
and serialization reject invalid documents. Bounds limit allocation/work but
do not constitute process isolation or a hostile-code security boundary.
Source: crates/platinum-core/src/ui_document.rs:1
platinum_core::ui_document::UiLimits
pub struct UiLimits
Allocation and work budgets for authored UI parsing and validation.
Defaults allow 2 MiB source/content, 16,384 elements, depth 128, 128
attributes per element, 4,096 stylesheet rules and finite dimensions up to
1,000,000. A tighter host budget can reject otherwise valid assets. These
limits do not authorize dependencies, execute actions or isolate a parser.
Public data fields| Name | Type / declaration | Description |
|---|
| source_bytes | usize | Maximum source and validated-content byte budget. |
| elements | usize | Maximum elements in one document. |
| depth | usize | Maximum element hierarchy depth, including the element itself. |
| attributes_per_element | usize | Maximum authored attributes per element. |
| stylesheet_rules | usize | Maximum rules in one parsed stylesheet. |
| dimension | f32 | Positive finite bound used when validating canvas/layout dimensions. |
Source: crates/platinum-core/src/ui_document.rs:31
platinum_core::ui_document::UiElementId
pub type UiElementId
Stable exact integer identity within one UI document.
Identity is independent of element position or label. Wire adapters must
preserve the full u64 range; do not round IDs through a JavaScript number.
Source: crates/platinum-core/src/ui_document/document.rs:23
platinum_core::ui_document::UiElement
pub struct UiElement
One authored widget and its inert string-valued attributes.
`parent` refers to another element in the same document; `None` attaches to
the document root. `kind` uses the validated widget vocabulary. An action
or asset path in `attributes` is data for an authorized host to resolve,
never permission to execute code or open a file.
Public data fields| Name | Type / declaration | Description |
|---|
| id | UiElementId | Unique document-local identity; survives ordering and label changes. |
| parent | Option<UiElementId> | Parent identity in this document, or the canvas root when absent. |
| kind | String | Validated element tag, such as `button`, `input` or `panel`. |
| attributes | BTreeMap<String, String> | Authored layout/style/widget values; reserved `id` stays in `id`. |
| text | String | Direct text content, interpreted as text rather than executable markup. |
Source: crates/platinum-core/src/ui_document/document.rs:31
platinum_core::ui_document::UiElement::live_view_definition
pub fn live_view_definition(&self) -> Result<crate::live_view::LiveViewDefinition, crate::live_view::LiveViewError>
Parse common LiveView options. Source and destination names remain inert:
the host resolves them to opaque authorized handles/capabilities.
Source: crates/platinum-core/src/ui_document/document.rs:48
platinum_core::ui_document::UiElement::number
pub fn number(&self, name: &str, fallback: f32) -> f32
Read a finite numeric attribute, accepting an optional trailing `px`.
Missing, malformed or non-finite values return `fallback`; this helper
does not replace full document validation or check a field's domain.
Source: crates/platinum-core/src/ui_document/document.rs:55
platinum_core::ui_document::UiElement::rect
pub fn rect(&self) -> [f32; 4]
Read `[x, y, width, height]`, defaulting to `[0, 0, 200, 40]`.
This authored rectangle is not the final responsive layout result.
Source: crates/platinum-core/src/ui_document/document.rs:64
platinum_core::ui_document::UiElement::set_rect
pub fn set_rect(&mut self, rect: [f32; 4])
Store rectangle attributes with two decimal places.
Validate the document before publishing; this setter alone accepts
values that can later fail validation.
Source: crates/platinum-core/src/ui_document/document.rs:75
platinum_core::ui_document::UiDocument
pub struct UiDocument
Renderer-independent authored UI data, with ordered elements and comments.
Version 1 supports bounded XML parsing and serde data interchange. Direct
serde decoding does not validate the result: bound input bytes first, then
call `validate`. This type performs no file IO, rendering or action dispatch.
Persist it separately from local focus, selection and window preferences.
Public data fields| Name | Type / declaration | Description |
|---|
| version | u32 | Authored format version; validation currently accepts only 1. |
| name | String | Human-readable document label, not a security or resource identity. |
| size | [f32; 2] | Positive finite reference canvas width and height. |
| stylesheet | String | Optional stylesheet dependency reference, resolved by the host. |
| elements | Vec<UiElement> | Ordered authored elements; parent IDs define their tree relationships. |
| comments | Vec<String> | Preserved inert XML comment text, subject to XML character constraints. |
Source: crates/platinum-core/src/ui_document/document.rs:88
platinum_core::ui_document::UiDocument::parse
pub fn parse(xml: &str) -> Result<Self, String>
Parse and validate `<ui>` XML with default budgets.
Returns a diagnostic for malformed XML, unsupported namespaces/version,
invalid widget data/IDs/hierarchy or exceeded budgets. No assets load.
Source: crates/platinum-core/src/ui_document/document.rs:106
platinum_core::ui_document::UiDocument::parse_with_limits
pub fn parse_with_limits(xml: &str, limits: UiLimits) -> Result<Self, String>
Parse XML after checking its byte budget, then validate authored data.
Every child element requires an exact integer `id`. Nested XML defines
the parent relation; text is collected from direct text children.
Source: crates/platinum-core/src/ui_document/document.rs:112
platinum_core::ui_document::UiDocument::validate
pub fn validate(&self) -> Result<(), String>
Check structure, widget vocabulary, text, dimensions and default budgets.
Use after constructing or deserializing data and before publishing edits.
Source: crates/platinum-core/src/ui_document/document.rs:201
platinum_core::ui_document::UiDocument::validate_with_limits
pub fn validate_with_limits(&self, limits: UiLimits) -> Result<(), String>
Validate against host-selected bounds, rejecting duplicate IDs, missing
parents, cycles, unsupported widgets and malformed numeric attributes.
Success describes valid data; host permissions remain a separate check.
Source: crates/platinum-core/src/ui_document/document.rs:207
platinum_core::ui_document::UiDocument::to_xml
pub fn to_xml(&self) -> Result<String, String>
Validate and serialize escaped XML within the default output byte budget.
This returns text only; the caller owns persistence and save status.
Source: crates/platinum-core/src/ui_document/document.rs:343
platinum_core::ui_document::UiDocument::next_id
pub fn next_id(&self) -> u64
Suggest one above the largest existing ID, saturating at `u64::MAX`.
This is not an allocation proof: exhaustion may return an existing ID.
Validated edit operations must reject collisions and exhaustion.
Source: crates/platinum-core/src/ui_document/document.rs:399
platinum_core::ui_document::UiDocument::dependencies
pub fn dependencies(&self) -> BTreeSet<String>
Collect declared stylesheet and `src`, `font`, `template`, and
`animation-asset` references for export dependency closure.
Returned strings are not path-normalized, read, trusted or authorized;
the host must resolve them against its admitted asset boundary.
Source: crates/platinum-core/src/ui_document/document.rs:412
platinum_core::ui_document::UiStylesheet
pub struct UiStylesheet
Bounded stylesheet data using kind, `.class` or `#integer-id` selectors.
Supported states are `:hover`, `:pressed`, `:focus`, `:disabled` and
`:selected`. This is the Platinum UI subset, not a browser CSS engine.
Parsing rejects unsupported selectors/properties; no URLs or scripts run.
Public data fields| Name | Type / declaration | Description |
|---|
| rules | Vec<(String, BTreeMap<String, String>)> | |
Source: crates/platinum-core/src/ui_document/document.rs:435
platinum_core::ui_document::UiStylesheet::validate
pub fn validate(&self) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-core/src/ui_document/document.rs:439
platinum_core::ui_document::UiStylesheet::parse
pub fn parse(css: &str) -> Result<Self, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-core/src/ui_document/document.rs:474
platinum_core::ui_document::UiStylesheet::parse_with_limits
pub fn parse_with_limits(css: &str, limits: UiLimits) -> Result<Self, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-core/src/ui_document/document.rs:477
platinum_core::ui_document::UiStylesheet::resolve
pub fn resolve(&self, e: &UiElement, state: &str) -> BTreeMap<String, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-core/src/ui_document/document.rs:575
platinum_core::ui_document::UiHistory
pub struct UiHistory
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-core/src/ui_document/document.rs:610
platinum_core::ui_document::UiHistory::commit
pub fn commit(&mut self, before: UiDocument, after: &UiDocument) -> Result<bool, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-core/src/ui_document/document.rs:615
platinum_core::ui_document::UiHistory::undo
pub fn undo(&mut self, doc: &mut UiDocument) -> Result<bool, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-core/src/ui_document/document.rs:628
platinum_core::ui_document::UiHistory::redo
pub fn redo(&mut self, doc: &mut UiDocument) -> Result<bool, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-core/src/ui_document/document.rs:641
platinum_core::ui_document::UiOverrides
pub struct UiOverrides(pub BTreeMap<UiElementId, BTreeMap<String, String>>)
Per-instance property overrides; source updates flow through all untouched properties.
Source: crates/platinum-core/src/ui_document/document.rs:658
platinum_core::ui_document::UiOverrides::instantiate
pub fn instantiate(&self, source: &UiDocument) -> Result<UiDocument, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-core/src/ui_document/document.rs:660
platinum_core::ui_document::UiOverrides::apply_to
pub fn apply_to(&mut self, source: &mut UiDocument) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-core/src/ui_document/document.rs:711
platinum_core::ui_document::UiOverrides::revert
pub fn revert(&mut self)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-core/src/ui_document/document.rs:717
platinum_core::ui_document::UiInstanceAsset
pub struct UiInstanceAsset
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| version | u32 | |
| source | String | |
| overrides | UiOverrides | |
Source: crates/platinum-core/src/ui_document/document.rs:723
platinum_core::ui_document::UiInstanceAsset::parse_json
pub fn parse_json(json: &str) -> Result<Self, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-core/src/ui_document/document.rs:729
platinum_core::ui_document::UiInstanceAsset::validate
pub fn validate(&self) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-core/src/ui_document/document.rs:737
platinum_core::ui_document::UiInstanceAsset::instantiate
pub fn instantiate(&self, source: &UiDocument) -> Result<UiDocument, String>
Source references are inert names, not authorization to open a file.
Source: crates/platinum-core/src/ui_document/document.rs:748
platinum_core::ui_document::UiOverrides::between
pub fn between(source: &UiDocument, instance: &UiDocument) -> Result<Self, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-core/src/ui_document/document.rs:754
platinum_core::ui_document::UiClipboard
pub struct UiClipboard
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| version | u32 | |
| roots | Vec<u64> | |
| elements | Vec<UiElement> | |
Source: crates/platinum-core/src/ui_document/edit.rs:7
platinum_core::ui_document::UiClipboard::parse_json
pub fn parse_json(json: &str) -> Result<Self, String>
Wire callers must bound JSON before decoding, not only after allocation.
Source: crates/platinum-core/src/ui_document/edit.rs:15
platinum_core::ui_document::UiClipboard::validate
pub fn validate(&self) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-core/src/ui_document/edit.rs:23
platinum_core::ui_document::UiAlignment
pub enum UiAlignment
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-core/src/ui_document/edit.rs:62
platinum_core::ui_document::UiTransaction
pub struct UiTransaction
A validated local editing gesture with private before/preview snapshots.
Use one transaction for a drag or multi-step edit, then commit once to make
one undo entry. This is not a remote/collaborative transaction or durable save.
Source: crates/platinum-core/src/ui_document/transaction.rs:10
platinum_core::ui_document::UiTransaction::begin
pub fn begin(document: &UiDocument) -> Result<Self, String>
Validate and capture the current document without modifying it.
Source: crates/platinum-core/src/ui_document/transaction.rs:16
platinum_core::ui_document::UiTransaction::preview
pub fn preview(&self) -> &UiDocument
Read the latest valid candidate; canonical state remains unchanged.
Source: crates/platinum-core/src/ui_document/transaction.rs:24
platinum_core::ui_document::UiTransaction::edit
pub fn edit(
&mut self,
edit: impl FnOnce(&mut UiDocument) -> Result<(), String>,
) -> Result<(), String>
Each operation validates a temporary copy before publishing its preview.
Source: crates/platinum-core/src/ui_document/transaction.rs:28
platinum_core::ui_document::UiTransaction::cancel
pub fn cancel(self) -> UiDocument
Cancellation has no effect on canonical state or undo history.
Source: crates/platinum-core/src/ui_document/transaction.rs:39
platinum_core::ui_document::UiTransaction::commit
pub fn commit(
self,
document: &mut UiDocument,
history: &mut UiHistory,
) -> Result<bool, String>
Publish one undoable edit only if canonical state still equals `before`.
Returns whether content changed. A conflict or validation error leaves
canonical state unchanged; successful publication is not a disk save.
Source: crates/platinum-core/src/ui_document/transaction.rs:45
platinum_sdk::contained_layout
platinum_sdk::contained_layout
Preserve contained-window placement across transient minimized viewports.
egui constrains an Area when it is shown. Showing all child windows against
a minimized 0/1-pixel host rewrites their saved positions to the same corner.
Source: crates/platinum-sdk/src/contained_layout.rs:1
platinum_sdk::contained_layout::is_usable
pub fn is_usable(ctx: &egui::Context) -> bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/contained_layout.rs:6
platinum_sdk::ui
platinum_sdk::ui
Reusable Platinum chrome and controls. All controls render through Bevy UI.
Source: crates/platinum-sdk/src/ui.rs:1
platinum_sdk::ui::PlatinumTheme
pub struct PlatinumTheme
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/ui.rs:17
platinum_sdk::ui::PlatinumTheme::DESKTOP
pub const DESKTOP: Color
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/ui.rs:19
platinum_sdk::ui::PlatinumTheme::FACE
pub const FACE: Color
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/ui.rs:20
platinum_sdk::ui::PlatinumTheme::LIGHT
pub const LIGHT: Color
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/ui.rs:21
platinum_sdk::ui::PlatinumTheme::SHADOW
pub const SHADOW: Color
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/ui.rs:22
platinum_sdk::ui::PlatinumTheme::INK
pub const INK: Color
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/ui.rs:23
platinum_sdk::ui::PlatinumTheme::BLUE
pub const BLUE: Color
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/ui.rs:24
platinum_sdk::ui::PlatinumFonts
pub struct PlatinumFonts
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| ui | Handle<Font> | |
| serif | Handle<Font> | |
| serif_italic | Handle<Font> | |
Source: crates/platinum-sdk/src/ui.rs:27
platinum_sdk::ui::FontLoading
pub struct FontLoading
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/ui.rs:33
platinum_sdk::ui::UiPlugin
pub struct UiPlugin
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/ui.rs:35
platinum_sdk::ui::raised
pub fn raised() -> BorderColor
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/ui.rs:51
platinum_sdk::ui::sunken
pub fn sunken() -> BorderColor
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/ui.rs:59
platinum_sdk::ui::font
pub fn font(fonts: &PlatinumFonts, size: f32) -> TextFont
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/ui.rs:67
platinum_sdk::ui::label
pub fn label(
commands: &mut Commands,
parent: Entity,
value: impl Into<String>,
fonts: &PlatinumFonts,
size: f32,
) -> Entity
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/ui.rs:74
platinum_sdk::ui::row
pub fn row(commands: &mut Commands, parent: Entity, gap: f32) -> Entity
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/ui.rs:91
platinum_sdk::ui::ButtonSelected
pub struct ButtonSelected(pub bool)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/ui.rs:105
platinum_sdk::ui::button
pub fn button(
commands: &mut Commands,
parent: Entity,
text: &str,
command: CommandId,
fonts: &PlatinumFonts,
) -> Entity
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/ui.rs:133
platinum_sdk::ui::MenuItem
pub struct MenuItem
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| label | &'static str | |
| command | CommandId | |
Source: crates/platinum-sdk/src/ui.rs:164
platinum_sdk::ui::menu_bar
pub fn menu_bar(
commands: &mut Commands,
parent: Entity,
app_name: &str,
menus: &[(&str, &[MenuItem])],
fonts: &PlatinumFonts,
) -> Entity
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/ui.rs:172
platinum_sdk::ui::WindowParts
pub struct WindowParts
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| frame | Entity | |
| title | Entity | |
| body | Entity | |
| status | Entity | |
Source: crates/platinum-sdk/src/ui.rs:308
platinum_sdk::ui::window
pub fn window(
commands: &mut Commands,
parent: Entity,
title: &str,
close_command: CommandId,
fonts: &PlatinumFonts,
) -> WindowParts
Creates a responsive app frame. The actual OS window owns movement and resizing.
Source: crates/platinum-sdk/src/ui.rs:315
platinum_sdk::ui::WindowTitle
pub struct WindowTitle
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/ui.rs:418
platinum_sdk::ui::text_editor
pub fn text_editor(
commands: &mut Commands,
parent: Entity,
value: &str,
fonts: &PlatinumFonts,
) -> Entity
Multiline text entry with Unicode selection, caret, IME and clipboard via Bevy.
Source: crates/platinum-sdk/src/ui.rs:420
platinum_sdk::authoring
platinum_sdk::authoring
Domain-neutral authoring controls. Documents retain authority, storage and undo.
Controls emit commands rather than mutating the supplied document. IDs are exact
integers scoped by the caller's widget salt; they are not capabilities. Hosts
must validate commands against their latest revision before applying them.
These initial controls do not yet provide a complete accessibility contract,
hierarchy virtualization, drag/drop or collaborative undo.
Source: crates/platinum-sdk/src/authoring.rs:1
platinum_sdk::authoring::Gesture
pub struct Gesture<T>
A preview gesture becomes one undoable operation only on commit. Cancellation
returns its original value, allowing a host that applied previews to restore it.
Source: crates/platinum-sdk/src/authoring.rs:17
platinum_sdk::authoring::Gesture::begin
pub fn begin(value: T) -> Self
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring.rs:23
platinum_sdk::authoring::Gesture::preview
pub fn preview(&mut self, value: T)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring.rs:29
platinum_sdk::authoring::Gesture::current
pub fn current(&self) -> &T
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring.rs:32
platinum_sdk::authoring::Gesture::cancel
pub fn cancel(self) -> T
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring.rs:35
platinum_sdk::authoring::Gesture::commit
pub fn commit(self) -> Option<(T, T)>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring.rs:38
platinum_sdk::authoring::hierarchy
platinum_sdk::authoring::hierarchy
A model-backed tree with exact IDs and validated reparent commands.
Source: crates/platinum-sdk/src/authoring/hierarchy.rs:1
platinum_sdk::authoring::hierarchy::ItemId
pub type ItemId
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/hierarchy.rs:5
platinum_sdk::authoring::hierarchy::Item
pub struct Item
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| id | ItemId | |
| parent | Option<ItemId> | |
| label | String | |
| can_reparent | bool | |
| accepts_children | bool | |
Source: crates/platinum-sdk/src/authoring/hierarchy.rs:8
platinum_sdk::authoring::hierarchy::HierarchyError
pub enum HierarchyError
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/hierarchy.rs:17
platinum_sdk::authoring::hierarchy::Hierarchy
pub struct Hierarchy<'a>
Validated immutable tree. Input order determines sibling order.
Source: crates/platinum-sdk/src/authoring/hierarchy.rs:27
platinum_sdk::authoring::hierarchy::Hierarchy::new
pub fn new(items: &'a [Item]) -> Result<Self, HierarchyError>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/hierarchy.rs:34
platinum_sdk::authoring::hierarchy::Hierarchy::reparent
pub fn reparent(
&self,
item: ItemId,
parent: Option<ItemId>,
allow_cross_root: bool,
) -> Result<Reparent, HierarchyError>
Only validates topology. Domain-specific placement preservation (world
transforms, list ordering, etc.) must be performed atomically by the host.
Source: crates/platinum-sdk/src/authoring/hierarchy.rs:76
platinum_sdk::authoring::hierarchy::Reparent
pub struct Reparent
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| item | ItemId | |
| previous_parent | Option<ItemId> | |
| parent | Option<ItemId> | |
Source: crates/platinum-sdk/src/authoring/hierarchy.rs:111
platinum_sdk::authoring::hierarchy::HierarchyView
pub struct HierarchyView
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| selected | BTreeSet<ItemId> | |
| collapsed | BTreeSet<ItemId> | |
| filter | String | |
Source: crates/platinum-sdk/src/authoring/hierarchy.rs:118
platinum_sdk::authoring::hierarchy::HierarchyView::show
pub fn show(&mut self, ui: &mut Ui, salt: impl std::hash::Hash, model: &Hierarchy<'_>) -> bool
Ctrl/Command-click toggles selection. Buttons provide keyboard-operable
expansion; full tree keyboard navigation and drag/drop are pending.
Source: crates/platinum-sdk/src/authoring/hierarchy.rs:127
platinum_sdk::authoring::history
platinum_sdk::authoring::history
Bounded snapshot history for local documents. Collaborative documents need an
operation-aware undo policy; this type deliberately rejects stale snapshots.
Source: crates/platinum-sdk/src/authoring/history.rs:1
platinum_sdk::authoring::history::HistoryError
pub enum HistoryError<E>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/history.rs:6
platinum_sdk::authoring::history::History
pub struct History<T>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/history.rs:11
platinum_sdk::authoring::history::History::new
pub fn new(capacity: usize) -> Self
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/history.rs:18
platinum_sdk::authoring::history::History::can_undo
pub fn can_undo(&self) -> bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/history.rs:25
platinum_sdk::authoring::history::History::can_redo
pub fn can_redo(&self) -> bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/history.rs:28
platinum_sdk::authoring::history::History::clear
pub fn clear(&mut self)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/history.rs:31
platinum_sdk::authoring::history::History::record
pub fn record<E>(
&mut self,
before: T,
after: T,
validate: impl Fn(&T) -> Result<(), E>,
) -> Result<bool, HistoryError<E>>
Record one completed gesture. Preview and cancelled values must not be
recorded. Capacity bounds entries, not bytes; bound document sizes too.
Source: crates/platinum-sdk/src/authoring/history.rs:37
platinum_sdk::authoring::history::History::undo
pub fn undo<E>(
&mut self,
current: &T,
validate: impl Fn(&T) -> Result<(), E>,
) -> Result<Option<T>, HistoryError<E>>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/history.rs:57
platinum_sdk::authoring::history::History::redo
pub fn redo<E>(
&mut self,
current: &T,
validate: impl Fn(&T) -> Result<(), E>,
) -> Result<Option<T>, HistoryError<E>>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/history.rs:73
platinum_sdk::authoring::inspector
platinum_sdk::authoring::inspector
Typed inspector schemas and validated, reversible property edit commands.
Source: crates/platinum-sdk/src/authoring/inspector.rs:1
platinum_sdk::authoring::inspector::PropertyId
pub type PropertyId
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/inspector.rs:6
platinum_sdk::authoring::inspector::Value
pub enum Value
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/inspector.rs:9
platinum_sdk::authoring::inspector::PropertyKind
pub enum PropertyKind
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/inspector.rs:17
platinum_sdk::authoring::inspector::PropertySchema
pub struct PropertySchema
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| id | PropertyId | |
| label | String | |
| kind | PropertyKind | |
| default | Value | |
| read_only | bool | A presentation restriction, not an authorization boundary. |
Source: crates/platinum-sdk/src/authoring/inspector.rs:25
platinum_sdk::authoring::inspector::PropertySchema::accepts
pub fn accepts(&self, value: &Value) -> bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/inspector.rs:35
platinum_sdk::authoring::inspector::SchemaRegistry
pub struct SchemaRegistry
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/inspector.rs:54
platinum_sdk::authoring::inspector::SchemaError
pub enum SchemaError
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/inspector.rs:59
platinum_sdk::authoring::inspector::SchemaRegistry::register
pub fn register(&mut self, schema: PropertySchema) -> Result<(), SchemaError>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/inspector.rs:65
platinum_sdk::authoring::inspector::SchemaRegistry::get
pub fn get(&self, id: PropertyId) -> Option<&PropertySchema>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/inspector.rs:75
platinum_sdk::authoring::inspector::SchemaRegistry::iter
pub fn iter(&self) -> impl Iterator<Item
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/inspector.rs:78
platinum_sdk::authoring::inspector::PropertyValues
pub type PropertyValues
None represents a mixed multiselection. Hosts should snapshot every selected
target before applying previews; None alone cannot restore their distinct values.
Source: crates/platinum-sdk/src/authoring/inspector.rs:85
platinum_sdk::authoring::inspector::PropertyEdit
pub enum PropertyEdit
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/inspector.rs:88
platinum_sdk::authoring::inspector::Inspector
pub struct Inspector
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/inspector.rs:108
platinum_sdk::authoring::inspector::Inspector::is_editing
pub fn is_editing(&self) -> bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/inspector.rs:113
platinum_sdk::authoring::inspector::Inspector::cancel
pub fn cancel(&mut self) -> Vec<PropertyEdit>
Call when changing the inspected selection or disposing the control. Hosts
must restore their per-target snapshot for each returned cancellation.
Source: crates/platinum-sdk/src/authoring/inspector.rs:118
platinum_sdk::authoring::inspector::Inspector::show
pub fn show(
&mut self,
ui: &mut Ui,
salt: impl std::hash::Hash,
registry: &SchemaRegistry,
values: &PropertyValues,
) -> Vec<PropertyEdit>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/inspector.rs:127
platinum_sdk::authoring::timeline
platinum_sdk::authoring::timeline
Integer-time timeline. Rendering coordinates never become persistent identities
or canonical time. Track evaluation and layer semantics belong to the document.
Source: crates/platinum-sdk/src/authoring/timeline.rs:1
platinum_sdk::authoring::timeline::Tick
pub type Tick
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/timeline.rs:7
platinum_sdk::authoring::timeline::KeyId
pub type KeyId
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/timeline.rs:8
platinum_sdk::authoring::timeline::TrackId
pub type TrackId
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/timeline.rs:9
platinum_sdk::authoring::timeline::Interpolation
pub enum Interpolation
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/timeline.rs:12
platinum_sdk::authoring::timeline::LayerMode
pub enum LayerMode
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/timeline.rs:18
platinum_sdk::authoring::timeline::Key
pub struct Key
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| id | KeyId | |
| tick | Tick | |
| interpolation | Interpolation | |
Source: crates/platinum-sdk/src/authoring/timeline.rs:23
platinum_sdk::authoring::timeline::Track
pub struct Track
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| id | TrackId | |
| label | String | |
| muted | bool | |
| weight | f32 | |
| mode | LayerMode | |
| keys | Vec<Key> | |
Source: crates/platinum-sdk/src/authoring/timeline.rs:29
platinum_sdk::authoring::timeline::TimelineEdit
pub enum TimelineEdit
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/timeline.rs:39
platinum_sdk::authoring::timeline::TimelineError
pub enum TimelineError
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/timeline.rs:71
platinum_sdk::authoring::timeline::validate
pub fn validate(tracks: &[Track]) -> Result<(), TimelineError>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/timeline.rs:77
platinum_sdk::authoring::timeline::snap_delta
pub fn snap_delta(delta: Tick, grid: Tick) -> Tick
Snap an offset to a positive grid. Arithmetic is widened before rounding;
negative half-grid values round away from zero, matching positive values.
Source: crates/platinum-sdk/src/authoring/timeline.rs:98
platinum_sdk::authoring::timeline::move_keys
pub fn move_keys(original: &BTreeMap<KeyId, Tick>, delta: Tick) -> BTreeMap<KeyId, Tick>
Clamp the whole gesture together, preserving intervals at time boundaries.
Source: crates/platinum-sdk/src/authoring/timeline.rs:106
platinum_sdk::authoring::timeline::Timeline
pub struct Timeline
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| selected | BTreeSet<KeyId> | |
| visible_start | Tick | |
| pixels_per_tick | f64 | |
| snap_ticks | Tick | |
Source: crates/platinum-sdk/src/authoring/timeline.rs:124
platinum_sdk::authoring::timeline::Timeline::is_editing
pub fn is_editing(&self) -> bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/timeline.rs:155
platinum_sdk::authoring::timeline::Timeline::cancel
pub fn cancel(&mut self) -> Option<TimelineEdit>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/timeline.rs:158
platinum_sdk::authoring::timeline::Timeline::show
pub fn show(
&mut self,
ui: &mut Ui,
salt: impl std::hash::Hash,
tracks: &[Track],
playhead: Tick,
) -> Result<Vec<TimelineEdit>, TimelineError>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/authoring/timeline.rs:166
platinum_sdk::rich_text::MAX_CHARACTERS
pub const MAX_CHARACTERS: usize
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text.rs:7
platinum_sdk::rich_text::Alignment
pub enum Alignment
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text.rs:10
platinum_sdk::rich_text::CharacterStyle
pub struct CharacterStyle
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| font_size | f32 | |
| bold | bool | |
| italic | bool | |
| underline | bool | |
| strike | bool | |
| sans | bool | |
| color | [u8; 3] | |
| alignment | Alignment | |
| highlight | Option<[u8; 3]> | |
| code | bool | |
| link | Option<String> | |
Source: crates/platinum-sdk/src/rich_text.rs:18
platinum_sdk::rich_text::StyleRun
pub struct StyleRun
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| start | usize | |
| end | usize | |
| style | CharacterStyle | |
Source: crates/platinum-sdk/src/rich_text.rs:49
platinum_sdk::rich_text::RichDocument
pub struct RichDocument
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| format_version | u32 | |
| text | String | |
| style | CharacterStyle | |
| runs | Vec<StyleRun> | |
| page | PageStyle | |
| tables | Vec<DocumentTable> | |
| images | Vec<DocumentImage> | |
Source: crates/platinum-sdk/src/rich_text.rs:55
platinum_sdk::rich_text::RichDocument::validate
pub fn validate(&self) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text.rs:82
platinum_sdk::rich_text::RichDocument::decode
pub fn decode(name: &str, content: &str) -> Result<Self, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text.rs:121
platinum_sdk::rich_text::RichDocument::encode
pub fn encode(&self) -> String
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text.rs:134
platinum_sdk::rich_text::RichDocument::style_at
pub fn style_at(&self, i: usize) -> CharacterStyle
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text.rs:137
platinum_sdk::rich_text::RichDocument::format
pub fn format(&mut self, range: Range<usize>, style: CharacterStyle)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text.rs:169
platinum_sdk::rich_text::RichDocument::replace_range
pub fn replace_range(&mut self, range: Range<usize>, text: &str, typing: &CharacterStyle)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text.rs:177
platinum_sdk::rich_text::RichDocument::sync_text
pub fn sync_text(&mut self, text: String, typing: &CharacterStyle)
Rebase character styles over Unicode insertions and deletions.
Source: crates/platinum-sdk/src/rich_text.rs:192
platinum_sdk::rich_text::RichDocument::slice
pub fn slice(&self, range: Range<usize>) -> Self
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text.rs:233
platinum_sdk::rich_text::RichDocument::html
pub fn html(&self) -> String
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text.rs:260
platinum_sdk::rich_text::DocumentHistory
pub struct DocumentHistory
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text.rs:265
platinum_sdk::rich_text::DocumentHistory::record
pub fn record(&mut self, d: RichDocument, coalesce: bool)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text.rs:270
platinum_sdk::rich_text::DocumentHistory::undo
pub fn undo(&mut self, current: &RichDocument) -> Option<RichDocument>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text.rs:279
platinum_sdk::rich_text::DocumentHistory::redo
pub fn redo(&mut self, current: &RichDocument) -> Option<RichDocument>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text.rs:284
platinum_sdk::rich_text::RichEditorState
pub struct RichEditorState
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| selection | Range<usize> | |
| typing | CharacterStyle | |
| request_focus | bool | |
| selection_override | bool | |
| enabled | bool | |
| composing | bool | Shared live views observe this before accepting remote materializations. |
| ime_event_this_frame | bool | |
| external_undo | bool | Defaults false for legacy consumers; canonical views own selective undo. |
| undo_requested | Option<bool> | |
Source: crates/platinum-sdk/src/rich_text.rs:291
platinum_sdk::rich_text::RichEditorState::observe_ime
pub fn observe_ime(&mut self, context: &egui::Context, id: egui::Id)
Call before live-view synchronization, using this exact TextEdit ID.
Source: crates/platinum-sdk/src/rich_text.rs:321
platinum_sdk::rich_text::RichEditorState::apply
pub fn apply(&mut self, doc: &mut RichDocument, style: CharacterStyle)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text.rs:337
platinum_sdk::rich_text::rich_text_editor
pub fn rich_text_editor(
ui: &mut egui::Ui,
id: egui::Id,
doc: &mut RichDocument,
state: &mut RichEditorState,
zoom: f32,
) -> egui::Response
Embeddable mixed-format editor. Selection, caret and text share the shaped layout.
Source: crates/platinum-sdk/src/rich_text.rs:428
platinum_sdk::rich_text::rich_text_editor_sized
pub fn rich_text_editor_sized(
ui: &mut egui::Ui,
id: egui::Id,
doc: &mut RichDocument,
state: &mut RichEditorState,
zoom: f32,
minimum_height: f32,
) -> egui::Response
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text.rs:447
platinum_sdk::rich_text::rich_text_editor_decorated_sized
pub fn rich_text_editor_decorated_sized(
ui: &mut egui::Ui,
id: egui::Id,
doc: &mut RichDocument,
state: &mut RichEditorState,
zoom: f32,
minimum_height: f32,
decorations: &DecorationLayer,
) -> egui::Response
The standard rich editor with derived, view-local syntax/diagnostic formatting.
Decorations never modify source text, authored formatting or document undo.
Source: crates/platinum-sdk/src/rich_text.rs:467
platinum_sdk::rich_text::rich_text_editor_revisioned_sized
pub fn rich_text_editor_revisioned_sized(
ui: &mut egui::Ui,
id: egui::Id,
doc: &mut RichDocument,
state: &mut RichEditorState,
zoom: f32,
minimum_height: f32,
decorations: &DecorationLayer,
revision: u64,
) -> egui::Response
Revision-keyed variant for document models that increment the revision on
every text/style/page change. The widget ID must identify the document/view.
Unchanged frames avoid hashing the full source or serializing formatting.
Source: crates/platinum-sdk/src/rich_text.rs:481
platinum_sdk::rich_text::ListKind
pub enum ListKind
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text.rs:882
platinum_sdk::rich_text::RichDocument::apply_list
pub fn apply_list(&mut self, selection: Range<usize>, kind: ListKind)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text.rs:890
platinum_sdk::rich_text::decorations
platinum_sdk::rich_text::decorations
Derived view formatting. Character offsets match RichDocument; language byte
ranges must pass through `from_byte_range`, which rejects split UTF-8 values.
Source: crates/platinum-sdk/src/rich_text/decorations.rs:1
platinum_sdk::rich_text::decorations::StyleOverlay
pub struct StyleOverlay
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| foreground | Option<[u8; 3]> | |
| background | Option<Option<[u8; 3]>> | |
| bold | Option<bool> | |
| italic | Option<bool> | |
| underline | Option<bool> | |
| strike | Option<bool> | |
| code | Option<bool> | |
Source: crates/platinum-sdk/src/rich_text/decorations.rs:7
platinum_sdk::rich_text::decorations::TextDecoration
pub struct TextDecoration
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| characters | Range<usize> | |
| priority | i32 | Higher priority wins per property; equal priority uses input order. |
| style | StyleOverlay | |
Source: crates/platinum-sdk/src/rich_text/decorations.rs:42
platinum_sdk::rich_text::decorations::TextDecoration::from_byte_range
pub fn from_byte_range(
text: &str,
bytes: Range<usize>,
priority: i32,
style: StyleOverlay,
) -> Result<Self, &'static str>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text/decorations.rs:49
platinum_sdk::rich_text::decorations::DecorationLayer
pub struct DecorationLayer
Compiled only when analysis changes. Lookups use disjoint segments rather
than scanning every token for each character while shaping a paragraph.
Source: crates/platinum-sdk/src/rich_text/decorations.rs:77
platinum_sdk::rich_text::decorations::DecorationLayer::compile
pub fn compile(
character_count: usize,
decorations: Vec<TextDecoration>,
) -> Result<Self, &'static str>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text/decorations.rs:82
platinum_sdk::rich_text::decorations::DecorationLayer::fingerprint
pub fn fingerprint(&self) -> u64
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/rich_text/decorations.rs:144
platinum_sdk::editor
platinum_sdk::editor
Embeddable document editing state, standard commands and reusable Office controls.
Source: crates/platinum-sdk/src/editor.rs:1
platinum_sdk::editor::DocumentEditor
pub struct DocumentEditor
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| state_ready | bool | Authoritative startup restore completed; hosts disable editing while false. |
| saved_baseline_unknown | bool | A recovered document has no durable saved-baseline snapshot in v1. |
| doc | Tracked<RichDocument> | |
| saved | RichDocument | |
| name | String | |
| editor | RichEditorState | |
| history | DocumentHistory | |
| zoom | f32 | |
| page_view | office::PageViewState | |
| ruler | bool | |
| find_open | bool | |
| find | String | |
| replacement | String | |
| notice | String | |
| last_edit | f64 | |
| revision | u64 | |
Source: crates/platinum-sdk/src/editor.rs:19
platinum_sdk::editor::DocumentEditor::new
pub fn new(doc: RichDocument, name: String) -> Self
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/editor.rs:52
platinum_sdk::editor::DocumentEditor::dirty
pub fn dirty(&self) -> bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/editor.rs:87
platinum_sdk::editor::DocumentEditor::mark_saved
pub fn mark_saved(&mut self, saved: RichDocument)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/editor.rs:90
platinum_sdk::editor::DocumentEditor::record
pub fn record(&mut self, before: RichDocument, time: f64, typing: bool)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/editor.rs:94
platinum_sdk::editor::DocumentEditor::attach_text_source
pub fn attach_text_source(&mut self, source: SharedTextDocument) -> Result<(), String>
Bind a sibling view to the same canonical text. Rich formatting remains
this view's persistence projection in v1; this does not share metadata.
Source: crates/platinum-sdk/src/editor.rs:171
platinum_sdk::editor::DocumentEditor::text_source
pub fn text_source(&self) -> Option<SharedTextDocument>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/editor.rs:188
platinum_sdk::editor::DocumentEditor::text_conflicted
pub fn text_conflicted(&self) -> bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/editor.rs:191
platinum_sdk::editor::DocumentEditor::pump_text
pub fn pump_text(&mut self) -> Result<bool, String>
Host update only. Paint records a draft; it never dispatches authority
commands. False defers persistence while IME/pending input is unresolved.
Source: crates/platinum-sdk/src/editor.rs:196
platinum_sdk::editor::DocumentEditor::observe_restored_projection
pub fn observe_restored_projection(&mut self)
Call after StateSync adopts a newer persistence projection. An external
text replacement is an explicit import conflict, never another canonical
text mutation authority. Formatting-only refreshes remain compatible.
Source: crates/platinum-sdk/src/editor.rs:326
platinum_sdk::editor::DocumentEditor::text_ready_to_save
pub fn text_ready_to_save(&mut self) -> bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/editor.rs:341
platinum_sdk::editor::EditorCommand
pub enum EditorCommand
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/editor.rs:376
platinum_sdk::editor::default_menus
pub fn default_menus() -> office::MenuHost
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/editor.rs:407
platinum_sdk::editor::command_from_id
pub fn command_from_id(id: &str) -> Option<EditorCommand>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/editor.rs:474
platinum_sdk::editor::shortcuts
pub fn shortcuts(ctx: &egui::Context, actions: &mut Vec<EditorCommand>)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/editor.rs:506
platinum_sdk::editor::standard_toolbar
pub fn standard_toolbar(ui: &mut egui::Ui, d: &mut DocumentEditor) -> Vec<EditorCommand>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/editor.rs:540
platinum_sdk::editor::DocumentEditor::insert_text
pub fn insert_text(&mut self, text: &str, time: f64) -> bool
Replace the Unicode-character selection and return focus to the editable page.
Source: crates/platinum-sdk/src/editor.rs:601
platinum_sdk::editor::DocumentEditor::focus_selection
pub fn focus_selection(&mut self)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/editor.rs:618
platinum_sdk::editor::DocumentEditor::find_next
pub fn find_next(&mut self) -> bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/editor.rs:622
platinum_sdk::editor::DocumentEditor::replace_all
pub fn replace_all(&mut self, time: f64) -> usize
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/editor.rs:646
platinum_sdk::editor::DocumentEditor::execute
pub fn execute(&mut self, command: EditorCommand, time: f64) -> bool
Handle document-only commands. False means the embedding host must handle the command.
Source: crates/platinum-sdk/src/editor.rs:674
platinum_sdk::editor::find_bar
pub fn find_bar(ui: &mut egui::Ui, d: &mut DocumentEditor, time: f64)
Find/replace controls that operate on global Unicode selections, including paged editors.
Source: crates/platinum-sdk/src/editor.rs:796
platinum_sdk::editor::status_bar
pub fn status_bar(ui: &mut egui::Ui, d: &DocumentEditor)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/editor.rs:813
platinum_sdk::editor::document_view
pub fn document_view(ui: &mut egui::Ui, id: egui::Id, d: &mut DocumentEditor, time: f64)
The themed, scrollable page view. Records edits in the shared undo history.
Source: crates/platinum-sdk/src/editor.rs:831
platinum_sdk::editor::formatting_palette
pub fn formatting_palette(ui: &mut egui::Ui, d: &mut DocumentEditor, time: f64)
An embeddable formatting palette with undo/history integration.
Source: crates/platinum-sdk/src/editor.rs:884
platinum_sdk::editor::menu_bar
pub fn menu_bar(ui: &mut egui::Ui, menus: &office::MenuHost) -> Vec<CommandId>
Standard menus return command identifiers; the host decides how to dispatch them.
Source: crates/platinum-sdk/src/editor.rs:895
platinum_sdk::game::ui
platinum_sdk::game::ui
Retained game UI. Documents and transactions are independent of the renderer.
Source: crates/platinum-sdk/src/game/ui/mod.rs:1
platinum_sdk::game::ui::UiCommand
pub enum UiCommand
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/mod.rs:19
platinum_sdk::game::ui::UiRequest
pub struct UiRequest
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| player | crate::game::PlayerId | |
| command | UiCommand | |
Source: crates/platinum-sdk/src/game/ui/mod.rs:35
platinum_sdk::game::ui::DEFAULT_HUD_XML
pub const DEFAULT_HUD_XML: &str
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/mod.rs:40
platinum_sdk::game::ui::DEFAULT_PAUSE_XML
pub const DEFAULT_PAUSE_XML: &str
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/mod.rs:41
platinum_sdk::game::ui::UiProperty
pub enum UiProperty
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/binding.rs:10
platinum_sdk::game::ui::UiProperty::parse
pub fn parse(path: &str) -> Result<Self, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/binding.rs:21
platinum_sdk::game::ui::UiProperty::attribute
pub fn attribute(self) -> &'static str
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/binding.rs:34
platinum_sdk::game::ui::UiTarget
pub struct UiTarget
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| screen | u64 | |
| element | UiElementId | |
Source: crates/platinum-sdk/src/game/ui/binding.rs:55
platinum_sdk::game::ui::UiAnimationBindings
pub struct UiAnimationBindings
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/binding.rs:60
platinum_sdk::game::ui::UiAnimationBindings::set
pub fn set(
&mut self,
target: UiTarget,
property: UiProperty,
value: f32,
) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/binding.rs:65
platinum_sdk::game::ui::UiAnimationBindings::clear
pub fn clear(&mut self, target: UiTarget)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/binding.rs:83
platinum_sdk::game::ui::UiAnimationBindings::clear_screen
pub fn clear_screen(&mut self, screen: u64)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/binding.rs:87
platinum_sdk::game::ui::UiAnimationBindings::apply_samples
pub fn apply_samples(
&mut self,
screen: u64,
samples: &[AnimationSample],
objects: &BTreeMap<String, UiElementId>,
) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/binding.rs:91
platinum_sdk::game::ui::UiAnimationBindings::values
pub fn values(&self, target: UiTarget, element: &UiElement) -> BTreeMap<UiProperty, f32>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/binding.rs:126
platinum_sdk::game::ui::UiAnimationBindings::effective_opacity
pub fn effective_opacity(
&self,
screen: u64,
id: u64,
document: &UiDocument,
inputs: &BTreeMap<String, String>,
) -> f32
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/binding.rs:147
platinum_sdk::game::ui::UiElementId
pub type UiElementId
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/document.rs:4
platinum_sdk::game::ui::UiElement
pub struct UiElement
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| id | UiElementId | |
| parent | Option<UiElementId> | |
| kind | String | |
| attributes | BTreeMap<String, String> | |
| text | String | |
Source: crates/platinum-sdk/src/game/ui/document.rs:6
platinum_sdk::game::ui::UiElement::number
pub fn number(&self, name: &str, fallback: f32) -> f32
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/document.rs:14
platinum_sdk::game::ui::UiElement::rect
pub fn rect(&self) -> [f32; 4]
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/document.rs:21
platinum_sdk::game::ui::UiElement::set_rect
pub fn set_rect(&mut self, rect: [f32; 4])
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/document.rs:29
platinum_sdk::game::ui::UiDocument
pub struct UiDocument
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| version | u32 | |
| name | String | |
| size | [f32; 2] | |
| stylesheet | String | |
| elements | Vec<UiElement> | |
| comments | Vec<String> | |
Source: crates/platinum-sdk/src/game/ui/document.rs:36
platinum_sdk::game::ui::UiDocument::parse
pub fn parse(xml: &str) -> Result<Self, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/document.rs:45
platinum_sdk::game::ui::UiDocument::validate
pub fn validate(&self) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/document.rs:115
platinum_sdk::game::ui::UiDocument::to_xml
pub fn to_xml(&self) -> String
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/document.rs:166
platinum_sdk::game::ui::UiDocument::next_id
pub fn next_id(&self) -> u64
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/document.rs:206
platinum_sdk::game::ui::UiDocument::dependencies
pub fn dependencies(&self) -> BTreeSet<String>
Paths relative to this UI document, for export dependency closure.
Source: crates/platinum-sdk/src/game/ui/document.rs:216
platinum_sdk::game::ui::UiStylesheet
pub struct UiStylesheet
Bounded selectors: kind, .class, #integer-id and their :hover/:pressed states.
Public data fields| Name | Type / declaration | Description |
|---|
| rules | Vec<(String, BTreeMap<String, String>)> | |
Source: crates/platinum-sdk/src/game/ui/document.rs:236
platinum_sdk::game::ui::UiStylesheet::parse
pub fn parse(css: &str) -> Result<Self, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/document.rs:240
platinum_sdk::game::ui::UiStylesheet::resolve
pub fn resolve(&self, e: &UiElement, state: &str) -> BTreeMap<String, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/document.rs:329
platinum_sdk::game::ui::UiHistory
pub struct UiHistory
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/document.rs:364
platinum_sdk::game::ui::UiHistory::commit
pub fn commit(&mut self, before: UiDocument, after: &UiDocument)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/document.rs:369
platinum_sdk::game::ui::UiHistory::undo
pub fn undo(&mut self, doc: &mut UiDocument) -> bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/document.rs:378
platinum_sdk::game::ui::UiHistory::redo
pub fn redo(&mut self, doc: &mut UiDocument) -> bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/document.rs:386
platinum_sdk::game::ui::UiOverrides
pub struct UiOverrides(pub BTreeMap<UiElementId, BTreeMap<String, String>>)
Per-instance property overrides; source updates flow through all untouched properties.
Source: crates/platinum-sdk/src/game/ui/document.rs:398
platinum_sdk::game::ui::UiOverrides::instantiate
pub fn instantiate(&self, source: &UiDocument) -> UiDocument
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/document.rs:400
platinum_sdk::game::ui::UiOverrides::apply_to
pub fn apply_to(&mut self, source: &mut UiDocument) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/document.rs:419
platinum_sdk::game::ui::UiOverrides::revert
pub fn revert(&mut self)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/document.rs:426
platinum_sdk::game::ui::UiInstanceAsset
pub struct UiInstanceAsset
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| version | u32 | |
| source | String | |
| overrides | UiOverrides | |
Source: crates/platinum-sdk/src/game/ui/document.rs:432
platinum_sdk::game::ui::UiOverrides::between
pub fn between(source: &UiDocument, instance: &UiDocument) -> Self
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/document.rs:438
platinum_sdk::game::ui::UiClipboard
pub struct UiClipboard
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| version | u32 | |
| roots | Vec<u64> | |
| elements | Vec<UiElement> | |
Source: crates/platinum-sdk/src/game/ui/edit.rs:7
platinum_sdk::game::ui::UiAlignment
pub enum UiAlignment
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/edit.rs:13
platinum_sdk::game::ui::UiObject
pub struct UiObject
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| screen | u64 | |
| id | UiElementId | |
| action | String | |
| binding | String | |
| kind | String | |
| source_text | String | |
| attributes | BTreeMap<String, String> | |
Source: crates/platinum-sdk/src/game/ui/runtime.rs:14
platinum_sdk::game::ui::GameUiRuntime
pub struct GameUiRuntime
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| screens | Vec<UiScreen> | |
| values | BTreeMap<String, String> | |
| local_player | u64 | |
| tick | u64 | |
| input_generation | u64 | Transition generation; gameplay releases capture and clears held input on change. |
Source: crates/platinum-sdk/src/game/ui/runtime.rs:34
platinum_sdk::game::ui::UiScreen
pub struct UiScreen
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| id | u64 | |
| document | UiDocument | |
| styles | UiStylesheet | |
| modal | bool | |
| asset | String | |
| effective | UiDocument | |
Source: crates/platinum-sdk/src/game/ui/runtime.rs:50
platinum_sdk::game::ui::GameUiRuntime::open
pub fn open(
&mut self,
document: UiDocument,
styles: UiStylesheet,
modal: bool,
) -> Result<u64, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/runtime.rs:94
platinum_sdk::game::ui::GameUiRuntime::open_asset
pub fn open_asset(
&mut self,
path: &str,
document: UiDocument,
styles: UiStylesheet,
modal: bool,
) -> Result<u64, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/runtime.rs:116
platinum_sdk::game::ui::GameUiRuntime::screen_for_document
pub fn screen_for_document(&self, path: &str) -> Option<u64>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/runtime.rs:145
platinum_sdk::game::ui::GameUiRuntime::get_widget
pub fn get_widget(&self, target: &UiWidgetRef, property: &str) -> Result<UiScalar, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/runtime.rs:152
platinum_sdk::game::ui::GameUiRuntime::patch_widget
pub fn patch_widget(
&mut self,
target: &UiWidgetRef,
patch: &UiWidgetPatch,
) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/runtime.rs:169
platinum_sdk::game::ui::GameUiRuntime::apply_persistent
pub fn apply_persistent(&mut self, state: &UiPlayerState) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/runtime.rs:197
platinum_sdk::game::ui::GameUiRuntime::pop
pub fn pop(&mut self) -> Option<UiScreen>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/runtime.rs:229
platinum_sdk::game::ui::GameUiRuntime::clear
pub fn clear(&mut self)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/runtime.rs:238
platinum_sdk::game::ui::GameUiRuntime::set_value
pub fn set_value(&mut self, name: impl Into<String>, value: impl ToString)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/runtime.rs:244
platinum_sdk::game::ui::GameUiRuntime::blocks_gameplay
pub fn blocks_gameplay(&self) -> bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/runtime.rs:252
platinum_sdk::game::ui::GameUiRuntime::invalidate
pub fn invalidate(&mut self)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/runtime.rs:255
platinum_sdk::game::ui::UiAction
pub struct UiAction
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| event | String | |
| screen | u64 | |
| element | UiElementId | |
| action | String | |
| value | String | |
| player | u64 | |
| tick | u64 | |
| sequence | u64 | |
Source: crates/platinum-sdk/src/game/ui/runtime.rs:301
platinum_sdk::game::ui::UiActionQueue
pub struct UiActionQueue
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| actions | Vec<UiAction> | |
Source: crates/platinum-sdk/src/game/ui/runtime.rs:312
platinum_sdk::game::ui::UiActivation
pub struct UiActivation(pub UiAction)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/runtime.rs:318
platinum_sdk::game::ui::UiActionQueue::drain
pub fn drain(&mut self) -> impl Iterator<Item
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/runtime.rs:320
platinum_sdk::game::ui::GameUiPlugin
pub struct GameUiPlugin
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/runtime.rs:324
platinum_sdk::game::ui::ui_color
pub fn ui_color(value: &str, fallback: Color) -> Color
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/runtime.rs:359
platinum_sdk::game::ui::GameUserSettings
pub struct GameUserSettings
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| version | u32 | |
| master_volume | f32 | |
| muted | bool | |
Source: crates/platinum-sdk/src/game/ui/settings.rs:6
platinum_sdk::game::ui::GameUserSettings::parse
pub fn parse(text: &str) -> Result<Self, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/settings.rs:21
platinum_sdk::game::ui::FRAMEWORK_MAIN_MENU
pub const FRAMEWORK_MAIN_MENU: &str
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:7
platinum_sdk::game::ui::FRAMEWORK_HUD
pub const FRAMEWORK_HUD: &str
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:8
platinum_sdk::game::ui::FRAMEWORK_PAUSE
pub const FRAMEWORK_PAUSE: &str
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:9
platinum_sdk::game::ui::FRAMEWORK_LOBBY
pub const FRAMEWORK_LOBBY: &str
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:10
platinum_sdk::game::ui::FRAMEWORK_SETTINGS
pub const FRAMEWORK_SETTINGS: &str
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:11
platinum_sdk::game::ui::FRAMEWORK_RESULTS
pub const FRAMEWORK_RESULTS: &str
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:12
platinum_sdk::game::ui::UiWidgetRef
pub struct UiWidgetRef
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| document | String | |
| element | u64 | |
Source: crates/platinum-sdk/src/game/ui/state.rs:15
platinum_sdk::game::ui::UiWidgetRef::validate
pub fn validate(&self) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:36
platinum_sdk::game::ui::UiScalar
pub enum UiScalar
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:48
platinum_sdk::game::ui::UiScalar::to_json
pub fn to_json(&self) -> serde_json::Value
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:54
platinum_sdk::game::ui::UiScalar::text
pub fn text(&self) -> String
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:61
platinum_sdk::game::ui::WIDGET_PROPERTIES
pub const WIDGET_PROPERTIES: &[&str]
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:69
platinum_sdk::game::ui::widget_property
pub fn widget_property(name: &str) -> Result<&'static str, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:88
platinum_sdk::game::ui::UiWidgetPatch
pub struct UiWidgetPatch
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| properties | BTreeMap<String, UiScalar> | |
Source: crates/platinum-sdk/src/game/ui/state.rs:100
platinum_sdk::game::ui::UiWidgetPatch::normalized
pub fn normalized(&self) -> Result<Self, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:104
platinum_sdk::game::ui::UiWidgetPatch::validate
pub fn validate(&self) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:149
platinum_sdk::game::ui::UiWidgetPatch::apply_to_element
pub fn apply_to_element(&self, element: &mut UiElement)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:152
platinum_sdk::game::ui::UiQueryView
pub type UiQueryView
Keys serialize widget IDs as JSON object keys, never floating-point values.
Source: crates/platinum-sdk/src/game/ui/state.rs:184
platinum_sdk::game::ui::UiPlayerState
pub struct UiPlayerState
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| revision | u64 | |
| widgets | BTreeMap<String, BTreeMap<u64, UiWidgetPatch>> | |
| values | BTreeMap<String, String> | |
Source: crates/platinum-sdk/src/game/ui/state.rs:186
platinum_sdk::game::ui::UiPlayerState::validate
pub fn validate(&self) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:195
platinum_sdk::game::ui::UiWidgetState
pub struct UiWidgetState
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| target | UiWidgetRef | |
| parent | Option<u64> | |
| kind | String | |
| properties | BTreeMap<String, UiScalar> | |
Source: crates/platinum-sdk/src/game/ui/state.rs:230
platinum_sdk::game::ui::UiState
pub struct UiState
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:237
platinum_sdk::game::ui::UiState::from_project
pub fn from_project(root: &Path, project: &crate::game::GameProject) -> Result<Self, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:247
platinum_sdk::game::ui::UiState::register
pub fn register(&mut self, path: &str, document: UiDocument) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:330
platinum_sdk::game::ui::UiState::register_styled
pub fn register_styled(
&mut self,
path: &str,
document: UiDocument,
styles: UiStylesheet,
) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:333
platinum_sdk::game::ui::UiState::ensure_document
pub fn ensure_document(&mut self, root: &Path, path: &str) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:361
platinum_sdk::game::ui::UiState::documents
pub fn documents(&self) -> &BTreeMap<String, UiDocument>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:407
platinum_sdk::game::ui::UiState::player_snapshot
pub fn player_snapshot(&self, source: u64) -> UiPlayerState
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:410
platinum_sdk::game::ui::UiState::apply_player_snapshot
pub fn apply_player_snapshot(
&mut self,
source: u64,
mut state: UiPlayerState,
) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:448
platinum_sdk::game::ui::UiState::remove_player
pub fn remove_player(&mut self, source: u64)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:480
platinum_sdk::game::ui::UiState::replace_player_snapshots
pub fn replace_player_snapshots(
&mut self,
states: BTreeMap<u64, UiPlayerState>,
) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:484
platinum_sdk::game::ui::UiState::apply
pub fn apply(&mut self, source: u64, command: &UiCommand) -> Result<(), String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:513
platinum_sdk::game::ui::UiState::query_revision
pub fn query_revision(&self, source: u64) -> u64
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:551
platinum_sdk::game::ui::UiState::query_view
pub fn query_view(&mut self, source: u64) -> &UiQueryView
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:558
platinum_sdk::game::ui::UiState::get
pub fn get(
&mut self,
source: u64,
target: &UiWidgetRef,
property: &str,
) -> Result<UiScalar, String>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:590
platinum_sdk::game::ui::widget_properties
pub fn widget_properties(
document: &UiDocument,
element: &UiElement,
styles: &UiStylesheet,
values: &BTreeMap<String, String>,
) -> BTreeMap<String, UiScalar>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:607
platinum_sdk::game::ui::patch_query_view
pub fn patch_query_view(
view: &mut UiQueryView,
target: &UiWidgetRef,
patch: &UiWidgetPatch,
) -> Result<(), String>
Apply to a canonical query mirror, including inherited flags, before queued commands drain.
Source: crates/platinum-sdk/src/game/ui/state.rs:698
platinum_sdk::game::ui::widget_flag
pub fn widget_flag(
document: &UiDocument,
id: u64,
styles: &UiStylesheet,
values: &BTreeMap<String, String>,
enabled: bool,
) -> bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/game/ui/state.rs:748
platinum_sdk::game::ui::UiViewportPolicy
pub enum UiViewportPolicy
Fit preserves authored proportions in logical pixels; Responsive lays out against
the actual window, using the document's anchors/percentages/flex/grid rules.
Source: crates/platinum-sdk/src/game/ui/viewport.rs:5
platinum_sdk::game::ui::design_viewport
pub fn design_viewport(
design: [f32; 2],
viewport: Vec2,
policy: UiViewportPolicy,
) -> ([f32; 4], f32)
Node rectangle and transform scale. DPI is handled by Bevy after these logical units.
Source: crates/platinum-sdk/src/game/ui/viewport.rs:11
platinum_sdk::node_editor
platinum_sdk::node_editor
Shared, domain-neutral graph canvas. Documents own topology and undo; the canvas owns navigation.
Source: crates/platinum-sdk/src/node_editor.rs:1
platinum_sdk::node_editor::Node
pub struct Node
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| id | u64 | |
| title | String | |
| subtitle | String | |
| inputs | Vec<String> | |
| outputs | Vec<String> | |
| color | Color32 | |
Source: crates/platinum-sdk/src/node_editor.rs:5
platinum_sdk::node_editor::Link
pub struct Link
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| from | u64 | |
| output | usize | |
| to | u64 | |
| input | usize | |
Source: crates/platinum-sdk/src/node_editor.rs:14
platinum_sdk::node_editor::Canvas
pub struct Canvas
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| selected | Option<u64> | |
Source: crates/platinum-sdk/src/node_editor.rs:21
platinum_sdk::node_editor::Edit
pub enum Edit
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/node_editor.rs:29
platinum_sdk::node_editor::Canvas::show
pub fn show(
&mut self,
ui: &mut Ui,
salt: impl std::hash::Hash,
nodes: &[Node],
links: &[Link],
positions: &mut BTreeMap<u64, [f32; 2]>,
palette: &[&str],
height: f32,
) -> Vec<Edit>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/node_editor.rs:36
platinum_sdk::node_editor::Canvas::show_grid
pub fn show_grid(&mut self, ui: &mut Ui, salt: impl std::hash::Hash, nodes: &[Node])
Graph nodes in a stable, responsive grid, for collections with no topology.
The same Node/channel model is used by wired graphs and test result nodes.
Source: crates/platinum-sdk/src/node_editor.rs:420
platinum_sdk::panels
platinum_sdk::panels
Application-owned tool panels. Empty by default; content has no document dependency.
Source: crates/platinum-sdk/src/panels.rs:1
platinum_sdk::panels::DockSide
pub enum DockSide
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:14
platinum_sdk::panels::PanelPlacement
pub enum PanelPlacement
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:21
platinum_sdk::panels::PanelPreferences
pub struct PanelPreferences
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| enabled | bool | |
| pinned | bool | Keep this floating tool visible when the application loses focus.
Older workspace preferences restore to the unpinned behavior. |
| placement | PanelPlacement | |
| position | [i32; 2] | |
| size | [u32; 2] | |
Source: crates/platinum-sdk/src/panels.rs:26
platinum_sdk::panels::PanelWindow
pub struct PanelWindow
Marks native windows created for explicitly registered application panels.
Public data fields| Name | Type / declaration | Description |
|---|
| id | String | |
| owner | Entity | |
Source: crates/platinum-sdk/src/panels.rs:38
platinum_sdk::panels::PanelActivation
pub struct PanelActivation
The embedding application selects the host and visibility policy each frame.
Public data fields| Name | Type / declaration | Description |
|---|
| owner | Option<Entity> | |
| visible | bool | Legacy document-context hint. Native tools follow actual application focus. |
| force_visible | bool | Allows screenshot fixtures to display application-owned panels without focus. |
Source: crates/platinum-sdk/src/panels.rs:44
platinum_sdk::panels::PanelSet
pub enum PanelSet
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:52
platinum_sdk::panels::PanelContext
pub struct PanelContext<'a>
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| time | f64 | |
| id | &'a str | |
Source: crates/platinum-sdk/src/panels.rs:56
platinum_sdk::panels::PanelOutput
pub struct PanelOutput<A>
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| actions | Vec<A> | |
| commands | Vec<CommandId> | |
Source: crates/platinum-sdk/src/panels.rs:60
platinum_sdk::panels::PanelOutput::actions
pub fn actions(actions: Vec<A>) -> Self
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:73
platinum_sdk::panels::PanelRenderer
pub type PanelRenderer<T, A>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:84
platinum_sdk::panels::PanelDefinition
pub struct PanelDefinition<T, A>
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| id | String | |
| title | String | |
| initial | PanelPreferences | |
| dock_side | DockSide | |
| resizable | bool | |
| scroll | bool | |
| draw | PanelRenderer<T, A> | |
Source: crates/platinum-sdk/src/panels.rs:85
platinum_sdk::panels::PanelDefinition::new
pub fn new(id: impl Into<String>, title: impl Into<String>, draw: PanelRenderer<T, A>) -> Self
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:95
platinum_sdk::panels::Panel
pub struct Panel<T, A>
Description not yet supplied in source. Signature and location are extracted evidence.
Public data fields| Name | Type / declaration | Description |
|---|
| definition | PanelDefinition<T, A> | |
| preferences | PanelPreferences | |
Source: crates/platinum-sdk/src/panels.rs:113
platinum_sdk::panels::PanelRegistry
pub struct PanelRegistry<T: Send + Sync + 'static, A: Send + Sync + 'static>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:119
platinum_sdk::panels::PanelRegistry::register
pub fn register(&mut self, definition: PanelDefinition<T, A>)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:134
platinum_sdk::panels::PanelRegistry::len
pub fn len(&self) -> usize
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:157
platinum_sdk::panels::PanelRegistry::is_empty
pub fn is_empty(&self) -> bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:160
platinum_sdk::panels::PanelRegistry::contains
pub fn contains(&self,id:&str)->bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:163
platinum_sdk::panels::PanelRegistry::set_enabled
pub fn set_enabled(&mut self,id:&str,enabled:bool)->bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:164
platinum_sdk::panels::PanelRegistry::set_pinned
pub fn set_pinned(&mut self, id: &str, pinned: bool) -> bool
Pinning changes focus visibility, never edit authority or ownership.
Source: crates/platinum-sdk/src/panels.rs:168
platinum_sdk::panels::PanelRegistry::surface
pub fn surface(&self, id: &str) -> Option<SurfaceHandle>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:176
platinum_sdk::panels::PanelRegistry::owns_window
pub fn owns_window(&self, window: Entity) -> bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:182
platinum_sdk::panels::PanelRegistry::preferences
pub fn preferences(&self) -> BTreeMap<String, PanelPreferences>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:187
platinum_sdk::panels::PanelRegistry::restore
pub fn restore(&mut self, saved: &BTreeMap<String, PanelPreferences>)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:193
platinum_sdk::panels::PanelRegistry::set_placement
pub fn set_placement(&mut self, id: &str, placement: PanelPlacement)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:206
platinum_sdk::panels::PanelRegistry::resource_advisor
pub fn resource_advisor(&mut self) -> &mut crate::window_resources::WindowResourceAdvisor
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:211
platinum_sdk::panels::PanelRegistry::set_resource_policy
pub fn set_resource_policy(
&mut self,
id: &str,
policy: crate::window_resources::WindowResourcePolicy,
) -> bool
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:214
platinum_sdk::panels::PanelRegistry::profile_resources
pub fn profile_resources(&mut self, time: f64)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:221
platinum_sdk::panels::PanelRegistry::show_resource_advice
pub fn show_resource_advice(&mut self, ctx: &egui::Context, time: f64)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:224
platinum_sdk::panels::PanelRegistry::toggle
pub fn toggle(&mut self, id: &str)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:249
platinum_sdk::panels::PanelRegistry::toggle_docked
pub fn toggle_docked(&mut self, id: &str)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:254
platinum_sdk::panels::PanelRegistry::show_docked
pub fn show_docked(
&mut self,
ctx: &egui::Context,
content: &mut T,
time: f64,
enabled: bool,
) -> PanelOutput<A>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:263
platinum_sdk::panels::PanelRegistry::show_floating
pub fn show_floating(
&mut self,
ctx: &egui::Context,
window: Entity,
host: &mut Window,
content: &mut T,
time: f64,
enabled: bool,
) -> PanelOutput<A>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:339
platinum_sdk::panels::PanelRegistry::show_canvas_floating
pub fn show_canvas_floating(
&mut self,
ctx: &egui::Context,
content: &mut T,
time: f64,
enabled: bool,
) -> PanelOutput<A>
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:373
platinum_sdk::panels::DockablePanelsPlugin
pub struct DockablePanelsPlugin<T: Send + Sync + 'static, A: Send + Sync + 'static>(
PhantomData<fn() -> (T, A)>,
)
Description not yet supplied in source. Signature and location are extracted evidence.
Source: crates/platinum-sdk/src/panels.rs:475