Location:
eikconso.h
Link against:
eikcoctl.lib
CEikConsoleControl
Supported from 6.0
Provides functions to enable construction and manipulation of a console.
|
Defined in CEikConsoleControl
:
CEikConsoleControl()
, CharSize()
, ClearChars()
, ComponentControl()
, ConstructL()
, CountComponentControls()
, Draw()
, DrawChars()
, DrawCursor()
, FocusChanged()
, Font()
, GetColorUseListL()
, HandleResourceChange()
, HandleScrollEventL()
, HideCursor()
, InvertChars()
, ScrollChars()
, SetCursorHeight()
, SetFontL()
, SetRedrawer()
, SetScrollBarVisibilityL()
, SizeChanged()
, UpdateArea()
, UpdateScrollbarsL()
, VisibleSize()
, ~CEikConsoleControl()
Inherited from CBase
:
operator new()
Inherited from CCoeControl
:
ActivateGc()
,
ActivateL()
,
BackedUpWindow()
,
CapturesPointer()
,
ClaimPointerGrab()
,
CloseWindow()
,
ConstructFromResourceL()
,
ControlContext()
,
ControlEnv()
,
CopyControlContextFrom()
,
CreateBackedUpWindowL()
,
CreateWindowL()
,
DeactivateGc()
,
DrawDeferred()
,
DrawNow()
,
DrawableWindow()
,
EnableDragEvents()
,
GetColor()
,
GetHelpContext()
,
GrabbingComponent()
,
HandleComponentControlsResourceChange()
,
HandlePointerBufferReadyL()
,
HandlePointerEventL()
,
HandleRedrawEvent()
,
HasBorder()
,
IgnoreEventsUntilNextPointerUp()
,
Index()
,
InputCapabilities()
,
IsActivated()
,
IsBackedUp()
,
IsBeingDestroyed()
,
IsBlank()
,
IsDimmed()
,
IsFocused()
,
IsNonFocusing()
,
IsReadyToDraw()
,
IsVisible()
,
MakeVisible()
,
MinimumSize()
,
Observer()
,
OfferKeyEventL()
,
OverrideColorL()
,
OwnsWindow()
,
Position()
,
PositionChanged()
,
PositionRelativeToScreen()
,
PrepareForFocusGainL()
,
PrepareForFocusLossL()
,
Rect()
,
RecursivelyMergedInputCapabilities()
,
ReportEventL()
,
ResetGc()
,
SetAdjacent()
,
SetAllowStrayPointers()
,
SetBlank()
,
SetCanDrawOutsideRect()
,
SetComponentsToInheritVisibility()
,
SetContainerWindow()
,
SetContainerWindowL()
,
SetControlContext()
,
SetCornerAndSize()
,
SetCornerAndSizeL()
,
SetDimmed()
,
SetExtent()
,
SetExtentL()
,
SetExtentToWholeScreen()
,
SetExtentToWholeScreenL()
,
SetFocus()
,
SetFocusing()
,
SetGloballyCapturing()
,
SetNeighbor()
,
SetNonFocusing()
,
SetObserver()
,
SetPointerCapture()
,
SetPosition()
,
SetRect()
,
SetRectL()
,
SetSize()
,
SetSizeL()
,
SetSizeWithoutNotification()
,
SetSizeWithoutNotificationL()
,
Size()
,
SizeChangedL()
,
SystemGc()
,
Window()
Inherited from MEikScrollBarObserver
:
EEikScrollBottom
,
EEikScrollDown
,
EEikScrollEnd
,
EEikScrollHome
,
EEikScrollLeft
,
EEikScrollPageDown
,
EEikScrollPageLeft
,
EEikScrollPageRight
,
EEikScrollPageUp
,
EEikScrollRight
,
EEikScrollThumbDragHoriz
,
EEikScrollThumbDragVert
,
EEikScrollThumbReleaseHoriz
,
EEikScrollThumbReleaseVert
,
EEikScrollTop
,
EEikScrollUp
,
TEikScrollEvent
CEikConsoleControl();
Constructor. Initializes the console's colour, scrollbars and
cursor. Complete construction with ConstructL()
.
void ConstructL(TInt aFlags);
Completes construction specifying whether a backed up window is used.
|
void ConstructL(TPoint aTopLeft,const TSize &aSize,TInt aFlags,TEikConsWinUnits aUnit);
Completes construction specifying the console's position, size, whether a backed up window is used and whether to use pixels or characters as units.
|
void SetRedrawer(CEikConsoleScreen *aConsole);
Sets the specified console as the object responsible for redrawing.
|
~CEikConsoleControl();
Destructor. Releases the screen font and deletes the scroll bar frame.
void SetFontL(const TFontSpec &aFontSpec,const CFbsFont* aFont);
Sets the font.
|
const TFontSpec& Font() const;
Gets the current font's specification.
|
const TSize& CharSize() const;
Gets the current font's character size in pixels.
|
void SetCursorHeight(TUint aPercentage);
Sets cursor height to the specified percentage of the current screen font.
|
void DrawCursor(TPoint aPosition);
Draws the cursor at the specified character position.
|
void DrawChars(const TDesC &aString,const TPoint &aPosition,TUint aCharacterAttributes);
Draws the specified string in the given position with the specified attributes.
|
void ClearChars(const TRect &anArea,TUint aCharacterAttributes);
Clears the specified area.
|
void InvertChars(const TRect &anArea);
Inverts the colour of the characters and background in the specified area.
|
void ScrollChars(const TRect &anArea,const TPoint &aVector);
Scrolls characters inside the specified area by the specified character coordinates.
|
virtual void GetColorUseListL(CArrayFix<TCoeColorUse>& aColorUseList) const;
Gets the list of logical colours used to draw the control,
paired with an explanation of how they are used. Appends the list to
aColorUseList
.
|
virtual void HandleResourceChange(TInt aType);
Handles a change to the control's resources which are shared across the environment. Colours or fonts for example.
|
void HandleScrollEventL(CEikScrollBar* aScrollBar,TEikScrollEvent aEventType);
Handles a scroll bar event. This function is called when a user
interacts with the scrollbar and calls back the owning
CEikConsoleScreen
to perform any required redrawing.
|
TInt SetScrollBarVisibilityL(CEikScrollBarFrame::TScrollBarVisibility aHBarVisibility, CEikScrollBarFrame::TScrollBarVisibility aVBarVisibility);
Sets horizontal and vertical scrollbar visibility.
|
|
TBool UpdateScrollbarsL(const TSize &aDataSize,const TSize& aVisibleSize,TPoint aPos);
Updates the scrollbars, including thumb positions.
This function is called when the size or position of the scrollbars, data, or visible area changes.
|
|
virtual CCoeControl* ComponentControl(TInt aIndex) const;
Gets the specified component control.
|
|
virtual TInt CountComponentControls() const;
Gets the number of component controls.
|
void Draw(const TRect& aRect) const;
Draws the control.
|
void FocusChanged(TDrawNow aDrawNow);
Draws or removes the console control's cursor in response to a change in focus.
The control is drawn with a cursor if the control has gained focus, without a cursor if the control has lost focus.
This updates only the cursor.
|
void SizeChanged();
Redraws the scrollbars and visible area as a result of a change in the console's size.