Getter/Setter for the result.

This commit is contained in:
Relintai 2022-06-25 12:29:50 +02:00
parent c8ad42a540
commit a9a5b8adaa
2 changed files with 11 additions and 1 deletions

View File

@ -852,6 +852,13 @@ void _HTMLTag::_bind_methods() {
ClassDB::bind_method(D_METHOD("style", "val"), &_HTMLTag::style);
}
String _HTMLBuilder::get_result() {
return result;
}
void _HTMLBuilder::set_result(const String &str) {
result = str;
}
Ref<_HTMLBuilder> _HTMLBuilder::comment(const String &val) {
write_tag();

View File

@ -198,7 +198,8 @@ class _HTMLBuilder : public Reference {
GDCLASS(_HTMLBuilder, Reference)
public:
String result;
String get_result();
void set_result(const String &str);
Ref<_HTMLBuilder> comment(const String &val);
Ref<_HTMLTag> doctype();
@ -553,6 +554,8 @@ public:
_HTMLBuilder();
virtual ~_HTMLBuilder();
String result;
protected:
static void _bind_methods();