ランタイム
IFont.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 #include "Mix/Reference.h"
7 
8 namespace Mix{ namespace Graphics{ namespace Utility{
9 
12  class IFont : public Mix::Reference
13  {
14  public:
17  enum EFFECTS
18  {
19  EF_ITALIC = 0x00000001,
20  EF_BORDERING = 0x00000002,
21  };
22 
25  struct GLYPH
26  {
27  const void* pImg;
30  Int16 x;
31  Int16 y;
34  };
35 
36  protected:
38  virtual ~IFont( void ){}
39 
40  public:
45  virtual Boolean GetGlyph( wchar_t code, Mix::Graphics::Utility::IFont::GLYPH& glyph ) = 0;
48  virtual UInt32 GetEffects( void ) const = 0;
51  virtual UInt32 GetHeight( void ) const = 0;
54  virtual UInt32 GetWeight( void ) const = 0;
57  virtual UInt32 GetBorderSize( void ) const = 0;
58  };
59 
60 }}}
EFFECTS
効果列挙定数
Definition: IFont.h:17
グリフ構造体
Definition: IFont.h:25
UInt16 width
Definition: IFont.h:32
virtual UInt32 GetEffects(void) const =0
効果を取得します
UInt16 cellHeight
セルの高さ
Definition: IFont.h:29
virtual UInt32 GetBorderSize(void) const =0
縁のサイズを取得します
const void * pImg
イメージポインタ( このポインタは解放してはいけません )
Definition: IFont.h:27
Int16 y
Y座標 ( セルの左上を基点としたローカル座標 )
Definition: IFont.h:31
virtual Boolean GetGlyph(wchar_t code, Mix::Graphics::Utility::IFont::GLYPH &glyph)=0
フォントグリフを取得します
フォントインターフェース
Definition: IFont.h:12
UInt16 cellWidth
セルの幅
Definition: IFont.h:28
unsigned int UInt32
符号無し32ビット整数
Definition: Common.h:68
縁取り
Definition: IFont.h:20
斜体
Definition: IFont.h:19
ミックス
Definition: AtomicValue.h:6
virtual ~IFont(void)
デストラクタ
Definition: IFont.h:38
Int16 x
X座標 ( セルの左上を基点としたローカル座標 )
Definition: IFont.h:30
virtual UInt32 GetHeight(void) const =0
フォントのサイズを取得します
UInt16 height
高さ
Definition: IFont.h:33
short Int16
符号有り16ビット整数
Definition: Common.h:59
リファレンスクラス
Definition: Reference.h:12
リファレンスクラスインクルードファイル
unsigned short UInt16
符号無し16ビット整数
Definition: Common.h:62
virtual UInt32 GetWeight(void) const =0
フォントの太さを取得します
BOOL Boolean
32ビットブーリアン
Definition: Common.h:102