PDFTool
7.0
|
ページに描画されるテキストボックスを表現するクラスです。
テキストボックスをにテキストを書き、テキストボックスをコンテントに配置します。
More...
#include <PtlTextBox.h>
Public Types | |
enum | MODE { MODE_HORIZONTAL = 0, MODE_VERTICAL = 1 } |
横書き/縦書き More... | |
Public Member Functions | |
int | getHandle () const |
PtlTextBox () | |
コンストラクタ More... | |
PtlTextBox (const PtlTextBox &obj) | |
コピーコンストラクタ More... | |
‾PtlTextBox () | |
デストラクタ | |
PtlTextBox & | operator= (const PtlTextBox &obj) |
コピーオペレータ More... | |
void | setWritingMode (MODE mode) |
横書き/縦書きを設定。 More... | |
void | writeString (const PtlParamString &str, const PtlParamWriteStringTextBox ¶mWriteString) |
文字列を出力。 More... | |
void | writeStringNL (const PtlParamString &str, const PtlParamWriteStringTextBox ¶mWriteString) |
文字列を出力して改行。 More... | |
void | writeNL () |
改行。 More... | |
void | writeNL (float size) |
改行。 More... | |
void | terminate () |
テキストボックスを終了。 More... | |
void | setOutlineColor (const PtlColor &outlineColor) |
テキストボックスの縁取り色を設定。 More... | |
void | setBackColor (const PtlColor &bkColor) |
背景色を設定。 More... | |
void | setOpacity (float opacity) |
不透明度を設定。 More... | |
void | fitToBBox (bool fit) |
TextBoxのサイズをテキストのBBoxに合わせるかどうかの設定。 More... | |
ページに描画されるテキストボックスを表現するクラスです。
テキストボックスをにテキストを書き、テキストボックスをコンテントに配置します。
PdfTk::PtlTextBox::PtlTextBox | ( | ) |
コンストラクタ
PtlException |
PdfTk::PtlTextBox::PtlTextBox | ( | const PtlTextBox & | obj | ) |
void PdfTk::PtlTextBox::fitToBBox | ( | bool | fit | ) |
TextBoxのサイズをテキストのBBoxに合わせるかどうかの設定。
※ 設定しない場合はデフォルト値としてfalseが使用されます。
fit | trueなら合わせる。 |
PtlException |
PtlTextBox& PdfTk::PtlTextBox::operator= | ( | const PtlTextBox & | obj | ) |
コピーオペレータ
obj | コピー元オブジェクト。 |
void PdfTk::PtlTextBox::setBackColor | ( | const PtlColor & | bkColor | ) |
void PdfTk::PtlTextBox::setOpacity | ( | float | opacity | ) |
不透明度を設定。
※ 設定しない場合はデフォルト値として1.0が設定されます。
opacity | 0.0 〜 1.0。0.0が透明、1.0が不透明。 |
PtlException |
void PdfTk::PtlTextBox::setOutlineColor | ( | const PtlColor & | outlineColor | ) |
void PdfTk::PtlTextBox::setWritingMode | ( | MODE | mode | ) |
横書き/縦書きを設定。
横書き/縦書きを設定します。
途中で変更は出来ません。
※ 設定しない場合はデフォルト値としてMODE_HORIZONTALが使用されます。
mode | 横書きか縦書き。MODEのいずれか。 |
PtlException |
void PdfTk::PtlTextBox::terminate | ( | ) |
void PdfTk::PtlTextBox::writeNL | ( | ) |
void PdfTk::PtlTextBox::writeNL | ( | float | size | ) |
void PdfTk::PtlTextBox::writeString | ( | const PtlParamString & | str, |
const PtlParamWriteStringTextBox & | paramWriteString | ||
) |
void PdfTk::PtlTextBox::writeStringNL | ( | const PtlParamString & | str, |
const PtlParamWriteStringTextBox & | paramWriteString | ||
) |