本文整理汇总了C++中TextBox::Draw方法的典型用法代码示例。如果您正苦于以下问题:C++ TextBox::Draw方法的具体用法?C++ TextBox::Draw怎么用?C++ TextBox::Draw使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextBox
的用法示例。
在下文中一共展示了TextBox::Draw方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char* argv[])
{
printf("hello world\n");
X11_data xd = initialise_x11(1000, 100);
printf("hello world\n");
TextBox tb = TextBox(xd, 12, 12, "HEllo world!", "9*15");
tb.setId("textbox1");
addGraphicItem(tb);
//TODO: Create a reference system that will allow events to be passed to and from
//using a really easy function like OGetNextEvent(xd, [XEventMask])
while((getNextEvent(xd, StructureNotifyMask | KeyPressMask)) != NULL)
{
//printf("test\n");
tb.Draw(false);
//At this point I have realised that there are critical failures in the
//underlying infastructure that this software will eventually rely on
//a render pipeline and a stack of discriptive objects which is passed into a
//rendering function.
}
return 0;
}