2
* ***** BEGIN GPL LICENSE BLOCK *****
4
* This program is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU General Public License
6
* as published by the Free Software Foundation; either version 2
7
* of the License, or (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software Foundation,
16
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
* Contributor(s): Campbell Barton
20
* ***** END GPL LICENSE BLOCK *****
23
/** \file ghost/intern/GHOST_WindowNULL.h
25
* Declaration of GHOST_WindowNULL class.
28
#ifndef __GHOST_WINDOWNULL_H__
29
#define __GHOST_WINDOWNULL_H__
31
#include "GHOST_Window.h"
36
class GHOST_SystemNULL;
38
class GHOST_WindowNULL : public GHOST_Window
41
const GHOST_TabletData* GetTabletData() { return NULL; }
44
GHOST_SystemNULL *system,
45
const STR_String& title,
50
GHOST_TWindowState state,
51
const GHOST_TEmbedderWindowID parentWindow,
52
GHOST_TDrawingContextType type,
53
const bool stereoVisual,
54
const GHOST_TUns16 numOfAASamples
56
GHOST_Window(width,height,state,type,stereoVisual,numOfAASamples),
63
GHOST_TSuccess installDrawingContext( GHOST_TDrawingContextType type ){ return GHOST_kSuccess; }
64
GHOST_TSuccess removeDrawingContext( ){ return GHOST_kSuccess; }
65
GHOST_TSuccess setWindowCursorGrab( GHOST_TGrabCursorMode mode ){ return GHOST_kSuccess; }
66
GHOST_TSuccess setWindowCursorShape( GHOST_TStandardCursor shape ){ return GHOST_kSuccess; }
67
GHOST_TSuccess setWindowCustomCursorShape( GHOST_TUns8 bitmap[16][2], GHOST_TUns8 mask[16][2], int hotX, int hotY ) { return GHOST_kSuccess; }
68
GHOST_TSuccess setWindowCustomCursorShape( GHOST_TUns8 *bitmap, GHOST_TUns8 *mask, int sizex, int sizey, int hotX, int hotY, int fg_color, int bg_color ){ return GHOST_kSuccess; }
70
bool getValid( ) const { return true; }
71
void setTitle( const STR_String& title ){ /* nothing */ }
72
void getTitle( STR_String& title ) const { title= "untitled"; }
73
void getWindowBounds( GHOST_Rect& bounds ) const { getClientBounds(bounds); }
74
void getClientBounds( GHOST_Rect& bounds ) const { /* nothing */ }
75
GHOST_TSuccess setClientWidth( GHOST_TUns32 width ){ return GHOST_kFailure; }
76
GHOST_TSuccess setClientHeight( GHOST_TUns32 height ){ return GHOST_kFailure; }
77
GHOST_TSuccess setClientSize( GHOST_TUns32 width, GHOST_TUns32 height ){ return GHOST_kFailure; }
78
void screenToClient( GHOST_TInt32 inX, GHOST_TInt32 inY, GHOST_TInt32& outX, GHOST_TInt32& outY ) const { outX = inX; outY = inY; }
79
void clientToScreen( GHOST_TInt32 inX, GHOST_TInt32 inY, GHOST_TInt32& outX, GHOST_TInt32& outY ) const { outX = inX; outY = inY; }
80
GHOST_TSuccess swapBuffers( ){ return GHOST_kFailure; }
81
GHOST_TSuccess activateDrawingContext( ){ return GHOST_kFailure; }
82
~GHOST_WindowNULL( ){ /* nothing */ }
83
GHOST_TSuccess setWindowCursorVisibility( bool visible ){ return GHOST_kSuccess; }
84
GHOST_TSuccess setState(GHOST_TWindowState state) { return GHOST_kSuccess; }
85
GHOST_TWindowState getState() const { return GHOST_kWindowStateNormal; }
86
GHOST_TSuccess invalidate() { return GHOST_kSuccess; }
87
GHOST_TSuccess setOrder(GHOST_TWindowOrder order) { return GHOST_kSuccess; }
91
GHOST_SystemNULL * m_system;
95
#endif // __GHOST_WINDOWNULL_H__