昵称:烦夫子
类别:界面/平面设计师
年龄:38
现所在地:北京
主页浏览总数:24255
总积分:89
文章数:88
作品数:70
// Text.h: interface for the Text class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_TEXT_H__2E4A0DAA_94D1_4EB2_B7DD_344BC2F0F306__INCLUDED_)
#define AFX_TEXT_H__2E4A0DAA_94D1_4EB2_B7DD_344BC2F0F306__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////单线体文字类////////////////////////////////
#include "Object.h"
#include "TextSet.h"
class SOFTDRAW_CLASS Text : public Object
{
public:
CString string; //字符串
FontStyle style; //字符串风格
FontData *fdata; //字符串笔画数据
Vector org, tag; //原点, 方向点
COLORREF TextColor; //文字颜色
// transform paremeters
float clip;
Vector angle; //角度
CString appPath;
public:
Text (const Object *p);
virtual ~Text();
void Flush ();
void CalParam ();
Vector FCtoDC (const Vector& v, const Vector& porg) const;
void GetStringStroke ();
void SetString (const char *p);
void SetString (const CString& p);
void SetStyle (float h, float w, float o, BOOL v, int ef, int cf);
void SetPoint (Vector o, Vector t);
void SetPropText(int ty, int wd, COLORREF c, int grade, float l, float w, int el);
void SetTextHight(float h);
void GetString (CString& p) const;
void GetStyle (float& h, float& w, float& o, BOOL& v, int& ef, int& cf) const;
void GetMinMax ();
long GetSize () const;
public:
void FastDraw (CDC* dc, float scale, DrawMode mode, TransformFunc f) const;
public:
Object& ōperator = (const Object& aObject);
BOOL operator ^ (const Object& aObject);
BOOL ōperator == (const Object& aObject);
DECLARE_IO_METHOD (Text)
};
#endif // !defined(AFX_TEXT_H__2E4A0DAA_94D1_4EB2_B7DD_344BC2F0F306__INCLUDED_)