#include <cascade/graphics/CascadeScreenMessage.h>
Public Types | |
enum | Type { kScreenResolutionChanged = 0, kOutputResolutionChanged = 1, kOutputScaleRectChanged = 2 } |
Static Public Member Functions | |
static u32 | MessageID () |
Public Attributes | |
Type | m_type |
u32 | m_nIndex |
CascadeRect | m_rect |
u8 | m_nBitDepth |
CascadeScreen::VideoConnector | m_Connector |
bool | m_bProgressive |
bool | m_bDoubleBuffered |
CascadeScreenMessage is broadcast to all local wormholes whenever the screen parameters are changed.
|
represents the type of screen message CascadeScreenMessages contain a member variable (m_type) of this type that indicates whether the screen message applies to the screen resolution (pixel dimensions of the screen for drawing), the output resolution (the resolution being output by the hardware to the display device), or the output scale rect.
|
|
returns the messageID of the CascadeScreenMessage MessageID() is used to determine if a wormhole message is a CascadeScreenMessage Use it as follows: CascadeMessage * pMessage = wormhole.WaitForMessage(); if ((NULL != pMessage) && (pMessage->ID() == CascadeScreenMessage::MessageID())) { // we have a screen message }
|
|
whether or not the screen is now double buffered m_bDoubleBuffered indicates whether or not the screen is now double buffered.
|
|
whether or not the screen is now progressive scan m_bProgressive indicates whether or not the screen is now progressive scan.
|
|
the new connector of the output m_Connector contains the new connector of the output |
|
the new bit depth of the screen m_nBitDepth contains the new bit depth of the screen |
|
the index of the screen/output resolution m_nIndex contains the new index of the screen/output resolution if m_type refers to a screen resolution or output resolution change
|
|
the new rect that describes the change in placement or dimensions m_rect contains the new rect which describes the new screen resolution, output resolution, or scale rect. In the case of a new screen resolution, or output resolution, the x and y coordinates of m_rect will be zero. |
|
the type of the screen message m_type contains the type of the screen message the index of the screen |