diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/m_fontservice.h | 12 | ||||
-rw-r--r-- | include/newpluginapi.h | 9 |
2 files changed, 15 insertions, 6 deletions
diff --git a/include/m_fontservice.h b/include/m_fontservice.h index 4f6f0f264d..7910be2ba7 100644 --- a/include/m_fontservice.h +++ b/include/m_fontservice.h @@ -97,8 +97,8 @@ struct FontIDW };
// register a font
-EXTERN_C MIR_APP_DLL(int) Font_Register(FontID *pFont, int = hLangpack);
-EXTERN_C MIR_APP_DLL(int) Font_RegisterW(FontIDW *pFont, int = hLangpack);
+EXTERN_C MIR_APP_DLL(int) Font_Register(FontID *pFont, int langId);
+EXTERN_C MIR_APP_DLL(int) Font_RegisterW(FontIDW *pFont, int langId);
// get a font
// will fill the logfont structure passed in with the user's choices, or the default if it was set and the user has not chosen a font yet,
@@ -161,8 +161,8 @@ struct ColourIDW // [note - a colour with name 'Background' [translated!] has special meaning and will be used as the background colour of
// the font list box in the options, for the given group]
-EXTERN_C MIR_APP_DLL(int) Colour_Register(ColourID *pFont, int = hLangpack);
-EXTERN_C MIR_APP_DLL(int) Colour_RegisterW(ColourIDW *pFont, int = hLangpack);
+EXTERN_C MIR_APP_DLL(int) Colour_Register(ColourID *pFont, int langId);
+EXTERN_C MIR_APP_DLL(int) Colour_RegisterW(ColourIDW *pFont, int langId);
// get a colour
EXTERN_C MIR_APP_DLL(COLORREF) Colour_Get(const char *szGroup, const char *szName);
@@ -221,8 +221,8 @@ struct EffectIDW // wparam = (EffectID *)&effect_id
// lparam = 0
-EXTERN_C MIR_APP_DLL(int) Effect_Register(EffectID *pEffect, int = hLangpack);
-EXTERN_C MIR_APP_DLL(int) Effect_RegisterW(EffectIDW *pEffect, int = hLangpack);
+EXTERN_C MIR_APP_DLL(int) Effect_Register(EffectID *pEffect, int langId);
+EXTERN_C MIR_APP_DLL(int) Effect_RegisterW(EffectIDW *pEffect, int langId);
// get a effect
// wparam = (EffectID *)&effect_id (only name and group matter)
diff --git a/include/newpluginapi.h b/include/newpluginapi.h index 280f34eacf..50ce94b720 100644 --- a/include/newpluginapi.h +++ b/include/newpluginapi.h @@ -205,6 +205,15 @@ public: HGENMENU addRootMenu(int hMenuObject, LPCWSTR ptszName, int position, HANDLE hIcoLib = nullptr);
+ int addFont(struct FontID *pFont);
+ int addFont(struct FontIDW *pFont);
+
+ int addColor(struct ColourID *pColor);
+ int addColor(struct ColourIDW *pColor);
+
+ int addEffect(struct EffectID *pEffect);
+ int addEffect(struct EffectIDW *pEffect);
+
int addHotkey(const struct HOTKEYDESC*);
int addSound(const char *name, const wchar_t *section, const wchar_t *description, const wchar_t *defaultFile = nullptr);
int addUserInfo(WPARAM wParam, struct OPTIONSDIALOGPAGE *odp);
|