#include "html_builder_bind.h"
#include "core/string/print_string.h"
#include "core/string/ustring.h"
#include "core/object/method_bind_ext.gen.inc"
#include "../http/web_server_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;
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::style(const String &val) {
attrib("style", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::href(const String &val) {
attrib("href", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::cls(const String &val) {
attrib("class", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::clsse(const String &val) {
if (val == "") {
return Ref<_HTMLTag>(this);
}
attrib("class", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::id(const String &val) {
attrib("id", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::name(const String &val) {
attrib("name", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::content(const String &val) {
attrib("content", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::value(const String &val) {
attrib("value", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::accept(const String &val) {
attrib("accept", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::src(const String &val) {
attrib("src", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::alt(const String &val) {
attrib("alt", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete(const String &val) {
attrib("autocomplete", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_off() {
attrib("autocomplete", "off");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_on() {
attrib("autocomplete", "on");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_name() {
attrib("autocomplete", "name");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_name_honorific_prefix() {
attrib("autocomplete", "honorific-prefix");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_name_given_name() {
attrib("autocomplete", "given-name");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_name_additional_name() {
attrib("autocomplete", "additional-name");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_name_family_name() {
attrib("autocomplete", "family-name");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_name_honorific_suffix() {
attrib("autocomplete", "honorific-suffix");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_name_nickname() {
attrib("autocomplete", "nickname");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_email() {
attrib("autocomplete", "email");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_username() {
attrib("autocomplete", "username");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_new_password() {
attrib("autocomplete", "new-password");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_current_password() {
attrib("autocomplete", "current-password");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_one_time_code() {
attrib("autocomplete", "one-time-code");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_organization_title() {
attrib("autocomplete", "organization-title");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_organization() {
attrib("autocomplete", "organization");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_street_address() {
attrib("autocomplete", "street-address");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_address_line1() {
attrib("autocomplete", "address-line1");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_address_line2() {
attrib("autocomplete", "address-line2");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_address_line3() {
attrib("autocomplete", "address-line3");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_address_level_1() {
attrib("autocomplete", "address-level1");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_address_level_2() {
attrib("autocomplete", "address-level2");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_address_level_3() {
attrib("autocomplete", "address-level3");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_address_level_4() {
attrib("autocomplete", "address-level4");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_country() {
attrib("autocomplete", "country");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_country_name() {
attrib("autocomplete", "country-name");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_postal_code() {
attrib("autocomplete", "postal-code");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_name() {
attrib("autocomplete", "cc-name");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_given_name() {
attrib("autocomplete", "cc-given-name");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_additional_name() {
attrib("autocomplete", "cc-additional-name");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_family_name() {
attrib("autocomplete", "cc-family-name");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_number() {
attrib("autocomplete", "cc-number");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_exp() {
attrib("autocomplete", "cc-exp");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_exp_month() {
attrib("autocomplete", "cc-exp-month");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_exp_year() {
attrib("autocomplete", "cc-exp-year");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_csc() {
attrib("autocomplete", "cc-csc");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_cc_type() {
attrib("autocomplete", "cc-type");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_transaction_currency() {
attrib("autocomplete", "transaction-currency");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_transaction_amount() {
attrib("autocomplete", "transaction-amount");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_language() {
attrib("autocomplete", "language");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_bday() {
attrib("autocomplete", "bday");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_bday_day() {
attrib("autocomplete", "bday-day");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_bday_month() {
attrib("autocomplete", "bday-month");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_bday_year() {
attrib("autocomplete", "bday-year");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_sex() {
attrib("autocomplete", "sex");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_tel() {
attrib("autocomplete", "tel");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_tel_country_code() {
attrib("autocomplete", "tel-country-code");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_tel_national() {
attrib("autocomplete", "tel-national");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_tel_area_code() {
attrib("autocomplete", "tel-area-code");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_tel_local() {
attrib("autocomplete", "tel-local");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_tel_extension() {
attrib("autocomplete", "tel-extension");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_impp() {
attrib("autocomplete", "impp");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_url() {
attrib("autocomplete", "url");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete_photo() {
attrib("autocomplete", "photo");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::onclick(const String &val) {
attrib("onclick", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::inputmode(const String &val) {
attrib("inputmode", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::list(const String &val) {
attrib("list", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::checked(const bool val) {
if (val) {
result += " checked";
}
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::selected(const bool val) {
if (val) {
result += " selected";
}
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autofocus(const bool val) {
if (val) {
result += " autofocus";
}
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::disabled(const bool val) {
if (val) {
result += " disabled";
}
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::multiple(const bool val) {
if (val) {
result += " multiple";
}
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::required(const bool val) {
if (val) {
result += " required";
}
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::spellcheck(const bool val) {
if (val) {
attrib("spellcheck", "true");
} else {
attrib("spellcheck", "false");
}
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::max(const String &val) {
attrib("max", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::min(const String &val) {
attrib("min", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::step(const String &val) {
attrib("step", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::step_any() {
attrib("step", "any");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::minlength(const int val) {
attrib("minlength", String::num(val));
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::minlengths(const String &val) {
attrib("minlength", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::maxlength(const int val) {
attrib("maxlength", String::num(val));
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::maxlengths(const String &val) {
attrib("maxlength", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::size(const int val) {
attrib("size", String::num(val));
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::sizes(const String &val) {
attrib("size", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::width(const int val) {
attrib("width", String::num(val));
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::widths(const String &val) {
attrib("width", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::height(const int val) {
attrib("height", String::num(val));
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::heights(const String &val) {
attrib("height", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::pattern(const String &val) {
attrib("pattern", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::method(const String &val) {
attrib("method", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::method_get() {
attrib("method", "get");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::method_post() {
attrib("method", "post");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::action(const String &val) {
attrib("action", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::type(const String &val) {
attrib("type", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::placeholder(const String &val) {
attrib("placeholder", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::fora(const String &val) {
attrib("for", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::rel(const String &val) {
attrib("rel", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::rel_stylesheet() {
attrib("rel", "stylesheet");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::rel_alternate() {
attrib("rel", "alternate");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::rel_author() {
attrib("rel", "author");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::rel_bookmark() {
attrib("rel", "bookmark");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::rel_external() {
attrib("rel", "external");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::rel_help() {
attrib("rel", "help");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::rel_license() {
attrib("rel", "license");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::rel_next() {
attrib("rel", "next");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::rel_nofollow() {
attrib("rel", "nofollow");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::rel_noopener() {
attrib("rel", "noopener");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::rel_noreferrer() {
attrib("rel", "noreferrer");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::rel_prev() {
attrib("rel", "prev");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::rel_search() {
attrib("rel", "search");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::rel_tag() {
attrib("rel", "tag");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::charset(const String &val) {
attrib("charset", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::charset_utf_8() {
attrib("charset", "utf-8");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::itbutton() {
attrib("type", "button");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::itcheckbox() {
attrib("type", "checkbox");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::itcolor() {
attrib("type", "color");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::itdate() {
attrib("type", "date");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::itdatetime_local() {
attrib("type", "datetime_local");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::itemail() {
attrib("type", "email");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::itfile() {
attrib("type", "file");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::ithidden() {
attrib("type", "hidden");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::itimage() {
attrib("type", "image");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::itmonth() {
attrib("type", "month");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::itnumber() {
attrib("type", "number");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::itpassword() {
attrib("type", "password");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::itradio() {
attrib("type", "radio");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::itrange() {
attrib("type", "range");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::itreset() {
attrib("type", "reset");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::itsearch() {
attrib("type", "search");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::itsubmit() {
attrib("type", "submit");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::ittel() {
attrib("type", "tel");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::ittext() {
attrib("type", "text");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::ittime() {
attrib("type", "time");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::iturl() {
attrib("type", "url");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::itweek() {
attrib("type", "week");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::inputmode_none() {
attrib("inputmode", "none");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::inputmode_text() {
attrib("inputmode", "text");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::inputmode_decimal() {
attrib("inputmode", "decimal");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::inputmode_numeric() {
attrib("inputmode", "numeric");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::inputmode_tel() {
attrib("inputmode", "tel");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::inputmode_search() {
attrib("inputmode", "search");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::inputmode_email() {
attrib("inputmode", "email");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::inputmode_url() {
attrib("inputmode", "url");
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::attrib(const String &attr, const String &val) {
result += " " + attr + "=\"" + val + "\"";
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::start(const String &p_tag, const bool p_simple) {
simple = p_simple;
result = "<" + p_tag;
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::reset() {
result.clear();
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::close() {
if (simple) {
result += "/>";
} else {
result += ">";
}
return Ref<_HTMLTag>(this);
}
Ref<_HTMLBuilder> _HTMLTag::f() {
return Ref<_HTMLBuilder>(owner);
}
bool _HTMLTag::has_data() {
return result.size() > 0;
}
_HTMLTag::_HTMLTag() {
simple = true;
}
void _HTMLTag::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_simple"), &_HTMLTag::get_simple);
ClassDB::bind_method(D_METHOD("set_simple", "val"), &_HTMLTag::set_simple);
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "simple"), "set_simple", "get_simple");
ClassDB::bind_method(D_METHOD("get_result"), &_HTMLTag::get_result);
ClassDB::bind_method(D_METHOD("set_result", "val"), &_HTMLTag::set_result);
ADD_PROPERTY(PropertyInfo(Variant::STRING, "result"), "set_result", "get_result");
ClassDB::bind_method(D_METHOD("str", "srt"), &_HTMLTag::str);
ClassDB::bind_method(D_METHOD("style", "val"), &_HTMLTag::style);
ClassDB::bind_method(D_METHOD("href", "val"), &_HTMLTag::href);
ClassDB::bind_method(D_METHOD("cls", "val"), &_HTMLTag::cls);
ClassDB::bind_method(D_METHOD("clsse", "val"), &_HTMLTag::clsse);
ClassDB::bind_method(D_METHOD("id", "val"), &_HTMLTag::id);
ClassDB::bind_method(D_METHOD("name", "val"), &_HTMLTag::name);
ClassDB::bind_method(D_METHOD("content", "val"), &_HTMLTag::content);
ClassDB::bind_method(D_METHOD("value", "val"), &_HTMLTag::value);
ClassDB::bind_method(D_METHOD("accept", "val"), &_HTMLTag::accept);
ClassDB::bind_method(D_METHOD("src", "val"), &_HTMLTag::src);
ClassDB::bind_method(D_METHOD("alt", "val"), &_HTMLTag::alt);
ClassDB::bind_method(D_METHOD("inputmode", "val"), &_HTMLTag::inputmode);
ClassDB::bind_method(D_METHOD("list", "val"), &_HTMLTag::list);
ClassDB::bind_method(D_METHOD("autocomplete", "val"), &_HTMLTag::autocomplete);
ClassDB::bind_method(D_METHOD("autocomplete_off"), &_HTMLTag::autocomplete_off);
ClassDB::bind_method(D_METHOD("autocomplete_on"), &_HTMLTag::autocomplete_on);
ClassDB::bind_method(D_METHOD("autocomplete_name"), &_HTMLTag::autocomplete_name);
ClassDB::bind_method(D_METHOD("autocomplete_name_honorific_prefix"), &_HTMLTag::autocomplete_name_honorific_prefix);
ClassDB::bind_method(D_METHOD("autocomplete_name_given_name"), &_HTMLTag::autocomplete_name_given_name);
ClassDB::bind_method(D_METHOD("autocomplete_name_additional_name"), &_HTMLTag::autocomplete_name_additional_name);
ClassDB::bind_method(D_METHOD("autocomplete_name_family_name"), &_HTMLTag::autocomplete_name_family_name);
ClassDB::bind_method(D_METHOD("autocomplete_name_honorific_suffix"), &_HTMLTag::autocomplete_name_honorific_suffix);
ClassDB::bind_method(D_METHOD("autocomplete_name_nickname"), &_HTMLTag::autocomplete_name_nickname);
ClassDB::bind_method(D_METHOD("autocomplete_email"), &_HTMLTag::autocomplete_email);
ClassDB::bind_method(D_METHOD("autocomplete_username"), &_HTMLTag::autocomplete_username);
ClassDB::bind_method(D_METHOD("autocomplete_new_password"), &_HTMLTag::autocomplete_new_password);
ClassDB::bind_method(D_METHOD("autocomplete_current_password"), &_HTMLTag::autocomplete_current_password);
ClassDB::bind_method(D_METHOD("autocomplete_one_time_code"), &_HTMLTag::autocomplete_one_time_code);
ClassDB::bind_method(D_METHOD("autocomplete_organization_title"), &_HTMLTag::autocomplete_organization_title);
ClassDB::bind_method(D_METHOD("autocomplete_organization"), &_HTMLTag::autocomplete_organization);
ClassDB::bind_method(D_METHOD("autocomplete_street_address"), &_HTMLTag::autocomplete_street_address);
ClassDB::bind_method(D_METHOD("autocomplete_address_line1"), &_HTMLTag::autocomplete_address_line1);
ClassDB::bind_method(D_METHOD("autocomplete_address_line2"), &_HTMLTag::autocomplete_address_line2);
ClassDB::bind_method(D_METHOD("autocomplete_address_line3"), &_HTMLTag::autocomplete_address_line3);
ClassDB::bind_method(D_METHOD("autocomplete_address_level_1"), &_HTMLTag::autocomplete_address_level_1);
ClassDB::bind_method(D_METHOD("autocomplete_address_level_2"), &_HTMLTag::autocomplete_address_level_2);
ClassDB::bind_method(D_METHOD("autocomplete_address_level_3"), &_HTMLTag::autocomplete_address_level_3);
ClassDB::bind_method(D_METHOD("autocomplete_address_level_4"), &_HTMLTag::autocomplete_address_level_4);
ClassDB::bind_method(D_METHOD("autocomplete_country"), &_HTMLTag::autocomplete_country);
ClassDB::bind_method(D_METHOD("autocomplete_country_name"), &_HTMLTag::autocomplete_country_name);
ClassDB::bind_method(D_METHOD("autocomplete_postal_code"), &_HTMLTag::autocomplete_postal_code);
ClassDB::bind_method(D_METHOD("autocomplete_cc_name"), &_HTMLTag::autocomplete_cc_name);
ClassDB::bind_method(D_METHOD("autocomplete_cc_given_name"), &_HTMLTag::autocomplete_cc_given_name);
ClassDB::bind_method(D_METHOD("autocomplete_cc_additional_name"), &_HTMLTag::autocomplete_cc_additional_name);
ClassDB::bind_method(D_METHOD("autocomplete_cc_family_name"), &_HTMLTag::autocomplete_cc_family_name);
ClassDB::bind_method(D_METHOD("autocomplete_cc_number"), &_HTMLTag::autocomplete_cc_number);
ClassDB::bind_method(D_METHOD("autocomplete_cc_exp"), &_HTMLTag::autocomplete_cc_exp);
ClassDB::bind_method(D_METHOD("autocomplete_cc_exp_month"), &_HTMLTag::autocomplete_cc_exp_month);
ClassDB::bind_method(D_METHOD("autocomplete_cc_exp_year"), &_HTMLTag::autocomplete_cc_exp_year);
ClassDB::bind_method(D_METHOD("autocomplete_cc_csc"), &_HTMLTag::autocomplete_cc_csc);
ClassDB::bind_method(D_METHOD("autocomplete_cc_type"), &_HTMLTag::autocomplete_cc_type);
ClassDB::bind_method(D_METHOD("autocomplete_transaction_currency"), &_HTMLTag::autocomplete_transaction_currency);
ClassDB::bind_method(D_METHOD("autocomplete_transaction_amount"), &_HTMLTag::autocomplete_transaction_amount);
ClassDB::bind_method(D_METHOD("autocomplete_language"), &_HTMLTag::autocomplete_language);
ClassDB::bind_method(D_METHOD("autocomplete_bday"), &_HTMLTag::autocomplete_bday);
ClassDB::bind_method(D_METHOD("autocomplete_bday_day"), &_HTMLTag::autocomplete_bday_day);
ClassDB::bind_method(D_METHOD("autocomplete_bday_month"), &_HTMLTag::autocomplete_bday_month);
ClassDB::bind_method(D_METHOD("autocomplete_bday_year"), &_HTMLTag::autocomplete_bday_year);
ClassDB::bind_method(D_METHOD("autocomplete_sex"), &_HTMLTag::autocomplete_sex);
ClassDB::bind_method(D_METHOD("autocomplete_tel"), &_HTMLTag::autocomplete_tel);
ClassDB::bind_method(D_METHOD("autocomplete_tel_country_code"), &_HTMLTag::autocomplete_tel_country_code);
ClassDB::bind_method(D_METHOD("autocomplete_tel_national"), &_HTMLTag::autocomplete_tel_national);
ClassDB::bind_method(D_METHOD("autocomplete_tel_area_code"), &_HTMLTag::autocomplete_tel_area_code);
ClassDB::bind_method(D_METHOD("autocomplete_tel_local"), &_HTMLTag::autocomplete_tel_local);
ClassDB::bind_method(D_METHOD("autocomplete_tel_extension"), &_HTMLTag::autocomplete_tel_extension);
ClassDB::bind_method(D_METHOD("autocomplete_impp"), &_HTMLTag::autocomplete_impp);
ClassDB::bind_method(D_METHOD("autocomplete_url"), &_HTMLTag::autocomplete_url);
ClassDB::bind_method(D_METHOD("autocomplete_photo"), &_HTMLTag::autocomplete_photo);
ClassDB::bind_method(D_METHOD("onclick", "val"), &_HTMLTag::onclick);
ClassDB::bind_method(D_METHOD("checked", "val"), &_HTMLTag::checked, true);
ClassDB::bind_method(D_METHOD("selected", "val"), &_HTMLTag::selected, true);
ClassDB::bind_method(D_METHOD("autofocus", "val"), &_HTMLTag::autofocus, true);
ClassDB::bind_method(D_METHOD("disabled", "val"), &_HTMLTag::disabled, true);
ClassDB::bind_method(D_METHOD("multiple", "val"), &_HTMLTag::multiple, true);
ClassDB::bind_method(D_METHOD("required", "val"), &_HTMLTag::required, true);
ClassDB::bind_method(D_METHOD("spellcheck", "val"), &_HTMLTag::spellcheck, true);
ClassDB::bind_method(D_METHOD("max", "val"), &_HTMLTag::max);
ClassDB::bind_method(D_METHOD("min", "val"), &_HTMLTag::min);
ClassDB::bind_method(D_METHOD("step", "val"), &_HTMLTag::step);
ClassDB::bind_method(D_METHOD("step_any"), &_HTMLTag::step_any);
ClassDB::bind_method(D_METHOD("minlength", "val"), &_HTMLTag::minlength);
ClassDB::bind_method(D_METHOD("minlengths", "val"), &_HTMLTag::minlengths);
ClassDB::bind_method(D_METHOD("maxlength", "val"), &_HTMLTag::maxlength);
ClassDB::bind_method(D_METHOD("maxlengths", "val"), &_HTMLTag::maxlengths);
ClassDB::bind_method(D_METHOD("size", "val"), &_HTMLTag::size);
ClassDB::bind_method(D_METHOD("sizes", "val"), &_HTMLTag::sizes);
ClassDB::bind_method(D_METHOD("width", "val"), &_HTMLTag::width);
ClassDB::bind_method(D_METHOD("widths", "val"), &_HTMLTag::widths);
ClassDB::bind_method(D_METHOD("height", "val"), &_HTMLTag::height);
ClassDB::bind_method(D_METHOD("heights", "val"), &_HTMLTag::heights);
ClassDB::bind_method(D_METHOD("pattern", "val"), &_HTMLTag::pattern);
ClassDB::bind_method(D_METHOD("method", "val"), &_HTMLTag::method);
ClassDB::bind_method(D_METHOD("method_get"), &_HTMLTag::method_get);
ClassDB::bind_method(D_METHOD("method_post"), &_HTMLTag::method_post);
ClassDB::bind_method(D_METHOD("action", "val"), &_HTMLTag::action);
ClassDB::bind_method(D_METHOD("type", "val"), &_HTMLTag::type);
ClassDB::bind_method(D_METHOD("placeholder", "val"), &_HTMLTag::placeholder);
ClassDB::bind_method(D_METHOD("fora", "val"), &_HTMLTag::fora);
ClassDB::bind_method(D_METHOD("rel", "val"), &_HTMLTag::rel);
ClassDB::bind_method(D_METHOD("rel_stylesheet"), &_HTMLTag::rel_stylesheet);
ClassDB::bind_method(D_METHOD("rel_alternate"), &_HTMLTag::rel_alternate);
ClassDB::bind_method(D_METHOD("rel_author"), &_HTMLTag::rel_author);
ClassDB::bind_method(D_METHOD("rel_bookmark"), &_HTMLTag::rel_bookmark);
ClassDB::bind_method(D_METHOD("rel_external"), &_HTMLTag::rel_external);
ClassDB::bind_method(D_METHOD("rel_help"), &_HTMLTag::rel_help);
ClassDB::bind_method(D_METHOD("rel_license"), &_HTMLTag::rel_license);
ClassDB::bind_method(D_METHOD("rel_next"), &_HTMLTag::rel_next);
ClassDB::bind_method(D_METHOD("rel_nofollow"), &_HTMLTag::rel_nofollow);
ClassDB::bind_method(D_METHOD("rel_noopener"), &_HTMLTag::rel_noopener);
ClassDB::bind_method(D_METHOD("rel_noreferrer"), &_HTMLTag::rel_noreferrer);
ClassDB::bind_method(D_METHOD("rel_prev"), &_HTMLTag::rel_prev);
ClassDB::bind_method(D_METHOD("rel_search"), &_HTMLTag::rel_search);
ClassDB::bind_method(D_METHOD("rel_tag"), &_HTMLTag::rel_tag);
ClassDB::bind_method(D_METHOD("charset", "val"), &_HTMLTag::charset);
ClassDB::bind_method(D_METHOD("charset_utf_8"), &_HTMLTag::charset_utf_8);
ClassDB::bind_method(D_METHOD("itbutton"), &_HTMLTag::itbutton);
ClassDB::bind_method(D_METHOD("itcheckbox"), &_HTMLTag::itcheckbox);
ClassDB::bind_method(D_METHOD("itcolor"), &_HTMLTag::itcolor);
ClassDB::bind_method(D_METHOD("itdate"), &_HTMLTag::itdate);
ClassDB::bind_method(D_METHOD("itdatetime_local"), &_HTMLTag::itdatetime_local);
ClassDB::bind_method(D_METHOD("itemail"), &_HTMLTag::itemail);
ClassDB::bind_method(D_METHOD("itfile"), &_HTMLTag::itfile);
ClassDB::bind_method(D_METHOD("ithidden"), &_HTMLTag::ithidden);
ClassDB::bind_method(D_METHOD("itimage"), &_HTMLTag::itimage);
ClassDB::bind_method(D_METHOD("itmonth"), &_HTMLTag::itmonth);
ClassDB::bind_method(D_METHOD("itnumber"), &_HTMLTag::itnumber);
ClassDB::bind_method(D_METHOD("itpassword"), &_HTMLTag::itpassword);
ClassDB::bind_method(D_METHOD("itradio"), &_HTMLTag::itradio);
ClassDB::bind_method(D_METHOD("itrange"), &_HTMLTag::itrange);
ClassDB::bind_method(D_METHOD("itreset"), &_HTMLTag::itreset);
ClassDB::bind_method(D_METHOD("itsearch"), &_HTMLTag::itsearch);
ClassDB::bind_method(D_METHOD("itsubmit"), &_HTMLTag::itsubmit);
ClassDB::bind_method(D_METHOD("ittel"), &_HTMLTag::ittel);
ClassDB::bind_method(D_METHOD("ittext"), &_HTMLTag::ittext);
ClassDB::bind_method(D_METHOD("ittime"), &_HTMLTag::ittime);
ClassDB::bind_method(D_METHOD("iturl"), &_HTMLTag::iturl);
ClassDB::bind_method(D_METHOD("itweek"), &_HTMLTag::itweek);
ClassDB::bind_method(D_METHOD("inputmode_none"), &_HTMLTag::inputmode_none);
ClassDB::bind_method(D_METHOD("inputmode_text"), &_HTMLTag::inputmode_text);
ClassDB::bind_method(D_METHOD("inputmode_decimal"), &_HTMLTag::inputmode_decimal);
ClassDB::bind_method(D_METHOD("inputmode_numeric"), &_HTMLTag::inputmode_numeric);
ClassDB::bind_method(D_METHOD("inputmode_tel"), &_HTMLTag::inputmode_tel);
ClassDB::bind_method(D_METHOD("inputmode_search"), &_HTMLTag::inputmode_search);
ClassDB::bind_method(D_METHOD("inputmode_email"), &_HTMLTag::inputmode_email);
ClassDB::bind_method(D_METHOD("inputmode_url"), &_HTMLTag::inputmode_url);
ClassDB::bind_method(D_METHOD("attrib", "attr", "val"), &_HTMLTag::attrib);
ClassDB::bind_method(D_METHOD("start", "new_tag", "simple"), &_HTMLTag::start, false);
ClassDB::bind_method(D_METHOD("reset"), &_HTMLTag::reset);
ClassDB::bind_method(D_METHOD("close"), &_HTMLTag::close);
ClassDB::bind_method(D_METHOD("f"), &_HTMLTag::f);
ClassDB::bind_method(D_METHOD("has_data"), &_HTMLTag::has_data);
}
String _HTMLBuilder::get_result() {
return result;
}
void _HTMLBuilder::set_result(const String &str) {
result = str;
}
Ref<_HTMLBuilder> _HTMLBuilder::comment(const String &val) {
write_tag();
result += "";
return Ref<_HTMLBuilder>(this);
}
Ref<_HTMLTag> _HTMLBuilder::doctype(const String &val) {
write_tag();
return tag->start("!DOCTYPE");
}
Ref<_HTMLTag> _HTMLBuilder::a(const String &href, const String &cls, const String &id) {
write_tag();
tag->start("a");
if (href != "") {
tag->href(href);
}
if (cls != "") {
tag->cls(cls);
}
if (id != "") {
tag->id(id);
}
return tag;
}
Ref<_HTMLBuilder> _HTMLBuilder::fa(const String &href, const String &body, const String &cls, const String &id) {
a(href, cls, id);
w(body);
ca();
return Ref<_HTMLBuilder>(this);
}
Ref<_HTMLTag> _HTMLBuilder::abbr() {
write_tag();
return tag->start("abbr");
}
Ref<_HTMLTag> _HTMLBuilder::acronym() { // Not supported in HTML5. Use instead. Defines an acronym
write_tag();
return tag->start("acronym");
}
Ref<_HTMLTag> _HTMLBuilder::address() {
write_tag();
return tag->start("address");
}
Ref<_HTMLTag> _HTMLBuilder::applet() { // Not supported in HTML5. Use ";
return Ref<_HTMLBuilder>(this);
}
Ref<_HTMLBuilder> _HTMLBuilder::cacronym() {
write_tag();
result += "";
return Ref<_HTMLBuilder>(this);
}
Ref<_HTMLBuilder> _HTMLBuilder::caddress() {
write_tag();
result += "";
return Ref<_HTMLBuilder>(this);
}
Ref<_HTMLBuilder> _HTMLBuilder::capplet() {
write_tag();
result += "";
return Ref<_HTMLBuilder>(this);
}
Ref<_HTMLBuilder> _HTMLBuilder::carea() {
write_tag();
result += "";
return Ref<_HTMLBuilder>(this);
}
Ref<_HTMLBuilder> _HTMLBuilder::carticle() {
write_tag();
result += "";
return Ref<_HTMLBuilder>(this);
}
Ref<_HTMLBuilder> _HTMLBuilder::caside() {
write_tag();
result += "";
return Ref<_HTMLBuilder>(this);
}
Ref<_HTMLBuilder> _HTMLBuilder::caudio() {
write_tag();
result += "";
return Ref<_HTMLBuilder>(this);
}
Ref<_HTMLBuilder> _HTMLBuilder::cb() {
write_tag();
result += "";
return Ref<_HTMLBuilder>(this);
}
Ref<_HTMLBuilder> _HTMLBuilder::cbasefont() {
write_tag();
result += "";
return Ref<_HTMLBuilder>(this);
}
Ref<_HTMLBuilder> _HTMLBuilder::cbdi() {
write_tag();
result += "";
return Ref<_HTMLBuilder>(this);
}
Ref<_HTMLBuilder> _HTMLBuilder::cbdo() {
write_tag();
result += "";
return Ref<_HTMLBuilder>(this);
}
Ref<_HTMLBuilder> _HTMLBuilder::cbig() {
write_tag();
result += "";
return Ref<_HTMLBuilder>(this);
}
Ref<_HTMLBuilder> _HTMLBuilder::cblockquote() {
write_tag();
result += "";
return Ref<_HTMLBuilder>(this);
}
Ref<_HTMLBuilder> _HTMLBuilder::cbody() {
write_tag();
result += "