Added getters and setters for HTMLTag.

This commit is contained in:
Relintai 2022-06-25 15:11:11 +02:00
parent 6576809d6b
commit 893a9af507
2 changed files with 21 additions and 2 deletions

View File

@ -4,6 +4,20 @@
//#include "web/http/request.h"
bool _HTMLTag::get_simple() const {
return simple;
}
void _HTMLTag::set_simple(const bool val) {
simple = val;
}
String _HTMLTag::get_result() {
return result;
}
void _HTMLTag::set_result(const String &str) {
result = str;
}
Ref<_HTMLTag> _HTMLTag::str(const String &str) {
result += " " + str;

View File

@ -12,8 +12,11 @@ class _HTMLTag : public Reference {
GDCLASS(_HTMLTag, Reference)
public:
bool simple;
String result;
bool get_simple() const;
void set_simple(const bool val);
String get_result();
void set_result(const String &str);
Ref<_HTMLTag> str(const String &str);
Ref<_HTMLTag> style(const String &val);
@ -189,6 +192,8 @@ public:
_HTMLTag();
Ref<_HTMLBuilder> owner;
bool simple;
String result;
protected:
static void _bind_methods();