Pyro higlevel API
|
Classes | |
class | Private |
Public Types | |
enum | { ACTIVE_DESKTOP = 9999 } |
Public Member Functions | |
Desktop (int nDesktop=ACTIVE_DESKTOP) | |
~Desktop () | |
int | GetDesktop () const |
Return the desktop number. More... | |
screen_mode | GetScreenMode () const |
IPoint | GetResolution () const |
color_space | GetColorSpace () const |
void * | GetFrameBuffer () |
bool | SetScreenMode (screen_mode *psMode) |
bool | SetResolution (int nWidth, int nHeight) |
bool | SetColorSpace (color_space eColorSpace) |
bool | SetRefreshRate (float vRefreshRate) |
bool | Activate () const |
int | MinimizeAll () const |
Minimizes all windows on the desktop(besides the dock and the desktop) More... | |
Desktop::Desktop | ( | int | nDesktop = ACTIVE_DESKTOP | ) |
References os::Message::FindFloat(), os::Message::FindInt(), os::Message::FindInt32(), os::Message::FindIPoint(), os::Application::GetInstance(), screen_mode::m_eColorSpace, os::Desktop::Private::m_hLocalAreaID, os::Desktop::Private::m_hServerAreaID, screen_mode::m_nBytesPerLine, os::Desktop::Private::m_nDesktop, screen_mode::m_nHeight, screen_mode::m_nWidth, os::Desktop::Private::m_pFrameBuffer, os::Desktop::Private::m_psScreenMode, screen_mode::m_vHPos, screen_mode::m_vHSize, screen_mode::m_vRefreshRate, screen_mode::m_vVPos, screen_mode::m_vVSize, os::IPoint::x, and os::IPoint::y.
Desktop::~Desktop | ( | ) |
References os::Desktop::Private::m_hLocalAreaID, and os::Desktop::Private::m_psScreenMode.
bool Desktop::Activate | ( | ) | const |
References os::Application::GetInstance(), and os::Desktop::Private::m_nDesktop.
color_space Desktop::GetColorSpace | ( | ) | const |
References screen_mode::m_eColorSpace, and os::Desktop::Private::m_psScreenMode.
int Desktop::GetDesktop | ( | ) | const |
References os::Desktop::Private::m_nDesktop.
void * Desktop::GetFrameBuffer | ( | ) |
IPoint Desktop::GetResolution | ( | ) | const |
References screen_mode::m_nHeight, screen_mode::m_nWidth, and os::Desktop::Private::m_psScreenMode.
Referenced by os::Alert::Alert(), os::Window::CenterInScreen(), os::Spinner::MouseMove(), and os::Menu::Open().
screen_mode Desktop::GetScreenMode | ( | ) | const |
References os::Desktop::Private::m_psScreenMode.
int Desktop::MinimizeAll | ( | ) | const |
\return | Number of windows minimized |
References os::Message::AddInt32(), os::Message::FindInt32(), os::Application::GetInstance(), os::Application::GetServerPort(), and os::Desktop::Private::m_nDesktop.
bool Desktop::SetColorSpace | ( | color_space | eColorSpace | ) |
bool Desktop::SetRefreshRate | ( | float | vRefreshRate | ) |
bool Desktop::SetResolution | ( | int | nWidth, |
int | nHeight | ||
) |
bool Desktop::SetScreenMode | ( | screen_mode * | psMode | ) |
References os::Application::GetInstance(), screen_mode::m_eColorSpace, os::Desktop::Private::m_nDesktop, screen_mode::m_nHeight, screen_mode::m_nWidth, os::Desktop::Private::m_psScreenMode, screen_mode::m_vHPos, screen_mode::m_vHSize, screen_mode::m_vRefreshRate, screen_mode::m_vVPos, and screen_mode::m_vVSize.