mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-30 12:59:18 +01:00
Added getters and setters for HTMLTag.
This commit is contained in:
parent
6576809d6b
commit
893a9af507
@ -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;
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user