Update contrib.
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
20 Construct calls the constructor for the base class CFbsFont and sets default
21 value of iCopy as EFalse.
23 EXPORT_C CFbsBitGcFont::CFbsBitGcFont():
31 EXPORT_C CFbsBitGcFont::~CFbsBitGcFont()
35 On return contains iAddress pointer for the CBitmapFont.
36 @return CBitmapFont* A pointer to the font
37 @see CFbsFont::Address();
39 EXPORT_C CBitmapFont* CFbsBitGcFont::Address() const
41 return CFbsFont::Address();
45 Calls reset on the object (sets iHandle to zero and carries out related
46 messenger housekeeping and then duplicates it using the base class method.
47 @param TInt aHandle Is the integer handler for the font.
48 @return TInt KErrNone If successful else a system wide error code.
49 @see CFbsFont::Duplicate(TInt)
51 EXPORT_C TInt CFbsBitGcFont::Duplicate(TInt aHandle)
55 return CFbsFont::Duplicate(aHandle);
59 Resets the graphics context to its default settings.
61 The function provides a concrete implementation of the pure virtual
62 function <code>CGraphicsContext::Reset()</code>. The function
63 behaviour is the same as documented in that class.
65 EXPORT_C void CFbsBitGcFont::Reset()
73 iAddressPointer = NULL;
81 Defines the meaning of the equals operator when acting on a CFbsBitGcFont
82 object. i.e. allows these objects to be set as being equal to one another.
83 @param CFbsBitGcFont& aFont the font to be copied
85 EXPORT_C void CFbsBitGcFont::operator=(const CFbsBitGcFont& aFont)
88 iAddressPointer = aFont.iAddressPointer;
89 iHandle = aFont.iHandle;
90 iServerHandle = aFont.iServerHandle;
95 Gets the bitmap address.
96 @return The bitmap address.
98 EXPORT_C CBitwiseBitmap* CFbsBitGcBitmap::Address() const
100 return CFbsBitmap::CleanAddress();
104 Locks the global bitmap heap
106 EXPORT_C void CFbsBitGcBitmap::LockHeap() const
108 CFbsBitmap::LockHeap();
112 Unlock the global bitmap heap
114 EXPORT_C void CFbsBitGcBitmap::UnlockHeap() const
116 CFbsBitmap::UnlockHeap();