~siretart/ubuntu/utopic/blender/libav10

« back to all changes in this revision

Viewing changes to intern/ghost/intern/GHOST_DisplayManager.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_DisplayManager.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_DisplayManager.h
 
27
 
 
28
/** \file ghost/intern/GHOST_DisplayManager.h
 
29
 *  \ingroup GHOST
30
30
 * Declaration of GHOST_DisplayManager class.
31
31
 */
32
32
 
33
 
#ifndef _GHOST_DISPLAY_MANAGER_H_
34
 
#define _GHOST_DISPLAY_MANAGER_H_
 
33
#ifndef __GHOST_DISPLAYMANAGER_H__
 
34
#define __GHOST_DISPLAYMANAGER_H__
35
35
 
36
36
#include "GHOST_Types.h"
37
37
 
72
72
        /**
73
73
         * Returns the number of display settings for this display device.
74
74
         * @param display The index of the display to query with 0 <= display < getNumDisplays().
75
 
         * @param setting The number of settings of the display device with this index.
 
75
         * @param numSettings The number of settings of the display device with this index.
76
76
         * @return Indication of success.
77
77
         */
78
 
        virtual GHOST_TSuccess getNumDisplaySettings(GHOST_TUns8 display, GHOST_TInt32& numSettings) const;
 
78
        virtual GHOST_TSuccess getNumDisplaySettings(GHOST_TUns8 display,
 
79
                                                     GHOST_TInt32& numSettings) const;
79
80
 
80
81
        /**
81
82
         * Returns the current setting for this display device. 
84
85
         * @param setting The setting of the display device with this index.
85
86
         * @return Indication of success.
86
87
         */
87
 
        virtual GHOST_TSuccess getDisplaySetting(GHOST_TUns8 display, GHOST_TInt32 index, GHOST_DisplaySetting& setting) const;
 
88
        virtual GHOST_TSuccess getDisplaySetting(GHOST_TUns8 display,
 
89
                                                 GHOST_TInt32 index,
 
90
                                                 GHOST_DisplaySetting& setting) const;
88
91
 
89
92
        /**
90
93
         * Returns the current setting for this display device. 
92
95
         * @param setting The current setting of the display device with this index.
93
96
         * @return Indication of success.
94
97
         */
95
 
        virtual GHOST_TSuccess getCurrentDisplaySetting(GHOST_TUns8 display, GHOST_DisplaySetting& setting) const;
 
98
        virtual GHOST_TSuccess getCurrentDisplaySetting(GHOST_TUns8 display,
 
99
                                                        GHOST_DisplaySetting& setting) const;
96
100
 
97
101
        /**
98
102
         * Changes the current setting for this display device.
102
106
         * @param setting The setting of the display device to be matched and activated.
103
107
         * @return Indication of success.
104
108
         */
105
 
        virtual GHOST_TSuccess setCurrentDisplaySetting(GHOST_TUns8 display, const GHOST_DisplaySetting& setting);
 
109
        virtual GHOST_TSuccess setCurrentDisplaySetting(GHOST_TUns8 display,
 
110
                                                        const GHOST_DisplaySetting& setting);
106
111
 
107
112
protected:
108
113
        typedef std::vector<GHOST_DisplaySetting> GHOST_DisplaySettings;
114
119
         * @param match         The optimal display setting.
115
120
         * @return Indication of success.
116
121
         */
117
 
        GHOST_TSuccess findMatch(GHOST_TUns8 display, const GHOST_DisplaySetting& setting, GHOST_DisplaySetting& match) const;
 
122
        GHOST_TSuccess findMatch(GHOST_TUns8 display,
 
123
                                 const GHOST_DisplaySetting& setting,
 
124
                                 GHOST_DisplaySetting& match) const;
118
125
 
119
126
        /**
120
127
         * Retrieves settings for each display device and stores them.
129
136
};
130
137
 
131
138
 
132
 
#endif // _GHOST_DISPLAY_MANAGER_H_
 
139
#endif // __GHOST_DISPLAYMANAGER_H__
133
140