#define CANVAS_WINDOW_HXX_
#include <simgear/canvas/elements/CanvasImage.hxx>
-#include <simgear/canvas/MouseEvent.hxx>
+#include <simgear/canvas/layout/Layout.hxx>
+#include <simgear/canvas/events/MouseEvent.hxx>
#include <simgear/props/PropertyBasedElement.hxx>
#include <simgear/props/propertyObject.hxx>
#include <simgear/misc/CSSBorder.hxx>
{
class Window:
- public Image
+ public Image,
+ public LayoutItem
{
public:
static const std::string TYPE_NAME;
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.
*
CanvasPtr _canvas_decoration;
CanvasWeakPtr _canvas_content;
+ LayoutRef _layout;
ImagePtr _image_content,
_image_shadow;