epoc32/include/mw/gulbordr.h
branchSymbian3
changeset 4 837f303aceeb
parent 3 e1b950c65cb4
equal deleted inserted replaced
3:e1b950c65cb4 4:837f303aceeb
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     7 //
     8 // Initial Contributors:
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
     9 // Nokia Corporation - initial contribution.
    10 //
    10 //
    11 // Contributors:
    11 // Contributors:
    25 #endif
    25 #endif
    26 
    26 
    27 #if !defined(__GDI_H__)
    27 #if !defined(__GDI_H__)
    28 #include <gdi.h>
    28 #include <gdi.h>
    29 #endif
    29 #endif
    30 
       
    31 
    30 
    32 class TGulBorder
    31 class TGulBorder
    33 /** Draws a border around a control.
    32 /** Draws a border around a control.
    34 
    33 
    35 The rectangular areas enclosed by borders are typically working areas of the 
    34 The rectangular areas enclosed by borders are typically working areas of the 
   319 	void TranslateLegacyTypes();
   318 	void TranslateLegacyTypes();
   320 private:
   319 private:
   321     TInt iType;
   320     TInt iType;
   322     };
   321     };
   323 
   322 
   324 /**
   323 #ifndef SYMBIAN_ENABLE_SPLIT_HEADERS
   325 The MGulLogicalBorder class specifices an interface for logical borders.
   324 #include <graphics/uigraphicsutils/gullogicalborder.h>
   326 
   325 #endif
   327 @internalTechnology*/
   326 
   328 class MGulLogicalBorder
   327 #endif
   329 	{
       
   330 public:
       
   331 	virtual void Draw(const TGulBorder& aBorder,CGraphicsContext& aGc, const TRect& aRect, const TGulBorder::TColors& aBorderColors) const=0;
       
   332 	virtual TMargins Margins(const TGulBorder& aBorder) const=0;
       
   333 private:
       
   334 	IMPORT_C virtual void MGulLogicalBorderReserved();
       
   335 	};
       
   336 
       
   337 /**
       
   338 The GulTls class sets and gets the thread local storage for EGul.
       
   339  
       
   340 @internalTechnology*/
       
   341 class GulTls
       
   342 	{
       
   343 public:
       
   344 	IMPORT_C static void SetLogicalBorder(MGulLogicalBorder* aLogicalBorder);
       
   345 	IMPORT_C static const MGulLogicalBorder* LogicalBorder();
       
   346 	};
       
   347 
       
   348 #endif