|
|
|
Location:
EIKCLOCK.H
Link against: eikctl.lib
class CEikClock : public CEikBorderedControl, public MEikClockContainer;
Clock control.
An on-screen clock that can be initialised from a CLOCK resource struct, and can be switched between analog and digital display with a pointer tap. CEikClock is implemented as a container control wrapped around a more primitive CEikLocaleConformantClock .
The clock control has an associated resource struct CLOCK and control factory identifier EEikCtClock .
This class is not intended for user derivation.
MEikClockContainer - Base class used in the derivation of CEikClockMEikBorderedControl - Interface for bordered 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 derivedCEikBorderedControl - A control which is drawn surrounded by a rectangular borderCEikClock - Clock controlDefined in CEikClock:
ActivateL(), CEikClock(), ClockIsVisible(), ConstructClockL(), ConstructFromResourceL(), Draw(), GetClockPositionAndSize(), GetColorUseListL(), HandlePointerEventL(), HandleResourceChange(), HasBorder(), MakeVisible(), MinimumSize(), PositionChanged(), SetClock(), SizeChanged(), ~CEikClock()
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(),
Reserved_2(),
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 CEikBorderedControl:
Border(),
ComponentControl(),
CountComponentControls(),
FocusChanged(),
GetHelpContext(),
HandleControlArrayEventL(),
HandlePointerBufferReadyL(),
InputCapabilities(),
MopSupplyObject(),
OfferKeyEventL(),
PrepareForFocusGainL(),
PrepareForFocusLossL(),
RequestRelayout(),
SetAdjacent(),
SetBorder(),
SetContainerWindowL(),
SetDimmed(),
SetLayoutManagerL(),
SetNeighbor(),
SetParent(),
SetTextBaselineSpacing(),
TextBaselineOffset(),
WriteInternalStateL(),
iBorder
Inherited from MEikBorderedControl:
ETypeId,
anonymous
Inherited from MObjectProvider:
MObjectProvider_Reserved1(),
MObjectProvider_Reserved2(),
MopGetObject(),
MopGetObjectNoChaining()
IMPORT_C CEikClock();
First phase constructor.
Complete construction with either ConstructFromResourceL() or SetClock() .
virtual IMPORT_C ~CEikClock();
Destructor. This function frees all resources owned by this object.
IMPORT_C void SetClock(CEikLocaleConformantClock *aClock);
Completes construction, setting the primitive clock control owned by this CEikClock . Application developers need only call this function if the clock is not constructed from a resource.
CEikClock takes full ownership of aClock , and will delete it upon destruction.
|
|
virtual IMPORT_C void HandlePointerEventL(const TPointerEvent &aPointerEvent);
Handles pointer events.
CEikClock 's response to a pointer tap is to switch between digital and analog clocks if both are available.
|
virtual IMPORT_C void MakeVisible(TBool aVisible);
Makes the control visible or invisible. See CCoeControl::MakeVisible() .
|
virtual IMPORT_C void ConstructFromResourceL(TResourceReader &aResourceReader);
Completes construction from resource.
The clock's fields are initialised to the values read by aResourceReader from a CLOCK resource. See CCoeControl::ConstructFromResourceL() .
This function creates a CEikResourceConstructedClock , which is a type of CEikLocaleConformantClock .
|
virtual IMPORT_C void ActivateL();
Sets the control as ready to be drawn.
Sets the background colour to the standard control colour.
virtual IMPORT_C TSize MinimumSize();
Gets the minimum size of the control.
|
virtual IMPORT_C TBool HasBorder() const;
Tests whether the control has a border.
|
virtual IMPORT_C void GetColorUseListL(CArrayFix< TCoeColorUse > &aColorUseList) const;
Gets the list of logical colours used to draw the control. The list includes an explanation of how each colour is used, and is appended to aColorUseList .
|
virtual IMPORT_C void HandleResourceChange(TInt aType);
Handles a change to the control's resources.
The types of resources handled are those that are shared across the environment, e.g. colours or fonts.
|
private: virtual IMPORT_C void SizeChanged();
Responds to size changes to sets the size and position of the contents of this control.
private: virtual IMPORT_C void PositionChanged();
Sets the position of the clock.
private: virtual IMPORT_C void Draw(const TRect &aRect) const;
Sets the color of the clock and calls CEikConformatClock::Draw() method.
|
private: virtual IMPORT_C TBool ClockIsVisible(const CEikLocaleConformantClock &aClock) const;
Used to see if the clock is visible on the screen.
|
|
private: virtual IMPORT_C void GetClockPositionAndSize(TPoint &aPosition, TSize &aSize, const CEikLocaleConformantClock &aClock, const TSize &aMinimumSize);
Gets the position and size of the clock.
|
private: virtual IMPORT_C void ConstructClockL(CEikLocaleConformantClock &aClock);
Override this if you want to call the CEikLocaleConformantClock::ConstructL with parameters.
|