2 * Copyright 2009, Axel Dörfler, axeld@pinc-software.de.
3 * This file may be used under the terms of the MIT License.
5 #ifndef SCREEN_CONFIGURATIONS_H
6 #define SCREEN_CONFIGURATIONS_H
9 #include <Accelerant.h>
12 #include <ObjectList.h>
18 struct screen_configuration
{
28 class ScreenConfigurations
{
30 ScreenConfigurations();
31 ~ScreenConfigurations();
33 screen_configuration
* CurrentByID(int32 id
) const;
34 screen_configuration
* BestFit(int32 id
, const monitor_info
* info
,
35 bool* _exactMatch
= NULL
) const;
37 status_t
Set(int32 id
, const monitor_info
* info
,
39 const display_mode
& mode
);
40 void Remove(screen_configuration
* configuration
);
42 status_t
Store(BMessage
& settings
) const;
43 status_t
Restore(const BMessage
& settings
);
46 typedef BObjectList
<screen_configuration
> ConfigurationList
;
48 ConfigurationList fConfigurations
;
52 #endif // SCREEN_CONFIGURATIONS_H