C# Class Artemis.Engine.DisplayManager

Datei anzeigen Open project: ArtemisEngine/Artemis-Engine Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
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

Method Details

SetBackgroundColour() public method

public SetBackgroundColour ( Color colour ) : void
colour Color
return void

SetBorderless() public method

Set whether or not the window form has a border.
public SetBorderless ( bool state ) : void
state bool
return void

SetFullscreen() public method

Set whether or not the display is fullscreen.
public SetFullscreen ( bool state ) : void
state bool
return void

SetMouseVisibility() public method

Set whether or not the mouse is visible.
public SetMouseVisibility ( bool state ) : void
state bool
return void

SetResolution() public method

public SetResolution ( Resolution resolution ) : void
resolution Resolution
return void

SetVSync() public method

Set whether or not vertical synchronization is used.
public SetVSync ( bool state ) : void
state bool
return void

SetWindowTitle() public method

Set the name of the window.
public SetWindowTitle ( string name ) : void
name string
return void

ToggleBorderless() public method

Toggle whether or not the window form has a border.
public ToggleBorderless ( ) : void
return void

ToggleFullscreen() public method

Toggle whether or not the display is fullscreen.
public ToggleFullscreen ( ) : void
return void

ToggleMouseVisibility() public method

Toggle whether or not the mouse is visible.
public ToggleMouseVisibility ( ) : void
return void

ToggleVSync() public method

Toggle whether or not vertical synchronization is used.
public ToggleVSync ( ) : void
return void