From 676245221f85cd80873f38cbf66b42833672e796 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 25 Jun 2022 11:58:55 +0200 Subject: [PATCH] An another pass on the bound HTMLBuilder. --- modules/web/html/html_builder_bind.cpp | 1301 ++++++++++++------------ modules/web/html/html_builder_bind.h | 936 ++++++++--------- 2 files changed, 1119 insertions(+), 1118 deletions(-) diff --git a/modules/web/html/html_builder_bind.cpp b/modules/web/html/html_builder_bind.cpp index 6645e174e..f7c9a2926 100644 --- a/modules/web/html/html_builder_bind.cpp +++ b/modules/web/html/html_builder_bind.cpp @@ -4,31 +4,31 @@ //#include "web/http/request.h" -_HTMLTag *_HTMLTag::str(const String &str) { +Ref<_HTMLTag> _HTMLTag::str(const String &str) { result += " " + str; return this; } -_HTMLTag *_HTMLTag::style(const String &val) { +Ref<_HTMLTag> _HTMLTag::style(const String &val) { attrib("style", val); return this; } -_HTMLTag *_HTMLTag::href(const String &val) { +Ref<_HTMLTag> _HTMLTag::href(const String &val) { attrib("href", val); return this; } -_HTMLTag *_HTMLTag::cls(const String &val) { +Ref<_HTMLTag> _HTMLTag::cls(const String &val) { attrib("class", val); return this; } -_HTMLTag *_HTMLTag::clsse(const String &val) { +Ref<_HTMLTag> _HTMLTag::clsse(const String &val) { if (val == "") { return this; } @@ -38,344 +38,344 @@ _HTMLTag *_HTMLTag::clsse(const String &val) { return this; } -_HTMLTag *_HTMLTag::id(const String &val) { +Ref<_HTMLTag> _HTMLTag::id(const String &val) { attrib("id", val); return this; } -_HTMLTag *_HTMLTag::name(const String &val) { +Ref<_HTMLTag> _HTMLTag::name(const String &val) { attrib("name", val); return this; } -_HTMLTag *_HTMLTag::content(const String &val) { +Ref<_HTMLTag> _HTMLTag::content(const String &val) { attrib("content", val); return this; } -_HTMLTag *_HTMLTag::value(const String &val) { +Ref<_HTMLTag> _HTMLTag::value(const String &val) { attrib("value", val); return this; } -_HTMLTag *_HTMLTag::accept(const String &val) { +Ref<_HTMLTag> _HTMLTag::accept(const String &val) { attrib("accept", val); return this; } -_HTMLTag *_HTMLTag::src(const String &val) { +Ref<_HTMLTag> _HTMLTag::src(const String &val) { attrib("src", val); return this; } -_HTMLTag *_HTMLTag::alt(const String &val) { +Ref<_HTMLTag> _HTMLTag::alt(const String &val) { attrib("alt", val); return this; } -_HTMLTag *_HTMLTag::autocomplete(const String &val) { +Ref<_HTMLTag> _HTMLTag::autocomplete(const String &val) { attrib("autocomplete", val); return this; } -_HTMLTag *_HTMLTag::autocomplete_off() { +Ref<_HTMLTag> _HTMLTag::autocomplete_off() { attrib("autocomplete", "off"); return this; } -_HTMLTag *_HTMLTag::autocomplete_on() { +Ref<_HTMLTag> _HTMLTag::autocomplete_on() { attrib("autocomplete", "on"); return this; } -_HTMLTag *_HTMLTag::autocomplete_name() { +Ref<_HTMLTag> _HTMLTag::autocomplete_name() { attrib("autocomplete", "name"); return this; } -_HTMLTag *_HTMLTag::autocomplete_name_honorific_prefix() { +Ref<_HTMLTag> _HTMLTag::autocomplete_name_honorific_prefix() { attrib("autocomplete", "honorific-prefix"); return this; } -_HTMLTag *_HTMLTag::autocomplete_name_given_name() { +Ref<_HTMLTag> _HTMLTag::autocomplete_name_given_name() { attrib("autocomplete", "given-name"); return this; } -_HTMLTag *_HTMLTag::autocomplete_name_additional_name() { +Ref<_HTMLTag> _HTMLTag::autocomplete_name_additional_name() { attrib("autocomplete", "additional-name"); return this; } -_HTMLTag *_HTMLTag::autocomplete_name_family_name() { +Ref<_HTMLTag> _HTMLTag::autocomplete_name_family_name() { attrib("autocomplete", "family-name"); return this; } -_HTMLTag *_HTMLTag::autocomplete_name_honorific_suffix() { +Ref<_HTMLTag> _HTMLTag::autocomplete_name_honorific_suffix() { attrib("autocomplete", "honorific-suffix"); return this; } -_HTMLTag *_HTMLTag::autocomplete_name_nickname() { +Ref<_HTMLTag> _HTMLTag::autocomplete_name_nickname() { attrib("autocomplete", "nickname"); return this; } -_HTMLTag *_HTMLTag::autocomplete_email() { +Ref<_HTMLTag> _HTMLTag::autocomplete_email() { attrib("autocomplete", "email"); return this; } -_HTMLTag *_HTMLTag::autocomplete_username() { +Ref<_HTMLTag> _HTMLTag::autocomplete_username() { attrib("autocomplete", "username"); return this; } -_HTMLTag *_HTMLTag::autocomplete_new_password() { +Ref<_HTMLTag> _HTMLTag::autocomplete_new_password() { attrib("autocomplete", "new-password"); return this; } -_HTMLTag *_HTMLTag::autocomplete_current_password() { +Ref<_HTMLTag> _HTMLTag::autocomplete_current_password() { attrib("autocomplete", "current-password"); return this; } -_HTMLTag *_HTMLTag::autocomplete_one_time_code() { +Ref<_HTMLTag> _HTMLTag::autocomplete_one_time_code() { attrib("autocomplete", "one-time-code"); return this; } -_HTMLTag *_HTMLTag::autocomplete_organization_title() { +Ref<_HTMLTag> _HTMLTag::autocomplete_organization_title() { attrib("autocomplete", "organization-title"); return this; } -_HTMLTag *_HTMLTag::autocomplete_organization() { +Ref<_HTMLTag> _HTMLTag::autocomplete_organization() { attrib("autocomplete", "organization"); return this; } -_HTMLTag *_HTMLTag::autocomplete_street_address() { +Ref<_HTMLTag> _HTMLTag::autocomplete_street_address() { attrib("autocomplete", "street-address"); return this; } -_HTMLTag *_HTMLTag::autocomplete_address_line1() { +Ref<_HTMLTag> _HTMLTag::autocomplete_address_line1() { attrib("autocomplete", "address-line1"); return this; } -_HTMLTag *_HTMLTag::autocomplete_address_line2() { +Ref<_HTMLTag> _HTMLTag::autocomplete_address_line2() { attrib("autocomplete", "address-line2"); return this; } -_HTMLTag *_HTMLTag::autocomplete_address_line3() { +Ref<_HTMLTag> _HTMLTag::autocomplete_address_line3() { attrib("autocomplete", "address-line3"); return this; } -_HTMLTag *_HTMLTag::autocomplete_address_level_1() { +Ref<_HTMLTag> _HTMLTag::autocomplete_address_level_1() { attrib("autocomplete", "address-level1"); return this; } -_HTMLTag *_HTMLTag::autocomplete_address_level_2() { +Ref<_HTMLTag> _HTMLTag::autocomplete_address_level_2() { attrib("autocomplete", "address-level2"); return this; } -_HTMLTag *_HTMLTag::autocomplete_address_level_3() { +Ref<_HTMLTag> _HTMLTag::autocomplete_address_level_3() { attrib("autocomplete", "address-level3"); return this; } -_HTMLTag *_HTMLTag::autocomplete_address_level_4() { +Ref<_HTMLTag> _HTMLTag::autocomplete_address_level_4() { attrib("autocomplete", "address-level4"); return this; } -_HTMLTag *_HTMLTag::autocomplete_country() { +Ref<_HTMLTag> _HTMLTag::autocomplete_country() { attrib("autocomplete", "country"); return this; } -_HTMLTag *_HTMLTag::autocomplete_country_name() { +Ref<_HTMLTag> _HTMLTag::autocomplete_country_name() { attrib("autocomplete", "country-name"); return this; } -_HTMLTag *_HTMLTag::autocomplete_postal_code() { +Ref<_HTMLTag> _HTMLTag::autocomplete_postal_code() { attrib("autocomplete", "postal-code"); return this; } -_HTMLTag *_HTMLTag::autocomplete_cc_name() { +Ref<_HTMLTag> _HTMLTag::autocomplete_cc_name() { attrib("autocomplete", "cc-name"); return this; } -_HTMLTag *_HTMLTag::autocomplete_cc_given_name() { +Ref<_HTMLTag> _HTMLTag::autocomplete_cc_given_name() { attrib("autocomplete", "cc-given-name"); return this; } -_HTMLTag *_HTMLTag::autocomplete_cc_additional_name() { +Ref<_HTMLTag> _HTMLTag::autocomplete_cc_additional_name() { attrib("autocomplete", "cc-additional-name"); return this; } -_HTMLTag *_HTMLTag::autocomplete_cc_family_name() { +Ref<_HTMLTag> _HTMLTag::autocomplete_cc_family_name() { attrib("autocomplete", "cc-family-name"); return this; } -_HTMLTag *_HTMLTag::autocomplete_cc_number() { +Ref<_HTMLTag> _HTMLTag::autocomplete_cc_number() { attrib("autocomplete", "cc-number"); return this; } -_HTMLTag *_HTMLTag::autocomplete_cc_exp() { +Ref<_HTMLTag> _HTMLTag::autocomplete_cc_exp() { attrib("autocomplete", "cc-exp"); return this; } -_HTMLTag *_HTMLTag::autocomplete_cc_exp_month() { +Ref<_HTMLTag> _HTMLTag::autocomplete_cc_exp_month() { attrib("autocomplete", "cc-exp-month"); return this; } -_HTMLTag *_HTMLTag::autocomplete_cc_exp_year() { +Ref<_HTMLTag> _HTMLTag::autocomplete_cc_exp_year() { attrib("autocomplete", "cc-exp-year"); return this; } -_HTMLTag *_HTMLTag::autocomplete_cc_csc() { +Ref<_HTMLTag> _HTMLTag::autocomplete_cc_csc() { attrib("autocomplete", "cc-csc"); return this; } -_HTMLTag *_HTMLTag::autocomplete_cc_type() { +Ref<_HTMLTag> _HTMLTag::autocomplete_cc_type() { attrib("autocomplete", "cc-type"); return this; } -_HTMLTag *_HTMLTag::autocomplete_transaction_currency() { +Ref<_HTMLTag> _HTMLTag::autocomplete_transaction_currency() { attrib("autocomplete", "transaction-currency"); return this; } -_HTMLTag *_HTMLTag::autocomplete_transaction_amount() { +Ref<_HTMLTag> _HTMLTag::autocomplete_transaction_amount() { attrib("autocomplete", "transaction-amount"); return this; } -_HTMLTag *_HTMLTag::autocomplete_language() { +Ref<_HTMLTag> _HTMLTag::autocomplete_language() { attrib("autocomplete", "language"); return this; } -_HTMLTag *_HTMLTag::autocomplete_bday() { +Ref<_HTMLTag> _HTMLTag::autocomplete_bday() { attrib("autocomplete", "bday"); return this; } -_HTMLTag *_HTMLTag::autocomplete_bday_day() { +Ref<_HTMLTag> _HTMLTag::autocomplete_bday_day() { attrib("autocomplete", "bday-day"); return this; } -_HTMLTag *_HTMLTag::autocomplete_bday_month() { +Ref<_HTMLTag> _HTMLTag::autocomplete_bday_month() { attrib("autocomplete", "bday-month"); return this; } -_HTMLTag *_HTMLTag::autocomplete_bday_year() { +Ref<_HTMLTag> _HTMLTag::autocomplete_bday_year() { attrib("autocomplete", "bday-year"); return this; } -_HTMLTag *_HTMLTag::autocomplete_sex() { +Ref<_HTMLTag> _HTMLTag::autocomplete_sex() { attrib("autocomplete", "sex"); return this; } -_HTMLTag *_HTMLTag::autocomplete_tel() { +Ref<_HTMLTag> _HTMLTag::autocomplete_tel() { attrib("autocomplete", "tel"); return this; } -_HTMLTag *_HTMLTag::autocomplete_tel_country_code() { +Ref<_HTMLTag> _HTMLTag::autocomplete_tel_country_code() { attrib("autocomplete", "tel-country-code"); return this; } -_HTMLTag *_HTMLTag::autocomplete_tel_national() { +Ref<_HTMLTag> _HTMLTag::autocomplete_tel_national() { attrib("autocomplete", "tel-national"); return this; } -_HTMLTag *_HTMLTag::autocomplete_tel_area_code() { +Ref<_HTMLTag> _HTMLTag::autocomplete_tel_area_code() { attrib("autocomplete", "tel-area-code"); return this; } -_HTMLTag *_HTMLTag::autocomplete_tel_local() { +Ref<_HTMLTag> _HTMLTag::autocomplete_tel_local() { attrib("autocomplete", "tel-local"); return this; } -_HTMLTag *_HTMLTag::autocomplete_tel_extension() { +Ref<_HTMLTag> _HTMLTag::autocomplete_tel_extension() { attrib("autocomplete", "tel-extension"); return this; } -_HTMLTag *_HTMLTag::autocomplete_impp() { +Ref<_HTMLTag> _HTMLTag::autocomplete_impp() { attrib("autocomplete", "impp"); return this; } -_HTMLTag *_HTMLTag::autocomplete_url() { +Ref<_HTMLTag> _HTMLTag::autocomplete_url() { attrib("autocomplete", "url"); return this; } -_HTMLTag *_HTMLTag::autocomplete_photo() { +Ref<_HTMLTag> _HTMLTag::autocomplete_photo() { attrib("autocomplete", "photo"); return this; } -_HTMLTag *_HTMLTag::onclick(const String &val) { +Ref<_HTMLTag> _HTMLTag::onclick(const String &val) { attrib("onclick", val); return this; } -_HTMLTag *_HTMLTag::inputmode(const String &val) { +Ref<_HTMLTag> _HTMLTag::inputmode(const String &val) { attrib("inputmode", val); return this; } -_HTMLTag *_HTMLTag::list(const String &val) { +Ref<_HTMLTag> _HTMLTag::list(const String &val) { attrib("list", val); return this; } -_HTMLTag *_HTMLTag::checked(const bool val) { +Ref<_HTMLTag> _HTMLTag::checked(const bool val) { if (val) { result += " checked"; } @@ -383,7 +383,7 @@ _HTMLTag *_HTMLTag::checked(const bool val) { return this; } -_HTMLTag *_HTMLTag::selected(const bool val) { +Ref<_HTMLTag> _HTMLTag::selected(const bool val) { if (val) { result += " selected"; } @@ -391,7 +391,7 @@ _HTMLTag *_HTMLTag::selected(const bool val) { return this; } -_HTMLTag *_HTMLTag::autofocus(const bool val) { +Ref<_HTMLTag> _HTMLTag::autofocus(const bool val) { if (val) { result += " autofocus"; } @@ -399,7 +399,7 @@ _HTMLTag *_HTMLTag::autofocus(const bool val) { return this; } -_HTMLTag *_HTMLTag::disabled(const bool val) { +Ref<_HTMLTag> _HTMLTag::disabled(const bool val) { if (val) { result += " disabled"; } @@ -407,7 +407,7 @@ _HTMLTag *_HTMLTag::disabled(const bool val) { return this; } -_HTMLTag *_HTMLTag::multiple(const bool val) { +Ref<_HTMLTag> _HTMLTag::multiple(const bool val) { if (val) { result += " multiple"; } @@ -415,7 +415,7 @@ _HTMLTag *_HTMLTag::multiple(const bool val) { return this; } -_HTMLTag *_HTMLTag::required(const bool val) { +Ref<_HTMLTag> _HTMLTag::required(const bool val) { if (val) { result += " required"; } @@ -423,7 +423,7 @@ _HTMLTag *_HTMLTag::required(const bool val) { return this; } -_HTMLTag *_HTMLTag::spellcheck(const bool val) { +Ref<_HTMLTag> _HTMLTag::spellcheck(const bool val) { if (val) { attrib("spellcheck", "true"); } else { @@ -433,386 +433,386 @@ _HTMLTag *_HTMLTag::spellcheck(const bool val) { return this; } -_HTMLTag *_HTMLTag::max(const String &val) { +Ref<_HTMLTag> _HTMLTag::max(const String &val) { attrib("max", val); return this; } -_HTMLTag *_HTMLTag::min(const String &val) { +Ref<_HTMLTag> _HTMLTag::min(const String &val) { attrib("min", val); return this; } -_HTMLTag *_HTMLTag::step(const String &val) { +Ref<_HTMLTag> _HTMLTag::step(const String &val) { attrib("step", val); return this; } -_HTMLTag *_HTMLTag::step_any() { +Ref<_HTMLTag> _HTMLTag::step_any() { attrib("step", "any"); return this; } -_HTMLTag *_HTMLTag::minlength(const int val) { +Ref<_HTMLTag> _HTMLTag::minlength(const int val) { attrib("minlength", String::num(val)); return this; } -_HTMLTag *_HTMLTag::minlength(const String &val) { +Ref<_HTMLTag> _HTMLTag::minlength(const String &val) { attrib("minlength", val); return this; } -_HTMLTag *_HTMLTag::maxlength(const int val) { +Ref<_HTMLTag> _HTMLTag::maxlength(const int val) { attrib("maxlength", String::num(val)); return this; } -_HTMLTag *_HTMLTag::maxlength(const String &val) { +Ref<_HTMLTag> _HTMLTag::maxlength(const String &val) { attrib("maxlength", val); return this; } -_HTMLTag *_HTMLTag::size(const int val) { +Ref<_HTMLTag> _HTMLTag::size(const int val) { attrib("size", String::num(val)); return this; } -_HTMLTag *_HTMLTag::size(const String &val) { +Ref<_HTMLTag> _HTMLTag::size(const String &val) { attrib("size", val); return this; } -_HTMLTag *_HTMLTag::width(const int val) { +Ref<_HTMLTag> _HTMLTag::width(const int val) { attrib("width", String::num(val)); return this; } -_HTMLTag *_HTMLTag::width(const String &val) { +Ref<_HTMLTag> _HTMLTag::width(const String &val) { attrib("width", val); return this; } -_HTMLTag *_HTMLTag::height(const int val) { +Ref<_HTMLTag> _HTMLTag::height(const int val) { attrib("height", String::num(val)); return this; } -_HTMLTag *_HTMLTag::height(const String &val) { +Ref<_HTMLTag> _HTMLTag::height(const String &val) { attrib("height", val); return this; } -_HTMLTag *_HTMLTag::pattern(const String &val) { +Ref<_HTMLTag> _HTMLTag::pattern(const String &val) { attrib("pattern", val); return this; } -_HTMLTag *_HTMLTag::method(const String &val) { +Ref<_HTMLTag> _HTMLTag::method(const String &val) { attrib("method", val); return this; } -_HTMLTag *_HTMLTag::method_get() { +Ref<_HTMLTag> _HTMLTag::method_get() { attrib("method", "get"); return this; } -_HTMLTag *_HTMLTag::method_post() { +Ref<_HTMLTag> _HTMLTag::method_post() { attrib("method", "post"); return this; } -_HTMLTag *_HTMLTag::action(const String &val) { +Ref<_HTMLTag> _HTMLTag::action(const String &val) { attrib("action", val); return this; } -_HTMLTag *_HTMLTag::type(const String &val) { +Ref<_HTMLTag> _HTMLTag::type(const String &val) { attrib("type", val); return this; } -_HTMLTag *_HTMLTag::placeholder(const String &val) { +Ref<_HTMLTag> _HTMLTag::placeholder(const String &val) { attrib("placeholder", val); return this; } -_HTMLTag *_HTMLTag::fora(const String &val) { +Ref<_HTMLTag> _HTMLTag::fora(const String &val) { attrib("for", val); return this; } -_HTMLTag *_HTMLTag::rel(const String &val) { +Ref<_HTMLTag> _HTMLTag::rel(const String &val) { attrib("rel", val); return this; } -_HTMLTag *_HTMLTag::rel_stylesheet() { +Ref<_HTMLTag> _HTMLTag::rel_stylesheet() { attrib("rel", "stylesheet"); return this; } -_HTMLTag *_HTMLTag::rel_alternate() { +Ref<_HTMLTag> _HTMLTag::rel_alternate() { attrib("rel", "alternate"); return this; } -_HTMLTag *_HTMLTag::rel_author() { +Ref<_HTMLTag> _HTMLTag::rel_author() { attrib("rel", "author"); return this; } -_HTMLTag *_HTMLTag::rel_bookmark() { +Ref<_HTMLTag> _HTMLTag::rel_bookmark() { attrib("rel", "bookmark"); return this; } -_HTMLTag *_HTMLTag::rel_external() { +Ref<_HTMLTag> _HTMLTag::rel_external() { attrib("rel", "external"); return this; } -_HTMLTag *_HTMLTag::rel_help() { +Ref<_HTMLTag> _HTMLTag::rel_help() { attrib("rel", "help"); return this; } -_HTMLTag *_HTMLTag::rel_next() { +Ref<_HTMLTag> _HTMLTag::rel_next() { attrib("rel", "next"); return this; } -_HTMLTag *_HTMLTag::rel_nofollow() { +Ref<_HTMLTag> _HTMLTag::rel_nofollow() { attrib("rel", "nofollow"); return this; } -_HTMLTag *_HTMLTag::rel_noopener() { +Ref<_HTMLTag> _HTMLTag::rel_noopener() { attrib("rel", "noopener"); return this; } -_HTMLTag *_HTMLTag::rel_noreferrer() { +Ref<_HTMLTag> _HTMLTag::rel_noreferrer() { attrib("rel", "noreferrer"); return this; } -_HTMLTag *_HTMLTag::rel_prev() { +Ref<_HTMLTag> _HTMLTag::rel_prev() { attrib("rel", "prev"); return this; } -_HTMLTag *_HTMLTag::rel_search() { +Ref<_HTMLTag> _HTMLTag::rel_search() { attrib("rel", "search"); return this; } -_HTMLTag *_HTMLTag::rel_tag() { +Ref<_HTMLTag> _HTMLTag::rel_tag() { attrib("rel", "tag"); return this; } -_HTMLTag *_HTMLTag::charset(const String &val) { +Ref<_HTMLTag> _HTMLTag::charset(const String &val) { attrib("charset", val); return this; } -_HTMLTag *_HTMLTag::charset_utf_8() { +Ref<_HTMLTag> _HTMLTag::charset_utf_8() { attrib("charset", "utf-8"); return this; } -_HTMLTag *_HTMLTag::itbutton() { +Ref<_HTMLTag> _HTMLTag::itbutton() { attrib("type", "button"); return this; } -_HTMLTag *_HTMLTag::itcheckbox() { +Ref<_HTMLTag> _HTMLTag::itcheckbox() { attrib("type", "checkbox"); return this; } -_HTMLTag *_HTMLTag::itcolor() { +Ref<_HTMLTag> _HTMLTag::itcolor() { attrib("type", "color"); return this; } -_HTMLTag *_HTMLTag::itdate() { +Ref<_HTMLTag> _HTMLTag::itdate() { attrib("type", "date"); return this; } -_HTMLTag *_HTMLTag::itdatetime_local() { +Ref<_HTMLTag> _HTMLTag::itdatetime_local() { attrib("type", "datetime_local"); return this; } -_HTMLTag *_HTMLTag::itemail() { +Ref<_HTMLTag> _HTMLTag::itemail() { attrib("type", "email"); return this; } -_HTMLTag *_HTMLTag::itfile() { +Ref<_HTMLTag> _HTMLTag::itfile() { attrib("type", "file"); return this; } -_HTMLTag *_HTMLTag::ithidden() { +Ref<_HTMLTag> _HTMLTag::ithidden() { attrib("type", "hidden"); return this; } -_HTMLTag *_HTMLTag::itimage() { +Ref<_HTMLTag> _HTMLTag::itimage() { attrib("type", "image"); return this; } -_HTMLTag *_HTMLTag::itmonth() { +Ref<_HTMLTag> _HTMLTag::itmonth() { attrib("type", "month"); return this; } -_HTMLTag *_HTMLTag::itnumber() { +Ref<_HTMLTag> _HTMLTag::itnumber() { attrib("type", "number"); return this; } -_HTMLTag *_HTMLTag::itpassword() { +Ref<_HTMLTag> _HTMLTag::itpassword() { attrib("type", "password"); return this; } -_HTMLTag *_HTMLTag::itradio() { +Ref<_HTMLTag> _HTMLTag::itradio() { attrib("type", "radio"); return this; } -_HTMLTag *_HTMLTag::itrange() { +Ref<_HTMLTag> _HTMLTag::itrange() { attrib("type", "range"); return this; } -_HTMLTag *_HTMLTag::itreset() { +Ref<_HTMLTag> _HTMLTag::itreset() { attrib("type", "reset"); return this; } -_HTMLTag *_HTMLTag::itsearch() { +Ref<_HTMLTag> _HTMLTag::itsearch() { attrib("type", "search"); return this; } -_HTMLTag *_HTMLTag::itsubmit() { +Ref<_HTMLTag> _HTMLTag::itsubmit() { attrib("type", "submit"); return this; } -_HTMLTag *_HTMLTag::ittel() { +Ref<_HTMLTag> _HTMLTag::ittel() { attrib("type", "tel"); return this; } -_HTMLTag *_HTMLTag::ittext() { +Ref<_HTMLTag> _HTMLTag::ittext() { attrib("type", "text"); return this; } -_HTMLTag *_HTMLTag::ittime() { +Ref<_HTMLTag> _HTMLTag::ittime() { attrib("type", "time"); return this; } -_HTMLTag *_HTMLTag::iturl() { +Ref<_HTMLTag> _HTMLTag::iturl() { attrib("type", "url"); return this; } -_HTMLTag *_HTMLTag::itweek() { +Ref<_HTMLTag> _HTMLTag::itweek() { attrib("type", "week"); return this; } -_HTMLTag *_HTMLTag::inputmode_none() { +Ref<_HTMLTag> _HTMLTag::inputmode_none() { attrib("inputmode", "none"); return this; } -_HTMLTag *_HTMLTag::inputmode_text() { +Ref<_HTMLTag> _HTMLTag::inputmode_text() { attrib("inputmode", "text"); return this; } -_HTMLTag *_HTMLTag::inputmode_decimal() { +Ref<_HTMLTag> _HTMLTag::inputmode_decimal() { attrib("inputmode", "decimal"); return this; } -_HTMLTag *_HTMLTag::inputmode_numeric() { +Ref<_HTMLTag> _HTMLTag::inputmode_numeric() { attrib("inputmode", "numeric"); return this; } -_HTMLTag *_HTMLTag::inputmode_tel() { +Ref<_HTMLTag> _HTMLTag::inputmode_tel() { attrib("inputmode", "tel"); return this; } -_HTMLTag *_HTMLTag::inputmode_search() { +Ref<_HTMLTag> _HTMLTag::inputmode_search() { attrib("inputmode", "search"); return this; } -_HTMLTag *_HTMLTag::inputmode_email() { +Ref<_HTMLTag> _HTMLTag::inputmode_email() { attrib("inputmode", "email"); return this; } -_HTMLTag *_HTMLTag::inputmode_url() { +Ref<_HTMLTag> _HTMLTag::inputmode_url() { attrib("inputmode", "url"); return this; } -_HTMLTag *_HTMLTag::attrib(const String &attr, const String &val) { +Ref<_HTMLTag> _HTMLTag::attrib(const String &attr, const String &val) { result += " " + attr + "=\"" + val + "\""; return this; } -_HTMLTag *_HTMLTag::start(const String &p_tag, const bool p_simple) { +Ref<_HTMLTag> _HTMLTag::start(const String &p_tag, const bool p_simple) { simple = p_simple; result = "<" + p_tag; @@ -820,22 +820,23 @@ _HTMLTag *_HTMLTag::start(const String &p_tag, const bool p_simple) { return this; } -_HTMLTag *_HTMLTag::reset() { +Ref<_HTMLTag> _HTMLTag::reset() { result.clear(); return this; } -_HTMLTag *_HTMLTag::close() { - if (simple) +Ref<_HTMLTag> _HTMLTag::close() { + if (simple) { result += "/>"; - else + } else { result += ">"; + } return this; } -_HTMLBuilder *_HTMLTag::f() { +Ref<_HTMLBuilder> _HTMLTag::f() { return owner; } @@ -845,14 +846,13 @@ bool _HTMLTag::has_data() { _HTMLTag::_HTMLTag() { simple = true; - owner = nullptr; } void _HTMLTag::_bind_methods() { ClassDB::bind_method(D_METHOD("style", "val"), &_HTMLTag::style); } -_HTMLBuilder *_HTMLBuilder::comment(const String &val) { +Ref<_HTMLBuilder> _HTMLBuilder::comment(const String &val) { write_tag(); result += ""; @@ -860,13 +860,13 @@ _HTMLBuilder *_HTMLBuilder::comment(const String &val) { return this; } -_HTMLTag *_HTMLBuilder::doctype() { +Ref<_HTMLTag> _HTMLBuilder::doctype() { write_tag(); - return tag.start("!DOCTYPE"); + return tag->start("!DOCTYPE"); } -_HTMLBuilder *_HTMLBuilder::doctype(const String &val) { +Ref<_HTMLBuilder> _HTMLBuilder::doctype(const String &val) { write_tag(); result += ""; @@ -874,732 +874,732 @@ _HTMLBuilder *_HTMLBuilder::doctype(const String &val) { return this; } -_HTMLTag *_HTMLBuilder::a() { +Ref<_HTMLTag> _HTMLBuilder::a() { write_tag(); - return tag.start("a"); + return tag->start("a"); } -_HTMLTag *_HTMLBuilder::abbr() { +Ref<_HTMLTag> _HTMLBuilder::abbr() { write_tag(); - return tag.start("abbr"); + return tag->start("abbr"); } -_HTMLTag *_HTMLBuilder::acronym() { // Not supported in HTML5. Use instead. Defines an acronym +Ref<_HTMLTag> _HTMLBuilder::acronym() { // Not supported in HTML5. Use instead. Defines an acronym write_tag(); - return tag.start("acronym"); + return tag->start("acronym"); } -_HTMLTag *_HTMLBuilder::address() { +Ref<_HTMLTag> _HTMLBuilder::address() { write_tag(); - return tag.start("address"); + return tag->start("address"); } -_HTMLTag *_HTMLBuilder::applet() { // Not supported in HTML5. Use or instead. Defines an embedded applet +Ref<_HTMLTag> _HTMLBuilder::applet() { // Not supported in HTML5. Use or instead. Defines an embedded applet write_tag(); - return tag.start("applet"); + return tag->start("applet"); } -_HTMLTag *_HTMLBuilder::area() { +Ref<_HTMLTag> _HTMLBuilder::area() { write_tag(); - return tag.start("area"); + return tag->start("area"); } -_HTMLTag *_HTMLBuilder::article() { +Ref<_HTMLTag> _HTMLBuilder::article() { write_tag(); - return tag.start("article"); + return tag->start("article"); } -_HTMLTag *_HTMLBuilder::aside() { +Ref<_HTMLTag> _HTMLBuilder::aside() { write_tag(); - return tag.start("aside"); + return tag->start("aside"); } -_HTMLTag *_HTMLBuilder::audio() { +Ref<_HTMLTag> _HTMLBuilder::audio() { write_tag(); - return tag.start("audio"); + return tag->start("audio"); } -_HTMLTag *_HTMLBuilder::b() { +Ref<_HTMLTag> _HTMLBuilder::b() { write_tag(); - return tag.start("b"); + return tag->start("b"); } -_HTMLTag *_HTMLBuilder::basefont() { // Not supported in HTML5. Use CSS instead. Specifies a default color, size, and font for all text in a document +Ref<_HTMLTag> _HTMLBuilder::basefont() { // Not supported in HTML5. Use CSS instead. Specifies a default color, size, and font for all text in a document write_tag(); - return tag.start("basefont"); + return tag->start("basefont"); } -_HTMLTag *_HTMLBuilder::bdi() { +Ref<_HTMLTag> _HTMLBuilder::bdi() { write_tag(); - return tag.start("bdi"); + return tag->start("bdi"); } -_HTMLTag *_HTMLBuilder::bdo() { +Ref<_HTMLTag> _HTMLBuilder::bdo() { write_tag(); - return tag.start("bdo"); + return tag->start("bdo"); } -_HTMLTag *_HTMLBuilder::big() { // Not supported in HTML5. Use CSS instead. Defines big text +Ref<_HTMLTag> _HTMLBuilder::big() { // Not supported in HTML5. Use CSS instead. Defines big text write_tag(); - return tag.start("big"); + return tag->start("big"); } -_HTMLTag *_HTMLBuilder::blockquote() { +Ref<_HTMLTag> _HTMLBuilder::blockquote() { write_tag(); - return tag.start("blockquote"); + return tag->start("blockquote"); } -_HTMLTag *_HTMLBuilder::body() { +Ref<_HTMLTag> _HTMLBuilder::body() { write_tag(); - return tag.start("body"); + return tag->start("body"); } -_HTMLTag *_HTMLBuilder::br() { +Ref<_HTMLTag> _HTMLBuilder::br() { write_tag(); - return tag.start("br", true); + return tag->start("br", true); } -_HTMLTag *_HTMLBuilder::button() { +Ref<_HTMLTag> _HTMLBuilder::button() { write_tag(); - return tag.start("button"); + return tag->start("button"); } -_HTMLTag *_HTMLBuilder::canvas() { +Ref<_HTMLTag> _HTMLBuilder::canvas() { write_tag(); - return tag.start("canvas"); + return tag->start("canvas"); } -_HTMLTag *_HTMLBuilder::caption() { +Ref<_HTMLTag> _HTMLBuilder::caption() { write_tag(); - return tag.start("caption"); + return tag->start("caption"); } -_HTMLTag *_HTMLBuilder::center() { // Not supported in HTML5. Use CSS instead. Defines centered text +Ref<_HTMLTag> _HTMLBuilder::center() { // Not supported in HTML5. Use CSS instead. Defines centered text write_tag(); - return tag.start("center"); + return tag->start("center"); } -_HTMLTag *_HTMLBuilder::cite() { +Ref<_HTMLTag> _HTMLBuilder::cite() { write_tag(); - return tag.start("cite"); + return tag->start("cite"); } -_HTMLTag *_HTMLBuilder::code() { +Ref<_HTMLTag> _HTMLBuilder::code() { write_tag(); - return tag.start("code"); + return tag->start("code"); } -_HTMLTag *_HTMLBuilder::col() { +Ref<_HTMLTag> _HTMLBuilder::col() { write_tag(); - return tag.start("col"); + return tag->start("col"); } -_HTMLTag *_HTMLBuilder::colgroup() { +Ref<_HTMLTag> _HTMLBuilder::colgroup() { write_tag(); - return tag.start("colgroup"); + return tag->start("colgroup"); } -_HTMLTag *_HTMLBuilder::data() { +Ref<_HTMLTag> _HTMLBuilder::data() { write_tag(); - return tag.start("cite"); + return tag->start("cite"); } -_HTMLTag *_HTMLBuilder::datalist() { +Ref<_HTMLTag> _HTMLBuilder::datalist() { write_tag(); - return tag.start("datalist"); + return tag->start("datalist"); } -_HTMLTag *_HTMLBuilder::dd() { +Ref<_HTMLTag> _HTMLBuilder::dd() { write_tag(); - return tag.start("dd"); + return tag->start("dd"); } -_HTMLTag *_HTMLBuilder::del() { +Ref<_HTMLTag> _HTMLBuilder::del() { write_tag(); - return tag.start("del"); + return tag->start("del"); } -_HTMLTag *_HTMLBuilder::details() { +Ref<_HTMLTag> _HTMLBuilder::details() { write_tag(); - return tag.start("details"); + return tag->start("details"); } -_HTMLTag *_HTMLBuilder::dfn() { +Ref<_HTMLTag> _HTMLBuilder::dfn() { write_tag(); - return tag.start("dfn"); + return tag->start("dfn"); } -_HTMLTag *_HTMLBuilder::dialog() { +Ref<_HTMLTag> _HTMLBuilder::dialog() { write_tag(); - return tag.start("dialog"); + return tag->start("dialog"); } -_HTMLTag *_HTMLBuilder::dir() { // Not supported in HTML5. Use
    instead. +Ref<_HTMLTag> _HTMLBuilder::dir() { // Not supported in HTML5. Use
      instead. write_tag(); - return tag.start("dir"); + return tag->start("dir"); } -_HTMLTag *_HTMLBuilder::div() { +Ref<_HTMLTag> _HTMLBuilder::div() { write_tag(); - return tag.start("div"); + return tag->start("div"); } -_HTMLTag *_HTMLBuilder::dl() { +Ref<_HTMLTag> _HTMLBuilder::dl() { write_tag(); - return tag.start("dl"); + return tag->start("dl"); } -_HTMLTag *_HTMLBuilder::dt() { +Ref<_HTMLTag> _HTMLBuilder::dt() { write_tag(); - return tag.start("dt"); + return tag->start("dt"); } -_HTMLTag *_HTMLBuilder::em() { +Ref<_HTMLTag> _HTMLBuilder::em() { write_tag(); - return tag.start("em"); + return tag->start("em"); } -_HTMLTag *_HTMLBuilder::embed() { +Ref<_HTMLTag> _HTMLBuilder::embed() { write_tag(); - return tag.start("embed"); + return tag->start("embed"); } -_HTMLTag *_HTMLBuilder::fieldset() { +Ref<_HTMLTag> _HTMLBuilder::fieldset() { write_tag(); - return tag.start("fieldset"); + return tag->start("fieldset"); } -_HTMLTag *_HTMLBuilder::figcaption() { +Ref<_HTMLTag> _HTMLBuilder::figcaption() { write_tag(); - return tag.start("figcaption"); + return tag->start("figcaption"); } -_HTMLTag *_HTMLBuilder::figure() { +Ref<_HTMLTag> _HTMLBuilder::figure() { write_tag(); - return tag.start("figure"); + return tag->start("figure"); } -_HTMLTag *_HTMLBuilder::font() { // Not supported in HTML5. +Ref<_HTMLTag> _HTMLBuilder::font() { // Not supported in HTML5. write_tag(); - return tag.start("font"); + return tag->start("font"); } -_HTMLTag *_HTMLBuilder::footer() { +Ref<_HTMLTag> _HTMLBuilder::footer() { write_tag(); - return tag.start("footer"); + return tag->start("footer"); } -_HTMLTag *_HTMLBuilder::form() { +Ref<_HTMLTag> _HTMLBuilder::form() { write_tag(); - return tag.start("form"); + return tag->start("form"); } -_HTMLTag *_HTMLBuilder::frame() { // Not supported in HTML5. +Ref<_HTMLTag> _HTMLBuilder::frame() { // Not supported in HTML5. write_tag(); - return tag.start("frame"); + return tag->start("frame"); } -_HTMLTag *_HTMLBuilder::frameset() { // Not supported in HTML5. +Ref<_HTMLTag> _HTMLBuilder::frameset() { // Not supported in HTML5. write_tag(); - return tag.start("frameset"); + return tag->start("frameset"); } -_HTMLTag *_HTMLBuilder::h1() { +Ref<_HTMLTag> _HTMLBuilder::h1() { write_tag(); - return tag.start("h1"); + return tag->start("h1"); } -_HTMLTag *_HTMLBuilder::h2() { +Ref<_HTMLTag> _HTMLBuilder::h2() { write_tag(); - return tag.start("h2"); + return tag->start("h2"); } -_HTMLTag *_HTMLBuilder::h3() { +Ref<_HTMLTag> _HTMLBuilder::h3() { write_tag(); - return tag.start("h3"); + return tag->start("h3"); } -_HTMLTag *_HTMLBuilder::h4() { +Ref<_HTMLTag> _HTMLBuilder::h4() { write_tag(); - return tag.start("h4"); + return tag->start("h4"); } -_HTMLTag *_HTMLBuilder::h5() { +Ref<_HTMLTag> _HTMLBuilder::h5() { write_tag(); - return tag.start("h5"); + return tag->start("h5"); } -_HTMLTag *_HTMLBuilder::h6() { +Ref<_HTMLTag> _HTMLBuilder::h6() { write_tag(); - return tag.start("h6"); + return tag->start("h6"); } -_HTMLTag *_HTMLBuilder::head() { +Ref<_HTMLTag> _HTMLBuilder::head() { write_tag(); - return tag.start("head"); + return tag->start("head"); } -_HTMLTag *_HTMLBuilder::header() { +Ref<_HTMLTag> _HTMLBuilder::header() { write_tag(); - return tag.start("header"); + return tag->start("header"); } -_HTMLTag *_HTMLBuilder::hr() { +Ref<_HTMLTag> _HTMLBuilder::hr() { write_tag(); - return tag.start("hr"); + return tag->start("hr"); } -_HTMLTag *_HTMLBuilder::html() { +Ref<_HTMLTag> _HTMLBuilder::html() { write_tag(); - return tag.start("html"); + return tag->start("html"); } -_HTMLTag *_HTMLBuilder::i() { +Ref<_HTMLTag> _HTMLBuilder::i() { write_tag(); - return tag.start("i"); + return tag->start("i"); } -_HTMLTag *_HTMLBuilder::iframe() { +Ref<_HTMLTag> _HTMLBuilder::iframe() { write_tag(); - return tag.start("iframe"); + return tag->start("iframe"); } -_HTMLTag *_HTMLBuilder::img() { +Ref<_HTMLTag> _HTMLBuilder::img() { write_tag(); - return tag.start("img"); + return tag->start("img"); } -_HTMLTag *_HTMLBuilder::input() { +Ref<_HTMLTag> _HTMLBuilder::input() { write_tag(); - return tag.start("input"); + return tag->start("input"); } -_HTMLTag *_HTMLBuilder::ins() { +Ref<_HTMLTag> _HTMLBuilder::ins() { write_tag(); - return tag.start("ins"); + return tag->start("ins"); } -_HTMLTag *_HTMLBuilder::kbd() { +Ref<_HTMLTag> _HTMLBuilder::kbd() { write_tag(); - return tag.start("kbd"); + return tag->start("kbd"); } -_HTMLTag *_HTMLBuilder::label() { +Ref<_HTMLTag> _HTMLBuilder::label() { write_tag(); - return tag.start("label"); + return tag->start("label"); } -_HTMLTag *_HTMLBuilder::legend() { +Ref<_HTMLTag> _HTMLBuilder::legend() { write_tag(); - return tag.start("legend"); + return tag->start("legend"); } -_HTMLTag *_HTMLBuilder::li() { +Ref<_HTMLTag> _HTMLBuilder::li() { write_tag(); - return tag.start("li"); + return tag->start("li"); } -_HTMLTag *_HTMLBuilder::link() { +Ref<_HTMLTag> _HTMLBuilder::link() { write_tag(); - return tag.start("link"); + return tag->start("link"); } -_HTMLTag *_HTMLBuilder::main() { +Ref<_HTMLTag> _HTMLBuilder::main() { write_tag(); - return tag.start("main"); + return tag->start("main"); } -_HTMLTag *_HTMLBuilder::map() { +Ref<_HTMLTag> _HTMLBuilder::map() { write_tag(); - return tag.start("map"); + return tag->start("map"); } -_HTMLTag *_HTMLBuilder::mark() { +Ref<_HTMLTag> _HTMLBuilder::mark() { write_tag(); - return tag.start("mark"); + return tag->start("mark"); } -_HTMLTag *_HTMLBuilder::meta() { +Ref<_HTMLTag> _HTMLBuilder::meta() { write_tag(); - return tag.start("meta"); + return tag->start("meta"); } -_HTMLTag *_HTMLBuilder::meter() { +Ref<_HTMLTag> _HTMLBuilder::meter() { write_tag(); - return tag.start("meter"); + return tag->start("meter"); } -_HTMLTag *_HTMLBuilder::nav() { +Ref<_HTMLTag> _HTMLBuilder::nav() { write_tag(); - return tag.start("nav"); + return tag->start("nav"); } -_HTMLTag *_HTMLBuilder::noframes() { // Not supported in HTML5. +Ref<_HTMLTag> _HTMLBuilder::noframes() { // Not supported in HTML5. write_tag(); - return tag.start("noframes"); + return tag->start("noframes"); } -_HTMLTag *_HTMLBuilder::noscript() { +Ref<_HTMLTag> _HTMLBuilder::noscript() { write_tag(); - return tag.start("noscript"); + return tag->start("noscript"); } -_HTMLTag *_HTMLBuilder::object() { +Ref<_HTMLTag> _HTMLBuilder::object() { write_tag(); - return tag.start("object"); + return tag->start("object"); } -_HTMLTag *_HTMLBuilder::ol() { +Ref<_HTMLTag> _HTMLBuilder::ol() { write_tag(); - return tag.start("ol"); + return tag->start("ol"); } -_HTMLTag *_HTMLBuilder::optgroup() { +Ref<_HTMLTag> _HTMLBuilder::optgroup() { write_tag(); - return tag.start("optgroup"); + return tag->start("optgroup"); } -_HTMLTag *_HTMLBuilder::option() { +Ref<_HTMLTag> _HTMLBuilder::option() { write_tag(); - return tag.start("option"); + return tag->start("option"); } -_HTMLTag *_HTMLBuilder::output() { +Ref<_HTMLTag> _HTMLBuilder::output() { write_tag(); - return tag.start("output"); + return tag->start("output"); } -_HTMLTag *_HTMLBuilder::p() { +Ref<_HTMLTag> _HTMLBuilder::p() { write_tag(); - return tag.start("p"); + return tag->start("p"); } -_HTMLTag *_HTMLBuilder::param() { +Ref<_HTMLTag> _HTMLBuilder::param() { write_tag(); - return tag.start("param"); + return tag->start("param"); } -_HTMLTag *_HTMLBuilder::picture() { +Ref<_HTMLTag> _HTMLBuilder::picture() { write_tag(); - return tag.start("picture"); + return tag->start("picture"); } -_HTMLTag *_HTMLBuilder::pre() { +Ref<_HTMLTag> _HTMLBuilder::pre() { write_tag(); - return tag.start("pre"); + return tag->start("pre"); } -_HTMLTag *_HTMLBuilder::progress() { +Ref<_HTMLTag> _HTMLBuilder::progress() { write_tag(); - return tag.start("progress"); + return tag->start("progress"); } -_HTMLTag *_HTMLBuilder::q() { +Ref<_HTMLTag> _HTMLBuilder::q() { write_tag(); - return tag.start("q"); + return tag->start("q"); } -_HTMLTag *_HTMLBuilder::rp() { +Ref<_HTMLTag> _HTMLBuilder::rp() { write_tag(); - return tag.start("rp"); + return tag->start("rp"); } -_HTMLTag *_HTMLBuilder::rt() { +Ref<_HTMLTag> _HTMLBuilder::rt() { write_tag(); - return tag.start("rt"); + return tag->start("rt"); } -_HTMLTag *_HTMLBuilder::ruby() { +Ref<_HTMLTag> _HTMLBuilder::ruby() { write_tag(); - return tag.start("ruby"); + return tag->start("ruby"); } -_HTMLTag *_HTMLBuilder::s() { +Ref<_HTMLTag> _HTMLBuilder::s() { write_tag(); - return tag.start("s"); + return tag->start("s"); } -_HTMLTag *_HTMLBuilder::samp() { +Ref<_HTMLTag> _HTMLBuilder::samp() { write_tag(); - return tag.start("samp"); + return tag->start("samp"); } -_HTMLTag *_HTMLBuilder::script() { +Ref<_HTMLTag> _HTMLBuilder::script() { write_tag(); - return tag.start("script"); + return tag->start("script"); } -_HTMLTag *_HTMLBuilder::section() { +Ref<_HTMLTag> _HTMLBuilder::section() { write_tag(); - return tag.start("section"); + return tag->start("section"); } -_HTMLTag *_HTMLBuilder::select() { +Ref<_HTMLTag> _HTMLBuilder::select() { write_tag(); - return tag.start("select"); + return tag->start("select"); } -_HTMLTag *_HTMLBuilder::small() { +Ref<_HTMLTag> _HTMLBuilder::small() { write_tag(); - return tag.start("small"); + return tag->start("small"); } -_HTMLTag *_HTMLBuilder::source() { +Ref<_HTMLTag> _HTMLBuilder::source() { write_tag(); - return tag.start("source"); + return tag->start("source"); } -_HTMLTag *_HTMLBuilder::span() { +Ref<_HTMLTag> _HTMLBuilder::span() { write_tag(); - return tag.start("span"); + return tag->start("span"); } -_HTMLTag *_HTMLBuilder::strike() { // Not supported in HTML5 +Ref<_HTMLTag> _HTMLBuilder::strike() { // Not supported in HTML5 write_tag(); - return tag.start("strike"); + return tag->start("strike"); } -_HTMLTag *_HTMLBuilder::strong() { +Ref<_HTMLTag> _HTMLBuilder::strong() { write_tag(); - return tag.start("strong"); + return tag->start("strong"); } -_HTMLTag *_HTMLBuilder::style() { +Ref<_HTMLTag> _HTMLBuilder::style() { write_tag(); - return tag.start("style"); + return tag->start("style"); } -_HTMLTag *_HTMLBuilder::sub() { +Ref<_HTMLTag> _HTMLBuilder::sub() { write_tag(); - return tag.start("sub"); + return tag->start("sub"); } -_HTMLTag *_HTMLBuilder::summary() { +Ref<_HTMLTag> _HTMLBuilder::summary() { write_tag(); - return tag.start("summary"); + return tag->start("summary"); } -_HTMLTag *_HTMLBuilder::sup() { +Ref<_HTMLTag> _HTMLBuilder::sup() { write_tag(); - return tag.start("sup"); + return tag->start("sup"); } -_HTMLTag *_HTMLBuilder::svg() { +Ref<_HTMLTag> _HTMLBuilder::svg() { write_tag(); - return tag.start("svg"); + return tag->start("svg"); } -_HTMLTag *_HTMLBuilder::table() { +Ref<_HTMLTag> _HTMLBuilder::table() { write_tag(); - return tag.start("table"); + return tag->start("table"); } -_HTMLTag *_HTMLBuilder::tbody() { +Ref<_HTMLTag> _HTMLBuilder::tbody() { write_tag(); - return tag.start("tbody"); + return tag->start("tbody"); } -_HTMLTag *_HTMLBuilder::td() { +Ref<_HTMLTag> _HTMLBuilder::td() { write_tag(); - return tag.start("td"); + return tag->start("td"); } -_HTMLTag *_HTMLBuilder::templateh() { +Ref<_HTMLTag> _HTMLBuilder::templateh() { write_tag(); - return tag.start("template"); + return tag->start("template"); } -_HTMLTag *_HTMLBuilder::textarea() { +Ref<_HTMLTag> _HTMLBuilder::textarea() { write_tag(); - return tag.start("textarea"); + return tag->start("textarea"); } -_HTMLTag *_HTMLBuilder::tfoot() { +Ref<_HTMLTag> _HTMLBuilder::tfoot() { write_tag(); - return tag.start("tfoot"); + return tag->start("tfoot"); } -_HTMLTag *_HTMLBuilder::th() { +Ref<_HTMLTag> _HTMLBuilder::th() { write_tag(); - return tag.start("th"); + return tag->start("th"); } -_HTMLTag *_HTMLBuilder::thead() { +Ref<_HTMLTag> _HTMLBuilder::thead() { write_tag(); - return tag.start("thead"); + return tag->start("thead"); } -_HTMLTag *_HTMLBuilder::time() { +Ref<_HTMLTag> _HTMLBuilder::time() { write_tag(); - return tag.start("time"); + return tag->start("time"); } -_HTMLTag *_HTMLBuilder::title() { +Ref<_HTMLTag> _HTMLBuilder::title() { write_tag(); - return tag.start("title"); + return tag->start("title"); } -_HTMLTag *_HTMLBuilder::tr() { +Ref<_HTMLTag> _HTMLBuilder::tr() { write_tag(); - return tag.start("tr"); + return tag->start("tr"); } -_HTMLTag *_HTMLBuilder::track() { +Ref<_HTMLTag> _HTMLBuilder::track() { write_tag(); - return tag.start("track"); + return tag->start("track"); } -_HTMLTag *_HTMLBuilder::tt() { // Not supported in HTML5. +Ref<_HTMLTag> _HTMLBuilder::tt() { // Not supported in HTML5. write_tag(); - return tag.start("tt"); + return tag->start("tt"); } -_HTMLTag *_HTMLBuilder::u() { +Ref<_HTMLTag> _HTMLBuilder::u() { write_tag(); - return tag.start("u"); + return tag->start("u"); } -_HTMLTag *_HTMLBuilder::ul() { +Ref<_HTMLTag> _HTMLBuilder::ul() { write_tag(); - return tag.start("ul"); + return tag->start("ul"); } -_HTMLTag *_HTMLBuilder::var() { +Ref<_HTMLTag> _HTMLBuilder::var() { write_tag(); - return tag.start("var"); + return tag->start("var"); } -_HTMLTag *_HTMLBuilder::video() { +Ref<_HTMLTag> _HTMLBuilder::video() { write_tag(); - return tag.start("video"); + return tag->start("video"); } -_HTMLTag *_HTMLBuilder::wbr() { +Ref<_HTMLTag> _HTMLBuilder::wbr() { write_tag(); - return tag.start("wbr"); + return tag->start("wbr"); } -//_HTMLBuilder *_HTMLBuilder::a(const String &href, const String &cls, const String &id) { +//Ref<_HTMLBuilder> _HTMLBuilder::a(const String &href, const String &cls, const String &id) { /* - _HTMLTag *t = a(); + Ref<_HTMLTag> t = a(); t->href(href); @@ -1614,7 +1614,7 @@ _HTMLTag *_HTMLBuilder::wbr() { // return this; //} -_HTMLBuilder *_HTMLBuilder::fa(const String &href, const String &body, const String &cls, const String &id) { +Ref<_HTMLBuilder> _HTMLBuilder::fa(const String &href, const String &body, const String &cls, const String &id) { //a(href, cls, id); w(body); ca(); @@ -1622,8 +1622,8 @@ _HTMLBuilder *_HTMLBuilder::fa(const String &href, const String &body, const Str return this; } -_HTMLBuilder *_HTMLBuilder::div(const String &cls, const String &id) { - _HTMLTag *t = div(); +Ref<_HTMLBuilder> _HTMLBuilder::div(const String &cls, const String &id) { + Ref<_HTMLTag> t = div(); if (cls != "") { t->cls(cls); @@ -1636,7 +1636,7 @@ _HTMLBuilder *_HTMLBuilder::div(const String &cls, const String &id) { return this; } -_HTMLBuilder *_HTMLBuilder::fdiv(const String &body, const String &cls, const String &id) { +Ref<_HTMLBuilder> _HTMLBuilder::fdiv(const String &body, const String &cls, const String &id) { div(cls, id); w(body); cdiv(); @@ -1644,8 +1644,8 @@ _HTMLBuilder *_HTMLBuilder::fdiv(const String &body, const String &cls, const St return this; } -_HTMLBuilder *_HTMLBuilder::textarea(const String &name, const String &cls, const String &id) { - _HTMLTag *t = textarea(); +Ref<_HTMLBuilder> _HTMLBuilder::textarea(const String &name, const String &cls, const String &id) { + Ref<_HTMLTag> t = textarea(); t->name(name); @@ -1659,7 +1659,7 @@ _HTMLBuilder *_HTMLBuilder::textarea(const String &name, const String &cls, cons return this; } -_HTMLBuilder *_HTMLBuilder::ftextarea(const String &name, const String &body, const String &cls, const String &id) { +Ref<_HTMLBuilder> _HTMLBuilder::ftextarea(const String &name, const String &body, const String &cls, const String &id) { textarea(name, cls, id); w(body); ctextarea(); @@ -1667,8 +1667,8 @@ _HTMLBuilder *_HTMLBuilder::ftextarea(const String &name, const String &body, co return this; } -_HTMLBuilder *_HTMLBuilder::select(const String &name, const String &cls, const String &id) { - _HTMLTag *t = select(); +Ref<_HTMLBuilder> _HTMLBuilder::select(const String &name, const String &cls, const String &id) { + Ref<_HTMLTag> t = select(); t->name(name); @@ -1683,14 +1683,14 @@ _HTMLBuilder *_HTMLBuilder::select(const String &name, const String &cls, const return this; } -_HTMLTag *_HTMLBuilder::option(const String &value) { - _HTMLTag *t = option(); +Ref<_HTMLTag> _HTMLBuilder::option(const String &value) { + Ref<_HTMLTag> t = option(); t->value(value); return t; } -_HTMLBuilder *_HTMLBuilder::foption(const String &value, const String &body, const bool selected) { +Ref<_HTMLBuilder> _HTMLBuilder::foption(const String &value, const String &body, const bool selected) { option(value)->selected(selected); w(body); coption(); @@ -1700,858 +1700,858 @@ _HTMLBuilder *_HTMLBuilder::foption(const String &value, const String &body, con // Closing tags -_HTMLBuilder *_HTMLBuilder::ca() { +Ref<_HTMLBuilder> _HTMLBuilder::ca() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cabbr() { +Ref<_HTMLBuilder> _HTMLBuilder::cabbr() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cacronym() { +Ref<_HTMLBuilder> _HTMLBuilder::cacronym() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::caddress() { +Ref<_HTMLBuilder> _HTMLBuilder::caddress() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::capplet() { +Ref<_HTMLBuilder> _HTMLBuilder::capplet() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::carea() { +Ref<_HTMLBuilder> _HTMLBuilder::carea() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::carticle() { +Ref<_HTMLBuilder> _HTMLBuilder::carticle() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::caside() { +Ref<_HTMLBuilder> _HTMLBuilder::caside() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::caudio() { +Ref<_HTMLBuilder> _HTMLBuilder::caudio() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cb() { +Ref<_HTMLBuilder> _HTMLBuilder::cb() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cbasefont() { +Ref<_HTMLBuilder> _HTMLBuilder::cbasefont() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cbdi() { +Ref<_HTMLBuilder> _HTMLBuilder::cbdi() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cbdo() { +Ref<_HTMLBuilder> _HTMLBuilder::cbdo() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cbig() { +Ref<_HTMLBuilder> _HTMLBuilder::cbig() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cblockquote() { +Ref<_HTMLBuilder> _HTMLBuilder::cblockquote() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cbody() { +Ref<_HTMLBuilder> _HTMLBuilder::cbody() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cbutton() { +Ref<_HTMLBuilder> _HTMLBuilder::cbutton() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ccanvas() { +Ref<_HTMLBuilder> _HTMLBuilder::ccanvas() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ccaption() { +Ref<_HTMLBuilder> _HTMLBuilder::ccaption() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ccenter() { +Ref<_HTMLBuilder> _HTMLBuilder::ccenter() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ccite() { +Ref<_HTMLBuilder> _HTMLBuilder::ccite() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ccode() { +Ref<_HTMLBuilder> _HTMLBuilder::ccode() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ccol() { +Ref<_HTMLBuilder> _HTMLBuilder::ccol() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ccolgroup() { +Ref<_HTMLBuilder> _HTMLBuilder::ccolgroup() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cdata() { +Ref<_HTMLBuilder> _HTMLBuilder::cdata() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cdatalist() { +Ref<_HTMLBuilder> _HTMLBuilder::cdatalist() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cdd() { +Ref<_HTMLBuilder> _HTMLBuilder::cdd() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cdel() { +Ref<_HTMLBuilder> _HTMLBuilder::cdel() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cdetails() { +Ref<_HTMLBuilder> _HTMLBuilder::cdetails() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cdfn() { +Ref<_HTMLBuilder> _HTMLBuilder::cdfn() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cdialog() { +Ref<_HTMLBuilder> _HTMLBuilder::cdialog() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cdir() { +Ref<_HTMLBuilder> _HTMLBuilder::cdir() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cdiv() { +Ref<_HTMLBuilder> _HTMLBuilder::cdiv() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cdl() { +Ref<_HTMLBuilder> _HTMLBuilder::cdl() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cdt() { +Ref<_HTMLBuilder> _HTMLBuilder::cdt() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cem() { +Ref<_HTMLBuilder> _HTMLBuilder::cem() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cembed() { +Ref<_HTMLBuilder> _HTMLBuilder::cembed() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cfieldset() { +Ref<_HTMLBuilder> _HTMLBuilder::cfieldset() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cfigcaption() { +Ref<_HTMLBuilder> _HTMLBuilder::cfigcaption() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cfigure() { +Ref<_HTMLBuilder> _HTMLBuilder::cfigure() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cfont() { +Ref<_HTMLBuilder> _HTMLBuilder::cfont() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cfooter() { +Ref<_HTMLBuilder> _HTMLBuilder::cfooter() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cform() { +Ref<_HTMLBuilder> _HTMLBuilder::cform() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cframe() { +Ref<_HTMLBuilder> _HTMLBuilder::cframe() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cframeset() { +Ref<_HTMLBuilder> _HTMLBuilder::cframeset() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ch1() { +Ref<_HTMLBuilder> _HTMLBuilder::ch1() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ch2() { +Ref<_HTMLBuilder> _HTMLBuilder::ch2() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ch3() { +Ref<_HTMLBuilder> _HTMLBuilder::ch3() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ch4() { +Ref<_HTMLBuilder> _HTMLBuilder::ch4() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ch5() { +Ref<_HTMLBuilder> _HTMLBuilder::ch5() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ch6() { +Ref<_HTMLBuilder> _HTMLBuilder::ch6() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::chead() { +Ref<_HTMLBuilder> _HTMLBuilder::chead() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cheader() { +Ref<_HTMLBuilder> _HTMLBuilder::cheader() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::chr() { +Ref<_HTMLBuilder> _HTMLBuilder::chr() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::chtml() { +Ref<_HTMLBuilder> _HTMLBuilder::chtml() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ci() { +Ref<_HTMLBuilder> _HTMLBuilder::ci() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ciframe() { +Ref<_HTMLBuilder> _HTMLBuilder::ciframe() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cimg() { +Ref<_HTMLBuilder> _HTMLBuilder::cimg() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cinput() { +Ref<_HTMLBuilder> _HTMLBuilder::cinput() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cins() { +Ref<_HTMLBuilder> _HTMLBuilder::cins() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ckbd() { +Ref<_HTMLBuilder> _HTMLBuilder::ckbd() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::clabel() { +Ref<_HTMLBuilder> _HTMLBuilder::clabel() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::clegend() { +Ref<_HTMLBuilder> _HTMLBuilder::clegend() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cli() { +Ref<_HTMLBuilder> _HTMLBuilder::cli() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::clink() { +Ref<_HTMLBuilder> _HTMLBuilder::clink() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cmain() { +Ref<_HTMLBuilder> _HTMLBuilder::cmain() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cmap() { +Ref<_HTMLBuilder> _HTMLBuilder::cmap() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cmark() { +Ref<_HTMLBuilder> _HTMLBuilder::cmark() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cmeta() { +Ref<_HTMLBuilder> _HTMLBuilder::cmeta() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cmeter() { +Ref<_HTMLBuilder> _HTMLBuilder::cmeter() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cnav() { +Ref<_HTMLBuilder> _HTMLBuilder::cnav() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cnoframes() { +Ref<_HTMLBuilder> _HTMLBuilder::cnoframes() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cnoscript() { +Ref<_HTMLBuilder> _HTMLBuilder::cnoscript() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cobject() { +Ref<_HTMLBuilder> _HTMLBuilder::cobject() { write_tag(); result += "
"; return this; } -_HTMLBuilder *_HTMLBuilder::c_ol() { +Ref<_HTMLBuilder> _HTMLBuilder::c_ol() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::coptgroup() { +Ref<_HTMLBuilder> _HTMLBuilder::coptgroup() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::coption() { +Ref<_HTMLBuilder> _HTMLBuilder::coption() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::coutput() { +Ref<_HTMLBuilder> _HTMLBuilder::coutput() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cp() { +Ref<_HTMLBuilder> _HTMLBuilder::cp() { write_tag(); result += "

"; return this; } -_HTMLBuilder *_HTMLBuilder::cparam() { +Ref<_HTMLBuilder> _HTMLBuilder::cparam() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cpicture() { +Ref<_HTMLBuilder> _HTMLBuilder::cpicture() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cpre() { +Ref<_HTMLBuilder> _HTMLBuilder::cpre() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cprogress() { +Ref<_HTMLBuilder> _HTMLBuilder::cprogress() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cq() { +Ref<_HTMLBuilder> _HTMLBuilder::cq() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::crp() { +Ref<_HTMLBuilder> _HTMLBuilder::crp() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::crt() { +Ref<_HTMLBuilder> _HTMLBuilder::crt() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cruby() { +Ref<_HTMLBuilder> _HTMLBuilder::cruby() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cs() { +Ref<_HTMLBuilder> _HTMLBuilder::cs() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::csamp() { +Ref<_HTMLBuilder> _HTMLBuilder::csamp() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cscript() { +Ref<_HTMLBuilder> _HTMLBuilder::cscript() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::csection() { +Ref<_HTMLBuilder> _HTMLBuilder::csection() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cselect() { +Ref<_HTMLBuilder> _HTMLBuilder::cselect() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::csmall() { +Ref<_HTMLBuilder> _HTMLBuilder::csmall() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::csource() { +Ref<_HTMLBuilder> _HTMLBuilder::csource() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cspan() { +Ref<_HTMLBuilder> _HTMLBuilder::cspan() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cstrike() { +Ref<_HTMLBuilder> _HTMLBuilder::cstrike() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cstrong() { +Ref<_HTMLBuilder> _HTMLBuilder::cstrong() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cstyle() { +Ref<_HTMLBuilder> _HTMLBuilder::cstyle() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::csub() { +Ref<_HTMLBuilder> _HTMLBuilder::csub() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::csummary() { +Ref<_HTMLBuilder> _HTMLBuilder::csummary() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::csup() { +Ref<_HTMLBuilder> _HTMLBuilder::csup() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::csvg() { +Ref<_HTMLBuilder> _HTMLBuilder::csvg() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ctable() { +Ref<_HTMLBuilder> _HTMLBuilder::ctable() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ctbody() { +Ref<_HTMLBuilder> _HTMLBuilder::ctbody() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ctd() { +Ref<_HTMLBuilder> _HTMLBuilder::ctd() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ctemplateh() { +Ref<_HTMLBuilder> _HTMLBuilder::ctemplateh() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ctextarea() { +Ref<_HTMLBuilder> _HTMLBuilder::ctextarea() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ctfoot() { +Ref<_HTMLBuilder> _HTMLBuilder::ctfoot() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cth() { +Ref<_HTMLBuilder> _HTMLBuilder::cth() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cthead() { +Ref<_HTMLBuilder> _HTMLBuilder::cthead() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ctime() { +Ref<_HTMLBuilder> _HTMLBuilder::ctime() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ctitle() { +Ref<_HTMLBuilder> _HTMLBuilder::ctitle() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ctr() { +Ref<_HTMLBuilder> _HTMLBuilder::ctr() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ctrack() { +Ref<_HTMLBuilder> _HTMLBuilder::ctrack() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::ctt() { +Ref<_HTMLBuilder> _HTMLBuilder::ctt() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cu() { +Ref<_HTMLBuilder> _HTMLBuilder::cu() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cul() { +Ref<_HTMLBuilder> _HTMLBuilder::cul() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cvar() { +Ref<_HTMLBuilder> _HTMLBuilder::cvar() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cvideo() { +Ref<_HTMLBuilder> _HTMLBuilder::cvideo() { write_tag(); result += ""; return this; } -_HTMLBuilder *_HTMLBuilder::cwbr() { +Ref<_HTMLBuilder> _HTMLBuilder::cwbr() { write_tag(); result += ""; return this; } -_HTMLTag *_HTMLBuilder::form_get() { +Ref<_HTMLTag> _HTMLBuilder::form_get() { write_tag(); - return tag.start("form")->method_get(); + return tag->start("form")->method_get(); } -_HTMLTag *_HTMLBuilder::form_post() { +Ref<_HTMLTag> _HTMLBuilder::form_post() { write_tag(); - return tag.start("form")->method_post(); + return tag->start("form")->method_post(); } -_HTMLBuilder *_HTMLBuilder::form_get(const String &action, const String &cls, const String &id) { - _HTMLTag *t = form_get(); +Ref<_HTMLBuilder> _HTMLBuilder::form_get(const String &action, const String &cls, const String &id) { + Ref<_HTMLTag> t = form_get(); t->fora(action); @@ -2565,8 +2565,8 @@ _HTMLBuilder *_HTMLBuilder::form_get(const String &action, const String &cls, co return this; } -_HTMLBuilder *_HTMLBuilder::form_post(const String &action, const String &cls, const String &id) { - _HTMLTag *t = form_post(); +Ref<_HTMLBuilder> _HTMLBuilder::form_post(const String &action, const String &cls, const String &id) { + Ref<_HTMLTag> t = form_post(); t->action(action); @@ -2582,7 +2582,7 @@ _HTMLBuilder *_HTMLBuilder::form_post(const String &action, const String &cls, c } /* -_HTMLBuilder *_HTMLBuilder::form_post(const String &action, Request *request, const String &cls, const String &id) { +Ref<_HTMLBuilder> _HTMLBuilder::form_post(const String &action, Request *request, const String &cls, const String &id) { form_post(action, cls, id); csrf_token(request); @@ -2590,140 +2590,140 @@ _HTMLBuilder *_HTMLBuilder::form_post(const String &action, Request *request, co } */ -_HTMLTag *_HTMLBuilder::input_button() { +Ref<_HTMLTag> _HTMLBuilder::input_button() { write_tag(); - return tag.start("input")->itbutton(); + return tag->start("input")->itbutton(); } -_HTMLTag *_HTMLBuilder::input_checkbox() { +Ref<_HTMLTag> _HTMLBuilder::input_checkbox() { write_tag(); - return tag.start("input")->itcheckbox(); + return tag->start("input")->itcheckbox(); } -_HTMLTag *_HTMLBuilder::input_color() { +Ref<_HTMLTag> _HTMLBuilder::input_color() { write_tag(); - return tag.start("input")->itcolor(); + return tag->start("input")->itcolor(); } -_HTMLTag *_HTMLBuilder::input_date() { +Ref<_HTMLTag> _HTMLBuilder::input_date() { write_tag(); - return tag.start("input")->itdate(); + return tag->start("input")->itdate(); } -_HTMLTag *_HTMLBuilder::input_datetime_local() { +Ref<_HTMLTag> _HTMLBuilder::input_datetime_local() { write_tag(); - return tag.start("input")->itdatetime_local(); + return tag->start("input")->itdatetime_local(); } -_HTMLTag *_HTMLBuilder::input_email() { +Ref<_HTMLTag> _HTMLBuilder::input_email() { write_tag(); - return tag.start("input")->itemail(); + return tag->start("input")->itemail(); } -_HTMLTag *_HTMLBuilder::input_file() { +Ref<_HTMLTag> _HTMLBuilder::input_file() { write_tag(); - return tag.start("input")->itfile(); + return tag->start("input")->itfile(); } -_HTMLTag *_HTMLBuilder::input_hidden() { +Ref<_HTMLTag> _HTMLBuilder::input_hidden() { write_tag(); - return tag.start("input")->ithidden(); + return tag->start("input")->ithidden(); } -_HTMLTag *_HTMLBuilder::input_image() { +Ref<_HTMLTag> _HTMLBuilder::input_image() { write_tag(); - return tag.start("input")->itimage(); + return tag->start("input")->itimage(); } -_HTMLTag *_HTMLBuilder::input_month() { +Ref<_HTMLTag> _HTMLBuilder::input_month() { write_tag(); - return tag.start("input")->itmonth(); + return tag->start("input")->itmonth(); } -_HTMLTag *_HTMLBuilder::input_number() { +Ref<_HTMLTag> _HTMLBuilder::input_number() { write_tag(); - return tag.start("input")->itnumber(); + return tag->start("input")->itnumber(); } -_HTMLTag *_HTMLBuilder::input_password() { +Ref<_HTMLTag> _HTMLBuilder::input_password() { write_tag(); - return tag.start("input")->itpassword(); + return tag->start("input")->itpassword(); } -_HTMLTag *_HTMLBuilder::input_radio() { +Ref<_HTMLTag> _HTMLBuilder::input_radio() { write_tag(); - return tag.start("input")->itradio(); + return tag->start("input")->itradio(); } -_HTMLTag *_HTMLBuilder::input_range() { +Ref<_HTMLTag> _HTMLBuilder::input_range() { write_tag(); - return tag.start("input")->itrange(); + return tag->start("input")->itrange(); } -_HTMLTag *_HTMLBuilder::input_reset() { +Ref<_HTMLTag> _HTMLBuilder::input_reset() { write_tag(); - return tag.start("input")->itreset(); + return tag->start("input")->itreset(); } -_HTMLTag *_HTMLBuilder::input_search() { +Ref<_HTMLTag> _HTMLBuilder::input_search() { write_tag(); - return tag.start("input")->itsearch(); + return tag->start("input")->itsearch(); } -_HTMLTag *_HTMLBuilder::input_submit() { +Ref<_HTMLTag> _HTMLBuilder::input_submit() { write_tag(); - return tag.start("input")->itsubmit(); + return tag->start("input")->itsubmit(); } -_HTMLTag *_HTMLBuilder::input_tel() { +Ref<_HTMLTag> _HTMLBuilder::input_tel() { write_tag(); - return tag.start("input")->ittel(); + return tag->start("input")->ittel(); } -_HTMLTag *_HTMLBuilder::input_text() { +Ref<_HTMLTag> _HTMLBuilder::input_text() { write_tag(); - return tag.start("input")->ittext(); + return tag->start("input")->ittext(); } -_HTMLTag *_HTMLBuilder::input_time() { +Ref<_HTMLTag> _HTMLBuilder::input_time() { write_tag(); - return tag.start("input")->ittime(); + return tag->start("input")->ittime(); } -_HTMLTag *_HTMLBuilder::input_url() { +Ref<_HTMLTag> _HTMLBuilder::input_url() { write_tag(); - return tag.start("input")->iturl(); + return tag->start("input")->iturl(); } -_HTMLTag *_HTMLBuilder::input_week() { +Ref<_HTMLTag> _HTMLBuilder::input_week() { write_tag(); - return tag.start("input")->itweek(); + return tag->start("input")->itweek(); } -_HTMLBuilder *_HTMLBuilder::label(const String &pfor, const String &plabel, const String &cls, const String &id) { - _HTMLTag *t = label(); +Ref<_HTMLBuilder> _HTMLBuilder::label(const String &pfor, const String &plabel, const String &cls, const String &id) { + Ref<_HTMLTag> t = label(); t->fora(pfor); @@ -2742,8 +2742,8 @@ _HTMLBuilder *_HTMLBuilder::label(const String &pfor, const String &plabel, cons return this; } -_HTMLBuilder *_HTMLBuilder::input_button(const String &name, const String &value, const String &cls, const String &id) { - _HTMLTag *t = input_button(); +Ref<_HTMLBuilder> _HTMLBuilder::input_button(const String &name, const String &value, const String &cls, const String &id) { + Ref<_HTMLTag> t = input_button(); t->name(name); @@ -2762,8 +2762,8 @@ _HTMLBuilder *_HTMLBuilder::input_button(const String &name, const String &value return this; } -_HTMLBuilder *_HTMLBuilder::input_checkbox(const String &name, const String &value, const bool checked, const String &cls, const String &id) { - _HTMLTag *t = input_checkbox(); +Ref<_HTMLBuilder> _HTMLBuilder::input_checkbox(const String &name, const String &value, const bool checked, const String &cls, const String &id) { + Ref<_HTMLTag> t = input_checkbox(); t->name(name); @@ -2784,8 +2784,8 @@ _HTMLBuilder *_HTMLBuilder::input_checkbox(const String &name, const String &val return this; } -_HTMLBuilder *_HTMLBuilder::input_color(const String &name, const String &value, const String &cls, const String &id) { - _HTMLTag *t = input_color(); +Ref<_HTMLBuilder> _HTMLBuilder::input_color(const String &name, const String &value, const String &cls, const String &id) { + Ref<_HTMLTag> t = input_color(); t->name(name); @@ -2804,8 +2804,8 @@ _HTMLBuilder *_HTMLBuilder::input_color(const String &name, const String &value, return this; } -_HTMLBuilder *_HTMLBuilder::input_date(const String &name, const String &value, const String &cls, const String &id, const String &date_min, const String &date_max, const String &date_step) { - _HTMLTag *t = input_date(); +Ref<_HTMLBuilder> _HTMLBuilder::input_date(const String &name, const String &value, const String &cls, const String &id, const String &date_min, const String &date_max, const String &date_step) { + Ref<_HTMLTag> t = input_date(); t->name(name); @@ -2836,8 +2836,8 @@ _HTMLBuilder *_HTMLBuilder::input_date(const String &name, const String &value, return this; } -_HTMLBuilder *_HTMLBuilder::input_datetime_local(const String &name, const String &value, const String &cls, const String &id, const String &date_min, const String &date_max, const String &date_step) { - _HTMLTag *t = input_datetime_local(); +Ref<_HTMLBuilder> _HTMLBuilder::input_datetime_local(const String &name, const String &value, const String &cls, const String &id, const String &date_min, const String &date_max, const String &date_step) { + Ref<_HTMLTag> t = input_datetime_local(); t->name(name); @@ -2868,8 +2868,8 @@ _HTMLBuilder *_HTMLBuilder::input_datetime_local(const String &name, const Strin return this; } -_HTMLBuilder *_HTMLBuilder::input_email(const String &name, const String &value, const String &placeholder, const String &cls, const String &id) { - _HTMLTag *t = input_email(); +Ref<_HTMLBuilder> _HTMLBuilder::input_email(const String &name, const String &value, const String &placeholder, const String &cls, const String &id) { + Ref<_HTMLTag> t = input_email(); t->name(name); @@ -2892,8 +2892,8 @@ _HTMLBuilder *_HTMLBuilder::input_email(const String &name, const String &value, return this; } -_HTMLBuilder *_HTMLBuilder::input_file(const String &name, const String &accept, const String &cls, const String &id) { - _HTMLTag *t = input_file(); +Ref<_HTMLBuilder> _HTMLBuilder::input_file(const String &name, const String &accept, const String &cls, const String &id) { + Ref<_HTMLTag> t = input_file(); t->name(name); @@ -2912,8 +2912,8 @@ _HTMLBuilder *_HTMLBuilder::input_file(const String &name, const String &accept, return this; } -_HTMLBuilder *_HTMLBuilder::input_image(const String &name, const String &src, const String &alt, const String &cls, const String &id, const int width, const int height) { - _HTMLTag *t = input_image(); +Ref<_HTMLBuilder> _HTMLBuilder::input_image(const String &name, const String &src, const String &alt, const String &cls, const String &id, const int width, const int height) { + Ref<_HTMLTag> t = input_image(); t->name(name); @@ -2944,8 +2944,8 @@ _HTMLBuilder *_HTMLBuilder::input_image(const String &name, const String &src, c return this; } -_HTMLBuilder *_HTMLBuilder::input_month(const String &name, const String &cls, const String &id) { - _HTMLTag *t = input_month(); +Ref<_HTMLBuilder> _HTMLBuilder::input_month(const String &name, const String &cls, const String &id) { + Ref<_HTMLTag> t = input_month(); t->name(name); @@ -2960,8 +2960,8 @@ _HTMLBuilder *_HTMLBuilder::input_month(const String &name, const String &cls, c return this; } -_HTMLBuilder *_HTMLBuilder::input_number(const String &name, const String &vmin, const String &vmax, const String &cls, const String &id) { - _HTMLTag *t = input_number(); +Ref<_HTMLBuilder> _HTMLBuilder::input_number(const String &name, const String &vmin, const String &vmax, const String &cls, const String &id) { + Ref<_HTMLTag> t = input_number(); t->name(name); @@ -2984,8 +2984,8 @@ _HTMLBuilder *_HTMLBuilder::input_number(const String &name, const String &vmin, return this; } -_HTMLBuilder *_HTMLBuilder::input_password(const String &name, const String &value, const String &placeholder, const String &cls, const String &id, const String &minlength, const String &maxlength, const String &size) { - _HTMLTag *t = input_password(); +Ref<_HTMLBuilder> _HTMLBuilder::input_password(const String &name, const String &value, const String &placeholder, const String &cls, const String &id, const String &minlength, const String &maxlength, const String &size) { + Ref<_HTMLTag> t = input_password(); t->name(name); @@ -3020,8 +3020,8 @@ _HTMLBuilder *_HTMLBuilder::input_password(const String &name, const String &val return this; } -_HTMLBuilder *_HTMLBuilder::input_radio(const String &name, const String &value, const String &cls, const String &id) { - _HTMLTag *t = input_password(); +Ref<_HTMLBuilder> _HTMLBuilder::input_radio(const String &name, const String &value, const String &cls, const String &id) { + Ref<_HTMLTag> t = input_password(); t->name(name); @@ -3040,8 +3040,8 @@ _HTMLBuilder *_HTMLBuilder::input_radio(const String &name, const String &value, return this; } -_HTMLBuilder *_HTMLBuilder::input_range(const String &name, const String &value, const String &vmin, const String &vmax, const String &vstep, const String &cls, const String &id) { - _HTMLTag *t = input_range(); +Ref<_HTMLBuilder> _HTMLBuilder::input_range(const String &name, const String &value, const String &vmin, const String &vmax, const String &vstep, const String &cls, const String &id) { + Ref<_HTMLTag> t = input_range(); t->name(name); @@ -3072,8 +3072,8 @@ _HTMLBuilder *_HTMLBuilder::input_range(const String &name, const String &value, return this; } -_HTMLBuilder *_HTMLBuilder::input_reset(const String &name, const String &value, const String &cls, const String &id) { - _HTMLTag *t = input_reset(); +Ref<_HTMLBuilder> _HTMLBuilder::input_reset(const String &name, const String &value, const String &cls, const String &id) { + Ref<_HTMLTag> t = input_reset(); t->name(name); @@ -3092,8 +3092,8 @@ _HTMLBuilder *_HTMLBuilder::input_reset(const String &name, const String &value, return this; } -_HTMLBuilder *_HTMLBuilder::input_search(const String &name, const String &value, const String &placeholder, const String &cls, const String &id, const String &minlength, const String &maxlength, const String &size, const String &pattern) { - _HTMLTag *t = input_search(); +Ref<_HTMLBuilder> _HTMLBuilder::input_search(const String &name, const String &value, const String &placeholder, const String &cls, const String &id, const String &minlength, const String &maxlength, const String &size, const String &pattern) { + Ref<_HTMLTag> t = input_search(); t->name(name); @@ -3132,8 +3132,8 @@ _HTMLBuilder *_HTMLBuilder::input_search(const String &name, const String &value return this; } -_HTMLBuilder *_HTMLBuilder::input_submit(const String &value, const String &cls, const String &id) { - _HTMLTag *t = input_submit(); +Ref<_HTMLBuilder> _HTMLBuilder::input_submit(const String &value, const String &cls, const String &id) { + Ref<_HTMLTag> t = input_submit(); t->value(value); @@ -3148,8 +3148,8 @@ _HTMLBuilder *_HTMLBuilder::input_submit(const String &value, const String &cls, return this; } -_HTMLBuilder *_HTMLBuilder::input_tel(const String &name, const String &value, const String &placeholder, const String &cls, const String &id, const String &minlength, const String &maxlength, const String &size, const String &pattern) { - _HTMLTag *t = input_tel(); +Ref<_HTMLBuilder> _HTMLBuilder::input_tel(const String &name, const String &value, const String &placeholder, const String &cls, const String &id, const String &minlength, const String &maxlength, const String &size, const String &pattern) { + Ref<_HTMLTag> t = input_tel(); t->name(name); @@ -3188,8 +3188,8 @@ _HTMLBuilder *_HTMLBuilder::input_tel(const String &name, const String &value, c return this; } -_HTMLBuilder *_HTMLBuilder::input_text(const String &name, const String &value, const String &placeholder, const String &cls, const String &id, const String &minlength, const String &maxlength, const String &size) { - _HTMLTag *t = input_text(); +Ref<_HTMLBuilder> _HTMLBuilder::input_text(const String &name, const String &value, const String &placeholder, const String &cls, const String &id, const String &minlength, const String &maxlength, const String &size) { + Ref<_HTMLTag> t = input_text(); t->name(name); @@ -3224,8 +3224,8 @@ _HTMLBuilder *_HTMLBuilder::input_text(const String &name, const String &value, return this; } -_HTMLBuilder *_HTMLBuilder::input_time(const String &name, const String &cls, const String &id, const String &vmin, const String &vmax, const String &vstep) { - _HTMLTag *t = input_time(); +Ref<_HTMLBuilder> _HTMLBuilder::input_time(const String &name, const String &cls, const String &id, const String &vmin, const String &vmax, const String &vstep) { + Ref<_HTMLTag> t = input_time(); t->name(name); @@ -3252,8 +3252,8 @@ _HTMLBuilder *_HTMLBuilder::input_time(const String &name, const String &cls, co return this; } -_HTMLBuilder *_HTMLBuilder::input_url(const String &name, const String &value, const String &placeholder, const String &cls, const String &id, const String &minlength, const String &maxlength, const String &size) { - _HTMLTag *t = input_url(); +Ref<_HTMLBuilder> _HTMLBuilder::input_url(const String &name, const String &value, const String &placeholder, const String &cls, const String &id, const String &minlength, const String &maxlength, const String &size) { + Ref<_HTMLTag> t = input_url(); t->name(name); @@ -3288,8 +3288,8 @@ _HTMLBuilder *_HTMLBuilder::input_url(const String &name, const String &value, c return this; } -_HTMLBuilder *_HTMLBuilder::input_week(const String &name, const String &cls, const String &id, const String &vmin, const String &vmax) { - _HTMLTag *t = input_week(); +Ref<_HTMLBuilder> _HTMLBuilder::input_week(const String &name, const String &cls, const String &id, const String &vmin, const String &vmax) { + Ref<_HTMLTag> t = input_week(); t->name(name); @@ -3312,8 +3312,8 @@ _HTMLBuilder *_HTMLBuilder::input_week(const String &name, const String &cls, co return this; } -_HTMLBuilder *_HTMLBuilder::input_hidden(const String &name, const String &value) { - _HTMLTag *t = input_hidden(); +Ref<_HTMLBuilder> _HTMLBuilder::input_hidden(const String &name, const String &value) { + Ref<_HTMLTag> t = input_hidden(); t->name(name); @@ -3324,7 +3324,7 @@ _HTMLBuilder *_HTMLBuilder::input_hidden(const String &name, const String &value return this; } -_HTMLBuilder *_HTMLBuilder::csrf_token(const String &token) { +Ref<_HTMLBuilder> _HTMLBuilder::csrf_token(const String &token) { if (token == "") { // don't waste html characters if it's an empty string anyway return this; @@ -3335,7 +3335,7 @@ _HTMLBuilder *_HTMLBuilder::csrf_token(const String &token) { return this; } /* -_HTMLBuilder *_HTMLBuilder::csrf_token(Request *request) { +Ref<_HTMLBuilder> _HTMLBuilder::csrf_token(Request *request) { return csrf_token(request->get_csrf_token()); } */ @@ -3344,7 +3344,7 @@ void _HTMLBuilder::f() { write_tag(); } -_HTMLBuilder *_HTMLBuilder::w(const String &val) { +Ref<_HTMLBuilder> _HTMLBuilder::w(const String &val) { write_tag(); result += val; @@ -3352,21 +3352,21 @@ _HTMLBuilder *_HTMLBuilder::w(const String &val) { return this; } -_HTMLBuilder *_HTMLBuilder::wn(const double val, int p_decimals) { +Ref<_HTMLBuilder> _HTMLBuilder::wn(const double val, int p_decimals) { write_tag(); result += String::num(val, p_decimals); return this; } -_HTMLBuilder *_HTMLBuilder::wns(const double val) { +Ref<_HTMLBuilder> _HTMLBuilder::wns(const double val) { write_tag(); result += String::num_scientific(val); return this; } -_HTMLBuilder *_HTMLBuilder::wr(const double val, const bool p_trailing) { +Ref<_HTMLBuilder> _HTMLBuilder::wr(const double val, const bool p_trailing) { write_tag(); //TODO @@ -3374,14 +3374,14 @@ _HTMLBuilder *_HTMLBuilder::wr(const double val, const bool p_trailing) { return this; } -_HTMLBuilder *_HTMLBuilder::wi(const int64_t val, const int base, const bool capitalize_hex) { +Ref<_HTMLBuilder> _HTMLBuilder::wi(const int64_t val, const int base, const bool capitalize_hex) { write_tag(); result += String::num_int64(val, base, capitalize_hex); return this; } -_HTMLBuilder *_HTMLBuilder::wui(const uint64_t val, const int base, const bool capitalize_hex) { +Ref<_HTMLBuilder> _HTMLBuilder::wui(const uint64_t val, const int base, const bool capitalize_hex) { write_tag(); result += String::num_uint64(val, base, capitalize_hex); @@ -3389,7 +3389,7 @@ _HTMLBuilder *_HTMLBuilder::wui(const uint64_t val, const int base, const bool c return this; } -_HTMLBuilder *_HTMLBuilder::wbn(const bool val) { +Ref<_HTMLBuilder> _HTMLBuilder::wbn(const bool val) { write_tag(); //TODO @@ -3397,7 +3397,7 @@ _HTMLBuilder *_HTMLBuilder::wbn(const bool val) { return this; } -_HTMLBuilder *_HTMLBuilder::wbs(const bool val) { +Ref<_HTMLBuilder> _HTMLBuilder::wbs(const bool val) { write_tag(); //TODO @@ -3407,7 +3407,7 @@ _HTMLBuilder *_HTMLBuilder::wbs(const bool val) { } // TODO! -_HTMLBuilder *_HTMLBuilder::we(const String &val) { +Ref<_HTMLBuilder> _HTMLBuilder::we(const String &val) { //print_error("_HTMLBuilder::write_excaped NYI!"); write_tag(); @@ -3417,18 +3417,19 @@ _HTMLBuilder *_HTMLBuilder::we(const String &val) { return this; } -_HTMLBuilder *_HTMLBuilder::write_tag() { - if (tag.has_data()) { - tag.close(); - result += tag.result; - tag.reset(); +Ref<_HTMLBuilder> _HTMLBuilder::write_tag() { + if (tag->has_data()) { + tag->close(); + result += tag->result; + tag->reset(); } return this; } _HTMLBuilder::_HTMLBuilder() { - tag.owner = this; + tag.instance(); + tag->owner.reference_ptr(this); } _HTMLBuilder::~_HTMLBuilder() { @@ -3436,5 +3437,5 @@ _HTMLBuilder::~_HTMLBuilder() { void _HTMLBuilder::_bind_methods() { ClassDB::bind_method(D_METHOD("a"), &_HTMLBuilder::a); - //_HTMLTag *a(); + //Ref<_HTMLTag> a(); } diff --git a/modules/web/html/html_builder_bind.h b/modules/web/html/html_builder_bind.h index c9ce52c11..b97f5ae09 100644 --- a/modules/web/html/html_builder_bind.h +++ b/modules/web/html/html_builder_bind.h @@ -15,180 +15,180 @@ public: bool simple; String result; - _HTMLTag *str(const String &str); - _HTMLTag *style(const String &val); - _HTMLTag *href(const String &val); - _HTMLTag *cls(const String &val); - _HTMLTag *clsse(const String &val); //se -> skip empty - _HTMLTag *id(const String &val); - _HTMLTag *name(const String &val); - _HTMLTag *content(const String &val); - _HTMLTag *value(const String &val); - _HTMLTag *accept(const String &val); - _HTMLTag *src(const String &val); - _HTMLTag *alt(const String &val); - _HTMLTag *inputmode(const String &val); - _HTMLTag *list(const String &val); + Ref<_HTMLTag> str(const String &str); + Ref<_HTMLTag> style(const String &val); + Ref<_HTMLTag> href(const String &val); + Ref<_HTMLTag> cls(const String &val); + Ref<_HTMLTag> clsse(const String &val); //se -> skip empty + Ref<_HTMLTag> id(const String &val); + Ref<_HTMLTag> name(const String &val); + Ref<_HTMLTag> content(const String &val); + Ref<_HTMLTag> value(const String &val); + Ref<_HTMLTag> accept(const String &val); + Ref<_HTMLTag> src(const String &val); + Ref<_HTMLTag> alt(const String &val); + Ref<_HTMLTag> inputmode(const String &val); + Ref<_HTMLTag> list(const String &val); - _HTMLTag *autocomplete(const String &val); + Ref<_HTMLTag> autocomplete(const String &val); - _HTMLTag *autocomplete_off(); - _HTMLTag *autocomplete_on(); - _HTMLTag *autocomplete_name(); - _HTMLTag *autocomplete_name_honorific_prefix(); - _HTMLTag *autocomplete_name_given_name(); - _HTMLTag *autocomplete_name_additional_name(); - _HTMLTag *autocomplete_name_family_name(); - _HTMLTag *autocomplete_name_honorific_suffix(); - _HTMLTag *autocomplete_name_nickname(); - _HTMLTag *autocomplete_email(); - _HTMLTag *autocomplete_username(); - _HTMLTag *autocomplete_new_password(); - _HTMLTag *autocomplete_current_password(); - _HTMLTag *autocomplete_one_time_code(); - _HTMLTag *autocomplete_organization_title(); - _HTMLTag *autocomplete_organization(); - _HTMLTag *autocomplete_street_address(); - _HTMLTag *autocomplete_address_line1(); - _HTMLTag *autocomplete_address_line2(); - _HTMLTag *autocomplete_address_line3(); - _HTMLTag *autocomplete_address_level_1(); - _HTMLTag *autocomplete_address_level_2(); - _HTMLTag *autocomplete_address_level_3(); - _HTMLTag *autocomplete_address_level_4(); - _HTMLTag *autocomplete_country(); - _HTMLTag *autocomplete_country_name(); - _HTMLTag *autocomplete_postal_code(); - _HTMLTag *autocomplete_cc_name(); - _HTMLTag *autocomplete_cc_given_name(); - _HTMLTag *autocomplete_cc_additional_name(); - _HTMLTag *autocomplete_cc_family_name(); - _HTMLTag *autocomplete_cc_number(); - _HTMLTag *autocomplete_cc_exp(); - _HTMLTag *autocomplete_cc_exp_month(); - _HTMLTag *autocomplete_cc_exp_year(); - _HTMLTag *autocomplete_cc_csc(); - _HTMLTag *autocomplete_cc_type(); - _HTMLTag *autocomplete_transaction_currency(); - _HTMLTag *autocomplete_transaction_amount(); - _HTMLTag *autocomplete_language(); - _HTMLTag *autocomplete_bday(); - _HTMLTag *autocomplete_bday_day(); - _HTMLTag *autocomplete_bday_month(); - _HTMLTag *autocomplete_bday_year(); - _HTMLTag *autocomplete_sex(); - _HTMLTag *autocomplete_tel(); - _HTMLTag *autocomplete_tel_country_code(); - _HTMLTag *autocomplete_tel_national(); - _HTMLTag *autocomplete_tel_area_code(); - _HTMLTag *autocomplete_tel_local(); - _HTMLTag *autocomplete_tel_extension(); - _HTMLTag *autocomplete_impp(); - _HTMLTag *autocomplete_url(); - _HTMLTag *autocomplete_photo(); + Ref<_HTMLTag> autocomplete_off(); + Ref<_HTMLTag> autocomplete_on(); + Ref<_HTMLTag> autocomplete_name(); + Ref<_HTMLTag> autocomplete_name_honorific_prefix(); + Ref<_HTMLTag> autocomplete_name_given_name(); + Ref<_HTMLTag> autocomplete_name_additional_name(); + Ref<_HTMLTag> autocomplete_name_family_name(); + Ref<_HTMLTag> autocomplete_name_honorific_suffix(); + Ref<_HTMLTag> autocomplete_name_nickname(); + Ref<_HTMLTag> autocomplete_email(); + Ref<_HTMLTag> autocomplete_username(); + Ref<_HTMLTag> autocomplete_new_password(); + Ref<_HTMLTag> autocomplete_current_password(); + Ref<_HTMLTag> autocomplete_one_time_code(); + Ref<_HTMLTag> autocomplete_organization_title(); + Ref<_HTMLTag> autocomplete_organization(); + Ref<_HTMLTag> autocomplete_street_address(); + Ref<_HTMLTag> autocomplete_address_line1(); + Ref<_HTMLTag> autocomplete_address_line2(); + Ref<_HTMLTag> autocomplete_address_line3(); + Ref<_HTMLTag> autocomplete_address_level_1(); + Ref<_HTMLTag> autocomplete_address_level_2(); + Ref<_HTMLTag> autocomplete_address_level_3(); + Ref<_HTMLTag> autocomplete_address_level_4(); + Ref<_HTMLTag> autocomplete_country(); + Ref<_HTMLTag> autocomplete_country_name(); + Ref<_HTMLTag> autocomplete_postal_code(); + Ref<_HTMLTag> autocomplete_cc_name(); + Ref<_HTMLTag> autocomplete_cc_given_name(); + Ref<_HTMLTag> autocomplete_cc_additional_name(); + Ref<_HTMLTag> autocomplete_cc_family_name(); + Ref<_HTMLTag> autocomplete_cc_number(); + Ref<_HTMLTag> autocomplete_cc_exp(); + Ref<_HTMLTag> autocomplete_cc_exp_month(); + Ref<_HTMLTag> autocomplete_cc_exp_year(); + Ref<_HTMLTag> autocomplete_cc_csc(); + Ref<_HTMLTag> autocomplete_cc_type(); + Ref<_HTMLTag> autocomplete_transaction_currency(); + Ref<_HTMLTag> autocomplete_transaction_amount(); + Ref<_HTMLTag> autocomplete_language(); + Ref<_HTMLTag> autocomplete_bday(); + Ref<_HTMLTag> autocomplete_bday_day(); + Ref<_HTMLTag> autocomplete_bday_month(); + Ref<_HTMLTag> autocomplete_bday_year(); + Ref<_HTMLTag> autocomplete_sex(); + Ref<_HTMLTag> autocomplete_tel(); + Ref<_HTMLTag> autocomplete_tel_country_code(); + Ref<_HTMLTag> autocomplete_tel_national(); + Ref<_HTMLTag> autocomplete_tel_area_code(); + Ref<_HTMLTag> autocomplete_tel_local(); + Ref<_HTMLTag> autocomplete_tel_extension(); + Ref<_HTMLTag> autocomplete_impp(); + Ref<_HTMLTag> autocomplete_url(); + Ref<_HTMLTag> autocomplete_photo(); - _HTMLTag *onclick(const String &val); + Ref<_HTMLTag> onclick(const String &val); - _HTMLTag *checked(const bool val = true); - _HTMLTag *selected(const bool val = true); - _HTMLTag *autofocus(const bool val = true); - _HTMLTag *disabled(const bool val = true); - _HTMLTag *multiple(const bool val = true); - _HTMLTag *required(const bool val = true); - _HTMLTag *spellcheck(const bool val); + Ref<_HTMLTag> checked(const bool val = true); + Ref<_HTMLTag> selected(const bool val = true); + Ref<_HTMLTag> autofocus(const bool val = true); + Ref<_HTMLTag> disabled(const bool val = true); + Ref<_HTMLTag> multiple(const bool val = true); + Ref<_HTMLTag> required(const bool val = true); + Ref<_HTMLTag> spellcheck(const bool val); - _HTMLTag *max(const String &val); - _HTMLTag *min(const String &val); - _HTMLTag *step(const String &val); - _HTMLTag *step_any(); + Ref<_HTMLTag> max(const String &val); + Ref<_HTMLTag> min(const String &val); + Ref<_HTMLTag> step(const String &val); + Ref<_HTMLTag> step_any(); - _HTMLTag *minlength(const int val); - _HTMLTag *minlength(const String &val); - _HTMLTag *maxlength(const int val); - _HTMLTag *maxlength(const String &val); - _HTMLTag *size(const int val); - _HTMLTag *size(const String &val); + Ref<_HTMLTag> minlength(const int val); + Ref<_HTMLTag> minlength(const String &val); + Ref<_HTMLTag> maxlength(const int val); + Ref<_HTMLTag> maxlength(const String &val); + Ref<_HTMLTag> size(const int val); + Ref<_HTMLTag> size(const String &val); - _HTMLTag *width(const int val); - _HTMLTag *width(const String &val); - _HTMLTag *height(const int val); - _HTMLTag *height(const String &val); + Ref<_HTMLTag> width(const int val); + Ref<_HTMLTag> width(const String &val); + Ref<_HTMLTag> height(const int val); + Ref<_HTMLTag> height(const String &val); - _HTMLTag *pattern(const String &val); + Ref<_HTMLTag> pattern(const String &val); - _HTMLTag *method(const String &val); - _HTMLTag *method_get(); - _HTMLTag *method_post(); + Ref<_HTMLTag> method(const String &val); + Ref<_HTMLTag> method_get(); + Ref<_HTMLTag> method_post(); - _HTMLTag *action(const String &val); - _HTMLTag *type(const String &val); - _HTMLTag *placeholder(const String &val); - _HTMLTag *fora(const String &val); // for attrib -> for is reserved keyword + Ref<_HTMLTag> action(const String &val); + Ref<_HTMLTag> type(const String &val); + Ref<_HTMLTag> placeholder(const String &val); + Ref<_HTMLTag> fora(const String &val); // for attrib -> for is reserved keyword - _HTMLTag *rel(const String &val); - _HTMLTag *rel_stylesheet(); - _HTMLTag *rel_alternate(); - _HTMLTag *rel_author(); - _HTMLTag *rel_bookmark(); - _HTMLTag *rel_external(); - _HTMLTag *rel_help(); - _HTMLTag *rel_license(); - _HTMLTag *rel_next(); - _HTMLTag *rel_nofollow(); - _HTMLTag *rel_noopener(); - _HTMLTag *rel_noreferrer(); - _HTMLTag *rel_prev(); - _HTMLTag *rel_search(); - _HTMLTag *rel_tag(); + Ref<_HTMLTag> rel(const String &val); + Ref<_HTMLTag> rel_stylesheet(); + Ref<_HTMLTag> rel_alternate(); + Ref<_HTMLTag> rel_author(); + Ref<_HTMLTag> rel_bookmark(); + Ref<_HTMLTag> rel_external(); + Ref<_HTMLTag> rel_help(); + Ref<_HTMLTag> rel_license(); + Ref<_HTMLTag> rel_next(); + Ref<_HTMLTag> rel_nofollow(); + Ref<_HTMLTag> rel_noopener(); + Ref<_HTMLTag> rel_noreferrer(); + Ref<_HTMLTag> rel_prev(); + Ref<_HTMLTag> rel_search(); + Ref<_HTMLTag> rel_tag(); - _HTMLTag *charset(const String &val); - _HTMLTag *charset_utf_8(); + Ref<_HTMLTag> charset(const String &val); + Ref<_HTMLTag> charset_utf_8(); - _HTMLTag *itbutton(); - _HTMLTag *itcheckbox(); - _HTMLTag *itcolor(); - _HTMLTag *itdate(); - _HTMLTag *itdatetime_local(); - _HTMLTag *itemail(); - _HTMLTag *itfile(); - _HTMLTag *ithidden(); - _HTMLTag *itimage(); - _HTMLTag *itmonth(); - _HTMLTag *itnumber(); - _HTMLTag *itpassword(); - _HTMLTag *itradio(); - _HTMLTag *itrange(); - _HTMLTag *itreset(); - _HTMLTag *itsearch(); - _HTMLTag *itsubmit(); - _HTMLTag *ittel(); - _HTMLTag *ittext(); - _HTMLTag *ittime(); - _HTMLTag *iturl(); - _HTMLTag *itweek(); + Ref<_HTMLTag> itbutton(); + Ref<_HTMLTag> itcheckbox(); + Ref<_HTMLTag> itcolor(); + Ref<_HTMLTag> itdate(); + Ref<_HTMLTag> itdatetime_local(); + Ref<_HTMLTag> itemail(); + Ref<_HTMLTag> itfile(); + Ref<_HTMLTag> ithidden(); + Ref<_HTMLTag> itimage(); + Ref<_HTMLTag> itmonth(); + Ref<_HTMLTag> itnumber(); + Ref<_HTMLTag> itpassword(); + Ref<_HTMLTag> itradio(); + Ref<_HTMLTag> itrange(); + Ref<_HTMLTag> itreset(); + Ref<_HTMLTag> itsearch(); + Ref<_HTMLTag> itsubmit(); + Ref<_HTMLTag> ittel(); + Ref<_HTMLTag> ittext(); + Ref<_HTMLTag> ittime(); + Ref<_HTMLTag> iturl(); + Ref<_HTMLTag> itweek(); - _HTMLTag *inputmode_none(); - _HTMLTag *inputmode_text(); - _HTMLTag *inputmode_decimal(); - _HTMLTag *inputmode_numeric(); - _HTMLTag *inputmode_tel(); - _HTMLTag *inputmode_search(); - _HTMLTag *inputmode_email(); - _HTMLTag *inputmode_url(); + Ref<_HTMLTag> inputmode_none(); + Ref<_HTMLTag> inputmode_text(); + Ref<_HTMLTag> inputmode_decimal(); + Ref<_HTMLTag> inputmode_numeric(); + Ref<_HTMLTag> inputmode_tel(); + Ref<_HTMLTag> inputmode_search(); + Ref<_HTMLTag> inputmode_email(); + Ref<_HTMLTag> inputmode_url(); - _HTMLTag *attrib(const String &attr, const String &val); + Ref<_HTMLTag> attrib(const String &attr, const String &val); - _HTMLTag *start(const String &p_new_tag, const bool p_simple = false); - _HTMLTag *reset(); - _HTMLTag *close(); + Ref<_HTMLTag> start(const String &p_new_tag, const bool p_simple = false); + Ref<_HTMLTag> reset(); + Ref<_HTMLTag> close(); - _HTMLBuilder *f(); + Ref<_HTMLBuilder> f(); bool has_data(); _HTMLTag(); - _HTMLBuilder *owner; + Ref<_HTMLBuilder> owner; protected: static void _bind_methods(); @@ -200,355 +200,355 @@ class _HTMLBuilder : public Reference { public: String result; - _HTMLBuilder *comment(const String &val); - _HTMLTag *doctype(); - _HTMLBuilder *doctype(const String &val); + Ref<_HTMLBuilder> comment(const String &val); + Ref<_HTMLTag> doctype(); + Ref<_HTMLBuilder> doctype(const String &val); - _HTMLTag *a(); - _HTMLTag *abbr(); - _HTMLTag *acronym(); // Not supported in HTML5. - _HTMLTag *address(); - _HTMLTag *applet(); // Not supported in HTML5. - _HTMLTag *area(); - _HTMLTag *article(); - _HTMLTag *aside(); - _HTMLTag *audio(); - _HTMLTag *b(); - _HTMLTag *basefont(); // Not supported in HTML5. - _HTMLTag *bdi(); - _HTMLTag *bdo(); - _HTMLTag *big(); // Not supported in HTML5. - _HTMLTag *blockquote(); - _HTMLTag *body(); - _HTMLTag *br(); - _HTMLTag *button(); - _HTMLTag *canvas(); - _HTMLTag *caption(); - _HTMLTag *center(); // Not supported in HTML5. - _HTMLTag *cite(); - _HTMLTag *code(); - _HTMLTag *col(); - _HTMLTag *colgroup(); - _HTMLTag *data(); - _HTMLTag *datalist(); - _HTMLTag *dd(); - _HTMLTag *del(); - _HTMLTag *details(); - _HTMLTag *dfn(); - _HTMLTag *dialog(); - _HTMLTag *dir(); // Not supported in HTML5. - _HTMLTag *div(); - _HTMLTag *dl(); - _HTMLTag *dt(); - _HTMLTag *em(); - _HTMLTag *embed(); - _HTMLTag *fieldset(); - _HTMLTag *figcaption(); - _HTMLTag *figure(); - _HTMLTag *font(); // Not supported in HTML5. - _HTMLTag *footer(); - _HTMLTag *form(); - _HTMLTag *frame(); // Not supported in HTML5. - _HTMLTag *frameset(); // Not supported in HTML5. - _HTMLTag *h1(); - _HTMLTag *h2(); - _HTMLTag *h3(); - _HTMLTag *h4(); - _HTMLTag *h5(); - _HTMLTag *h6(); - _HTMLTag *head(); - _HTMLTag *header(); - _HTMLTag *hr(); - _HTMLTag *html(); + Ref<_HTMLTag> a(); + Ref<_HTMLTag> abbr(); + Ref<_HTMLTag> acronym(); // Not supported in HTML5. + Ref<_HTMLTag> address(); + Ref<_HTMLTag> applet(); // Not supported in HTML5. + Ref<_HTMLTag> area(); + Ref<_HTMLTag> article(); + Ref<_HTMLTag> aside(); + Ref<_HTMLTag> audio(); + Ref<_HTMLTag> b(); + Ref<_HTMLTag> basefont(); // Not supported in HTML5. + Ref<_HTMLTag> bdi(); + Ref<_HTMLTag> bdo(); + Ref<_HTMLTag> big(); // Not supported in HTML5. + Ref<_HTMLTag> blockquote(); + Ref<_HTMLTag> body(); + Ref<_HTMLTag> br(); + Ref<_HTMLTag> button(); + Ref<_HTMLTag> canvas(); + Ref<_HTMLTag> caption(); + Ref<_HTMLTag> center(); // Not supported in HTML5. + Ref<_HTMLTag> cite(); + Ref<_HTMLTag> code(); + Ref<_HTMLTag> col(); + Ref<_HTMLTag> colgroup(); + Ref<_HTMLTag> data(); + Ref<_HTMLTag> datalist(); + Ref<_HTMLTag> dd(); + Ref<_HTMLTag> del(); + Ref<_HTMLTag> details(); + Ref<_HTMLTag> dfn(); + Ref<_HTMLTag> dialog(); + Ref<_HTMLTag> dir(); // Not supported in HTML5. + Ref<_HTMLTag> div(); + Ref<_HTMLTag> dl(); + Ref<_HTMLTag> dt(); + Ref<_HTMLTag> em(); + Ref<_HTMLTag> embed(); + Ref<_HTMLTag> fieldset(); + Ref<_HTMLTag> figcaption(); + Ref<_HTMLTag> figure(); + Ref<_HTMLTag> font(); // Not supported in HTML5. + Ref<_HTMLTag> footer(); + Ref<_HTMLTag> form(); + Ref<_HTMLTag> frame(); // Not supported in HTML5. + Ref<_HTMLTag> frameset(); // Not supported in HTML5. + Ref<_HTMLTag> h1(); + Ref<_HTMLTag> h2(); + Ref<_HTMLTag> h3(); + Ref<_HTMLTag> h4(); + Ref<_HTMLTag> h5(); + Ref<_HTMLTag> h6(); + Ref<_HTMLTag> head(); + Ref<_HTMLTag> header(); + Ref<_HTMLTag> hr(); + Ref<_HTMLTag> html(); - _HTMLTag *i(); - _HTMLTag *iframe(); - _HTMLTag *img(); - _HTMLTag *input(); - _HTMLTag *ins(); - _HTMLTag *kbd(); - _HTMLTag *label(); - _HTMLTag *legend(); - _HTMLTag *li(); - _HTMLTag *link(); - _HTMLTag *main(); - _HTMLTag *map(); - _HTMLTag *mark(); - _HTMLTag *meta(); - _HTMLTag *meter(); + Ref<_HTMLTag> i(); + Ref<_HTMLTag> iframe(); + Ref<_HTMLTag> img(); + Ref<_HTMLTag> input(); + Ref<_HTMLTag> ins(); + Ref<_HTMLTag> kbd(); + Ref<_HTMLTag> label(); + Ref<_HTMLTag> legend(); + Ref<_HTMLTag> li(); + Ref<_HTMLTag> link(); + Ref<_HTMLTag> main(); + Ref<_HTMLTag> map(); + Ref<_HTMLTag> mark(); + Ref<_HTMLTag> meta(); + Ref<_HTMLTag> meter(); - _HTMLTag *nav(); - _HTMLTag *noframes(); // Not supported in HTML5. - _HTMLTag *noscript(); - _HTMLTag *object(); - _HTMLTag *ol(); - _HTMLTag *optgroup(); - _HTMLTag *option(); - _HTMLTag *output(); - _HTMLTag *p(); - _HTMLTag *param(); - _HTMLTag *picture(); - _HTMLTag *pre(); - _HTMLTag *progress(); - _HTMLTag *q(); - _HTMLTag *rp(); + Ref<_HTMLTag> nav(); + Ref<_HTMLTag> noframes(); // Not supported in HTML5. + Ref<_HTMLTag> noscript(); + Ref<_HTMLTag> object(); + Ref<_HTMLTag> ol(); + Ref<_HTMLTag> optgroup(); + Ref<_HTMLTag> option(); + Ref<_HTMLTag> output(); + Ref<_HTMLTag> p(); + Ref<_HTMLTag> param(); + Ref<_HTMLTag> picture(); + Ref<_HTMLTag> pre(); + Ref<_HTMLTag> progress(); + Ref<_HTMLTag> q(); + Ref<_HTMLTag> rp(); - _HTMLTag *rt(); - _HTMLTag *ruby(); - _HTMLTag *s(); - _HTMLTag *samp(); - _HTMLTag *script(); - _HTMLTag *section(); - _HTMLTag *select(); - _HTMLTag *small(); - _HTMLTag *source(); - _HTMLTag *span(); - _HTMLTag *strike(); // Not supported in HTML5 - _HTMLTag *strong(); - _HTMLTag *style(); - _HTMLTag *sub(); - _HTMLTag *summary(); - _HTMLTag *sup(); + Ref<_HTMLTag> rt(); + Ref<_HTMLTag> ruby(); + Ref<_HTMLTag> s(); + Ref<_HTMLTag> samp(); + Ref<_HTMLTag> script(); + Ref<_HTMLTag> section(); + Ref<_HTMLTag> select(); + Ref<_HTMLTag> small(); + Ref<_HTMLTag> source(); + Ref<_HTMLTag> span(); + Ref<_HTMLTag> strike(); // Not supported in HTML5 + Ref<_HTMLTag> strong(); + Ref<_HTMLTag> style(); + Ref<_HTMLTag> sub(); + Ref<_HTMLTag> summary(); + Ref<_HTMLTag> sup(); - _HTMLTag *svg(); - _HTMLTag *table(); - _HTMLTag *tbody(); - _HTMLTag *td(); - _HTMLTag *templateh(); - _HTMLTag *textarea(); - _HTMLTag *tfoot(); - _HTMLTag *th(); - _HTMLTag *thead(); - _HTMLTag *time(); - _HTMLTag *title(); - _HTMLTag *tr(); - _HTMLTag *track(); - _HTMLTag *tt(); // Not supported in HTML5. - _HTMLTag *u(); - _HTMLTag *ul(); - _HTMLTag *var(); - _HTMLTag *video(); - _HTMLTag *wbr(); + Ref<_HTMLTag> svg(); + Ref<_HTMLTag> table(); + Ref<_HTMLTag> tbody(); + Ref<_HTMLTag> td(); + Ref<_HTMLTag> templateh(); + Ref<_HTMLTag> textarea(); + Ref<_HTMLTag> tfoot(); + Ref<_HTMLTag> th(); + Ref<_HTMLTag> thead(); + Ref<_HTMLTag> time(); + Ref<_HTMLTag> title(); + Ref<_HTMLTag> tr(); + Ref<_HTMLTag> track(); + Ref<_HTMLTag> tt(); // Not supported in HTML5. + Ref<_HTMLTag> u(); + Ref<_HTMLTag> ul(); + Ref<_HTMLTag> var(); + Ref<_HTMLTag> video(); + Ref<_HTMLTag> wbr(); - //_HTMLBuilder *a(const String &href, const String &cls = "", const String &id = ""); - _HTMLBuilder *fa(const String &href, const String &body, const String &cls = "", const String &id = ""); + //Ref<_HTMLBuilder> a(const String &href, const String &cls = "", const String &id = ""); + Ref<_HTMLBuilder> fa(const String &href, const String &body, const String &cls = "", const String &id = ""); - _HTMLBuilder *div(const String &cls, const String &id = ""); - _HTMLBuilder *fdiv(const String &body, const String &cls = "", const String &id = ""); + Ref<_HTMLBuilder> div(const String &cls, const String &id = ""); + Ref<_HTMLBuilder> fdiv(const String &body, const String &cls = "", const String &id = ""); - _HTMLBuilder *textarea(const String &name, const String &cls = "", const String &id = ""); - _HTMLBuilder *ftextarea(const String &name, const String &body, const String &cls = "", const String &id = ""); + Ref<_HTMLBuilder> textarea(const String &name, const String &cls = "", const String &id = ""); + Ref<_HTMLBuilder> ftextarea(const String &name, const String &body, const String &cls = "", const String &id = ""); - _HTMLBuilder *select(const String &name, const String &cls = "", const String &id = ""); + Ref<_HTMLBuilder> select(const String &name, const String &cls = "", const String &id = ""); - _HTMLTag *option(const String &value); - _HTMLBuilder *foption(const String &value, const String &body, const bool selected = false); + Ref<_HTMLTag> option(const String &value); + Ref<_HTMLBuilder> foption(const String &value, const String &body, const bool selected = false); // closing tags c prefix means close // Note simple tags should not have these like
// Note that I might have a few that shouldn't be here, those will be removed as I find them - _HTMLBuilder *ca(); - _HTMLBuilder *cabbr(); - _HTMLBuilder *cacronym(); - _HTMLBuilder *caddress(); - _HTMLBuilder *capplet(); - _HTMLBuilder *carea(); - _HTMLBuilder *carticle(); - _HTMLBuilder *caside(); - _HTMLBuilder *caudio(); - _HTMLBuilder *cb(); - _HTMLBuilder *cbasefont(); - _HTMLBuilder *cbdi(); - _HTMLBuilder *cbdo(); - _HTMLBuilder *cbig(); - _HTMLBuilder *cblockquote(); - _HTMLBuilder *cbody(); - _HTMLBuilder *cbutton(); - _HTMLBuilder *ccanvas(); + Ref<_HTMLBuilder> ca(); + Ref<_HTMLBuilder> cabbr(); + Ref<_HTMLBuilder> cacronym(); + Ref<_HTMLBuilder> caddress(); + Ref<_HTMLBuilder> capplet(); + Ref<_HTMLBuilder> carea(); + Ref<_HTMLBuilder> carticle(); + Ref<_HTMLBuilder> caside(); + Ref<_HTMLBuilder> caudio(); + Ref<_HTMLBuilder> cb(); + Ref<_HTMLBuilder> cbasefont(); + Ref<_HTMLBuilder> cbdi(); + Ref<_HTMLBuilder> cbdo(); + Ref<_HTMLBuilder> cbig(); + Ref<_HTMLBuilder> cblockquote(); + Ref<_HTMLBuilder> cbody(); + Ref<_HTMLBuilder> cbutton(); + Ref<_HTMLBuilder> ccanvas(); - _HTMLBuilder *ccaption(); - _HTMLBuilder *ccenter(); - _HTMLBuilder *ccite(); - _HTMLBuilder *ccode(); - _HTMLBuilder *ccol(); - _HTMLBuilder *ccolgroup(); - _HTMLBuilder *cdata(); - _HTMLBuilder *cdatalist(); - _HTMLBuilder *cdd(); - _HTMLBuilder *cdel(); - _HTMLBuilder *cdetails(); - _HTMLBuilder *cdfn(); - _HTMLBuilder *cdialog(); - _HTMLBuilder *cdir(); - _HTMLBuilder *cdiv(); - _HTMLBuilder *cdl(); - _HTMLBuilder *cdt(); + Ref<_HTMLBuilder> ccaption(); + Ref<_HTMLBuilder> ccenter(); + Ref<_HTMLBuilder> ccite(); + Ref<_HTMLBuilder> ccode(); + Ref<_HTMLBuilder> ccol(); + Ref<_HTMLBuilder> ccolgroup(); + Ref<_HTMLBuilder> cdata(); + Ref<_HTMLBuilder> cdatalist(); + Ref<_HTMLBuilder> cdd(); + Ref<_HTMLBuilder> cdel(); + Ref<_HTMLBuilder> cdetails(); + Ref<_HTMLBuilder> cdfn(); + Ref<_HTMLBuilder> cdialog(); + Ref<_HTMLBuilder> cdir(); + Ref<_HTMLBuilder> cdiv(); + Ref<_HTMLBuilder> cdl(); + Ref<_HTMLBuilder> cdt(); - _HTMLBuilder *cem(); - _HTMLBuilder *cembed(); - _HTMLBuilder *cfieldset(); - _HTMLBuilder *cfigcaption(); - _HTMLBuilder *cfigure(); - _HTMLBuilder *cfont(); - _HTMLBuilder *cfooter(); - _HTMLBuilder *cform(); - _HTMLBuilder *cframe(); - _HTMLBuilder *cframeset(); - _HTMLBuilder *ch1(); - _HTMLBuilder *ch2(); - _HTMLBuilder *ch3(); - _HTMLBuilder *ch4(); - _HTMLBuilder *ch5(); - _HTMLBuilder *ch6(); - _HTMLBuilder *chead(); - _HTMLBuilder *cheader(); - _HTMLBuilder *chr(); - _HTMLBuilder *chtml(); + Ref<_HTMLBuilder> cem(); + Ref<_HTMLBuilder> cembed(); + Ref<_HTMLBuilder> cfieldset(); + Ref<_HTMLBuilder> cfigcaption(); + Ref<_HTMLBuilder> cfigure(); + Ref<_HTMLBuilder> cfont(); + Ref<_HTMLBuilder> cfooter(); + Ref<_HTMLBuilder> cform(); + Ref<_HTMLBuilder> cframe(); + Ref<_HTMLBuilder> cframeset(); + Ref<_HTMLBuilder> ch1(); + Ref<_HTMLBuilder> ch2(); + Ref<_HTMLBuilder> ch3(); + Ref<_HTMLBuilder> ch4(); + Ref<_HTMLBuilder> ch5(); + Ref<_HTMLBuilder> ch6(); + Ref<_HTMLBuilder> chead(); + Ref<_HTMLBuilder> cheader(); + Ref<_HTMLBuilder> chr(); + Ref<_HTMLBuilder> chtml(); - _HTMLBuilder *ci(); - _HTMLBuilder *ciframe(); - _HTMLBuilder *cimg(); - _HTMLBuilder *cinput(); - _HTMLBuilder *cins(); - _HTMLBuilder *ckbd(); - _HTMLBuilder *clabel(); - _HTMLBuilder *clegend(); - _HTMLBuilder *cli(); - _HTMLBuilder *clink(); - _HTMLBuilder *cmain(); - _HTMLBuilder *cmap(); - _HTMLBuilder *cmark(); - _HTMLBuilder *cmeta(); - _HTMLBuilder *cmeter(); + Ref<_HTMLBuilder> ci(); + Ref<_HTMLBuilder> ciframe(); + Ref<_HTMLBuilder> cimg(); + Ref<_HTMLBuilder> cinput(); + Ref<_HTMLBuilder> cins(); + Ref<_HTMLBuilder> ckbd(); + Ref<_HTMLBuilder> clabel(); + Ref<_HTMLBuilder> clegend(); + Ref<_HTMLBuilder> cli(); + Ref<_HTMLBuilder> clink(); + Ref<_HTMLBuilder> cmain(); + Ref<_HTMLBuilder> cmap(); + Ref<_HTMLBuilder> cmark(); + Ref<_HTMLBuilder> cmeta(); + Ref<_HTMLBuilder> cmeter(); - _HTMLBuilder *cnav(); - _HTMLBuilder *cnoframes(); - _HTMLBuilder *cnoscript(); - _HTMLBuilder *cobject(); - _HTMLBuilder *c_ol(); - _HTMLBuilder *coptgroup(); - _HTMLBuilder *coption(); - _HTMLBuilder *coutput(); - _HTMLBuilder *cp(); - _HTMLBuilder *cparam(); - _HTMLBuilder *cpicture(); - _HTMLBuilder *cpre(); - _HTMLBuilder *cprogress(); - _HTMLBuilder *cq(); - _HTMLBuilder *crp(); + Ref<_HTMLBuilder> cnav(); + Ref<_HTMLBuilder> cnoframes(); + Ref<_HTMLBuilder> cnoscript(); + Ref<_HTMLBuilder> cobject(); + Ref<_HTMLBuilder> c_ol(); + Ref<_HTMLBuilder> coptgroup(); + Ref<_HTMLBuilder> coption(); + Ref<_HTMLBuilder> coutput(); + Ref<_HTMLBuilder> cp(); + Ref<_HTMLBuilder> cparam(); + Ref<_HTMLBuilder> cpicture(); + Ref<_HTMLBuilder> cpre(); + Ref<_HTMLBuilder> cprogress(); + Ref<_HTMLBuilder> cq(); + Ref<_HTMLBuilder> crp(); - _HTMLBuilder *crt(); - _HTMLBuilder *cruby(); - _HTMLBuilder *cs(); - _HTMLBuilder *csamp(); - _HTMLBuilder *cscript(); - _HTMLBuilder *csection(); - _HTMLBuilder *cselect(); - _HTMLBuilder *csmall(); - _HTMLBuilder *csource(); - _HTMLBuilder *cspan(); - _HTMLBuilder *cstrike(); - _HTMLBuilder *cstrong(); - _HTMLBuilder *cstyle(); - _HTMLBuilder *csub(); - _HTMLBuilder *csummary(); - _HTMLBuilder *csup(); + Ref<_HTMLBuilder> crt(); + Ref<_HTMLBuilder> cruby(); + Ref<_HTMLBuilder> cs(); + Ref<_HTMLBuilder> csamp(); + Ref<_HTMLBuilder> cscript(); + Ref<_HTMLBuilder> csection(); + Ref<_HTMLBuilder> cselect(); + Ref<_HTMLBuilder> csmall(); + Ref<_HTMLBuilder> csource(); + Ref<_HTMLBuilder> cspan(); + Ref<_HTMLBuilder> cstrike(); + Ref<_HTMLBuilder> cstrong(); + Ref<_HTMLBuilder> cstyle(); + Ref<_HTMLBuilder> csub(); + Ref<_HTMLBuilder> csummary(); + Ref<_HTMLBuilder> csup(); - _HTMLBuilder *csvg(); - _HTMLBuilder *ctable(); - _HTMLBuilder *ctbody(); - _HTMLBuilder *ctd(); - _HTMLBuilder *ctemplateh(); - _HTMLBuilder *ctextarea(); - _HTMLBuilder *ctfoot(); - _HTMLBuilder *cth(); - _HTMLBuilder *cthead(); - _HTMLBuilder *ctime(); - _HTMLBuilder *ctitle(); - _HTMLBuilder *ctr(); - _HTMLBuilder *ctrack(); - _HTMLBuilder *ctt(); - _HTMLBuilder *cu(); - _HTMLBuilder *cul(); - _HTMLBuilder *cvar(); - _HTMLBuilder *cvideo(); - _HTMLBuilder *cwbr(); + Ref<_HTMLBuilder> csvg(); + Ref<_HTMLBuilder> ctable(); + Ref<_HTMLBuilder> ctbody(); + Ref<_HTMLBuilder> ctd(); + Ref<_HTMLBuilder> ctemplateh(); + Ref<_HTMLBuilder> ctextarea(); + Ref<_HTMLBuilder> ctfoot(); + Ref<_HTMLBuilder> cth(); + Ref<_HTMLBuilder> cthead(); + Ref<_HTMLBuilder> ctime(); + Ref<_HTMLBuilder> ctitle(); + Ref<_HTMLBuilder> ctr(); + Ref<_HTMLBuilder> ctrack(); + Ref<_HTMLBuilder> ctt(); + Ref<_HTMLBuilder> cu(); + Ref<_HTMLBuilder> cul(); + Ref<_HTMLBuilder> cvar(); + Ref<_HTMLBuilder> cvideo(); + Ref<_HTMLBuilder> cwbr(); - _HTMLTag *form_get(); - _HTMLTag *form_post(); - _HTMLBuilder *form_get(const String &action, const String &cls = "", const String &id = ""); - _HTMLBuilder *form_post(const String &action, const String &cls = "", const String &id = ""); + Ref<_HTMLTag> form_get(); + Ref<_HTMLTag> form_post(); + Ref<_HTMLBuilder> form_get(const String &action, const String &cls = "", const String &id = ""); + Ref<_HTMLBuilder> form_post(const String &action, const String &cls = "", const String &id = ""); // will add a csrf token from request - //_HTMLBuilder *form_post(const String &action, Request *request, const String &cls = "", const String &id = ""); + //Ref<_HTMLBuilder> form_post(const String &action, Request *request, const String &cls = "", const String &id = ""); - _HTMLTag *input_button(); - _HTMLTag *input_checkbox(); - _HTMLTag *input_color(); - _HTMLTag *input_date(); - _HTMLTag *input_datetime_local(); - _HTMLTag *input_email(); - _HTMLTag *input_file(); - _HTMLTag *input_hidden(); - _HTMLTag *input_image(); - _HTMLTag *input_month(); - _HTMLTag *input_number(); - _HTMLTag *input_password(); - _HTMLTag *input_radio(); - _HTMLTag *input_range(); - _HTMLTag *input_reset(); - _HTMLTag *input_search(); - _HTMLTag *input_submit(); - _HTMLTag *input_tel(); - _HTMLTag *input_text(); - _HTMLTag *input_time(); - _HTMLTag *input_url(); - _HTMLTag *input_week(); + Ref<_HTMLTag> input_button(); + Ref<_HTMLTag> input_checkbox(); + Ref<_HTMLTag> input_color(); + Ref<_HTMLTag> input_date(); + Ref<_HTMLTag> input_datetime_local(); + Ref<_HTMLTag> input_email(); + Ref<_HTMLTag> input_file(); + Ref<_HTMLTag> input_hidden(); + Ref<_HTMLTag> input_image(); + Ref<_HTMLTag> input_month(); + Ref<_HTMLTag> input_number(); + Ref<_HTMLTag> input_password(); + Ref<_HTMLTag> input_radio(); + Ref<_HTMLTag> input_range(); + Ref<_HTMLTag> input_reset(); + Ref<_HTMLTag> input_search(); + Ref<_HTMLTag> input_submit(); + Ref<_HTMLTag> input_tel(); + Ref<_HTMLTag> input_text(); + Ref<_HTMLTag> input_time(); + Ref<_HTMLTag> input_url(); + Ref<_HTMLTag> input_week(); - _HTMLBuilder *label(const String &pfor, const String &plabel, const String &cls = "", const String &id = ""); + Ref<_HTMLBuilder> label(const String &pfor, const String &plabel, const String &cls = "", const String &id = ""); - _HTMLBuilder *input_button(const String &name, const String &value = "", const String &cls = "", const String &id = ""); - _HTMLBuilder *input_checkbox(const String &name, const String &value = "", const bool checked = false, const String &cls = "", const String &id = ""); - _HTMLBuilder *input_color(const String &name, const String &value = "", const String &cls = "", const String &id = ""); - _HTMLBuilder *input_date(const String &name, const String &value = "", const String &cls = "", const String &id = "", const String &date_min = "", const String &date_max = "", const String &date_step = ""); - _HTMLBuilder *input_datetime_local(const String &name, const String &value = "", const String &cls = "", const String &id = "", const String &date_min = "", const String &date_max = "", const String &date_step = ""); - _HTMLBuilder *input_email(const String &name, const String &value = "", const String &placeholder = "", const String &cls = "", const String &id = ""); - _HTMLBuilder *input_file(const String &name, const String &accept = "", const String &cls = "", const String &id = ""); - _HTMLBuilder *input_image(const String &name, const String &src = "", const String &alt = "", const String &cls = "", const String &id = "", const int width = 0, const int height = 0); - _HTMLBuilder *input_month(const String &name, const String &cls = "", const String &id = ""); - _HTMLBuilder *input_number(const String &name, const String & = "", const String & = "", const String &cls = "", const String &id = ""); - _HTMLBuilder *input_password(const String &name, const String &value = "", const String &placeholder = "", const String &cls = "", const String &id = "", const String &minlength = "", const String &maxlength = "", const String &size = ""); - _HTMLBuilder *input_radio(const String &name, const String &value = "", const String &cls = "", const String &id = ""); - _HTMLBuilder *input_range(const String &name, const String &value = "", const String &vmin = "", const String &vmax = "", const String &vstep = "", const String &cls = "", const String &id = ""); - _HTMLBuilder *input_reset(const String &name, const String &value = "", const String &cls = "", const String &id = ""); - _HTMLBuilder *input_search(const String &name, const String &value = "", const String &placeholder = "", const String &cls = "", const String &id = "", const String &minlength = "", const String &maxlength = "", const String &size = "", const String &pattern = ""); - _HTMLBuilder *input_submit(const String &value, const String &cls = "", const String &id = ""); - _HTMLBuilder *input_tel(const String &name, const String &value = "", const String &placeholder = "", const String &cls = "", const String &id = "", const String &minlength = "", const String &maxlength = "", const String &size = "", const String &pattern = ""); - _HTMLBuilder *input_text(const String &name, const String &value = "", const String &placeholder = "", const String &cls = "", const String &id = "", const String &minlength = "", const String &maxlength = "", const String &size = ""); - _HTMLBuilder *input_time(const String &name, const String &cls = "", const String &id = "", const String &vmin = "", const String &vmax = "", const String &vstep = ""); - _HTMLBuilder *input_url(const String &name, const String &value = "", const String &placeholder = "", const String &cls = "", const String &id = "", const String &minlength = "", const String &maxlength = "", const String &size = ""); - _HTMLBuilder *input_week(const String &name, const String &cls = "", const String &id = "", const String &vmin = "", const String &vmax = ""); - _HTMLBuilder *input_hidden(const String &name, const String &value); + Ref<_HTMLBuilder> input_button(const String &name, const String &value = "", const String &cls = "", const String &id = ""); + Ref<_HTMLBuilder> input_checkbox(const String &name, const String &value = "", const bool checked = false, const String &cls = "", const String &id = ""); + Ref<_HTMLBuilder> input_color(const String &name, const String &value = "", const String &cls = "", const String &id = ""); + Ref<_HTMLBuilder> input_date(const String &name, const String &value = "", const String &cls = "", const String &id = "", const String &date_min = "", const String &date_max = "", const String &date_step = ""); + Ref<_HTMLBuilder> input_datetime_local(const String &name, const String &value = "", const String &cls = "", const String &id = "", const String &date_min = "", const String &date_max = "", const String &date_step = ""); + Ref<_HTMLBuilder> input_email(const String &name, const String &value = "", const String &placeholder = "", const String &cls = "", const String &id = ""); + Ref<_HTMLBuilder> input_file(const String &name, const String &accept = "", const String &cls = "", const String &id = ""); + Ref<_HTMLBuilder> input_image(const String &name, const String &src = "", const String &alt = "", const String &cls = "", const String &id = "", const int width = 0, const int height = 0); + Ref<_HTMLBuilder> input_month(const String &name, const String &cls = "", const String &id = ""); + Ref<_HTMLBuilder> input_number(const String &name, const String & = "", const String & = "", const String &cls = "", const String &id = ""); + Ref<_HTMLBuilder> input_password(const String &name, const String &value = "", const String &placeholder = "", const String &cls = "", const String &id = "", const String &minlength = "", const String &maxlength = "", const String &size = ""); + Ref<_HTMLBuilder> input_radio(const String &name, const String &value = "", const String &cls = "", const String &id = ""); + Ref<_HTMLBuilder> input_range(const String &name, const String &value = "", const String &vmin = "", const String &vmax = "", const String &vstep = "", const String &cls = "", const String &id = ""); + Ref<_HTMLBuilder> input_reset(const String &name, const String &value = "", const String &cls = "", const String &id = ""); + Ref<_HTMLBuilder> input_search(const String &name, const String &value = "", const String &placeholder = "", const String &cls = "", const String &id = "", const String &minlength = "", const String &maxlength = "", const String &size = "", const String &pattern = ""); + Ref<_HTMLBuilder> input_submit(const String &value, const String &cls = "", const String &id = ""); + Ref<_HTMLBuilder> input_tel(const String &name, const String &value = "", const String &placeholder = "", const String &cls = "", const String &id = "", const String &minlength = "", const String &maxlength = "", const String &size = "", const String &pattern = ""); + Ref<_HTMLBuilder> input_text(const String &name, const String &value = "", const String &placeholder = "", const String &cls = "", const String &id = "", const String &minlength = "", const String &maxlength = "", const String &size = ""); + Ref<_HTMLBuilder> input_time(const String &name, const String &cls = "", const String &id = "", const String &vmin = "", const String &vmax = "", const String &vstep = ""); + Ref<_HTMLBuilder> input_url(const String &name, const String &value = "", const String &placeholder = "", const String &cls = "", const String &id = "", const String &minlength = "", const String &maxlength = "", const String &size = ""); + Ref<_HTMLBuilder> input_week(const String &name, const String &cls = "", const String &id = "", const String &vmin = "", const String &vmax = ""); + Ref<_HTMLBuilder> input_hidden(const String &name, const String &value); - _HTMLBuilder *csrf_token(const String &token); - //_HTMLBuilder *csrf_token(Request *request); + Ref<_HTMLBuilder> csrf_token(const String &token); + //Ref<_HTMLBuilder> csrf_token(Request *request); void f(); // write - _HTMLBuilder *w(const String &val); + Ref<_HTMLBuilder> w(const String &val); - _HTMLBuilder *wn(const double val, int p_decimals = -1); - _HTMLBuilder *wns(const double val); - _HTMLBuilder *wr(const double val, const bool p_trailing = true); - _HTMLBuilder *wi(const int64_t val, const int base = 10, const bool capitalize_hex = false); - _HTMLBuilder *wui(const uint64_t val, const int base = 10, const bool capitalize_hex = false); - _HTMLBuilder *wbn(const bool val); - _HTMLBuilder *wbs(const bool val); + Ref<_HTMLBuilder> wn(const double val, int p_decimals = -1); + Ref<_HTMLBuilder> wns(const double val); + Ref<_HTMLBuilder> wr(const double val, const bool p_trailing = true); + Ref<_HTMLBuilder> wi(const int64_t val, const int base = 10, const bool capitalize_hex = false); + Ref<_HTMLBuilder> wui(const uint64_t val, const int base = 10, const bool capitalize_hex = false); + Ref<_HTMLBuilder> wbn(const bool val); + Ref<_HTMLBuilder> wbs(const bool val); // write_escaped - _HTMLBuilder *we(const String &val); + Ref<_HTMLBuilder> we(const String &val); - _HTMLBuilder *write_tag(); + Ref<_HTMLBuilder> write_tag(); _HTMLBuilder(); virtual ~_HTMLBuilder(); @@ -556,7 +556,7 @@ public: protected: static void _bind_methods(); - _HTMLTag tag; + Ref<_HTMLTag> tag; }; #endif