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

📄 svg_nodes_da.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 Tue May 15 11:18:46 2007	BY SVGGen for GPAC Version 0.4.3-DEV*/#ifndef GPAC_DISABLE_SVG#include <gpac/internal/scenegraph_dev.h>#include <gpac/nodes_svg_da.h>u32 gf_svg_get_attribute_tag(u32 element_tag, const char *attribute_name){	if (!attribute_name) return TAG_SVG_ATT_Unknown;	if (!stricmp(attribute_name, "id")) return TAG_SVG_ATT_id;	if (!stricmp(attribute_name, "class")) return TAG_SVG_ATT__class;	if (!stricmp(attribute_name, "xml:id")) return TAG_SVG_ATT_xml_id;	if (!stricmp(attribute_name, "xml:base")) return TAG_SVG_ATT_xml_base;	if (!stricmp(attribute_name, "xml:lang")) return TAG_SVG_ATT_xml_lang;	if (!stricmp(attribute_name, "xml:space")) return TAG_SVG_ATT_xml_space;	if (!stricmp(attribute_name, "requiredFeatures")) return TAG_SVG_ATT_requiredFeatures;	if (!stricmp(attribute_name, "requiredExtensions")) return TAG_SVG_ATT_requiredExtensions;	if (!stricmp(attribute_name, "requiredFormats")) return TAG_SVG_ATT_requiredFormats;	if (!stricmp(attribute_name, "requiredFonts")) return TAG_SVG_ATT_requiredFonts;	if (!stricmp(attribute_name, "systemLanguage")) return TAG_SVG_ATT_systemLanguage;	if (!stricmp(attribute_name, "display")) return TAG_SVG_ATT_display;	if (!stricmp(attribute_name, "visibility")) return TAG_SVG_ATT_visibility;	if (!stricmp(attribute_name, "image-rendering")) return TAG_SVG_ATT_image_rendering;	if (!stricmp(attribute_name, "pointer-events")) return TAG_SVG_ATT_pointer_events;	if (!stricmp(attribute_name, "shape-rendering")) return TAG_SVG_ATT_shape_rendering;	if (!stricmp(attribute_name, "text-rendering")) return TAG_SVG_ATT_text_rendering;	if (!stricmp(attribute_name, "audio-level")) return TAG_SVG_ATT_audio_level;	if (!stricmp(attribute_name, "viewport-fill")) return TAG_SVG_ATT_viewport_fill;	if (!stricmp(attribute_name, "viewport-fill-opacity")) return TAG_SVG_ATT_viewport_fill_opacity;	if (!stricmp(attribute_name, "overflow")) return TAG_SVG_ATT_overflow;	if (!stricmp(attribute_name, "fill-opacity")) return TAG_SVG_ATT_fill_opacity;	if (!stricmp(attribute_name, "stroke-opacity")) return TAG_SVG_ATT_stroke_opacity;	if (!stricmp(attribute_name, "fill")) {		if (element_tag == TAG_SVG_animate || element_tag == TAG_SVG_animateColor || element_tag == TAG_SVG_animateMotion || element_tag == TAG_SVG_animateTransform || element_tag == TAG_SVG_animation || element_tag == TAG_SVG_audio || element_tag == TAG_SVG_video || element_tag == TAG_SVG_set) return TAG_SVG_ATT_smil_fill;		else return TAG_SVG_ATT_fill;	}	if (!stricmp(attribute_name, "fill-rule")) return TAG_SVG_ATT_fill_rule;	if (!stricmp(attribute_name, "stroke")) return TAG_SVG_ATT_stroke;	if (!stricmp(attribute_name, "stroke-dasharray")) return TAG_SVG_ATT_stroke_dasharray;	if (!stricmp(attribute_name, "stroke-dashoffset")) return TAG_SVG_ATT_stroke_dashoffset;	if (!stricmp(attribute_name, "stroke-linecap")) return TAG_SVG_ATT_stroke_linecap;	if (!stricmp(attribute_name, "stroke-linejoin")) return TAG_SVG_ATT_stroke_linejoin;	if (!stricmp(attribute_name, "stroke-miterlimit")) return TAG_SVG_ATT_stroke_miterlimit;	if (!stricmp(attribute_name, "stroke-width")) return TAG_SVG_ATT_stroke_width;	if (!stricmp(attribute_name, "color")) return TAG_SVG_ATT_color;	if (!stricmp(attribute_name, "color-rendering")) return TAG_SVG_ATT_color_rendering;	if (!stricmp(attribute_name, "vector-effect")) return TAG_SVG_ATT_vector_effect;	if (!stricmp(attribute_name, "solid-color")) return TAG_SVG_ATT_solid_color;	if (!stricmp(attribute_name, "solid-opacity")) return TAG_SVG_ATT_solid_opacity;	if (!stricmp(attribute_name, "display-align")) return TAG_SVG_ATT_display_align;	if (!stricmp(attribute_name, "line-increment")) return TAG_SVG_ATT_line_increment;	if (!stricmp(attribute_name, "stop-color")) return TAG_SVG_ATT_stop_color;	if (!stricmp(attribute_name, "stop-opacity")) return TAG_SVG_ATT_stop_opacity;	if (!stricmp(attribute_name, "font-family")) return TAG_SVG_ATT_font_family;	if (!stricmp(attribute_name, "font-size")) return TAG_SVG_ATT_font_size;	if (!stricmp(attribute_name, "font-style")) return TAG_SVG_ATT_font_style;	if (!stricmp(attribute_name, "font-variant")) return TAG_SVG_ATT_font_variant;	if (!stricmp(attribute_name, "font-weight")) return TAG_SVG_ATT_font_weight;	if (!stricmp(attribute_name, "text-anchor")) return TAG_SVG_ATT_text_anchor;	if (!stricmp(attribute_name, "text-align")) return TAG_SVG_ATT_text_align;	if (!stricmp(attribute_name, "text-decoration")) return TAG_SVG_ATT_text_decoration;	if (!stricmp(attribute_name, "focusHighlight")) return TAG_SVG_ATT_focusHighlight;	if (!stricmp(attribute_name, "externalResourcesRequired")) return TAG_SVG_ATT_externalResourcesRequired;	if (!stricmp(attribute_name, "focusable")) return TAG_SVG_ATT_focusable;	if (!stricmp(attribute_name, "nav-next")) return TAG_SVG_ATT_nav_next;	if (!stricmp(attribute_name, "nav-prev")) return TAG_SVG_ATT_nav_prev;	if (!stricmp(attribute_name, "nav-up")) return TAG_SVG_ATT_nav_up;	if (!stricmp(attribute_name, "nav-up-right")) return TAG_SVG_ATT_nav_up_right;	if (!stricmp(attribute_name, "nav-right")) return TAG_SVG_ATT_nav_right;	if (!stricmp(attribute_name, "nav-down-right")) return TAG_SVG_ATT_nav_down_right;	if (!stricmp(attribute_name, "nav-down")) return TAG_SVG_ATT_nav_down;	if (!stricmp(attribute_name, "nav-down-left")) return TAG_SVG_ATT_nav_down_left;	if (!stricmp(attribute_name, "nav-left")) return TAG_SVG_ATT_nav_left;	if (!stricmp(attribute_name, "nav-up-left")) return TAG_SVG_ATT_nav_up_left;	if (!stricmp(attribute_name, "transform")) return TAG_SVG_ATT_transform;	if (!stricmp(attribute_name, "xlink:type")) return TAG_SVG_ATT_xlink_type;	if (!stricmp(attribute_name, "xlink:role")) return TAG_SVG_ATT_xlink_role;	if (!stricmp(attribute_name, "xlink:arcrole")) return TAG_SVG_ATT_xlink_arcrole;	if (!stricmp(attribute_name, "xlink:title")) return TAG_SVG_ATT_xlink_title;	if (!stricmp(attribute_name, "xlink:href")) return TAG_SVG_ATT_xlink_href;	if (!stricmp(attribute_name, "xlink:show")) return TAG_SVG_ATT_xlink_show;	if (!stricmp(attribute_name, "xlink:actuate")) return TAG_SVG_ATT_xlink_actuate;	if (!stricmp(attribute_name, "target")) return TAG_SVG_ATT_target;	if (!stricmp(attribute_name, "attributeName")) return TAG_SVG_ATT_attributeName;	if (!stricmp(attribute_name, "attributeType")) return TAG_SVG_ATT_attributeType;	if (!stricmp(attribute_name, "begin")) return TAG_SVG_ATT_begin;	if (!stricmp(attribute_name, "lsr:enabled")) return TAG_SVG_ATT_lsr_enabled;	if (!stricmp(attribute_name, "dur")) return TAG_SVG_ATT_dur;	if (!stricmp(attribute_name, "end")) return TAG_SVG_ATT_end;	if (!stricmp(attribute_name, "repeatCount")) return TAG_SVG_ATT_repeatCount;	if (!stricmp(attribute_name, "repeatDur")) return TAG_SVG_ATT_repeatDur;	if (!stricmp(attribute_name, "restart")) return TAG_SVG_ATT_restart;	if (!stricmp(attribute_name, "min")) return TAG_SVG_ATT_min;	if (!stricmp(attribute_name, "max")) return TAG_SVG_ATT_max;	if (!stricmp(attribute_name, "to")) return TAG_SVG_ATT_to;	if (!stricmp(attribute_name, "calcMode")) return TAG_SVG_ATT_calcMode;	if (!stricmp(attribute_name, "values")) return TAG_SVG_ATT_values;	if (!stricmp(attribute_name, "keyTimes")) return TAG_SVG_ATT_keyTimes;	if (!stricmp(attribute_name, "keySplines")) return TAG_SVG_ATT_keySplines;	if (!stricmp(attribute_name, "from")) return TAG_SVG_ATT_from;	if (!stricmp(attribute_name, "by")) return TAG_SVG_ATT_by;	if (!stricmp(attribute_name, "additive")) return TAG_SVG_ATT_additive;	if (!stricmp(attribute_name, "accumulate")) return TAG_SVG_ATT_accumulate;	if (!stricmp(attribute_name, "path")) return TAG_SVG_ATT_path;	if (!stricmp(attribute_name, "keyPoints")) return TAG_SVG_ATT_keyPoints;	if (!stricmp(attribute_name, "rotate")) {		if (element_tag == TAG_SVG_text) return TAG_SVG_ATT_text_rotate;		else return TAG_SVG_ATT_rotate;	}	if (!stricmp(attribute_name, "origin")) return TAG_SVG_ATT_origin;	if (!stricmp(attribute_name, "type")) {		if (element_tag == TAG_SVG_animateTransform) return TAG_SVG_ATT_transform_type;		else return TAG_SVG_ATT_type;	}	if (!stricmp(attribute_name, "clipBegin")) return TAG_SVG_ATT_clipBegin;	if (!stricmp(attribute_name, "clipEnd")) return TAG_SVG_ATT_clipEnd;	if (!stricmp(attribute_name, "syncBehavior")) return TAG_SVG_ATT_syncBehavior;	if (!stricmp(attribute_name, "syncTolerance")) return TAG_SVG_ATT_syncTolerance;	if (!stricmp(attribute_name, "syncMaster")) return TAG_SVG_ATT_syncMaster;	if (!stricmp(attribute_name, "syncReference")) return TAG_SVG_ATT_syncReference;	if (!stricmp(attribute_name, "x")) {		if (element_tag == TAG_SVG_text) return TAG_SVG_ATT_text_x;		else if (element_tag == TAG_SVG_cursorManager) return TAG_SVG_ATT_cursorManager_x;		else return TAG_SVG_ATT_x;	}	if (!stricmp(attribute_name, "y")) {		if (element_tag == TAG_SVG_text) return TAG_SVG_ATT_text_y;		else if (element_tag == TAG_SVG_cursorManager) return TAG_SVG_ATT_cursorManager_y;		else return TAG_SVG_ATT_y;	}	if (!stricmp(attribute_name, "width")) return TAG_SVG_ATT_width;	if (!stricmp(attribute_name, "height")) return TAG_SVG_ATT_height;	if (!stricmp(attribute_name, "preserveAspectRatio")) return TAG_SVG_ATT_preserveAspectRatio;	if (!stricmp(attribute_name, "initialVisibility")) return TAG_SVG_ATT_initialVisibility;	if (!stricmp(attribute_name, "cx")) return TAG_SVG_ATT_cx;	if (!stricmp(attribute_name, "cy")) return TAG_SVG_ATT_cy;	if (!stricmp(attribute_name, "r")) return TAG_SVG_ATT_r;	if (!stricmp(attribute_name, "rx")) return TAG_SVG_ATT_rx;	if (!stricmp(attribute_name, "ry")) return TAG_SVG_ATT_ry;	if (!stricmp(attribute_name, "horiz-adv-x")) return TAG_SVG_ATT_horiz_adv_x;	if (!stricmp(attribute_name, "horiz-origin-x")) return TAG_SVG_ATT_horiz_origin_x;	if (!stricmp(attribute_name, "font-stretch")) return TAG_SVG_ATT_font_stretch;	if (!stricmp(attribute_name, "unicode-range")) return TAG_SVG_ATT_unicode_range;	if (!stricmp(attribute_name, "panose-1")) return TAG_SVG_ATT_panose_1;	if (!stricmp(attribute_name, "widths")) return TAG_SVG_ATT_widths;	if (!stricmp(attribute_name, "bbox")) return TAG_SVG_ATT_bbox;	if (!stricmp(attribute_name, "units-per-em")) return TAG_SVG_ATT_units_per_em;	if (!stricmp(attribute_name, "stemv")) return TAG_SVG_ATT_stemv;	if (!stricmp(attribute_name, "stemh")) return TAG_SVG_ATT_stemh;	if (!stricmp(attribute_name, "slope")) return TAG_SVG_ATT_slope;	if (!stricmp(attribute_name, "cap-height")) return TAG_SVG_ATT_cap_height;	if (!stricmp(attribute_name, "x-height")) return TAG_SVG_ATT_x_height;	if (!stricmp(attribute_name, "accent-height")) return TAG_SVG_ATT_accent_height;	if (!stricmp(attribute_name, "ascent")) return TAG_SVG_ATT_ascent;	if (!stricmp(attribute_name, "descent")) return TAG_SVG_ATT_descent;	if (!stricmp(attribute_name, "ideographic")) return TAG_SVG_ATT_ideographic;	if (!stricmp(attribute_name, "alphabetic")) return TAG_SVG_ATT_alphabetic;	if (!stricmp(attribute_name, "mathematical")) return TAG_SVG_ATT_mathematical;

⌨️ 快捷键说明

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