Popcorning Guinea Pig
Search Results for

    Show / Hide Table of Contents

    Class SettingsService

    Inheritance
    object
    SettingsService
    Implements
    ISettingsService
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: PopcorningGuineaPig.Engine.Services
    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
    Type Description
    (int Width, int Height)[]

    Methods

    | Edit this page View Source

    ApplyDisplayMode(DisplayMode)

    Declaration
    protected virtual void ApplyDisplayMode(DisplayMode mode)
    Parameters
    Type Name Description
    DisplayMode mode
    | Edit this page View Source

    ApplyGraphicsSettings(ISettings)

    Declaration
    protected virtual void ApplyGraphicsSettings(ISettings settings)
    Parameters
    Type Name Description
    ISettings settings
    | 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
    Type Name Description
    ISettings settings
    Game game
    | 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
    Type Description
    List<string>
    | Edit this page View Source

    GetResolutionsByAspectRatio(int)

    Declaration
    public Dictionary<string, List<Resolution>> GetResolutionsByAspectRatio(int monitorIndex = 0)
    Parameters
    Type Name Description
    int monitorIndex
    Returns
    Type Description
    Dictionary<string, List<Resolution>>
    | Edit this page View Source

    GetSupportedResolutions(int)

    Declaration
    public List<Resolution> GetSupportedResolutions(int monitorIndex = 0)
    Parameters
    Type Name Description
    int monitorIndex
    Returns
    Type Description
    List<Resolution>
    | Edit this page View Source

    LoadSettings(string)

    Declaration
    public ISettings LoadSettings(string filePath)
    Parameters
    Type Name Description
    string filePath
    Returns
    Type Description
    ISettings
    | 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
    Type Name Description
    IReadOnlyList<(int Width, int Height)> monitors
    int monitorIndex
    Returns
    Type Description
    (int Width, int Height)
    | 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
    Type Name Description
    IReadOnlyList<(int Width, int Height)> monitors
    int monitorIndex
    Returns
    Type Description
    List<Resolution>
    | Edit this page View Source

    SaveSettings(string, ISettings)

    Declaration
    public void SaveSettings(string filePath, ISettings settings)
    Parameters
    Type Name Description
    string filePath
    ISettings settings

    Implements

    ISettingsService
    • Edit this page
    • View Source
    In this article
    Back to top © 2024 Popcorning Guinea Pig Game Engine. A custom C# game engine for indie developers.