ASPiK SDK
windowcontroller.h
1 // This file is part of VSTGUI. It is subject to the license terms
2 // in the LICENSE file found in the top-level directory of this
3 // distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
4 
5 #pragma once
6 
7 #include "../iwindowcontroller.h"
8 
9 //------------------------------------------------------------------------
10 namespace VSTGUI {
11 namespace Standalone {
12 
13 //------------------------------------------------------------------------
19 {
20 public:
21  void onSizeChanged (const IWindow& window, const CPoint& newSize) override {}
22  void onPositionChanged (const IWindow& window, const CPoint& newPosition) override {}
23  void onShow (const IWindow& window) override {}
24  void onHide (const IWindow& window) override {}
25  void onClosed (const IWindow& window) override {}
26  void onActivated (const IWindow& window) override {}
27  void onDeactivated (const IWindow& window) override {}
28  CPoint constraintSize (const IWindow& window, const CPoint& newSize) override
29  {
30  return newSize;
31  }
32  bool canClose (const IWindow& window) override { return true; }
33  void beforeShow (IWindow& window) override {}
34  void onSetContentView (IWindow& window, const SharedPointer<CFrame>& contentView) override {}
35  IMenuBuilder* getWindowMenuBuilder (const IWindow& window) const override { return nullptr; }
36 };
37 
38 //------------------------------------------------------------------------
39 } // Standalone
40 } // VSTGUI
Definition: iwindowcontroller.h:19
void onSizeChanged(const IWindow &window, const CPoint &newSize) override
Definition: windowcontroller.h:21
void onActivated(const IWindow &window) override
Definition: windowcontroller.h:26
void onSetContentView(IWindow &window, const SharedPointer< CFrame > &contentView) override
Definition: windowcontroller.h:34
CPoint constraintSize(const IWindow &window, const CPoint &newSize) override
Definition: windowcontroller.h:28
void beforeShow(IWindow &window) override
Definition: windowcontroller.h:33
IMenuBuilder * getWindowMenuBuilder(const IWindow &window) const override
Definition: windowcontroller.h:35
Definition: imenubuilder.h:24
Definition: windowcontroller.h:18
void onDeactivated(const IWindow &window) override
Definition: windowcontroller.h:27
Definition: customcontrols.cpp:8
Definition: iwindow.h:142
void onClosed(const IWindow &window) override
Definition: windowcontroller.h:25
Point structure.
Definition: cpoint.h:17
void onHide(const IWindow &window) override
Definition: windowcontroller.h:24
void onShow(const IWindow &window) override
Definition: windowcontroller.h:23
bool canClose(const IWindow &window) override
Definition: windowcontroller.h:32
void onPositionChanged(const IWindow &window, const CPoint &newPosition) override
Definition: windowcontroller.h:22