OpenClonk
C4ViewportWindow.h
Go to the documentation of this file.
1 /*
2  * OpenClonk, http://www.openclonk.org
3  *
4  * Copyright (c) 1998-2000, Matthes Bender
5  * Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de/
6  * Copyright (c) 2009-2016, The OpenClonk Team and contributors
7  *
8  * Distributed under the terms of the ISC license; see accompanying file
9  * "COPYING" for details.
10  *
11  * "Clonk" is a registered trademark of Matthes Bender, used with permission.
12  * See accompanying file "TRADEMARK" for details.
13  *
14  * To redistribute this file separately, substitute the full license texts
15  * for the above references.
16  */
17 
18 /* A viewport to each player */
19 
20 #ifndef INC_C4ViewportWindow
21 #define INC_C4ViewportWindow
22 
23 #include "platform/C4Window.h"
24 
25 #ifdef WITH_QT_EDITOR
26 #define C4ViewportWindowStyle (WS_VISIBLE)
27 #else
28 #define C4ViewportWindowStyle (WS_VISIBLE | WS_POPUP | WS_SYSMENU | WS_CAPTION | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_SIZEBOX)
29 #endif
30 enum { ViewportScrollSpeed=10 };
31 
33 {
34 public:
37  void EditCursorMove(int X, int Y, uint32_t);
38  using C4Window::Init;
39  C4Window * Init(int32_t iPlayer);
40  void Close() override;
41  void PerformUpdate() override;
42 
43 #ifdef WITH_QT_EDITOR
44  class QWidget *viewport_widget;
45 #endif
46 };
47 
48 #endif
#define X(sdl, oc)
@ ViewportScrollSpeed
virtual C4Window * Init(WindowKind windowKind, C4AbstractApp *pApp, const char *Title, const C4Rect *size)
Definition: C4AppT.cpp:109
void PerformUpdate() override
void EditCursorMove(int X, int Y, uint32_t)
void Close() override
C4ViewportWindow(C4Viewport *cvp)
C4Viewport * cvp
virtual C4Window * Init(WindowKind windowKind, C4AbstractApp *pApp, const char *Title, const C4Rect *size)
Definition: C4AppT.cpp:109