scoop:scoop.window:0.1.0
scoop.window
API
-
class
ActiveApplication
Owner-thread operations available while the native application is active.
-
class
Application
The one application and one native main-loop run owned by this process.
-
enum
ApplicationEvent
Application lifecycle and window notifications have owned payloads.
-
interface
ApplicationHandler
Receives serial application events on the native owner thread.
-
class
ApplicationOptions
Mutable construction options; Application copies their values.
- class ApplicationOptionsBuilder
-
class
ApplicationProxy
Cross-thread FIFO business delivery, separate from shutdown control work.
-
enum
AttentionKind
Attention requests do not promise keyboard focus.
-
class
Clipboard
System clipboard text with shared ownership and standard media type mapping.
-
struct
ClipboardText
One Unicode representation of a clipboard item, identified by a text MIME type.
- enum ContactEvent
-
struct
ContactId
Identifies one contact lifetime within a window; native values may be reused.
-
enum
ContactKind
Direct screen contact or a pen tip, separate from indirect native gestures.
-
struct
ContactState
Pressure is present only when the device supplies a normalized value.
-
enum
ControlFlow
Controls when the native loop wakes. WaitUntil uses the system monotonic clock.
-
enum
CursorIcon
System cursors available without owning a custom image or capture session.
- struct DesktopCapabilities
-
class
DesktopImage
CPU image data shared by menus and the optional tray Cone.
-
class
DesktopImageRepresentation
One immutable, tightly packed straight-alpha RGBA8 image.
-
struct
DesktopPosition
A position in the display system's desktop coordinates, independent of window DPI.
- struct DesktopPositioningCapabilities
-
struct
DesktopRect
Desktop bounds in the display system's coordinate units.
-
struct
DeviceId
A known input-device identity; events use None when the platform cannot identify it.
- enum DialogTarget
- struct DirectoryDialogOptions
-
enum
DragContent
Owned data. File paths do not imply that their contents have been read.
- enum DragEffect
- struct DragEffects
- enum DragFormat
- struct DragFormats
-
class
DragPreview
A native drag image and its pointer offset from the logical top-left corner.
-
enum
DragResult
The native destination result. A Move still requires the source's own commit.
-
class
DragSession
Closing disconnects callbacks; it does not claim to cancel an active system drag.
- enum DropDecision
- struct DropHandlers
-
struct
DropOffer
Metadata only; payloads are copied after an actual drop.
- struct DropRequest
-
class
DropTarget
One native destination owned by a window; the renderer supplies its own hit routing.
-
enum
ElementState
State shared by physical keys and pointer buttons.
-
enum
ExitReason
Why the system is asking the application to exit.
- enum FileDialogCancelReason
- struct FileDialogCapabilities
- enum FileDialogResult
-
class
FileDialogSession
A native file presentation with an owned, typed completion result.
- struct FileDialogSessionId
- enum FileDialogState
- enum FileTypes
-
enum
GestureEvent
Magnify multiplies the current scale by (1 + delta). Rotate carries clockwise radians. Swipe carries a discrete direction, positive right/down, not a pixel distance. The positional state does not change mouse buttons or create touch contacts. Device identity remains unknown when the platform cannot provide it.
-
enum
GestureKind
Kinds of system-recognized gestures, independent of application recognizers.
-
enum
GesturePhase
A phase supplied by the native recognizer; None is an independent event.
- enum HapticFeedbackPattern
- enum HapticFeedbackRequest
-
enum
InputTime
Native occurrence time, or receipt time when the original clock is unavailable.
-
struct
InteractionPreferences
System facts; None is unknown, not a request to disable a feature.
-
enum
KeyCode
Layout-independent keyboard positions supported by the current backend.
-
struct
KeyEvent
An owned key notification; synthetic releases have no invented hardware time.
-
enum
KeyLocation
A key's physical region, independent of the active text layout.
-
enum
LastWindowPolicy
The application's behavior after its last window is actually destroyed.
-
enum
LogicalKey
Logical keys describe shortcuts; text insertion uses TextInputEvent exclusively.
-
struct
LogicalPosition
A position in a window's logical, top-left coordinate system.
-
struct
LogicalRect
A logical rectangle in content coordinates.
-
struct
LogicalSize
A nonnegative logical content size, validated when used by a window operation.
-
class
Menu
An explicit owner of one native menu tree.
-
class
MenuActivation
The source is captured at activation, including an application menu's active window.
-
class
MenuBarBinding
A single explicit attachment; closing it never closes the menu.
- struct MenuBarBindingId
- struct MenuCapabilities
-
enum
MenuCommand
A standard role and an application action are mutually exclusive.
-
struct
MenuId
Application-local identities, separate from native command numbers.
- class MenuItemDescription
- struct MenuItemId
-
enum
MenuItemKind
Check state is published by the application and never toggled implicitly.
- enum MenuRole
- enum MenuSource
- enum MenuState
- enum ModalCancelReason
- struct ModalCapabilities
- struct ModalOptions
- enum ModalPresentation
- enum ModalResult
- enum ModalScope
-
class
ModalSession
Borrows a native window until the native presentation and its callbacks retire.
- struct ModalSessionId
- enum ModalState
-
struct
ModifierSides
None means that the native event did not identify the modifier's side.
-
struct
Modifiers
Modifier state at the same native event; unsupported lock states remain unknown.
-
struct
Monitor
An owned display snapshot; desktop coordinates do not use a window's DPI.
-
struct
MonitorId
A library-assigned monitor identity, independent of native display identifiers.
-
enum
MouseButton
Native button numbering is retained for additional mouse buttons.
-
enum
NamedKey
Non-text logical keys, including layout-independent editing commands.
-
enum
NativeKeyCode
An unrecognized key retains its platform encoding.
- struct NativeMenuUseId
- struct OpenFileOptions
- enum OwnedWindowOrder
-
enum
PhysicalKey
Known physical keys and explicit native fallbacks.
-
struct
PhysicalPosition
A physical pixel position; subpixel coordinates are preserved.
-
struct
PhysicalSize
A drawable allocation size in pixels.
-
enum
PointerCancelReason
Ends native positional input without synthesizing a successful release.
-
enum
PointerEvent
Window-relative pointer events, with independent wheel and momentum phases. Button carries a consecutive click count of at least one. The matching release retains its press count; cancellation ends the sequence without a release.
-
struct
PointerState
Position and modifiers captured from one native positional input event.
- enum PopupCancelReason
-
enum
PopupPlacement
Coordinates belong to the target window's presented content.
- enum PopupResult
-
class
PopupSession
A nonblocking handle to one native popup presentation.
- struct PopupSessionId
-
class
PrimarySelection
A platform PRIMARY selection, separate from the explicit copy/paste clipboard.
-
class
PrimarySelectionClaim
Closing a claim never clears the contents of a later or external owner.
-
enum
RequestStatus
Whether an operation was observed, requested, or has no platform implementation.
- struct SaveFileOptions
-
enum
ScrollDelta
Line deltas are never converted with an invented line height.
-
enum
ScrollPhase
A native phase; None is normal for traditional wheel events.
-
class
ShortcutChord
One immutable key combination, shared by matching and display.
-
enum
ShortcutKey
Choose logical meaning or a physical keyboard position explicitly.
- class ShortcutLabel
-
struct
ShortcutModifiers
Primary follows the host convention; the other flags describe actual modifiers.
- class ShortcutModifiersBuilder
-
enum
SoftwareKeyboardRequest
A successful request does not imply that the platform displayed a keyboard.
-
enum
SoftwareKeyboardState
Known visibility and the actual overlap with this window's logical content.
-
enum
StartCause
Why a new external event batch started.
-
class
SystemTextServices
Native text services return values; the caller retains its document and undo ownership.
-
class
TextCheckFinding
Ranges refer to the exact UTF-8 text passed to checkText.
- enum TextCheckKind
- struct TextCheckingOptions
-
struct
TextCommandAvailability
Availability of standard menu edits, independent of an IME connection.
-
enum
TextContextMenuEntry
A display description with no native ownership or implicit edit target.
-
struct
TextContextMenuLabels
Explicit application translations override corresponding platform titles.
- enum TextContextMenuSource
- class TextContextMenuTemplate
-
enum
TextDeletion
Deletions use graphemes, Unicode words, or the named line/paragraph boundary.
-
enum
TextEditCommand
Native editing interpretation carried by the same routed keyboard event.
-
class
TextInputBatch
An owned, ordered edit transaction against an optional editor revision.
-
struct
TextInputConnection
One native document connection, replaced whenever native text input reopens.
-
enum
TextInputEvent
Text has exactly one insertion channel, including ordinary printable keys.
-
enum
TextInputOperation
One ordered edit within a native input transaction.
-
struct
TextInputOrigin
Ordered native batch identity; it is independent of the application's text revision.
-
enum
TextInputPurpose
Advisory native input layout; text validation belongs to the editor.
-
struct
TextInputState
An immutable UTF-8 snapshot, published to native text input only by an explicit request.
-
enum
TextMovement
Logical and visual motions are distinct, especially in bidirectional text.
-
enum
TextReplacement
Replacement coordinates refer to the temporary text after preceding batch operations.
- struct TextServiceCapabilities
-
enum
Theme
A platform appearance, when known.
-
struct
Utf8Range
A half-open UTF-8 byte range. Operations validate bounds and character boundaries.
-
struct
Utf8Selection
Selection endpoints preserve the anchor and active cursor direction.
-
class
Window
An explicitly destroyed native window owned by its application's thread.
-
struct
WindowActivity
Observed native state used to pause work owned by this window.
-
class
WindowAttributes
Mutable creation attributes, copied before creating the native object.
- class WindowAttributesBuilder
-
enum
WindowBackend
The implemented window-system backend.
-
struct
WindowButtons
Native titlebar buttons enabled by the application.
- enum WindowContentMode
-
class
WindowDeadline
A reschedulable one-shot callback, independent of redraws and application waiting policy.
-
enum
WindowErrorKind
Platform failures, separate from invalid arguments.
-
enum
WindowEvent
Events whose final notification is Destroyed.
-
class
WindowException
A window-system failure retaining the operation and optional platform status.
-
enum
WindowFrame
Client suppresses host decoration without disabling native window operations.
- struct WindowFrameCapabilities
- struct WindowFrameMetrics
-
struct
WindowHitRegion
Published order resolves overlaps after reserved native buttons.
- enum WindowHitRole
-
struct
WindowId
A library-assigned window identity, never reused by its application.
-
struct
WindowInsets
Insets from the view edges in logical points.
-
enum
WindowLevel
Window-manager ordering requests.
- struct WindowManagementCapabilities
-
struct
WindowMetrics
One complete observed content geometry and backing-scale snapshot.
-
class
WindowRegion
Immutable binary coverage in logical content coordinates.
-
enum
WindowRelation
Owned windows remain top-level windows with their own content coordinates.
- enum WindowResizeEdge
- enum WindowRole
- enum WindowShadow
-
struct
WindowSizeConstraints
Optional content-size limits; each present size is finite and nonnegative.
-
enum
WindowState
Explicit window lifetime; garbage collection does not destroy native windows.
- enum WindowSystemButton
- struct WindowSystemButtonBounds
-
function
applicationOptions
Configures one complete value; execution remains explicit.
- function attachMenuBar
-
function
beginDrag
Begins native data dragging from the currently dispatched mouse or direct-contact input.
-
function
beginMove
Requests native dragging from this window's currently dispatched input.
- function beginResize
-
function
clearImeCursorArea
Makes the basic candidate rectangle unavailable until supplied again.
-
property
clipboard
Obtains a clipboard facade that remains valid while this application runs.
-
property
clipboard
Uses the application clipboard without extending the lifetime of this window.
- function copy
-
function
createMenu
Creates a menu without a binding, popup, or native borrow.
-
function
currentMonitor
Returns the display currently associated with this native window.
-
function
desktopCapabilities
Queries the active backend; availability is reported by the individual operation.
-
property
frameCapabilities
Queries the native window decoration capabilities on the owner thread.
- property frameMetrics
-
property
frameRevision
Changes before queued frame notifications when native region coordinates become stale.
- property id
-
property
interactionPreferences
The latest owner-published snapshot; reading does not query the OS.
-
property
interactionPreferences
Uses this window's application without acquiring a native window lease.
-
function
isContextMenuClick
Preserves the physical button event while recognizing the platform's auxiliary click.
-
property
isFullscreen
Observes the actual fullscreen mode. Read again after a FrameChanged event.
- property isInputBlocked
-
property
isMaximized
Observes native zoom state.
-
property
isMinimized
Observes native miniaturization.
- property kind
-
function
mark
Returns the captured time in the same clock domain used for frames and deadlines.
-
function
matchesShortcut
Compares received keys without deriving keyboard events from inserted text.
-
function
monitors
Enumerates the displays currently reported by the native window system.
-
function
observeInteractionPreferences
The registration belongs to the application; close it with the consumer.
-
property
observedWindowLevel
Reports the native level, including owner propagation; unavailable observations stay unknown.
- function openFile
- function openFiles
- property ownerWindow
-
property
phase
Swipe is always discrete and has no continuous sequence phase.
-
function
primaryMonitor
Returns the display owning the desktop origin, when one is available.
- property primarySelection
- property primarySelection
-
function
publishTextInputCaret
Publishes geometry only for the current, fully applied document revision.
-
function
publishTextInputState
Publishes applied text independently of drawing or candidate geometry.
-
function
registerDropTarget
Registers before or after window configuration. Payloads are read only during drop.
-
function
requestAttention
Requests or cancels native user attention independently of activation.
-
function
requestFullscreen
Requests entry into or exit from fullscreen on the window's current display.
-
function
requestHapticFeedback
Requested confirms native submission, not the presence of a haptic device.
-
function
requestMaximized
Requests native maximization or restoration; the OS determines the actual frame.
-
function
requestMinimized
Requests native miniaturization or restoration.
-
function
requestPosition
Requests desktop placement in global display-system coordinates.
-
function
requestRaise
Requests stacking only; OS activation policy remains separate.
- function requestSoftwareKeyboard
-
function
requestTheme
Requests a preferred appearance; None follows the application/system.
- property role
- function saveFile
- function selectDirectory
-
function
setBlur
Places a native visual-effect background behind the renderer host view.
-
function
setContentProtected
Requests the system's content-sharing hint, without promising capture prevention.
-
function
setCursorIcon
Selects the native cursor for this window's content area.
-
function
setCursorVisible
Hides only while the pointer belongs to this window; leaving restores it.
-
function
setEnabledButtons
Sets the native close, minimize, and zoom button availability.
- function setFrame
-
function
setHitRegions
Replaces the complete native snapshot; an empty array restores ordinary client input.
- function setIgnoreMouse
-
function
setImeAllowed
Enables platform composition for this window; ordinary text uses the same edit channel.
-
function
setImeCursorArea
Publishes a candidate-window rectangle in logical content coordinates.
- function setInputRegion
-
function
setResizable
Enables or disables interactive window resizing.
-
function
setResizeIncrements
Sets positive interactive resize steps, or restores the native default.
- function setShadow
-
function
setSizeConstraints
Updates native limits and requests a clamped content size when necessary.
- function setTextInputPurpose
-
function
setTransparent
Controls the window background opacity independently of a blur request.
-
function
setWindowLevel
Selects a native ordering level without claiming keyboard focus.
- function setWindowRegion
- function shortcutChord
-
function
shortcutLabel
Queries the active keyboard layout without changing its input source or focus.
- function showModal
- function showPopup
-
function
showTextDefinition
The anchor is a current visible content rectangle, not a guessed document position.
- function showWindowMenu
- property softwareKeyboard
- property state
-
function
systemMenuBarHeight
A native height in desktop units; this does not imply a visible bar rectangle.
-
function
systemTaskbarBounds
The system taskbar reported by the Shell, not an enumeration of all appbars.
- property textCommandAvailability
-
function
textContextMenuTemplate
Reads a platform template without creating an editor, menu session or text document.
- property textServices
- property time
-
function
utf8Slice
Copies a validated UTF-8 byte range without reinterpreting it as character indices.
-
function
windowAttributes
Configures one complete value; execution remains explicit.