CtrlLib: Refactoring Chameleon to extract ChPaintImage

This commit is contained in:
Mirek Fidler 2025-11-20 11:02:11 +01:00
parent 5e45c31a62
commit 3263527b95
8 changed files with 626 additions and 294 deletions

View file

@ -0,0 +1,9 @@
uses
CtrlLib;
file
main.cpp;
mainconfig
"" = "GUI";

View 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();
}