wzzc-dev/window/core does not have a README file
pub(open) trait MonitorHandleProvider {
fn id(Self) -> (UInt64, UInt64)
fn native_id(Self) -> UInt64
fn name(Self) -> String?
fn position(Self) -> PhysicalPosition
fn surface_size(Self) -> PhysicalSize
fn scale_factor(Self) -> Double
fn current_video_mode(Self) -> VideoMode?
fn video_modes(Self) -> Array[VideoMode]
}impl Show for BadCustomCursorAnimationpub(all) suberror BadCustomCursorSource {
TooLarge(Int, Int)
ByteCountNotDivisibleBy4(Int)
DimensionsVsPixelCount(Int, Int, Int, Int)
HotspotOutOfBounds(Int, Int, Int, Int)
} derive(Debug)impl Show for BadCustomCursorSourcepub(all) suberror BadIcon {
ByteCountNotDivisibleBy4(Int)
DimensionsVsPixelCount(Int, Int, Int, Int)
} derive(Debug)pub(all) suberror EventLoopError {
RecreationAttempt
ExitFailure(Int)
NotSupported(NotSupportedError)
Os(OsError)
} derive(Eq, Debug)impl Show for EventLoopErrorpub(all) suberror ImeSurroundingTextError {
TextTooLong
CursorBadPosition
AnchorBadPosition
} derive(Debug)impl Show for ImeSurroundingTextErrorimpl Show for AsyncRequestSerialpub(all) enum ButtonSource {
Mouse(MouseButton)
Touch(FingerId, Force?)
TabletTool(TabletToolKind, TabletToolButton, TabletToolData)
Unknown(Int)
} derive(Eq, Debug)impl Show for ButtonSourcepub(all) enum CursorIcon {
Default
ContextMenu
Help
Progress
Wait
Cell
VerticalText
Alias
Copy
NoDrop
Grab
Grabbing
EResize
NResize
NeResize
NwResize
SResize
SeResize
SwResize
WResize
EwResize
NsResize
NeswResize
NwseResize
ColResize
RowResize
AllScroll
ZoomIn
ZoomOut
Pointer
Text
Crosshair
Move
NotAllowed
} derive(Eq, Debug)impl Show for CursorIconpub struct CustomCursor {
// private fields
}impl Eq for CustomCursorimpl Show for CustomCursorimpl Debug for CustomCursorpub(all) enum CustomCursorSource {
Rgba(Bytes, Int, Int, Int, Int)
Url(String, Int, Int)
Animation(Int, Array[CustomCursor])
} derive(Eq, Debug)impl Show for CustomCursorSourcefn CustomCursorSource::from_animation(frame_duration_millis : Int, cursors : Array[CustomCursor]) -> CustomCursorSource raise BadCustomCursorAnimationfn CustomCursorSource::from_rgba(rgba : Bytes, width : Int, height : Int, hotspot_x : Int, hotspot_y : Int) -> CustomCursorSource raise BadCustomCursorSourcepub(all) enum DeviceEvent {
PointerMotion(Double, Double)
MouseWheel(MouseScrollDelta)
Button(ButtonId, ElementState)
Key(RawKeyEvent)
} derive(Eq, Debug)impl Show for DeviceEventsimpl Show for ElementStatepub(all) enum Fullscreen {
Borderless(MonitorHandle?)
Exclusive(MonitorHandle, VideoMode)
} derive(Eq, Debug)impl Show for Fullscreenpub(all) enum Ime {
Enabled
Preedit(String, ImeCursorRange?)
Commit(String)
DeleteSurrounding(Int, Int)
Disabled
} derive(Eq, Debug)impl Show for ImeCapabilitiesfn ImeCapabilities::ImeCapabilities(hint_and_purpose : Bool, cursor_area : Bool, surrounding_text : Bool) -> ImeCapabilitiesimpl Show for ImeCursorRangeimpl Show for ImeEnableRequestfn ImeEnableRequest::from_capabilities(capabilities : ImeCapabilities, request_data : ImeRequestData) -> ImeEnableRequest?pub(all) enum ImeRequest {
Enable(ImeEnableRequest)
Update(ImeRequestData)
Disable
} derive(Eq, Debug)impl Show for ImeRequestimpl Show for ImeRequestDatafn ImeRequestData::with_cursor_area(self : ImeRequestData, position : Position, size : Size) -> ImeRequestDatafn ImeRequestData::with_hint_and_purpose(self : ImeRequestData, hint : ImeHint, purpose : ImePurpose) -> ImeRequestDatafn ImeRequestData::with_surrounding_text(self : ImeRequestData, surrounding_text : ImeSurroundingText) -> ImeRequestDataimpl Show for ImeSurroundingTextfn ImeSurroundingText::ImeSurroundingText(text : String, cursor : Int, anchor : Int) -> ImeSurroundingText raise ImeSurroundingTextErrorpub(all) enum KeyCode {
Unidentified
KeyA
KeyS
KeyD
KeyF
KeyH
KeyG
KeyZ
KeyX
KeyC
KeyV
IntlBackslash
KeyB
KeyQ
KeyW
KeyE
KeyR
KeyY
KeyT
Digit1
Digit2
Digit3
Digit4
Digit6
Digit5
Equal
Digit9
Digit7
Minus
Digit8
Digit0
BracketRight
KeyO
KeyU
BracketLeft
KeyI
KeyP
Enter
KeyL
KeyJ
Quote
KeyK
Semicolon
Backslash
Comma
Slash
KeyN
KeyM
Period
Tab
Space
Backquote
Backspace
Escape
Convert
KanaMode
Lang3
Lang4
Lang5
NonConvert
MetaRight
MetaLeft
ShiftLeft
CapsLock
AltLeft
ControlLeft
ShiftRight
AltRight
ControlRight
Fn
FnLock
F17
NumpadDecimal
NumpadMultiply
NumpadAdd
NumLock
AudioVolumeUp
AudioVolumeDown
AudioVolumeMute
NumpadDivide
NumpadEnter
NumpadSubtract
NumpadBackspace
NumpadClear
NumpadClearEntry
NumpadHash
NumpadMemoryAdd
NumpadMemoryClear
NumpadMemoryRecall
NumpadMemoryStore
NumpadMemorySubtract
NumpadParenLeft
NumpadParenRight
NumpadStar
F18
F19
NumpadEqual
Numpad0
Numpad1
Numpad2
Numpad3
Numpad4
Numpad5
Numpad6
Numpad7
F20
F21
F22
F23
F24
Numpad8
Numpad9
IntlYen
IntlRo
NumpadComma
F5
F6
F7
F3
F8
F9
Lang2
F11
Lang1
F13
F16
F14
F10
ContextMenu
F12
F15
Insert
Home
PageUp
Delete
Help
PrintScreen
ScrollLock
Pause
F4
End
F2
PageDown
F1
ArrowLeft
ArrowRight
ArrowDown
ArrowUp
BrowserBack
BrowserFavorites
BrowserForward
BrowserHome
BrowserRefresh
BrowserSearch
BrowserStop
Close
Eject
LaunchApp1
LaunchApp2
LaunchMail
MediaPlayPause
MediaSelect
MediaStop
MediaTrackNext
MediaTrackPrevious
Sleep
WakeUp
BrightnessDown
BrightnessUp
Again
Copy
Cut
Find
Open
Paste
Props
Select
Undo
LaunchScreenSaver
MailForward
MailReply
MailSend
MediaFastForward
MediaPause
MediaPlay
MediaRecord
MediaRewind
MicrophoneMuteToggle
Abort
Resume
Suspend
Hiragana
Katakana
F25
F26
F27
F28
F29
F30
F31
F32
F33
F34
F35
DisplayToggleIntExt
KeyboardLayoutSelect
LaunchAssistant
LaunchControlPanel
PrivacyScreenToggle
KeyboardBacklightToggle
SelectTask
ShowAllWindows
ZoomToggle
Hyper
Super
Turbo
Power
} derive(Eq, Debug)pub struct KeyEvent {
key_without_modifiers : Key
location : KeyLocation
logical_key : Key
physical_key : PhysicalKey
repeat : Bool
state : ElementState
text : String?
text_with_all_modifiers : String?
} derive(Eq, Debug)fn KeyEvent::KeyEvent(physical_key : PhysicalKey, logical_key : Key, key_without_modifiers : Key, location : KeyLocation, state : ElementState, repeat : Bool, text : String?, text_with_all_modifiers : String?) -> KeyEventimpl Show for KeyLocationimpl Show for ModifiersKeyStateimpl Show for ModifiersKeysimpl Show for ModifiersStatepub struct MonitorHandle {
// private fields
}impl Eq for MonitorHandleimpl Show for MonitorHandleimpl Debug for MonitorHandlefn MonitorHandle::MonitorHandle(native_id : UInt64, name : String?, position : PhysicalPosition, surface_size : PhysicalSize, scale_factor : Double, current_video_mode : VideoMode?, video_modes : Array[VideoMode]) -> MonitorHandlepub(all) enum MouseButton {
Left
Right
Middle
Back
Forward
Button6
Button7
Button8
Button9
Button10
Button11
Button12
Button13
Button14
Button15
Button16
Button17
Button18
Button19
Button20
Button21
Button22
Button23
Button24
Button25
Button26
Button27
Button28
Button29
Button30
Button31
Button32
} derive(Eq, Debug)impl Show for MouseButtonpub(all) enum MouseScrollDelta {
LineDelta(Double, Double)
PixelDelta(PhysicalPositionF64)
} derive(Eq, Debug)pub(all) enum NamedKey {
Unidentified
Enter
Tab
Backspace
Escape
Meta
Shift
Alt
Control
CapsLock
NumLock
ScrollLock
AudioVolumeUp
AudioVolumeDown
AudioVolumeMute
Fn
FnLock
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12
F13
F14
F15
F16
F17
F18
F19
F20
F21
F22
F23
F24
Insert
Home
PageUp
Delete
Clear
Copy
Cut
Find
Open
Paste
Redo
Undo
Accept
Again
Cancel
Execute
Props
Select
End
PageDown
ArrowLeft
ArrowRight
ArrowDown
ArrowUp
ContextMenu
BrowserBack
BrowserFavorites
BrowserForward
BrowserHome
BrowserRefresh
BrowserSearch
BrowserStop
Close
Eject
Eisu
KanjiMode
Help
Pause
Play
Power
PrintScreen
Standby
WakeUp
Alphanumeric
CodeInput
Convert
NonConvert
Hankaku
Hiragana
HiraganaKatakana
KanaMode
LaunchApplication1
LaunchApplication2
LaunchCalendar
LaunchContacts
LaunchMail
LaunchMediaPlayer
LaunchMusicPlayer
LaunchPhone
MediaClose
MediaPlayPause
MediaStop
MediaTrackNext
MediaTrackPrevious
New
Print
Save
SpellCheck
Key11
Key12
Katakana
BrightnessDown
BrightnessUp
LaunchScreenSaver
MailForward
MailReply
MailSend
MediaFastForward
MediaPause
MediaPlay
MediaRecord
MediaRewind
MicrophoneToggle
MicrophoneVolumeDown
MicrophoneVolumeUp
MicrophoneVolumeMute
LaunchSpreadsheet
LaunchWebBrowser
LaunchWebCam
LaunchWordProcessor
Romaji
Zenkaku
ZenkakuHankaku
F25
F26
F27
F28
F29
F30
F31
F32
F33
F34
F35
ZoomToggle
AltGraph
Symbol
SymbolLock
Hyper
Super
CrSel
EraseEof
ExSel
Attn
ZoomIn
ZoomOut
LogOff
PowerOff
Hibernate
AllCandidates
Compose
Dead
FinalMode
GroupFirst
GroupLast
GroupNext
GroupPrevious
ModeChange
NextCandidate
PreviousCandidate
Process
SingleCandidate
HangulMode
HanjaMode
JunjaMode
Soft1
Soft2
Soft3
Soft4
ChannelDown
ChannelUp
AudioBalanceLeft
AudioBalanceRight
AudioBassBoostDown
AudioBassBoostToggle
AudioBassBoostUp
AudioFaderFront
AudioFaderRear
AudioSurroundModeNext
AudioTrebleDown
AudioTrebleUp
SpeechCorrectionList
SpeechInputToggle
AppSwitch
Call
Camera
CameraFocus
EndCall
GoBack
GoHome
HeadsetHook
LastNumberRedial
Notification
MannerMode
VoiceDial
TV
TV3DMode
TVAntennaCable
TVAudioDescription
TVAudioDescriptionMixDown
TVAudioDescriptionMixUp
TVContentsMenu
TVDataService
TVInput
TVInputComponent1
TVInputComponent2
TVInputComposite1
TVInputComposite2
TVInputHDMI1
TVInputHDMI2
TVInputHDMI3
TVInputHDMI4
TVInputVGA1
TVMediaContext
TVNetwork
TVNumberEntry
TVPower
TVRadioService
TVSatellite
TVSatelliteBS
TVSatelliteCS
TVSatelliteToggle
TVTerrestrialAnalog
TVTerrestrialDigital
TVTimer
AVRInput
AVRPower
ColorF0Red
ColorF1Green
ColorF2Yellow
ColorF3Blue
ColorF4Grey
ColorF5Brown
ClosedCaptionToggle
Dimmer
DisplaySwap
DVR
Exit
FavoriteClear0
FavoriteClear1
FavoriteClear2
FavoriteClear3
FavoriteRecall0
FavoriteRecall1
FavoriteRecall2
FavoriteRecall3
FavoriteStore0
FavoriteStore1
FavoriteStore2
FavoriteStore3
Guide
GuideNextDay
GuidePreviousDay
Info
InstantReplay
Link
ListProgram
LiveContent
Lock
MediaApps
MediaAudioTrack
MediaLast
MediaSkipBackward
MediaSkipForward
MediaStepBackward
MediaStepForward
MediaTopMenu
NavigateIn
NavigateNext
NavigateOut
NavigatePrevious
NextFavoriteChannel
NextUserProfile
OnDemand
Pairing
PinPDown
PinPMove
PinPToggle
PinPUp
PlaySpeedDown
PlaySpeedReset
PlaySpeedUp
RandomToggle
RcLowBattery
RecordSpeedNext
RfBypass
ScanChannelsToggle
ScreenModeNext
Settings
SplitScreenToggle
STBInput
STBPower
Subtitle
Teletext
VideoModeNext
Wink
} derive(Eq, Debug)impl Show for NotSupportedErrorimpl Show for OptionAsAltimpl Show for PlatformEventLoopAttributesfn PlatformEventLoopAttributes::activate_ignoring_other_apps(self : PlatformEventLoopAttributes) -> Boolfn PlatformEventLoopAttributes::activation_policy(self : PlatformEventLoopAttributes) -> ActivationPolicy?fn PlatformEventLoopAttributes::equal(PlatformEventLoopAttributes, PlatformEventLoopAttributes) -> Boolfn PlatformEventLoopAttributes::not_equal(x : PlatformEventLoopAttributes, y : PlatformEventLoopAttributes) -> Boolfn PlatformEventLoopAttributes::output(self : PlatformEventLoopAttributes, logger : &Logger) -> Unitfn PlatformEventLoopAttributes::with_activate_ignoring_other_apps(self : PlatformEventLoopAttributes, activate_ignoring_other_apps : Bool) -> PlatformEventLoopAttributesfn PlatformEventLoopAttributes::with_activation_policy(self : PlatformEventLoopAttributes, activation_policy : ActivationPolicy) -> PlatformEventLoopAttributesfn PlatformEventLoopAttributes::with_any_thread(self : PlatformEventLoopAttributes, any_thread : Bool) -> PlatformEventLoopAttributesfn PlatformEventLoopAttributes::with_default_menu(self : PlatformEventLoopAttributes, default_menu : Bool) -> PlatformEventLoopAttributesimpl Show for PlatformWindowAttributesfn PlatformWindowAttributes::not_equal(x : PlatformWindowAttributes, y : PlatformWindowAttributes) -> Boolfn PlatformWindowAttributes::with_accepts_first_mouse(self : PlatformWindowAttributes, accepts_first_mouse : Bool) -> PlatformWindowAttributesfn PlatformWindowAttributes::with_borderless_game(self : PlatformWindowAttributes, borderless_game : Bool) -> PlatformWindowAttributesfn PlatformWindowAttributes::with_disallow_hidpi(self : PlatformWindowAttributes, disallow_hidpi : Bool) -> PlatformWindowAttributesfn PlatformWindowAttributes::with_fullsize_content_view(self : PlatformWindowAttributes, fullsize_content_view : Bool) -> PlatformWindowAttributesfn PlatformWindowAttributes::with_has_shadow(self : PlatformWindowAttributes, has_shadow : Bool) -> PlatformWindowAttributesfn PlatformWindowAttributes::with_movable_by_window_background(self : PlatformWindowAttributes, movable_by_window_background : Bool) -> PlatformWindowAttributesfn PlatformWindowAttributes::with_option_as_alt(self : PlatformWindowAttributes, option_as_alt : OptionAsAlt) -> PlatformWindowAttributesfn PlatformWindowAttributes::with_panel(self : PlatformWindowAttributes, panel : Bool) -> PlatformWindowAttributesfn PlatformWindowAttributes::with_tabbing_identifier(self : PlatformWindowAttributes, tabbing_identifier : String) -> PlatformWindowAttributesfn PlatformWindowAttributes::with_title_hidden(self : PlatformWindowAttributes, title_hidden : Bool) -> PlatformWindowAttributesfn PlatformWindowAttributes::with_titlebar_buttons_hidden(self : PlatformWindowAttributes, titlebar_buttons_hidden : Bool) -> PlatformWindowAttributesfn PlatformWindowAttributes::with_titlebar_hidden(self : PlatformWindowAttributes, titlebar_hidden : Bool) -> PlatformWindowAttributesfn PlatformWindowAttributes::with_titlebar_transparent(self : PlatformWindowAttributes, titlebar_transparent : Bool) -> PlatformWindowAttributesfn PlatformWindowAttributes::with_unified_titlebar(self : PlatformWindowAttributes, unified_titlebar : Bool) -> PlatformWindowAttributespub(all) enum PointerKind {
Mouse
Touch(FingerId)
TabletTool(TabletToolKind)
Unknown
} derive(Eq, Debug)impl Show for PointerKindpub(all) enum PointerSource {
Mouse
Touch(FingerId, Force?)
TabletTool(TabletToolKind, TabletToolData)
Unknown
} derive(Eq, Debug)impl Show for PumpStatusimpl Show for ScreenEdgeimpl Show for SurfaceSizeWriterimpl Show for TabletToolAngleimpl Show for TabletToolButtonpub struct TabletToolData {
force : Force?
tangential_force : Double?
twist : Int?
tilt : TabletToolTilt?
angle : TabletToolAngle?
} derive(Eq, Debug)impl Show for TabletToolDatafn TabletToolData::TabletToolData(force : Force?, tangential_force : Double?, twist : Int?, tilt : TabletToolTilt?, angle : TabletToolAngle?) -> TabletToolDataimpl Show for TabletToolTiltimpl Show for TouchPhaseimpl Show for UserAttentionTypefn VideoMode::VideoMode(surface_size : PhysicalSize, bit_depth : Int?, refresh_rate_millihertz : Int?) -> VideoModeimpl Show for WindowAttributesfn WindowAttributes::with_clip_children(self : WindowAttributes, clip_children : Bool) -> WindowAttributesfn WindowAttributes::with_content_protected(self : WindowAttributes, content_protected : Bool) -> WindowAttributesfn WindowAttributes::with_cursor_hittest(self : WindowAttributes, cursor_hittest : Bool) -> WindowAttributesfn WindowAttributes::with_cursor_icon(self : WindowAttributes, cursor : CursorIcon) -> WindowAttributesfn WindowAttributes::with_cursor_visible(self : WindowAttributes, cursor_visible : Bool) -> WindowAttributesfn WindowAttributes::with_decorations(self : WindowAttributes, decorations : Bool) -> WindowAttributesfn WindowAttributes::with_enabled_buttons(self : WindowAttributes, buttons : WindowButtons) -> WindowAttributesfn WindowAttributes::with_fullscreen(self : WindowAttributes, fullscreen : Fullscreen?) -> WindowAttributesfn WindowAttributes::with_ime_purpose(self : WindowAttributes, purpose : ImePurpose) -> WindowAttributesfn WindowAttributes::with_max_surface_size(self : WindowAttributes, size : Size) -> WindowAttributesfn WindowAttributes::with_min_surface_size(self : WindowAttributes, size : Size) -> WindowAttributesfn WindowAttributes::with_parent_window(self : WindowAttributes, parent_window : ParentWindow?) -> WindowAttributesfn WindowAttributes::with_platform_attributes(self : WindowAttributes, platform_attributes : PlatformWindowAttributes) -> WindowAttributesfn WindowAttributes::with_position(self : WindowAttributes, position : Position) -> WindowAttributesfn WindowAttributes::with_resize_increments(self : WindowAttributes, size : Size) -> WindowAttributesfn WindowAttributes::with_skip_taskbar(self : WindowAttributes, skip_taskbar : Bool) -> WindowAttributesfn WindowAttributes::with_surface_resize_increments(self : WindowAttributes, size : Size) -> WindowAttributesfn WindowAttributes::with_transparent(self : WindowAttributes, transparent : Bool) -> WindowAttributesfn WindowAttributes::with_window_icon(self : WindowAttributes, window_icon : Icon?) -> WindowAttributesfn WindowAttributes::with_window_level(self : WindowAttributes, level : WindowLevel) -> WindowAttributesimpl Show for WindowButtonspub(all) enum WindowEvent {
ActivationTokenDone(AsyncRequestSerial, ActivationToken)
SurfaceResized(PhysicalSize)
Moved(PhysicalPosition)
CloseRequested
Destroyed
DragEntered(Array[String], PhysicalPositionF64)
DragMoved(PhysicalPositionF64)
DragDropped(Array[String], PhysicalPositionF64)
DragLeft(PhysicalPositionF64?)
Focused(Bool)
Ime(Ime)
KeyboardInput(DeviceId?, KeyEvent, Bool)
ModifiersChanged(Modifiers)
PointerMoved(DeviceId?, PhysicalPositionF64, Bool, PointerSource)
PointerEntered(DeviceId?, PhysicalPositionF64, Bool, PointerKind)
PointerLeft(DeviceId?, PhysicalPositionF64?, Bool, PointerKind)
PointerButton(DeviceId?, ElementState, PhysicalPositionF64, Bool, ButtonSource)
PinchGesture(DeviceId?, Double, TouchPhase)
PanGesture(DeviceId?, PhysicalPositionF64, TouchPhase)
DoubleTapGesture(DeviceId?)
RotationGesture(DeviceId?, Double, TouchPhase)
TouchpadPressure(DeviceId?, Double, Int)
MouseWheel(DeviceId?, MouseScrollDelta, TouchPhase)
ScaleFactorChanged(Double, SurfaceSizeWriter)
ThemeChanged(Theme)
Occluded(Bool)
RedrawRequested
} derive(Debug)impl Show for WindowLevelpub(all) enum WinitDeviceEvent {
MouseMotion(Double, Double)
MouseWheel(MouseScrollDelta)
Button(ButtonId, ElementState)
Key(RawKeyEvent)
} derive(Eq, Debug)pub(all) enum WinitWindowEvent {
ActivationTokenDone(AsyncRequestSerial, ActivationToken)
Resized(PhysicalSize)
Moved(PhysicalPosition)
CloseRequested
Destroyed
DroppedFile(String)
HoveredFile(String)
HoveredFileCancelled
Focused(Bool)
Ime(Ime)
KeyboardInput(DeviceId?, KeyEvent, Bool)
ModifiersChanged(Modifiers)
CursorMoved(DeviceId?, PhysicalPositionF64)
CursorEntered(DeviceId?)
CursorLeft(DeviceId?)
MouseWheel(DeviceId?, MouseScrollDelta, TouchPhase)
MouseInput(DeviceId?, ElementState, MouseButton)
PinchGesture(DeviceId?, Double, TouchPhase)
PanGesture(DeviceId?, PhysicalPositionF64, TouchPhase)
DoubleTapGesture(DeviceId?)
RotationGesture(DeviceId?, Double, TouchPhase)
TouchpadPressure(DeviceId?, Double, Int)
ScaleFactorChanged(Double, SurfaceSizeWriter)
ThemeChanged(Theme)
Occluded(Bool)
RedrawRequested
} derive(Debug)Install
Download zipThe wzzc-dev fork of moonbit-community/window, tracking upstream 0.5.4 while adding MoUI-oriented desktop, Web, and mobile backends.
Dependencies