choice in the doc interface + tests

This commit is contained in:
Alexey Fedoseev
2024-04-23 12:13:20 +03:00
parent 8b0db7081f
commit 7fab5056e0
5 changed files with 137 additions and 0 deletions

View File

@@ -550,6 +550,12 @@ namespace Cyberiada {
FinalState* new_final(ElementCollection* parent, const Point& point = Point());
FinalState* new_final(ElementCollection* parent, const Name& name, const Point& point = Point());
FinalState* new_final(ElementCollection* parent, const ID& id, const Name& name, const Point& point = Point());
ChoicePseudostate* new_choice(ElementCollection* parent,
const Rect& r = Rect(), const Color& color = Color());
ChoicePseudostate* new_choice(ElementCollection* parent, const Name& name,
const Rect& r = Rect(), const Color& color = Color());
ChoicePseudostate* new_choice(ElementCollection* parent, const ID& id, const Name& name,
const Rect& r = Rect(), const Color& color = Color());
void load(const String& path, DocumentFormat f = formatDetect);
void save(const String& path, DocumentFormat f = formatCyberiada10) const;