summaryrefslogtreecommitdiff
path: root/ui/builders/freeExtend.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-12-18 19:56:38 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-12-18 19:56:40 +0000
commit5cba33aedccdfa79f1c291bc1da8ff2223d5c70a (patch)
tree1aeb276c496edbd8beea180d9d032583d27cef49 /ui/builders/freeExtend.h
parentAdd sanity checking logic to GeoData (diff)
downloadilt-5cba33aedccdfa79f1c291bc1da8ff2223d5c70a.tar.bz2
ilt-5cba33aedccdfa79f1c291bc1da8ff2223d5c70a.tar.xz
ilt-5cba33aedccdfa79f1c291bc1da8ff2223d5c70a.zip
Give UI builders an interface that can be programmatically called
Diffstat (limited to 'ui/builders/freeExtend.h')
-rw-r--r--ui/builders/freeExtend.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/builders/freeExtend.h b/ui/builders/freeExtend.h
index 0d5f327..8e30ef4 100644
--- a/ui/builders/freeExtend.h
+++ b/ui/builders/freeExtend.h
@@ -5,11 +5,17 @@ class Network;
class GeoData;
class BuilderFreeExtend : public EditNetwork::Builder {
+private:
std::string hint() const override;
void click(Network * network, const GeoData * geoData, const SDL_MouseButtonEvent & e,
const Ray<GlobalPosition3D> & ray) override;
void move(Network * network, const GeoData * geoData, const SDL_MouseMotionEvent & e,
const Ray<GlobalPosition3D> & ray) override;
+public:
+ Link::CCollection createJoin(Network * network, GlobalPosition3D, GlobalPosition3D) const;
+ Link::CCollection createExtend(Network * network, GlobalPosition3D, GlobalPosition3D) const;
+
+private:
std::optional<GlobalPosition3D> p1;
};