wport.hpp

来自「开放源码的编译器open watcom 1.6.0版的源代码」· HPP 代码 · 共 45 行

HPP
45
字号
#ifndef wport_class
#define wport_class

#include "wwindow.hpp"
#include "wrect.hpp"

WCLASS WFont;
WCLASS WBrush;
WCLASS WPen;
WCLASS WPalette;
WCLASS WPort : public WObject
{
	public:
		WEXPORT WPort( WWindow* host );
		WEXPORT ~WPort();

		void WEXPORT setFont( WFont* font ) { _font = font; }
		void WEXPORT setBrush( WBrush* brush ) { _brush = brush; }
		void WEXPORT setPen( WPen* pen ) { _pen = pen; }
		void WEXPORT setPalette( WPalette* palette ) { _palette = palette; }

		void WEXPORT moveTo() {}
		void WEXPORT lineTo() {}
		void WEXPORT rectangle() {}
		void WEXPORT ellipse() {}
		void WEXPORT arc() {}
		void WEXPORT pie() {}
		void WEXPORT textOut( const WRect& r, char* text );
		void WEXPORT drawText() {}

	private:
		HDC		_dc;
		WWindow*	_host;
		WFont*		_font;
		WBrush*		_brush;
		WPen*		_pen;
		WPalette*	_palette;
};

#endif




⌨️ 快捷键说明

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