1 #include "UiSelector.h"
4 UiSelector::UiSelector()
9 UiSelector::UiSelector(const UiSelector &src)
14 UiSelector& UiSelector::operator= (const UiSelector& src)
17 if (this == &src) return *this; // 자기 대입 방지
21 UiSelector *UiSelector::id(std::string text)
23 this->mId = std::make_unique<std::string>(text);
27 UiSelector *UiSelector::text(std::string text)
29 this->mText = std::make_unique<std::string>(text);
33 UiSelector *UiSelector::pkg(std::string text)
35 this->mPkg = std::make_unique<std::string>(text);
39 UiSelector *UiSelector::res(std::string text)
41 this->mRes = std::make_unique<std::string>(text);
45 UiSelector *UiSelector::type(std::string text)
47 this->mType = std::make_unique<std::string>(text);
51 UiSelector *UiSelector::style(std::string text)
53 this->mStyle = std::make_unique<std::string>(text);
57 UiSelector *UiSelector::depth(int depth)
59 this->mMinDepth = std::make_unique<int>(depth);
60 this->mMaxDepth = std::make_unique<int>(depth);
64 UiSelector *UiSelector::depth(int minDepth, int maxDepth)
66 this->mMinDepth = std::make_unique<int>(minDepth);
67 this->mMaxDepth = std::make_unique<int>(maxDepth);
71 UiSelector *UiSelector::minDepth(int depth)
73 this->mMinDepth = std::make_unique<int>(depth);
77 UiSelector *UiSelector::maxDepth(int depth)
79 this->mMaxDepth = std::make_unique<int>(depth);
83 UiSelector *UiSelector::isChecked(bool cond)
85 this->mIschecked = std::make_unique<bool>(cond);
89 UiSelector *UiSelector::isCheckable(bool cond)
91 this->mIscheckable = std::make_unique<bool>(cond);
95 UiSelector *UiSelector::isClickable(bool cond)
97 this->mIsclickable = std::make_unique<bool>(cond);
101 UiSelector *UiSelector::isEnabled(bool cond)
103 this->mIsenabled = std::make_unique<bool>(cond);
107 UiSelector *UiSelector::isFocused(bool cond)
109 this->mIsfocused = std::make_unique<bool>(cond);
113 UiSelector *UiSelector::isFocusable(bool cond)
115 this->mIsfocusable = std::make_unique<bool>(cond);
119 UiSelector *UiSelector::isScrollable(bool cond)
121 this->mIsscrollable = std::make_unique<bool>(cond);
125 UiSelector *UiSelector::isSelected(bool cond)
127 this->mIsselected = std::make_unique<bool>(cond);
131 UiSelector *UiSelector::isShowing(bool cond)
133 this->mIsshowing = std::make_unique<bool>(cond);
137 UiSelector *UiSelector::isActive(bool cond)
139 this->mIsactive = std::make_unique<bool>(cond);
143 UiSelector *UiSelector::hasChild(std::shared_ptr<UiSelector> child)
145 mChild.push_back(child);