X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fcanvas%2Felements%2FCanvasText.hxx;h=aba96319173d6220be31c8d42b79db502ef3ea7d;hb=fd51518d9214f8e152e16ae46392501b95bab28a;hp=1c82fe3963d38db66949fdbb0a3e4a986f6d11e5;hpb=77946585b1c9b54c4848b604eb1549e2ec55df12;p=simgear.git diff --git a/simgear/canvas/elements/CanvasText.hxx b/simgear/canvas/elements/CanvasText.hxx index 1c82fe39..aba96319 100644 --- a/simgear/canvas/elements/CanvasText.hxx +++ b/simgear/canvas/elements/CanvasText.hxx @@ -33,6 +33,9 @@ namespace canvas public Element { public: + static const std::string TYPE_NAME; + static void staticInit(); + Text( const CanvasWeakPtr& canvas, const SGPropertyNode_ptr& node, const Style& parent_style, @@ -43,15 +46,13 @@ namespace canvas void setFont(const char* name); void setAlignment(const char* align); + osg::Vec2 getNearestCursor(const osg::Vec2& pos) const; + protected: class TextOSG; osg::ref_ptr _text; - virtual void childChanged(SGPropertyNode * child); - - void handleHit(float x, float y); - }; } // namespace canvas