本文整理汇总了C++中TextLayout::appendText方法的典型用法代码示例。如果您正苦于以下问题:C++ TextLayout::appendText方法的具体用法?C++ TextLayout::appendText怎么用?C++ TextLayout::appendText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextLayout
的用法示例。
在下文中一共展示了TextLayout::appendText方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: updateLayout
void updateLayout (const int width)
{
TextLayout text;
text.appendText (getText(), getFont());
text.layout (width - 8, Justification::topLeft, true);
setSize (width, jmin (width, text.getHeight() + (int) getFont().getHeight()));
}
示例2: AboutPage
AboutPage()
{
logo = ImageCache::getFromMemory (BinaryData::jules_jpg, BinaryData::jules_jpgSize);
text1.appendText ("Programmer Julian Storer, seen here demonstrating a beard designed to "
"gain approval from the Linux programming community. Each hair of the beard "
"represents one line of source code from the ", Font (13.0f));
text1.appendText ("Jucer", Font (13.0f, Font::bold));
text1.appendText (" component design tool.", Font (13.0f));
text2.appendText ("Jucer v" + JUCEApplication::getInstance()->getApplicationVersion()
+ ", " + SystemStats::getJUCEVersion(), Font (14.0f, Font::bold));
addAndMakeVisible (link = new HyperlinkButton ("www.rawmaterialsoftware.com/juce",
URL ("http://www.rawmaterialsoftware.com/juce")));
link->setFont (Font (10.0f, Font::bold | Font::underlined), true);
}