CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
行编辑类 更多...
Public 成员函数 | |
CEditLine (CEditLineStyle *style) | |
~CEditLine () | |
void | OnMessageEdit (UINT message, WPARAM wp, LPARAM lp) |
bool | IsFontChange () const |
void | SetFontChange (bool changed) |
int | InsertChars (int pos, LPCTSTR text, int count=-1, GFont *font=NULL, COLORREF *color=NULL) |
int | AppendPreimeChars (LPCTSTR text, int count=-1, GFont *font=NULL, COLORREF *color=NULL) |
void | EndPreInput (LPCTSTR text, int count=-1) |
BeString | GetText () const |
LPCTSTR | GetTextPtr (int pos) |
BOOL | IsEmpty () const |
void | SetCharStyle (int pos, int count, GFont *font=NULL, COLORREF *color=NULL) |
void | ClearCharStyle () |
清除文本自定义风格 | |
int | CharCount () const |
int | FindLocateCoord (RECT &rcText, int dx, int dy) |
int | GetPixelWidth (int count) const |
BOOL | DeleteChars (int pos, int count) |
BOOL | DeleteSelectChars () |
void | SelectRange (int pos, int count) |
void | SetErrorCodeState (int code) |
int | ErrorCodeState () const |
int | UpdateWordWrapLine (int width) |
重新计算换行信息,在视窗区域变化和每插入和删除一个字符时触发 | |
void | UpdateCharsSize (int pos, int count) |
void | UpdateSurfaceCharsSize (ISurface *pSurface, int pos, int count) |
int | CharCursorPos () const |
void | SetCharCursorPos (int cursor) |
int | CharFixHeadPos () const |
void | SetCharFixHeadPos (int pos) |
int | LineBottomPos () const |
void | SetLineBottomPos (int pos) |
int | GetLineWidth () const |
int | GetLineHeight (BOOL isSingleLine=FALSE) const |
int | GetPreInputPos () const |
int | GetPreInputLength () const |
int | GetWraplineHeight (int sub_line, BOOL nearTop) const |
int | GetWraplineIndex (int cursor) const |
int | GetWraplineCount () const |
void | AppendSelectText (BasicStringBuffer &buffer) const |
void | AppendText (BeString &buffer) const |
void | DrawLineCursor (ISurface *psurface, int paintState, int dx, RECT rcLine, COLORSTYLE &textcolor, POINT &ptCursor, BOOL isFocus=FALSE) |
void | DrawLineTextOut (ISurface *psurface, int paintState, int dx, RECT rcLine, COLORREF crbgSelected, COLORSTYLE &textcolor, UINT txtFlags) |
Protected 成员函数 | |
void | DrawWrapLineTextOut (ISurface *psurface, int paintState, int dx, RECT rcLine, COLORREF crbgSelected, COLORSTYLE &textcolor, UINT txtFlags) |
void | DrawTextRangePos (ISurface *psurface, GFont *defaultFont, int start, int end, int &x0, int &y0, const TCHAR *&p, RECT &rcLine, COLORREF &textcolor) |
void | insertCharsInternal (int pos, LPCTSTR text, int count, GFont *font, COLORREF *color) |
int | GetBytesLength (LPCTSTR text, int pos, int count) |
BOOL | CheckDecimal (const TCHAR *text) |
int | PreCheckBeforeInsert (int pos, LPCTSTR text, int count, UINT textFlag, BasicStringBuffer &buffer) |
void | GetCharFont (int pos, GFont *&font) |
CharStyle * | GetCharStyle2 (int pos) const |
Protected 属性 | |
CEditLineStyle * | m_style |
BeString | m_text |
std::vector< CharSize > | m_sizes |
std::vector< CharStyle * > | m_charStyle |
std::vector< int > | m_charState |
bool | m_is_font_size_change |
SIZE | m_lineSize |
int | m_cursor_pos |
int | m_cursor_offset |
int | m_select_start |
int | m_select_count |
int | m_select_rect_left |
int | m_select_rect_width |
int | m_stringBytes |
int | m_stringCount |
int | m_preInputPos |
int | m_preInputCount |
int | m_fix_head_pos |
int | m_nLineBottomPos |
int | m_nErrorCode |
std::vector< WordWrapLineInfo > | m_wordwrap |
int | m_fisrt_printf_pos |
int | m_fisrt_printf_head |
行编辑类
BUI::CEditLine::CEditLine | ( | CEditLineStyle * | style | ) |
BUI::CEditLine::~CEditLine | ( | ) |
int BUI::CEditLine::AppendPreimeChars | ( | LPCTSTR | text, |
int | count = -1 , |
||
GFont * | font = NULL , |
||
COLORREF * | color = NULL |
||
) |
void BUI::CEditLine::AppendSelectText | ( | BasicStringBuffer & | buffer | ) | const |
void BUI::CEditLine::AppendText | ( | BeString & | buffer | ) | const |
int BUI::CEditLine::CharCount | ( | ) | const |
int BUI::CEditLine::CharCursorPos | ( | ) | const |
int BUI::CEditLine::CharFixHeadPos | ( | ) | const |
void BUI::CEditLine::ClearCharStyle | ( | ) |
清除文本自定义风格
BOOL BUI::CEditLine::DeleteChars | ( | int | pos, |
int | count | ||
) |
BOOL BUI::CEditLine::DeleteSelectChars | ( | ) |
void BUI::CEditLine::DrawLineCursor | ( | ISurface * | psurface, |
int | paintState, | ||
int | dx, | ||
RECT | rcLine, | ||
COLORSTYLE & | textcolor, | ||
POINT & | ptCursor, | ||
BOOL | isFocus = FALSE |
||
) |
void BUI::CEditLine::DrawLineTextOut | ( | ISurface * | psurface, |
int | paintState, | ||
int | dx, | ||
RECT | rcLine, | ||
COLORREF | crbgSelected, | ||
COLORSTYLE & | textcolor, | ||
UINT | txtFlags | ||
) |
|
protected |
|
protected |
void BUI::CEditLine::EndPreInput | ( | LPCTSTR | text, |
int | count = -1 |
||
) |
int BUI::CEditLine::ErrorCodeState | ( | ) | const |
int BUI::CEditLine::FindLocateCoord | ( | RECT & | rcText, |
int | dx, | ||
int | dy | ||
) |
|
protected |
|
protected |
|
protected |
int BUI::CEditLine::GetLineWidth | ( | ) | const |
int BUI::CEditLine::GetPixelWidth | ( | int | count | ) | const |
int BUI::CEditLine::GetPreInputLength | ( | ) | const |
int BUI::CEditLine::GetPreInputPos | ( | ) | const |
BeString BUI::CEditLine::GetText | ( | ) | const |
LPCTSTR BUI::CEditLine::GetTextPtr | ( | int | pos | ) |
int BUI::CEditLine::GetWraplineCount | ( | ) | const |
int BUI::CEditLine::GetWraplineHeight | ( | int | sub_line, |
BOOL | nearTop | ||
) | const |
int BUI::CEditLine::GetWraplineIndex | ( | int | cursor | ) | const |
int BUI::CEditLine::InsertChars | ( | int | pos, |
LPCTSTR | text, | ||
int | count = -1 , |
||
GFont * | font = NULL , |
||
COLORREF * | color = NULL |
||
) |
|
protected |
BOOL BUI::CEditLine::IsEmpty | ( | ) | const |
bool BUI::CEditLine::IsFontChange | ( | ) | const |
int BUI::CEditLine::LineBottomPos | ( | ) | const |
|
protected |
void BUI::CEditLine::SelectRange | ( | int | pos, |
int | count | ||
) |
void BUI::CEditLine::SetCharCursorPos | ( | int | cursor | ) |
void BUI::CEditLine::SetCharFixHeadPos | ( | int | pos | ) |
void BUI::CEditLine::SetCharStyle | ( | int | pos, |
int | count, | ||
GFont * | font = NULL , |
||
COLORREF * | color = NULL |
||
) |
void BUI::CEditLine::SetErrorCodeState | ( | int | code | ) |
void BUI::CEditLine::SetFontChange | ( | bool | changed | ) |
void BUI::CEditLine::SetLineBottomPos | ( | int | pos | ) |
void BUI::CEditLine::UpdateCharsSize | ( | int | pos, |
int | count | ||
) |
void BUI::CEditLine::UpdateSurfaceCharsSize | ( | ISurface * | pSurface, |
int | pos, | ||
int | count | ||
) |
int BUI::CEditLine::UpdateWordWrapLine | ( | int | width | ) |
重新计算换行信息,在视窗区域变化和每插入和删除一个字符时触发
width |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |