本文整理汇总了C++中LLViewerTextEditor::getWText方法的典型用法代码示例。如果您正苦于以下问题:C++ LLViewerTextEditor::getWText方法的具体用法?C++ LLViewerTextEditor::getWText怎么用?C++ LLViewerTextEditor::getWText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLViewerTextEditor
的用法示例。
在下文中一共展示了LLViewerTextEditor::getWText方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: onClickClear
void LLFloaterLuaConsole::onClickClear(void *data)
{
LLFloaterLuaConsole *self = (LLFloaterLuaConsole *)data;
LLViewerTextEditor *editor = self->getChild<LLViewerTextEditor>("Lua Output Editor");
editor->removeTextFromEnd(editor->getWText().length());
editor->makePristine();
}
示例2: removeUnusedChars
void LLEmbeddedItems::removeUnusedChars()
{
std::set<llwchar> used = mEmbeddedUsedChars;
const LLWString& wtext = mEditor->getWText();
for (S32 i=0; i<(S32)wtext.size(); i++)
{
llwchar wc = wtext[i];
if( wc >= LLTextEditor::FIRST_EMBEDDED_CHAR && wc <= LLTextEditor::LAST_EMBEDDED_CHAR )
{
used.erase(wc);
}
}
// Remove chars not actually used
for (std::set<llwchar>::iterator iter = used.begin();
iter != used.end(); ++iter)
{
removeEmbeddedItem(*iter);
}
}
示例3: onCopyToInventory
void onCopyToInventory()
{
LLViewerTextEditor* pEditor = dynamic_cast<LLViewerTextEditor*>(&mEditor);
if (pEditor)
pEditor->showCopyToInvDialog(mItem, pEditor->getWText()[pEditor->getCursorPos()]);
}
示例4: onOpen
void onOpen()
{
LLViewerTextEditor* pEditor = dynamic_cast<LLViewerTextEditor*>(&mEditor);
if (pEditor)
pEditor->openEmbeddedItem(mItem, pEditor->getWText()[pEditor->getCursorPos()]);
}