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

📄 vivi_application.h

📁 Swfdec is a decoder/renderer for Macromedia Flash animations. The decoding and rendering engine is
💻 H
字号:
/* Vivified * Copyright (C) 2007 Benjamin Otte <otte@gnome.org> * * This library 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.1 of the License, or (at your option) any later version. *  * This library 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; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor,  * Boston, MA  02110-1301  USA */#ifndef _VIVI_APPLICATION_H_#define _VIVI_APPLICATION_H_#include <libswfdec/swfdec.h>G_BEGIN_DECLStypedef struct _ViviApplication ViviApplication;typedef struct _ViviApplicationClass ViviApplicationClass;/* forward declarations */typedef struct _ViviDebugger ViviDebugger;typedef enum {  VIVI_APPLICATION_STOPPED,  VIVI_APPLICATION_PLAYING,  VIVI_APPLICATION_STEPPING,  VIVI_APPLICATION_EXITING,} ViviApplicationPlayback;typedef enum {  VIVI_MESSAGE_INPUT,  VIVI_MESSAGE_OUTPUT,  VIVI_MESSAGE_ERROR} ViviMessageType;#define VIVI_TYPE_APPLICATION                    (vivi_application_get_type())#define VIVI_IS_APPLICATION(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIVI_TYPE_APPLICATION))#define VIVI_IS_APPLICATION_CLASS(klass)         (G_TYPE_CHECK_CLASS_TYPE ((klass), VIVI_TYPE_APPLICATION))#define VIVI_APPLICATION(obj)                    (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIVI_TYPE_APPLICATION, ViviApplication))#define VIVI_APPLICATION_CLASS(klass)            (G_TYPE_CHECK_CLASS_CAST ((klass), VIVI_TYPE_APPLICATION, ViviApplicationClass))#define VIVI_APPLICATION_GET_CLASS(obj)          (G_TYPE_INSTANCE_GET_CLASS ((obj), VIVI_TYPE_APPLICATION, ViviApplicationClass))struct _ViviApplication{  SwfdecAsContext	context;  char *		filename;	/* name of the file we play back or NULL if none set yet */  char *		variables;	/* variables to pass to player or NULL if none set */  SwfdecPlayer *	player;		/* the current player */  ViviDebugger *	debugger;	/* the debugger used in player */  gboolean		player_inited;	/* if the player is inited already */  ViviApplicationPlayback playback_state;	/* (running, stepping or stopped) */  guint			playback_count;	/* how often to just restart this on breakpoints */  GMainLoop *		loop;		/* the breakpoint main loop */  guint			step_source;	/* source for stepping forward */  GHashTable *		wraps;		/* all wrapped objects from @player */};struct _ViviApplicationClass{  SwfdecAsContextClass	context_class;};GType			vivi_application_get_type   	(void);ViviApplication *	vivi_application_new		(void);void			vivi_application_check		(ViviApplication *	app);void			vivi_application_send_message	(ViviApplication *	app,							 ViviMessageType	type,							 const char *		format, 							 ...) G_GNUC_PRINTF (3, 4);#define vivi_application_input(manager, ...) \  vivi_application_send_message (manager, VIVI_MESSAGE_INPUT, __VA_ARGS__)#define vivi_application_output(manager, ...) \  vivi_application_send_message (manager, VIVI_MESSAGE_OUTPUT, __VA_ARGS__)#define vivi_application_error(manager, ...) \  vivi_application_send_message (manager, VIVI_MESSAGE_ERROR, __VA_ARGS__)void			vivi_application_set_filename	(ViviApplication *	app,							 const char *		filename);const char *		vivi_application_get_filename	(ViviApplication *	app);void			vivi_application_set_variables	(ViviApplication *	app,							 const char *		filename);const char *		vivi_application_get_variables	(ViviApplication *	app);SwfdecPlayer *	      	vivi_application_get_player	(ViviApplication *	app);gboolean	      	vivi_application_get_interrupted(ViviApplication *	app);gboolean	      	vivi_application_is_quit	(ViviApplication *	app);void			vivi_application_reset		(ViviApplication *	app);void			vivi_application_play		(ViviApplication *	app);void			vivi_application_stop		(ViviApplication *	app);void			vivi_application_step		(ViviApplication *	app,							 guint			n_times);void			vivi_application_quit		(ViviApplication *	app);void			vivi_application_execute	(ViviApplication *	app,							 const char *		command);G_END_DECLS#endif

⌨️ 快捷键说明

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