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

📄 xos_font_vtbl.h.svn-base

📁 brew头文件分析
💻 SVN-BASE
字号:
//**************************************************************
//Copyright (C), 2008-2008, AnyLook Co., Ltd.
//File name:    xOS_Font_VTBL.h
//Author:       AnyLook
//Version:      1.0
//Date:         2008/07/31
//Description:
//    xOS Include file
//Others: 
//Function List: 
//<Name>        <desc>
//Simple        
//History: 
//<author>      <time>      <version >  <desc>
// AnyLook    2008/07/31       1.0       build this moudle  
//**************************************************************


#ifndef _xOS_FONT_VTBL_H
#define _xOS_FONT_VTBL_H

#include "xOS.h"
#include "xOS_OutTypedef.h"

INTERFACE(Font)
{
	  void	  (*Font_ByteSwappedUNICODE)(int swapped);
	  void   *(*Font_OpenFont)(const char *file, int ptsize);
	  void   *(*Font_OpenFontIndex)(const char *file, int ptsize, long index);
	  int	  (*Font_GetFontStyle)(const void*font);
	  void	  (*Font_SetFontStyle)(void*font, int style);
	  int	  (*Font_FontHeight)(const void*font);
	  int	  (*Font_FontAscent)(const void*font);
	  int	  (*Font_FontDescent)(const void*font);
	  int	  (*Font_FontLineSkip)(const void*font);
	  long	  (*Font_FontFaces)(const void*font);
	  int     (*Font_FontFaceIsFixedWidth)(const void*font);
	  char   *(*Font_FontFaceFamilyName)(const void*font);
	  char   *(*Font_FontFaceStyleName)(const void*font);
	  int	  (*Font_GlyphMetrics)(void*font, uint16 ch,int *minx, int *maxx,int *miny, int *maxy, int *advance);
	  int	  (*Font_SizeText)(void*font, const char *text, int *w, int *h);
	  int	  (*Font_SizeUTF8)(void*font, const char *text, int *w, int *h);
	  int	  (*Font_SizeUNICODE)(void*font, const uint16 *text, int *w, int *h);
	  void   *(*Font_RenderText_Solid)(void*font, const char *text, xOS_Color fg);
	  void   *(*Font_RenderUTF8_Solid)(void*font, const char *text, xOS_Color fg);
	  void   *(*Font_RenderUNICODE_Solid)(void*font, const uint16 *text, xOS_Color fg);
	  void   *(*Font_RenderGlyph_Solid)(void*font, uint16 ch, xOS_Color fg);
	  void   *(*Font_RenderText_Shaded)(void*font, const char *text, xOS_Color fg, xOS_Color bg);
	  void   *(*Font_RenderUTF8_Shaded)(void*font, const char *text, xOS_Color fg, xOS_Color bg);
	  void   *(*Font_RenderUNICODE_Shaded)(void*font, const uint16 *text, xOS_Color fg, xOS_Color bg);
	  void   *(*Font_RenderGlyph_Shaded)(void*font, uint16 ch, xOS_Color fg, xOS_Color bg);
	  void   *(*Font_RenderText_Blended)(void*font, const char *text, xOS_Color fg);
	  void   *(*Font_RenderUTF8_Blended)(void*font, const char *text, xOS_Color fg);
	  void   *(*Font_RenderUNICODE_Blended)(void*font, const uint16 *text, xOS_Color fg);
	  void   *(*Font_RenderGlyph_Blended)(void*font, uint16 ch, xOS_Color fg);	
	  void	  (*Font_CloseFont)(void*font);
	  void    (*Font_ChangeGB32)(uint16 *ucs2_ptr,const char *gb_ptr,int32 len);

};


#endif //_xOS_FONT_VTBL_H

⌨️ 快捷键说明

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