2 * Copyright 2001-2009, Haiku, Inc.
3 * Distributed under the terms of the MIT license.
6 * Adi Oanca <adioanca@myrealbox.com>
7 * Axel Dörfler, axeld@pinc-software.de
8 * Stephan Aßmus, <superstippi@gmx.de>
14 #include <Accelerant.h>
15 #include <GraphicsDefs.h>
24 Screen(::HWInterface
*interface
, int32 id
);
28 status_t
Initialize();
31 int32
ID() const { return fID
; }
32 status_t
GetMonitorInfo(monitor_info
& info
) const;
34 status_t
SetMode(const display_mode
& mode
);
35 status_t
SetMode(uint16 width
, uint16 height
,
37 const display_timing
& timing
);
38 status_t
SetPreferredMode();
39 status_t
SetBestMode(uint16 width
, uint16 height
,
40 uint32 colorspace
, float frequency
,
43 void GetMode(display_mode
& mode
) const;
44 void GetMode(uint16
&width
, uint16
&height
,
45 uint32
&colorspace
, float &frequency
) const;
47 void SetFrame(const BRect
& rect
);
50 color_space
ColorSpace() const;
52 inline DrawingEngine
* GetDrawingEngine() const
54 inline ::HWInterface
* HWInterface() const
55 { return fHWInterface
; }
58 int32
_FindBestMode(const display_mode
* modeList
,
59 uint32 count
, uint16 width
, uint16 height
,
60 uint32 colorspace
, float frequency
) const;
63 DrawingEngine
* fDriver
;
64 ::HWInterface
* fHWInterface
;