mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-07 00:25:54 +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"
|
//#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) {
|
Ref<_HTMLTag> _HTMLTag::str(const String &str) {
|
||||||
result += " " + str;
|
result += " " + str;
|
||||||
|
|
||||||
|
@ -12,8 +12,11 @@ class _HTMLTag : public Reference {
|
|||||||
GDCLASS(_HTMLTag, Reference)
|
GDCLASS(_HTMLTag, Reference)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
bool simple;
|
bool get_simple() const;
|
||||||
String result;
|
void set_simple(const bool val);
|
||||||
|
|
||||||
|
String get_result();
|
||||||
|
void set_result(const String &str);
|
||||||
|
|
||||||
Ref<_HTMLTag> str(const String &str);
|
Ref<_HTMLTag> str(const String &str);
|
||||||
Ref<_HTMLTag> style(const String &val);
|
Ref<_HTMLTag> style(const String &val);
|
||||||
@ -189,6 +192,8 @@ public:
|
|||||||
_HTMLTag();
|
_HTMLTag();
|
||||||
|
|
||||||
Ref<_HTMLBuilder> owner;
|
Ref<_HTMLBuilder> owner;
|
||||||
|
bool simple;
|
||||||
|
String result;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
|
Loading…
Reference in New Issue
Block a user