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

📄 gtk_fill.h

📁 彩信浏览器
💻 H
字号:
/* * This file is part of Ambulant Player, www.ambulantplayer.org. * * Copyright (C) 2003-2007 Stichting CWI,  * Kruislaan 413, 1098 SJ Amsterdam, The Netherlands. * * Ambulant Player 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. * * Ambulant Player 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 Ambulant Player; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA *//*  * $Id: gtk_fill.h,v 1.4 2007/02/12 14:14:30 jackjansen Exp $ */#ifndef AMBULANT_GUI_GTK_GTK_FILL_H#define AMBULANT_GUI_GTK_GTK_FILL_H#include "ambulant/lib/mtsync.h"#include "ambulant/common/layout.h"#include "ambulant/common/renderer_impl.h"#include "ambulant/gui/none/none_gui.h"#include "gtk_renderer.h"#include <gtk/gtk.h>namespace ambulant {namespace gui {namespace gtk {class gtk_fill_renderer : public  renderer_playable {  public:	gtk_fill_renderer(		common::playable_notification *context,		common::playable_notification::cookie_type cookie,		const lib::node *node,		lib::event_processor *const evp,		common::factories *factory) 	:	renderer_playable(context, cookie, node, evp),	  	m_is_showing(false),		m_intransition(NULL),		m_outtransition(NULL),		m_trans_engine(NULL) {};	~gtk_fill_renderer(); //	void freeze() {}	void start(double where);	void stop();	void seek(double t) {}	void set_intransition(lib::transition_info *info) { m_intransition = info; }	void start_outtransition(lib::transition_info *info);	void user_event(const point &where, int what = 0);	void redraw(const rect &dirty, gui_window *window);	void redraw_body(const lib::rect &dirty, 			 common::gui_window *window);	void set_intransition(const lib::transition_info *info) {};	void start_outtransition(const lib::transition_info *info) {};  private:	void transition_step();		bool m_is_showing;	lib::transition_info *m_intransition, *m_outtransition;	smil2::transition_engine *m_trans_engine;	critical_section m_lock;};class gtk_background_renderer : public common::background_renderer {  public:  	gtk_background_renderer(const common::region_info *src)  	:	common::background_renderer(src),  		m_background_pixmap(NULL) {}  		void redraw(const lib::rect &dirty, common::gui_window *windo);	void highlight(gui_window *window);	void keep_as_background();  private:  	GdkPixmap *m_background_pixmap;};} // namespace gtk} // namespace gui} // namespace ambulant#endif  /*AMBULANT_GUI_GTK_GTK_FILL_H*/

⌨️ 快捷键说明

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