imageeditor/ImageEditorUI/src/TControlItem.cpp
changeset 1 edfc90759b9f
equal deleted inserted replaced
0:57d4cdd99204 1:edfc90759b9f
       
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "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 * Ixonos Plc
       
    14 *
       
    15 * Description:
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "TControlItem.h"
       
    22 #include <coecntrl.h>
       
    23 
       
    24 // -----------------------------------------------------------------------------
       
    25 // TControlItem::
       
    26 // -----------------------------------------------------------------------------
       
    27 //
       
    28 void TControlItem::SetParent( CCoeControl* aParent )
       
    29     {
       
    30     iParent = aParent;
       
    31     }
       
    32 
       
    33 // -----------------------------------------------------------------------------
       
    34 // TControlItem::
       
    35 // -----------------------------------------------------------------------------
       
    36 //
       
    37 void TControlItem::SetItemRect( const TRect& aRect )
       
    38     {
       
    39     iRect = aRect;
       
    40     SizeChanged();
       
    41     }
       
    42 
       
    43 // -----------------------------------------------------------------------------
       
    44 // TControlItem::
       
    45 // -----------------------------------------------------------------------------
       
    46 //
       
    47 void TControlItem::DrawItem( CWindowGc& aGc ) const
       
    48     {
       
    49     Draw( aGc );
       
    50     }
       
    51     
       
    52 // -----------------------------------------------------------------------------
       
    53 // TControlItem::
       
    54 // -----------------------------------------------------------------------------
       
    55 //
       
    56 void TControlItem::DrawNow()
       
    57     {
       
    58     if( iParent ) iParent->DrawNow();
       
    59     }
       
    60 
       
    61 // End of File