31#include <textcursor.h>
32#include <pointerevent.h>
33#include <advancedpointerevent.h>
35#include <babitflags.h>
36#include <wspublishandsubscribedata.h>
38#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
39#include <graphics/windowserverconstants.h>
40#include <graphics/pointereventdata.h>
43_LIT(KWSERVThreadName,
"Wserv");
48class MWsObjectProvider;
49class RWsDrawableSource;
102 CFbsBitGc::TGraphicsOrientation
iRotation;
120 CFbsBitGc::TGraphicsOrientation
iRotation;
426#ifdef SYMBIAN_PROCESS_MONITORING_AND_STARTUP
956 inline TUint
Handle()
const;
977 inline TUint
Handle()
const;
1016 inline TInt
Type()
const;
1017 inline TUint
Handle()
const;
1019 inline void SetType(TInt aType);
1022 inline TInt*
Int()
const;
1101class TReadDescriptorType;
1102class TWriteDescriptorType;
1128 IMPORT_C TInt
Id()
const;
1130 IMPORT_C
void Set(TInt aId);
1136 TInt iWsGraphicIdSpare[2];
1152 IMPORT_C
void BaseConstructL(
TUid aUid,
TUid aType,
const TDesC8& aData);
1153 IMPORT_C
void BaseConstructL(
TUid aType,
const TDesC8& aData);
1154 IMPORT_C
void BaseConstructL(
const TWsGraphicId& aReplace,
TUid aType,
const TDesC8& aData);
1165 IMPORT_C
void SendMessage(
const TDesC8& aData)
const;
1177 virtual void HandleMessage(
const TDesC8& aData) = 0;
1183 virtual void OnReplace() = 0;
1184 IMPORT_C
virtual void OnClientClose();
1186 void BaseConstructL();
1187 IMPORT_C
virtual TInt CWsGraphic_Reserved1();
1188 IMPORT_C
virtual TInt CWsGraphic_Reserved2();
1189 IMPORT_C
virtual TInt CWsGraphic_Reserved3();
1197 TInt iWsGraphicSpare[2];
1212 void Write(
const TAny *aData1,TInt aLength1,TInt aLength2,TUint aOpcode)
const;
1213 void Write(
const TAny *aData, TInt aLength,
const TAny *aData2, TInt aLength2,TUint aOpcode,
const TIpcArgs* aIpcArgs=NULL)
const;
1214 void Write(
const TAny *aBuf, TInt aBufLen,TUint aOpcode,
const TIpcArgs* aIpcArgs=NULL)
const;
1215 void Write(TUint aOpcode)
const;
1216 void WriteInt(TInt aInt, TUint aOpcode)
const;
1222 TInt
WriteReply(
const TAny *aBuf, TInt aBufLen,TUint aOpcode,
const TIpcArgs* aIpcArgs=NULL)
const;
1223 TInt
WriteReply(
const TAny *aBuf, TInt aBufLen,
const TAny *aBuf2, TInt aBuflen2,TUint aOpcode,
const TIpcArgs* aIpcArgs=NULL)
const;
1224 TInt
WriteReplyP(
const TWriteDescriptorType& aReplyPackage,TUint aOpcode)
const;
1225 TInt
WriteReplyIntP(TInt aInt,
const TWriteDescriptorType& aReplyPackage,TUint aOpcode)
const;
1226 TInt
WriteReplyP(
const TAny *aBuf, TInt aBufLen,
const TWriteDescriptorType& aReplyPackage,TUint aOpcode)
const;
1227 TInt
WriteReplyP(
const TAny *aBuf, TInt aBufLen,
const TAny *aBuf2, TInt aBuflen2,
const TWriteDescriptorType& aReplyPackage,TUint aOpcode)
const;
1239 void AppendData(
const TAny *aData,TInt aLength,TBool aFinished);
1351 struct TWindowGroupChainInfo
1393 IMPORT_C TInt
SetHotKey(
THotKey aType, TUint aKeyCode, TUint aModifierMask, TUint aModifier);
1410 IMPORT_C
void Flush();
1447 IMPORT_C TInt
RegisterSurface(TInt aScreenNumber,
const TSurfaceId& aSurface);
1448 IMPORT_C
void UnregisterSurface(TInt aScreenNumber,
const TSurfaceId& aSurface);
1463 IMPORT_C TInt
DebugInfo(TInt aFunction, TInt aParam=0)
const;
1464 IMPORT_C TInt
DebugInfo(TInt aFunction, TDes8& aReturnBuf, TInt aParam=0)
const;
1465 IMPORT_C
void HeapSetFail(TInt aTAllocFail,TInt aValue);
1467 IMPORT_C TInt
SetModifierState(TEventModifier aModifier,TModifierState aState);
1504#if defined(__WINS__)
1506 IMPORT_C
void SetRemoveKeyCode(TBool aRemove);
1507 IMPORT_C
void SimulateXyInputType(TInt aInputType);
1517 IMPORT_C
void TestWrite(TInt aHandle,TInt aOpcode,
const TAny *aData, TInt aLength);
1518 IMPORT_C
void TestWriteReply(TInt aHandle,TInt aOpcode,
const TAny *aData, TInt aLength);
1519 IMPORT_C
void TestWriteReplyP(TInt aHandle,TInt aOpcode,
const TAny *aData,TInt aLength,TDes8 *aReplyPackage);
1554 TInt doWindowGroupList(TInt aScreenNumber, TInt aPriority,
CArrayFixFlat<TInt>* aWindowListId, TInt aNumOpcode, TInt aListOpcode)
const;
1555 TInt doSetHotKey(TInt aOpcode, TInt aType, TUint aKeycode, TUint aModifierMask, TUint aModifiers);
1562 void DirectAcessActivation(TBool aIsNowActive);
1609 IMPORT_C TUint32
Child()
const;
1635 IMPORT_C
void SetFaded(TBool aFaded,
TFadeControl aIncludeChildren,TUint8 aBlackMap,TUint8 aWhiteMap);
1644class TSurfaceConfiguration;
1719 IMPORT_C TInt
AddKeyRect(
const TRect &aRect, TInt aScanCode, TBool aActivatedByPointerSwitchOn);
1723 IMPORT_C TBool
IsFaded()
const;
1727 IMPORT_C TInt
SetBackgroundSurface(
const TSurfaceConfiguration& aConfiguration, TBool aTriggerRedraw);
1734 IMPORT_C
void SendEffectCommand(TInt aTfxCmd,
const TDesC8& aTfxCmdData=KNullDesC8);
1788 void doScroll(
const TRect &aClipRect,
const TPoint &aOffset,
const TRect &aRect, TInt aOpcode);
1881 IMPORT_C TInt
Construct(TUint32 aClientHandle);
1884 IMPORT_C TInt
Construct(TUint32 aClientHandle,TBool aIsFocusable);
1885 IMPORT_C TInt
ConstructChildApp(TInt aIdOfParentWindowGroup,TUint32 aClientHandle);
1886 IMPORT_C TInt
ConstructChildApp(TInt aIdOfParentWindowGroup,TUint32 aClientHandle,TBool aIsFocusable);
1892 IMPORT_C TInt32
CaptureKey(TUint aKeycode, TUint aModifierMask, TUint aModifier);
1893 IMPORT_C TInt32
CaptureKey(TUint aKeycode, TUint aModifierMask, TUint aModifier, TInt aPriority);
1896 IMPORT_C TInt32
CaptureKeyUpAndDowns(TUint aScanCode, TUint aModifierMask, TUint aModifier, TInt aPriority);
1898 IMPORT_C TInt32
CaptureLongKey(TUint aInputKeyCode,TUint aOutputKeyCode,TUint aModifierMask,TUint aModifier
1899 ,TInt aPriority,TUint aFlags);
1901 ,TUint aModifierMask,TUint aModifier,TInt aPriority,TUint aFlags);
1903 IMPORT_C TInt
AddPriorityKey(TUint aKeycode, TUint aModifierMask, TUint aModifier);
1904 IMPORT_C
void RemovePriorityKey(TUint aKeycode, TUint aModifierMask, TUint aModifier);
1911 IMPORT_C TInt
Name(
TDes &aWindowName)
const;
1921 TInt32 doCaptureKey(TUint aKey, TUint aModifierMask, TUint aModifiers, TInt aPriority, TInt aOpcode);
1922 void doCancelCaptureKey(TInt32 aCaptureKeyHandle, TInt aOpcode);
1941 IMPORT_C TInt
Create(
const TSize& aSizeInPixels,TDisplayMode aDispMode);
1943 IMPORT_C TInt
Load(
const TDesC& aFileName,TInt32 aId,TBool aShareIfLoaded=ETrue);
1945 IMPORT_C
void Reset();
1947 TInt createWsBitmap(TInt aErr);
{
1958 IMPORT_C TPtrC8
Pckg()
const;
1977 using RBuf8::CleanupClosePushL;
1978 IMPORT_C TInt
Append(
TUid aTypeId,
const TDesC8& aData);
1985 IMPORT_C TPtrC8
Data(TInt aIndex)
const;
1988 IMPORT_C
const TDesC8&
Pckg()
const;
1990 TInt ExpandForAppend(TInt aDataLen);
1991 void WriteHeader(
TUid aUid,TInt aLen);
1992 TInt IntAt(TInt aOfs)
const;
1994 TInt iRMsgBufSpare[2];
2055 IMPORT_C
virtual void Reset();
2080 IMPORT_C
virtual void Plot(
const TPoint &aPoint);
2103 IMPORT_C
virtual void DrawBitmap(
const TPoint &aTopLeft,
const CFbsBitmap *aDevice);
2104 IMPORT_C
virtual void DrawBitmap(
const TRect &aDestRect,
const CFbsBitmap *aDevice);
2106 IMPORT_C
virtual void DrawBitmapMasked(
const TRect& aDestRect,
const CFbsBitmap* aBitmap,
const TRect& aSourceRect,
const CFbsBitmap* aMaskBitmap, TBool aInvertMask);
2122 IMPORT_C
virtual void Clear();
2123 IMPORT_C
virtual void Clear(
const TRect &aRect);
2125 IMPORT_C
virtual void BitBlt(
const TPoint &aPos,
const CFbsBitmap *aBitmap);
2126 IMPORT_C
virtual void BitBlt(
const TPoint &aDestination,
const CFbsBitmap *aBitmap,
const TRect &aSource);
2127 IMPORT_C
virtual void BitBltMasked(
const TPoint& aPoint,
const CFbsBitmap* aBitmap,
const TRect& aSourceRect,
const CFbsBitmap* aMaskBitmap,TBool aInvertMask);
2131 IMPORT_C
virtual void MapColors(
const TRect& aRect,
const TRgb* aColors,TInt aNumPairs=2,TBool aMapForwards=ETrue);
2139 IMPORT_C
virtual void SetOpaque(TBool aDrawOpaque=ETrue);
2141 IMPORT_C
virtual void SetFaded(TBool aFaded);
2154 IMPORT_C
void Reserved_CGraphicsContext_2();
2156 IMPORT_C
void Reserved_CBitmapContext_1();
2157 IMPORT_C
void Reserved_CBitmapContext_2();
2158 IMPORT_C
void Reserved_CBitmapContext_3();
2164 IMPORT_C
virtual void Reserved_CWindowGc_3();
2165 IMPORT_C
virtual void Reserved_CWindowGc_4();
2166 IMPORT_C
virtual void Reserved_CWindowGc_5();
2171 void SetJustification(TInt aExcessWidth,TInt aNumGaps, TInt aOpcode);
2172 void DrawArcOrPie(
const TRect &aRect,
const TPoint &aStart,
const TPoint &aEnd, TInt aOpcode);
2175 void WriteTextPos(TInt aOpcode,TInt aOpcodePtr,
const TPoint &aPos,
const TDesC &aBuf)
const;
2176 void WriteTextCommand(TAny *aCmd, TInt aLen,
const TDesC &aBuf,TInt aOpcode,TInt aOpcodePtr)
const;
2177 void WriteTextCommand(TAny *aCmd, TInt aLen,
const TDesC8 &aBuf,TInt aOpcode,TInt aOpcodePtr)
const;
2178 TInt APIExGetUnderlineMetrics(TAny*& aOutput);
2179 TInt APIExSetShadowColor(TAny* aShadowColor);
2180 TInt APIExGetShadowColor(TAny*& aOutput);
2186 TInt APIExInterface(TAny*& aInterface,
TUid aInterfaceId);
2191 void DrawResource(
const TRect& aDestRect,
const RWsDrawableSource& aSource,
const TDesC8& aParam);
2243 IMPORT_C TInt
Construct( TInt aDefaultScreenNumber ) ;
2267 IMPORT_C
void GetScanLine(TDes8& aScanLine,
const TPoint& aStartPixel,TInt aPixelLength, TDisplayMode aDispMode)
const;
2296 IMPORT_C
void SetCurrentRotations(TInt aMode, CFbsBitGc::TGraphicsOrientation aRotation)
const;
2315 CFbsTypefaceStore* TypeFaceStore()
const;
2316 TSize DisplaySizeInPixels()
const;
2317 TSize PhysicalScreenSizeInTwips()
const;
2319 class CScrDevExtension;
2320 CScrDevExtension* iExtension;
2321 TSize iPhysicalScreenSizeInTwips;
2322 TSize iDisplaySizeInPixels;
2347 IMPORT_C
void Close();
2424 TInt CommandReply(TInt aHandle, TInt aOpcode,
const TIpcArgs* aIpcArgs=NULL);
2425 TInt CommandReply(TInt aHandle, TInt aOpcode,
const TDesC8& aArgs,
const TIpcArgs* aIpcArgs=NULL);
2426 void Command(TInt aHandle, TInt aOpcode,
const TPtrC8 &aArgs);
2427 void Command(TInt aHandle, TInt aOpcode);
2429 TInt CreateInstance(TInt32& aHandle,
const MWsClientClass &aDevice, TInt aType,
const TDesC8 &aArgs, TInt aOpcode,
const TIpcArgs* aIpcArgs);
2430 void DestroyInstance(TInt aHandle);
2446 IMPORT_C
virtual ~RAnim();
2447 IMPORT_C
virtual void Close();
2454 IMPORT_C TInt
Construct(
const RWsSprite &aDevice, TInt aType,
const TDesC8 &aParams);
2459 IMPORT_C
void Command(TInt aOpcode,
const TPtrC8 &aArgs);
2520 IMPORT_C
void Close();
2523 CDsaMsgQueue* iMsgQueue;
2611 inline CFbsBitGc*
Gc();
2617 EDirectCheckModeChange = 0x01,
2618 EDirectCheckSizeModeChange = 0x02,
2619 EDirectRegionTrackingOnly = 0x04,
2623 void ConstructL(
RWsSession& aWs,TBool aRegionTrackingOnly);
2624 void CreateScreenObjectsL(TDisplayMode aCurrentMode);
2625 void UpdateSizeAndRotation(CFbsBitGc* aGc);
2626 static TInt Restart(TAny* aDirect);
2633 CFbsScreenDevice* iScreenDevice;
2671 IMPORT_C
void Close();
2673 IMPORT_C TBool
IsLoaded(TBool& aIsChangeable)
const;
2675 IMPORT_C TInt
Load(
const TDesC &aFileName);
2680 IMPORT_C TInt
CommandReply(TInt aOpcode,
const TPtrC8 &aArgs);
2748inline TInt TAdvancedPointerEvent::PointerNumber() const
2770 return IsAdvancedPointerEvent() ? DoGetPointerNumber() : ENonAdvancedPointerPointerNumber;
2773inline TInt TAdvancedPointerEvent::Proximity() const
2790 return IsAdvancedPointerEvent() ? DoGetProximity() : ENonAdvancedPointerZCoordinate;
2793inline TInt TAdvancedPointerEvent::Pressure() const
2808 return IsAdvancedPointerEvent() ? DoGetPressure() : ENonAdvancedPointerZCoordinate;
2811inline TInt TAdvancedPointerEvent::ProximityAndPressure() const
2822 {
return IsAdvancedPointerEvent() ? DoGetProximityAndPressure() : ENonAdvancedPointerZCoordinate;}
2824inline TPoint3D TAdvancedPointerEvent::PositionAndPressure3D() const
2831 point3D.
iX=iPosition.iX;
2832 point3D.
iY=iPosition.iY;
2833 point3D.
iZ=ProximityAndPressure();
2837inline TPoint3D TAdvancedPointerEvent::Position3D() const
2845 point3D.
iY=iPosition.iY;
2846 point3D.
iZ=IsAdvancedPointerEvent() ? DoGetProximity() : ENonAdvancedPointerZCoordinate;
2850inline TPoint3D TAdvancedPointerEvent::Pressure3D() const
2857 point3D.
iX=iPosition.iX;
2858 point3D.
iY=iPosition.iY;
2859 point3D.
iZ=IsAdvancedPointerEvent() ? DoGetPressure() : ENonAdvancedPointerZCoordinate;
3019 {iWsScreenDevice=aScreenDevice;}
3043 {
return iScreenDevice; }
3057 {
return iDrawingRegion; }
The core class of the active object abstraction.
Array of fixed length objects contained within a flat dynamic buffer.
A thin templated base class for arrays of fixed length objects.
An abstract, device-independent, interface to bitmapped graphics contexts.
Defines an abstract interface for the capabilities and attributes of a bitmapped graphics device.
An active object used to start direct screen access.
CFbsBitGc * Gc()
Gets the graphics context for drawing to the screen.
static IMPORT_C CDirectScreenAccess * NewL(RWsSession &aWs, CWsScreenDevice &aScreenDevice, RWindowBase &aWin, MDirectScreenAccess &aAbort)
Allocates and constructs the object and adds it to the current active scheduler.
CFbsScreenDevice *& ScreenDevice()
Gets the screen device to draw to.
IMPORT_C void StartL()
Informs the window server that you are going to start direct screen access and sets up a graphics con...
RRegion * DrawingRegion()
Gets the clipping region to draw to.
Parameters used in drawing text within supplied context.
Abstract base class for all graphics contexts.
virtual void DrawText(const TDesC &aText, const TPoint &aPosition)=0
Draws text without a surrounding box.
virtual void DrawTextVertical(const TDesC &aText, const TPoint &aPos, TBool aUp)=0
Draws vertical text in the specified direction.
@ EAlternate
Only fill areas with odd winding numbers.
TTextAlign
Text alignment.
@ ELeft
Text is left-aligned.
Specifies the interface for concrete device classes.
An active object that performs low-priority processing when no higher-priority active objects are rea...
Provides user-definable palette support to the GDI.
virtual IMPORT_C void SetDrawMode(TDrawMode aDrawingMode)
Sets the drawing mode.
virtual IMPORT_C void DrawBitmap(const TPoint &aTopLeft, const CFbsBitmap *aDevice)
Draws a bitmap at the specified point.
virtual IMPORT_C void DrawWsGraphic(const TWsGraphicId &aId, const TRect &aDestRect)
Draws an abstract artwork.
virtual IMPORT_C void DiscardBrushPattern()
Discards a non-built-in brush pattern.
virtual IMPORT_C void UseBrushPattern(const CFbsBitmap *aDevice)
Sets the brush pattern to the specified bitmap.
virtual IMPORT_C void DrawRect(const TRect &aRect)
Draws and fills a rectangle.
virtual IMPORT_C void SetBrushOrigin(const TPoint &aOrigin)
Sets the brush pattern origin.
virtual IMPORT_C void DrawBitmapMasked(const TRect &aDestRect, const CFbsBitmap *aBitmap, const TRect &aSourceRect, const CFbsBitmap *aMaskBitmap, TBool aInvertMask)
Draws a specified rectangle of a source bitmap to fit into a given rectangle using a given mask.
virtual IMPORT_C ~CWindowGc()
Destructor.
IMPORT_C TAny * Interface(TUid aInterfaceId)
virtual IMPORT_C TInt AlphaBlendBitmaps(const TPoint &aDestPt, const CFbsBitmap *aSrcBmp, const TRect &aSrcRect, const CFbsBitmap *aAlphaBmp, const TPoint &aAlphaPt)
Performs an alpha blending of the source data, aSrcBmp, with the CBitmapContext, using the data from ...
virtual IMPORT_C TInt DrawPolygon(const CArrayFix< TPoint > *aPointList, TFillRule aFillRule=EAlternate)
Draws and fills a polygon defined using an array of points.
virtual IMPORT_C void SetOpaque(TBool aDrawOpaque=ETrue)
Sets and unsets an opaque flag on the window.
virtual IMPORT_C void BitBltMasked(const TPoint &aPoint, const CFbsBitmap *aBitmap, const TRect &aSourceRect, const CFbsBitmap *aMaskBitmap, TBool aInvertMask)
Performs a masked bitmap block transfer.
virtual IMPORT_C void Deactivate()
Frees the graphics context to be used with another window.
virtual IMPORT_C void MapColors(const TRect &aRect, const TRgb *aColors, TInt aNumPairs=2, TBool aMapForwards=ETrue)
Maps pixels in the specified rectangle.
virtual IMPORT_C void SetClippingRect(const TRect &aRect)
Sets the clipping rectangle.
virtual IMPORT_C void DrawRoundRect(const TRect &aRect, const TSize &aEllipse)
Draws and fills a rectangle with rounded corners.
virtual IMPORT_C void MoveTo(const TPoint &aPoint)
Sets the drawing point relative to the co-ordinate origin.
virtual IMPORT_C void Plot(const TPoint &aPoint)
Draws a single point.
virtual IMPORT_C void SetCharJustification(TInt aExcessWidth, TInt aNumChars)
Sets character justification.
virtual IMPORT_C void Activate(RDrawableWindow &aDevice)
Activates the context for a given window and updates iDevice with the pointer to the screen device of...
virtual IMPORT_C void Clear()
Clears the whole bitmap.
virtual IMPORT_C void UseFont(const CFont *aFont)
Sets the device font to be used for text drawing.
virtual IMPORT_C void DrawPie(const TRect &aRect, const TPoint &aStart, const TPoint &aEnd)
Draws and fills a pie slice.
virtual IMPORT_C CGraphicsDevice * Device() const
Gets a pointer to the graphics context's graphics device.
virtual IMPORT_C void DrawLineTo(const TPoint &aPoint)
Draws a straight line from the current drawing point to a specified point.
virtual IMPORT_C void DrawEllipse(const TRect &aRect)
Draws and fills an ellipse.
virtual IMPORT_C void SetPenSize(const TSize &aSize)
Sets the line drawing size for the pen.
virtual IMPORT_C TInt SetClippingRegion(const TRegion &aRegion)
Sets the clipping region, any items that fall outside the extent of the clipping region will not be d...
virtual IMPORT_C void DrawArc(const TRect &aRect, const TPoint &aStart, const TPoint &aEnd)
Draws an arc.
virtual IMPORT_C void SetOrigin(const TPoint &aPoint=TPoint(0, 0))
Sets the position of the co-ordinate origin.
virtual IMPORT_C TInt Construct()
Completes construction.
virtual IMPORT_C void SetFaded(TBool aFaded)
Sets whether the graphics context is faded.
virtual IMPORT_C void CopyRect(const TPoint &anOffset, const TRect &aRect)
Copies a rectangle.
virtual IMPORT_C void DrawPolyLine(const CArrayFix< TPoint > *aPointList)
Draws a polyline from a set of points in an array.
virtual IMPORT_C void SetPenColor(const TRgb &aColor)
Sets the pen colour.
virtual IMPORT_C void SetStrikethroughStyle(TFontStrikethrough aStrikethroughStyle)
Sets the strikethrough style.
virtual IMPORT_C void DrawLine(const TPoint &aPoint1, const TPoint &aPoint2)
Draws a straight line between two points.
virtual IMPORT_C void MoveBy(const TPoint &aPoint)
Sets the drawing point relative to the current co-ordinates.
virtual IMPORT_C void SetBrushColor(const TRgb &aColor)
Sets the brush colour.
virtual IMPORT_C void DrawTextVertical(const TDesC &aText, const TPoint &aPos, TBool aUp)
Draws vertical text in the specified direction.
virtual IMPORT_C void BitBlt(const TPoint &aPos, const CFbsBitmap *aBitmap)
Performs a bitmap block transfer.
virtual IMPORT_C void SetBrushStyle(TBrushStyle aBrushStyle)
Sets the brush style.
TGraphicsRotation
Defines possible clockwise rotation values.
@ EGraphicsRotation90
A 90 degree rotation.
@ EGraphicsRotation180
A 180 degree rotation.
@ EGraphicsRotation270
A 270 degree rotation.
@ EGraphicsRotationNone
No rotation.
virtual IMPORT_C void SetFadingParameters(TUint8 aBlackMap, TUint8 aWhiteMap)
Sets the fading parameters.
virtual IMPORT_C void Reset()
Resets the graphics context to its default settings:
IMPORT_C TInt APIExtension(TUid aUid, TAny *&aOutput, TAny *aInput)
virtual IMPORT_C void SetPenStyle(TPenStyle aPenStyle)
Sets the line drawing style for the pen.
virtual IMPORT_C void SetUnderlineStyle(TFontUnderline aUnderlineStyle)
Sets the underline style.
virtual IMPORT_C void DrawLineBy(const TPoint &aPoint)
Draws a straight line relative to the current drawing point, using a vector.
virtual IMPORT_C void DiscardFont()
Discards a font.
virtual IMPORT_C void DrawText(const TDesC &aBuf, const TPoint &aPos)
Draws text without a surrounding box.
virtual IMPORT_C void CancelClippingRect()
Cancels any clipping rectangle.
virtual IMPORT_C void CancelClippingRegion()
Cancels the current clipping region.
virtual IMPORT_C void SetWordJustification(TInt aExcessWidth, TInt aNumGaps)
Adjusts the spaces between words to stretch or squeeze to a certain width.
virtual IMPORT_C void SetDitherOrigin(const TPoint &aPoint)
Sets the origin used for colour dithering.
IMPORT_C TInt Duplicate(TInt aHandle)
Makes this bitmap a duplicate of the specified bitmap.
IMPORT_C CWsBitmap()
Default constructor.
IMPORT_C TInt Load(const TDesC &aFileName, TInt32 aId, TBool aShareIfLoaded=ETrue)
Loads a bitmap from a file.
IMPORT_C void InternalizeL(RReadStream &aStream)
Internalises a CWsBitmap from the read stream.
IMPORT_C void Reset()
Releases the bitmap's handle from the font and bitmap server.
IMPORT_C ~CWsBitmap()
Destructor.
IMPORT_C TInt Create(const TSize &aSizeInPixels, TDisplayMode aDispMode)
Creates a bitmap, specifying the size and display mode.
Client representation of a window-server-side piece of artwork owned by this Client.
IMPORT_C TInt Flush() const
Flushes window server command buffer.
IMPORT_C void SendMessage(const TDesC8 &aData) const
Sends message to this graphic artwork peer on the server.
IMPORT_C TInt SendSynchronMessage(const TDesC8 &aData) const
virtual IMPORT_C TInt UnShare(TSecureId aClientId)
Stops this graphic artwork from being shared with all client sessions with the specific Secure ID.
IMPORT_C TBool IsActive() const
Checks whether a peer of this graphic artwork has been fully constructed on the server.
IMPORT_C void SetGraphicExtension(MWsObjectProvider *aExt)
virtual IMPORT_C TInt UnShareGlobally()
Prevents this graphic artwork from being shared with all the client sessions.
IMPORT_C ~CWsGraphic()
Destructor.
IMPORT_C RWsSession & Session()
virtual IMPORT_C TInt ShareGlobally()
Shares the graphic artwork with all the client sessions.
IMPORT_C const TWsGraphicId & Id() const
Returns graphic artwork Id.
IMPORT_C CWsGraphic()
Default Constructor.
virtual IMPORT_C TInt Share(TSecureId aClientId)
Explicitly shares this graphic artwork with client sessions with the specified Secure ID.
IMPORT_C void Destroy()
Destroys the corresponding CWsGraphicDrawer instance on the server.
IMPORT_C TDisplayMode GetScreenModeDisplayMode(const TInt &aMode) const
Gets the display mode of the screen for the specified screen mode.
IMPORT_C TPoint GetDefaultScreenModeOrigin() const
Gets the origin for the current screen mode.
IMPORT_C TBool IsCurrentModeDynamic() const
Returns whether the current screen size mode is dynamic or not.
IMPORT_C TPoint GetScreenModeOrigin(TInt aMode) const
Get the origin of the screen for the specified screen mode.
IMPORT_C TInt SetBackLight(TBool aBackLight)
IMPORT_C TInt VerticalTwipsToPixels(TInt aTwips) const
Converts a vertical dimension from twips to pixels.
IMPORT_C void RemoveFile(TInt aId=0)
Removes a font file from the font store.
IMPORT_C TInt Construct()
Completes construction of the object.
IMPORT_C TInt GetScreenSizeModeList(RArray< TInt > *aModeList) const
Gets the available screen size modes.
IMPORT_C void GetPixel(TRgb &aColor, const TPoint &aPixel) const
Gets the RGB colour of an individual pixel on a bitmapped graphics device.
IMPORT_C void SetAppScreenMode(TInt aMode)
Sets the application's screen mode; this also sets all the attributes of the screen mode.
IMPORT_C TDisplayMode DisplayMode() const
Gets the display mode of the device.
IMPORT_C TInt GetRotationsList(TInt aMode, CArrayFixFlat< TInt > *aRotationList) const
Gets the list of valid rotations for a particular screen size.
virtual IMPORT_C TInt GetNearestFontToDesignHeightInPixels(CFont *&aFont, const TFontSpec &aFontSpec)
virtual IMPORT_C TInt GetNearestFontInTwips(CFont *&aFont, const TFontSpec &aFontSpec)
IMPORT_C void GetDefaultScreenSizeAndRotation(TPixelsTwipsAndRotation &aSizeAndRotation) const
Gets the current screen size (in both pixels and twips) and rotation.
IMPORT_C TInt AddFile(const TDesC &aName, TInt &aId)
Adds a font file to the device's typeface store.
IMPORT_C TInt HorizontalTwipsToPixels(TInt aTwips) const
Converts a horizontal dimension from twips to pixels.
IMPORT_C TPoint GetCurrentScreenModeScaledOrigin() const
Gets the current screen mode's scaled origin.
IMPORT_C TAny * GetInterface(TUint aInterfaceId)
Interface Extension capability Use of this interface going forward will allow the published client in...
IMPORT_C TInt VerticalPixelsToTwips(TInt aPixels) const
Converts a vertical dimension from pixels to twips.
IMPORT_C TInt GetPalette(CPalette *&aPalette) const
Gets the device's current palette.
IMPORT_C void PaletteAttributes(TBool &aModifiable, TInt &aNumEntries) const
Gets the palette attributes of the device.
IMPORT_C TPoint GetScreenModeScaledOrigin(TInt aMode) const
Gets the specfied screen mode's scaled origin.
IMPORT_C void TypefaceSupport(TTypefaceSupport &aTypefaceSupport, TInt aTypefaceIndex) const
Gets typeface information for a specified typeface.
IMPORT_C TSize GetScreenModeScale(TInt aMode) const
Gets the scale for the specified screen mode.
IMPORT_C TInt NumScreenModes() const
Gets the number of available screen modes.
IMPORT_C TInt SetCustomPalette(const CPalette *aPalette)
Sets the custom palette.
IMPORT_C TInt GetFontById(CFont *&aFont, TUid aUid, const TAlgStyle &aAlgStyle)
Gets a font by its bitmap UID.
IMPORT_C TSize SizeInTwips() const
Gets the size of the device area in twips.
IMPORT_C TRect PointerRect() const
Gets the active area for the pointing device.
IMPORT_C void SetScreenModeEnforcement(TScreenModeEnforcement aMode) const
Sets the screen mode enforcement requirements.
IMPORT_C TInt CurrentScreenMode() const
Gets the current screen mode index.
virtual IMPORT_C TInt GetNearestFontToMaxHeightInPixels(CFont *&aFont, const TFontSpec &aFontSpec, TInt aMaxHeight)
IMPORT_C TSizeMode GetCurrentScreenModeAttributes() const
Used for testing purposes only.
IMPORT_C void ReleaseFont(CFont *aFont)
Releases the specified font.
IMPORT_C TInt NumTypefaces() const
Gets the number of typefaces supported by the graphics device.
IMPORT_C TInt HorizontalPixelsToTwips(TInt aPixels) const
Converts a horizontal dimension from pixels to twips.
virtual IMPORT_C TInt GetNearestFontToDesignHeightInTwips(CFont *&aFont, const TFontSpec &aFontSpec)
IMPORT_C void SetScreenMode(TInt aMode)
Sets the current screen mode.
IMPORT_C TInt FontHeightInTwips(TInt aTypefaceIndex, TInt aHeightIndex) const
Get the height of a font in twips.
IMPORT_C TBool RectCompare(const TRect &aRect1, const TRect &aRect2) const
Compares two areas of the screen to see if they have the same content.
IMPORT_C void SetCurrentScreenModeAttributes(const TSizeMode &aModeAtt)
Used for testing purposes only.
IMPORT_C TInt CreateContext(CGraphicsContext *&aGc)
Creates a graphics context for the device.
IMPORT_C TInt GetScreenNumber() const
Get device's screen number.
IMPORT_C TInt CopyScreenToBitmap(const CFbsBitmap *aBitmap) const
Saves the entire screen to a bitmap.
IMPORT_C void SetScreenSizeAndRotation(const TPixelsTwipsAndRotation &aSizeAndRotation)
Sets the current screen size in twips and pixels, and the rotation for the screen device.
virtual IMPORT_C TInt GetNearestFontToMaxHeightInTwips(CFont *&aFont, const TFontSpec &aFontSpec, TInt aMaxHeight)
IMPORT_C void GetScreenModeSizeAndRotation(TInt aMode, TPixelsTwipsAndRotation &aSizeAndRotation) const
Get the screen rotation and size, in both pixels and twips, for the specified screen mode.
TSpriteInCompare
Whether or not to include sprites when comparing areas of the screen.
@ EIncludeSprite
This enum can be specified as the 3rd parameter to CWsScreenDevice::RectCompare(const TRect &aRect1,...
@ ERemoveSprite
This enum can be specified as the 3rd parameter to CWsScreenDevice::RectCompare(const TRect &aRect1,...
@ EIncludeTextCursor
This enum can be specified as the 3rd parameter to CWsScreenDevice::RectCompare(const TRect &aRect1,...
IMPORT_C ~CWsScreenDevice()
Destructor.
IMPORT_C TSize GetCurrentScreenModeScale() const
Gets the scale for the current screen mode.
IMPORT_C TBool IsModeDynamic(TInt aSizeMode) const
Returns whether the given screen size mode is dynamic or not.
IMPORT_C TInt FontHeightInPixels(TInt aTypefaceIndex, TInt aHeightIndex) const
Gets the height, in pixels, of the specified typeface at one of its defined heights.
IMPORT_C void SetCurrentRotations(TInt aMode, CFbsBitGc::TGraphicsOrientation aRotation) const
Sets the screen rotation that should be used with a particular screen size.
IMPORT_C TSize SizeInPixels() const
Gets the size of the device area in pixels.
IMPORT_C CWsScreenDevice()
Default constructor.
IMPORT_C void SetPalette(CPalette *aPalette)
Sets the device's palette.
IMPORT_C void GetScanLine(TDes8 &aScanLine, const TPoint &aStartPixel, TInt aPixelLength, TDisplayMode aDispMode) const
Copies a scanline into a buffer.
IMPORT_C TScreenModeEnforcement ScreenModeEnforcement() const
Gets the current screen mode enforcement settings.
virtual IMPORT_C TInt GetNearestFontInPixels(CFont *&aFont, const TFontSpec &aFontSpec)
The interface for terminating direct screen access.
virtual void AbortNow(RDirectScreenAccess::TTerminationReasons aReason)=0
This function is called by the window server when direct screen access must stop (for example because...
The interface for restarting direct screen access.
virtual void Restart(RDirectScreenAccess::TTerminationReasons aReason)=0
This function is called by the window server as soon as direct screen access can resume.
Base class for all classes whose objects are clients of the window server.
void DestroyWindowSizeCacheEntry()
TInt WsHandle() const
Gets the server side handle for the object.
void WritePoint(const TPoint &aPoint, TUint aOpcode) const
TInt WriteReply(TUint aOpcode, const TIpcArgs *aIpcArgs=NULL) const
TInt WriteReplyByProvidingRemoteReadAccess(const TAny *aBuf, TInt aBufLen, const TReadDescriptorType &aRemoteReadBuffer, TUint aOpcode) const
TInt WriteReplyInt(TInt aInt, TUint aOpcode, const TIpcArgs *aIpcArgs=NULL) const
TInt32 iWsHandle
WARNING: Member variable for internal use ONLY.
TInt WriteReplyIntP(TInt aInt, const TWriteDescriptorType &aReplyPackage, TUint aOpcode) const
TInt CachedWindowSize(TSize &aSize) const
void WriteRect(const TRect &aRect, TUint aOpcode) const
void Write(const TAny *aData1, TInt aLength1, TInt aLength2, TUint aOpcode) const
void MarkWindowSizeCacheDirty()
void WriteSize(const TSize &aSize, TUint aOpcode) const
RWsBuffer * iBuffer
WARNING: Member variable for internal use ONLY.
void WriteInt(TInt aInt, TUint aOpcode) const
void AddToBitmapArray(const TInt aBitmapHandle) const
TInt WriteReplyP(const TWriteDescriptorType &aReplyPackage, TUint aOpcode) const
TBool WindowSizeCacheEnabled() const
void RefreshWindowSizeCache(const TSize &aNewSize) const
void AsyncRequest(TRequestStatus &aStatus, TUint aOpcode) const
static void FillZ(TAny *aTrg, TInt aLength)
Fills a specified block of data with binary zeroes (i.e.
Client-side interface to the server-side animation DLL.
IMPORT_C TInt Load(const TDesC &aFileName)
Instructs the server to load an animation DLL.
virtual IMPORT_C void Close()
Closes an animation DLL.
IMPORT_C RAnimDll()
Default constructor.
IMPORT_C void Destroy()
Closes and deletes a previously loaded polymorphic DLL.
virtual IMPORT_C ~RAnimDll()
Empty virtual destructor.
Client-side handle to a server-side animation class.
IMPORT_C TInt Construct(const RWindowBase &aDevice, TInt aType, const TDesC8 &aParams)
Completes construction of the object based on a window device, and creates the server-side animation ...
IMPORT_C void AsyncCommandReply(TRequestStatus &aRequestStatus, TInt aOpcode, const TIpcArgs &aIpcArgs)
Sends a command and its arguments to the server-side CAnim instance asynchronously.
virtual IMPORT_C void Close()
Sends the close command.
virtual IMPORT_C ~RAnim()
Empty virtual destructor.
IMPORT_C void Command(TInt aOpcode, const TPtrC8 &aArgs)
Sends a command and its arguments to the server-side CAnim instance, and returns immediately.
IMPORT_C TInt CommandReply(TInt aOpcode)
Sends a command to the server-side CAnim instance, and waits for a response.
IMPORT_C void Destroy()
Closes and deletes the server-side animation object.
IMPORT_C RAnim()
Default constructor.
A simple and efficient array of fixed length objects.
Client-side handle to a drawable window with a backup bitmap.
IMPORT_C TInt Construct(const RWindowTreeNode &parent, TDisplayMode aDisplayMode, TUint32 aHandle)
Completes the construction of a backed up window.
IMPORT_C void UpdateBackupBitmap()
Copies to the backup bitmap any areas of the window which are not currently stored in the bitmap.
IMPORT_C void MaintainBackup()
Tells the window server to start maintaining a backup bitmap with the entire window contents.
IMPORT_C void UpdateScreen()
Copies the backup bitmap's image to the on-screen bitmap.
IMPORT_C RBackedUpWindow()
Default C++ constructor which creates a sessionless backed-up window handle.
IMPORT_C TInt BitmapHandle() const
Gets a handle to the backup bitmap.
IMPORT_C void SetColor()
Sets the background colour used for clearing when the window becomes uncovered or visible to none.
IMPORT_C void SetSize(const TSize &size)
Sets the size of the blank window.
IMPORT_C RBlankWindow()
Default C++ constructor which creates an invalid blank-window handle.
IMPORT_C TInt Construct(const RWindowTreeNode &parent, TUint32 aHandle)
Completes the construction of a valid blank-window handle.
IMPORT_C void SetExtent(const TPoint &point, const TSize &size)
Sets the extent of the blank window.
The interface between an application that directly accesses the screen and the window server.
IMPORT_C RDirectScreenAccess()
Default constructor.
IMPORT_C void Close()
Calls Completed() then deletes the server side resource and sets the client's handle to it to NULL.
IMPORT_C void Cancel()
Indicates to the window server that you have finished performing direct screen access.
TTerminationReasons
Provides the reason why direct screen access must terminate.
@ ETerminateRegion
A window is about to come in front of a part of the area that is being used for direct screen access.
@ ETerminateScreenMode
The screen's color depth (as enumerated by TDisplayMode) is about to change.
@ ETerminateCancel
The application has finished direct screen access.
@ ETerminateRotation
The current screen mode (the combination of screen rotation and screen size) is about to change.
IMPORT_C TInt Construct()
Second phase constructor.
IMPORT_C void Completed()
Indicates to the window server that you have responded to the completion of the request status passed...
IMPORT_C TInt Request(RRegion *&aRegion, TRequestStatus &aStatus, const RWindowBase &aWindow)
Issues a request to the window server for permission to perform direct screen access on a window.
TPriority
The priority of the active object that responds to notification that direct screen access must stop.
@ EPriorityVeryHigh
A suggested value for the priority of the active object that responds to notification from the window...
Handle to a drawable window.
RDrawableWindow()
Protected default constructor which creates a sessionless, uninitialised drawable-window handle.
void SetDrawRect(const TRect &aRect)
Protected system function.
IMPORT_C TRect GetDrawRect() const
Obtains the current rectangle being drawn to this window, during a window redraw cycle.
IMPORT_C void Scroll(const TPoint &aOffset)
Scrolls the window contents by an offset.
A handle to a file server session.
Client-side handle to a session with a server.
Client interface to the key or pointer click plug-in DLL.
@ ESoundWrongPlugIn
The value returned by CommandReply() if no plug-in is loaded, or if the plug-in identified by the aUi...
IMPORT_C TInt Unload()
Unloads the plug-in if one is currently loaded and if it can be unloaded.
IMPORT_C TBool KeyClickEnabled() const
Tests whether key clicks are enabled, as set by SetKeyClick().
IMPORT_C void Close()
Sets the handle to zero and frees the resource owned by the server.
IMPORT_C void SetPenClick(TBool aEnabled)
Sets whether pointer clicks should be enabled or disabled.
IMPORT_C TBool IsLoaded(TBool &aIsChangeable) const
Tests whether a key or pointer click plug-in DLL is currently loaded.
IMPORT_C TInt CommandReply(TInt aOpcode, const TPtrC8 &aArgs)
Sends a command to the plug-in DLL and may receive a response.
IMPORT_C void SetKeyClick(TBool aEnabled)
Sets whether key clicks should be enabled or disabled.
IMPORT_C TInt Construct(TUid aUid=KNullUid)
Second phase constructor.
IMPORT_C TBool PenClickEnabled() const
Tests whether pointer clicks are enabled, as set by SetPenClick().
IMPORT_C RSoundPlugIn()
Default constructor.
IMPORT_C void Destroy()
Closes (by calling Close()) and deletes the object.
IMPORT_C TInt Load(const TDesC &aFileName)
Loads a new plug-in, replacing the existing one, if any.
Client-side handle to a server-side window.
IMPORT_C TInt SetCornerType(TCornerType aCornerType, TInt aCornerFlags=0)
Sets the shape of a window's corners.
IMPORT_C void RemoveAllKeyRects()
Removes all the on-screen keys that have been added to this window.
IMPORT_C void CancelPointerRepeatEventRequest()
Cancels a request for a pointer repeat event.
IMPORT_C TPoint InquireOffset(const RWindowTreeNode &aWindow) const
Enquires the offset between this and another window.
IMPORT_C void DiscardPointerMoveBuffer()
Discards all events in the pointer move buffer.
IMPORT_C void EnableBackup(TUint aBackupType=EWindowBackupAreaBehind)
Requests that this window backs up all or part of the screen's contents.
IMPORT_C void EnableAdvancedPointers()
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C void RequestPointerRepeatEvent(TTimeIntervalMicroSeconds32 aTime, const TRect &aRect)
Requests a pointer repeat event.
IMPORT_C TInt AddKeyRect(const TRect &aRect, TInt aScanCode, TBool aActivatedByPointerSwitchOn)
Adds an on-screen key rectangle.
RWindowBase()
Protected default constructor; creates an uninitialised, sessionless window handle.
IMPORT_C TSize Size() const
Gets the window's current size.
IMPORT_C TRgb KeyColor() const
This function returns the key color for the window, if used.
IMPORT_C void SetShadowHeight(TInt aHeight)
Sets a window's shadow height.
IMPORT_C void RemoveBackgroundSurface(TBool aTriggerRedraw)
This removes any background surface that has been set to the window.
IMPORT_C TInt MoveToGroup(TInt aIdentifier)
Moves this window to another window group.
IMPORT_C TBool IsNonFading() const
Tests whether the current window is non-fading.
IMPORT_C TInt GetBackgroundSurface(TSurfaceConfiguration &aConfiguration) const
Retrieves a copy of the current configuration for background surface attached to the window.
IMPORT_C void DisablePointerMoveBuffer()
Instructs the window server to stop adding pointer events to the pointer move buffer.
IMPORT_C void SetPointerGrab(TBool aState)
Allows or disallows pointer grabs in a window.
TCaptureFlags
Capture behaviour flags.
@ TCaptureEnabled
Equivalent to TCaptureFlagEnabled.
@ TCaptureFlagDragDrop
If set, drag-drop events are sent to the window in which the pointer was lifted.
@ TCaptureFlagAllGroups
Capture events from windows belonging to any group, not just the group of the window on which the fla...
@ TCaptureFlagEnabled
If set, capture is enabled, disabled otherwise.
@ TCaptureDragDrop
Equivalent to the OR of the first three flags.
@ TCaptureDisabled
Equivalent to disabling all the above flags.
IMPORT_C void OverrideEffects(TInt aAction, const TFileName &aResourceDir, const TFileName &aFilenameOutgoing, const TFileName &aFilenameIncoming, TBitFlags aFlags=0)
IMPORT_C TInt SetExtentErr(const TPoint &point, const TSize &size)
Sets a backed-up window's extent, relative to its parent, and returns an error code from the server.
IMPORT_C void SetVisible(TBool aState)
Sets the window's visibility.
IMPORT_C void FreePointerMoveBuffer()
Frees the pointer move buffer.
IMPORT_C TInt RetrievePointerMoveBuffer(TDes8 &aBuf) const
Retrieves events from the pointer move buffer.
IMPORT_C TInt PasswordWindow(TPasswordMode aPasswordMode)
Makes this window the password window.
TInt construct(const RWindowTreeNode &parent, TUint32 aHandle, TInt aType, TDisplayMode aDisplayMode)
Panic condition: TW32Panic 17 in debug builds if called on an already constructed object.
IMPORT_C TPoint Position() const
Gets a window's position relative to its parent.
IMPORT_C TInt SetSizeErr(const TSize &size)
Sets the size of a backed-up window.
IMPORT_C TInt SetRequiredDisplayMode(TDisplayMode aMode)
Sets the window's display mode.
IMPORT_C void SetPurpose(TInt aPurpose)
IMPORT_C TInt FixNativeOrientation()
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C void SetPointerCapture(TInt aFlags)
Sets the pointer capture state.
IMPORT_C void SetShadowDisabled(TBool aState)
Enables or disables whether a window casts a shadow.
IMPORT_C void SetSurfaceTransparency(TBool aSurfaceTransparency)
Not supported in non-NGA.
IMPORT_C void EnablePointerMoveBuffer()
Enables the pointer move buffer for receiving pointer move events.
IMPORT_C TInt SetBackgroundSurface(const TSurfaceId &aSurface)
This sets the background of the window to be the given surface.
IMPORT_C void Activate()
Displays the window and enables it to receive events.
IMPORT_C TInt AllocPointerMoveBuffer(TInt aMaxPoints, TUint aFlags)
Allocates a buffer for storing pointer movements.
IMPORT_C TDisplayMode DisplayMode() const
Gets the window's current display mode.
IMPORT_C TInt GetPointerCapturePriority() const
Gets the windows's pointer capture priority.
IMPORT_C void FadeBehind(TBool aFade)
Sets whether or not all windows behind the current window, in the same window group,...
IMPORT_C void SetPosition(const TPoint &point)
Sets the position of a window relative to its parent.
IMPORT_C void ClaimPointerGrab(TBool aSendUpEvent=ETrue)
Claims the pointer grab from another window.
IMPORT_C void PointerFilter(TUint32 aFilterMask, TUint32 aFilter)
Sets the filter which controls which pointer events are sent to the client session.
IMPORT_C TSize SizeForEgl() const
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C TBool IsFaded() const
Tests whether the current window is faded.
IMPORT_C void SendEffectCommand(TInt aTfxCmd, const TDesC8 &aTfxCmdData=KNullDesC8)
IMPORT_C void SetPointerCapturePriority(TInt aPriority)
Sets the window's pointer capture priority.
IMPORT_C TInt SetShape(const TRegion &aRegion)
Sets a window's shape arbitrarily, if rectangular windows are not required.
IMPORT_C TPoint AbsPosition() const
Gets a window's absolute position - ie the windows position relative to the current screen size mode.
Client-side handle to a server-side window group.
IMPORT_C void CancelCaptureKeyUpAndDowns(TInt32 aCaptureKey)
Cancels a capture request for a key up or key down event.
IMPORT_C TInt AddPriorityKey(TUint aKeycode, TUint aModifierMask, TUint aModifier)
Adds a priority key.
IMPORT_C TInt EnableScreenChangeEvents()
Enables screen change event sending.
IMPORT_C TInt32 CaptureKeyUpAndDowns(TUint aScanCode, TUint aModifierMask, TUint aModifier)
Requests the capture of key-up and key-down events on behalf of a window group.
IMPORT_C void DefaultOwningWindow()
Makes this window group the default owning window group.
IMPORT_C void AutoForeground(TBool aState)
Sets or disables auto-foreground behaviour.
IMPORT_C void SimulateAdvancedPointerEvent(TRawEvent aEvent)
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C TInt32 CaptureLongKey(TUint aInputKeyCode, TUint aOutputKeyCode, TUint aModifierMask, TUint aModifier, TInt aPriority, TUint aFlags)
Requests capture of long key presses.
IMPORT_C void DisableKeyClick(TBool aState)
Disables key clicks.
IMPORT_C void DisableScreenChangeEvents()
Disables screen change event sending.
IMPORT_C void CancelCaptureLongKey(TInt32 aCaptureKey)
Cancels a previous long key capture request.
IMPORT_C RWindowGroup()
Creates a sessionless, uninitialised window group handle.
IMPORT_C void SimulatePointerEvent(TRawEvent aEvent)
Simulates a pointer event.
IMPORT_C void AllowProcessToCreateChildWindowGroups(TUid aProcessSID)
Allows a Window Group in the specified process to be be a child of this one.
IMPORT_C void CancelTextCursor()
Removes the text cursor.
IMPORT_C TInt SetChildGroup(TInt aId)
Sets a window group chain onto the current window group.
IMPORT_C TInt SetName(const TDesC &aName)
Sets the window group's name.
IMPORT_C void EnableReceiptOfFocus(TBool aState)
Enables or disables receipt of keyboard focus.
IMPORT_C void SetOwningWindowGroup(TInt aIdentifier)
Sets the owning window group for this window group.
IMPORT_C TInt Construct(TUint32 aClientHandle)
Completes construction of a window group.
IMPORT_C TInt ConstructChildApp(TInt aIdOfParentWindowGroup, TUint32 aClientHandle)
Completes construction of a window group.
IMPORT_C void CancelCaptureKey(TInt32 aCaptureKey)
Cancels a request for key capture.
IMPORT_C TInt SetOrdinalPositionErr(TInt aPos, TInt aOrdinalPriority)
Sets the ordinal position and ordinal priority of a window.
IMPORT_C TInt ClearChildGroup()
Clears all children of the current window group.
IMPORT_C void SetTextCursor(RWindowBase &aWin, const TPoint &aPos, const TTextCursor &aCursor)
Sets the text cursor.
IMPORT_C TInt32 CaptureKey(TUint aKeycode, TUint aModifierMask, TUint aModifier)
Requests key capture.
IMPORT_C void SetOrdinalPriorityAdjust(TInt aAdjust)
Sets the window group's priority adjust value.
IMPORT_C TInt Identifier() const
Gets the identifier of the window group.
IMPORT_C void RemovePriorityKey(TUint aKeycode, TUint aModifierMask, TUint aModifier)
Removes a priority key.
IMPORT_C TInt Name(TDes &aWindowName) const
Gets the window group's name, as set by SetName().
A handle to a node in the server-side window tree.
IMPORT_C void DisableFocusChangeEvents()
Disables delivery of focus changed events.
IMPORT_C void SetOrdinalPosition(TInt aPos)
Sets the ordinal position of a window.
IMPORT_C void DisableVisibilityChangeEvents()
Disables reporting of window visibility change events.
IMPORT_C TInt EnableVisibilityChangeEvents()
Enables reporting of window visibility change events.
IMPORT_C TInt FullOrdinalPosition() const
Get the current full ordinal position of a window.
IMPORT_C TInt OrdinalPriority() const
Gets the ordinal priority of the specified window.
IMPORT_C void DisableModifierChangedEvents()
Cancels notification of modifier changed events.
IMPORT_C TUint32 PrevSibling() const
Gets the node before this one in the sibling list.
IMPORT_C TInt EnableModifierChangedEvents(TUint aModifierMask, TEventControl aCircumstances)
Requests notification of modifier changed events.
IMPORT_C TInt WindowGroupId() const
Returns the window group Id of the parent window group.
IMPORT_C TInt EnableErrorMessages(TEventControl aCircumstances)
Requests notification of error message events.
TFadeControl
Fade control flags.
@ EFadeIncludeChildren
Include all child windows when fading/un-fading.
@ EFadeWindowOnly
Fade only the parent window.
IMPORT_C TInt EnableFocusChangeEvents()
Enables focus changed events.
IMPORT_C TInt EnableOnEvents(TEventControl aCircumstances=EEventControlOnlyWithKeyboardFocus)
Requests notification of 'on' events.
IMPORT_C TUint32 Parent() const
Gets the node's parent.
IMPORT_C void DisableGroupListChangeEvents()
Disables reporting of window group list change events.
IMPORT_C TUint32 Child() const
Gets the first child of the node.
IMPORT_C void Destroy()
Closes and deletes the node.
IMPORT_C void SetNonFading(TBool aNonFading)
Sets whether a window is non-fading.
IMPORT_C TInt EnableGroupListChangeEvents()
Enables reporting of window group list change events.
IMPORT_C void Close()
Closes the node.
IMPORT_C void SetFaded(TBool aFaded, TFadeControl aIncludeChildren)
Sets the window as faded or unfaded.
IMPORT_C TInt SetPointerCursor(TInt aCursorNumber)
Sets the pointer cursor from the system pointer cursor list.
IMPORT_C void DisableGroupChangeEvents()
Cancels notification of group changed events.
RWindowTreeNode()
Protected default constructor.
IMPORT_C TUint32 NextSibling() const
Gets the next window after this one in its sibling list.
IMPORT_C TInt EnableGroupChangeEvents()
Requests notification of group-change events.
IMPORT_C TInt OrdinalPosition() const
Gets the current ordinal position of the window tree node.
IMPORT_C void SetCustomPointerCursor(const RWsPointerCursor &aPointerCursor)
Sets the pointer cursor to an application-defined cursor.
IMPORT_C TUint32 ClientHandle() const
Gets the window's client handle.
IMPORT_C void DisableErrorMessages()
Cancels notification of error message events.
IMPORT_C RWsSession * Session() const
Returns the window server session that is used to create this window handle.
IMPORT_C void ClearPointerCursor()
Clears pointer cursor settings.
IMPORT_C void DisableOnEvents()
Cancels notification of 'on' events.
IMPORT_C TInt ScreenNumber() const
Get the screen number that a window is located on.
Handle to a standard window.
IMPORT_C TInt SetTransparencyWsBitmap(const CWsBitmap &aTransparencyBitmap)
Window transparency based on the use of a separate window mask bitmap has been deprecated.
IMPORT_C void Invalidate()
Invalidates the entire window.
IMPORT_C TInt Construct(const RWindowTreeNode &parent, TUint32 aHandle)
Completes the construction of the window handle.
IMPORT_C RWindow()
Default constructor which creates a sessionless, uninitialised window handle.
IMPORT_C TInt SetTransparentRegion(const TRegion &aRegion)
Sets the user-defined transparent region of a window.
IMPORT_C void SetExtent(const TPoint &point, const TSize &size)
Sets the size and position of a window.
IMPORT_C TInt SetTransparencyPolicy(TWsTransparencyPolicy aPolicy)
Sets the transparency policy of a window.
IMPORT_C void EnableRedrawStore(TBool aEnabled)
Enables or Disables the storing of redraw operations that do not intersect the viewport for a window.
IMPORT_C TInt SetTransparencyAlphaChannel()
Enables the use of an alpha channel to control the window's transparency.
IMPORT_C void SetNonTransparent()
Window transparency based on the use of a separate window mask bitmap has been deprecated.
IMPORT_C void EnableOSB(TBool)
Enables/Disables the WSERV to use its OSB.
IMPORT_C void GetInvalidRegion(RRegion &aRegion) const
Gets the invalid region.
IMPORT_C void ClearRedrawStore()
Clears the draw commands that are stored for this window from the redraw store.
IMPORT_C TBool IsRedrawStoreEnabled() const
Returns whether the window uses a redraw store to store drawing commands.
IMPORT_C void SetSize(const TSize &size)
Sets the size of a window.
IMPORT_C TInt SetTransparencyFactor(const TRgb &aTransparencyFactor)
The support for window transparency factor has been deprecated.
IMPORT_C void BeginRedraw()
Begins redrawing the window's invalid region.
IMPORT_C void SetBackgroundColor()
Sets the background colour used for clearing in server-initiated redraws to none.
IMPORT_C void EndRedraw()
Ends the current redraw.
IMPORT_C void HandleTransparencyUpdate()
Window transparency based on the use of a separate window mask bitmap has been deprecated.
IMPORT_C TInt SetTransparencyBitmap(const CFbsBitmap &aTransparencyBitmap)
Window transparency based on the use of a separate window mask bitmap has been deprecated.
Utility class for building data buffers to be attached to CWindowGc::DrawWsGraphic commands Useful wh...
IMPORT_C void Remove(TInt aIndex)
IMPORT_C TPtrC8 Data(TInt aIndex) const
IMPORT_C TUid TypeId(TInt aIndex) const
IMPORT_C TInt Count() const
Returns the number of messages in the buffer.
IMPORT_C const TDesC8 & Pckg() const
IMPORT_C RWsGraphicMsgBuf()
Default Constructor.
IMPORT_C TInt Append(TUid aTypeId, const TDesC8 &aData)
Append a descriptor as data.
IMPORT_C void GetFixedMsg(TWsGraphicMsgFixedBase &aMsg, TInt aIndex) const
IMPORT_C RWsPointerCursor()
Default C++ constructor.
IMPORT_C TInt Construct(TInt aFlags)
Completes pointer cursor construction.
IMPORT_C TPointerCursorMode PointerCursorMode() const
Gets the current mode for the pointer cursor.
IMPORT_C TInt HeapCount() const
Gets the heap count.
IMPORT_C void ClearAllRedrawStores()
Clear the redraw store for all windows in the system By default Windows will recorded the drawing com...
IMPORT_C TInt SetHotKey(THotKey aType, TUint aKeyCode, TUint aModifierMask, TUint aModifier)
Sets the hot keys.
IMPORT_C TInt GetExitCloseProximityThreshold() const
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C void SetPointerCursorMode(TPointerCursorMode aMode)
Sets the current mode for the pointer cursor.
IMPORT_C TInt SetSystemFaded(TBool aFaded)
Sets all windows in the system as faded or unfaded, using the default fading parameters.
IMPORT_C TInt SetWindowGroupOrdinalPosition(TInt aIdentifier, TInt aPosition)
Sets the ordinal position of a window group.
IMPORT_C TInt SetModifierState(TEventModifier aModifier, TModifierState aState)
Sets the state of the modifier keys.
IMPORT_C TInt FindWindowGroupIdentifier(TInt aPreviousIdentifier, const TDesC &aMatch, TInt aOffset=0) const
Gets all window groups whose names match a given string, which can contain wildcards.
TComputeMode
Compute mode flags.
@ EPriorityControlDisabled
Client priority is permanently set to its current level.
@ EPriorityControlComputeOff
Client process's priority is set to EPriorityForeground when the window group takes focus,...
@ EPriorityControlComputeOn
Client process's priority is always set to EPriorityBackground.
IMPORT_C TInt NumberOfScreens() const
Number Of Screens.
IMPORT_C void Flush()
Sends all pending commands in the buffer to the window server.
IMPORT_C TInt GetWindowGroupHandle(TInt aIdentifier) const
Gets the handle of the window specified by the window group identifier.
IMPORT_C TInt SetDoubleClick(const TTimeIntervalMicroSeconds32 &aInterval, TInt aDistance)
Sets the system-wide double click settings.
IMPORT_C void GetRedraw(TWsRedrawEvent &aEvent)
Gets the redraw event from the session.
IMPORT_C TInt SetPointerCursorPosition(const TPoint &aPosition)
Sets the pointer cursor position.
IMPORT_C void GetPriorityKey(TWsPriorityKeyEvent &aEvent) const
Gets the completed priority key event from the window server session.
IMPORT_C TDisplayMode GetDefModeMaxNumColors(TInt &aColor, TInt &aGray) const
Gets the number of colours available in the richest supported colour mode, the number of greys availa...
IMPORT_C void SetDefaultFadingParameters(TUint8 aBlackMap, TUint8 aWhiteMap)
Sets the default fading parameters.
IMPORT_C void IndicateAppOrientation(TRenderOrientation aOrientation)
IMPORT_C void UnregisterSurface(TInt aScreenNumber, const TSurfaceId &aSurface)
This function removes the surface from the session's register of surfaces that are used in compositio...
void GraphicAbortMessage(TInt aError)
IMPORT_C void FreeSystemPointerCursorList()
Releases the system pointer cursor list and deletes all the entries in it.
IMPORT_C void PriorityKeyReadyCancel()
Cancels a priority key event request.
IMPORT_C TInt GetColorModeList(CArrayFixFlat< TInt > *aModeList) const
Gets the list of available colour modes.
IMPORT_C void RegisterEffect(TInt aAction, TInt aPurpose, const TFileName &aResourceDir, const TFileName &aFilenameOutgoing, const TFileName &aFilenameIncoming, TUint aAppUid=0, TBitFlags aFlags=0)
IMPORT_C TRgb GetBackgroundColor() const
Gets the window server's background colour.
IMPORT_C TInt GetExitHighPressureThreshold() const
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C void EnableWindowSizeCacheL()
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C void HeapSetBurstFail(TInt aTAllocFail, TInt aRate, TInt aBurst)
Sets the heap failure burst mode in the window server.
IMPORT_C TInt GetEnterHighPressureThreshold() const
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C TInt SendEventToWindowGroup(TInt aIdentifier, const TWsEvent &aEvent)
Sends an event to a window group.
IMPORT_C TInt SetKeyboardRepeatRate(const TTimeIntervalMicroSeconds32 &aInitialTime, const TTimeIntervalMicroSeconds32 &aTime)
Sets the system-wide keyboard repeat rate.
IMPORT_C TInt GetWindowGroupNameFromIdentifier(TInt aIdentifier, TDes &aWindowName) const
Gets the name of a window group from its identifier.
IMPORT_C TPoint ShadowVector() const
Gets the current value of the shadow vector.
IMPORT_C TInt ClearHotKeys(THotKey aType)
Clears all mappings for the specified hotkey, including the default mapping.
IMPORT_C TInt GetWindowGroupOrdinalPriority(TInt aIdentifier) const
Gets a window group's priority.
IMPORT_C void RedrawReadyCancel()
Cancels a redraw event request.
IMPORT_C void TestWrite(TInt aHandle, TInt aOpcode, const TAny *aData, TInt aLength)
IMPORT_C void SystemInfo(TInt &aSystemInfoNumber, SSystemInfo &aSystemInfo)
IMPORT_C TInt NumWindowGroups() const
Gets the total number of window groups currently running in the window server.
IMPORT_C TInt GetFocusScreen() const
Get focus screen.
IMPORT_C TInt SetHighPressureThresholds(TInt aEnterHighPressureThreshold, TInt aExitHighPressureThreshold)
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C TBool SetAutoFlush(TBool aState)
Sets a session's auto-flush state.
void GetGraphicMessage(TDes8 &aData) const
void GraphicMessageCancel()
IMPORT_C void ComputeMode(TComputeMode aMode)
Sets the mode used to control process priorities.
IMPORT_C TInt FetchMessage(TUid &aUid, TPtr8 &aParams, const TWsEvent &aMessageEvent) const
This function always causes a flush of the window server buffer.
IMPORT_C void ClearSystemPointerCursor(TInt aCursorNumber)
Clears a system pointer cursor from the list.
IMPORT_C TRect PointerCursorArea() const
Gets the pointer cursor area for the first screen display mode.
IMPORT_C TInt SendMessageToWindowGroup(TInt aIdentifier, TUid aUid, const TDesC8 &aParams)
Sends a message to a window group.
IMPORT_C TInt RequestOffEvents(TBool aOn, RWindowTreeNode *aWin=NULL)
Requests the window server to send OFF events to a window.
IMPORT_C void HeapSetFail(TInt aTAllocFail, TInt aValue)
Sets the heap failure mode in the window server.
IMPORT_C TInt ResourceCount() const
Gets the number of objects that the server has allocated for that client.
IMPORT_C void EventReadyCancel()
Cancels a request for standard events from the window server.
IMPORT_C TInt GetWindowGroupClientThreadId(TInt aIdentifier, TThreadId &aThreadId) const
Gets the thread ID of the client that owns the window group specified by the window group identifier.
IMPORT_C TInt GetFocusWindowGroup() const
Gets the identifier of the window group that currently has the keyboard focus.
IMPORT_C void SetDefaultSystemPointerCursor(TInt aCursorNumber)
Sets the default system pointer cursor.
friend class RWsDrawableSource
IMPORT_C void SimulateRawEvent(TRawEvent aEvent)
Simulates raw events.
IMPORT_C void GetEvent(TWsEvent &aEvent) const
Gets a standard event from the session for processing.
IMPORT_C TInt TestWriteReplyByProvidingRemoteReadAccess(TInt aHandle, TInt aOpcode, const TDesC8 &aData, const TDesC8 &aRemoteReadBuffer)
TCustomTextCursorAlignment
The vertical alignment of a custom text cursor sprite.
@ ECustomTextCursorAlignTop
The y-origin of each sprite member bitmap is aligned with the top of the line.
@ ECustomTextCursorAlignBottom
The y-origin of each sprite member bitmap is aligned with the bottom of the line.
@ ECustomTextCursorAlignBaseline
The y-origin of each sprite member bitmap is aligned with the baseline of the line.
IMPORT_C void ClearDefaultSystemPointerCursor()
Clears the default system pointer cursor.
IMPORT_C TInt SetFocusScreen(TInt aScreenNumber)
Set focus screen.
IMPORT_C TInt SetSystemPointerCursor(const RWsPointerCursor &aPointerCursor, TInt aCursorNumber)
Sets a cursor in the system pointer cursor list.
IMPORT_C void PriorityKeyReady(TRequestStatus *aStat)
Requests priority key events from the window server.
IMPORT_C TInt GetEnterCloseProximityThreshold() const
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C TInt SetClientCursorMode(TPointerCursorMode aMode)
Sets the current mode for the pointer cursor.
IMPORT_C void RedrawReady(TRequestStatus *aStat)
Requests redraw events from the window server.
IMPORT_C void Close()
Closes the window server session.
void GraphicMessageReady(TRequestStatus *aStat)
IMPORT_C TInt ClaimSystemPointerCursorList()
Claims the system pointer cursor list.
IMPORT_C void LogCommand(TLoggingCommand aCommand)
Allows the window server client to enable or disable logging of window server events.
IMPORT_C RWsSession()
Default C++ constructor.
IMPORT_C void OverrideEffects(TInt aAction, TInt aPurpose, const TFileName &aResourceDir, const TFileName &aFilenameOutgoing, const TFileName &aFilenameIncoming, TBitFlags aFlags=0)
IMPORT_C void SetBufferSizeL(TInt aBufSize)
Sets both the buffer size and maximum buffer size for queuing commands to send to the Windows Server.
IMPORT_C void UnregisterEffect(TInt aAction, TInt aPurpose, TUint aAppUid=0)
IMPORT_C TVersion Version() const
Gets the window server version.
IMPORT_C TInt SendEventToOneWindowGroupsPerClient(const TWsEvent &aEvent)
IMPORT_C void SimulateKeyEvent(TKeyEvent aEvent)
Sends a simulated key event to the window server.
IMPORT_C void GetKeyboardRepeatRate(TTimeIntervalMicroSeconds32 &aInitialTime, TTimeIntervalMicroSeconds32 &aTime) const
Gets the current system-wide settings for the keyboard repeat rate.
IMPORT_C void SyncMsgBuf()
Sends all pending commands in the buffer to the window server.
IMPORT_C TInt GetDefaultOwningWindow() const
Gets the identifier of the current default owning window group.
TLoggingCommand
Window server logging commands passed to LogCommand().
@ ELoggingDisable
Disables logging.
@ ELoggingHeapDump
Logs information about the window server's heap size and usage, even if logging is not currently enab...
@ ELoggingEnable
Enables logging.
@ ELoggingStatusDump
Logs the current status of all the windows in the tree, even if logging is not currently enabled.
IMPORT_C TInt SendMessageToAllWindowGroups(TUid aUid, const TDesC8 &aParams)
Sends a message to all window groups.
IMPORT_C void PurgePointerEvents()
Removes all pointer events waiting to be delivered to this session.
IMPORT_C TPoint PointerCursorPosition() const
Gets the pointer cursor position.
IMPORT_C TInt RestoreDefaultHotKey(THotKey aType)
Restores the default mapping for a hot key.
IMPORT_C void PrepareForSwitchOff()
Prepares for switch off.
IMPORT_C void TestWriteReplyP(TInt aHandle, TInt aOpcode, const TAny *aData, TInt aLength, TDes8 *aReplyPackage)
IMPORT_C void PasswordEntered()
Disables the window server password mode.
IMPORT_C TInt PreferredSurfaceConfigurationSize() const
Returns the window server's preferred size for the TSurfaceConfiguration object, used for RWindow::Se...
IMPORT_C void UnregisterAllEffects()
IMPORT_C void SetBackgroundColor(TRgb aColor)
Sets the background colour for the window server.
IMPORT_C TInt GetModifierState() const
Gets the state of the modifier keys.
IMPORT_C void SetMaxBufferSizeL(TInt aMaxBufSize)
Sets the maximum size that the buffer for queuing commands to send to the Windows Server can expand t...
IMPORT_C void GetDoubleClickSettings(TTimeIntervalMicroSeconds32 &aInterval, TInt &aDistance) const
Gets the current system-wide settings for pointer double clicks.
IMPORT_C TInt SetCloseProximityThresholds(TInt aEnterCloseProximityThreshold, TInt aExitCloseProximityThreshold)
Dummy implementation in order to preserve compatibility with WSERV NGA.
IMPORT_C TInt SetCustomTextCursor(TInt aIdentifier, const TArray< TSpriteMember > &aSpriteMemberArray, TUint aSpriteFlags, TCustomTextCursorAlignment aAlignment)
Adds a custom text cursor to the server's list of cursors.
IMPORT_C void TestWriteReply(TInt aHandle, TInt aOpcode, const TAny *aData, TInt aLength)
IMPORT_C TInt DebugInfo(TInt aFunction, TInt aParam=0) const
IMPORT_C void SetShadowVector(const TPoint &aVector)
Sets the shadow vector.
IMPORT_C TInt Connect()
Connects the client session to the window server.
IMPORT_C TInt WindowGroupList(CArrayFixFlat< TInt > *aWindowList) const
Gets a list of identifiers of all window groups in all window server sessions.
TInt GraphicFetchHeaderMessage()
IMPORT_C void LogMessage(const TLogMessageText &aMessage)
Adds a message to the window server debug log if one is currently in operation.
IMPORT_C TInt RegisterSurface(TInt aScreenNumber, const TSurfaceId &aSurface)
This function registers a surface for use in composition on the screen associated with this device wi...
IMPORT_C TInt Finish()
Blocks until all outstanding window server rendering has been completed.
IMPORT_C void SetPointerCursorArea(const TRect &aArea)
Sets the area of the screen in which the virtual cursor can be used while in relative mouse mode,...
IMPORT_C void SendEffectCommand(TInt aTfxCmd, const TDesC8 &aTfxCmdData=KNullDesC8)
IMPORT_C TInt SendEventToAllWindowGroups(const TWsEvent &aEvent)
Sends the specified event to all existing window groups.
IMPORT_C void EventReady(TRequestStatus *aStat)
Requests standard events from the window server.
IMPORT_C TInt Activate()
Activates the sprite or pointer cursor.
IMPORT_C TInt AppendMember(const TSpriteMember &aMemberData)
Adds a sprite member to a sprite or pointer cursor.
IMPORT_C RWsSpriteBase()
Protected constructor.
IMPORT_C void Close()
Destroys the sprite or pointer cursor in the window server, and frees client-side resources used by t...
IMPORT_C void UpdateMember(TInt aIndex)
Updates the displayed sprite, taking into account any change to the content of the bitmaps for the sp...
IMPORT_C TInt Construct(RWindowTreeNode &aWindow, const TPoint &aPos, TInt aFlags)
Completes the construction of a sprite.
IMPORT_C RWsSprite()
Default C++ constructor.
IMPORT_C void SetPosition(const TPoint &aPos)
Sets the sprite's position.
A build-independent modifiable buffer descriptor.
Specifies the font specification in device independent terms.
A Version 2 client/server class that clients use to package the arguments to be sent to a server.
Stores a three-dimensional point in Cartesian or polar co-ordinates.
TInt iZ
The z co-ordinate.
TInt iY
The y co-ordinate.
TInt iX
The x co-ordinate.
Stores a two-dimensional point in Cartesian co-ordinates.
Clipping region - abstract base class.
Indicates the completion status of a request made to a service provider.
24-bit RGB colour value with 8 bits each for red, green and blue.
A class used to represent the Secure ID of a process or executable image.
Stores a two-dimensional size as a width and a height value.
Encapsulates the Id of a thread.
Represents a microsecond time interval stored in 32 rather than 64 bits.
Stores and manipulates the date and time.
IMPORT_C void UniversalTime()
Sets the date and time of this TTime to the universal time.
Typeface family support information.
A globally unique 32-bit number.
Contains version information.
TInt iType
WARNING: Member variable for internal use ONLY.
TInt Type() const
Gets the type of event that occurred.
TWsDisplayChangedEvent * DisplayChanged()
Gets information about the display changed event.
TTime Time() const
Gets the time when the event occurred.
TUint Handle() const
Gets the window handle.
void SetTimeNow()
Sets the event time to the current time.
IMPORT_C void SetPointerZ(TInt aZ)
Dummy implementation in order to preserve compatibility with WSERV NGA.
TKeyEvent * Key() const
Gets the key event.
TTime iTime
WARNING: Member variable for internal use ONLY.
TModifiersChangedEvent * ModifiersChanged() const
Gets information about the modifier changed event.
void SetHandle(TUint aHandle)
Sets the event handle.
TWsErrorMessage * ErrorMessage() const
Gets an error event.
IMPORT_C void InitAdvancedPointerEvent(TPointerEvent::TType aType, TUint aModifiers, const TPoint3D &aPoint3D, TUint8 aPointerNumber)
Dummy implementation in order to preserve compatibility with WSERV NGA.
TInt * Int() const
Gets the event data as a TInt.
void SetType(TInt aType)
Sets the event type.
TUint iHandle
WARNING: Member variable for internal use ONLY.
@ EWsEventDataSize
This is the maximum number of bytes of data that can be returned by EventData().
IMPORT_C void SetPointerNumber(TUint8 aPointerNumber)
Dummy implementation in order to preserve compatibility with WSERV NGA.
TUint8 iEventData[EWsEventDataSize]
WARNING: Member variable for internal use ONLY.
TWsVisibilityChangedEvent * VisibilityChanged()
Gets information about the visibility changed event.
TAdvancedPointerEvent * Pointer() const
Gets the pointer event.
TUint8 * EventData() const
Gets information about the event.
Identifies an abstract artwork.
IMPORT_C TBool IsId() const
Identifies whether graphic artwork is transient.
IMPORT_C TBool IsUid() const
Identifies whether graphic artwork is non-transient.
IMPORT_C TInt Id() const
Returns the transient Id.
IMPORT_C void Set(TUid aUid)
Set to be a UID.
IMPORT_C TInt Compare(const TWsGraphicId &aOther) const
Compares another Id with this one.
IMPORT_C TUid Uid() const
Returns UID.
Base class for fixed-size messages to be attached to CWindowGc::DrawWsGraphic commands.
IMPORT_C TInt Size() const
IMPORT_C TUid TypeId() const
IMPORT_C TPtrC8 Pckg() const
TUint Handle() const
Gets the handle for the window group which added the priority key.
TUint8 iEventData[sizeof(TKeyEvent)]
WARNING: Member variable for internal use ONLY.
void SetHandle(TUint aHandle)
Sets the window group event handle.
TKeyEvent * Key() const
Gets the priority key event.
TUint iHandle
WARNING: Member variable for internal use ONLY.
Window server redraw event.
TRect iRect
Rectangle to redraw.
TUint Handle() const
Gets the handle of the window which is the target of the redraw event.
void SetHandle(TUint aHandle)
TUint iHandle
WARNING: Member variable for internal use ONLY.
TRect Rect() const
Gets the rectangle to redraw.
void SetRect(TRect aRect)
TDes8 TDes
Defines a build-independent modifiable descriptor.
TDesC8 TDesC
Defines a build-independent non-modifiable descriptor.
#define KNullUid
Defines a null UID.
TFontStrikethrough
Font strike-through flags.
TFontUnderline
Font underline flags.
WARNING: Struct for internal use ONLY.
TInt iInfo[ESystemInfoArraySize]
TUint iModifiers
State of modifier keys and pointing device.
TInt iScanCode
The scan code of the key that caused the event.
TUint iCode
The character code generated for an EEventKey, or 0 for a down or up event.
TInt iRepeats
Count of auto repeats generated.
Details of changed modifier keys.
TUint iChangedModifiers
Contains a set bit for any modifier which has changed.
TUint iModifiers
Current state of all modifiers, combined using a bitwise-OR.
Pixels and rotation struct.
CFbsBitGc::TGraphicsOrientation iRotation
The current screen orientation.
TSize iPixelSize
The screen size, for a given screen mode, in pixels.
Pixels, twips and rotation struct.
TSize iPixelSize
The screen size, for a given screen mode, in pixels.
TSize iTwipsSize
The screen size, for a given screen mode, in twips.
CFbsBitGc::TGraphicsOrientation iRotation
The screen rotation.
CFbsBitmap * iMaskBitmap
The bitmap mask.
CGraphicsContext::TDrawMode iDrawMode
Specifies the drawing mode to use when drawing iBitmap if the mask is NULL.
TTimeIntervalMicroSeconds32 iInterval
Time interval for which iBitmap is displayed.
TPoint iOffset
Offset from the sprite's central position.
CFbsBitmap * iBitmap
The bitmap to be displayed in the sprite or pointer cursor during the time interval specified by iInt...
TBool iInvertMask
EFalse if the mask bitmap is not to be inverted (the default) or ETrue if it is to be inverted.
TInt iResolutionListChangeId
Opaque value that changes when the resolution list has changed.
TInt iDisplayNumber
Number of display that has changed, causing this event.
TInt iConfigurationChangeId
Opaque value that changes when the current display configuration has changed.
TErrorCategory iErrorCategory
The error category.
TUint iError
The error code.
TErrorCategory
Error event types.
@ EBackLight
An error occured while trying to turn the backlight on or off.
@ EContrast
An error that occured while trying to change the contrast.
@ EDrawingRegion
An error that occurs while the window server is calculating a drawing region for a particular window.
@ ELogging
An error occured while trying to enable logging.
Visibility changed events.
@ ENotVisible
None of the window is visible, either directly or through a transparent window.
@ EFullyVisible
All of the window is directly visible.
@ EPartiallyVisible
Some (or all) of the window is visible, either directly or through a transparent window.
TUint iFlags
A combination of one or more visibility event flags.
@ ECanBeSeen
Some or all of the window is visible, either directly or through a transparent window.
@ ECantBeSeen
None of the window is visible, either directly or through a transparent window.
@ KOrdinalPositionSwitchToOwningWindow
Switch ordinal position to owning window.
THotKey
Window server hot keys.
@ EHotKeyBacklightOn
Switches the backlight on.
@ EHotKeyCycleFocusScreen
Cycle focus screen from one to another in multiple screen environment.
@ EHotKeyEnableLogging
Enables logging of all messages to and from the window server.
@ EHotKeyHeapDump
Dumps a list of cells allocated on the window server's heap to the log.
@ EHotKeyIncBrightness
Increases the screen's brightness.
@ EHotKeyStateDump
Dumps a list of all windows to the log.
@ EHotKeyCycleOrientation
Cycles the screen orientation through the specified rotations for the particular size mode you are in...
@ EHotKeyBacklightOff
Switches the backlight off.
@ EHotKeyScreenDimension0
Switches to screen size 0.
@ EHotKeyCycleDisplaySize
Cycles the display though its possible sizes.
@ EHotKeyDecContrast
Decreases the LCD contrast.
@ EHotKeyLastKeyType
Value for last hot key.
@ EHotKeyOfDeath
Kills the foreground application.
@ EHotKeyFirstKeyType
Value for first hot key.
@ EHotKeyDecBrightness
Decreases the screen's brightness.
@ EHotKeyScreenDimension3
Switches to screen size 3.
@ EHotKeyDisableLogging
Always disables window server logging, if active.
@ EHotKeyScreenDimension1
Switches to screen size 1.
@ EHotKeyBacklightToggle
Toggles the backlight.
@ EHotKeyShutDown
Shuts down the window server.
@ EHotKeyIncContrast
Increases the LCD contrast.
@ EHotKeyScreenDimension2
Switches to screen size 2.
@ EHotKeyOff
Switches the machine off.
TBuf< KLogMessageLength > TLogMessageText
Log message text buffer.
TPointerCursorMode
Pointer cursor mode flags.
@ EPointerCursorNormal
The default system pointer cursor is used unless the window the pointer cursor is above specifies one...
@ EPointerCursorFirstMode
First pointer cursor mode.
@ EPointerCursorFixed
The default system pointer cursor is used whenever there is a pointer cursor.
@ EPointerCursorWindow
There is no pointer cursor unless the pointer is above a window that has specified one.
@ EPointerCursorNone
Don't have a pointer cursor.
@ EPointerCursorLastMode
The final pointer cursor mode.
TPasswordMode
Password mode flags.
@ EPasswordAlways
Password mode is enabled every time the machine is switched on.
@ EPasswordOnceADayTriggerNow
Equivalent to setting the password mode to EPasswordOnceADay and triggering an instant password check...
@ EPasswordOnceADay
Password mode is enabled only once a day.
@ EPasswordNone
No password handling is performed by this window, but no other window can become the password window.
@ EPasswordAlwaysTriggerNow
Equivalent to setting the password mode to EPasswordAlways and triggering an instant password check.
@ EPasswordCancel
Releases ownership of password handling.
@ KLogMessageLength
The length of the log message text buffer in characters.
TCornerFlags
Corner flags.
@ EWindowCornerNotBR
Do not apply corner shape to bottom right corner.
@ EWindowCornerNotTL
Do not apply corner shape to top left corner.
@ EWindowCornerNotBL
Do not apply corner shape to bottom left corner.
@ EWindowCornerNotTR
Do not apply corner shape to top right corner.
_LIT(KWSERVThreadName,"Wserv")
TSpriteFlags
Sprite flags.
@ ESpriteFlash
Flash sprite on and off.
@ ESpriteNoChildClip
This flag no longer has any effect.
@ ESpriteNoShadows
The sprite's appearance will not change when it is on a shadowed part of the screen.
@ EAllPriorities
Defines the value EAllPriorities.
TLongCaptureFlags
Flags which customise a long key press capture request made by a window group.
@ ELongCaptureRepeatEvents
If specified, causes the long key press to automatically repeat.
@ ELongCaptureWaitShort
Equivalent to the first two values being unset.
@ ELongCaptureShortEventImmediately
If specified, the normal ("short") key event is sent immediately (on key down) to the application wit...
@ ELongCaptureNormal
Equivalent to ELongCaptureShortEventImmediately being set and the other flags unset.
TWindowBackupType
Window backup type flags.
@ EWindowBackupFullScreen
Backup the entire screen.
@ EWindowBackupAreaBehind
Backup the area behind the current window only.
TWsTransparencyPolicy
Transparency policies.
@ ETransparencyDefault
Default behaviour.
@ ETransparencyFreezeUnder
Freeze the content of underneath the transparent window to prevent redraw everytime the overlying win...
@ KPasswordWindowGroupPriority
Password window group priority.
TCornerType
Window corner types.
@ EWindowCorner2
Two pixel step.
@ EWindowCorner1
Corner pixel removed.
@ EWindowCorner3
Three pixel step.
@ EWindowCorner5
Five pixel step.
@ EWindowCornerSquare
Square corner.
@ ECornerTypeMask
Corner type mask.
TScreenModeEnforcement
Screen mode enforcement flags.
@ ESizeEnforcementPixelsAndRotation
Pixels and rotation enforcement.
@ ESizeEnforcementPixelsTwipsAndRotation
Pixels and Twips enforcement.
@ ESizeEnforcementNone
No enforcement.
TPointerFilter
Pointer event filter types.
@ EPointerFilterEnterExit
Filters out both pointer enter and pointer exit events for this window.
@ EPointerMoveEvents
Filters move and drag-pointer events from the event stream and simulates the move event before each p...
@ EPointerGenerateSimulatedMove
Simulates a pointer move event before each pen down event.
@ EPointerFilterMove
Filters out pointer-move events for this window.
@ EPointerFilterDrag
Filters out pointer-drag events for this window.
TEventCode
Types of standard events.
@ EEventDirectScreenAccessEnd
Direct screen access end This is only sent to anim dlls (if they register to be notified).
@ EEventPointerBufferReady
Pointer move buffer ready event.
@ EEventFocusGained
Focus gained event.
@ EEventWindowVisibilityChanged
The visibility of a window has changed.
@ EEventSwitchOn
On event.
@ EEventSwitchOff
Off event.
@ EEventHeartbeatTimerStateChange
Event to signal the starting or stopping of the wserv heartbeat timer This is only sent to anim dlls ...
@ EEventPointerExit
Pointer exit event.
@ EEventScreenDeviceChanged
Screen size mode change event.
@ EEventKeyUp
Key up event.
@ EEventDragDrop
Occurs as a duplicate of each pointer event if a window sets pointer capture with the TCaptureFlagDra...
@ EEventFocusLost
Focus lost event.
@ EEventKeyDown
Key down event.
@ EEventPointerEnter
Pointer enter event.
@ EEventErrorMessage
Error event.
@ EEventWindowGroupListChanged
Window group list change event.
@ EEventPointer
Pointer event.
@ EEventWindowGroupsChanged
Window group changed event.
@ EEventMessageReady
Message ready event.
@ EEventPowerMgmt
900-909 WSERV protects with PowerMgmt
@ EEventModifiersChanged
Modifier changed event.
@ EEventKeySwitchOff
Event issued to off-event requesting windows when the off key is pressed.
@ EEventFocusGroupChanged
Event sent whenever the window group with focus changes.
@ EEventUser
User defined event.
@ EEventPassword
Password event.
@ EEventDisplayChanged
The display state or configuration has changed.
@ EEventDirectScreenAccessBegin
Direct screen access begin This is only sent to anim dlls (if they register to be notified).
@ EEventCaseOpened
Case opened event.
@ EEventKeyRepeat
Repeating key event.
@ EEventCaseClosed
Case closed event.
TEventControl
Event reporting control.
@ EEventControlOnlyWhenVisible
Events are delivered only when the requesting window or any of its children are visible on the screen...
@ EEventControlAlways
Requested events are sent in all circumstances.
@ EEventControlOnlyWithKeyboardFocus
Events are delivered only when the requesting window's window group has keyboard focus.