*/
// EXTERNAL INCLUDES
-#include <dali/public-api/common/dali-vector.h>
+#include <dali/public-api/common/vector-wrapper.h>
// INTERNAL INCLUDES
#include <dali-toolkit/public-api/controls/buttons/push-button.h>
*/
static Dali::Toolkit::PushButton New();
-protected: // From Button
+protected:
/**
- * Sets the Leave signal.
+ * Construct a new PushButton.
*/
- virtual void OnButtonInitialize();
+ PushButton();
-protected: // From Control
+ /**
+ * A reference counted object may only be deleted by calling Unreference()
+ */
+ virtual ~PushButton();
+
+public:
+
+ // Properties
/**
- * @copydoc Control::GetNaturalSize()
+ * Enum for the alignment modes of the icon.
*/
- virtual Vector3 GetNaturalSize();
+ enum IconAlignment
+ {
+ LEFT,
+ RIGHT,
+ TOP,
+ BOTTOM,
+ DEFAULT = RIGHT
+ };
/**
- * Construct a new PushButton.
+ * Called when a property of an object of this type is set.
+ * @param[in] object The object whose property is set.
+ * @param[in] index The property index.
+ * @param[in] value The new property value.
*/
- PushButton();
+ static void SetProperty( BaseObject* object, Property::Index index, const Property::Value& value );
/**
- * A reference counted object may only be deleted by calling Unreference()
+ * Called to retrieve a property of an object of this type.
+ * @param[in] object The object whose property is to be retrieved.
+ * @param[in] index The property index.
+ * @return The current value of the property.
*/
- virtual ~PushButton();
+ static Property::Value GetProperty( BaseObject* object, Property::Index propertyIndex );
+
+ /**
+ * Deprecated API for Setting Pushbutton image using an Actor
+ * @param[in] image, Image Actor that has a url which can be used to create an image visual
+ */
+ void SetButtonImage( Actor image );
+
+ /**
+ * Deprecated API for Setting Pushbutton image using an Actor
+ * @param[in] image, Image Actor that has a url which can be used to create an image visual
+ */
+ void SetBackgroundImage( Actor image );
+
+ /**
+ * Deprecated API for Setting Pushbutton image using an Actor
+ * @param[in] image, Image Actor that has a url which can be used to create an image visual
+ */
+ void SetSelectedImage( Actor image );
+
+ /**
+ * Deprecated API for Setting Pushbutton image using an Actor
+ * @param[in] image, Image Actor that has a url which can be used to create an image visual
+ */
+ void SetSelectedBackgroundImage( Actor image );
+
+ /**
+ * Deprecated API for Setting Pushbutton image using an Actor
+ * @param[in] image, Image Actor that has a url which can be used to create an image visual
+ */
+ void SetDisabledBackgroundImage( Actor image );
+
+ /**
+ * Deprecated API for Setting Pushbutton image using an Actor
+ * @param[in] image, Image Actor that has a url which can be used to create an image visual
+ */
+ void SetDisabledImage( Actor image );
+
+ /**
+ * Deprecated API for Setting Pushbutton image using an Actor
+ * @param[in] image, Image Actor that has a url which can be used to create an image visual
+ */
+ void SetDisabledSelectedImage( Actor image );
+
+private: // From Button
+
+ /**
+ * @copydoc Toolkit::Internal::Button::OnInitialize
+ */
+ virtual void OnInitialize();
+
+private:
+
+ /**
+ * @brief Sets the alignment mode to use to align the icon to the label.
+ *
+ * @param[in] iconAlignment The alignment mode to use
+ */
+ void SetIconAlignment( const PushButton::IconAlignment iconAlignment );
+
+ /**
+ * @brief Gets the alignment mode used to align the icon to the label.
+ *
+ * @return The alignment mode in use
+ */
+ const PushButton::IconAlignment GetIconAlignment() const;
private:
// Undefined
PushButton& operator=( const PushButton& );
+
+private:
+
+ IconAlignment mIconAlignment; ///< The alignment of the icon against the label.
};
} // namespace Internal