cameralityglcontainer.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright (c) 2010-2011 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: Camerality UI container.
  15. *
  16. */
  17. #ifndef CAMERALITYGLCONTAINER_H_
  18. #define CAMERALITYGLCONTAINER_H_
  19. // INCLUDES
  20. #include "cameralitybasecontainer.h"
  21. // FORWARD DECLARATIONS
  22. class CCameralityGLRenderer;
  23. // CLASS DECLARATION
  24. /**
  25. * Container control class that handles the rendering engine initialization and deinitializations.
  26. * Also uses the CCameralityGLRenderer class to do the actual rendering.
  27. */
  28. class CCameralityGLContainer : public CCameralityBaseContainer
  29. {
  30. public: // Constructors and destructor
  31. static CCameralityGLContainer* NewL();
  32. virtual ~CCameralityGLContainer();
  33. public: // New functions
  34. CCameralityGLRenderer* Renderer() const;
  35. public: // From CCameralityBaseContainer
  36. void Show(const TRect& extent);
  37. void Hide();
  38. private:
  39. void SizeChanged();
  40. void Draw(const TRect& aRect) const;
  41. private: // Private constructors
  42. CCameralityGLContainer();
  43. void ConstructL();
  44. private: //data
  45. CCameralityGLRenderer *iRenderer;
  46. };
  47. #endif /* CAMERALITYGLCONTAINER_H_ */
  48. // End of file