OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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:
36  C4ViewportWindow(C4Viewport * cvp): cvp(cvp) { }
37  void EditCursorMove(int X, int Y, uint32_t);
38  using C4Window::Init;
39  C4Window * Init(int32_t iPlayer);
40  virtual void Close();
41  virtual void PerformUpdate();
42 
43 #ifdef WITH_QT_EDITOR
44  class QWidget *viewport_widget;
45 #endif
46 };
47 
48 #endif
C4Viewport * cvp
virtual void Close()
C4ViewportWindow(C4Viewport *cvp)
virtual C4Window * Init(WindowKind windowKind, C4AbstractApp *pApp, const char *Title, const C4Rect *size)
Definition: C4AppT.cpp:107
#define X(sdl, oc)
virtual void PerformUpdate()
void EditCursorMove(int X, int Y, uint32_t)
C4Window * Init(int32_t iPlayer)