MBrCtlLayoutObserver Class Reference

class MBrCtlLayoutObserver

The MBrCtlLayoutObserver class receives scrolling events when the host application draws the scrollbar.

Usage:

  #include <brctllayoutobserver.h>

  
 @see S60 Platform: Browser Control API Developer's Guide Version 2.0
 @lib BrowserEngine.lib
 @file brctllayoutobserver.h
*

Member Functions Documentation

NotifyLayoutChange(TBrCtlLayout)

voidNotifyLayoutChange(TBrCtlLayoutaNewLayout)[pure virtual]
Inform the layout of the page: right to left or left to right. Useful when the application draws the scrollbar itself.
Since
2.8
Attention:

This function is useful when the host application draws the scrollbar. In RTL pages, the scroll bar should be on the left side.

Parameters

TBrCtlLayout aNewLayoutRTL (right to left) or LTR (left to right)

UpdateBrowserHScrollBarL(TInt, TInt, TInt)

voidUpdateBrowserHScrollBarL(TIntaDocumentWidth,
TIntaDisplayWidth,
TIntaDisplayPosX
)[pure virtual]
Update the position of horizontal scrollbar.
Since
2.8

Parameters

TInt aDocumentWidthThe total width of the markup page
TInt aDisplayWidthThe width of the display
TInt aDisplayPosXThe current X position

UpdateBrowserVScrollBarL(TInt, TInt, TInt)

voidUpdateBrowserVScrollBarL(TIntaDocumentHeight,
TIntaDisplayHeight,
TIntaDisplayPosY
)[pure virtual]
Update the position of vertical scrollbar.
Since
2.8

Parameters

TInt aDocumentHeightThe total height of the markup page
TInt aDisplayHeightThe height of the display
TInt aDisplayPosYThe current Y position

UpdateTitleL(const TDesC &)

voidUpdateTitleL(const TDesC &aTitle)[pure virtual]
Update the title of the page in history view
Since
3.0

Parameters

const TDesC & aTitleTitle of the page