{
mBackground.SetImage(image);
}
-
mBackground.SetNinePatchBorder( border );
mBackground.SetStyle( ImageActor::STYLE_NINE_PATCH );
}
+void ScrollBar::SetIndicatorImage( Image image )
+{
+ mIndicator.SetImage(image);
+}
+
void ScrollBar::SetIndicatorImage( Image image, const Vector4& border )
{
mIndicator.SetImage(image);
/**
* @copydoc Toolkit::ScrollBar::SetIndicatorImage()
*/
+ void SetIndicatorImage( Image image );
+
+ /**
+ * @copydoc Toolkit::ScrollBar::SetIndicatorImage()
+ */
void SetIndicatorImage( Image image, const Vector4& border );
/**
GetImpl(*this).SetBackgroundImage(image, border);
}
+void ScrollBar::SetIndicatorImage( Image image )
+{
+ GetImpl(*this).SetIndicatorImage(image);
+}
+
void ScrollBar::SetIndicatorImage( Image image, const Vector4& border )
{
GetImpl(*this).SetIndicatorImage(image, border);
*
* @param[in] image The image to cover background
* @param[in] border The nine patch border for the image.
+ *
+ * @deprecated Use Control::SetBackground()
+ */
+ void SetBackgroundImage( Image image, const Vector4& border );
+
+ /**
+ * @brief Sets the image for the indicator of scroll bar.
+ *
+ * @pre The scroll bar actor has been initialised.
+ *
+ * The indicator image is resized (stretched according to scale settings),
+ * to reflect the size of the scroll indicator and minimum/maximum limits
+ * of the scroll position.
+ *
+ * @param[in] image The image of indicator that moves to indicate the current scroll position.
*/
- void SetBackgroundImage( Image image, const Vector4& border );
+ void SetIndicatorImage( Image image );
/**
* @brief Sets the image for the indicator of scroll bar.
*
* @param[in] image The image of indicator that moves to indicate the current scroll position.
* @param[in] border The nine patch border for the image.
+ *
+ * @deprecated Use the new 9-patch API
*/
void SetIndicatorImage( Image image, const Vector4& border );