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

📄 font.pkg

📁 cegui界面库
💻 PKG
字号:
/***********************************************************************
	TextFormatting
***********************************************************************/
enum TextFormatting
{
	LeftAligned,
	RightAligned,
	Centred,
	Justified,
	WordWrapLeftAligned,
	WordWrapRightAligned,
	WordWrapCentred,
	WordWrapJustified
};


/***********************************************************************
	Font
***********************************************************************/
class Font //: public PropertySet
{
	//////////////////////////////////////////////
	// PropertySet
	void setProperty(string name, string value);
	string getProperty(string name) const;
	string getPropertyDefault(string name) const;
	string getPropertyHelp(string name) const;

	bool isPropertyPresent(string name) const;
	bool isPropertyDefault(string name) const;

    tolua_outside PropertyIterator ceguiLua_getPropertyIterator @ getPropertyIterator() const;

    static void setDefaultResourceGroup(string resourceGroup);
    static string getDefaultResourceGroup();

    void load ();

	bool isCodepointAvailable(unsigned long cp) const;

	void setNativeResolution(const Size& sz);
	void notifyScreenResolution(const Size& sz);

	float getTextExtent(string text, float xscale=1);
	float getLineSpacing(float yscale=1) const;
	float getFontHeight(float yscale=1) const;

	unsigned long getCharAtPixel(string text, unsigned long start_char, float pixel, float xscale=1);
	unsigned long getCharAtPixel(string text, float pixel, float xscale=1);

	unsigned long getFormattedLineCount(string text, const Rect& format_area, TextFormatting fmt, float xscale=1);
	float getFormattedTextExtent(string text, const Rect& format_area, TextFormatting fmt, float xscale=1);
};

⌨️ 快捷键说明

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