本文整理汇总了C++中MyWindow::Show方法的典型用法代码示例。如果您正苦于以下问题:C++ MyWindow::Show方法的具体用法?C++ MyWindow::Show怎么用?C++ MyWindow::Show使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MyWindow
的用法示例。
在下文中一共展示了MyWindow::Show方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc,char *argv[])
{
PG_Application app(argv[0]);
app.SetEmergencyQuit(true);
app.LoadTheme("simple");
app.InitScreen(800,600,0,SDL_SWSURFACE);
MyWindow* window = new MyWindow( NULL,PG_Rect(200,200,350,300));
new PG_Label( window, PG_Rect(20, 30,300,30), "not overlapping the button" );
new PG_Label( window, PG_Rect(20,100,300,30), "behind button" );
PG_Button* button = new PG_Button( window, PG_Rect(60,70,250,100), "Button" );
button->SetTransparency(40,40,40);
new PG_Label( window, PG_Rect(20,130,300,30), "in front of button" );
new PG_Label( window, PG_Rect(20,180,300,30), "not overlapping the button" );
PG_CheckButton* c = new PG_CheckButton( window, PG_Rect( 20, 220, 300, 30 ), "UpdateOverlappingSiblings" );
c->SetPressed();
c->sigClick.connect( SigC::slot( *window, &MyWindow::click ));
window->Show();
app.Run();
}