Show / Hide Table of Contents

Class ConfigurationImGui

Extensions to enable ImGui with SadConsole.

Inheritance
object
ConfigurationImGui
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadConsole.Configuration
Assembly: SadConsole.Debug.MonoGame.dll
Syntax
public static class ConfigurationImGui

Methods

EnableImGui(Builder, string, float, bool, Action<ImGuiMonoGameComponent>)

Adds the ImGui MonoGame component to MonoGame.

Declaration
public static Builder EnableImGui(this Builder builder, string fontFile = "Roboto-Regular.ttf", float fontSize = 16, bool enableDocking = false, Action<ImGuiMonoGameComponent> startupAction = null)
Parameters
Type Name Description
Builder builder

The config builder.

string fontFile

The font file to use with ImGui. Defaults to 'Roboto-Regular.ttf'.

float fontSize

The font size to use with ImGui. Defaults to 16.

bool enableDocking

Enables the docking feature of ImGui. Defaults to false.

Action<ImGuiMonoGameComponent> startupAction

A callback to add objects to the ImGui MonoGame component.

Returns
Type Description
Builder

The config builder.

In this article

Back to top

Back to top Generated by DocFX