15 template <
typename Self,
typename Finished>
26 return data().getString(
"color");
34 return data().getString(
"background");
42 m_state->
set(
"options",
new rbjson::String(out));
49 std::vector<std::string>
options()
const {
50 std::vector<std::string> out;
51 std::string str =
data().getString(
"options");
52 std::string::size_type lastDelim = 0;
53 std::string::size_type delim = 0;
56 delim = str.find(
',', lastDelim);
57 out.push_back(str.substr(lastDelim, delim - lastDelim));
59 }
while (delim != std::string::npos);
65 m_state->
set(
"selectedIndex",
new rbjson::Number(index));
69 return data().getInt(
"selectedIndex");
77 return data().getBool(
"disabled");
void setOptions(const std::string &options)
std::vector< std::string > options() const
std::string background() const
void setBackground(const std::string &background)
int selectedIndex() const
void setOptions(const std::vector< std::string > &options)
void setColor(const std::string &color)
void setSelectedIndex(int index)
void setDisabled(bool disabled)
std::string color() const