⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 svg_nodes_sani.c

📁 一个用于智能手机的多媒体库适合S60 WinCE的跨平台开发库
💻 C
📖 第 1 页 / 共 5 页
字号:
/* *			GPAC - Multimedia Framework C SDK * *			Authors: Cyril Concolato - Jean Le Feuvre *    Copyright (c)2004-200X ENST - All rights reserved * *  This file is part of GPAC / SVG Scene Graph sub-project * *  GPAC is free software; you can redistribute it and/or modify *  it under the terms of the GNU Lesser General Public License as published by *  the Free Software Foundation; either version 2, or (at your option) *  any later version. * *  GPAC is distributed in the hope that it will be useful, *  but WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the *  GNU Lesser General Public License for more details.	 * *  You should have received a copy of the GNU Lesser General Public *  License along with this library; see the file COPYING.  If not, write to *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * *//*	DO NOT MOFIFY - File generated on GMT Mon Apr 23 13:10:06 2007	BY SVGGen for GPAC Version 0.4.3-DEV*/#include <gpac/nodes_svg_sani.h>#ifndef GPAC_DISABLE_SVG#ifdef GPAC_ENABLE_SVG_SANI#include <gpac/internal/scenegraph_dev.h>void *gf_svg_sani_new_a(){	SVG_SANI_aElement *p;	GF_SAFEALLOC(p, SVG_SANI_aElement);	if (!p) return NULL;	gf_node_setup((GF_Node *)p, TAG_SVG_SANI_a);	gf_sg_parent_setup((GF_Node *) p);#ifdef GF_NODE_USE_POINTERS	((GF_Node *p)->sgprivate->name = "a";	((GF_Node *p)->sgprivate->node_del = gf_svg_sani_a_del;	((GF_Node *p)->sgprivate->get_field = gf_svg_sani_a_get_attribute;#endif	gf_svg_sani_init_core((SVG_SANI_Element *)p);	gf_svg_sani_init_focus((SVG_SANI_Element *)p);	gf_svg_sani_init_xlink((SVG_SANI_Element *)p);	gf_svg_sani_init_conditional((SVG_SANI_Element *)p);	gf_mx2d_init(p->transform.mat);	p->display = SVG_DISPLAY_INLINE;	p->visibility = SVG_VISIBILITY_VISIBLE;	return p;}static void gf_svg_sani_a_del(GF_Node *node){	SVG_SANI_aElement *p = (SVG_SANI_aElement *)node;	gf_svg_sani_reset_base_element((SVG_SANI_Element *)p);	if (p->target) free(p->target);	if (p->motionTransform) free(p->motionTransform);	gf_sg_parent_reset((GF_Node *) p);	gf_node_free((GF_Node *)p);}static GF_Err gf_svg_sani_a_get_attribute(GF_Node *node, GF_FieldInfo *info){	switch (info->fieldIndex) {		case 0:			info->name = "id";			info->fieldType = SVG_ID_datatype;			info->far_ptr = gf_node_get_name_address(node);			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 = "focusHighlight";			info->fieldType = SVG_FocusHighlight_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->focus->focusHighlight;			return GF_OK;		case 8:			info->name = "focusable";			info->fieldType = SVG_Boolean_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->focus->focusable;			return GF_OK;		case 9:			info->name = "nav-down";			info->fieldType = SVG_Focus_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->focus->nav_down;			return GF_OK;		case 10:			info->name = "nav-down-left";			info->fieldType = SVG_Focus_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->focus->nav_down_left;			return GF_OK;		case 11:			info->name = "nav-down-right";			info->fieldType = SVG_Focus_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->focus->nav_down_right;			return GF_OK;		case 12:			info->name = "nav-left";			info->fieldType = SVG_Focus_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->focus->nav_left;			return GF_OK;		case 13:			info->name = "nav-next";			info->fieldType = SVG_Focus_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->focus->nav_next;			return GF_OK;		case 14:			info->name = "nav-prev";			info->fieldType = SVG_Focus_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->focus->nav_prev;			return GF_OK;		case 15:			info->name = "nav-right";			info->fieldType = SVG_Focus_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->focus->nav_right;			return GF_OK;		case 16:			info->name = "nav-up";			info->fieldType = SVG_Focus_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->focus->nav_up;			return GF_OK;		case 17:			info->name = "nav-up-left";			info->fieldType = SVG_Focus_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->focus->nav_up_left;			return GF_OK;		case 18:			info->name = "nav-up-right";			info->fieldType = SVG_Focus_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->focus->nav_up_right;			return GF_OK;		case 19:			info->name = "xlink:href";			info->fieldType = XMLRI_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->xlink->href;			return GF_OK;		case 20:			info->name = "xlink:show";			info->fieldType = SVG_String_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->xlink->show;			return GF_OK;		case 21:			info->name = "xlink:title";			info->fieldType = SVG_String_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->xlink->title;			return GF_OK;		case 22:			info->name = "xlink:actuate";			info->fieldType = SVG_String_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->xlink->actuate;			return GF_OK;		case 23:			info->name = "xlink:role";			info->fieldType = XMLRI_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->xlink->role;			return GF_OK;		case 24:			info->name = "xlink:arcrole";			info->fieldType = XMLRI_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->xlink->arcrole;			return GF_OK;		case 25:			info->name = "xlink:type";			info->fieldType = SVG_String_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->xlink->type;			return GF_OK;		case 26:			info->name = "requiredExtensions";			info->fieldType = SVG_ListOfIRI_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->conditional->requiredExtensions;			return GF_OK;		case 27:			info->name = "requiredFeatures";			info->fieldType = SVG_ListOfIRI_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->conditional->requiredFeatures;			return GF_OK;		case 28:			info->name = "requiredFonts";			info->fieldType = SVG_FontList_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->conditional->requiredFonts;			return GF_OK;		case 29:			info->name = "requiredFormats";			info->fieldType = SVG_FormatList_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->conditional->requiredFormats;			return GF_OK;		case 30:			info->name = "systemLanguage";			info->fieldType = SVG_LanguageIDs_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->conditional->systemLanguage;			return GF_OK;		case 31:			info->name = "transform";			info->fieldType = SVG_Transform_datatype;			info->far_ptr = &((SVG_SANI_TransformableElement *)node)->transform;			return GF_OK;		case 32:			info->name = "motionTransform";			info->fieldType = SVG_Transform_datatype;			info->far_ptr = ((SVG_SANI_TransformableElement *)node)->motionTransform;			return GF_OK;		case 33:			info->name = "display";			info->fieldType = SVG_Display_datatype;			info->far_ptr = & ((SVG_SANI_aElement *)node)->display;			return GF_OK;		case 34:			info->name = "visibility";			info->fieldType = SVG_Visibility_datatype;			info->far_ptr = & ((SVG_SANI_aElement *)node)->visibility;			return GF_OK;		case 35:			info->name = "pointer-events";			info->fieldType = SVG_PointerEvents_datatype;			info->far_ptr = & ((SVG_SANI_aElement *)node)->pointer_events;			return GF_OK;		case 36:			info->name = "target";			info->fieldType = SVG_ID_datatype;			info->far_ptr = & ((SVG_SANI_aElement *)node)->target;			return GF_OK;		default: return GF_BAD_PARAM;	}}void *gf_svg_sani_new_animate(){	SVG_SANI_animateElement *p;	GF_SAFEALLOC(p, SVG_SANI_animateElement);	if (!p) return NULL;	gf_node_setup((GF_Node *)p, TAG_SVG_SANI_animate);	gf_sg_parent_setup((GF_Node *) p);#ifdef GF_NODE_USE_POINTERS	((GF_Node *p)->sgprivate->name = "animate";	((GF_Node *p)->sgprivate->node_del = gf_svg_sani_animate_del;	((GF_Node *p)->sgprivate->get_field = gf_svg_sani_animate_get_attribute;#endif	gf_svg_sani_init_core((SVG_SANI_Element *)p);	gf_svg_sani_init_xlink((SVG_SANI_Element *)p);	gf_svg_sani_init_timing((SVG_SANI_Element *)p);	gf_svg_sani_init_anim((SVG_SANI_Element *)p);	return p;}static void gf_svg_sani_animate_del(GF_Node *node){	SVG_SANI_animateElement *p = (SVG_SANI_animateElement *)node;	gf_svg_sani_reset_base_element((SVG_SANI_Element *)p);	gf_sg_parent_reset((GF_Node *) p);	gf_node_free((GF_Node *)p);}static GF_Err gf_svg_sani_animate_get_attribute(GF_Node *node, GF_FieldInfo *info){	switch (info->fieldIndex) {		case 0:			info->name = "id";			info->fieldType = SVG_ID_datatype;			info->far_ptr = gf_node_get_name_address(node);			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 = "xlink:href";			info->fieldType = XMLRI_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->xlink->href;			return GF_OK;		case 8:			info->name = "xlink:show";			info->fieldType = SVG_String_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->xlink->show;			return GF_OK;		case 9:			info->name = "xlink:title";			info->fieldType = SVG_String_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->xlink->title;			return GF_OK;		case 10:			info->name = "xlink:actuate";			info->fieldType = SVG_String_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->xlink->actuate;			return GF_OK;		case 11:			info->name = "xlink:role";			info->fieldType = XMLRI_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->xlink->role;			return GF_OK;		case 12:			info->name = "xlink:arcrole";			info->fieldType = XMLRI_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->xlink->arcrole;			return GF_OK;		case 13:			info->name = "xlink:type";			info->fieldType = SVG_String_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->xlink->type;			return GF_OK;		case 14:			info->name = "begin";			info->fieldType = SMIL_Times_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->timing->begin;			return GF_OK;		case 15:			info->name = "end";			info->fieldType = SMIL_Times_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->timing->end;			return GF_OK;		case 16:			info->name = "dur";			info->fieldType = SMIL_Duration_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->timing->dur;			return GF_OK;		case 17:			info->name = "repeatCount";			info->fieldType = SMIL_RepeatCount_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->timing->repeatCount;			return GF_OK;		case 18:			info->name = "repeatDur";			info->fieldType = SMIL_Duration_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->timing->repeatDur;			return GF_OK;		case 19:			info->name = "restart";			info->fieldType = SMIL_Restart_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->timing->restart;			return GF_OK;		case 20:			info->name = "min";			info->fieldType = SMIL_Duration_datatype;			info->far_ptr = &((SVG_SANI_Element *)node)->timing->min;			return GF_OK;		case 21:			info->name = "max";			info->fieldType = SMIL_Duration_datatype;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -