Finished unifying the Interface Kit headers:
* Fixed copyrights (puncuation and capitalization, removed authors from headers) * Updated indentation style * Unified pointer/reference style * Re-ordered some methods for better grouping where it could be done (abd adopted source accordingly) * Small coding style fixes here and there No functional change intended. +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32745 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2007, Haiku, Inc. All Rights Reserved.
|
||||
* Copyright 2007-2009, Haiku, Inc. All rights reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _SCREEN_H
|
||||
@@ -19,71 +19,83 @@ namespace BPrivate {
|
||||
class BPrivateScreen;
|
||||
}
|
||||
|
||||
|
||||
class BScreen {
|
||||
public:
|
||||
BScreen(screen_id id = B_MAIN_SCREEN_ID);
|
||||
BScreen(BWindow* window);
|
||||
~BScreen();
|
||||
public:
|
||||
BScreen(screen_id id = B_MAIN_SCREEN_ID);
|
||||
BScreen(BWindow* window);
|
||||
~BScreen();
|
||||
|
||||
bool IsValid();
|
||||
status_t SetToNext();
|
||||
bool IsValid();
|
||||
status_t SetToNext();
|
||||
|
||||
color_space ColorSpace();
|
||||
BRect Frame();
|
||||
screen_id ID();
|
||||
color_space ColorSpace();
|
||||
BRect Frame();
|
||||
screen_id ID();
|
||||
|
||||
status_t WaitForRetrace();
|
||||
status_t WaitForRetrace(bigtime_t timeout);
|
||||
status_t WaitForRetrace();
|
||||
status_t WaitForRetrace(bigtime_t timeout);
|
||||
|
||||
uint8 IndexForColor(rgb_color color);
|
||||
uint8 IndexForColor(uint8 red, uint8 green, uint8 blue,
|
||||
uint8 alpha = 255);
|
||||
rgb_color ColorForIndex(uint8 index);
|
||||
uint8 InvertIndex(uint8 index);
|
||||
uint8 IndexForColor(rgb_color color);
|
||||
uint8 IndexForColor(uint8 red, uint8 green,
|
||||
uint8 blue, uint8 alpha = 255);
|
||||
rgb_color ColorForIndex(uint8 index);
|
||||
uint8 InvertIndex(uint8 index);
|
||||
|
||||
const color_map* ColorMap();
|
||||
const color_map* ColorMap();
|
||||
|
||||
status_t GetBitmap(BBitmap** _bitmap, bool drawCursor = true,
|
||||
BRect* frame = NULL);
|
||||
status_t ReadBitmap(BBitmap* bitmap, bool drawCursor = true,
|
||||
BRect* frame = NULL);
|
||||
status_t GetBitmap(BBitmap** _bitmap,
|
||||
bool drawCursor = true,
|
||||
BRect* frame = NULL);
|
||||
status_t ReadBitmap(BBitmap* bitmap,
|
||||
bool drawCursor = true,
|
||||
BRect* frame = NULL);
|
||||
|
||||
rgb_color DesktopColor();
|
||||
rgb_color DesktopColor(uint32 index);
|
||||
void SetDesktopColor(rgb_color color, bool makeDefault = true);
|
||||
void SetDesktopColor(rgb_color color, uint32 index,
|
||||
bool makeDefault = true);
|
||||
rgb_color DesktopColor();
|
||||
rgb_color DesktopColor(uint32 index);
|
||||
void SetDesktopColor(rgb_color color,
|
||||
bool makeDefault = true);
|
||||
void SetDesktopColor(rgb_color color,
|
||||
uint32 index, bool makeDefault = true);
|
||||
|
||||
status_t ProposeMode(display_mode* target, const display_mode* low,
|
||||
const display_mode* high);
|
||||
status_t GetModeList(display_mode** _modeList, uint32* _count);
|
||||
status_t GetMode(display_mode* mode);
|
||||
status_t GetMode(uint32 workspace, display_mode* mode);
|
||||
status_t SetMode(display_mode* mode, bool makeDefault = false);
|
||||
status_t SetMode(uint32 workspace, display_mode* mode,
|
||||
bool makeDefault = false);
|
||||
status_t GetDeviceInfo(accelerant_device_info* info);
|
||||
status_t GetMonitorInfo(monitor_info* info);
|
||||
status_t GetPixelClockLimits(display_mode* mode, uint32* low,
|
||||
uint32* high);
|
||||
status_t GetTimingConstraints(
|
||||
display_timing_constraints* timingConstraints);
|
||||
status_t SetDPMS(uint32 state);
|
||||
uint32 DPMSState();
|
||||
uint32 DPMSCapabilites();
|
||||
status_t ProposeMode(display_mode* target,
|
||||
const display_mode* low,
|
||||
const display_mode* high);
|
||||
status_t GetModeList(display_mode** _modeList,
|
||||
uint32* _count);
|
||||
status_t GetMode(display_mode* _mode);
|
||||
status_t GetMode(uint32 workspace,
|
||||
display_mode* _mode);
|
||||
status_t SetMode(display_mode* mode,
|
||||
bool makeDefault = false);
|
||||
status_t SetMode(uint32 workspace,
|
||||
display_mode* mode,
|
||||
bool makeDefault = false);
|
||||
status_t GetDeviceInfo(accelerant_device_info* info);
|
||||
status_t GetMonitorInfo(monitor_info* info);
|
||||
status_t GetPixelClockLimits(display_mode* mode,
|
||||
uint32* low, uint32* high);
|
||||
status_t GetTimingConstraints(
|
||||
display_timing_constraints*
|
||||
timingConstraints);
|
||||
status_t SetDPMS(uint32 state);
|
||||
uint32 DPMSState();
|
||||
uint32 DPMSCapabilites();
|
||||
|
||||
private:
|
||||
BScreen& operator=(const BScreen& other);
|
||||
BScreen(const BScreen& other);
|
||||
private:
|
||||
// Forbidden and deprecated methods
|
||||
BScreen(const BScreen& other);
|
||||
BScreen& operator=(const BScreen& other);
|
||||
|
||||
// old and deprecated methods - should be faded out
|
||||
BPrivate::BPrivateScreen* private_screen();
|
||||
status_t ProposeDisplayMode(display_mode* target,
|
||||
const display_mode* low, const display_mode* high);
|
||||
void* BaseAddress();
|
||||
uint32 BytesPerRow();
|
||||
BPrivate::BPrivateScreen* private_screen();
|
||||
status_t ProposeDisplayMode(display_mode* target,
|
||||
const display_mode* low,
|
||||
const display_mode* high);
|
||||
void* BaseAddress();
|
||||
uint32 BytesPerRow();
|
||||
|
||||
BPrivate::BPrivateScreen* fScreen;
|
||||
private:
|
||||
BPrivate::BPrivateScreen* fScreen;
|
||||
};
|
||||
|
||||
|
||||
@@ -93,4 +105,4 @@ BScreen::IndexForColor(rgb_color color)
|
||||
return IndexForColor(color.red, color.green, color.blue, color.alpha);
|
||||
}
|
||||
|
||||
#endif // _SCREEN_H
|
||||
#endif // _SCREEN_H
|
||||
|
||||
Reference in New Issue
Block a user