MBrCtlLayoutObserver Class Reference

#include <mw/brctllayoutobserver.h>

class MBrCtlLayoutObserver
Public Member Functions
pure virtual voidNotifyLayoutChange(TBrCtlLayout)
pure virtual voidUpdateBrowserHScrollBarL(TInt, TInt, TInt)
pure virtual voidUpdateBrowserVScrollBarL(TInt, TInt, TInt)
pure virtual voidUpdateTitleL(const TDesC &)

Detailed Description

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 Function 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.

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

Returns: void

UpdateBrowserHScrollBarL ( TInt, TInt, TInt )

voidUpdateBrowserHScrollBarL(TIntaDocumentWidth,
TIntaDisplayWidth,
TIntaDisplayPosX
)[pure virtual]
Update the position of horizontal scrollbar.
Since
2.8
ParameterDescription
aDocumentWidthThe total width of the markup page
aDisplayWidthThe width of the display
aDisplayPosXThe current X position

Returns: void

UpdateBrowserVScrollBarL ( TInt, TInt, TInt )

voidUpdateBrowserVScrollBarL(TIntaDocumentHeight,
TIntaDisplayHeight,
TIntaDisplayPosY
)[pure virtual]
Update the position of vertical scrollbar.
Since
2.8
ParameterDescription
aDocumentHeightThe total height of the markup page
aDisplayHeightThe height of the display
aDisplayPosYThe current Y position

Returns: void

UpdateTitleL ( const TDesC & )

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

Returns: void