📄 cls_zhalei.cpp
字号:
#include "cls_zhalei.h"
#include "c/mycfunctions.h"
void Zhalei_print_hello()
{
myfunc_print_hello();
}
EF_BEGIN_DEFINE_ARG_TABLE(Zhalei, print_str)
EF_ARG(myT("某文本"), myT(""), 0, EF_TEXT),
EF_END_DEFINE_ARG_TABLE
void Zhalei_print_str(EFText text)
{
myfunc_print_str((const wchar_t*)EF_GET_TEXT(text));
}
EF_BEGIN_DEFINE_ARG_TABLE(Zhalei, add_int)
EF_ARG(myT("整数1"), myT(""), 0, EF_INT),
EF_ARG(myT("整数2"), myT(""), 0, EF_INT),
EF_END_DEFINE_ARG_TABLE
EFInt Zhalei_add_int(EFInt n1, EFInt n2)
{
return myfunc_add_int(n1, n2);
}
EF_BEGIN_DEFINE_METHOD_TABLE(Zhalei)
EF_METHOD_NOARG(Zhalei, print_hello, myT("打招呼"), myT(""), myT(""), EF_S_PUBLIC|EF_S_M_STATIC, EF_NULL),
EF_METHOD(Zhalei, print_str, myT("输出文本"), myT(""), myT(""), EF_S_PUBLIC|EF_S_M_STATIC, EF_NULL),
EF_METHOD(Zhalei, add_int, myT("求两数和"), myT(""), myT(""), EF_S_PUBLIC|EF_S_M_STATIC, EF_INT),
EF_END_DEFINE_METHOD_TABLE
EF_DEFINE_CLASS_INFO
(
1.0, // version
Zhalei, CLS_myefn_Zhalei, // class_en_name, class_name
myT("类的说明文本"), // help_string
CLS_sys_Object, // base_class_name
0, NULL, // interface_implement_count, interface_implement_table
EF_S_PUBLIC, -1, // state, category_index
myT(""), // properties_list
NULL, // class_init_func
NULL, // object_init_func
NULL, // object_clean_func
EF_METHOD_COUNT(Zhalei), EF_METHOD_TABLE(Zhalei), // method_count, method_table
0, NULL, // element_count, element_table
0, NULL // export_event_count, export_event_table
)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -