C# Класс Artemis.Engine.DisplayManager

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
SetBackgroundColour ( Color colour ) : void
SetBorderless ( bool state ) : void

Set whether or not the window form has a border.

SetFullscreen ( bool state ) : void

Set whether or not the display is fullscreen.

SetMouseVisibility ( bool state ) : void

Set whether or not the mouse is visible.

SetResolution ( Resolution resolution ) : void
SetVSync ( bool state ) : void

Set whether or not vertical synchronization is used.

SetWindowTitle ( string name ) : void

Set the name of the window.

ToggleBorderless ( ) : void

Toggle whether or not the window form has a border.

ToggleFullscreen ( ) : void

Toggle whether or not the display is fullscreen.

ToggleMouseVisibility ( ) : void

Toggle whether or not the mouse is visible.

ToggleVSync ( ) : void

Toggle whether or not vertical synchronization is used.

Приватные методы

Метод Описание
DisplayManager ( GameKernel game, Artemis.Engine.RenderPipeline renderPipeline, Resolution baseResolution, string windowTitle, Color bgColor ) : System
RegisterResolutionChangeListener ( ResolutionRelativeObject obj ) : void
ReinitDisplayProperties ( bool overrideDirty = false ) : void

Initialize (or reinitialize) the properties of the screen form.

RemoveResolutionChangeListener ( ResolutionRelativeObject obj ) : void
UntogglableException ( string property, string element ) : DisplayManagerException

Описание методов

SetBackgroundColour() публичный Метод

public SetBackgroundColour ( Color colour ) : void
colour Color
Результат void

SetBorderless() публичный Метод

Set whether or not the window form has a border.
public SetBorderless ( bool state ) : void
state bool
Результат void

SetFullscreen() публичный Метод

Set whether or not the display is fullscreen.
public SetFullscreen ( bool state ) : void
state bool
Результат void

SetMouseVisibility() публичный Метод

Set whether or not the mouse is visible.
public SetMouseVisibility ( bool state ) : void
state bool
Результат void

SetResolution() публичный Метод

public SetResolution ( Resolution resolution ) : void
resolution Resolution
Результат void

SetVSync() публичный Метод

Set whether or not vertical synchronization is used.
public SetVSync ( bool state ) : void
state bool
Результат void

SetWindowTitle() публичный Метод

Set the name of the window.
public SetWindowTitle ( string name ) : void
name string
Результат void

ToggleBorderless() публичный Метод

Toggle whether or not the window form has a border.
public ToggleBorderless ( ) : void
Результат void

ToggleFullscreen() публичный Метод

Toggle whether or not the display is fullscreen.
public ToggleFullscreen ( ) : void
Результат void

ToggleMouseVisibility() публичный Метод

Toggle whether or not the mouse is visible.
public ToggleMouseVisibility ( ) : void
Результат void

ToggleVSync() публичный Метод

Toggle whether or not vertical synchronization is used.
public ToggleVSync ( ) : void
Результат void