none_gui.h

来自「彩信浏览器」· C头文件 代码 · 共 121 行

H
121
字号
/* * 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: none_gui.h,v 1.40 2007/02/12 14:14:31 jackjansen Exp $  */#ifndef AMBULANT_GUI_NONE_NONE_GUI_H#define AMBULANT_GUI_NONE_NONE_GUI_H#include "ambulant/config/config.h"#include "ambulant/common/layout.h"#include "ambulant/common/renderer_impl.h"namespace ambulant {namespace gui {namespace none {/// Dummy implementation of gui_window.class none_window : public common::gui_window {  public:  	none_window(const std::string &name, lib::size bounds, common::gui_events *handler)  	:	common::gui_window(handler) {};  			void need_redraw(const lib::rect &r) { m_handler->redraw(r, this); };	void need_events(bool want) {};	void redraw_now() {};};/// Implementation of window_factory that returns none_window objects.class none_window_factory : public common::window_factory {  public:  	none_window_factory() {}  		common::gui_window *new_window(const std::string &name, lib::size bounds, common::gui_events *handler);	common::bgrenderer *new_background_renderer(const common::region_info *src);};/// Dummy implementation of playable.class none_playable : public common::playable_imp {  public:	none_playable(		common::playable_notification *context,#ifdef AMBULANT_PLATFORM_WIN32_WCE		// Workaround for bug in emVC 4.0: it gets confused		// when getting a subtype from a class within a function		// signature, or something like that		int cookie,#else		common::playable_notification::cookie_type cookie,#endif		const lib::node *node,		lib::event_processor *evp);		void start(double where);	void stop();	void seek(double where) {}};/// Dummy implementation of background_renderer.class none_background_renderer : public common::background_renderer {  public:	none_background_renderer(const common::region_info *src)	:   background_renderer(src) {}	~none_background_renderer() {}	void redraw(const lib::rect &dirty, common::gui_window *window);	void keep_as_background();	void highlight(common::gui_window *window);};class common::region_info;/// Implementation of playable_factory that returns none_playable objects.class none_playable_factory : public common::playable_factory {  public:  	none_playable_factory() {}  		common::playable *new_playable(		common::playable_notification *context,		common::playable_notification::cookie_type cookie,		const lib::node *node,		lib::event_processor *evp);			common::playable *new_aux_audio_playable(		common::playable_notification *context,		common::playable_notification::cookie_type cookie,		const lib::node *node,		lib::event_processor *evp,		net::audio_datasource *src);};AMBULANTAPI common::window_factory *create_none_window_factory();} // namespace none} // namespace gui } // namespace ambulant#endif // AMBULANT_GUI_NONE_NONE_GUI_H

⌨️ 快捷键说明

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