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

📄 svg_nodes_sa.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:13:53 2007	BY SVGGen for GPAC Version 0.4.3-DEV*/#include <gpac/nodes_svg_sa.h>#ifndef GPAC_DISABLE_SVG#include <gpac/internal/scenegraph_dev.h>#ifdef GPAC_ENABLE_SVG_SAvoid *gf_svg_sa_new_a(){	SVG_SA_aElement *p;	GF_SAFEALLOC(p, SVG_SA_aElement);	if (!p) return NULL;	gf_node_setup((GF_Node *)p, TAG_SVG_SA_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_sa_a_del;	((GF_Node *p)->sgprivate->get_field = gf_svg_sa_a_get_attribute;#endif	gf_svg_sa_init_core((SVG_SA_Element *)p);	gf_svg_sa_init_properties((SVG_SA_Element *)p);	gf_svg_sa_init_focus((SVG_SA_Element *)p);	gf_svg_sa_init_xlink((SVG_SA_Element *)p);	gf_svg_sa_init_conditional((SVG_SA_Element *)p);	gf_mx2d_init(p->transform.mat);	return p;}static void gf_svg_sa_a_del(GF_Node *node){	SVG_SA_aElement *p = (SVG_SA_aElement *)node;	gf_svg_sa_reset_base_element((SVG_SA_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_sa_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 = "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 = "color";			info->fieldType = SVG_Paint_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->color;			return GF_OK;		case 17:			info->name = "color-rendering";			info->fieldType = SVG_RenderingHint_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->color_rendering;			return GF_OK;		case 18:			info->name = "display-align";			info->fieldType = SVG_DisplayAlign_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->display_align;			return GF_OK;		case 19:			info->name = "fill";			info->fieldType = SVG_Paint_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->fill;			return GF_OK;		case 20:			info->name = "fill-opacity";			info->fieldType = SVG_Number_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->fill_opacity;			return GF_OK;		case 21:			info->name = "fill-rule";			info->fieldType = SVG_FillRule_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->fill_rule;			return GF_OK;		case 22:			info->name = "font-family";			info->fieldType = SVG_FontFamily_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->font_family;			return GF_OK;		case 23:			info->name = "font-size";			info->fieldType = SVG_FontSize_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->font_size;			return GF_OK;		case 24:			info->name = "font-style";			info->fieldType = SVG_FontStyle_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->font_style;			return GF_OK;		case 25:			info->name = "font-weight";			info->fieldType = SVG_FontWeight_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->font_weight;			return GF_OK;		case 26:			info->name = "line-increment";			info->fieldType = SVG_Number_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->line_increment;			return GF_OK;		case 27:			info->name = "solid-color";			info->fieldType = SVG_SVGColor_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->solid_color;			return GF_OK;		case 28:			info->name = "solid-opacity";			info->fieldType = SVG_Number_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->solid_opacity;			return GF_OK;		case 29:			info->name = "stop-color";			info->fieldType = SVG_SVGColor_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->stop_color;			return GF_OK;		case 30:			info->name = "stop-opacity";			info->fieldType = SVG_Number_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->stop_opacity;			return GF_OK;		case 31:			info->name = "stroke";			info->fieldType = SVG_Paint_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->stroke;			return GF_OK;		case 32:			info->name = "stroke-dasharray";			info->fieldType = SVG_StrokeDashArray_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->stroke_dasharray;			return GF_OK;		case 33:			info->name = "stroke-dashoffset";			info->fieldType = SVG_Length_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->stroke_dashoffset;			return GF_OK;		case 34:			info->name = "stroke-linecap";			info->fieldType = SVG_StrokeLineCap_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->stroke_linecap;			return GF_OK;		case 35:			info->name = "stroke-linejoin";			info->fieldType = SVG_StrokeLineJoin_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->stroke_linejoin;			return GF_OK;		case 36:			info->name = "stroke-miterlimit";			info->fieldType = SVG_Number_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->stroke_miterlimit;			return GF_OK;		case 37:			info->name = "stroke-opacity";			info->fieldType = SVG_Number_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->stroke_opacity;			return GF_OK;		case 38:			info->name = "stroke-width";			info->fieldType = SVG_Length_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->stroke_width;			return GF_OK;		case 39:			info->name = "text-align";			info->fieldType = SVG_TextAlign_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->text_align;			return GF_OK;		case 40:			info->name = "text-anchor";			info->fieldType = SVG_TextAnchor_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->text_anchor;			return GF_OK;		case 41:			info->name = "vector-effect";			info->fieldType = SVG_VectorEffect_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->properties->vector_effect;			return GF_OK;		case 42:			info->name = "focusHighlight";			info->fieldType = SVG_FocusHighlight_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->focus->focusHighlight;			return GF_OK;		case 43:			info->name = "focusable";			info->fieldType = SVG_Boolean_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->focus->focusable;			return GF_OK;		case 44:			info->name = "nav-down";			info->fieldType = SVG_Focus_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->focus->nav_down;			return GF_OK;		case 45:			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 46:			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 47:			info->name = "nav-left";			info->fieldType = SVG_Focus_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->focus->nav_left;			return GF_OK;		case 48:			info->name = "nav-next";			info->fieldType = SVG_Focus_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->focus->nav_next;			return GF_OK;		case 49:			info->name = "nav-prev";			info->fieldType = SVG_Focus_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->focus->nav_prev;			return GF_OK;		case 50:			info->name = "nav-right";			info->fieldType = SVG_Focus_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->focus->nav_right;			return GF_OK;		case 51:			info->name = "nav-up";			info->fieldType = SVG_Focus_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->focus->nav_up;			return GF_OK;		case 52:			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 53:			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 54:			info->name = "xlink:href";			info->fieldType = XMLRI_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->xlink->href;			return GF_OK;		case 55:			info->name = "xlink:show";			info->fieldType = SVG_String_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->xlink->show;			return GF_OK;		case 56:			info->name = "xlink:title";			info->fieldType = SVG_String_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->xlink->title;			return GF_OK;		case 57:			info->name = "xlink:actuate";			info->fieldType = SVG_String_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->xlink->actuate;			return GF_OK;		case 58:			info->name = "xlink:role";			info->fieldType = XMLRI_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->xlink->role;			return GF_OK;		case 59:			info->name = "xlink:arcrole";			info->fieldType = XMLRI_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->xlink->arcrole;			return GF_OK;		case 60:			info->name = "xlink:type";			info->fieldType = SVG_String_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->xlink->type;			return GF_OK;		case 61:			info->name = "requiredExtensions";			info->fieldType = SVG_ListOfIRI_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->conditional->requiredExtensions;			return GF_OK;		case 62:			info->name = "requiredFeatures";			info->fieldType = SVG_ListOfIRI_datatype;			info->far_ptr = &((SVG_SA_Element *)node)->conditional->requiredFeatures;			return GF_OK;		case 63:			info->name = "requiredFonts";

⌨️ 快捷键说明

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