mirror of
https://github.com/4sval/FModel.git
synced 2026-09-19 15:04:28 -05:00
switch to ImTool
This commit is contained in:
16
FModel/Framework/ImGuiFontConfig.cs
Normal file
16
FModel/Framework/ImGuiFontConfig.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
|
||||
namespace FModel.Framework;
|
||||
|
||||
public readonly struct ImGuiFontConfig
|
||||
{
|
||||
public ImGuiFontConfig(string fontPath, int fontSize)
|
||||
{
|
||||
if (fontSize <= 0) throw new ArgumentOutOfRangeException(nameof(fontSize));
|
||||
FontPath = fontPath ?? throw new ArgumentNullException(nameof(fontPath));
|
||||
FontSize = fontSize;
|
||||
}
|
||||
|
||||
public string FontPath { get; }
|
||||
public int FontSize { get; }
|
||||
}
|
||||
Reference in New Issue
Block a user