os/graphics/fbs/fontandbitmapserver/tfbs/tfbsglyphdataoutlineshadow.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
// Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
sl@0
     2
// All rights reserved.
sl@0
     3
// This component and the accompanying materials are made available
sl@0
     4
// under the terms of "Eclipse Public License v1.0"
sl@0
     5
// which accompanies this distribution, and is available
sl@0
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0
     7
//
sl@0
     8
// Initial Contributors:
sl@0
     9
// Nokia Corporation - initial contribution.
sl@0
    10
//
sl@0
    11
// Contributors:
sl@0
    12
//
sl@0
    13
// Description:
sl@0
    14
//
sl@0
    15
sl@0
    16
#ifndef TFBSGLYPHDATAOUTLINESHADOW_H
sl@0
    17
#define TFBSGLYPHDATAOUTLINESHADOW_H
sl@0
    18
sl@0
    19
#include "test/TGraphicsHarness.h"
sl@0
    20
sl@0
    21
sl@0
    22
/** 
sl@0
    23
Enumeration for the attributes to be set in fontspec and gc.
sl@0
    24
See CTFbsGlyphDataOutlineAndShadow::ConstructL()
sl@0
    25
*/
sl@0
    26
enum TFontEffectsFlags
sl@0
    27
    {
sl@0
    28
    EDropShadowOn = 0x1,
sl@0
    29
    EOutlineOn = 0x2,
sl@0
    30
    };
sl@0
    31
sl@0
    32
/**
sl@0
    33
Test class which checks that glyph data extensions 
sl@0
    34
RFbsGlyphDataIterator processes and returns correct error if outline-and-shadow
sl@0
    35
font is supplied. 
sl@0
    36
sl@0
    37
This test must be run with a rasterizer which supports EFourColourBlendGlyphBitmap (e.g. iType)
sl@0
    38
otherwise the test will fail.
sl@0
    39
sl@0
    40
Negative test
sl@0
    41
*/
sl@0
    42
class CTFbsGlyphDataOutlineAndShadow : public CTGraphicsBase
sl@0
    43
    {
sl@0
    44
public:
sl@0
    45
    CTFbsGlyphDataOutlineAndShadow(CTestStep* aStep);
sl@0
    46
    ~CTFbsGlyphDataOutlineAndShadow();
sl@0
    47
protected:
sl@0
    48
//from  CTGraphicsBase
sl@0
    49
    virtual void RunTestCaseL(TInt aCurTestCase);
sl@0
    50
    void ConstructL();
sl@0
    51
    
sl@0
    52
private:
sl@0
    53
    CFbsTypefaceStore* iTs;
sl@0
    54
    CFbsFont* iFont;
sl@0
    55
   };
sl@0
    56
sl@0
    57
class CTFbsGlyphDataOutlineAndShadowStep : public CTGraphicsStep
sl@0
    58
    {
sl@0
    59
public:
sl@0
    60
    CTFbsGlyphDataOutlineAndShadowStep();
sl@0
    61
protected:  
sl@0
    62
    //from CTGraphicsStep
sl@0
    63
    virtual CTGraphicsBase* CreateTestL();
sl@0
    64
    };
sl@0
    65
sl@0
    66
_LIT(KTFbsGlyphDataOutlineAndShadowStep,"TFbsGlyphDataOutlineAndShadow");
sl@0
    67
sl@0
    68
sl@0
    69
#endif /* TFBSGLYPHDATAOUTLINESHADOW_H */