xos_font_vtbl.h.svn-base

来自「brew头文件分析」· SVN-BASE 代码 · 共 64 行

SVN-BASE
64
字号
//**************************************************************
//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 + =
减小字号Ctrl + -
显示快捷键?