SPA
This commit is contained in:
parent
f16394f258
commit
9651d84dc4
8 changed files with 239 additions and 207 deletions
|
|
@ -142,6 +142,10 @@ export namespace Crafter::CppDOMBindings {
|
|||
|
||||
// Value property functions
|
||||
__attribute__((import_module("env"), import_name("getValue"))) const char* GetValue(void* ptr);
|
||||
__attribute__((import_module("env"), import_name("getPathName"))) const char* GetPathName();
|
||||
__attribute__((import_module("env"), import_name("addPopStateListener"))) void AddPopStateListener(int id);
|
||||
__attribute__((import_module("env"), import_name("removePopStateListener"))) void RemovePopStateListener(int id);
|
||||
__attribute__((import_module("env"), import_name("pushState"))) void PushState(const char* data, std::int32_t dataLength, const char* title, std::int32_t titleLength, const char* url, std::int32_t urlLength);
|
||||
__attribute__((import_module("env"), import_name("setValue"))) void SetValue(void* ptr, const char* value, std::int32_t valueLength);
|
||||
void SetValue(void* ptr, const std::string_view value) {
|
||||
SetValue(ptr, value.data(), value.size());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue