How katelap/paint works
Paint is a WinAPI graphics editor: users draw geometric shapes with configurable outline and fill colors, can undo the last action, and can save the image. The sampled sources show shape drawing and shared painting settings; the main application, history, and save implementations were not sampled, so their internal connections are documented at the capability level only.
Main entry points: MYpaint.cpp Paint UI · Shape.h Shape Base · TwoPointsShapes.h Two-Point Shapes · Point.cpp Point Tool
Components 12
Application
- Paint UI
MYpaint/11111/MYpaint.cpp
Drawing Model
- Shape Base
MYpaint/11111/Shape.h - Two-Point Shapes
MYpaint/11111/TwoPointsShapes.h - Point Tool
MYpaint/11111/Point.cpp - Line Tool
MYpaint/11111/Line.cpp - Circle Tool
MYpaint/11111/Circle.cpp - Rectangle Tool
MYpaint/11111/Rectangles.cpp
Drawing State
- Paint Settings
MYpaint/11111/Painting.h - Undo History
MYpaint/11111/Stack.h
Image Actions
- Image Save
MYpaint/11111/MYpaint.cpp
Other components
- User
- WinAPI GDI
Connections 13
- User → Paint UI: uses
README.md - Paint UI → Shape Base: draws shapes
README.md - Paint UI → Undo History: undoes action
README.md - Paint UI → Image Save: saves image
README.md - Shape Base → Two-Point Shapes: specialized by
MYpaint/11111/TwoPointsShapes.h - Two-Point Shapes → Line Tool: specialized by
- Two-Point Shapes → Circle Tool: specialized by
- Two-Point Shapes → Rectangle Tool: specialized by
- Shape Base → Point Tool: specialized by
- Shape Base → Paint Settings: draw uses settings
MYpaint/11111/Shape.h - Point Tool → WinAPI GDI: draws via
MYpaint/11111/Point.cpp - Circle Tool → WinAPI GDI: draws via
MYpaint/11111/Circle.cpp - Rectangle Tool → WinAPI GDI: draws via
MYpaint/11111/Rectangles.cpp