📄 mypicture.h
字号:
/*
* ============================================================================
* Name : CMyPicture from MyPicture.h
* Part of : RichTextEditor
* Created : 05/08/2006 by Forum Nokia
* Version : 2.0
*
* Copyright (c) 2006 - 2007 Nokia Corporation.
* This material, including documentation and any related
* computer programs, is protected by copyright controlled by
* Nokia Corporation.
* ============================================================================
*/
#ifndef CMYPICTURE_H
#define CMYPICTURE_H
// INCLUDES
#include <gdi.h>
// FORWARD DECLARATIONS
class TSize;
class CFbsBitmap;
// CLASS DECLARATION
/**
* CMyPicture the class which draw the image.
*/
class CMyPicture :public CPicture
{
public: // Constructors and NO destructor (bitmap not owned)
/**
* C++ default constructor.
* @param aSize Size of the picture in twips.
* @param aBitmap Bitmap
*/
CMyPicture( TSize aSize, CFbsBitmap& aBitmap );
public: // From CPicture
/**
* Prohibit linebreaks.
*/
TBool LineBreakPossible( TUint aClass,
TBool aBeforePicture,
TBool aHaveSpaces ) const;
/**
* Draw the picture
*/
void Draw( CGraphicsContext& aGc,
const TPoint& aTopLeft,
const TRect& aClipRect,
MGraphicsDeviceMap* aMap ) const;
/**
* There's no need for it in this , but must be implemented.
*/
void ExternalizeL( RWriteStream& aStream ) const;
/**
* Sets the picture's size in twips.
* @param aSize Size.
*/
void SetOriginalSizeInTwips( TSize aSize );
/**
* Returns the picture's size in twips.
* @param aSize Size.
*/
void GetOriginalSizeInTwips( TSize& aSize ) const;
protected: // Data
TSize iSizeInTwips; // Size of the bitmap data
CFbsBitmap* iBitmap; // reference to the Bitmap data
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -