本文整理汇总了C++中CFbsBitmapDevice::ConstructL方法的典型用法代码示例。如果您正苦于以下问题:C++ CFbsBitmapDevice::ConstructL方法的具体用法?C++ CFbsBitmapDevice::ConstructL怎么用?C++ CFbsBitmapDevice::ConstructL使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CFbsBitmapDevice
的用法示例。
在下文中一共展示了CFbsBitmapDevice::ConstructL方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: NewL
/** Allocates and constructs the device with the bitmap. Also creates a 2D graphics
accelerator which is owned and used by the device.
@param aFbsBitmap A pointer to the font and bitmap server managed bitmap.
@leave KErrArgument The bitmap's handle is zero.
@leave KErrAccessDenied The bitmap is in the ROM.
@return A pointer to the newly constructed device.
@panic EBitgdiPanicInvalidBitmap aFbsBitmap is NULL. */
EXPORT_C CFbsBitmapDevice* CFbsBitmapDevice::NewL(CFbsBitmap* aFbsBitmap)
{
BG_ASSERT_ALWAYS(aFbsBitmap != NULL,EBitgdiPanicInvalidBitmap);
CFbsBitmapDevice* self = new(ELeave) CFbsBitmapDevice;
CleanupStack::PushL(self);
self->ConstructL(aFbsBitmap);
CleanupStack::Pop(); // self
return self;
}