uiacceltk/hitchcock/ServerCore/Src/alfnodes.cpp
branchRCL_3
changeset 6 10534483575f
parent 5 433cbbb6a04b
child 7 88b23e2e82e1
equal deleted inserted replaced
5:433cbbb6a04b 6:10534483575f
  1474             		}
  1474             		}
  1475             	else
  1475             	else
  1476             		{
  1476             		{
  1477                     iWindow->SetActive( EFalse );
  1477                     iWindow->SetActive( EFalse );
  1478             		}
  1478             		}
       
  1479             	
       
  1480             	iWindow->IncludeToVisibilityCalculation( iVisible && iNodeActivated );
  1479             	}
  1481             	}
  1480             break;
  1482             break;
  1481             }
  1483             }
  1482         case MWsWindowTreeObserver::ENonFading:
  1484         case MWsWindowTreeObserver::ENonFading:
  1483             {
  1485             {
  1486             break;
  1488             break;
  1487             }
  1489             }
  1488         case MWsWindowTreeObserver::EAlphaChannelTransparencyEnabled:
  1490         case MWsWindowTreeObserver::EAlphaChannelTransparencyEnabled:
  1489             {
  1491             {
  1490             iAlphaChannelTransparencyEnabled = aNewValue;
  1492             iAlphaChannelTransparencyEnabled = aNewValue;
       
  1493             if ( iWindow )
       
  1494                 {
       
  1495                 iWindow->SetTransparencyAlphaChannel( aNewValue );
       
  1496                 }
  1491             break;
  1497             break;
  1492             }
  1498             }
  1493         }
  1499         }
  1494     if ( aFlag == MWsWindowTreeObserver::ENonFading && HasChildren() )
  1500     if ( aFlag == MWsWindowTreeObserver::ENonFading && HasChildren() )
  1495         {
  1501         {
  1635             {
  1641             {
  1636         	if ( iVisible )
  1642         	if ( iVisible )
  1637         		{
  1643         		{
  1638         		iWindow->SetActive( ETrue );
  1644         		iWindow->SetActive( ETrue );
  1639         		}
  1645         		}
  1640         	}
  1646         	
       
  1647         	iWindow->IncludeToVisibilityCalculation( iVisible && iNodeActivated );
       
  1648             }
  1641          }
  1649          }
  1642      else
  1650      else
  1643          {
  1651          {
  1644          __ALFLOGSTRING("CAlfNodeVisual::ActivateNodeL - Node ALREADY active! ");
  1652          __ALFLOGSTRING("CAlfNodeVisual::ActivateNodeL - Node ALREADY active! ");
  1645          }
  1653          }
  1760 		USER_INVARIANT();
  1768 		USER_INVARIANT();
  1761 		}
  1769 		}
  1762 	}
  1770 	}
  1763 
  1771 
  1764 // ---------------------------------------------------------------------------
  1772 // ---------------------------------------------------------------------------
       
  1773 // SetWindowAreaL
       
  1774 // ---------------------------------------------------------------------------
       
  1775 //
       
  1776 void CAlfNodeWindow::SetWindowAreaL( RMemReadStream* aStream )
       
  1777     {
       
  1778     TPoint pos;
       
  1779     RRegion region;
       
  1780     CleanupClosePushL( region );
       
  1781     
       
  1782     pos.iX = aStream->ReadInt32L();
       
  1783     pos.iY = aStream->ReadInt32L();
       
  1784     
       
  1785     TInt count = aStream->ReadInt32L();
       
  1786     for ( TInt i = 0; i < count; ++i )
       
  1787         {
       
  1788         TRect r;
       
  1789         aStream->ReadL((TUint8*)&r.iTl.iX, 4 * sizeof(TInt32 ));
       
  1790         region.AddRect(r);
       
  1791         }
       
  1792     
       
  1793     if ( region.CheckError() )
       
  1794         {
       
  1795         // Fallback to non-shape version
       
  1796         region.Clear();
       
  1797         }
       
  1798     
       
  1799     iWindow->SetWindowArea( pos, region );
       
  1800     
       
  1801     CleanupStack::PopAndDestroy();
       
  1802     }
       
  1803 
       
  1804 // ---------------------------------------------------------------------------
  1765 // NewL
  1805 // NewL
  1766 // ---------------------------------------------------------------------------
  1806 // ---------------------------------------------------------------------------
  1767 //
  1807 //
  1768 CAlfNodeWindow* CAlfNodeWindow::NewL( CAlfHierarchyModel* aModel, RMemReadStream* aStream, TInt aScreenNumber  )
  1808 CAlfNodeWindow* CAlfNodeWindow::NewL( CAlfHierarchyModel* aModel, RMemReadStream* aStream, TInt aScreenNumber  )
  1769     {
  1809     {