windowlistener.h

来自「一个纹理地形渲染器」· C头文件 代码 · 共 25 行

H
25
字号
// System Window Listener class

#pragma once


namespace System
{
    /// Implement this interface and register with a display to recieve window events.
    /// See Display::addWindowListener for details.

	class WindowListener
	{
	public:

        /// called when window is activated and deactivated.

		virtual void onActivate(bool active) = 0;

        /// called when the window is about to close.
        /// you can return false to indicate that you do not want the window to close.

        virtual bool onClose() = 0;
	};
}

⌨️ 快捷键说明

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