|
Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
|
Handle to a drawable window. More...
#include <w32std.h>
Public Member Functions | |
| IMPORT_C void | Scroll (const TPoint &aOffset) |
| Scrolls the window contents by an offset. | |
| IMPORT_C void | Scroll (const TRect &aClipRect, const TPoint &aOffset) |
| Scrolls the contents of a clip rectangle, independently of the other contents of the window. | |
| IMPORT_C void | Scroll (const TPoint &aOffset, const TRect &aRect) |
| Scrolls a rectangle within a window. | |
| IMPORT_C void | Scroll (const TRect &aClipRect, const TPoint &aOffset, const TRect &aRect) |
| Scrolls the contents of a source rectangle within a clipping rectangle. | |
| IMPORT_C TRect | GetDrawRect () const |
| Obtains the current rectangle being drawn to this window, during a window redraw cycle. | |
Public Member Functions inherited from RWindowBase | |
| IMPORT_C void | Activate () |
| Displays the window and enables it to receive events. | |
| IMPORT_C void | SetPosition (const TPoint &point) |
| Sets the position of a window relative to its parent. | |
| IMPORT_C TInt | SetSizeErr (const TSize &size) |
| Sets the size of a backed-up window. | |
| 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 TSize | Size () const |
| Gets the window's current size. | |
| IMPORT_C TPoint | InquireOffset (const RWindowTreeNode &aWindow) const |
| Enquires the offset between this and 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 void | SetPointerGrab (TBool aState) |
| Allows or disallows pointer grabs in a window. | |
| IMPORT_C void | ClaimPointerGrab (TBool aSendUpEvent=ETrue) |
| Claims the pointer grab from another window. | |
| IMPORT_C TInt | ClaimPointerGrab (const TUint8 aPointerNumber, const TBool aSendUpEvent=ETrue) |
| Dummy implementation in order to preserve compatibility with WSERV NGA. | |
| IMPORT_C void | SetPointerCapture (TInt aFlags) |
| Sets the pointer capture state. | |
| IMPORT_C void | SetPointerCapturePriority (TInt aPriority) |
| Sets the window's pointer capture priority. | |
| IMPORT_C TInt | GetPointerCapturePriority () const |
| Gets the windows's pointer capture priority. | |
| IMPORT_C void | SetVisible (TBool aState) |
| Sets the window's visibility. | |
| IMPORT_C void | SetShadowHeight (TInt aHeight) |
| Sets a window's shadow height. | |
| IMPORT_C void | SetShadowDisabled (TBool aState) |
| Enables or disables whether a window casts a shadow. | |
| IMPORT_C TPoint | Position () const |
| Gets a window's position relative to its parent. | |
| IMPORT_C TPoint | AbsPosition () const |
| Gets a window's absolute position - ie the windows position relative to the current screen size mode. | |
| IMPORT_C TInt | SetCornerType (TCornerType aCornerType, TInt aCornerFlags=0) |
| Sets the shape of a window's corners. | |
| IMPORT_C TInt | SetShape (const TRegion &aRegion) |
| Sets a window's shape arbitrarily, if rectangular windows are not required. | |
| IMPORT_C TInt | SetRequiredDisplayMode (TDisplayMode aMode) |
| Sets the window's display mode. | |
| IMPORT_C TDisplayMode | DisplayMode () const |
| Gets the window's current display mode. | |
| IMPORT_C void | EnableBackup (TUint aBackupType=EWindowBackupAreaBehind) |
| Requests that this window backs up all or part of the screen's contents. | |
| IMPORT_C void | RequestPointerRepeatEvent (TTimeIntervalMicroSeconds32 aTime, const TRect &aRect) |
| Requests a pointer repeat event. | |
| IMPORT_C void | CancelPointerRepeatEventRequest () |
| Cancels a request for a pointer repeat event. | |
| IMPORT_C TInt | RequestPointerRepeatEvent (TTimeIntervalMicroSeconds32 aTime, const TRect &aRect, const TUint8 aPointerNumber) |
| Dummy implementation in order to preserve compatibility with WSERV NGA. | |
| IMPORT_C TInt | CancelPointerRepeatEventRequest (const TUint8 aPointerNumber) |
| Dummy implementation in order to preserve compatibility with WSERV NGA. | |
| IMPORT_C TInt | AllocPointerMoveBuffer (TInt aMaxPoints, TUint aFlags) |
| Allocates a buffer for storing pointer movements. | |
| IMPORT_C void | FreePointerMoveBuffer () |
| Frees the pointer move buffer. | |
| IMPORT_C void | EnablePointerMoveBuffer () |
| Enables the pointer move buffer for receiving pointer move events. | |
| IMPORT_C void | DisablePointerMoveBuffer () |
| Instructs the window server to stop adding pointer events to the pointer move buffer. | |
| IMPORT_C TInt | RetrievePointerMoveBuffer (TDes8 &aBuf) const |
| Retrieves events from the pointer move buffer. | |
| IMPORT_C void | DiscardPointerMoveBuffer () |
| Discards all events in the pointer move buffer. | |
| IMPORT_C TInt | AddKeyRect (const TRect &aRect, TInt aScanCode, TBool aActivatedByPointerSwitchOn) |
| Adds an on-screen key rectangle. | |
| IMPORT_C void | RemoveAllKeyRects () |
| Removes all the on-screen keys that have been added to this window. | |
| IMPORT_C TInt | PasswordWindow (TPasswordMode aPasswordMode) |
| Makes this window the password window. | |
| IMPORT_C void | FadeBehind (TBool aFade) |
| Sets whether or not all windows behind the current window, in the same window group, should be faded or unfaded. | |
| IMPORT_C TBool | IsFaded () const |
| Tests whether the current window is faded. | |
| IMPORT_C TBool | IsNonFading () const |
| Tests whether the current window is non-fading. | |
| IMPORT_C TInt | MoveToGroup (TInt aIdentifier) |
| Moves this window to another window group. | |
| IMPORT_C TInt | SetBackgroundSurface (const TSurfaceId &aSurface) |
| This sets the background of the window to be the given surface. | |
| IMPORT_C TInt | SetBackgroundSurface (const TSurfaceConfiguration &aConfiguration, TBool aTriggerRedraw) |
| This sets a surface to appear in front of the window's background within a given area of that window. | |
| IMPORT_C void | RemoveBackgroundSurface (TBool aTriggerRedraw) |
| This removes any background surface that has been set to the window. | |
| IMPORT_C TInt | GetBackgroundSurface (TSurfaceConfiguration &aConfiguration) const |
| Retrieves a copy of the current configuration for background surface attached to the window. | |
| IMPORT_C void | SetSurfaceTransparency (TBool aSurfaceTransparency) |
| Not supported in non-NGA. | |
| IMPORT_C TRgb | KeyColor () const |
| This function returns the key color for the window, if used. | |
| IMPORT_C void | EnableAdvancedPointers () |
| Dummy implementation in order to preserve compatibility with WSERV NGA. | |
| IMPORT_C void | SetPurpose (TInt aPurpose) |
| IMPORT_C void | SendEffectCommand (TInt aTfxCmd, const TDesC8 &aTfxCmdData=KNullDesC8) |
| IMPORT_C void | OverrideEffects (TInt aAction, const TFileName &aResourceDir, const TFileName &aFilenameOutgoing, const TFileName &aFilenameIncoming, TBitFlags aFlags=0) |
| IMPORT_C TInt | FixNativeOrientation () |
| Dummy implementation in order to preserve compatibility with WSERV NGA. | |
| IMPORT_C TSize | SizeForEgl () const |
| Dummy implementation in order to preserve compatibility with WSERV NGA. | |
Public Member Functions inherited from RWindowTreeNode | |
| IMPORT_C void | Close () |
| Closes the node. | |
| IMPORT_C void | Destroy () |
| Closes and deletes the node. | |
| IMPORT_C TUint32 | ClientHandle () const |
| Gets the window's client handle. | |
| IMPORT_C TUint32 | Parent () const |
| Gets the node's parent. | |
| IMPORT_C TUint32 | PrevSibling () const |
| Gets the node before this one in the sibling list. | |
| IMPORT_C TUint32 | NextSibling () const |
| Gets the next window after this one in its sibling list. | |
| IMPORT_C TUint32 | Child () const |
| Gets the first child of the node. | |
| IMPORT_C TInt | OrdinalPriority () const |
| Gets the ordinal priority of the specified window. | |
| IMPORT_C TInt | OrdinalPosition () const |
| Gets the current ordinal position of the window tree node. | |
| IMPORT_C TInt | FullOrdinalPosition () const |
| Get the current full ordinal position of a window. | |
| IMPORT_C void | SetOrdinalPosition (TInt aPos) |
| Sets the ordinal position of a window. | |
| IMPORT_C void | SetOrdinalPosition (TInt aPos, TInt aOrdinalPriority) |
| Sets the ordinal position and ordinal priority of a window. | |
| IMPORT_C TInt | ScreenNumber () const |
| Get the screen number that a window is located on. | |
| IMPORT_C TInt | WindowGroupId () const |
| Returns the window group Id of the parent window group. | |
| IMPORT_C TInt | SetPointerCursor (TInt aCursorNumber) |
| Sets the pointer cursor from the system pointer cursor list. | |
| IMPORT_C void | SetCustomPointerCursor (const RWsPointerCursor &aPointerCursor) |
| Sets the pointer cursor to an application-defined cursor. | |
| IMPORT_C TInt | EnableOnEvents (TEventControl aCircumstances=EEventControlOnlyWithKeyboardFocus) |
| Requests notification of 'on' events. | |
| IMPORT_C void | DisableOnEvents () |
| Cancels notification of 'on' events. | |
| IMPORT_C TInt | EnableGroupChangeEvents () |
| Requests notification of group-change events. | |
| IMPORT_C void | DisableGroupChangeEvents () |
| Cancels notification of group changed events. | |
| IMPORT_C TInt | EnableFocusChangeEvents () |
| Enables focus changed events. | |
| IMPORT_C void | DisableFocusChangeEvents () |
| Disables delivery of focus changed events. | |
| IMPORT_C TInt | EnableGroupListChangeEvents () |
| Enables reporting of window group list change events. | |
| IMPORT_C void | DisableGroupListChangeEvents () |
| Disables reporting of window group list change events. | |
| IMPORT_C TInt | EnableVisibilityChangeEvents () |
| Enables reporting of window visibility change events. | |
| IMPORT_C void | DisableVisibilityChangeEvents () |
| Disables reporting of window visibility change events. | |
| IMPORT_C TInt | EnableErrorMessages (TEventControl aCircumstances) |
| Requests notification of error message events. | |
| IMPORT_C void | DisableErrorMessages () |
| Cancels notification of error message events. | |
| IMPORT_C TInt | EnableModifierChangedEvents (TUint aModifierMask, TEventControl aCircumstances) |
| Requests notification of modifier changed events. | |
| IMPORT_C void | DisableModifierChangedEvents () |
| Cancels notification of modifier changed events. | |
| IMPORT_C void | SetNonFading (TBool aNonFading) |
| Sets whether a window is non-fading. | |
| IMPORT_C void | SetFaded (TBool aFaded, TFadeControl aIncludeChildren) |
| Sets the window as faded or unfaded. | |
| IMPORT_C void | SetFaded (TBool aFaded, TFadeControl aIncludeChildren, TUint8 aBlackMap, TUint8 aWhiteMap) |
| Sets one or more windows as faded or unfaded, specifying a fading map. | |
| IMPORT_C void | ClearPointerCursor () |
| Clears pointer cursor settings. | |
| IMPORT_C RWsSession * | Session () const |
| Returns the window server session that is used to create this window handle. | |
Public Member Functions inherited from MWsClientClass | |
| MWsClientClass () | |
| MWsClientClass (RWsBuffer *aBuffer) | |
| TInt | WsHandle () const |
| Gets the server side handle for the object. | |
Protected Member Functions | |
| RDrawableWindow () | |
| Protected default constructor which creates a sessionless, uninitialised drawable-window handle. | |
| RDrawableWindow (RWsSession &aWs) | |
| Protected default constructor which creates an initialised drawable-window handle within a server session. | |
| void | SetDrawRect (const TRect &aRect) |
| Protected system function. | |
Protected Member Functions inherited from RWindowBase | |
| RWindowBase () | |
| Protected default constructor; creates an uninitialised, sessionless window handle. | |
| RWindowBase (RWsSession &aWs) | |
| Protected constructor; creates an uninitialised window handle within a session. | |
| 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. | |
Protected Member Functions inherited from RWindowTreeNode | |
| RWindowTreeNode () | |
| Protected default constructor. | |
| RWindowTreeNode (RWsSession &aWs) | |
| Protected constructor which creates an uninitialised window tree node handle within a server session. | |
Protected Member Functions inherited from MWsClientClass | |
| void | Write (const TAny *aData1, TInt aLength1, TInt aLength2, TUint aOpcode) const |
| void | Write (const TAny *aData, TInt aLength, const TAny *aData2, TInt aLength2, TUint aOpcode, const TIpcArgs *aIpcArgs=NULL) const |
| void | Write (const TAny *aBuf, TInt aBufLen, TUint aOpcode, const TIpcArgs *aIpcArgs=NULL) const |
| void | Write (TUint aOpcode) const |
| void | WriteInt (TInt aInt, TUint aOpcode) const |
| void | WriteRect (const TRect &aRect, TUint aOpcode) const |
| void | WritePoint (const TPoint &aPoint, TUint aOpcode) const |
| void | WriteSize (const TSize &aSize, TUint aOpcode) const |
| TInt | WriteReply (TUint aOpcode, const TIpcArgs *aIpcArgs=NULL) const |
| TInt | WriteReplyInt (TInt aInt, TUint aOpcode, const TIpcArgs *aIpcArgs=NULL) const |
| TInt | WriteReply (const TAny *aBuf, TInt aBufLen, TUint aOpcode, const TIpcArgs *aIpcArgs=NULL) const |
| TInt | WriteReply (const TAny *aBuf, TInt aBufLen, const TAny *aBuf2, TInt aBuflen2, TUint aOpcode, const TIpcArgs *aIpcArgs=NULL) const |
| TInt | WriteReplyP (const TWriteDescriptorType &aReplyPackage, TUint aOpcode) const |
| TInt | WriteReplyIntP (TInt aInt, const TWriteDescriptorType &aReplyPackage, TUint aOpcode) const |
| TInt | WriteReplyP (const TAny *aBuf, TInt aBufLen, const TWriteDescriptorType &aReplyPackage, TUint aOpcode) const |
| TInt | WriteReplyP (const TAny *aBuf, TInt aBufLen, const TAny *aBuf2, TInt aBuflen2, const TWriteDescriptorType &aReplyPackage, TUint aOpcode) const |
| TInt | WriteReplyByProvidingRemoteReadAccess (const TAny *aBuf, TInt aBufLen, const TReadDescriptorType &aRemoteReadBuffer, TUint aOpcode) const |
| void | AddToBitmapArray (const TInt aBitmapHandle) const |
| void | AsyncRequest (TRequestStatus &aStatus, TUint aOpcode) const |
| TBool | WindowSizeCacheEnabled () const |
| void | MarkWindowSizeCacheDirty () |
| void | RefreshWindowSizeCache (const TSize &aNewSize) const |
| TInt | CachedWindowSize (TSize &aSize) const |
| void | DestroyWindowSizeCacheEntry () |
Additional Inherited Members | |
Public Types inherited from RWindowBase | |
| enum | TCaptureFlags { TCaptureFlagEnabled =0x01 , TCaptureFlagDragDrop =0x02 , TCaptureFlagAllGroups =0x04 , TCaptureDisabled =0 , TCaptureEnabled =TCaptureFlagEnabled , TCaptureDragDrop =TCaptureFlagEnabled|TCaptureFlagDragDrop|TCaptureFlagAllGroups } |
| Capture behaviour flags. More... | |
Public Types inherited from RWindowTreeNode | |
| enum | TFadeControl { EFadeIncludeChildren =ETrue , EFadeWindowOnly =EFalse } |
| Fade control flags. More... | |
Protected Attributes inherited from RWindowTreeNode | |
| __DECLARE_TEST | |
Protected Attributes inherited from MWsClientClass | |
| TInt32 | iWsHandle |
| WARNING: Member variable for internal use ONLY. | |
| RWsBuffer * | iBuffer |
| WARNING: Member variable for internal use ONLY. | |
Handle to a drawable window.
This class cannot be constructed directly. The two concrete derived classes, RWindow and RBackedUpWindow, allow drawing but use different protocols because RWindow relies on the client to redraw invalid areas.
|
protected |
Protected default constructor which creates a sessionless, uninitialised drawable-window handle.
Handles to server-side objects must be created in a session in order to be operational; this constructor is merely a convenience to allow the handle to be stored as a data member. See RWindowTreeNode::RWindowTreeNode() for details of how the complete setup of a handle field may be deferred until the window server session is known
(generated from Symbian Developer Library)
|
protected |
Protected default constructor which creates an initialised drawable-window handle within a server session.
| aWs | Window server session. |
(generated from Symbian Developer Library)
| IMPORT_C TRect RDrawableWindow::GetDrawRect | ( | ) | const |
Obtains the current rectangle being drawn to this window, during a window redraw cycle.
This function can be called between a BeginRedraw() / EndRedraw() pair to obtain the current window redraw reference rectangle.
(generated from Symbian Developer Library)
| IMPORT_C void RDrawableWindow::Scroll | ( | const TPoint & | aOffset | ) |
Scrolls the window contents by an offset.
All parts of an RWindow are either drawn with content copied from another part of the window or are invalidated. Areas are invalidated when the source content of the scroll would be outside the window or obscured behind another window. The areas that are invalidated are not blanked off.
For example, if the window is scrolled towards the right, then there is no content (from outside the window) to move into area on the left hand side. This area is invalidated. Similarly, no content can be scrolled out from under an obscuring window, so the area from beneath the obscuring window is also invalidated.
Note that for an RBackedUpWindow, the contents of areas obscured by other windows are stored. In this case the window contents are scrolled out from "underneath" the obscuring window. In the example above the area on the left was invalidated but for this type of window the area simply contains its old pre-scroll contents.
| aOffset | Scroll offset, in pixels. Positive values cause the window contents to move downwards/right. Negative values cause contents to move upwards/left. |
(generated from Symbian Developer Library)
Scrolls a rectangle within a window.
This function effectively moves the specified rectangle by the given offset with respect to the window. The destination rectangle may overlap and cover the old rectangle.
Note that if the source of this rectangle is an invalid area, ie it is obscured or lies outside the window, then this area in the destination rectangle will be invalidated.
| aOffset | Scroll offset, in pixels. Positive values cause the window contents to move downwards and right. Negative values cause contents to move upwards and left. |
| aRect | The source rectangle for the scroll. |
(generated from Symbian Developer Library)
Scrolls the contents of a clip rectangle, independently of the other contents of the window.
This function behaves in exactly the same way as the single parameter overload, except that the scroll region is a clipping rectangle rather than the whole window. All parts of the clipping rectangle are either drawn with content copied from another part of the rectangle or are invalidated.
The RBackedUpWindow behaviour is also similar to the behaviour in the function above.
| aClipRect | Rectangle to which scrolling is to be clipped |
| aOffset | Scroll offset, in pixels. Positive values cause the window contents to move downwards and right. Negative values cause contents to move upwards and left. |
(generated from Symbian Developer Library)
| IMPORT_C void RDrawableWindow::Scroll | ( | const TRect & | aClipRect, |
| const TPoint & | aOffset, | ||
| const TRect & | aRect | ||
| ) |
Scrolls the contents of a source rectangle within a clipping rectangle.
The source rectangle is effectively copied from one position to another, with both the source and destination clipped to the clipping rectangle. Hence if the source and destination rectangles are inside the clipping region then this function behaves exactly like the Scroll(const TPoint &aOffset, const TRect &aRect) overload. However if the source or destination for the scrolled rectangle intersect the clipping rectangle then the function behaves similarly to the Scroll(const TRect &aClipRect,const TPoint &aOffset) overload, with regards to invalidated regions etc.
| aClipRect | Rectangle to which scrolling is to be clipped. |
| aOffset | Scroll offset, in pixels. Positive values cause the window contents to move downwards and right. Negative values cause contents to move upwards and left. |
| aRect | Source rectangle for the scroll. |
(generated from Symbian Developer Library)
|
protected |
Protected system function.
Sets the current redraw reference rectangle that is being drawn. This is called between a BeingRedraw() / EndRedraw() pair by the system.
| aRect | Rectangle reference area that is currently being drawn. |
(generated from Symbian Developer Library)