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

📄 line.h

📁 一个牛人做的MIPS模拟器
💻 H
字号:
#if !defined(AFX_ATTR_H__7E293507_70EF_4665_B402_B38DAD7BB164__INCLUDED_)
#define AFX_ATTR_H__7E293507_70EF_4665_B402_B38DAD7BB164__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Line.h : header file
//

#include <afxtempl.h>

/////////////////////////////////////////////////////////////////////////////
// CLine

class CLine
{
public:
	CLine();
	virtual ~CLine();

// Attributes
public:
	int			m_penStyle;
	int			m_penWidth;
	COLORREF	m_penColor;
	COLORREF	m_bkColor;

	int			m_bkMode;
	int			m_drawMode;

	BOOL		m_bAttached;
	BOOL		m_bArrow;

	CArray<CPoint, CPoint&> m_pointArray;// line poly point
										 // note: only support vertical or horizontal lines

// Operations
public:
	void Init();
	void Reset();

	void SetPenStyle( int nStyle );
	void SetPenWidth( int nWidth );
	void SetPenColor( COLORREF clr );
	void SetBkColor( COLORREF clr );

	void SetBkMode( int bkMode = OPAQUE );
	void SetDrawMode( int drawMode = R2_COPYPEN );

	void SetAttached( BOOL bAttached = TRUE );
	void SetArrow( BOOL bArrow = TRUE ) { m_bArrow = bArrow; }

	void PolyAdd( CPoint& point );
	void PolyAdd( int x, int y );
	void Draw( CDC* pDC, int penStyle = PS_SOLID, int penWidth = 1, COLORREF penColor = RGB(0,0,0) );
	void Erase( CDC* pDC );
};

#endif // !defined(AFX_ATTR_H__7E293507_70EF_4665_B402_B38DAD7BB164__INCLUDED_)

⌨️ 快捷键说明

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