Tizen Native API
4.0
|
ScrollBar is a UI component that can be linked to the scrollable objects indicating the current scroll position of the scrollable object. More...
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. | |
ScrollBar & | operator= (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::PanFinishedSignalType & | PanFinishedSignal () |
Signal emitted when panning is finished on the scroll indicator. | |
ScrollBar::ScrollPositionIntervalReachedSignalType & | ScrollPositionIntervalReachedSignal () |
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. |
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() |
Enumeration for the start and end property ranges for this control.
PROPERTY_START_INDEX |
|
PROPERTY_END_INDEX |
Reserve property indices.
|
Reimplemented from Dali::Toolkit::Control.
Creates an uninitialized ScrollBar; this can be initialized with ScrollBar::New() Calling member functions with an uninitialized Dali::Object is not allowed.
Dali::Toolkit::ScrollBar::ScrollBar | ( | const ScrollBar & | scrollBar | ) |
Destructor.
This is non-virtual since derived Handle types must not contain data or virtual methods.
static ScrollBar Dali::Toolkit::ScrollBar::DownCast | ( | BaseHandle | handle | ) | [static] |
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.
[in] | handle | Handle to an object |
Reimplemented from Dali::Toolkit::Control.
float Dali::Toolkit::ScrollBar::GetIndicatorFixedHeight | ( | ) | const |
Gets the fix height of scroll indicator.
Gets the height policy of scroll indicator.
float Dali::Toolkit::ScrollBar::GetIndicatorHideDuration | ( | ) | const |
Gets the duration in seconds for the scroll indicator to become fully invisible.
float Dali::Toolkit::ScrollBar::GetIndicatorShowDuration | ( | ) | const |
Gets the duration in seconds for the scroll indicator to become fully visible.
Gets the direction of scroll bar.
Gets the indicator of scroll bar.
Dali::Vector<float> Dali::Toolkit::ScrollBar::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.
Hides the scroll indicator.
static ScrollBar Dali::Toolkit::ScrollBar::New | ( | Direction | direction = Vertical | ) | [static] |
Assignment operator.
[in] | scrollBar | Handle to an object |
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();
ScrollBar::ScrollPositionIntervalReachedSignalType& Dali::Toolkit::ScrollBar::ScrollPositionIntervalReachedSignal | ( | ) |
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);
void Dali::Toolkit::ScrollBar::SetIndicatorFixedHeight | ( | float | height | ) |
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.
[in] | height | The fixed height of the scroll indicator |
Sets the height policy of scroll indicator to have either variable or fixed height.
[in] | policy | The height policy of scroll indicator |
void Dali::Toolkit::ScrollBar::SetIndicatorHideDuration | ( | float | durationSeconds | ) |
Sets the duration in seconds for the scroll indicator to become fully invisible.
[in] | durationSeconds | The duration for the scroll indicator to become fully invisible |
void Dali::Toolkit::ScrollBar::SetIndicatorShowDuration | ( | float | durationSeconds | ) |
Sets the duration in seconds for the scroll indicator to become fully visible.
[in] | durationSeconds | The duration for the scroll indicator to become fully visible |
void Dali::Toolkit::ScrollBar::SetScrollDirection | ( | Direction | direction | ) |
Sets the direction of scroll bar to scroll either vertically or horizontally.
[in] | direction | The direction of scroll bar (either vertically or horizontally) |
void Dali::Toolkit::ScrollBar::SetScrollIndicator | ( | Actor | indicator | ) |
Sets the indicator of scroll bar.
[in] | indicator | The indicator that moves to indicate the current scroll position |
void Dali::Toolkit::ScrollBar::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.
[in] | positions | List of values to receive notifications for when the current scroll position crosses them |
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.
[in] | handle | The handle of the object owing the scroll properties |
[in] | propertyScrollPosition | The index of the scroll position property (The scroll position, type float) |
[in] | propertyMinScrollPosition | The index of the minimum scroll position property (The minimum scroll position, type float) |
[in] | propertyMaxScrollPosition | The index of the maximum scroll position property (The maximum scroll position, type float) |
[in] | propertyScrollContentSize | The index of the scroll content size property (The size of the scrollable content in actor coordinates, type float) |
Shows the scroll indicator.