Class SettingsService
Inheritance
SettingsService
Assembly: PopcorningGuineaPig.Engine.dll
Syntax
public class SettingsService : ISettingsService
Fields
|
Edit this page
View Source
CommonResolutions
Common window sizes. A row is offered only when it fits the monitor.
Declaration
public static readonly (int Width, int Height)[] CommonResolutions
Field Value
Methods
|
Edit this page
View Source
ApplyDisplayMode(DisplayMode)
Declaration
protected virtual void ApplyDisplayMode(DisplayMode mode)
Parameters
|
Edit this page
View Source
ApplyGraphicsSettings(ISettings)
Declaration
protected virtual void ApplyGraphicsSettings(ISettings settings)
Parameters
|
Edit this page
View Source
ApplyResolution(int, int, Game)
Declaration
protected virtual void ApplyResolution(int width, int height, Game game)
Parameters
| Type |
Name |
Description |
| int |
width |
|
| int |
height |
|
| Game |
game |
|
|
Edit this page
View Source
ApplySettings(ISettings, Game)
Declaration
public virtual void ApplySettings(ISettings settings, Game game)
Parameters
|
Edit this page
View Source
ApplyVSync(bool)
Declaration
protected virtual void ApplyVSync(bool enableVSync)
Parameters
| Type |
Name |
Description |
| bool |
enableVSync |
|
|
Edit this page
View Source
GetAvailableMonitors()
Declaration
public List<string> GetAvailableMonitors()
Returns
|
Edit this page
View Source
GetResolutionsByAspectRatio(int)
Declaration
public Dictionary<string, List<Resolution>> GetResolutionsByAspectRatio(int monitorIndex = 0)
Parameters
| Type |
Name |
Description |
| int |
monitorIndex |
|
Returns
|
Edit this page
View Source
GetSupportedResolutions(int)
Declaration
public List<Resolution> GetSupportedResolutions(int monitorIndex = 0)
Parameters
| Type |
Name |
Description |
| int |
monitorIndex |
|
Returns
|
Edit this page
View Source
LoadSettings(string)
Declaration
public ISettings LoadSettings(string filePath)
Parameters
| Type |
Name |
Description |
| string |
filePath |
|
Returns
|
Edit this page
View Source
MonitorSize(IReadOnlyList<(int Width, int Height)>, int)
Width and height stay a pair. A reading below 1024×720 is the window,
not the panel, and becomes 1920×1080 for that monitor only.
Declaration
public static (int Width, int Height) MonitorSize(IReadOnlyList<(int Width, int Height)> monitors, int monitorIndex)
Parameters
Returns
|
Edit this page
View Source
ResolutionsFor(IReadOnlyList<(int Width, int Height)>, int)
Sizes the selected monitor can show. Never the widest width paired
with a different monitor's height.
Declaration
public static List<Resolution> ResolutionsFor(IReadOnlyList<(int Width, int Height)> monitors, int monitorIndex)
Parameters
Returns
|
Edit this page
View Source
SaveSettings(string, ISettings)
Declaration
public void SaveSettings(string filePath, ISettings settings)
Parameters
Implements