Created
December 14, 2012 23:45
-
-
Save sbaer/4289649 to your computer and use it in GitHub Desktop.
C functions for ui test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "StdAfx.h" | |
// for Marlin UI Test | |
class CMarlinUiClass | |
{ | |
}; | |
typedef int (CALLBACK* GETBOOLVALUEPROC)(CMarlinUiClass* pClass, const RHMONO_STRING* name); | |
typedef void (CALLBACK* SETBOOLVALUEPROC)(CMarlinUiClass* pClass, const RHMONO_STRING* name, int value); | |
static GETBOOLVALUEPROC g_GetBoolProc = 0; | |
static SETBOOLVALUEPROC g_SetBoolProc = 0; | |
RH_C_FUNCTION CMarlinUiClass* RUI_CreateMarlinUi(const RHMONO_STRING* nib) | |
{ | |
INPUTSTRINGCOERCE(_nib, nib); | |
CMarlinUiClass* pClass = new CMarlinUiClass(); | |
return pClass; | |
} | |
RH_C_FUNCTION void RUI_RegisterBoolCallbacks(GETBOOLVALUEPROC getFunc, SETBOOLVALUEPROC setFunc) | |
{ | |
g_GetBoolProc = getFunc; | |
g_SetBoolProc = setFunc; | |
} | |
RH_C_FUNCTION void RUI_ValueChanged(CMarlinUiClass* pClass, const RHMONO_STRING* name) | |
{ | |
INPUTSTRINGCOERCE(_name, name); | |
} | |
RH_C_FUNCTION void RUI_ShowModalWindow(CMarlinUiClass* pClass) | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment