~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to intern/ghost/intern/GHOST_WindowCarbon.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
 
 * $Id: GHOST_WindowCarbon.h 26841 2010-02-12 13:34:04Z campbellbarton $
 
1
/*
3
2
 * ***** BEGIN GPL LICENSE BLOCK *****
4
3
 *
5
4
 * This program is free software; you can redistribute it and/or
25
24
 *
26
25
 * ***** END GPL LICENSE BLOCK *****
27
26
 */
28
 
/**
29
 
 * @file        GHOST_WindowCarbon.h
 
27
 
 
28
/** \file ghost/intern/GHOST_WindowCarbon.h
 
29
 *  \ingroup GHOST
30
30
 * Declaration of GHOST_WindowCarbon class.
31
31
 */
32
32
 
33
 
#ifndef _GHOST_WINDOW_CARBON_H_
34
 
#define _GHOST_WINDOW_CARBON_H_
 
33
#ifndef __GHOST_WINDOWCARBON_H__
 
34
#define __GHOST_WINDOWCARBON_H__
35
35
 
36
36
#ifndef __APPLE__
37
37
#error Apple OSX only!
199
199
        virtual GHOST_TSuccess activateDrawingContext();
200
200
 
201
201
        virtual void loadCursor(bool visible, GHOST_TStandardCursor cursor) const;
202
 
    
203
 
    /**
204
 
     * Returns the dirty state of the window when in full-screen mode.
205
 
     * @return Whether it is dirty.
206
 
     */
207
 
    virtual bool getFullScreenDirty();
 
202
 
 
203
        /**
 
204
         * Returns the dirty state of the window when in full-screen mode.
 
205
         * @return Whether it is dirty.
 
206
         */
 
207
        virtual bool getFullScreenDirty();
208
208
 
209
209
                /* accessor for fullscreen window */
210
210
        virtual void setMac_windowState(short value);
256
256
                                        int sizex, int sizey, int hotX, int hotY, int fg_color, int bg_color);
257
257
                                        
258
258
        virtual GHOST_TSuccess setWindowCustomCursorShape(GHOST_TUns8 bitmap[16][2], GHOST_TUns8 mask[16][2], int hotX, int hotY);
259
 
    
260
 
    /**
261
 
     * Converts a string object to a Mac Pascal string.
262
 
     * @param in        The string object to be converted.
263
 
     * @param out       The converted string.
264
 
     */
265
 
    virtual void gen2mac(const STR_String& in, Str255 out) const;
266
 
 
267
 
    /**
268
 
     * Converts a Mac Pascal string to a string object.
269
 
     * @param in        The string to be converted.
270
 
     * @param out       The converted string object.
271
 
     */
272
 
    virtual void mac2gen(const Str255 in, STR_String& out) const;
 
259
 
 
260
        /**
 
261
         * Converts a string object to a Mac Pascal string.
 
262
         * @param in    The string object to be converted.
 
263
         * @param out   The converted string.
 
264
         */
 
265
        virtual void gen2mac(const STR_String& in, Str255 out) const;
 
266
 
 
267
        /**
 
268
         * Converts a Mac Pascal string to a string object.
 
269
         * @param in    The string to be converted.
 
270
         * @param out   The converted string object.
 
271
         */
 
272
        virtual void mac2gen(const Str255 in, STR_String& out) const;
273
273
        
274
 
    WindowRef m_windowRef;
275
 
    CGrafPtr m_grafPtr;
276
 
    AGLContext m_aglCtx;
 
274
        WindowRef m_windowRef;
 
275
        CGrafPtr m_grafPtr;
 
276
        AGLContext m_aglCtx;
277
277
 
278
278
        /** The first created OpenGL context (for sharing display lists) */
279
279
        static AGLContext s_firstaglCtx;
281
281
        Cursor* m_customCursor;
282
282
 
283
283
        GHOST_TabletData m_tablet;
284
 
    
285
 
    /** When running in full-screen this tells whether to refresh the window. */
286
 
    bool m_fullScreenDirty;
 
284
 
 
285
        /** When running in full-screen this tells whether to refresh the window. */
 
286
        bool m_fullScreenDirty;
287
287
        
288
288
        /** specific MacOs X full screen window setting as we use partially system mechanism 
289
289
            values :      0       not maximizable default
294
294
                in order to be unified with GHOST fullscreen/maximised settings
295
295
                 
296
296
                 (lukep)
297
 
    **/
298
 
                 
 
297
        **/
 
298
 
299
299
        short mac_windowState;
300
300
        
301
301
 
302
 
    /**
303
 
     * The width/height of the size rectangle in the lower right corner of a 
304
 
     * Mac/Carbon window. This is also the height of the gutter area.
305
 
     */
 
302
        /**
 
303
         * The width/height of the size rectangle in the lower right corner of a
 
304
         * Mac/Carbon window. This is also the height of the gutter area.
 
305
         */
306
306
#ifdef GHOST_DRAW_CARBON_GUTTER
307
 
    static const GHOST_TInt32 s_sizeRectSize;
 
307
        static const GHOST_TInt32 s_sizeRectSize;
308
308
#endif // GHOST_DRAW_CARBON_GUTTER
309
309
};
310
310
 
311
 
#endif // _GHOST_WINDOW_CARBON_H_
 
311
#endif // __GHOST_WINDOWCARBON_H__
312
312