Address felixjulianheitmann suggestions. (#288)

- Remove unused examples/dom/flexbox.cpp
- Add canvas(width, height, void(Canvas&)) method
This commit is contained in:
Arthur Sonzogni
2021-12-24 17:29:39 +01:00
committed by GitHub
parent 188cffc5f6
commit 7614bf04a6
5 changed files with 127 additions and 121 deletions

View File

@@ -59,7 +59,9 @@ Element paragraphAlignCenter(std::string text);
Element paragraphAlignJustify(std::string text);
Element graph(GraphFunction);
Element emptyElement();
Element ElementFrom(ConstRef<Canvas>);
Element canvas(ConstRef<Canvas>);
Element canvas(int width, int height, std::function<void(Canvas&)>);
Element canvas(std::function<void(Canvas&)>);
// -- Decorator ---
Element bold(Element);