Expand description
Platform-owned window data and normalized native events.
Layout stays in logical pixels. This crate is the single conversion boundary between those coordinates and physical surface/window coordinates.
Structs§
- Advanced
Input Capabilities - Device-rich input and native cursor facilities beyond basic pointer input.
- Application
Service Capabilities - Application-level desktop services that live outside ordinary widgets.
- Clipboard
Capabilities - Clipboard
Write Report - Data
Transfer - Ordered collection of clipboard or external drag items.
- Data
Transfer Capabilities - Data exchange with the operating system and other applications.
- Display
Id - Generational identity for one display discovered by the active backend.
- Display
Placement Capabilities - Display discovery and top-level placement capabilities.
- Display
Snapshot - Immutable portable snapshot for one currently connected display.
- Document
Activation - Application-level open-document value intentionally shared with the future OS activation pipeline. It transports intent only; Incular does not create a document model, load bytes, or choose a persistence policy.
- Document
Descriptor - One file/document path selected by the operating system or delivered by an application activation. The path is preserved exactly; Incular does not canonicalize it or take ownership of document persistence.
- External
Drag Event - Normalized incoming drag sample.
transferis the same shared transfer model used by the clipboard; backends never reinterpret a file as text or fabricate unsupported rich representations. - External
Drag Response - Target negotiation result returned to a native adapter when it can honor a requested drag operation.
- File
Content Type - Semantic content type accepted by a file filter. MIME types are normalized to ASCII lowercase because MIME type/subtype tokens are case-insensitive; UTI-like identifiers are preserved verbatim apart from surrounding space.
- File
Dialog Capabilities - Detailed native-dialog capabilities. Keeping options independent prevents a backend from claiming full semantic support merely because it can show a basic file picker.
- File
Dialog Filter - One semantic filter with optional native-facing presentation text.
- File
Dialog Filter Id - Stable semantic identity for a file filter. Native display labels are presentation only and never determine filter identity.
- File
Dialog Options - Shared options for native file-dialog operations.
- File
Dialog Request - Fully validated, native-handle-free dialog request.
- File
Dialog Request Id - Stable runtime identity for one file-dialog request. It is unrelated to a native dialog object or operating-system handle.
- File
Extension - Normalized file extension without a leading dot.
- Global
Shortcut Chord - Physical key chord registered with the operating system.
- Global
Shortcut Id - Stable application-owned identity for one native global shortcut.
- Launch
Activation - Arguments and typed resources associated with process launch.
- Logical
Display Position - Logical point relative to one display, independent of desktop-global coordinate availability.
- Logical
Screen Position - Logical desktop-global point, only published by backends with a coherent logical global coordinate space.
- Logical
Screen Rect - Logical desktop-global rectangle. Mixed-DPI backends that cannot provide a coherent global logical coordinate space leave this absent rather than dividing a physical global origin by one monitor’s scale factor.
- Logical
Size Limits - Validated dynamic logical-size constraints for a native window.
- Logical
Window Position - Finite logical cursor position relative to a window’s client area.
- Logical
Window Position Error - Media
Type - Stable identifier for an application-defined transfer representation.
- Memory
Clipboard - Memory
Content Sensitivity Backend - Deterministic backend for headless hosts and platform-boundary tests.
- Memory
System Environment Provider - Thread-safe deterministic provider for headless hosts and tests.
- Memory
Text Input Adapter - In-memory adapter useful for tests and headless hosts.
- Native
Menu Capabilities - Operating-system application-menu integration.
- Native
Operation Completion - One native backend completion routed back to the runtime.
- Native
Pointer Sample - Native device details that enrich a Winit pointer sample without changing its logical contact identity or phase. This is used only when an OS adapter can supply semantics Winit intentionally omits (for example Win32 pen kind, tilt, and eraser state).
- Native
Request Id - Stable identity for one result-bearing native request.
- Noop
Content Sensitivity Backend - Explicit unsupported backend used by platforms without a capture policy primitive. Keeping this as a real backend makes unsupported behavior observable and testable rather than silently dropping a command.
- Notification
Action - One optional native notification action.
- Notification
Action Id - Stable application-defined identity for a notification action.
- Notification
Id - Notification
Presentation - Complete desired presentation of one desktop notification.
- Physical
Display Position - Physical point relative to the top-left of one known display.
- Physical
Screen Position - Physical desktop-global point in native screen pixels.
- Physical
Screen Rect - Physical desktop-global rectangle in native screen pixels.
- Physical
Size - Platform
Capabilities - Complete capability snapshot published by a platform backend.
- Platform
Operation Error - Backend-neutral native operation failure.
- Pointer
Metadata - Portable metadata attached to one native pointer sample before its physical position is normalized into logical window coordinates.
- Single
Instance Policy - Opt-in policy selecting one primary process for an application identity.
- System
Environment Preferences - Application-level system preferences observable by a native adapter.
- Taskbar
Dock State - Desired application shell state.
window_idis a native taskbar-button target on platforms that require one (notably Windows); application-scoped Dock implementations may ignore it. - Taskbar
Progress Error - Text
Input Client Id - Stable identity for the text-input client currently attached to a window. It is generated by the retained tree and is independent of native handles.
- Text
Input Configuration - Text
Input State - Transfer
Format Capabilities - Per-format support for one direction of clipboard access.
- Transfer
Image - Owned, unpremultiplied RGBA8 image transfer.
- Transfer
Item - Multiple representations of one logical clipboard/drag item.
- Transfer
Operations - Compact operation set used for drag/drop negotiation.
- Transfer
Read Request - Requested clipboard representations. Empty means every representation the backend can enumerate without inventing conversions.
- Transfer
Representation - One advertised representation of a logical transfer item.
- Transient
Surface Capabilities - Native surface hosting for transient UI such as menus and popovers.
- Tray
Item Id - Tray
Item Presentation - Native presentation for one application-owned tray/status item.
- UrlActivation
- Ordered URLs delivered by the operating system or a secondary instance.
- Window
Command - A UI-thread operation requested for one Incular window.
- Window
Control Capabilities - Portable operations performed on an already-created native window.
- Window
Event - A native event routed to one normalized Incular window.
- Window
Icon - Validated RGBA8 window-icon pixels.
- Window
Id - Stable identity for an Incular window.
- Window
Metrics - Window
Observed State - Native state that can be queried reliably by the active backend.
- Window
Options - Configuration used when creating an Incular desktop window.
- Window
Requested State - Application-requested mutable top-level state.
Enums§
- Application
Activation - Native/application events which are not owned by a particular window’s input stream.
- Application
Badge - Badge rendered by a taskbar/Dock integration when the active platform has native badge support.
- Application
Shell Error - Typed failure from a native application-shell operation.
- Application
Shell Feature - Shell facility requested by an application-scoped operation.
- Capability
Support - Whether a portable platform capability is known to be available.
- Clipboard
Error - Content
Sensitivity Capability - Whether a native backend can enforce content sensitivity for a window.
- Content
Sensitivity NoOp Reason - Why a content-sensitivity request was intentionally not applied.
- Content
Sensitivity Outcome - Result of applying a normalized content-sensitivity request.
- Cursor
Grab Mode - Native cursor grab policy for one window.
- Display
Placement Area - External
Drag Phase - File
Content Type Kind - Semantic family of a file content-type identifier.
- File
Dialog Error - File
Dialog Kind - Native file-dialog operation requested by application code.
- File
Dialog Option - Semantically important optional behavior a backend may support or reject.
- File
Dialog Outcome - User-visible completion of a native file dialog. User cancellation is a normal outcome rather than a backend error.
- File
Dialog Selection - Portable result payload from a native file dialog.
- File
Dialog Validation Error - Fullscreen
- The portable subset of fullscreen behaviour supported by Incular.
- Global
Shortcut Chord Error - Global
Shortcut Error - Typed failure from application-level global shortcut registration.
- Logical
Size Limits Error - Native
Window System - Native desktop window-system family for capability refinement.
- Platform
Event - Platform
Lifecycle - Lifecycle states native adapters can report without depending on the runtime crate. Adapters may emit only the states their OS exposes.
- Platform
Operation Error Kind - Stable category for a failure at the native platform boundary.
- Single
Instance Policy Error - Taskbar
Progress - Progress state rendered by a taskbar button or application Dock tile.
- Text
Input Action - Text
Input Command - Commands emitted by the runtime and consumed by a native text-input adapter. They contain no window handles and can be queued safely at the runtime boundary.
- Text
Input Type - Hints supplied to a native IME or soft-keyboard adapter.
- Transfer
Data - Materialized transfer data. Large payload variants retain shared storage.
- Transfer
Data Error - Transfer
Format - Portable representation kinds shared by clipboard and external drag/drop.
- Transfer
Operation - One operation an external drag source permits a target to request.
- Transparency
Mode - Whether a native application window participates in desktop compositing with framebuffer alpha.
- User
Attention Type - Strength of a desktop user-attention request.
- Window
Event Kind - Window event data that is not part of the legacy
PlatformEventstream. - Window
Icon Error - Window
Level - Portable z-level hints for a desktop top-level window.
- Window
Lifecycle - Native lifecycle state for one window, independent of application lifecycle.
- Window
Operation - Operations available through an Incular
WindowHandle. - Window
Options Error - A contradiction in portable window-creation constraints.
- Window
Size Policy - Which side of the content/window relationship owns the logical size.
Traits§
- Clipboard
- Clipboard boundary shared by memory, desktop, and custom hosts.
- Content
Sensitivity Backend - Native capability seam for applying window content sensitivity.
- System
Environment Provider - Snapshot source used by platform adapters and deterministic tests.
- Text
Input Adapter - Minimal adapter seam for embedders that own their own text-input bridge.
Functions§
- application_
data_ local_ directory - Resolves the persistent, local application-data directory through the operating system’s standard project-directory conventions.
- canonicalize_
system_ locales - Parses OS-provided BCP-47 locale strings through ICU4X, preserving order while dropping malformed and duplicate canonical locales.