@@ -18,47 +18,47 @@ class Button : public Widget {
1818 }
1919
2020 std::string text () const {
21- return data (). getString (" text" );
21+ return m_state-> getString (" text" );
2222 }
2323
2424 void setFontSize (float fontSize) {
2525 m_state->set (" fontSize" , new rbjson::Number (fontSize));
2626 }
2727
2828 float fontSize () const {
29- return data (). getDouble (" fontSize" );
29+ return m_state-> getDouble (" fontSize" );
3030 }
3131
3232 void setColor (const std::string& color) {
3333 m_state->set (" color" , new rbjson::String (color));
3434 }
3535
3636 std::string color () const {
37- return data (). getString (" color" );
37+ return m_state-> getString (" color" );
3838 }
3939
4040 void setBackground (const std::string& background) {
4141 m_state->set (" background" , new rbjson::String (background));
4242 }
4343
4444 std::string background () const {
45- return data (). getString (" background" );
45+ return m_state-> getString (" background" );
4646 }
4747
4848 void setAlign (const std::string& align) {
4949 m_state->set (" align" , new rbjson::String (align));
5050 }
5151
5252 std::string align () const {
53- return data (). getString (" align" );
53+ return m_state-> getString (" align" );
5454 }
5555
5656 void setValign (const std::string& valign) {
5757 m_state->set (" valign" , new rbjson::String (valign));
5858 }
5959
6060 std::string valign () const {
61- return data (). getString (" valign" );
61+ return m_state-> getString (" valign" );
6262 }
6363
6464 void setNumber (float number) {
@@ -67,15 +67,15 @@ class Button : public Widget {
6767 }
6868
6969 bool pressed () const {
70- return data (). getBool (" pressed" );
70+ return m_state-> getBool (" pressed" );
7171 }
7272
7373 void setDisabled (bool disabled) {
7474 m_state->set (" disabled" , new rbjson::Bool (disabled));
7575 }
7676
7777 bool disabled () const {
78- return data (). getBool (" disabled" );
78+ return m_state-> getBool (" disabled" );
7979 }
8080};
8181
0 commit comments