windowing/windowserver/tcontaindrawer/wssimpledrawer.h
author Matt Plumtree <matt.plumtree@nokia.com>
Fri, 06 Aug 2010 17:05:20 +0100
branchNewGraphicsArchitecture
changeset 143 3db46cb3f779
parent 0 5d03bc08d59c
permissions -rw-r--r--
Fix TRANSPARENCY_NONE composition for surfaces narrower than the context. Improve performance of point sample scaling with 8-bit samples, by using fixed point code Allow any non-zero value for the boolean attribute WFC_ELEMENT_SOURCE_FLIP Simplify RemoveElement code

// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
//

/**
 @file
 @test
 @internalComponent - Internal Symbian test code
*/

#ifndef __WSSIMPLEDRAWER_H__
#define __WSSIMPLEDRAWER_H__


#include <w32std.h>
const TUid KSimpleDrawerInterfaceId = {0x1028351B};
const TUid KSimpleDrawerImplId = {0x1028351C};

/** Client representation of a window-server-side drawing owned by this Client
@publishedAll
@released
*/
NONSHARABLE_CLASS(CWsSimpleGraphicBitmap): public CWsGraphic
	{
public:
	IMPORT_C static CWsSimpleGraphicBitmap* NewL();
	IMPORT_C static CWsSimpleGraphicBitmap* NewL(TUid aUid);
	IMPORT_C static CWsSimpleGraphicBitmap* NewL(const TWsGraphicId& aReplace);

	IMPORT_C ~CWsSimpleGraphicBitmap();
public: // protected virtuals from CWsGraphic promoted to public
	IMPORT_C TInt ShareGlobally();
	IMPORT_C TInt UnShareGlobally();
	IMPORT_C TInt Share(TSecureId aClientId);
	IMPORT_C TInt UnShare(TSecureId aClientId);
	
	IMPORT_C TInt UpdateColor(TRgb aColor);

public:
	CWsSimpleGraphicBitmap();
	void HandleMessage(const TDesC8& aData);
	void OnReplace();
public:
	TBool iIsReady;
};


const TUid KInvisibleDrawerInterfaceId1 = {0x1028353A};
const TUid KInvisibleDrawerImplId1 = {0x10283539};

/** Client representation of a window-server-side drawing owned by this Client
@publishedAll
@released
*/
NONSHARABLE_CLASS(CWsInvisibleGraphicBitmap1): public CWsSimpleGraphicBitmap
	{
public:
	IMPORT_C static CWsInvisibleGraphicBitmap1* NewL();
	IMPORT_C static CWsInvisibleGraphicBitmap1* NewL(TUid aUid);
	IMPORT_C static CWsInvisibleGraphicBitmap1* NewL(const TWsGraphicId& aReplace);
};


const TUid KInvisibleDrawerInterfaceId2 = {0x1028353C};
const TUid KInvisibleDrawerImplId2 = {0x1028353B};

/** Client representation of a window-server-side drawing owned by this Client
@publishedAll
@released
*/
NONSHARABLE_CLASS(CWsInvisibleGraphicBitmap2): public CWsSimpleGraphicBitmap
	{
public:
	IMPORT_C static CWsInvisibleGraphicBitmap2* NewL();
	IMPORT_C static CWsInvisibleGraphicBitmap2* NewL(TUid aUid);
	IMPORT_C static CWsInvisibleGraphicBitmap2* NewL(const TWsGraphicId& aReplace);
};



#endif