2
* $Id: GHOST_WindowNULL.h 37194 2011-06-05 00:10:20Z gsrb3d $
3
* ***** BEGIN GPL LICENSE BLOCK *****
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software Foundation,
17
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19
* Contributor(s): Campbell Barton
21
* ***** END GPL LICENSE BLOCK *****
24
/** \file ghost/intern/GHOST_WindowNULL.h
26
* Declaration of GHOST_WindowNULL class.
29
#ifndef _GHOST_WINDOWNULL_H_
30
#define _GHOST_WINDOWNULL_H_
32
#include "GHOST_Window.h"
37
class GHOST_SystemNULL;
39
class GHOST_WindowNULL : public GHOST_Window
42
const GHOST_TabletData* GetTabletData() { return NULL; }
45
GHOST_SystemNULL *system,
46
const STR_String& title,
51
GHOST_TWindowState state,
52
const GHOST_TEmbedderWindowID parentWindow,
53
GHOST_TDrawingContextType type,
54
const bool stereoVisual,
55
const GHOST_TUns16 numOfAASamples
57
GHOST_Window(title,left,top,width,height,state,type,stereoVisual,numOfAASamples),
64
GHOST_TSuccess installDrawingContext( GHOST_TDrawingContextType type ){ return GHOST_kSuccess; }
65
GHOST_TSuccess removeDrawingContext( ){ return GHOST_kSuccess; }
66
GHOST_TSuccess setWindowCursorGrab( GHOST_TGrabCursorMode mode ){ return GHOST_kSuccess; }
67
GHOST_TSuccess setWindowCursorShape( GHOST_TStandardCursor shape ){ return GHOST_kSuccess; }
68
GHOST_TSuccess setWindowCustomCursorShape( GHOST_TUns8 bitmap[16][2], GHOST_TUns8 mask[16][2], int hotX, int hotY ) { return GHOST_kSuccess; }
69
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; }
71
bool getValid( ) const { return true; }
72
void setTitle( const STR_String& title ){ /* nothing */ }
73
void getTitle( STR_String& title ) const { title= "untitled"; }
74
void getWindowBounds( GHOST_Rect& bounds ) const { getClientBounds(bounds); }
75
void getClientBounds( GHOST_Rect& bounds ) const { /* nothing */ }
76
GHOST_TSuccess setClientWidth( GHOST_TUns32 width ){ return GHOST_kFailure; }
77
GHOST_TSuccess setClientHeight( GHOST_TUns32 height ){ return GHOST_kFailure; }
78
GHOST_TSuccess setClientSize( GHOST_TUns32 width, GHOST_TUns32 height ){ return GHOST_kFailure; }
79
void screenToClient( GHOST_TInt32 inX, GHOST_TInt32 inY, GHOST_TInt32& outX, GHOST_TInt32& outY ) const { outX = inX; outY = inY; }
80
void clientToScreen( GHOST_TInt32 inX, GHOST_TInt32 inY, GHOST_TInt32& outX, GHOST_TInt32& outY ) const { outX = inX; outY = inY; }
81
GHOST_TSuccess swapBuffers( ){ return GHOST_kFailure; }
82
GHOST_TSuccess activateDrawingContext( ){ return GHOST_kFailure; }
83
~GHOST_WindowNULL( ){ /* nothing */ }
84
GHOST_TSuccess setWindowCursorVisibility( bool visible ){ return GHOST_kSuccess; }
85
GHOST_TSuccess setState(GHOST_TWindowState state) { return GHOST_kSuccess; }
86
GHOST_TWindowState getState() const { return GHOST_kWindowStateNormal; }
87
GHOST_TSuccess invalidate() { return GHOST_kSuccess; }
88
GHOST_TSuccess setOrder(GHOST_TWindowOrder order) { return GHOST_kSuccess; }
92
GHOST_SystemNULL * m_system;
96
#endif // _GHOST_WINDOWNULL_H_