OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::DrawableText Struct Reference

#include <DrawableText.hpp>

Public Member Functions

SIV3D_NODISCARD_CXX20 DrawableText ()=default
 
SIV3D_NODISCARD_CXX20 DrawableText (const Font &_font, const String &_text)
 
SIV3D_NODISCARD_CXX20 DrawableText (const Font &_font, String &&_text)
 
Array< double > getXAdvances () const
 
Array< double > getXAdvances (double size) const
 
RectF region (double x, double y) const
 テキストが描画される領域を返します。 More...
 
RectF region (Vec2 pos=Vec2{ 0, 0 }) const
 テキストが描画される領域を返します。 More...
 
RectF region (Arg::topLeft_< Vec2 > topLeft) const
 
RectF region (Arg::topCenter_< Vec2 > topCenter) const
 
RectF region (Arg::topRight_< Vec2 > topRight) const
 
RectF region (Arg::rightCenter_< Vec2 > rightCenter) const
 
RectF region (Arg::bottomRight_< Vec2 > bottomRight) const
 
RectF region (Arg::bottomCenter_< Vec2 > bottomCenter) const
 
RectF region (Arg::bottomLeft_< Vec2 > bottomLeft) const
 
RectF region (Arg::leftCenter_< Vec2 > leftCenter) const
 
RectF region (Arg::center_< Vec2 > center) const
 
RectF region (double size, double x, double y) const
 
RectF region (double size, Vec2 pos=Vec2{ 0, 0 }) const
 
RectF region (double size, Arg::topLeft_< Vec2 > topLeft) const
 
RectF region (double size, Arg::topCenter_< Vec2 > topCenter) const
 
RectF region (double size, Arg::topRight_< Vec2 > topRight) const
 
RectF region (double size, Arg::rightCenter_< Vec2 > rightCenter) const
 
RectF region (double size, Arg::bottomRight_< Vec2 > bottomRight) const
 
RectF region (double size, Arg::bottomCenter_< Vec2 > bottomCenter) const
 
RectF region (double size, Arg::bottomLeft_< Vec2 > bottomLeft) const
 
RectF region (double size, Arg::leftCenter_< Vec2 > leftCenter) const
 
RectF region (double size, Arg::center_< Vec2 > center) const
 
RectF regionBase (double x, double y) const
 
RectF regionBase (Vec2 pos=Vec2{ 0, 0 }) const
 
RectF regionBase (Arg::left_< Vec2 > left) const
 
RectF regionBase (Arg::center_< Vec2 > center) const
 
RectF regionBase (Arg::right_< Vec2 > right) const
 
RectF regionBase (double size, double x, double y) const
 
RectF regionBase (double size, Vec2 pos=Vec2{ 0, 0 }) const
 
RectF regionBase (double size, Arg::left_< Vec2 > left) const
 
RectF regionBase (double size, Arg::center_< Vec2 > center) const
 
RectF regionBase (double size, Arg::right_< Vec2 > right) const
 
RectF regionAt (double x, double y) const
 
RectF regionAt (Vec2 pos=Vec2{ 0, 0 }) const
 
RectF regionAt (double size, double x, double y) const
 
RectF regionAt (double size, Vec2 pos=Vec2{ 0, 0 }) const
 
RectF regionBaseAt (double x, double y) const
 
RectF regionBaseAt (Vec2 pos=Vec2{ 0, 0 }) const
 
RectF regionBaseAt (double size, double x, double y) const
 
RectF regionBaseAt (double size, Vec2 pos=Vec2{ 0, 0 }) const
 
RectF draw (double x, double y, const ColorF &color=Palette::White) const
 
RectF draw (const Vec2 &pos=Vec2{ 0, 0 }, const ColorF &color=Palette::White) const
 
RectF draw (Arg::topLeft_< Vec2 > topLeft, const ColorF &color=Palette::White) const
 
RectF draw (Arg::topCenter_< Vec2 > topCenter, const ColorF &color=Palette::White) const
 
RectF draw (Arg::topRight_< Vec2 > topRight, const ColorF &color=Palette::White) const
 
RectF draw (Arg::rightCenter_< Vec2 > rightCenter, const ColorF &color=Palette::White) const
 
RectF draw (Arg::bottomRight_< Vec2 > bottomRight, const ColorF &color=Palette::White) const
 
RectF draw (Arg::bottomCenter_< Vec2 > bottomCenter, const ColorF &color=Palette::White) const
 
RectF draw (Arg::bottomLeft_< Vec2 > bottomLeft, const ColorF &color=Palette::White) const
 
RectF draw (Arg::leftCenter_< Vec2 > leftCenter, const ColorF &color=Palette::White) const
 
RectF draw (Arg::center_< Vec2 > center, const ColorF &color=Palette::White) const
 
bool draw (const RectF &area, const ColorF &color=Palette::White) const
 
RectF draw (double size, double x, double y, const ColorF &color=Palette::White) const
 
RectF draw (double size, const Vec2 &pos, const ColorF &color=Palette::White) const
 
RectF draw (double size, Arg::topLeft_< Vec2 > topLeft, const ColorF &color=Palette::White) const
 
RectF draw (double size, Arg::topCenter_< Vec2 > topCenter, const ColorF &color=Palette::White) const
 
RectF draw (double size, Arg::topRight_< Vec2 > topRight, const ColorF &color=Palette::White) const
 
RectF draw (double size, Arg::rightCenter_< Vec2 > rightCenter, const ColorF &color=Palette::White) const
 
RectF draw (double size, Arg::bottomRight_< Vec2 > bottomRight, const ColorF &color=Palette::White) const
 
RectF draw (double size, Arg::bottomCenter_< Vec2 > bottomCenter, const ColorF &color=Palette::White) const
 
RectF draw (double size, Arg::bottomLeft_< Vec2 > bottomLeft, const ColorF &color=Palette::White) const
 
RectF draw (double size, Arg::leftCenter_< Vec2 > leftCenter, const ColorF &color=Palette::White) const
 
RectF draw (double size, Arg::center_< Vec2 > center, const ColorF &color=Palette::White) const
 
bool draw (double size, const RectF &area, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, double x, double y, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, const Vec2 &pos=Vec2{ 0, 0 }, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, Arg::topLeft_< Vec2 > topLeft, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, Arg::topCenter_< Vec2 > topCenter, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, Arg::topRight_< Vec2 > topRight, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, Arg::rightCenter_< Vec2 > rightCenter, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, Arg::bottomRight_< Vec2 > bottomRight, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, Arg::bottomCenter_< Vec2 > bottomCenter, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, Arg::bottomLeft_< Vec2 > bottomLeft, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, Arg::leftCenter_< Vec2 > leftCenter, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, Arg::center_< Vec2 > center, const ColorF &color=Palette::White) const
 
bool draw (const TextStyle &textStyle, const RectF &area, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, double size, double x, double y, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, double size, const Vec2 &pos, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, double size, Arg::topLeft_< Vec2 > topLeft, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, double size, Arg::topCenter_< Vec2 > topCenter, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, double size, Arg::topRight_< Vec2 > topRight, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, double size, Arg::rightCenter_< Vec2 > rightCenter, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, double size, Arg::bottomRight_< Vec2 > bottomRight, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, double size, Arg::bottomCenter_< Vec2 > bottomCenter, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, double size, Arg::bottomLeft_< Vec2 > bottomLeft, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, double size, Arg::leftCenter_< Vec2 > leftCenter, const ColorF &color=Palette::White) const
 
RectF draw (const TextStyle &textStyle, double size, Arg::center_< Vec2 > center, const ColorF &color=Palette::White) const
 
bool draw (const TextStyle &textStyle, double size, const RectF &area, const ColorF &color=Palette::White) const
 
RectF drawBase (double x, double y, const ColorF &color=Palette::White) const
 
RectF drawBase (const Vec2 &pos=Vec2{ 0, 0 }, const ColorF &color=Palette::White) const
 
RectF drawBase (Arg::left_< Vec2 > left, const ColorF &color=Palette::White) const
 
RectF drawBase (Arg::center_< Vec2 > center, const ColorF &color=Palette::White) const
 
RectF drawBase (Arg::right_< Vec2 > right, const ColorF &color=Palette::White) const
 
RectF drawBase (double size, double x, double y, const ColorF &color=Palette::White) const
 
RectF drawBase (double size, const Vec2 &pos, const ColorF &color=Palette::White) const
 
RectF drawBase (double size, Arg::left_< Vec2 > left, const ColorF &color=Palette::White) const
 
RectF drawBase (double size, Arg::center_< Vec2 > center, const ColorF &color=Palette::White) const
 
RectF drawBase (double size, Arg::right_< Vec2 > right, const ColorF &color=Palette::White) const
 
RectF drawBase (const TextStyle &textStyle, double x, double y, const ColorF &color=Palette::White) const
 
RectF drawBase (const TextStyle &textStyle, const Vec2 &pos=Vec2{ 0, 0 }, const ColorF &color=Palette::White) const
 
RectF drawBase (const TextStyle &textStyle, Arg::left_< Vec2 > left, const ColorF &color=Palette::White) const
 
RectF drawBase (const TextStyle &textStyle, Arg::center_< Vec2 > center, const ColorF &color=Palette::White) const
 
RectF drawBase (const TextStyle &textStyle, Arg::right_< Vec2 > right, const ColorF &color=Palette::White) const
 
RectF drawBase (const TextStyle &textStyle, double size, double x, double y, const ColorF &color=Palette::White) const
 
RectF drawBase (const TextStyle &textStyle, double size, const Vec2 &pos, const ColorF &color=Palette::White) const
 
RectF drawBase (const TextStyle &textStyle, double size, Arg::left_< Vec2 > left, const ColorF &color=Palette::White) const
 
RectF drawBase (const TextStyle &textStyle, double size, Arg::center_< Vec2 > center, const ColorF &color=Palette::White) const
 
RectF drawBase (const TextStyle &textStyle, double size, Arg::right_< Vec2 > right, const ColorF &color=Palette::White) const
 
RectF drawAt (double x, double y, const ColorF &color=Palette::White) const
 中心位置を指定してテキストを描画します。 More...
 
RectF drawAt (const Vec2 &pos=Vec2{ 0, 0 }, const ColorF &color=Palette::White) const
 中心位置を指定してテキストを描画します。 More...
 
RectF drawAt (double size, double x, double y, const ColorF &color=Palette::White) const
 中心位置を指定してテキストを描画します。 More...
 
RectF drawAt (double size, const Vec2 &pos, const ColorF &color=Palette::White) const
 中心位置を指定してテキストを描画します。 More...
 
RectF drawAt (const TextStyle &textStyle, double x, double y, const ColorF &color=Palette::White) const
 中心位置を指定してテキストを描画します。 More...
 
RectF drawAt (const TextStyle &textStyle, const Vec2 &pos=Vec2{ 0, 0 }, const ColorF &color=Palette::White) const
 中心位置を指定してテキストを描画します。 More...
 
RectF drawAt (const TextStyle &textStyle, double size, double x, double y, const ColorF &color=Palette::White) const
 中心位置を指定してテキストを描画します。 More...
 
RectF drawAt (const TextStyle &textStyle, double size, const Vec2 &pos, const ColorF &color=Palette::White) const
 中心位置を指定してテキストを描画します。 More...
 
RectF drawBaseAt (double x, double y, const ColorF &color=Palette::White) const
 
RectF drawBaseAt (const Vec2 &pos=Vec2{ 0, 0 }, const ColorF &color=Palette::White) const
 
RectF drawBaseAt (double size, double x, double y, const ColorF &color=Palette::White) const
 
RectF drawBaseAt (double size, const Vec2 &pos, const ColorF &color=Palette::White) const
 
RectF drawBaseAt (const TextStyle &textStyle, double x, double y, const ColorF &color=Palette::White) const
 
RectF drawBaseAt (const TextStyle &textStyle, const Vec2 &pos=Vec2{ 0, 0 }, const ColorF &color=Palette::White) const
 
RectF drawBaseAt (const TextStyle &textStyle, double size, double x, double y, const ColorF &color=Palette::White) const
 
RectF drawBaseAt (const TextStyle &textStyle, double size, const Vec2 &pos, const ColorF &color=Palette::White) const
 
void paint (Image &dst, double x, double y, const Color &color=Palette::White) const
 
void paint (Image &dst, const Vec2 &pos, const Color &color=Palette::White) const
 
void stamp (Image &dst, double x, double y, const Color &color=Palette::White) const
 
void stamp (Image &dst, const Vec2 &pos, const Color &color=Palette::White) const
 
void overwrite (Image &dst, double x, double y) const
 
void overwrite (Image &dst, const Vec2 &pos) const
 
void paintAt (Image &dst, double x, double y, const Color &color=Palette::White) const
 
void paintAt (Image &dst, const Vec2 &pos, const Color &color=Palette::White) const
 
void stampAt (Image &dst, double x, double y, const Color &color=Palette::White) const
 
void stampAt (Image &dst, const Vec2 &pos, const Color &color=Palette::White) const
 
void overwriteAt (Image &dst, double x, double y) const
 
void overwriteAt (Image &dst, const Vec2 &pos) const
 

Public Attributes

Font font
 
String text
 
Array< GlyphClusterclusters
 

Constructor & Destructor Documentation

◆ DrawableText() [1/3]

SIV3D_NODISCARD_CXX20 s3d::DrawableText::DrawableText ( )
default

◆ DrawableText() [2/3]

SIV3D_NODISCARD_CXX20 s3d::DrawableText::DrawableText ( const Font _font,
const String _text 
)

◆ DrawableText() [3/3]

SIV3D_NODISCARD_CXX20 s3d::DrawableText::DrawableText ( const Font _font,
String &&  _text 
)

Member Function Documentation

◆ draw() [1/48]

RectF s3d::DrawableText::draw ( Arg::bottomCenter_< Vec2 bottomCenter,
const ColorF color = Palette::White 
) const

◆ draw() [2/48]

RectF s3d::DrawableText::draw ( Arg::bottomLeft_< Vec2 bottomLeft,
const ColorF color = Palette::White 
) const

◆ draw() [3/48]

RectF s3d::DrawableText::draw ( Arg::bottomRight_< Vec2 bottomRight,
const ColorF color = Palette::White 
) const

◆ draw() [4/48]

RectF s3d::DrawableText::draw ( Arg::center_< Vec2 center,
const ColorF color = Palette::White 
) const

◆ draw() [5/48]

RectF s3d::DrawableText::draw ( Arg::leftCenter_< Vec2 leftCenter,
const ColorF color = Palette::White 
) const

◆ draw() [6/48]

RectF s3d::DrawableText::draw ( Arg::rightCenter_< Vec2 rightCenter,
const ColorF color = Palette::White 
) const

◆ draw() [7/48]

RectF s3d::DrawableText::draw ( Arg::topCenter_< Vec2 topCenter,
const ColorF color = Palette::White 
) const

◆ draw() [8/48]

RectF s3d::DrawableText::draw ( Arg::topLeft_< Vec2 topLeft,
const ColorF color = Palette::White 
) const

◆ draw() [9/48]

RectF s3d::DrawableText::draw ( Arg::topRight_< Vec2 topRight,
const ColorF color = Palette::White 
) const

◆ draw() [10/48]

bool s3d::DrawableText::draw ( const RectF area,
const ColorF color = Palette::White 
) const

◆ draw() [11/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
Arg::bottomCenter_< Vec2 bottomCenter,
const ColorF color = Palette::White 
) const

◆ draw() [12/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
Arg::bottomLeft_< Vec2 bottomLeft,
const ColorF color = Palette::White 
) const

◆ draw() [13/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
Arg::bottomRight_< Vec2 bottomRight,
const ColorF color = Palette::White 
) const

◆ draw() [14/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
Arg::center_< Vec2 center,
const ColorF color = Palette::White 
) const

◆ draw() [15/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
Arg::leftCenter_< Vec2 leftCenter,
const ColorF color = Palette::White 
) const

◆ draw() [16/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
Arg::rightCenter_< Vec2 rightCenter,
const ColorF color = Palette::White 
) const

◆ draw() [17/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
Arg::topCenter_< Vec2 topCenter,
const ColorF color = Palette::White 
) const

◆ draw() [18/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
Arg::topLeft_< Vec2 topLeft,
const ColorF color = Palette::White 
) const

◆ draw() [19/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
Arg::topRight_< Vec2 topRight,
const ColorF color = Palette::White 
) const

◆ draw() [20/48]

bool s3d::DrawableText::draw ( const TextStyle textStyle,
const RectF area,
const ColorF color = Palette::White 
) const

◆ draw() [21/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
const Vec2 pos = Vec2{ 0, 0 },
const ColorF color = Palette::White 
) const

◆ draw() [22/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
double  size,
Arg::bottomCenter_< Vec2 bottomCenter,
const ColorF color = Palette::White 
) const

◆ draw() [23/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
double  size,
Arg::bottomLeft_< Vec2 bottomLeft,
const ColorF color = Palette::White 
) const

◆ draw() [24/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
double  size,
Arg::bottomRight_< Vec2 bottomRight,
const ColorF color = Palette::White 
) const

◆ draw() [25/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
double  size,
Arg::center_< Vec2 center,
const ColorF color = Palette::White 
) const

◆ draw() [26/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
double  size,
Arg::leftCenter_< Vec2 leftCenter,
const ColorF color = Palette::White 
) const

◆ draw() [27/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
double  size,
Arg::rightCenter_< Vec2 rightCenter,
const ColorF color = Palette::White 
) const

◆ draw() [28/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
double  size,
Arg::topCenter_< Vec2 topCenter,
const ColorF color = Palette::White 
) const

◆ draw() [29/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
double  size,
Arg::topLeft_< Vec2 topLeft,
const ColorF color = Palette::White 
) const

◆ draw() [30/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
double  size,
Arg::topRight_< Vec2 topRight,
const ColorF color = Palette::White 
) const

◆ draw() [31/48]

bool s3d::DrawableText::draw ( const TextStyle textStyle,
double  size,
const RectF area,
const ColorF color = Palette::White 
) const

◆ draw() [32/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
double  size,
const Vec2 pos,
const ColorF color = Palette::White 
) const

◆ draw() [33/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
double  size,
double  x,
double  y,
const ColorF color = Palette::White 
) const

◆ draw() [34/48]

RectF s3d::DrawableText::draw ( const TextStyle textStyle,
double  x,
double  y,
const ColorF color = Palette::White 
) const

◆ draw() [35/48]

RectF s3d::DrawableText::draw ( const Vec2 pos = Vec2{ 0, 0 },
const ColorF color = Palette::White 
) const

◆ draw() [36/48]

RectF s3d::DrawableText::draw ( double  size,
Arg::bottomCenter_< Vec2 bottomCenter,
const ColorF color = Palette::White 
) const

◆ draw() [37/48]

RectF s3d::DrawableText::draw ( double  size,
Arg::bottomLeft_< Vec2 bottomLeft,
const ColorF color = Palette::White 
) const

◆ draw() [38/48]

RectF s3d::DrawableText::draw ( double  size,
Arg::bottomRight_< Vec2 bottomRight,
const ColorF color = Palette::White 
) const

◆ draw() [39/48]

RectF s3d::DrawableText::draw ( double  size,
Arg::center_< Vec2 center,
const ColorF color = Palette::White 
) const

◆ draw() [40/48]

RectF s3d::DrawableText::draw ( double  size,
Arg::leftCenter_< Vec2 leftCenter,
const ColorF color = Palette::White 
) const

◆ draw() [41/48]

RectF s3d::DrawableText::draw ( double  size,
Arg::rightCenter_< Vec2 rightCenter,
const ColorF color = Palette::White 
) const

◆ draw() [42/48]

RectF s3d::DrawableText::draw ( double  size,
Arg::topCenter_< Vec2 topCenter,
const ColorF color = Palette::White 
) const

◆ draw() [43/48]

RectF s3d::DrawableText::draw ( double  size,
Arg::topLeft_< Vec2 topLeft,
const ColorF color = Palette::White 
) const

◆ draw() [44/48]

RectF s3d::DrawableText::draw ( double  size,
Arg::topRight_< Vec2 topRight,
const ColorF color = Palette::White 
) const

◆ draw() [45/48]

bool s3d::DrawableText::draw ( double  size,
const RectF area,
const ColorF color = Palette::White 
) const

◆ draw() [46/48]

RectF s3d::DrawableText::draw ( double  size,
const Vec2 pos,
const ColorF color = Palette::White 
) const

◆ draw() [47/48]

RectF s3d::DrawableText::draw ( double  size,
double  x,
double  y,
const ColorF color = Palette::White 
) const

◆ draw() [48/48]

RectF s3d::DrawableText::draw ( double  x,
double  y,
const ColorF color = Palette::White 
) const

◆ drawAt() [1/8]

RectF s3d::DrawableText::drawAt ( const TextStyle textStyle,
const Vec2 pos = Vec2{ 0, 0 },
const ColorF color = Palette::White 
) const

中心位置を指定してテキストを描画します。

Parameters
textStyleテキストのスタイル
pos描画する中心の座標
colorテキストの色
Returns
テキストが描画された領域

◆ drawAt() [2/8]

RectF s3d::DrawableText::drawAt ( const TextStyle textStyle,
double  size,
const Vec2 pos,
const ColorF color = Palette::White 
) const

中心位置を指定してテキストを描画します。

Parameters
textStyleテキストのスタイル
sizeテキストのサイズ
pos描画する中心の座標
colorテキストの色
Returns
テキストが描画された領域

◆ drawAt() [3/8]

RectF s3d::DrawableText::drawAt ( const TextStyle textStyle,
double  size,
double  x,
double  y,
const ColorF color = Palette::White 
) const

中心位置を指定してテキストを描画します。

Parameters
textStyleテキストのスタイル
sizeテキストのサイズ
x描画する中心の X 座標
y描画する中心の Y 座標
colorテキストの色
Returns
テキストが描画された領域

◆ drawAt() [4/8]

RectF s3d::DrawableText::drawAt ( const TextStyle textStyle,
double  x,
double  y,
const ColorF color = Palette::White 
) const

中心位置を指定してテキストを描画します。

Parameters
textStyleテキストのスタイル
x描画する中心の X 座標
y描画する中心の Y 座標
colorテキストの色
Returns
テキストが描画された領域

◆ drawAt() [5/8]

RectF s3d::DrawableText::drawAt ( const Vec2 pos = Vec2{ 0, 0 },
const ColorF color = Palette::White 
) const

中心位置を指定してテキストを描画します。

Parameters
pos描画する中心の座標
colorテキストの色
Returns
テキストが描画された領域

◆ drawAt() [6/8]

RectF s3d::DrawableText::drawAt ( double  size,
const Vec2 pos,
const ColorF color = Palette::White 
) const

中心位置を指定してテキストを描画します。

Parameters
sizeテキストのサイズ
pos描画する中心の座標
colorテキストの色
Returns
テキストが描画された領域

◆ drawAt() [7/8]

RectF s3d::DrawableText::drawAt ( double  size,
double  x,
double  y,
const ColorF color = Palette::White 
) const

中心位置を指定してテキストを描画します。

Parameters
sizeテキストのサイズ
x描画する中心の X 座標
y描画する中心の Y 座標
colorテキストの色
Returns
テキストが描画された領域

◆ drawAt() [8/8]

RectF s3d::DrawableText::drawAt ( double  x,
double  y,
const ColorF color = Palette::White 
) const

中心位置を指定してテキストを描画します。

Parameters
x描画する中心の X 座標
y描画する中心の Y 座標
colorテキストの色
Returns
テキストが描画された領域

◆ drawBase() [1/20]

RectF s3d::DrawableText::drawBase ( Arg::center_< Vec2 center,
const ColorF color = Palette::White 
) const

◆ drawBase() [2/20]

RectF s3d::DrawableText::drawBase ( Arg::left_< Vec2 left,
const ColorF color = Palette::White 
) const

◆ drawBase() [3/20]

RectF s3d::DrawableText::drawBase ( Arg::right_< Vec2 right,
const ColorF color = Palette::White 
) const

◆ drawBase() [4/20]

RectF s3d::DrawableText::drawBase ( const TextStyle textStyle,
Arg::center_< Vec2 center,
const ColorF color = Palette::White 
) const

◆ drawBase() [5/20]

RectF s3d::DrawableText::drawBase ( const TextStyle textStyle,
Arg::left_< Vec2 left,
const ColorF color = Palette::White 
) const

◆ drawBase() [6/20]

RectF s3d::DrawableText::drawBase ( const TextStyle textStyle,
Arg::right_< Vec2 right,
const ColorF color = Palette::White 
) const

◆ drawBase() [7/20]

RectF s3d::DrawableText::drawBase ( const TextStyle textStyle,
const Vec2 pos = Vec2{ 0, 0 },
const ColorF color = Palette::White 
) const

◆ drawBase() [8/20]

RectF s3d::DrawableText::drawBase ( const TextStyle textStyle,
double  size,
Arg::center_< Vec2 center,
const ColorF color = Palette::White 
) const

◆ drawBase() [9/20]

RectF s3d::DrawableText::drawBase ( const TextStyle textStyle,
double  size,
Arg::left_< Vec2 left,
const ColorF color = Palette::White 
) const

◆ drawBase() [10/20]

RectF s3d::DrawableText::drawBase ( const TextStyle textStyle,
double  size,
Arg::right_< Vec2 right,
const ColorF color = Palette::White 
) const

◆ drawBase() [11/20]

RectF s3d::DrawableText::drawBase ( const TextStyle textStyle,
double  size,
const Vec2 pos,
const ColorF color = Palette::White 
) const

◆ drawBase() [12/20]

RectF s3d::DrawableText::drawBase ( const TextStyle textStyle,
double  size,
double  x,
double  y,
const ColorF color = Palette::White 
) const

◆ drawBase() [13/20]

RectF s3d::DrawableText::drawBase ( const TextStyle textStyle,
double  x,
double  y,
const ColorF color = Palette::White 
) const

◆ drawBase() [14/20]

RectF s3d::DrawableText::drawBase ( const Vec2 pos = Vec2{ 0, 0 },
const ColorF color = Palette::White 
) const

◆ drawBase() [15/20]

RectF s3d::DrawableText::drawBase ( double  size,
Arg::center_< Vec2 center,
const ColorF color = Palette::White 
) const

◆ drawBase() [16/20]

RectF s3d::DrawableText::drawBase ( double  size,
Arg::left_< Vec2 left,
const ColorF color = Palette::White 
) const

◆ drawBase() [17/20]

RectF s3d::DrawableText::drawBase ( double  size,
Arg::right_< Vec2 right,
const ColorF color = Palette::White 
) const

◆ drawBase() [18/20]

RectF s3d::DrawableText::drawBase ( double  size,
const Vec2 pos,
const ColorF color = Palette::White 
) const

◆ drawBase() [19/20]

RectF s3d::DrawableText::drawBase ( double  size,
double  x,
double  y,
const ColorF color = Palette::White 
) const

◆ drawBase() [20/20]

RectF s3d::DrawableText::drawBase ( double  x,
double  y,
const ColorF color = Palette::White 
) const

◆ drawBaseAt() [1/8]

RectF s3d::DrawableText::drawBaseAt ( const TextStyle textStyle,
const Vec2 pos = Vec2{ 0, 0 },
const ColorF color = Palette::White 
) const

◆ drawBaseAt() [2/8]

RectF s3d::DrawableText::drawBaseAt ( const TextStyle textStyle,
double  size,
const Vec2 pos,
const ColorF color = Palette::White 
) const

◆ drawBaseAt() [3/8]

RectF s3d::DrawableText::drawBaseAt ( const TextStyle textStyle,
double  size,
double  x,
double  y,
const ColorF color = Palette::White 
) const

◆ drawBaseAt() [4/8]

RectF s3d::DrawableText::drawBaseAt ( const TextStyle textStyle,
double  x,
double  y,
const ColorF color = Palette::White 
) const

◆ drawBaseAt() [5/8]

RectF s3d::DrawableText::drawBaseAt ( const Vec2 pos = Vec2{ 0, 0 },
const ColorF color = Palette::White 
) const

◆ drawBaseAt() [6/8]

RectF s3d::DrawableText::drawBaseAt ( double  size,
const Vec2 pos,
const ColorF color = Palette::White 
) const

◆ drawBaseAt() [7/8]

RectF s3d::DrawableText::drawBaseAt ( double  size,
double  x,
double  y,
const ColorF color = Palette::White 
) const

◆ drawBaseAt() [8/8]

RectF s3d::DrawableText::drawBaseAt ( double  x,
double  y,
const ColorF color = Palette::White 
) const

◆ getXAdvances() [1/2]

Array<double> s3d::DrawableText::getXAdvances ( ) const

◆ getXAdvances() [2/2]

Array<double> s3d::DrawableText::getXAdvances ( double  size) const

◆ overwrite() [1/2]

void s3d::DrawableText::overwrite ( Image dst,
const Vec2 pos 
) const

◆ overwrite() [2/2]

void s3d::DrawableText::overwrite ( Image dst,
double  x,
double  y 
) const

◆ overwriteAt() [1/2]

void s3d::DrawableText::overwriteAt ( Image dst,
const Vec2 pos 
) const

◆ overwriteAt() [2/2]

void s3d::DrawableText::overwriteAt ( Image dst,
double  x,
double  y 
) const

◆ paint() [1/2]

void s3d::DrawableText::paint ( Image dst,
const Vec2 pos,
const Color color = Palette::White 
) const

◆ paint() [2/2]

void s3d::DrawableText::paint ( Image dst,
double  x,
double  y,
const Color color = Palette::White 
) const

◆ paintAt() [1/2]

void s3d::DrawableText::paintAt ( Image dst,
const Vec2 pos,
const Color color = Palette::White 
) const

◆ paintAt() [2/2]

void s3d::DrawableText::paintAt ( Image dst,
double  x,
double  y,
const Color color = Palette::White 
) const

◆ region() [1/22]

RectF s3d::DrawableText::region ( Arg::bottomCenter_< Vec2 bottomCenter) const

◆ region() [2/22]

RectF s3d::DrawableText::region ( Arg::bottomLeft_< Vec2 bottomLeft) const

◆ region() [3/22]

RectF s3d::DrawableText::region ( Arg::bottomRight_< Vec2 bottomRight) const

◆ region() [4/22]

RectF s3d::DrawableText::region ( Arg::center_< Vec2 center) const

◆ region() [5/22]

RectF s3d::DrawableText::region ( Arg::leftCenter_< Vec2 leftCenter) const

◆ region() [6/22]

RectF s3d::DrawableText::region ( Arg::rightCenter_< Vec2 rightCenter) const

◆ region() [7/22]

RectF s3d::DrawableText::region ( Arg::topCenter_< Vec2 topCenter) const

◆ region() [8/22]

RectF s3d::DrawableText::region ( Arg::topLeft_< Vec2 topLeft) const

◆ region() [9/22]

RectF s3d::DrawableText::region ( Arg::topRight_< Vec2 topRight) const

◆ region() [10/22]

RectF s3d::DrawableText::region ( double  size,
Arg::bottomCenter_< Vec2 bottomCenter 
) const

◆ region() [11/22]

RectF s3d::DrawableText::region ( double  size,
Arg::bottomLeft_< Vec2 bottomLeft 
) const

◆ region() [12/22]

RectF s3d::DrawableText::region ( double  size,
Arg::bottomRight_< Vec2 bottomRight 
) const

◆ region() [13/22]

RectF s3d::DrawableText::region ( double  size,
Arg::center_< Vec2 center 
) const

◆ region() [14/22]

RectF s3d::DrawableText::region ( double  size,
Arg::leftCenter_< Vec2 leftCenter 
) const

◆ region() [15/22]

RectF s3d::DrawableText::region ( double  size,
Arg::rightCenter_< Vec2 rightCenter 
) const

◆ region() [16/22]

RectF s3d::DrawableText::region ( double  size,
Arg::topCenter_< Vec2 topCenter 
) const

◆ region() [17/22]

RectF s3d::DrawableText::region ( double  size,
Arg::topLeft_< Vec2 topLeft 
) const

◆ region() [18/22]

RectF s3d::DrawableText::region ( double  size,
Arg::topRight_< Vec2 topRight 
) const

◆ region() [19/22]

RectF s3d::DrawableText::region ( double  size,
double  x,
double  y 
) const

◆ region() [20/22]

RectF s3d::DrawableText::region ( double  size,
Vec2  pos = Vec2{ 0, 0 } 
) const

◆ region() [21/22]

RectF s3d::DrawableText::region ( double  x,
double  y 
) const

テキストが描画される領域を返します。

Parameters
x描画する左上の X 座標
y描画する左上の Y 座標
Returns
テキストが描画される領域

◆ region() [22/22]

RectF s3d::DrawableText::region ( Vec2  pos = Vec2{ 0, 0 }) const

テキストが描画される領域を返します。

Parameters
pos描画する左上の座標
Returns
テキストが描画される領域

◆ regionAt() [1/4]

RectF s3d::DrawableText::regionAt ( double  size,
double  x,
double  y 
) const

◆ regionAt() [2/4]

RectF s3d::DrawableText::regionAt ( double  size,
Vec2  pos = Vec2{ 0, 0 } 
) const

◆ regionAt() [3/4]

RectF s3d::DrawableText::regionAt ( double  x,
double  y 
) const

◆ regionAt() [4/4]

RectF s3d::DrawableText::regionAt ( Vec2  pos = Vec2{ 0, 0 }) const

◆ regionBase() [1/10]

RectF s3d::DrawableText::regionBase ( Arg::center_< Vec2 center) const

◆ regionBase() [2/10]

RectF s3d::DrawableText::regionBase ( Arg::left_< Vec2 left) const

◆ regionBase() [3/10]

RectF s3d::DrawableText::regionBase ( Arg::right_< Vec2 right) const

◆ regionBase() [4/10]

RectF s3d::DrawableText::regionBase ( double  size,
Arg::center_< Vec2 center 
) const

◆ regionBase() [5/10]

RectF s3d::DrawableText::regionBase ( double  size,
Arg::left_< Vec2 left 
) const

◆ regionBase() [6/10]

RectF s3d::DrawableText::regionBase ( double  size,
Arg::right_< Vec2 right 
) const

◆ regionBase() [7/10]

RectF s3d::DrawableText::regionBase ( double  size,
double  x,
double  y 
) const

◆ regionBase() [8/10]

RectF s3d::DrawableText::regionBase ( double  size,
Vec2  pos = Vec2{ 0, 0 } 
) const

◆ regionBase() [9/10]

RectF s3d::DrawableText::regionBase ( double  x,
double  y 
) const

◆ regionBase() [10/10]

RectF s3d::DrawableText::regionBase ( Vec2  pos = Vec2{ 0, 0 }) const

◆ regionBaseAt() [1/4]

RectF s3d::DrawableText::regionBaseAt ( double  size,
double  x,
double  y 
) const

◆ regionBaseAt() [2/4]

RectF s3d::DrawableText::regionBaseAt ( double  size,
Vec2  pos = Vec2{ 0, 0 } 
) const

◆ regionBaseAt() [3/4]

RectF s3d::DrawableText::regionBaseAt ( double  x,
double  y 
) const

◆ regionBaseAt() [4/4]

RectF s3d::DrawableText::regionBaseAt ( Vec2  pos = Vec2{ 0, 0 }) const

◆ stamp() [1/2]

void s3d::DrawableText::stamp ( Image dst,
const Vec2 pos,
const Color color = Palette::White 
) const

◆ stamp() [2/2]

void s3d::DrawableText::stamp ( Image dst,
double  x,
double  y,
const Color color = Palette::White 
) const

◆ stampAt() [1/2]

void s3d::DrawableText::stampAt ( Image dst,
const Vec2 pos,
const Color color = Palette::White 
) const

◆ stampAt() [2/2]

void s3d::DrawableText::stampAt ( Image dst,
double  x,
double  y,
const Color color = Palette::White 
) const

Member Data Documentation

◆ clusters

Array<GlyphCluster> s3d::DrawableText::clusters

◆ font

Font s3d::DrawableText::font

◆ text

String s3d::DrawableText::text

The documentation for this struct was generated from the following file: