graphicsdeviceinterface/directgdi/src/directgdipaniccodes.h
changeset 0 5d03bc08d59c
equal deleted inserted replaced
-1:000000000000 0:5d03bc08d59c
       
     1 // Copyright (c) 2007-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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef DIRECTGDIPANICCODES_H
       
    17 #define DIRECTGDIPANICCODES_H
       
    18 
       
    19 #include <e32std.h>
       
    20 
       
    21 _LIT(KComponentPanicCategory, "DGDI");
       
    22 #define SYMBIAN_PANIC_CATEGORY KComponentPanicCategory
       
    23 #include <graphics/directgdipanics.h>
       
    24 
       
    25 /**
       
    26 Enumeration of DirectGDI panic codes. These should be used in conjunction with
       
    27 the GRAPHICS_ASSERT_ALWAYS and GRAPHICS_PANIC_ALWAYS macros defined in directgdipanics.inl.
       
    28 
       
    29 @internalComponent
       
    30 */
       
    31 enum TDirectGdiPanicCode
       
    32 	{
       
    33 	/** The requested functionality has not been implemented - do not use.
       
    34 	*/ 
       
    35 	EDirectGdiPanicNotImplemented = 1,
       
    36 
       
    37 	/** An assertion has evaluated to false.
       
    38 	*/ 
       
    39 	EDirectGdiPanicAssertionFailure = 2,
       
    40 		
       
    41 	/**	Valid reference to rendering engine	not found. 
       
    42 	*/
       
    43 	EDirectGdiPanicRenderingEngineNotSet = 3,
       
    44 	
       
    45 	/**	Valid reference to rendering target not found. 
       
    46 	*/
       
    47 	EDirectGdiPanicRenderingTargetNotSet = 4,
       
    48 	
       
    49 	/**	Valid reference to DirectGDI driver not initialised. 
       
    50 	*/
       
    51 	EDirectGdiPanicDirectGdiDriverNotInitialised = 5,
       
    52 	
       
    53 	/**	Invalid reference count to DirectGDI driver.
       
    54 	*/
       
    55 	EDirectGdiPanicDriverInvalidRefCount = 6,
       
    56 	
       
    57 	/** Context has not been activated. 
       
    58 	*/
       
    59 	EDirectGdiPanicContextNotActivated = 7,
       
    60 	
       
    61 	/** Invalid brush pattern passed to SetBrushPattern().
       
    62 	*/
       
    63 	EDirectGdiPanicInvalidBrushPattern = 8,
       
    64 	
       
    65 	/** Attempt to use a brush with brush style style is EPatternedBrush but a pattern has not 
       
    66 	    been successfully set using SetBrushPattern().
       
    67 	*/
       
    68 	EDirectGdiPanicBrushPatternNotSet = 9,
       
    69 	
       
    70 	/** Invalid brush style.
       
    71 	*/
       
    72 	EDirectGdiPanicInvalidBrushStyle = 10,
       
    73 	
       
    74 	/** No valid font has been selected.
       
    75 	*/
       
    76 	EDirectGdiPanicNoFontSelected = 11,
       
    77 	
       
    78 	/** Invalid font.
       
    79 	*/
       
    80 	EDirectGdiPanicInvalidFont = 12,
       
    81 	
       
    82 	/** UpdateJustification called wrongly.
       
    83 	*/
       
    84 	EDirectGdiPanicAutoUpdateJustificationUsed = 13,
       
    85 	
       
    86 	/** A check on the open count in CDirectGdiDriver::Open() failed.
       
    87 	*/
       
    88 	EDirectGdiPanicDriverOpenCountError = 14,
       
    89 	
       
    90 	/** A check on the open count in CDirectGdiDriver::~CDirectGdiDriver() failed.
       
    91 	*/
       
    92 	EDirectGdiPanicDriverDestructorOpenCountError = 15,
       
    93 	
       
    94 	/** The RDirectGdiImageTarget object has no pointer to the DirectGDI driver
       
    95 	*/
       
    96 	EDirectGdiPanicImageTargetWithoutDriver = 16,
       
    97 	
       
    98 	/** The RDirectGdiImageTarget object already has an image target in use in CDirectGdiDriver::CreateImageTarget()
       
    99 	*/
       
   100 	EDirectGdiPanicImageTargetAlreadyExists = 17,
       
   101 	
       
   102 	/** The RDirectGdiDrawableSource object has no pointer to the DirectGDI driver
       
   103 	*/
       
   104 	EDirectGdiPanicDrawableSourceWithoutDriver = 18,
       
   105 	
       
   106 	/** The RDirectGdiDrawableSource object already has a drawable source in use in CDirectGdiDriver::CreateDrawableSource()
       
   107 	*/
       
   108 	EDirectGdiPanicDrawableSourceAlreadyExists = 19,
       
   109 	
       
   110 	/** GetInfo failed for an image in CDirectGdiDriver::CreateDrawableSource()
       
   111 	 */
       
   112 	EDirectGdiPanicImageSourceInfoError = 20,
       
   113 	
       
   114 	/** GetInfo failed for an image in CDirectGdiDriver::CreateImageTarget()
       
   115 	 */
       
   116 	EDirectGdiPanicImageTargetInfoError = 21,
       
   117 	
       
   118 	/** Bad parameter is passed to the function
       
   119 	 */
       
   120 	EDirectGdiPanicBadParameter = 22,
       
   121 	};
       
   122 
       
   123 #endif /*DIRECTGDIPANICCODES_H*/