Window
이 콘텐츠는 아직 번역되지 않았습니다.
Namespace NetWiv · Assembly NetWiv.Core
public class WindowProperties
Section titled “Properties”public string Label { get; }Methods
Section titled “Methods”AvailableMonitorsAsync
Section titled “AvailableMonitorsAsync”public Task<IReadOnlyList<Monitor>> AvailableMonitorsAsync(CancellationToken cancellationToken = null);CenterAsync
Section titled “CenterAsync”public Task CenterAsync(CancellationToken cancellationToken = null);ClearEffectsAsync
Section titled “ClearEffectsAsync”public Task ClearEffectsAsync(CancellationToken cancellationToken = null);CloseAsync
Section titled “CloseAsync”public Task CloseAsync(CancellationToken cancellationToken = null);CurrentMonitorAsync
Section titled “CurrentMonitorAsync”public Task<Monitor> CurrentMonitorAsync(CancellationToken cancellationToken = null);CursorPositionAsync
Section titled “CursorPositionAsync”public Task<PhysicalPosition<double>> CursorPositionAsync(CancellationToken cancellationToken = null);DestroyAsync
Section titled “DestroyAsync”public Task DestroyAsync(CancellationToken cancellationToken = null);public void Emit(string eventName, JsonElement payload);EmitAsync
Section titled “EmitAsync”public Task EmitAsync(string eventName, JsonElement payload);EmitTo
Section titled “EmitTo”public void EmitTo(RuntimeEventTarget target, string eventName, JsonElement payload);public void EmitTo(string label, string eventName, JsonElement payload);EmitToAsync
Section titled “EmitToAsync”public Task EmitToAsync(RuntimeEventTarget target, string eventName, JsonElement payload);public Task EmitToAsync(string label, string eventName, JsonElement payload);HideAsync
Section titled “HideAsync”public Task HideAsync(CancellationToken cancellationToken = null);InnerPositionAsync
Section titled “InnerPositionAsync”public Task<PhysicalPosition> InnerPositionAsync(CancellationToken cancellationToken = null);InnerSizeAsync
Section titled “InnerSizeAsync”public Task<PhysicalSize> InnerSizeAsync(CancellationToken cancellationToken = null);InvokeAsync
Section titled “InvokeAsync”public Task<JsonElement> InvokeAsync(string command, JsonElement args, CancellationToken cancellationToken = null);IsAlwaysOnTopAsync
Section titled “IsAlwaysOnTopAsync”public Task<bool> IsAlwaysOnTopAsync(CancellationToken cancellationToken = null);IsClosableAsync
Section titled “IsClosableAsync”public Task<bool> IsClosableAsync(CancellationToken cancellationToken = null);IsDecoratedAsync
Section titled “IsDecoratedAsync”public Task<bool> IsDecoratedAsync(CancellationToken cancellationToken = null);IsEnabledAsync
Section titled “IsEnabledAsync”public Task<bool> IsEnabledAsync(CancellationToken cancellationToken = null);IsFocusedAsync
Section titled “IsFocusedAsync”public Task<bool> IsFocusedAsync(CancellationToken cancellationToken = null);IsFullscreenAsync
Section titled “IsFullscreenAsync”public Task<bool> IsFullscreenAsync(CancellationToken cancellationToken = null);IsMaximizableAsync
Section titled “IsMaximizableAsync”public Task<bool> IsMaximizableAsync(CancellationToken cancellationToken = null);IsMaximizedAsync
Section titled “IsMaximizedAsync”public Task<bool> IsMaximizedAsync(CancellationToken cancellationToken = null);IsMinimizableAsync
Section titled “IsMinimizableAsync”public Task<bool> IsMinimizableAsync(CancellationToken cancellationToken = null);IsMinimizedAsync
Section titled “IsMinimizedAsync”public Task<bool> IsMinimizedAsync(CancellationToken cancellationToken = null);IsResizableAsync
Section titled “IsResizableAsync”public Task<bool> IsResizableAsync(CancellationToken cancellationToken = null);IsVisibleAsync
Section titled “IsVisibleAsync”public Task<bool> IsVisibleAsync(CancellationToken cancellationToken = null);Listen
Section titled “Listen”public IDisposable Listen(string eventName, Action<AppEvent> handler);ListenAny
Section titled “ListenAny”public IDisposable ListenAny(string eventName, Action<AppEvent> handler);MaximizeAsync
Section titled “MaximizeAsync”public Task MaximizeAsync(CancellationToken cancellationToken = null);MinimizeAsync
Section titled “MinimizeAsync”public Task MinimizeAsync(CancellationToken cancellationToken = null);MonitorFromPointAsync
Section titled “MonitorFromPointAsync”public Task<Monitor> MonitorFromPointAsync(double x, double y, CancellationToken cancellationToken = null);OnCloseRequested
Section titled “OnCloseRequested”public IDisposable OnCloseRequested(Func<CloseRequestedEvent, Task> handler);Waits for the handler before destroying the window unless PreventDefault was called.
public IDisposable OnCloseRequested(Action<CloseRequestedEvent> handler);OnDragDropEvent
Section titled “OnDragDropEvent”public IDisposable OnDragDropEvent(Action<AppEvent<DragDropEvent>> handler);OnFocusChanged
Section titled “OnFocusChanged”public IDisposable OnFocusChanged(Action<AppEvent<bool>> handler);OnMoved
Section titled “OnMoved”public IDisposable OnMoved(Action<AppEvent<PhysicalPosition>> handler);OnResized
Section titled “OnResized”public IDisposable OnResized(Action<AppEvent<PhysicalSize>> handler);OnScaleChanged
Section titled “OnScaleChanged”public IDisposable OnScaleChanged(Action<AppEvent<ScaleFactorChanged>> handler);OnThemeChanged
Section titled “OnThemeChanged”public IDisposable OnThemeChanged(Action<AppEvent<Theme>> handler);public IDisposable Once(string eventName, Action<AppEvent> handler);OnceAny
Section titled “OnceAny”public IDisposable OnceAny(string eventName, Action<AppEvent> handler);OuterPositionAsync
Section titled “OuterPositionAsync”public Task<PhysicalPosition> OuterPositionAsync(CancellationToken cancellationToken = null);OuterSizeAsync
Section titled “OuterSizeAsync”public Task<PhysicalSize> OuterSizeAsync(CancellationToken cancellationToken = null);PrimaryMonitorAsync
Section titled “PrimaryMonitorAsync”public Task<Monitor> PrimaryMonitorAsync(CancellationToken cancellationToken = null);RequestUserAttentionAsync
Section titled “RequestUserAttentionAsync”public Task RequestUserAttentionAsync(UserAttentionType? requestType, CancellationToken cancellationToken = null);ScaleFactorAsync
Section titled “ScaleFactorAsync”public Task<double> ScaleFactorAsync(CancellationToken cancellationToken = null);SetAlwaysOnBottomAsync
Section titled “SetAlwaysOnBottomAsync”public Task SetAlwaysOnBottomAsync(bool value, CancellationToken cancellationToken = null);SetAlwaysOnTopAsync
Section titled “SetAlwaysOnTopAsync”public Task SetAlwaysOnTopAsync(bool value, CancellationToken cancellationToken = null);SetBackgroundColorAsync
Section titled “SetBackgroundColorAsync”public virtual Task SetBackgroundColorAsync(RgbaColor? color, CancellationToken cancellationToken = null);SetBadgeCountAsync
Section titled “SetBadgeCountAsync”public Task SetBadgeCountAsync(long? count, CancellationToken cancellationToken = null);SetBadgeLabelAsync
Section titled “SetBadgeLabelAsync”public Task SetBadgeLabelAsync(string value, CancellationToken cancellationToken = null);SetClosableAsync
Section titled “SetClosableAsync”public Task SetClosableAsync(bool value, CancellationToken cancellationToken = null);SetContentProtectedAsync
Section titled “SetContentProtectedAsync”public Task SetContentProtectedAsync(bool value, CancellationToken cancellationToken = null);SetCursorGrabAsync
Section titled “SetCursorGrabAsync”public Task SetCursorGrabAsync(bool value, CancellationToken cancellationToken = null);SetCursorIconAsync
Section titled “SetCursorIconAsync”public Task SetCursorIconAsync(CursorIcon icon, CancellationToken cancellationToken = null);SetCursorPositionAsync
Section titled “SetCursorPositionAsync”public Task SetCursorPositionAsync(IDpiPosition position, CancellationToken cancellationToken = null);SetCursorVisibleAsync
Section titled “SetCursorVisibleAsync”public Task SetCursorVisibleAsync(bool value, CancellationToken cancellationToken = null);SetDecorationsAsync
Section titled “SetDecorationsAsync”public Task SetDecorationsAsync(bool value, CancellationToken cancellationToken = null);SetEffectsAsync
Section titled “SetEffectsAsync”public Task SetEffectsAsync(Effects effects, CancellationToken cancellationToken = null);SetEnabledAsync
Section titled “SetEnabledAsync”public Task SetEnabledAsync(bool value, CancellationToken cancellationToken = null);SetFocusAsync
Section titled “SetFocusAsync”public Task SetFocusAsync(CancellationToken cancellationToken = null);SetFocusableAsync
Section titled “SetFocusableAsync”public Task SetFocusableAsync(bool value, CancellationToken cancellationToken = null);SetFullscreenAsync
Section titled “SetFullscreenAsync”public Task SetFullscreenAsync(bool value, CancellationToken cancellationToken = null);SetIconAsync
Section titled “SetIconAsync”public Task SetIconAsync(Image icon, CancellationToken cancellationToken = null);public Task SetIconAsync(string path, CancellationToken cancellationToken = null);public Task SetIconAsync(ReadOnlyMemory<byte> bytes, CancellationToken cancellationToken = null);SetIgnoreCursorEventsAsync
Section titled “SetIgnoreCursorEventsAsync”public Task SetIgnoreCursorEventsAsync(bool value, CancellationToken cancellationToken = null);SetMaxSizeAsync
Section titled “SetMaxSizeAsync”public Task SetMaxSizeAsync(IDpiSize size, CancellationToken cancellationToken = null);SetMaximizableAsync
Section titled “SetMaximizableAsync”public Task SetMaximizableAsync(bool value, CancellationToken cancellationToken = null);SetMinSizeAsync
Section titled “SetMinSizeAsync”public Task SetMinSizeAsync(IDpiSize size, CancellationToken cancellationToken = null);SetMinimizableAsync
Section titled “SetMinimizableAsync”public Task SetMinimizableAsync(bool value, CancellationToken cancellationToken = null);SetOverlayIconAsync
Section titled “SetOverlayIconAsync”public Task SetOverlayIconAsync(Image icon = null, CancellationToken cancellationToken = null);public Task SetOverlayIconAsync(string path, CancellationToken cancellationToken = null);public Task SetOverlayIconAsync(ReadOnlyMemory<byte> bytes, CancellationToken cancellationToken = null);SetPositionAsync
Section titled “SetPositionAsync”public Task SetPositionAsync(IDpiPosition position, CancellationToken cancellationToken = null);SetProgressBarAsync
Section titled “SetProgressBarAsync”public Task SetProgressBarAsync(ProgressBarState state, CancellationToken cancellationToken = null);SetResizableAsync
Section titled “SetResizableAsync”public Task SetResizableAsync(bool value, CancellationToken cancellationToken = null);SetShadowAsync
Section titled “SetShadowAsync”public Task SetShadowAsync(bool value, CancellationToken cancellationToken = null);SetSimpleFullscreenAsync
Section titled “SetSimpleFullscreenAsync”public Task SetSimpleFullscreenAsync(bool value, CancellationToken cancellationToken = null);SetSizeAsync
Section titled “SetSizeAsync”public Task SetSizeAsync(IDpiSize size, CancellationToken cancellationToken = null);SetSizeConstraintsAsync
Section titled “SetSizeConstraintsAsync”public Task SetSizeConstraintsAsync(WindowSizeConstraints constraints, CancellationToken cancellationToken = null);SetSkipTaskbarAsync
Section titled “SetSkipTaskbarAsync”public Task SetSkipTaskbarAsync(bool value, CancellationToken cancellationToken = null);SetThemeAsync
Section titled “SetThemeAsync”public Task SetThemeAsync(Theme? theme, CancellationToken cancellationToken = null);SetTitleAsync
Section titled “SetTitleAsync”public Task SetTitleAsync(string title, CancellationToken cancellationToken = null);SetTitleBarStyleAsync
Section titled “SetTitleBarStyleAsync”public Task SetTitleBarStyleAsync(TitleBarStyle style, CancellationToken cancellationToken = null);SetVisibleOnAllWorkspacesAsync
Section titled “SetVisibleOnAllWorkspacesAsync”public Task SetVisibleOnAllWorkspacesAsync(bool value, CancellationToken cancellationToken = null);ShowAsync
Section titled “ShowAsync”public Task ShowAsync(CancellationToken cancellationToken = null);StartDraggingAsync
Section titled “StartDraggingAsync”public Task StartDraggingAsync(CancellationToken cancellationToken = null);StartResizeDraggingAsync
Section titled “StartResizeDraggingAsync”public Task StartResizeDraggingAsync(ResizeDirection direction, CancellationToken cancellationToken = null);ThemeAsync
Section titled “ThemeAsync”public Task<Theme?> ThemeAsync(CancellationToken cancellationToken = null);TitleAsync
Section titled “TitleAsync”public Task<string> TitleAsync(CancellationToken cancellationToken = null);ToggleMaximizeAsync
Section titled “ToggleMaximizeAsync”public Task ToggleMaximizeAsync(CancellationToken cancellationToken = null);Unlisten
Section titled “Unlisten”public void Unlisten(long id);UnmaximizeAsync
Section titled “UnmaximizeAsync”public Task UnmaximizeAsync(CancellationToken cancellationToken = null);UnminimizeAsync
Section titled “UnminimizeAsync”public Task UnminimizeAsync(CancellationToken cancellationToken = null);