mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-24 18:17:21 +01:00
Getter/Setter for the result.
This commit is contained in:
parent
c8ad42a540
commit
a9a5b8adaa
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user