aboutsummaryrefslogtreecommitdiff
path: root/Src/external_dependencies/openmpt-trunk/mptrack/PatternFont.h
diff options
context:
space:
mode:
authorJean-Francois Mauguit <jfmauguit@mac.com>2024-09-24 09:03:25 -0400
committerGitHub <noreply@github.com>2024-09-24 09:03:25 -0400
commitbab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/external_dependencies/openmpt-trunk/mptrack/PatternFont.h
parent4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff)
parent20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff)
downloadwinamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/external_dependencies/openmpt-trunk/mptrack/PatternFont.h')
-rw-r--r--Src/external_dependencies/openmpt-trunk/mptrack/PatternFont.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/Src/external_dependencies/openmpt-trunk/mptrack/PatternFont.h b/Src/external_dependencies/openmpt-trunk/mptrack/PatternFont.h
new file mode 100644
index 00000000..0dce0d31
--- /dev/null
+++ b/Src/external_dependencies/openmpt-trunk/mptrack/PatternFont.h
@@ -0,0 +1,56 @@
+/*
+ * PatternFont.h
+ * -------------
+ * Purpose: Code for creating pattern font bitmaps
+ * Notes : (currently none)
+ * Authors: OpenMPT Devs
+ * The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
+ */
+
+
+#pragma once
+
+#include "openmpt/all/BuildSettings.hpp"
+
+OPENMPT_NAMESPACE_BEGIN
+
+struct MODPLUGDIB;
+
+struct PATTERNFONT
+{
+ MODPLUGDIB *dib;
+ MODPLUGDIB *dibASCII; // optional
+ int nWidth, nHeight; // Column Width & Height, including 4-pixels border
+ int nClrX, nClrY; // Clear (empty note) location
+ int nSpaceX, nSpaceY; // White location (must be big enough)
+ UINT nEltWidths[5]; // Elements Sizes
+ UINT padding[5]; // Padding pixels contained in element width
+ int nNumX, nNumY; // Vertically-oriented numbers 0x00-0x0F
+ int nNum10X, nNum10Y; // Numbers 10-29
+ int nAlphaAM_X,nAlphaAM_Y; // Letters A-M +#
+ int nAlphaNZ_X,nAlphaNZ_Y; // Letters N-Z +?
+ int nNoteX, nNoteY; // Notes ..., C-, C#, ...
+ int nNoteWidth[2]; // Total width of note (C#)
+ int nOctaveWidth; // Octave Width
+ int nVolX, nVolY; // Volume Column Effects
+ int nVolCmdWidth; // Width of volume effect
+ int nVolHiWidth; // Width of first character in volume parameter
+ int nCmdOfs; // XOffset (-xxx) around the command letter
+ int nParamHiWidth;
+ int nInstrOfs, nInstr10Ofs, nInstrHiWidth;
+ int pcParamMargin; // Margin for first digit of PC event parameter number
+ int pcValMargin; // Margin for first digit of PC event parameter value
+ int paramLoMargin; // Margin for second digit of parameter
+ int spacingY; // Vertical spacing between letters in the bitmap
+};
+
+class PatternFont
+{
+public:
+ static const PATTERNFONT *currentFont;
+
+ static void UpdateFont(HWND hwnd);
+ static void DeleteFontData();
+};
+
+OPENMPT_NAMESPACE_END \ No newline at end of file