Added to anttweakbar qt mapper a function to copy std::string values
This commit is contained in:
parent
0464c9f822
commit
e2b5b6fba3
|
@ -19,6 +19,10 @@ void TW_CALL CopyCDStringToClient(char **destPtr, const char *src)
|
|||
(*destPtr)[srcLen] = '\0'; // null-terminated string
|
||||
}
|
||||
|
||||
void TW_CALL CopyStdStringToClient(std::string& destClientString, const std::string& srcLibraryString)
|
||||
{
|
||||
destClientString = srcLibraryString;
|
||||
}
|
||||
|
||||
TwMouseButtonID Qt2TwMouseButtonId(QMouseEvent *e)
|
||||
{
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#define ANTTWEAKBARMAPPER_H
|
||||
|
||||
void TW_CALL CopyCDStringToClient(char **destPtr, const char *src);
|
||||
void TW_CALL CopyStdStringToClient(std::string& destClientString, const std::string& srcLibraryString);
|
||||
|
||||
TwMouseButtonID Qt2TwMouseButtonId(QMouseEvent *e);
|
||||
int TwMousePressQt(QMouseEvent *e);
|
||||
|
|
Loading…
Reference in New Issue