• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ EXCEPTION_CONVERT函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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(&parameters);
		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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ EXT2_SB函数代码示例发布时间:2022-05-30
下一篇:
C++ EVP_md5函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap