A corner window is that part of the screen that is common to both the horizontal, and the vertical elements of a scroll bar.
This class helps with access to, and set up of, scroll bars and also with the layout of the scrolled control or control body. A scroll bar frame is not a control, but it does implement the standard control composite pattern to manage the assemblage.
|
Public Types |
enum | TScrollBarType { ENormalScrollBar = 0x0,
EArrowHead = 0x200,
EDoubleSpan = 0x400
} |
| Defines the type of scroll bar. More...
|
enum | TScrollBarSide { EBottomOrRight = 0x0,
ETopOrLeft = 0x800
} |
| Defines where the scroll bar is located. More...
|
enum | TScrollBarManagement { EComponent,
EFloating,
EApplicationScrollBar
} |
| Determines how the scroll bar frame manages scroll bars. More...
|
enum | TScrollBarFrameFlags { EHVisible = 0x01,
EVVisible = 0x02
} |
| Defines that is the horizontal or the vertical (spanned) scroll bar visible. More...
|
Public Member Functions |
| DECLARE_TYPE_ID (0x101F8672) enum TScrollBarVisibility |
| Defines the scroll bar’s visibility.
|
| CEikScrollBarFrame () |
| C++ default constructor.
|
IMPORT_C | CEikScrollBarFrame (CCoeControl *aParentWindow, MEikScrollBarObserver *aObserver, TBool aPreAlloc=EFalse) |
| Constructor.
|
IMPORT_C | ~CEikScrollBarFrame () |
| Destructor.
|
| CEikScrollBarFrame (CCoeControl *aParentWindow, MEikScrollBarObserver *aObserver, TBool aPreAlloc, TBool aDoubleSpan) |
| Constructor.
|
void | InitExtension (CCoeControl *aParentWindow, MEikScrollBarObserver *aObserver) |
| Initializes a new CEikScrollBarFrameExtension object.
|
IMPORT_C void | DrawScrollBarsNow () const |
| Forces any scroll bars and the corner window if it is visible to be redrawn.
|
void | DrawScrollBarsDeferred () const |
| Tell scroll bars and the corner window to redraw if it is visible.
|
IMPORT_C void | SetScrollBarVisibilityL (TScrollBarVisibility aHVisibility, TScrollBarVisibility aVVisibility) |
| Sets the visibility state for both the horizontal and the vertical scroll bars.
|
TScrollBarVisibility | VScrollBarVisibility () const |
| Determines the vertical scroll bar’s visibility.
|
IMPORT_C void | SetScrollBarFrameObserver (MEikScrollBarObserver *aObserver) |
| Sets scrollbar observers.
|
IMPORT_C TBool | Tile (TEikScrollBarModel *aVModel) |
| Sets the vertical scrollbar mode.
|
IMPORT_C TBool | TileL (TEikScrollBarModel *aHModel, TEikScrollBarModel *aVModel, TRect &aClientRect, TRect &aInclusiveRect, const TEikScrollBarFrameLayout &aLayout) |
| Tiles the client area and the scroll bars managed by the frame.
|
IMPORT_C void | MoveThumbsBy (TInt aDeltaX, TInt aDeltaY) |
| Moves the scroll bar thumbs by the specified amounts.
|
IMPORT_C void | MoveHorizThumbTo (TInt aHorizThumbPos) |
| Moves the horizontal scroll bar thumb to the position aHorizThumbPos .
|
IMPORT_C void | MoveVertThumbTo (TInt aVertThumbPos) |
| Moves the vertical scroll bar thumb to the position aVertThumbPos .
|
IMPORT_C void | SetVFocusPosToThumbPos (TInt aFocusPosition) |
| Moves the vertical scroll bar thumb to the position aFocusPosition .
|
IMPORT_C TInt | ScrollBarBreadth (CEikScrollBar::TOrientation aOrientation) const |
| Returns the breadth of the scroll bar idenitified by aOrientation , or zero if none exists.
|
IMPORT_C void | SetAdjustsHorizontalModel (TBool aAdjusts) |
| Not implemented.
|
IMPORT_C void | SetAdjustsVerticalModel (TBool aAdjusts) |
| Not implemented.
|
void | SetScrollBarFrameFlags (TInt aMask) |
| Sets scrollbar frame flags.
|
IMPORT_C TBool | ScrollBarExists (CEikScrollBar::TOrientation aOrientation) const |
| Determines whether the scroll bar specified by aOrientation exists.
|
IMPORT_C TInt | CountComponentControls () const |
| From CCoeControl .
|
IMPORT_C CCoeControl * | ComponentControl (TInt aIndex) const |
| From CCoeControl .
|
IMPORT_C CEikScrollBar * | GetScrollBarHandle (CEikScrollBar::TOrientation aOrientation) const |
| Returns a pointer to the scroll bar identified by orientation aOrientation .
|
IMPORT_C CEikScrollBar * | VerticalScrollBar () const |
| Returns a pointer to the vertical scroll bar.
|
IMPORT_C void | SetTypeOfHScrollBar (TScrollBarType aType) |
| Sets the type of horizontal scroll bar.
|
IMPORT_C void | SetTypeOfVScrollBar (TScrollBarType aType) |
| Sets the type of vertical scroll bar.
|
IMPORT_C TScrollBarType | TypeOfHScrollBar () const |
| Returns the control type of the horizontal scroll bar.
|
IMPORT_C TScrollBarType | TypeOfVScrollBar () const |
| Returns the control type of the vertical scroll bar.
|
IMPORT_C TBool | IsArrowHeadScrollBar (TInt aFlag) const |
| Checks if the vertical scrollbar type is EArrowHead .
|
void | DisconnectExternalScrollBar (CEikScrollBar *aScrollBar) |
| This method is used only internally by the CEikScrollBar .
|
IMPORT_C void | CreateDoubleSpanScrollBarsL (TBool aWindowOwning, TBool aRemote) |
| This method creates double span type scrollbars into this frame.
|
IMPORT_C void | CreateDoubleSpanScrollBarsL (TBool aWindowOwning, TBool aRemote, TBool aVertical, TBool aHorizontal) |
| This method creates double span type scrollbars into this frame.
|
IMPORT_C void | Tile (TEikScrollBarModel *aVModel, TRect &aVScrollBar) |
| Tiles the vertical EDouble span type scroll bar managed by the frame.
|
IMPORT_C void | Tile (TEikScrollBarModel *aHModel, TEikScrollBarModel *aVModel) |
| Sets the models of the scrollbars.
|
IMPORT_C TScrollBarVisibility | ScrollBarVisibility (CEikScrollBar::TOrientation aOrientation) const |
| Gets the visibility of given scrollbar orientation.
|
IMPORT_C TInt | DrawBackground (TBool aDrawHorizontal, TBool aDrawVertical) |
| Sets the background drawing for the double spanned scrollbars.
|
IMPORT_C TInt | DrawBackgroundState (TBool &aDrawHorizontal, TBool &aDrawVertical) |
| Gets the state of the background drawing for the double spanned scrollbars.
|
CEikScrollBar * | HorizontalScrollBar () const |
| Gets a pointer to the horizontal scroll bar.
|
MEikScrollBarObserver * | ScrollBarFrameObserver () |
| Sets scrollbar observers.
|
Protected Member Functions |
void | SetParentWindow (CCoeControl *aParentWindow) |
| Sets parent window.
|
CCoeControl * | ParentWindow () const |
| Gets a pointer to the parent window.
|
Protected Attributes |
SBarData | iV |
| Struct object.
|
Friends |
class | CEikScrollBarFrameExtension |
Data Structures |
struct | SBarData |
| Struct. More...
|