Skip to main content

Crate sui_core

Crate sui_core 

Source

Structs§

AsyncWakeToken
Clipboard
Shared handle to the clipboard service.
Color
CustomEvent
DirtyRegion
DpiInfo
DragDropScope
DragEvent
DragPreview
DragScopeId
DragSessionId
DropEffects
A set of drop effects, such as every effect a drag source allows.
EditableTextSemantics
Error
FontHandle
ImageHandle
InvalidationRequest
KeyboardEvent
LocalClipboardBackend
In-process clipboard storage used when no platform backend is installed.
LocalUrlOpenerBackend
Records URLs instead of opening them; used when no platform backend is installed.
Modifiers
MotionPolicy
The motion policy in effect: the user’s MotionPreference plus a time scale for watching transitions in slow motion while debugging.
Oklch
A color in the perceptual OKLCH space: lightness from 0 to 1, chroma from 0 upward (roughly 0.4 at the edge of wide gamuts), and hue in degrees. Equal lightness steps read as equal visual steps, which makes it the natural space for deriving hover, pressed, and contrast variants.
Path
PathBuilder
Point
PointerButtons
PointerEvent
RawMouseMotionEvent
Device-relative mouse motion in the host’s raw, device-specific units.
Rect
SafeAreaInsets
SemanticsEvent
An assistive-technology action directed at a semantic node.
SemanticsNode
SemanticsRelations
SemanticsState
SemanticsTextRange
Size
SurfaceId
TimerToken
Transform
UrlOpener
Shared handle to the URL-opening service.
UrlPolicy
Decides which URLs a UrlOpener hands to the platform.
Vector
WidgetId
WindowId
Identifies a host render/input target.

Enums§

ColorSpace
CursorGrabMode
Requested host behavior for the system cursor.
DragEventKind
DragOutcome
DragPayload
DropEffect
Event
ImeEvent
InvalidationKind
InvalidationTarget
KeyState
MotionPreference
How much motion the user wants to see.
PathElement
PointerButton
PointerEventKind
PointerKind
ScrollDelta
SemanticsAction
SemanticsActionRequest
A concrete accessibility action requested by a platform assistive-technology provider.
SemanticsLiveRegion
SemanticsPopupKind
SemanticsRole
SemanticsValue
ToggleState
WakeEvent
WindowEvent

Traits§

ClipboardBackend
Storage driver behind a Clipboard handle.
UrlOpenerBackend
Driver behind a UrlOpener handle that hands a URL to the platform.

Type Aliases§

Result
A result whose error defaults to SUI’s Error. The error type can be given too, so a glob import of SUI’s prelude leaves Result<T, E> working.