UTFWin::ITextEdit class

Base classes

class UTFWinObject

Public types

enum (anonymous) { kFlagReadOnly = 0x0001, kFlagAcceptReturn = 0x0002, kFlagAcceptInsertKey = 0x0004, kFlagOverwrite = 0x0008, kFlagHideInactiveSelection = 0x0010, kFlagHideCaret = 0x0020, kFlagEnableClipboard = 0x0040, kFlagPasswordMode = 0x0080 }

Public static variables

static const uint32_t TYPE

Public static functions

static auto Create() -> ITextEdit*

Public functions

auto ToWindow() -> IWindow* pure virtual
Returns the IWindow that represents this text edit.
auto GetTextStyleID() const -> uint32_t pure virtual
void SetTextStyleID(uint32_t styleID) pure virtual
auto GetColor(TextColors index) const -> Color pure virtual
Gets the component color for the given text type.
void SetColor(TextColors index, Color color) pure virtual
Specifies the component colors for the given text mode.
auto GetBorderWidth() const -> const Math::Rectangle& pure virtual
void SetBorderWidth(const Math::Rectangle& widths) pure virtual
auto GetCaretPeriod() const -> float pure virtual
Get the caret blink period.
void SetCaretPeriod(float period) pure virtual
Set the caret blink period.
auto GetField620h() const -> float pure virtual
void SetField620h(float value) pure virtual
auto GetWrapMode() const -> TextEditWarpMode pure virtual
void SetWrapMode(TextEditWarpMode wrapMode) pure virtual
void SetTextEditFlag(int flag, bool value) pure virtual
auto GetTextEditFlag(int flag) const -> bool pure virtual
auto GetTextEditFlags() const -> int pure virtual
auto GetTextLength() const -> int pure virtual
auto GetText() const -> const char16_t* pure virtual
auto GetTextFragment(string16& dst, int startIndex, int length) const -> int pure virtual
auto GetTextFragment(char16_t* dst, int startIndex, int length) const -> int pure virtual
auto SetText(const char16_t* pText, int arg_4) -> int pure virtual
auto GetMaxTextLength() const -> int pure virtual
void SetMaxTextLength(int maxLength) pure virtual
auto InsertText(char16_t* text, int textLength, bool arg_8) -> bool pure virtual
auto InsertText(char16_t* text, bool arg_4) -> bool pure virtual
auto ReplaceSelectedText(char16_t* text, bool arg_4) -> bool pure virtual
auto TextChanged(int startIndex, int endIndex, char16_t* text, int textLength, bool arg_10) -> bool pure virtual
auto TextChanged(bool arg_10) -> bool pure virtual
void func80h() pure virtual
void func84h() pure virtual
auto GetCursorIndex() const -> int pure virtual
void SetCursorIndex(int cursorIndex, bool keepAnchor) pure virtual
auto GetAnchorIndex() const -> int pure virtual
void SetCursorAndAnchor(int cursorIndex, int anchorIndex) pure virtual
auto GetCursorAndAnchor(int& cursorIndex, int& anchorIndex) -> bool pure virtual
auto func9Ch(int, int, int) -> bool pure virtual

Enum documentation

enum UTFWin::ITextEdit::(anonymous)

Enumerators
kFlagReadOnly

If set to true, the text cannot be changed.

kFlagAcceptReturn

If set to true, allows return to insert a new line.

kFlagAcceptInsertKey

If set to true, allow using the insert key to toggle insert vs. overwrite mode.

kFlagOverwrite

If set to true, causes newly entered characters to overwrite existing characters.

kFlagHideInactiveSelection

If set to true, the selection will be hidden if we don't have focus.

kFlagHideCaret

If set to true, the flashing caret is hidden.

kFlagEnableClipboard

If set to true, allows copy and paste to and from clipboard.

kFlagPasswordMode

If set to true, the displayed text is obscured, and won't copy to clipboard.

Function documentation

Color UTFWin::ITextEdit::GetColor(TextColors index) const pure virtual

Gets the component color for the given text type.

Parameters
index The type of text affected by the color, in the TextColors enum.

void UTFWin::ITextEdit::SetColor(TextColors index, Color color) pure virtual

Specifies the component colors for the given text mode.

Parameters
index The type of text affected by this color, in the TextColors enum.
color The new Color.

void UTFWin::ITextEdit::SetCaretPeriod(float period) pure virtual

Set the caret blink period.

Parameters
period