📄 svg_nodes_sa.c
字号:
return GF_OK; case 1: info->name = "xml:id"; info->fieldType = SVG_ID_datatype; info->far_ptr = gf_node_get_name_address(node); return GF_OK; case 2: info->name = "class"; info->fieldType = SVG_String_datatype; info->far_ptr = &((SVG_SA_Element *)node)->core->_class; return GF_OK; case 3: info->name = "xml:lang"; info->fieldType = SVG_LanguageID_datatype; info->far_ptr = &((SVG_SA_Element *)node)->core->lang; return GF_OK; case 4: info->name = "xml:base"; info->fieldType = SVG_String_datatype; info->far_ptr = &((SVG_SA_Element *)node)->core->base; return GF_OK; case 5: info->name = "xml:space"; info->fieldType = XML_Space_datatype; info->far_ptr = &((SVG_SA_Element *)node)->core->space; return GF_OK; case 6: info->name = "externalResourcesRequired"; info->fieldType = SVG_Boolean_datatype; info->far_ptr = &((SVG_SA_Element *)node)->core->eRR; return GF_OK; case 7: info->name = "audio-level"; info->fieldType = SVG_Number_datatype; info->far_ptr = &((SVG_SA_Element *)node)->properties->audio_level; return GF_OK; case 8: info->name = "display"; info->fieldType = SVG_Display_datatype; info->far_ptr = &((SVG_SA_Element *)node)->properties->display; return GF_OK; case 9: info->name = "image-rendering"; info->fieldType = SVG_RenderingHint_datatype; info->far_ptr = &((SVG_SA_Element *)node)->properties->image_rendering; return GF_OK; case 10: info->name = "pointer-events"; info->fieldType = SVG_PointerEvents_datatype; info->far_ptr = &((SVG_SA_Element *)node)->properties->pointer_events; return GF_OK; case 11: info->name = "shape-rendering"; info->fieldType = SVG_RenderingHint_datatype; info->far_ptr = &((SVG_SA_Element *)node)->properties->shape_rendering; return GF_OK; case 12: info->name = "text-rendering"; info->fieldType = SVG_RenderingHint_datatype; info->far_ptr = &((SVG_SA_Element *)node)->properties->text_rendering; return GF_OK; case 13: info->name = "viewport-fill"; info->fieldType = SVG_Paint_datatype; info->far_ptr = &((SVG_SA_Element *)node)->properties->viewport_fill; return GF_OK; case 14: info->name = "viewport-fill-opacity"; info->fieldType = SVG_Number_datatype; info->far_ptr = &((SVG_SA_Element *)node)->properties->viewport_fill_opacity; return GF_OK; case 15: info->name = "visibility"; info->fieldType = SVG_Visibility_datatype; info->far_ptr = &((SVG_SA_Element *)node)->properties->visibility; return GF_OK; case 16: info->name = "focusHighlight"; info->fieldType = SVG_FocusHighlight_datatype; info->far_ptr = &((SVG_SA_Element *)node)->focus->focusHighlight; return GF_OK; case 17: info->name = "focusable"; info->fieldType = SVG_Boolean_datatype; info->far_ptr = &((SVG_SA_Element *)node)->focus->focusable; return GF_OK; case 18: info->name = "nav-down"; info->fieldType = SVG_Focus_datatype; info->far_ptr = &((SVG_SA_Element *)node)->focus->nav_down; return GF_OK; case 19: info->name = "nav-down-left"; info->fieldType = SVG_Focus_datatype; info->far_ptr = &((SVG_SA_Element *)node)->focus->nav_down_left; return GF_OK; case 20: info->name = "nav-down-right"; info->fieldType = SVG_Focus_datatype; info->far_ptr = &((SVG_SA_Element *)node)->focus->nav_down_right; return GF_OK; case 21: info->name = "nav-left"; info->fieldType = SVG_Focus_datatype; info->far_ptr = &((SVG_SA_Element *)node)->focus->nav_left; return GF_OK; case 22: info->name = "nav-next"; info->fieldType = SVG_Focus_datatype; info->far_ptr = &((SVG_SA_Element *)node)->focus->nav_next; return GF_OK; case 23: info->name = "nav-prev"; info->fieldType = SVG_Focus_datatype; info->far_ptr = &((SVG_SA_Element *)node)->focus->nav_prev; return GF_OK; case 24: info->name = "nav-right"; info->fieldType = SVG_Focus_datatype; info->far_ptr = &((SVG_SA_Element *)node)->focus->nav_right; return GF_OK; case 25: info->name = "nav-up"; info->fieldType = SVG_Focus_datatype; info->far_ptr = &((SVG_SA_Element *)node)->focus->nav_up; return GF_OK; case 26: info->name = "nav-up-left"; info->fieldType = SVG_Focus_datatype; info->far_ptr = &((SVG_SA_Element *)node)->focus->nav_up_left; return GF_OK; case 27: info->name = "nav-up-right"; info->fieldType = SVG_Focus_datatype; info->far_ptr = &((SVG_SA_Element *)node)->focus->nav_up_right; return GF_OK; case 28: info->name = "xlink:href"; info->fieldType = XMLRI_datatype; info->far_ptr = &((SVG_SA_Element *)node)->xlink->href; return GF_OK; case 29: info->name = "xlink:show"; info->fieldType = SVG_String_datatype; info->far_ptr = &((SVG_SA_Element *)node)->xlink->show; return GF_OK; case 30: info->name = "xlink:title"; info->fieldType = SVG_String_datatype; info->far_ptr = &((SVG_SA_Element *)node)->xlink->title; return GF_OK; case 31: info->name = "xlink:actuate"; info->fieldType = SVG_String_datatype; info->far_ptr = &((SVG_SA_Element *)node)->xlink->actuate; return GF_OK; case 32: info->name = "xlink:role"; info->fieldType = XMLRI_datatype; info->far_ptr = &((SVG_SA_Element *)node)->xlink->role; return GF_OK; case 33: info->name = "xlink:arcrole"; info->fieldType = XMLRI_datatype; info->far_ptr = &((SVG_SA_Element *)node)->xlink->arcrole; return GF_OK; case 34: info->name = "xlink:type"; info->fieldType = SVG_String_datatype; info->far_ptr = &((SVG_SA_Element *)node)->xlink->type; return GF_OK; case 35: info->name = "begin"; info->fieldType = SMIL_Times_datatype; info->far_ptr = &((SVG_SA_Element *)node)->timing->begin; return GF_OK; case 36: info->name = "end"; info->fieldType = SMIL_Times_datatype; info->far_ptr = &((SVG_SA_Element *)node)->timing->end; return GF_OK; case 37: info->name = "dur"; info->fieldType = SMIL_Duration_datatype; info->far_ptr = &((SVG_SA_Element *)node)->timing->dur; return GF_OK; case 38: info->name = "repeatCount"; info->fieldType = SMIL_RepeatCount_datatype; info->far_ptr = &((SVG_SA_Element *)node)->timing->repeatCount; return GF_OK; case 39: info->name = "repeatDur"; info->fieldType = SMIL_Duration_datatype; info->far_ptr = &((SVG_SA_Element *)node)->timing->repeatDur; return GF_OK; case 40: info->name = "restart"; info->fieldType = SMIL_Restart_datatype; info->far_ptr = &((SVG_SA_Element *)node)->timing->restart; return GF_OK; case 41: info->name = "min"; info->fieldType = SMIL_Duration_datatype; info->far_ptr = &((SVG_SA_Element *)node)->timing->min; return GF_OK; case 42: info->name = "max"; info->fieldType = SMIL_Duration_datatype; info->far_ptr = &((SVG_SA_Element *)node)->timing->max; return GF_OK; case 43: info->name = "fill"; info->fieldType = SMIL_Fill_datatype; info->far_ptr = &((SVG_SA_Element *)node)->timing->fill; return GF_OK; case 44: info->name = "clipBegin"; info->fieldType = SVG_Clock_datatype; info->far_ptr = &((SVG_SA_Element *)node)->timing->clipBegin; return GF_OK; case 45: info->name = "clipEnd"; info->fieldType = SVG_Clock_datatype; info->far_ptr = &((SVG_SA_Element *)node)->timing->clipEnd; return GF_OK; case 46: info->name = "syncBehavior"; info->fieldType = SMIL_SyncBehavior_datatype; info->far_ptr = &((SVG_SA_Element *)node)->sync->syncBehavior; return GF_OK; case 47: info->name = "syncTolerance"; info->fieldType = SMIL_SyncTolerance_datatype; info->far_ptr = &((SVG_SA_Element *)node)->sync->syncTolerance; return GF_OK; case 48: info->name = "syncMaster"; info->fieldType = SVG_Boolean_datatype; info->far_ptr = &((SVG_SA_Element *)node)->sync->syncMaster; return GF_OK; case 49: info->name = "syncReference"; info->fieldType = SVG_String_datatype; info->far_ptr = &((SVG_SA_Element *)node)->sync->syncReference; return GF_OK; case 50: info->name = "requiredExtensions"; info->fieldType = SVG_ListOfIRI_datatype; info->far_ptr = &((SVG_SA_Element *)node)->conditional->requiredExtensions; return GF_OK; case 51: info->name = "requiredFeatures"; info->fieldType = SVG_ListOfIRI_datatype; info->far_ptr = &((SVG_SA_Element *)node)->conditional->requiredFeatures; return GF_OK; case 52: info->name = "requiredFonts"; info->fieldType = SVG_FontList_datatype; info->far_ptr = &((SVG_SA_Element *)node)->conditional->requiredFonts; return GF_OK; case 53: info->name = "requiredFormats"; info->fieldType = SVG_FormatList_datatype; info->far_ptr = &((SVG_SA_Element *)node)->conditional->requiredFormats; return GF_OK; case 54: info->name = "systemLanguage"; info->fieldType = SVG_LanguageIDs_datatype; info->far_ptr = &((SVG_SA_Element *)node)->conditional->systemLanguage; return GF_OK; case 55: info->name = "transform"; info->fieldType = SVG_Transform_datatype; info->far_ptr = &((SVGTransformableElement *)node)->transform; return GF_OK; case 56: info->name = "motionTransform"; info->fieldType = SVG_Motion_datatype; info->far_ptr = ((SVGTransformableElement *)node)->motionTransform; return GF_OK; case 57: info->name = "x"; info->fieldType = SVG_Coordinate_datatype; info->far_ptr = & ((SVG_SA_animationElement *)node)->x; return GF_OK; case 58: info->name = "y"; info->fieldType = SVG_Coordinate_datatype; info->far_ptr = & ((SVG_SA_animationElement *)node)->y; return GF_OK; case 59: info->name = "width"; info->fieldType = SVG_Length_datatype; info->far_ptr = & ((SVG_SA_animationElement *)node)->width; return GF_OK; case 60: info->name = "height"; info->fieldType = SVG_Length_datatype; info->far_ptr = & ((SVG_SA_animationElement *)node)->height; return GF_OK; case 61: info->name = "preserveAspectRatio"; info->fieldType = SVG_PreserveAspectRatio_datatype; info->far_ptr = & ((SVG_SA_animationElement *)node)->preserveAspectRatio; return GF_OK; case 62: info->name = "initialVisibility"; info->fieldType = SVG_InitialVisibility_datatype; info->far_ptr = & ((SVG_SA_animationElement *)node)->initialVisibility; return GF_OK; default: return GF_BAD_PARAM; }}s32 gf_svg_sa_animation_get_attribute_index_from_name(char *name){ if(!strcmp("id", name)) return 0; if(!strcmp("xml:id", name)) return 1; if(!strcmp("class", name)) return 2; if(!strcmp("xml:lang", name)) return 3; if(!strcmp("xml:base", name)) return 4; if(!strcmp("xml:space", name)) return 5; if(!strcmp("externalResourcesRequired", name)) return 6; if(!strcmp("audio-level", name)) return 7; if(!strcmp("display", name)) return 8; if(!strcmp("image-rendering", name)) return 9; if(!strcmp("pointer-events", name)) return 10; if(!strcmp("shape-rendering", name)) return 11; if(!strcmp("text-rendering", name)) return 12; if(!strcmp("viewport-fill", name)) return 13; if(!strcmp("viewport-fill-opacity", name)) return 14; if(!strcmp("visibility", name)) return 15; if(!strcmp("focusHighlight", name)) return 16; if(!strcmp("focusable", name)) return 17; if(!strcmp("nav-down", name)) return 18; if(!strcmp("nav-down-left", name)) return 19; if(!strcmp("nav-down-right", name)) return 20; if(!strcmp("nav-left", name)) return 21; if(!strcmp("nav-next", name)) return 22; if(!strcmp("nav-prev", name)) return 23; if(!strcmp("nav-right", name)) return 24; if(!strcmp("nav-up", name)) return 25; if(!strcmp("nav-up-left", name)) return 26; if(!strcmp("nav-up-right", name)) return 27; if(!strcmp("xlink:href", name)) return 28; if(!strcmp("xlink:show", name)) return 29; if(!strcmp("xlink:title", name)) return 30; if(!strcmp("xlink:actuate", name)) return 31; if(!strcmp("xlink:role", name)) return 32; if(!strcmp("xlink:arcrole", name)) return 33; if(!strcmp("xlink:type", name)) return 34; if(!strcmp("begin", name)) return 35; if(!strcmp("end", name)) return 36; if(!strcmp("dur", name)) return 37; if(!strcmp("repeatCount", name)) return 38; if(!strcmp("repeatDur", name)) return 39; if(!strcmp("restart", name)) return 40; if(!strcmp("min", name)) return 41; if(!strcmp("max", name)) return 42; if(!strcmp("fill", name)) return 43; if(!strcmp("clipBegin", name)) return 44; if(!strcmp("clipEnd", name)) return 45; if(!strcmp("syncBehavior", name)) return 46; if(!strcmp("syncTolerance", name)) return 47; if(!strcmp("syncMaster", name)) return 48; if(!strcmp("syncReference", name)) return 49; if(!strcmp("requiredExtensions", name)) return 50; if(!strcmp("requiredFeatures", name)) return 51; if(!strcmp("requiredFonts", name)) return 52; if(!strcmp("requiredFormats", name)) return 53; if(!strcmp("systemLanguage", name)) return 54; if(!strcmp("transform", name)) return 55; if(!strcmp("motionTransform", name)) return 56; if(!strcmp("x", name)) return 57; if(!strcmp("y", name)) return 58; if(!strcmp("width", name)) return 59; if(!strcmp("height", name)) return 60; if(!strcmp("preserveAspectRatio", name)) return 61; if(!strcmp("initialVisibility", name)) return 62; return -1;}void *gf_svg_sa_new_audio(){ SVG_SA_audioElement *p;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -