Tizen Native API  5.0

ScrollBar is a UI component that can be linked to the scrollable objects indicating the current scroll position of the scrollable object. More...

Inheritance diagram for Dali::Toolkit::ScrollBar:
Dali::Toolkit::Control Dali::CustomActor Dali::Actor Dali::Handle Dali::BaseHandle

Classes

struct  Property
 Enumeration for the instance of properties belonging to the ScrollBar class. More...

Public Types

enum  PropertyRange
 Enumeration for the start and end property ranges for this control. More...
enum  Direction
 Direction. More...
enum  IndicatorHeightPolicy
 Indicator height policy. More...

Public Member Functions

 ScrollBar ()
 Creates an uninitialized ScrollBar; this can be initialized with ScrollBar::New() Calling member functions with an uninitialized Dali::Object is not allowed.
 ScrollBar (const ScrollBar &scrollBar)
 Copy constructor.
ScrollBaroperator= (const ScrollBar &scrollBar)
 Assignment operator.
 ~ScrollBar ()
 Destructor.
void SetScrollPropertySource (Handle handle, Dali::Property::Index propertyScrollPosition, Dali::Property::Index propertyMinScrollPosition, Dali::Property::Index propertyMaxScrollPosition, Dali::Property::Index propertyScrollContentSize)
 Sets the source of the scroll position properties.
void SetScrollIndicator (Actor indicator)
 Sets the indicator of scroll bar.
Actor GetScrollIndicator ()
 Gets the indicator of scroll bar.
void SetScrollPositionIntervals (const Dali::Vector< float > &positions)
 Sets the list of values to get notification when the current scroll position of the scrollable object goes above or below any of these values.
Dali::Vector< float > GetScrollPositionIntervals () const
 Gets the list of values to receive notifications when the current scroll position of the scrollable object goes above or below any of these values.
void SetScrollDirection (Direction direction)
 Sets the direction of scroll bar to scroll either vertically or horizontally.
Direction GetScrollDirection () const
 Gets the direction of scroll bar.
void SetIndicatorHeightPolicy (IndicatorHeightPolicy policy)
 Sets the height policy of scroll indicator to have either variable or fixed height.
IndicatorHeightPolicy GetIndicatorHeightPolicy () const
 Gets the height policy of scroll indicator.
void SetIndicatorFixedHeight (float height)
 Sets the fixed height of scroll indicator.
float GetIndicatorFixedHeight () const
 Gets the fix height of scroll indicator.
void SetIndicatorShowDuration (float durationSeconds)
 Sets the duration in seconds for the scroll indicator to become fully visible.
float GetIndicatorShowDuration () const
 Gets the duration in seconds for the scroll indicator to become fully visible.
void SetIndicatorHideDuration (float durationSeconds)
 Sets the duration in seconds for the scroll indicator to become fully invisible.
float GetIndicatorHideDuration () const
 Gets the duration in seconds for the scroll indicator to become fully invisible.
void ShowIndicator ()
 Shows the scroll indicator.
void HideIndicator ()
 Hides the scroll indicator.
ScrollBar::PanFinishedSignalTypePanFinishedSignal ()
 Signal emitted when panning is finished on the scroll indicator.
ScrollBar::ScrollPositionIntervalReachedSignalTypeScrollPositionIntervalReachedSignal ()
 Signal emitted when the current scroll position of the scrollable content goes above or below the values specified by SCROLL_POSITION_INTERVALS property.

Static Public Member Functions

static ScrollBar New (Direction direction=Vertical)
 Creates an initialized ScrollBar.
static ScrollBar DownCast (BaseHandle handle)
 Downcasts a handle to ScrollBar handle.

Detailed Description

ScrollBar is a UI component that can be linked to the scrollable objects indicating the current scroll position of the scrollable object.

Signals | Signal Name | Method | |-------------------------------|--------------------------------------------| | panFinished | PanFinishedSignal() | | scrollPositionIntervalReached | ScrollPositionIntervalReachedSignal() |

Since:
2.4, DALi version 1.0.0

Member Enumeration Documentation

Direction.

Since:
2.4, DALi version 1.0.0
Enumerator:
Vertical 

Scroll in the vertical direction.

Since:
2.4, DALi version 1.0.0
Horizontal 

Scroll in the horizontal direction.

Since:
2.4, DALi version 1.0.0

Indicator height policy.

Since:
2.4, DALi version 1.0.0
Enumerator:
Variable 

Variable height changed dynamically according to the length of scroll content.

Since:
2.4, DALi version 1.0.0
Fixed 

Fixed height regardless of the length of scroll content.

Since:
2.4, DALi version 1.0.0

Enumeration for the start and end property ranges for this control.

Since:
2.4, DALi version 1.0.0
Enumerator:
PROPERTY_START_INDEX 
Since:
2.4, DALi version 1.0.0
PROPERTY_END_INDEX 

Reserve property indices.

Since:
2.4, DALi version 1.0.0

Reimplemented from Dali::Toolkit::Control.


Constructor & Destructor Documentation

Creates an uninitialized ScrollBar; this can be initialized with ScrollBar::New() Calling member functions with an uninitialized Dali::Object is not allowed.

Since:
2.4, DALi version 1.0.0

Copy constructor.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]scrollBarHandle to an object

Destructor.

This is non-virtual since derived Handle types must not contain data or virtual methods.

Since:
2.4, DALi version 1.0.0

Member Function Documentation

Downcasts a handle to ScrollBar handle.

If handle points to a ScrollBar, the downcast produces valid handle. If not, the returned handle is left uninitialized.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]handleHandle to an object
Returns:
Handle to a ScrollBar or an uninitialized handle

Reimplemented from Dali::Toolkit::Control.

Gets the fix height of scroll indicator.

Since:
2.4, DALi version 1.0.0
Returns:
The fixed height of the scroll indicator

Gets the height policy of scroll indicator.

Since:
2.4, DALi version 1.0.0
Returns:
The height policy of scroll indicator

Gets the duration in seconds for the scroll indicator to become fully invisible.

Since:
2.4, DALi version 1.0.0
Returns:
The duration for the scroll indicator to become fully invisible

Gets the duration in seconds for the scroll indicator to become fully visible.

Since:
2.4, DALi version 1.0.0
Returns:
The duration for the scroll indicator to become fully visible

Gets the direction of scroll bar.

Since:
2.4, DALi version 1.0.0
Returns:
The direction of scroll bar

Gets the indicator of scroll bar.

Since:
2.4, DALi version 1.0.0
Returns:
The indicator indicates the current scroll position of the scrollable content
Precondition:
The scroll bar actor has been initialized.

Gets the list of values to receive notifications when the current scroll position of the scrollable object goes above or below any of these values.

Since:
2.4, DALi version 1.0.0
Returns:
The list of values to receive notifications for when the current scroll position crosses them
Precondition:
The scroll bar actor has been initialized.

Hides the scroll indicator.

Since:
2.4, DALi version 1.0.0
static ScrollBar Dali::Toolkit::ScrollBar::New ( Direction  direction = Vertical) [static]

Creates an initialized ScrollBar.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]directionThe direction of scroll bar (either vertically or horizontally)
Returns:
A pointer to the created ScrollBar
ScrollBar& Dali::Toolkit::ScrollBar::operator= ( const ScrollBar scrollBar)

Assignment operator.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]scrollBarHandle to an object
Returns:
A reference to this

Signal emitted when panning is finished on the scroll indicator.

Signal only emitted when the source of the scroll position properties are set.

A callback of the following type may be connected:

   void YourCallbackName();
Since:
2.4, DALi version 1.0.0
Returns:
The signal to connect to
Precondition:
The Object has been initialized.

Signal emitted when the current scroll position of the scrollable content goes above or below the values specified by SCROLL_POSITION_INTERVALS property.

Signal only emitted when the source of the scroll position properties are set.

A callback of the following type may be connected:

   void YourCallbackName(float currentScrollPosition);
Since:
2.4, DALi version 1.0.0
Returns:
The signal to connect to
Precondition:
The Object has been initialized.

Sets the fixed height of scroll indicator.

Normally the height of scroll indicator is changed dynamically according to the length of scroll content. However, when the height policy of scroll indicator is set to be fixed, the height will be kept fixed regardless of the length of scroll content.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]heightThe fixed height of the scroll indicator
Precondition:
The scroll bar actor has been initialized.

Sets the height policy of scroll indicator to have either variable or fixed height.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]policyThe height policy of scroll indicator
Precondition:
The scroll bar actor has been initialized.
void Dali::Toolkit::ScrollBar::SetIndicatorHideDuration ( float  durationSeconds)

Sets the duration in seconds for the scroll indicator to become fully invisible.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]durationSecondsThe duration for the scroll indicator to become fully invisible
Precondition:
The scroll bar actor has been initialised; durationSeconds must be zero or greater; zero means the indicator will be hidden instantly.
void Dali::Toolkit::ScrollBar::SetIndicatorShowDuration ( float  durationSeconds)

Sets the duration in seconds for the scroll indicator to become fully visible.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]durationSecondsThe duration for the scroll indicator to become fully visible
Precondition:
The scroll bar actor has been initialised; durationSeconds must be zero or greater; zero means the indicator will be shown instantly.

Sets the direction of scroll bar to scroll either vertically or horizontally.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]directionThe direction of scroll bar (either vertically or horizontally)
Precondition:
The scroll bar actor has been initialized.

Sets the indicator of scroll bar.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]indicatorThe indicator that moves to indicate the current scroll position
Precondition:
The scroll bar actor has been initialized.

Sets the list of values to get notification when the current scroll position of the scrollable object goes above or below any of these values.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]positionsList of values to receive notifications for when the current scroll position crosses them
Precondition:
The scroll bar actor has been initialized.
void Dali::Toolkit::ScrollBar::SetScrollPropertySource ( Handle  handle,
Dali::Property::Index  propertyScrollPosition,
Dali::Property::Index  propertyMinScrollPosition,
Dali::Property::Index  propertyMaxScrollPosition,
Dali::Property::Index  propertyScrollContentSize 
)

Sets the source of the scroll position properties.

Since:
2.4, DALi version 1.0.0
Parameters:
[in]handleThe handle of the object owing the scroll properties
[in]propertyScrollPositionThe index of the scroll position property (The scroll position, type float)
[in]propertyMinScrollPositionThe index of the minimum scroll position property (The minimum scroll position, type float)
[in]propertyMaxScrollPositionThe index of the maximum scroll position property (The maximum scroll position, type float)
[in]propertyScrollContentSizeThe index of the scroll content size property (The size of the scrollable content in actor coordinates, type float)
Precondition:
The handle to the object owing the scroll properties has been initialised and the property index must be valid.

Shows the scroll indicator.

Since:
2.4, DALi version 1.0.0