mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
CtrlLib: Refactoring Chameleon to extract ChPaintImage
This commit is contained in:
parent
5e45c31a62
commit
3263527b95
8 changed files with 626 additions and 294 deletions
9
upptst/ChPaintImage/ChPaintImage.upp
Normal file
9
upptst/ChPaintImage/ChPaintImage.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
main.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
|
||||
15
upptst/ChPaintImage/main.cpp
Normal file
15
upptst/ChPaintImage/main.cpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
struct MyApp : TopWindow {
|
||||
void Paint(Upp::Draw& w) override {
|
||||
w.DrawRect(GetSize(), White());
|
||||
ChPaintImage(w, RectC(100, 100, 100, 100), CtrlsImg::OkBh(), DPI(5));
|
||||
}
|
||||
};
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
MyApp().Run();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue