mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@14347 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
eb57b66cd4
commit
d7d6b5acd5
2 changed files with 32 additions and 0 deletions
9
upptst/InvertColor/InvertColor.upp
Normal file
9
upptst/InvertColor/InvertColor.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
main.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
|
||||
23
upptst/InvertColor/main.cpp
Normal file
23
upptst/InvertColor/main.cpp
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
struct MyApp : TopWindow {
|
||||
virtual void Paint(Draw& w) {
|
||||
w.DrawRect(GetSize(), White());
|
||||
|
||||
for(Color c : { Black(), Blue(), Red(), Yellow() }) {
|
||||
w.DrawRect(10, 10, 200, 100, c);
|
||||
w.DrawRect(30, 30, 50, 50, InvertColor());
|
||||
|
||||
w.DrawRect(130, 30, 50, 50, InvertColor());
|
||||
w.DrawRect(150, 30, 50, 50, InvertColor());
|
||||
w.Offset(0, 120);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
MyApp().Run();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue