|
|
|
Location:
EIKIMAGE.H
Link against: eikcoctl.lib
class CEikImage : public CEikAlignedControl;
This class provides functions that enable you to package bitmaps into an image.
Two bitmaps can be packaged, one for the image itself and, optionally, another for the images mask.
MEikAlignedControl - Interface for aligned controlsMObjectProvider - An interface that allows an object to be part of a network of object providersCBase - Base class for all classes to be instantiated on the heapCCoeControl - Control base class from which all other controls are derivedCEikAlignedControl - Base class for aligned controlsCEikImage - This class provides functions that enable you to package bitmaps into an imageDefined in CEikImage:
Bitmap(), CEikImage(), ConstructFromResourceL(), Content(), CreateAnimationFromThemeL(), CreatePictureFromFileL(), CreateSkinFromThemeL(), DefaultContentObserver(), Draw(), HandlePointerEventL(), IsCropped(), IsEmphasized(), IsHighlighted(), IsPictureOwnedExternally(), IsStretchMaintainAspectRatio(), IsStretched(), MakeVisible(), Mask(), MinimumSize(), MopSupplyObject(), OfferKeyEventL(), Pause(), Play(), Reserved_2(), SetBitmap(), SetContentL(), SetContentL(), SetContentL(), SetContentObserver(), SetCropped(), SetDimmed(), SetEmphasis(), SetHighlighted(), SetMask(), SetPicture(), SetPictureOwnedExternally(), SetStretchMaintainAspectRatio(), SetStretched(), Stop(), Type(), WriteInternalStateL(), ~CEikImage()
Inherited from CBase:
Delete(),
Extension_(),
operator new()
Inherited from CCoeControl:
AccumulatedZoom(),
ActivateGc(),
BackedUpWindow(),
Background(),
CapturesPointer(),
ClaimPointerGrab(),
CloseWindow(),
ComponentArrayExists(),
Components(),
ControlContext(),
ControlEnv(),
CopyControlContextFrom(),
CreateBackedUpWindowL(),
CreateWindowL(),
DeactivateGc(),
DrawBackground(),
DrawDeferred(),
DrawForeground(),
DrawNow(),
DrawableWindow(),
EAbsoluteZoom,
ERelativeZoom,
EnableDragEvents(),
FindBackground(),
FindFontProvider(),
GetColor(),
GetGc(),
GetTextDrawer(),
GrabbingComponent(),
HandleComponentControlsResourceChange(),
HandleRedrawEvent(),
HitTest(),
IgnoreEventsUntilNextPointerUp(),
Index(),
InitComponentArrayL(),
IsActivated(),
IsBackedUp(),
IsBeingDestroyed(),
IsBlank(),
IsDimmed(),
IsFocused(),
IsNonFocusing(),
IsReadyToDraw(),
IsVisible(),
LayoutManager(),
MaximumWidth(),
MopNext(),
Observer(),
OverrideColorL(),
OwnsWindow(),
Parent(),
Position(),
PositionRelativeToScreen(),
Rect(),
RecursivelyMergedInputCapabilities(),
ReportEventL(),
ResetGc(),
ScreenFont(),
SetAllowStrayPointers(),
SetBackground(),
SetBlank(),
SetCanDrawOutsideRect(),
SetComponentsToInheritVisibility(),
SetControlContext(),
SetCornerAndSize(),
SetExtent(),
SetExtentToWholeScreen(),
SetFocus(),
SetFocusing(),
SetFontProviderL(),
SetGc(),
SetGloballyCapturing(),
SetHitTest(),
SetMaximumWidth(),
SetMopParent(),
SetNonFocusing(),
SetObserver(),
SetPointerCapture(),
SetPosition(),
SetRect(),
SetSize(),
SetSizeWithoutNotification(),
SetUniqueHandle(),
SetZoomFactorL(),
Size(),
SystemGc(),
TZoomType,
TextDrawer(),
UniqueHandle(),
Window(),
ZoomWithType(),
iCoeEnv,
iContext,
iPosition,
iSize
Inherited from CEikAlignedControl:
ActivateL(),
Alignment(),
ComponentControl(),
CountComponentControls(),
FocusChanged(),
GetColorUseListL(),
GetHelpContext(),
HandleControlArrayEventL(),
HandlePointerBufferReadyL(),
HandleResourceChange(),
HasBorder(),
InputCapabilities(),
Margins(),
PositionChanged(),
PrepareForFocusGainL(),
PrepareForFocusLossL(),
RequestRelayout(),
SetAdjacent(),
SetAlignment(),
SetAllMarginsTo(),
SetContainerWindowL(),
SetLayoutManagerL(),
SetNeighbor(),
SetParent(),
SetTextBaselineSpacing(),
SizeChanged(),
TextBaselineOffset(),
iAlignment,
iMargin
Inherited from MEikAlignedControl:
ETypeId,
anonymous
Inherited from MObjectProvider:
MObjectProvider_Reserved1(),
MObjectProvider_Reserved2(),
MopGetObject(),
MopGetObjectNoChaining()
virtual IMPORT_C TSize MinimumSize();
Gets the minimum size required to draw the image.
|
virtual IMPORT_C void ConstructFromResourceL(TResourceReader &aReader);
Constructs an image from resource using the specified resource reader.
|
IMPORT_C void CreatePictureFromFileL(const TDesC &aFilename, TInt aMainId, TInt aMaskId=-1);
Creates an image from file.
|
IMPORT_C void SetContentL(const CQikContent *aContent);
Clones the content; ownership is not passed
|
IMPORT_C void SetContentL(const TDesC &aUri);
Creates a CEikImage based on the content that is described by the uri
|
IMPORT_C void SetContentL(const TDesC &aUri, const TCapabilitySet &aCapabilities, TUint aFlags);
Creates a CEikImage based on the content that is described by the uri
|
IMPORT_C void SetContentObserver(MQikContentObserver *aObserver);
|
IMPORT_C MQikContentObserver *DefaultContentObserver();
Returns the default content observer The default observer can be overriden by SetContentObserver, but an override can in turn forward events that it does not want to filter to the default observer The default observer takes the following actions whent he signalled that the content has changed: ContentChanged: Deferred Redraw ContentRequestsRedraw: Deferred Redraw ContentSizeChanged: Request Relayout
|
IMPORT_C void CreateSkinFromThemeL(const TUid &aUid, TInt aFrame, TInt aMultiBitmapIndex);
Creates a skin from the supplied TUid.
|
IMPORT_C void CreateAnimationFromThemeL(const TUid &aUid);
Creates an animation from the supplied TUid.
|
IMPORT_C void SetPicture(const CFbsBitmap *aBitmap, const CFbsBitmap *aMaskBitmap=0);
Sets the images bitmap and mask. Takes ownership unless the bitmaps are owned externally. The previous bitmaps are destroyed unless owned externally.
|
IMPORT_C void SetEmphasis(TBool aEmphasis);
Sets the images emphasis.
|
IMPORT_C void SetPictureOwnedExternally(TBool aOwnership);
Sets whether the images bitmaps are externally owned.
|
IMPORT_C const CFbsBitmap *Bitmap() const;
Gets the images bitmap.
|
IMPORT_C const CFbsBitmap *Mask() const;
Gets the images bitmap mask.
|
IMPORT_C void SetBitmap(const CFbsBitmap *aBitmap);
Sets the images bitmap and transfers ownership unless the bitmaps are owned externally. The previous bitmap is not destroyed even if it is not owned externally.
|
IMPORT_C void SetMask(const CFbsBitmap *aMaskBitmap);
Sets the mask to aMask and transfers ownership unless the bitmaps are owned externally. The mask can be set to be identical to the bitmap if the bitmap is self-masking. The previous mask is not destroyed even if it is not owned externally.
|
IMPORT_C TBool IsPictureOwnedExternally();
Tests whether the image is owned externally.
|
virtual IMPORT_C void MakeVisible(TBool aVisible);
Makes this control and its content visible or not.
|
virtual IMPORT_C void SetDimmed(TBool aDimmed);
If possible, makes this image draw itself dimmed.
|
IMPORT_C CQikContent::TType Type() const;
Returns the type of this CEikImage
|
IMPORT_C TBool IsEmphasized() const;
Returns whether this CEikImage is emphasized or not.
|
IMPORT_C void SetStretched(TBool aStretched);
If possible, makes this image draw itself stretched.
|
IMPORT_C TBool IsStretched() const;
Returns whether this CEikImage is stretched or not.
|
IMPORT_C void SetStretchMaintainAspectRatio(TBool aStretchMaintainAspectRatio);
|
IMPORT_C void SetCropped(TBool aCropped);
If possible, makes this image draw itself cropped.
|
IMPORT_C TBool IsCropped() const;
Returns whether this CEikImage is cropped or not.
|
IMPORT_C void Play(TBool aLoop);
Plays this image if it is an animating format.
|
IMPORT_C void Stop(TBool aImmediately);
Stops this image if it is an animating format.
|
IMPORT_C void SetHighlighted(TBool aHighlight);
If possible, draws this image highlighted.
|
IMPORT_C TBool IsHighlighted() const;
Returns whether this image is highlighted or not.
|
protected: virtual IMPORT_C void HandlePointerEventL(const TPointerEvent &aPointerEvent);
Handles pointer events from this CEikImage
|
protected: virtual IMPORT_C TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aCode);
Handles keyevent events from this CEikImage
|
|
protected: virtual IMPORT_C void WriteInternalStateL(RWriteStream &aWriteStream) const;
Writes the internal state of the control and its components to aStream. Does nothing in release mode. Designed to be overidden and base called by subclasses.
|
private: virtual IMPORT_C void Draw(const TRect &aRect) const;
Draw this CEikImage
|
private: virtual IMPORT_C TTypeUid::Ptr MopSupplyObject(TTypeUid aId);
Gets an object whose type is encapsulated by the specified TTypeUid object.
|
|
private: virtual IMPORT_C void Reserved_2();