class CFsAlfScrollbarLayout : public CAlfLayout |
Scrollbar layout. This class creates a layout visual with scrollbars in it. Both horizontal and vertical scrollbars are supported. Scrollbars have three modes: show, hide and auto. When set to show the scrollbar is always visible. Hide setting keeps the scrollbar always hidden. Auto setting determines if the scrollbar is needed or not. Each scrollbar can have different visibility setting.
?good_class_usage_example(s)
Public Member Functions | |
---|---|
~CFsAlfScrollbarLayout () | |
IMPORT_C CFsAlfScrollbarLayout * | AddNewL ( CAlfControl &, CAlfLayout *) |
IMPORT_C TBool | IsScrollbarVisible ( TFsScrollbar ) |
IMPORT_C TAlfRealPoint | LayoutSize () |
IMPORT_C TInt | RangeEnd ( TFsScrollbar ) |
IMPORT_C TInt | RangeStart ( TFsScrollbar ) |
IMPORT_C TInt | ScrollbarPos ( TFsScrollbar ) |
IMPORT_C void | SetHorizontalScrollbarHeight ( TInt , TInt ) |
IMPORT_C void | SetRange ( TInt , TInt , TFsScrollbar ) |
IMPORT_C void | SetScrollbarImagesL (CAlfImageBrush *, CAlfImageBrush *, TFsScrollbar ) |
IMPORT_C void | SetScrollbarPos (const TInt , TFsScrollbar ) |
IMPORT_C void | SetThumbSpan ( TInt , TFsScrollbar ) |
IMPORT_C void | SetVerticalScrollbarWidth ( TInt , TInt ) |
IMPORT_C void | SetVisibilityMode ( TFsScrollbarVisibility , TFsScrollbar ) |
IMPORT_C TInt | ThumbSpan ( TFsScrollbar ) |
IMPORT_C void | Update ( TInt ) |
IMPORT_C TFsScrollbarVisibility | VisibilityMode ( TFsScrollbar ) |
Private Member Functions | |
---|---|
CFsAlfScrollbarLayout () | |
void | ConstructL ( CAlfControl &) |
void | ReleaseCustomImage ( TFsScrollbar ) |
void | SendCommand ( TFsScrollbarCommand , TFsScrollbarSet &) |
void | SendCommand ( TFsScrollbarCommand , TFsScrollbarSet &, TFsScrollbarSet &) |
Inherited Enumerations | |
---|---|
CAlfLayout:TExpansionFlags |
Private Attributes | |
---|---|
CAlfImageBrush * | iHBarBrush |
CAlfVisual * | iHScrollbar |
CAlfDeckLayout * | iHScrollbarLayout |
CAlfDeckLayout * | iHThumb |
CAlfImageBrush * | iHThumbBrush |
CAlfControl * | iOwnerControl |
CAlfImageBrush * | iVBarBrush |
CAlfVisual * | iVScrollbar |
CAlfDeckLayout * | iVScrollbarLayout |
CAlfDeckLayout * | iVThumb |
CAlfImageBrush * | iVThumbBrush |
IMPORT_C CFsAlfScrollbarLayout * | AddNewL | ( | CAlfControl & | aOwnerControl, |
CAlfLayout * | aParentLayout = NULL | |||
) | [static] |
Construct a new scrollbar layout and give its ownership to a control.
CAlfControl & aOwnerControl | Owner control. |
CAlfLayout * aParentLayout = NULL | Parent layout for the new layout. |
void | ConstructL | ( | CAlfControl & | aOwner | ) | [private, virtual] |
From CAlfVisual . Second-phase constructor.
CAlfControl & aOwner |
IMPORT_C TBool | IsScrollbarVisible | ( | TFsScrollbar | aScrollbar = EFsScrollbarVertical | ) |
Resolve if the specified scrollbar is visible.
TFsScrollbar aScrollbar = EFsScrollbarVertical | The scrollbar at issue. |
IMPORT_C TAlfRealPoint | LayoutSize | ( | ) |
Get the target size of the scrolbar layout without the scrollbars.
IMPORT_C TInt | RangeEnd | ( | TFsScrollbar | aScrollbar = EFsScrollbarVertical | ) |
Get scrollbar's maximum range value.
TFsScrollbar aScrollbar = EFsScrollbarVertical | The scrollbar at issue. |
IMPORT_C TInt | RangeStart | ( | TFsScrollbar | aScrollbar = EFsScrollbarVertical | ) |
Get scrollbar's minimum range value.
TFsScrollbar aScrollbar = EFsScrollbarVertical | The scrollbar at issue. |
void | ReleaseCustomImage | ( | TFsScrollbar | aScrollbar | ) | [private] |
Release custom image reserved memory.
TFsScrollbar aScrollbar | The scrollbar at issue. |
IMPORT_C TInt | ScrollbarPos | ( | TFsScrollbar | aScrollbar = EFsScrollbarVertical | ) |
Resolve the current scrollbar position.
TFsScrollbar aScrollbar = EFsScrollbarVertical | The scrollbar at issue. |
void | SendCommand | ( | TFsScrollbarCommand | aCommandId, |
TFsScrollbarSet & | aInScrollbarSet | |||
) | [private] |
Send a command to server.
TFsScrollbarCommand aCommandId | Id of the command to be sent. |
TFsScrollbarSet & aInScrollbarSet | Data for the used command. |
void | SendCommand | ( | TFsScrollbarCommand | aCommandId, |
TFsScrollbarSet & | aInScrollbarSet, | |||
TFsScrollbarSet & | aOutScrollbarSet | |||
) | [private] |
Send a command to server.
TFsScrollbarCommand aCommandId | Id of the command to be sent. |
TFsScrollbarSet & aInScrollbarSet | Placeholder for received data. |
TFsScrollbarSet & aOutScrollbarSet |
IMPORT_C void | SetHorizontalScrollbarHeight | ( | TInt | aHeight, |
TInt | aTransitionTime = 0 | |||
) |
Adjust the horizontal scrollbar's height.
IMPORT_C void | SetRange | ( | TInt | aStart, |
TInt | aEnd, | |||
TFsScrollbar | aScrollbar = EFsScrollbarVertical | |||
) |
Set the range of the scrollbar. Will not actually move the scrollbar until Update() is called.
IMPORT_C void | SetScrollbarImagesL | ( | CAlfImageBrush * | aBarBrush, |
CAlfImageBrush * | aThumbBrush, | |||
TFsScrollbar | aScrollbar | |||
) |
Change the bar image to custom image. Ownership of the brushes are changed.
CAlfImageBrush * aBarBrush | Brush with the new bar image. |
CAlfImageBrush * aThumbBrush | Brush with the new thumb image. |
TFsScrollbar aScrollbar | The scrollbar at issue. |
IMPORT_C void | SetScrollbarPos | ( | const TInt | aPos, |
TFsScrollbar | aScrollbar = EFsScrollbarVertical | |||
) |
Set the position of the scrollbar. Will not actually move the scrollbar until Update() is called.
const TInt aPos | Index of the first item visible, i.e. the index of the topmost item in a list box. |
TFsScrollbar aScrollbar = EFsScrollbarVertical | The scrollbar at issue. |
IMPORT_C void | SetThumbSpan | ( | TInt | aThumbSpan, |
TFsScrollbar | aScrollbar = EFsScrollbarVertical | |||
) |
Set the count of the visible unit.
TInt aThumbSpan | Count of the units that is visible at a time. |
TFsScrollbar aScrollbar = EFsScrollbarVertical | The scrollbar at issue. |
IMPORT_C void | SetVerticalScrollbarWidth | ( | TInt | aWidth, |
TInt | aTransitionTime = 0 | |||
) |
Adjust the vertical scrollbar's width.
IMPORT_C void | SetVisibilityMode | ( | TFsScrollbarVisibility | aVisibility, |
TFsScrollbar | aScrollbar = EFsScrollbarVertical | |||
) |
Set the scrollbar visibility.
TFsScrollbarVisibility aVisibility | New visibility mode for the scrollbar. |
TFsScrollbar aScrollbar = EFsScrollbarVertical | The scrollbar at issue. |
IMPORT_C TInt | ThumbSpan | ( | TFsScrollbar | aScrollbar = EFsScrollbarVertical | ) |
Resolve the count of the units that is visible at a time.
TFsScrollbar aScrollbar = EFsScrollbarVertical | The scrollbar at issue. |
IMPORT_C void | Update | ( | TInt | aLayoutTransitionTime = 0 | ) |
Update the visibility of scrollbars.
TInt aLayoutTransitionTime = 0 | How long the transition should take visually, in milliseconds. |
IMPORT_C TFsScrollbarVisibility | VisibilityMode | ( | TFsScrollbar | aScrollbar = EFsScrollbarVertical | ) |
Resolve the scrollbar visibility.
TFsScrollbar aScrollbar = EFsScrollbarVertical |
CAlfVisual * | iHScrollbar | [private] |
Background image for the horizontal scrollbar. Not own.
CAlfDeckLayout * | iHScrollbarLayout | [private] |
The layout that contains the entire horizontal scrollbar. Not own.
CAlfDeckLayout * | iHThumb | [private] |
Visual for the horizontal scrollbar thumb (part that scrolls around). Not own.
CAlfControl * | iOwnerControl | [private] |
?description_of_pointer_member Not own.
CAlfVisual * | iVScrollbar | [private] |
Background image for the vertical scrollbar. Not own.
CAlfDeckLayout * | iVScrollbarLayout | [private] |
The layout that contains the entire vertical scrollbar. Not own.
CAlfDeckLayout * | iVThumb | [private] |
Visual for the vertical scrollbar thumb (part that scrolls around). Not own.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.