mgfontmetrics.h

来自「monqueror一个很具有参考价值的源玛」· C头文件 代码 · 共 45 行

H
45
字号
#ifndef		_MGFONTMETRICS_H_#define		_MGFONTMETRICS_H_class MGHTMLPart;#include "mgfont.h"class MGFontMetrics{public:	MGFontMetrics();	~MGFontMetrics();	MGFontMetrics( const MGFont&, MGHTMLPart* );	MGFontMetrics( const MGFontMetrics& );	MGFontMetrics( const MGPainter* );	int ascent() const;	int descent() const;		int width( char ) const;	int width( MGChar ) const;	int width( const MGString&, int len = -1 ) const;	int height() const;	MGRect boundingRect( const MGString&, int len = -1 ) const;	MGRect boundingRect( const MGChar& );	int leftBearing( MGChar ) const;	int rightBearing( MGChar ) const;    int getFirstWordLen (const MGString&, int len, int* nr_delim = NULL) const;    int getFirstCharLen (const MGString&, int len) const;    bool fixedPitch () const;protected:	friend class MGFontInfo;#if( _CURRENT_PLATFORM == _PLATFORM_MINIGUI )	MGFont font;    MGHTMLPart* part;#endif};#endif

⌨️ 快捷键说明

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