From b30ec9408bb855df9d6750d5f92e2da2149f3e42 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 18 Nov 2021 10:58:50 +0100 Subject: [PATCH] Added Padding.Empty --- CHANGELOG.md | 1 + MLEM/Misc/Padding.cs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c730b02..9037974 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ Improvements - Cache TokenizedString inner offsets for non-Left text alignments to improve performance - Exposed Camera's RoundPosition - Exposed the epsilon value used by Camera +- Added Padding.Empty ### MLEM.Ui Additions diff --git a/MLEM/Misc/Padding.cs b/MLEM/Misc/Padding.cs index 7586f03..3d8a09c 100644 --- a/MLEM/Misc/Padding.cs +++ b/MLEM/Misc/Padding.cs @@ -9,6 +9,11 @@ namespace MLEM.Misc { [DataContract] public struct Padding { + /// + /// The empty padding, with all borders set to 0 + /// + public static Padding Empty => default; + /// /// The amount of padding on the left side ///