本文整理汇总了C++中EXCEPTION_CONVERT函数的典型用法代码示例。如果您正苦于以下问题:C++ EXCEPTION_CONVERT函数的具体用法?C++ EXCEPTION_CONVERT怎么用?C++ EXCEPTION_CONVERT使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了EXCEPTION_CONVERT函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: Java_com_scriptographer_ai_Tracing_setThreshold
/*
* void setThreshold(int threshold)
*/
JNIEXPORT void JNICALL Java_com_scriptographer_ai_Tracing_setThreshold(JNIEnv *env, jobject obj, jint threshold) {
try {
#if kPluginInterfaceVersion >= kAI12
TRACING_SET_OPTION(kTracingThresholdKey, Integer, threshold);
#else
TRACING_EXCEPTION
#endif
} EXCEPTION_CONVERT(env);
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:12,代码来源:com_scriptographer_ai_Tracing.cpp
示例2: Java_com_scriptographer_ai_Tracing_nativeSetRasterDisplay
/*
* void nativeSetRasterDisplay(int display)
*/
JNIEXPORT void JNICALL Java_com_scriptographer_ai_Tracing_nativeSetRasterDisplay(JNIEnv *env, jobject obj, jint display) {
try {
#if kPluginInterfaceVersion >= kAI12
TRACING_SET_OPTION(kTracingVisualizeRasterKey, Integer, display);
#else
TRACING_EXCEPTION
#endif
} EXCEPTION_CONVERT(env);
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:12,代码来源:com_scriptographer_ai_Tracing.cpp
示例3: Java_com_scriptographer_ai_Tracing_setResampleResolution
/*
* void setResampleResolution(float resolution)
*/
JNIEXPORT void JNICALL Java_com_scriptographer_ai_Tracing_setResampleResolution(JNIEnv *env, jobject obj, jfloat resolution) {
try {
#if kPluginInterfaceVersion >= kAI12
TRACING_SET_OPTION(kTracingResampleResolutionKey, Real, resolution);
#else
TRACING_EXCEPTION
#endif
} EXCEPTION_CONVERT(env);
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:12,代码来源:com_scriptographer_ai_Tracing.cpp
示例4: Java_com_scriptographer_ai_Tracing_nativeSetMode
/*
* void nativeSetMode(int mode)
*/
JNIEXPORT void JNICALL Java_com_scriptographer_ai_Tracing_nativeSetMode(JNIEnv *env, jobject obj, jint mode) {
try {
#if kPluginInterfaceVersion >= kAI12
TRACING_SET_OPTION(kTracingModeKey, Integer, mode);
#else
TRACING_EXCEPTION
#endif
} EXCEPTION_CONVERT(env);
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:12,代码来源:com_scriptographer_ai_Tracing.cpp
示例5: Java_com_scriptographer_ai_Gradient_nativeGetType
/*
* int nativeGetType()
*/
JNIEXPORT jint JNICALL Java_com_scriptographer_ai_Gradient_nativeGetType(JNIEnv *env, jobject obj) {
try {
AIGradientHandle gradient = gEngine->getGradientHandle(env, obj);
short type = 0;
sAIGradient->GetGradientType(gradient, &type);
return type;
} EXCEPTION_CONVERT(env);
return 0;
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:12,代码来源:com_scriptographer_ai_Gradient.cpp
示例6: Java_com_scriptographer_ai_Tracing_setMinStrokeLength
/*
* void setMinStrokeLength(float minLength)
*/
JNIEXPORT void JNICALL Java_com_scriptographer_ai_Tracing_setMinStrokeLength(JNIEnv *env, jobject obj, jfloat minLength) {
try {
#if kPluginInterfaceVersion >= kAI12
TRACING_SET_OPTION(kTracingMinStrokeLengthKey, Real, minLength);
#else
TRACING_EXCEPTION
#endif
} EXCEPTION_CONVERT(env);
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:12,代码来源:com_scriptographer_ai_Tracing.cpp
示例7: Java_com_scriptographer_ui_MenuItem_getOptions
/*
* int getOptions()
*/
JNIEXPORT jint JNICALL Java_com_scriptographer_ui_MenuItem_getOptions(JNIEnv *env, jobject obj) {
try {
AIMenuItemHandle item = gEngine->getMenuItemHandle(env, obj);
long options = 0;
sAIMenu->GetMenuItemOptions(item, &options);
return options;
} EXCEPTION_CONVERT(env);
return 0;
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:12,代码来源:com_scriptographer_ui_MenuItem.cpp
示例8: Java_com_scriptographer_ui_MenuItem_isChecked
/*
* boolean isChecked()
*/
JNIEXPORT jboolean JNICALL Java_com_scriptographer_ui_MenuItem_isChecked(JNIEnv *env, jobject obj) {
try {
AIMenuItemHandle item = gEngine->getMenuItemHandle(env, obj);
ASBoolean checked = false;
sAIMenu->IsItemChecked(item, &checked);
return checked;
} EXCEPTION_CONVERT(env);
return false;
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:12,代码来源:com_scriptographer_ui_MenuItem.cpp
示例9: Java_com_scriptographer_ai_Dictionary_nativeCreate
/*
* int nativeCreate()
*/
JNIEXPORT jint JNICALL Java_com_scriptographer_ai_Dictionary_nativeCreate(
JNIEnv *env, jclass obj) {
try {
AIDictionaryRef dictionary = NULL;
sAIDictionary->CreateDictionary(&dictionary);
return (jint) dictionary;
} EXCEPTION_CONVERT(env);
return 0;
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:12,代码来源:com_scriptographer_ai_Dictionary.cpp
示例10: Java_com_scriptographer_ai_Tracing_setLivePaint
/*
* void setLivePaint(boolean livePaint)
*/
JNIEXPORT void JNICALL Java_com_scriptographer_ai_Tracing_setLivePaint(JNIEnv *env, jobject obj, jboolean livePaint) {
try {
#if kPluginInterfaceVersion >= kAI12
TRACING_SET_OPTION(kTracingLivePaintKey, Boolean, livePaint);
#else
TRACING_EXCEPTION
#endif
} EXCEPTION_CONVERT(env);
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:12,代码来源:com_scriptographer_ai_Tracing.cpp
示例11: Java_com_scriptographer_ai_PointText_getPoint
/*
* com.scriptographer.ai.Point getPoint()
*/
JNIEXPORT jobject JNICALL Java_com_scriptographer_ai_PointText_getPoint(JNIEnv *env, jobject obj) {
try {
AIArtHandle text = gEngine->getArtHandle(env, obj);
AIRealPoint anchor;
if (!sAITextFrame->GetPointTextAnchor(text, &anchor))
return gEngine->convertPoint(env, kArtboardCoordinates, &anchor);
} EXCEPTION_CONVERT(env);
return NULL;
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:12,代码来源:com_scriptographer_ai_PointText.cpp
示例12: Java_com_scriptographer_ai_Tracing_setMinArea
/*
* void setMinArea(int minArea)
*/
JNIEXPORT void JNICALL Java_com_scriptographer_ai_Tracing_setMinArea(JNIEnv *env, jobject obj, jint minArea) {
try {
#if kPluginInterfaceVersion >= kAI12
TRACING_SET_OPTION(kTracingMinimumAreaKey, Integer, minArea);
#else
TRACING_EXCEPTION
#endif
} EXCEPTION_CONVERT(env);
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:12,代码来源:com_scriptographer_ai_Tracing.cpp
示例13: Java_com_scriptographer_ai_Tracing_setCornerAngle
/*
* void setCornerAngle(float angle)
*/
JNIEXPORT void JNICALL Java_com_scriptographer_ai_Tracing_setCornerAngle(JNIEnv *env, jobject obj, jfloat angle) {
try {
#if kPluginInterfaceVersion >= kAI12
TRACING_SET_OPTION(kTracingCornerAngleKey, Real, angle);
#else
TRACING_EXCEPTION
#endif
} EXCEPTION_CONVERT(env);
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:12,代码来源:com_scriptographer_ai_Tracing.cpp
示例14: Java_com_scriptographer_ai_Tracing_setPathTightness
/*
* void setPathTightness(float tightness)
*/
JNIEXPORT void JNICALL Java_com_scriptographer_ai_Tracing_setPathTightness(JNIEnv *env, jobject obj, jfloat tightness) {
try {
#if kPluginInterfaceVersion >= kAI12
TRACING_SET_OPTION(kTracingPathTightnessKey, Real, tightness);
#else
TRACING_EXCEPTION
#endif
} EXCEPTION_CONVERT(env);
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:12,代码来源:com_scriptographer_ai_Tracing.cpp
示例15: Java_com_scriptographer_ai_Tracing_update
/*
* void update()
*/
JNIEXPORT void JNICALL Java_com_scriptographer_ai_Tracing_update(JNIEnv *env, jobject obj) {
try {
#if kPluginInterfaceVersion >= kAI12
AIArtHandle art = gEngine->getArtHandle(env, obj, true);
sAITracing->Update(art);
#else
TRACING_EXCEPTION
#endif
} EXCEPTION_CONVERT(env);
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:13,代码来源:com_scriptographer_ai_Tracing.cpp
示例16: Java_com_scriptographer_ai_Gradient_nativeCreate
/*
* int nativeCreate()
*/
JNIEXPORT jint JNICALL Java_com_scriptographer_ai_Gradient_nativeCreate(JNIEnv *env, jclass cls) {
try {
// Make sure we're switching to the right doc (gCreationDoc)
Document_activate();
AIGradientHandle gradient = NULL;
sAIGradient->NewGradient(&gradient);
return (jint) gradient;
} EXCEPTION_CONVERT(env);
return 0;
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:13,代码来源:com_scriptographer_ai_Gradient.cpp
示例17: Java_com_scriptographer_ui_MenuItem_setEnabled
/*
* void setEnabled(boolean enabled)
*/
JNIEXPORT void JNICALL Java_com_scriptographer_ui_MenuItem_setEnabled(JNIEnv *env, jobject obj, jboolean enabled) {
try {
AIMenuItemHandle item = gEngine->getMenuItemHandle(env, obj);
if (enabled) {
sAIMenu->EnableItem(item);
} else {
sAIMenu->DisableItem(item);
}
} EXCEPTION_CONVERT(env);
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:13,代码来源:com_scriptographer_ui_MenuItem.cpp
示例18: Java_com_scriptographer_ai_Tracing_nativeGetRasterDisplay
/*
* int nativeGetRasterDisplay()
*/
JNIEXPORT jint JNICALL Java_com_scriptographer_ai_Tracing_nativeGetRasterDisplay(JNIEnv *env, jobject obj) {
ASInt32 display = 0;
try {
#if kPluginInterfaceVersion >= kAI12
TRACING_GET_OPTION(kTracingVisualizeRasterKey, Integer, &display);
#else
TRACING_EXCEPTION
#endif
} EXCEPTION_CONVERT(env);
return display;
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:14,代码来源:com_scriptographer_ai_Tracing.cpp
示例19: Java_com_scriptographer_ai_Dictionary_nativeCreateLiveEffectParameters
/*
* int nativeCreateLiveEffectParameters()
*/
JNIEXPORT jint JNICALL Java_com_scriptographer_ai_Dictionary_nativeCreateLiveEffectParameters(
JNIEnv *env, jclass cls) {
try {
AILiveEffectParameters parameters = NULL;
// AI SDK: "The dictionary created by this function supports Undo operations,
// which the generic one does not."
sAILiveEffect->CreateLiveEffectParameters(¶meters);
return (jint) parameters;
} EXCEPTION_CONVERT(env);
return 0;
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:14,代码来源:com_scriptographer_ai_Dictionary.cpp
示例20: Java_com_scriptographer_ai_Tracing_getResample
/*
* boolean getResample()
*/
JNIEXPORT jboolean JNICALL Java_com_scriptographer_ai_Tracing_getResample(JNIEnv *env, jobject obj) {
ASBoolean value = false;
try {
#if kPluginInterfaceVersion >= kAI12
TRACING_GET_OPTION(kTracingResampleKey, Boolean, &value);
#else
TRACING_EXCEPTION
#endif
} EXCEPTION_CONVERT(env);
return value;
}
开发者ID:CVertex,项目名称:scriptographer,代码行数:14,代码来源:com_scriptographer_ai_Tracing.cpp
注:本文中的EXCEPTION_CONVERT函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论