libaurum: apply smart pointer wider and extract impl out
[platform/core/uifw/aurum.git] / libaurum / src / Sel.cc
1 #include "Sel.h"
2 #include <utility>
3
4 std::shared_ptr<UiSelector> Sel::text(std::string text)
5 {
6     std::shared_ptr<UiSelector> sel = std::make_shared<UiSelector>();
7     sel->text(text);
8     return sel;
9 }
10
11 std::shared_ptr<UiSelector> Sel::type(std::string text)
12 {
13     std::shared_ptr<UiSelector> sel = std::make_shared<UiSelector>();
14     sel->type(text);
15     return sel;
16 }
17
18 std::shared_ptr<UiSelector> Sel::style(std::string text)
19 {
20     std::shared_ptr<UiSelector> sel = std::make_shared<UiSelector>();
21     sel->style(text);
22     return sel;
23 }
24
25 std::shared_ptr<UiSelector> Sel::depth(int depth)
26 {
27     std::shared_ptr<UiSelector> sel = std::make_shared<UiSelector>();
28     sel->depth(depth);
29     return sel;
30 }