os/graphics/graphicsdeviceinterface/directgdiinterface/inc/directgdidrawablesource.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/graphics/graphicsdeviceinterface/directgdiinterface/inc/directgdidrawablesource.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,64 @@
     1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef DIRECTGDIDRAWABLESOURCE_H
    1.20 +#define DIRECTGDIDRAWABLESOURCE_H
    1.21 +
    1.22 +/**
    1.23 +@file
    1.24 +@publishedPartner
    1.25 +@prototype 
    1.26 +*/
    1.27 +
    1.28 +#include <e32def.h>
    1.29 +
    1.30 +// Forward declarations.
    1.31 +//
    1.32 +class RSgDrawable;
    1.33 +class CDirectGdiDriver;
    1.34 +
    1.35 +/**
    1.36 +This class is a handle to a DirectGDI adaptation-specific resource that is bound 
    1.37 +to a non-image resource (RSgDrawable). The intention of creating this class is to allow 
    1.38 +a non-image resource (global and sharable between processes) to be used as a source from 
    1.39 +the DirectGDI rendering API. This class and its DirectGDI adaptation-specific resource are 
    1.40 +non-sharable and will be local to the calling thread.
    1.41 +
    1.42 +This class is part of generic code and will forward creation and deletion requests
    1.43 +to the CDirectGdiDriver singleton object for the calling thread.
    1.44 +
    1.45 +@publishedPartner
    1.46 +@prototype
    1.47 +@deprecated
    1.48 +*/
    1.49 +NONSHARABLE_CLASS(RDirectGdiDrawableSource)
    1.50 +	{
    1.51 +	friend class CDirectGdiDriver;
    1.52 +	
    1.53 +public:
    1.54 +	IMPORT_C RDirectGdiDrawableSource();
    1.55 +	IMPORT_C RDirectGdiDrawableSource(CDirectGdiDriver& aDriver);
    1.56 +	IMPORT_C TInt Create(const RSgDrawable& aDrawable);
    1.57 +	IMPORT_C void Close();
    1.58 +	inline TInt Handle() const;
    1.59 +	
    1.60 +private:
    1.61 +	CDirectGdiDriver* iDriver;
    1.62 +	TInt iHandle;
    1.63 +	};
    1.64 +	
    1.65 +#include <graphics/directgdidrawablesource.inl>
    1.66 +
    1.67 +#endif // DIRECTGDIDRAWABLESOURCE_H