mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-09-02 16:22:40 -06:00
changed svn layout
git-svn-id: svn://ultimatepp.org/upp/trunk@281 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
commit
263ff5f895
2665 changed files with 642923 additions and 0 deletions
27
tutorial/Draw04/main.cpp
Normal file
27
tutorial/Draw04/main.cpp
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
struct MyApp : TopWindow {
|
||||
Drawing drawing;
|
||||
|
||||
void Paint(Draw& w) {
|
||||
w.DrawRect(GetSize(), White());
|
||||
w.DrawDrawing(10, 10, 50, 60, drawing);
|
||||
w.DrawDrawing(100, 10, 150, 100, drawing);
|
||||
w.DrawDrawing(10, 110, 300, 300, drawing);
|
||||
}
|
||||
|
||||
MyApp() {
|
||||
DrawingDraw iw(200, 200);
|
||||
iw.DrawEllipse(10, 10, 180, 100, Cyan());
|
||||
iw.DrawImage(100, 100, CtrlImg::exclamation());
|
||||
iw.DrawRect(20, 100, 30, 30, Blue);
|
||||
drawing = iw;
|
||||
}
|
||||
};
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
MyApp().Sizeable().Run();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue