📄 cthread.h
字号:
#ifndef CTHREAD_H#define CTHREAD_H#include "defines.h"#include "Exception.h"namespace annie {class TerminatedException : Exception {public: TerminatedException() : Exception("Terminated during waiting on event") {}};char getLastKeyPressed();char waitForKey();/// also initializes videovoid initControlThread(uint winW = 600, uint winH = 600);/** * nicely terminates CT * Must be called even if you don't want to terminate the thread prematurely */void goodbyeControlThread();///change the screen sizevoid changeWindowSize(uint winW, uint winH, bool wait=true);///redraw the screenvoid forceRedraw(bool wait=true);class Video;Video *getVideo();} //annie;#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -