X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fcanvas%2FCanvasWindow.hxx;h=330b6fb8ced6ef53d95fac6533ae9d1e1eb78f09;hb=8b351520bd4499f9d8f0f281d8710345e293f9e1;hp=74bdf33fed7e10e4cd20ffa0080f25fabb3c9a93;hpb=23279b4d0aa04576b5b362f32a534eb494998b91;p=simgear.git diff --git a/simgear/canvas/CanvasWindow.hxx b/simgear/canvas/CanvasWindow.hxx index 74bdf33f..330b6fb8 100644 --- a/simgear/canvas/CanvasWindow.hxx +++ b/simgear/canvas/CanvasWindow.hxx @@ -20,7 +20,8 @@ #define CANVAS_WINDOW_HXX_ #include -#include +#include +#include #include #include #include @@ -34,7 +35,8 @@ namespace canvas { class Window: - public Image + public Image, + public LayoutItem { public: static const std::string TYPE_NAME; @@ -75,11 +77,16 @@ namespace canvas void setCanvasContent(CanvasPtr canvas); simgear::canvas::CanvasWeakPtr getCanvasContent() const; + void setLayout(const LayoutRef& layout); + CanvasPtr getCanvasDecoration() const; bool isResizable() const; bool isCapturingEvents() const; + virtual void setVisible(bool visible); + virtual bool isVisible() const; + /** * Moves window on top of all other windows with the same z-index. * @@ -101,6 +108,7 @@ namespace canvas CanvasPtr _canvas_decoration; CanvasWeakPtr _canvas_content; + LayoutRef _layout; ImagePtr _image_content, _image_shadow;