]> git.mxchange.org Git - simgear.git/blobdiff - simgear/canvas/CanvasPlacement.cxx
Allow canvas::Placements to have own properties
[simgear.git] / simgear / canvas / CanvasPlacement.cxx
index 3024f302ae65d0e804f7226d7ba32a3e405b4c81..1ff2a45f335866fe2dfc9f11c18733fc314cf4d2 100644 (file)
@@ -17,6 +17,7 @@
 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301, USA
 
 #include "CanvasPlacement.hxx"
+#include <simgear/props/props.hxx>
 
 namespace simgear
 {
@@ -24,7 +25,8 @@ namespace canvas
 {
 
   //----------------------------------------------------------------------------
-  Placement::Placement()
+  Placement::Placement(SGPropertyNode* node):
+    _node(node)
   {
 
   }
@@ -35,5 +37,23 @@ namespace canvas
 
   }
 
+  //----------------------------------------------------------------------------
+  SGConstPropertyNode_ptr Placement::getProps() const
+  {
+    return _node;
+  }
+
+  //----------------------------------------------------------------------------
+  SGPropertyNode_ptr Placement::getProps()
+  {
+    return _node;
+  }
+
+  //----------------------------------------------------------------------------
+  bool Placement::childChanged(SGPropertyNode* child)
+  {
+    return false;
+  }
+
 } // namespace canvas
 } // namespace simgear