~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to intern/ghost/intern/GHOST_WindowNULL.h

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-07-23 08:54:18 UTC
  • mfrom: (14.2.16 sid)
  • mto: (14.2.19 sid)
  • mto: This revision was merged to the branch mainline in revision 42.
  • Revision ID: package-import@ubuntu.com-20120723085418-9foz30v6afaf5ffs
Tags: 2.63a-2
* debian/: Cycles support added (Closes: #658075)
  For now, this top feature has been enabled only
  on [any-amd64 any-i386] architectures because
  of OpenImageIO failing on all others
* debian/: scripts installation path changed
  from /usr/lib to /usr/share:
  + debian/patches/: patchset re-worked for path changing
  + debian/control: "Breaks" field added on yafaray-exporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * ***** BEGIN GPL LICENSE BLOCK *****
 
3
 *
 
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.
 
8
 *
 
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.
 
13
 *
 
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.
 
17
 *
 
18
 * Contributor(s): Campbell Barton
 
19
 *
 
20
 * ***** END GPL LICENSE BLOCK *****
 
21
 */
 
22
 
 
23
/** \file ghost/intern/GHOST_WindowNULL.h
 
24
 *  \ingroup GHOST
 
25
 * Declaration of GHOST_WindowNULL class.
 
26
 */
 
27
 
 
28
#ifndef __GHOST_WINDOWNULL_H__
 
29
#define __GHOST_WINDOWNULL_H__
 
30
 
 
31
#include "GHOST_Window.h"
 
32
 
 
33
#include <map>
 
34
 
 
35
class STR_String;
 
36
class GHOST_SystemNULL;
 
37
 
 
38
class GHOST_WindowNULL : public GHOST_Window
 
39
{
 
40
public:
 
41
        const GHOST_TabletData* GetTabletData() { return NULL; }
 
42
 
 
43
        GHOST_WindowNULL(
 
44
                GHOST_SystemNULL *system,
 
45
                const STR_String& title,
 
46
                GHOST_TInt32 left,
 
47
                GHOST_TInt32 top,
 
48
                GHOST_TUns32 width,
 
49
                GHOST_TUns32 height,
 
50
                GHOST_TWindowState state,
 
51
                const GHOST_TEmbedderWindowID parentWindow,
 
52
                GHOST_TDrawingContextType type,
 
53
                const bool stereoVisual,
 
54
                const GHOST_TUns16 numOfAASamples
 
55
                ) :
 
56
                GHOST_Window(width,height,state,type,stereoVisual,numOfAASamples),
 
57
                m_system (system)
 
58
        {
 
59
                setTitle(title);
 
60
        }
 
61
 
 
62
protected:
 
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; }
 
69
 
 
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; }
 
88
 
 
89
 
 
90
private :
 
91
        GHOST_SystemNULL * m_system;
 
92
};
 
93
 
 
94
 
 
95
#endif // __GHOST_WINDOWNULL_H__