summaryrefslogtreecommitdiff
path: root/font_service/services.h
diff options
context:
space:
mode:
Diffstat (limited to 'font_service/services.h')
-rw-r--r--font_service/services.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/font_service/services.h b/font_service/services.h
new file mode 100644
index 0000000..dbafe16
--- /dev/null
+++ b/font_service/services.h
@@ -0,0 +1,46 @@
+#ifndef SERVICES_INC
+#define SERVICES_INC
+
+#include "m_fontservice.h"
+
+#include "collection.h"
+
+int RegisterFont(WPARAM wParam, LPARAM lParam);
+int GetFont(WPARAM wParam, LPARAM lParam);
+
+int RegisterColour(WPARAM wParam, LPARAM lParam);
+int GetColour(WPARAM wParam, LPARAM lParam);
+
+typedef Pair<FontID, FontSettings> FontIDSettingsPair;
+typedef Pair<ColourID, COLORREF> ColourIDColourPair;
+
+#include "m_fontservicew.h"
+
+typedef Pair<FontIDW, FontSettingsW> FontIDSettingsWPair;
+typedef Pair<ColourIDW, COLORREF> ColourIDColourWPair;
+
+typedef SortedDynamicArray< FontIDSettingsWPair > FontIDWList;
+typedef SortedDynamicArray< ColourIDColourWPair > ColourIDWList;
+
+bool operator <(const FontIDW &id1, const FontIDW &id2);
+bool operator <(const ColourIDW &id1, const ColourIDW &id2);
+bool operator ==(const FontIDW &id1, const FontIDW &id2);
+bool operator ==(const ColourIDW &id1, const ColourIDW &id2);
+
+//bool operator <(const FontIDSettingsWPair &id1, const FontIDSettingsWPair &id2);
+//bool operator <(const ColourIDColourWPair &id1, const ColourIDColourWPair &id2);
+
+extern FontIDWList font_id_list_w;
+extern ColourIDWList colour_id_list_w;
+
+int CreateFromFontSettingsW(FontSettingsW *fs, LOGFONTW *lf, DWORD flags);
+
+int RegisterFontW(WPARAM wParam, LPARAM lParam);
+int GetFontW(WPARAM wParam, LPARAM lParam);
+
+int RegisterColourW(WPARAM wParam, LPARAM lParam);
+int GetColourW(WPARAM wParam, LPARAM lParam);
+
+extern int code_page;
+
+#endif