]> git.mxchange.org Git - simgear.git/blobdiff - simgear/canvas/elements/CanvasText.hxx
CanvasImage: improve fetching from http and add mime detection.
[simgear.git] / simgear / canvas / elements / CanvasText.hxx
index 1c82fe3963d38db66949fdbb0a3e4a986f6d11e5..aba96319173d6220be31c8d42b79db502ef3ea7d 100644 (file)
@@ -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<TextOSG> _text;
 
-      virtual void childChanged(SGPropertyNode * child);
-
-      void handleHit(float x, float y);
-
   };
 
 } // namespace canvas