IconUtils.h 902 B

12345678910111213141516171819202122232425262728
  1. /*
  2. ============================================================================
  3. Name : IconUtils.h
  4. Author : Den Grigorenko
  5. Copyright : Copyright (c) 2008 Den123
  6. Description : Simple utils for icon drawing
  7. ============================================================================
  8. */
  9. #ifndef __ICON_UTILS_H__
  10. #define __ICON_UTILS_H__
  11. #include <coecntrl.h>
  12. #include <gulicon.h>
  13. class IconUtils
  14. {
  15. public:
  16. static CGulIcon* CreateIconL( TInt aIconId, TInt aIconMaskId );
  17. static void SetIconSizeL( CGulIcon* anIcon, TInt aWidth, TInt aHeight );
  18. static void SetIconSizeL( CGulIcon* anIcon, TInt aWidth, TInt aHeight, TInt anAngle );
  19. static void DrawIconL( CBitmapContext& aGc, CGulIcon* anIcon, TInt aX, TInt aY );
  20. static void RotateBitmapL( CFbsBitmap* aBitmap, CFbsBitmap* aResultBitmap, TInt aAngle );
  21. };
  22. #endif