フォントテーブルアクセス More...
#include <GxFontTable.h>
Classes | |
class | GxDrawFontQuery |
フォント情報取得用構造体 More... | |
class | GxDrawHitQuery |
フォント当たり判定情報取得用構造体 More... | |
class | GxFontAccessTable |
フォントアクセステーブル More... | |
class | GxFontIconTableInformation |
フォントアイコンテーブル情報 More... | |
struct | GxFontInformation |
フォント情報 More... | |
class | GxFontTableInformation |
フォントテーブル情報 More... | |
struct | GxLineCondition |
行走査条件 More... | |
struct | GxLineInfo |
行情報 More... | |
struct | TagInfo |
Public Member Functions | |
初期化 | |
GxFontTable (void) | |
コンストラクタ | |
void | setResource (GxFontTableInformation *pFontTableInformation, GxFontIconTableInformation *pIconTableInformation) |
リソースを設定する | |
![]() | |
constexpr | GxClassBase (void) |
コンストラクタ | |
constexpr | GxClassBase (const GxClassBase &base) |
コピーコンストラクタ | |
~GxClassBase (void) override | |
デストラクタ | |
![]() | |
constexpr | GxClassBaseRoot (void) |
コンストラクタ | |
constexpr | GxClassBaseRoot (const GxClassBaseRoot &) |
コピーコンストラクタ | |
virtual | ~GxClassBaseRoot (void) |
デストラクタ | |
constexpr GxClassBaseRoot & | operator= (const GxClassBaseRoot &) |
代入演算子 | |
virtual GxRtti & | getRtti (void) const =0 |
Rttiの取得 | |
virtual GX_FORCE_INLINE const GxTypedObject * | getDefaultObject (void) |
デフォルトオブジェクトを取得 | |
GX_FORCE_INLINE b32 | isDefaultObject (void) |
デフォルトオブジェクト判定 | |
アクセサ | |
constexpr GxResTexture * | getFontTexture (u32 no) const |
フォントテクスチャ取得 | |
const GxFontTable::GxFontInformation * | getFontInformation (GX_CSTR text) |
文字情報を取得する | |
constexpr GxResTexture * | getIconTexture (u32 no) const |
アイコンテクスチャ取得 | |
const GxFontTable::GxFontInformation * | getFontInformationIcon (const u32 index) |
アイコンの文字情報を取得する | |
constexpr u32 | getTextureNum (void) const |
テクスチャの枚数を取得 | |
constexpr f32 | getTmHeight (void) const |
文字全体の高さを取得 | |
constexpr f32 | getTmDescent (void) const |
文字の下部の高さを取得 | |
constexpr u32 | getFontSize (void) const |
フォントサイズ取得 | |
GX_FORCE_INLINE b32 | isDistanceFont (void) const |
距離フォントか判定 | |
constexpr GxFontInformation * | getFontInformationTable (void) const |
フォントテーブルを取得 | |
constexpr GxFontInformation * | getFontInformationTableIcon (void) const |
フォントアイコンテーブルを取得 | |
void | getDrawRect (const GxFontInformation &information, GxFloat2 &leftTop, GxFloat2 &rightBottom, b32 isReferencePointIsBaseLine=false, b32 useMarginUV=false, b32 isIcon=false) |
描画位置の頂点を求める (文字ギリギリのサイズ) | |
void | getOuterRect (const GxFontInformation &information, GxFloat2 &leftTop, GxFloat2 &rightBottom, b32 isReferencePointIsBaseLine=false) |
フォントの外側を求める (_tmHeight x _gmCellIncX の大きさ) | |
void | getMaxInnerRect (const GxFontInformation &information, GxFloat2 &leftTop, GxFloat2 &rightBottom, b32 isReferencePointIsBaseLine=false) |
フォントの最大内側を求める (高さ情報は登録されているフォントを包括するサイズ) | |
void | getUvRect (const GxFontInformation &information, GxFloat2 &leftTop, GxFloat2 &rightBottom, b32 useMarginUV=false, b32 isIcon=false) |
UVを求める | |
void | getDrawRectString (GxRect &dstRect, const GxPoint2 &position, GX_CSTR string, f32 fontScale, f32 scaleWidth=1.0f, b32 isSjis=false, b32 isUseLineBreak=true, b32 isReferencePointIsBaseLine=false, b32 isUseTextTag=false) |
描画に必要な矩形を求める | |
void | getDrawQueryString (GxFontTable::GxDrawFontQuery &dstQuery, const GxSize &drawArea, const GxPoint2 &position, GX_CSTR string, f32 fontScale, f32 scaleWidth=1.0f, b32 isSjis=false, b32 isUseLineBreak=true, b32 isReferencePointIsBaseLine=false, b32 isUseTextTag=false, TEXT_ALIGN align=TEXT_ALIGN::LEFT_TOP, s32 lineOffset=0) |
描画に必要な情報を求める | |
void | getDrawHitString (GxFontTable::GxDrawHitQuery &dstQuery, const GxSize &drawArea, const GxPoint2 &position, GX_CSTR string, f32 fontScale, f32 scaleWidth=1.0f, b32 isSjis=false, b32 isUseLineBreak=true, b32 isReferencePointIsBaseLine=false, b32 isUseTextTag=false, TEXT_ALIGN align=TEXT_ALIGN::LEFT_TOP, s32 lineOffset=0) |
当たりに必要な情報を求める | |
Additional Inherited Members | |
![]() | |
static GX_FORCE_INLINE GxRtti & | __getStaticRtti (void) |
Rttiの取得 | |
フォントテーブルアクセス
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
タグの種類
|
strong |
void GxFontTable::getDrawHitString | ( | GxFontTable::GxDrawHitQuery & | dstQuery, |
const GxSize & | drawArea, | ||
const GxPoint2 & | position, | ||
GX_CSTR | string, | ||
f32 | fontSize, | ||
f32 | scaleWidth = 1.0f, | ||
b32 | isSjis = false, | ||
b32 | isUseLineBreak = true, | ||
b32 | isReferencePointIsBaseLine = false, | ||
b32 | isUseTextTag = false, | ||
TEXT_ALIGN | align = TEXT_ALIGN::LEFT_TOP, | ||
s32 | lineOffset = 0 ) |
当たりに必要な情報を求める
dstQuery | [out] 描画情報 |
drawArea | [in] 描画領域 |
position | [in] 座標 |
string | [in] 文字列 |
fontSize | [in] フォントサイズ |
scaleWidth | [in] スケール幅 |
isSjis | [in] SJISならtrue |
isUseLineBreak | [in] 改行を使うならtrue |
isReferencePointIsBaseLine | [in] ベースラインを参照するならtrue |
isUseTextTag | [in] テキストタグを使うならtrue |
align | [in] テキスト揃え |
lineOffset | [in] ラインオフセット |
void GxFontTable::getDrawQueryString | ( | GxFontTable::GxDrawFontQuery & | dstQuery, |
const GxSize & | drawArea, | ||
const GxPoint2 & | position, | ||
GX_CSTR | string, | ||
f32 | fontSize, | ||
f32 | scaleWidth = 1.0f, | ||
b32 | isSjis = false, | ||
b32 | isUseLineBreak = true, | ||
b32 | isReferencePointIsBaseLine = false, | ||
b32 | isUseTextTag = false, | ||
TEXT_ALIGN | align = TEXT_ALIGN::LEFT_TOP, | ||
s32 | lineOffset = 0 ) |
描画に必要な情報を求める
dstQuery | [out] 描画情報 |
drawArea | [in] 描画領域 |
position | [in] 座標 |
string | [in] 文字列 |
fontSize | [in] フォントサイズ |
scaleWidth | [in] スケール幅 |
isSjis | [in] SJISならtrue |
isUseLineBreak | [in] 改行を使うならtrue |
isReferencePointIsBaseLine | [in] ベースラインを参照するならtrue |
isUseTextTag | [in] テキストタグを使うならtrue |
align | [in] テキスト揃え |
lineOffset | [in] ラインオフセット |
void GxFontTable::getDrawRect | ( | const GxFontInformation & | information, |
GxFloat2 & | leftTop, | ||
GxFloat2 & | rightBottom, | ||
b32 | isReferencePointIsBaseLine = false, | ||
b32 | useMarginUV = false, | ||
b32 | isIcon = false ) |
描画位置の頂点を求める (文字ギリギリのサイズ)
information | [in] 文字情報 |
leftTop | [out] 左上座標 |
rightBottom | [out] 右下座標 |
isReferencePointIsBaseLine | [in] ベースラインを参照するならtrue |
useMarginUV | [in] UVのマージンを使うならtrue |
isIcon | [in] アイコンならtrue |
void GxFontTable::getDrawRectString | ( | GxRect & | dstRect, |
const GxPoint2 & | position, | ||
GX_CSTR | string, | ||
f32 | fontSize, | ||
f32 | scaleWidth = 1.0f, | ||
b32 | isSjis = false, | ||
b32 | isUseLineBreak = true, | ||
b32 | isReferencePointIsBaseLine = false, | ||
b32 | isUseTextTag = false ) |
描画に必要な矩形を求める
dstRect | [out] 矩形 |
position | [in] 座標 |
string | [in] 文字列 |
fontSize | [in] フォントサイズ |
scaleWidth | [in] スケール幅 |
isSjis | [in] SJISならtrue |
isUseLineBreak | [in] 改行を使うならtrue |
isReferencePointIsBaseLine | [in] ベースラインを参照するならtrue |
isUseTextTag | [in] テキストタグを使うならtrue |
const GxFontTable::GxFontInformation * GxFontTable::getFontInformation | ( | GX_CSTR | str | ) |
文字情報を取得する
str | [in] 文字 |
const GxFontTable::GxFontInformation * GxFontTable::getFontInformationIcon | ( | const u32 | index | ) |
アイコンの文字情報を取得する
index | [in] インデックス |
void GxFontTable::getMaxInnerRect | ( | const GxFontInformation & | information, |
GxFloat2 & | leftTop, | ||
GxFloat2 & | rightBottom, | ||
b32 | isReferencePointIsBaseLine = false ) |
フォントの最大内側を求める (高さ情報は登録されているフォントを包括するサイズ)
information | [in] 文字情報 |
leftTop | [out] 左上座標 |
rightBottom | [out] 右下座標 |
isReferencePointIsBaseLine | [in] ベースラインを参照するならtrue |
void GxFontTable::getOuterRect | ( | const GxFontInformation & | information, |
GxFloat2 & | leftTop, | ||
GxFloat2 & | rightBottom, | ||
b32 | isReferencePointIsBaseLine = false ) |
フォントの外側を求める (_tmHeight x _gmCellIncX の大きさ)
information | [in] 文字情報 |
leftTop | [out] 左上座標 |
rightBottom | [out] 右下座標 |
isReferencePointIsBaseLine | [in] ベースラインを参照するならtrue |
void GxFontTable::getUvRect | ( | const GxFontInformation & | information, |
GxFloat2 & | leftTop, | ||
GxFloat2 & | rightBottom, | ||
b32 | useMarginUV = false, | ||
b32 | isIcon = false ) |
UVを求める
information | [in] 文字情報 |
leftTop | [out] 左上座標 |
rightBottom | [out] 右下座標 |
useMarginUV | [in] ベースラインを参照するならtrue |
isIcon | [in] アイコンならtrue |
void GxFontTable::setResource | ( | GxFontTableInformation * | pFont, |
GxFontIconTableInformation * | pIcon ) |
リソースを設定する
pFont | [in] フォントテーブル情報 |
pIcon | [in] フォントアイコンテーブル情報 |