videoplayback/hbvideoplaybackview/tsrc/testvideodisplayhandler/stub/src/mpxvideocontainer.cpp
changeset 44 518105d52e45
parent 42 17f382c040b1
child 49 824471cb468a
equal deleted inserted replaced
42:17f382c040b1 44:518105d52e45
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 // Version : %version:  1 %
       
    19 
       
    20 
       
    21 
       
    22 #include "mpxvideocontainer.h"
       
    23 
       
    24 
       
    25 CMPXVideoContainer::CMPXVideoContainer()
       
    26 {
       
    27 }
       
    28 
       
    29 CMPXVideoContainer::~CMPXVideoContainer()
       
    30 {
       
    31     CloseWindow();
       
    32 }
       
    33 
       
    34 void CMPXVideoContainer::ConstructL()
       
    35 {
       
    36     CreateWindowL();
       
    37     ActivateL();
       
    38 }
       
    39 
       
    40 void CMPXVideoContainer::Draw( const TRect& /*aRect*/ ) const
       
    41 {
       
    42     CWindowGc& gc = SystemGc();
       
    43     gc.SetPenStyle( CGraphicsContext::ENullPen );
       
    44     gc.SetDrawMode( CGraphicsContext::EDrawModeWriteAlpha );
       
    45     gc.SetBrushColor( TRgb::Color16MA( 0 ) );
       
    46     gc.SetBrushStyle( CGraphicsContext::ESolidBrush );
       
    47     gc.DrawRect( Rect() );
       
    48 }
       
    49 
       
    50 // End of file