本文整理汇总了C++中TextView::set_background_color方法的典型用法代码示例。如果您正苦于以下问题:C++ TextView::set_background_color方法的具体用法?C++ TextView::set_background_color怎么用?C++ TextView::set_background_color使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextView
的用法示例。
在下文中一共展示了TextView::set_background_color方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: init_home_screen
void init_home_screen()
{
//strcpy(CommandText, "connect to 192.168.2.14, Robot, show me the accuracy of your positioning. Show me a histogram for right leg positions.\
// Lift your left leg. Raise both arms. Go to the bedroom and get my shoes." );
strcpy (CommandText, "what time?");
ClientInputEdit.set_text ( CommandText );
ClientInputEdit.set_text_size ( 16.0 );
ClientInputEdit.set_return_key_listener( send_to_viki, &ClientInputEdit );
//printf("init_home_screen() ClientInput text setup\n");
RobotResponse.set_text ( "Not Connected" ); // ConnectionStatus
if (ipc_memory_client) {
//printf("init_home_screen() RobotResponse text %s\n", ipc_memory_client->Sentence );
RobotResponse.set_text ( ipc_memory_client->Sentence ); // ConnectionStatus
}
RobotResponse.set_text_size ( 16.0 );
RobotResponse.set_text_color ( 0xCFFF0000 );
RobotResponse.set_background_color ( 0xFFFFFf00 );
// This should be hidden until asked for via voice.
//AvailClients.move_to( 20, 75 );
// Add to display manager:
MainDisplay.remove_all_objects( );
MainDisplay.add_object( &ClientInputEdit);
MainDisplay.add_object( &RobotResponse );
MainDisplay.add_object( &AvailClients );
// MainDisplay.add_object( &adren_board_list );
// MainDisplay.load_resources();
}