📄 smbmusicapsingleplayerutils.h
字号:
/*----------------------------------------------------------------------------*/
// Copyright (c) 2007Sony Ericsson Mobile Communications Japan, Inc.
// All rights reserved.
/*----------------------------------------------------------------------------*/
// FileName:
// SmbMusicAPSinglePlayerUtils.h
//
// Description:堦嬋嵞惗僾儗僀儎乕梡Util
//
// Modify:
// 2007-02-01 怴婯 K3Hirono
/*------------------------------------------------------------------------*/
// $NoKeywords: $
#ifndef SMBMUSICAPSINGLEPLAYERUTILS_H_
#define SMBMUSICAPSINGLEPLAYERUTILS_H_
#ifndef __SMBCOMMONDEF_H__
#include <SmbCommonDef.h> // NAMESPACE儅僋儘
#endif
#ifndef __GDI_H__
#include <gdi.h>
#endif
#ifndef __GULICON_H__
#include <GULICON.H> //傾僀僐儞
#endif
SEMCJ_NAMESPACE_BEGIN
class TPointOrg
{
public:
TInt iPointX;
TInt iPointY;
/**
* TPoint傪庢摼偡傞
*
* @param TPointOrg aPoint
* @return TPoint
*/
static inline TPoint MakePoint(TPointOrg aPoint)
{
return TPoint(aPoint.iPointX, aPoint.iPointY);
}
};
class TRectOrg
{
public:
TInt iPointX;
TInt iPointY;
TInt iWidth;
TInt iHeight;
/**
* TRect傪庢摼偡傞
*
* @param TRectOrg aRect
* @return TRect
*/
static inline TRect MakeRect(TRectOrg aRect)
{
return TRect(TPoint(aRect.iPointX, aRect.iPointY), TSize(aRect.iWidth, aRect.iHeight));
}
};
class TSizeOrg
{
public:
TInt iWidth;
TInt iHeight;
/**
* TSize傪庢摼偡傞
*
* @param TSizeOrg aSize
* @return TSize
*/
static inline TSize MakeSize(TSizeOrg aSize)
{
return TSize(aSize.iWidth, aSize.iHeight);
}
};
class SmbMusicAPSinglePlayerIconUtils
{
public:
static void LoadIconL(TInt aId, TInt aMaskId, RPointerArray<CGulIcon>& aArray, const TDesC& aFileName);
static void LoadIconL(TInt aMaskId, TRgb aRgb, TSize aSize, RPointerArray<CGulIcon>& aArray, const TDesC& aFileName);
static CGulIcon* CreateIconL(TInt aId, TInt aMaskId, const TDesC& aFileName);
static CGulIcon* CreateIconL(TInt aMaskId, TRgb aRgb, TSize aSize, const TDesC& aFileName);
static TPoint AdjustPoint(TPoint aPoint, TPoint aAdjust);
static TRect AdjustRect(TRect aRect, TPoint aAdjust);
};
SEMCJ_NAMESPACE_END
#endif //SMBMUSICAPSINGLEPLAYERUTILS_H_
// end of SmbMusicAPSinglePlayerUtils.h
/* Copyright (C) 2007Sony Ericsson Mobile Communications Japan, Inc. */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -