RunicWindowPresentationFeatures enum

Namespace Runic.Application.Views in Runic.Application.Views 0.23.0

public enum RunicWindowPresentationFeatures

What a Window's host can do through IRunicWindowPresentation.

Remarks

Open: a later minor release can add values, so test for the flags you use.

Values

None

None = 0

Nothing: the Window has not opened, has closed, or its host presents no native window.

Present

Present = 1

IRunicWindowPresentation.PresentAsync brings the Window to the front.

Minimize

Minimize = 2

Visibility

Visibility = 4

IRunicWindowPresentation.SetVisibleAsync hides and shows the Window.

FullScreen

FullScreen = 8

IRunicWindowPresentation.SetFullScreenAsync enters and leaves full screen.

DocumentEdited

DocumentEdited = 16

IRunicWindowPresentation.SetDocumentEditedAsync shows unsaved changes in the window's frame.

ColorScheme

ColorScheme = 32

IRunicWindowPresentation.SetColorSchemeAsync switches the Window between light and dark.

Activity

Activity = 64

IRunicWindowPresentation.Activity follows the window. Without it the Window counts as active and visible (RunicWindowActivity.Assumed).

PerWindowColorScheme

PerWindowColorScheme = 128

IRunicWindowPresentation.SetColorSchemeAsync changes this Window only. Without it, but with RunicWindowPresentationFeatures.ColorScheme, the scheme belongs to more than this Window and a call changes all of them: on Linux every GTK window of the application, on Windows every window that shares the WebView2 profile (DesktopWindowOptions.ProfilePath).

OwnedWindows

OwnedWindows = 256

A Window opened with this Window as its RunicWindowOptions.Owner belongs to it, and can be window-modal to it (RunicWindowOptions.Modality). Without it, such a Window opens on its own.

SidePanel

SidePanel = 512

IRunicWindowPresentation.OpenSidePanelAsync can open a side panel: the host has one, though the Window's state can still refuse it.

Maximize

Maximize = 1024

IRunicWindowPresentation.MaximizeAsync maximizes the Window and IRunicWindowPresentation.RestoreAsync returns it to its normal bounds.

Placement

Placement = 2048