--- /dev/null
+#include "actionslider.h"
+
+Actionslider::Actionslider(Evas_Object *parent, const std::string& left, const bool leftOn, const std::string& center, const bool centerOn, const std::string& right, const bool rightOn)
+ : EvasObject::EvasObject(
+ elm_actionslider_add(parent)
+ )
+ , parent(parent)
+{
+ elm_object_part_text_set(*this, "left", left.c_str());
+ elm_object_part_text_set(*this, "center", center.c_str());
+ elm_object_part_text_set(*this, "right", right.c_str());
+
+ unsigned int posEnabled = ELM_ACTIONSLIDER_NONE;
+ if (leftOn)
+ {
+ posEnabled |= ELM_ACTIONSLIDER_LEFT;
+ }
+ if (centerOn)
+ {
+ posEnabled |= ELM_ACTIONSLIDER_CENTER;
+ }
+ if (rightOn)
+ {
+ posEnabled |= ELM_ACTIONSLIDER_RIGHT;
+ }
+ elm_actionslider_enabled_pos_set(*this, static_cast<Elm_Actionslider_Pos>(posEnabled));
+}
+
+void Actionslider::setPos(Elm_Actionslider_Pos pos)
+{
+ elm_actionslider_indicator_pos_set(*this, pos);
+}
+
+Elm_Actionslider_Pos Actionslider::getPos()
+{
+ return elm_actionslider_indicator_pos_get(*this);
+}
+
+Actionslider::operator Evas_Object*()
+{
+ return EvasObject::obj_;
+}
--- /dev/null
+#ifndef __WAYLAND_EFL_ACTIONSLIDER_H__
+#define __WAYLAND_EFL_ACTIONSLIDER_H__
+
+#include <string>
+#include <Elementary.h>
+
+#include "evasobject.h"
+
+class Actionslider : public EvasObject
+{
+public:
+ Actionslider(Evas_Object *, const std::string& = "Left", const bool = true, const std::string& = "Center", const bool = true, const std::string& = "Right", const bool = true);
+
+ void setPos(Elm_Actionslider_Pos pos);
+
+ Elm_Actionslider_Pos getPos();
+
+ operator Evas_Object*();
+
+private:
+ Evas_Object *parent;
+};
+
+#endif
+