(Webview::JavaScriptFunction("Math.pow", a, b));
56 | promise.resolve(pow.get());
57 | }));
58 |
59 | webview.setCloseCallback([] {
60 | //* If we return `true` the window will not close!
61 | return true;
62 | });
63 |
64 | webview.setUrl("https://ddg.gg");
65 | webview.show();
66 | webview.run();
67 |
68 | return 0;
69 | }
--------------------------------------------------------------------------------
/examples/embedded/CMakeLists.txt:
--------------------------------------------------------------------------------
1 | cmake_minimum_required(VERSION 3.1)
2 | project(webview-example VERSION 0.1)
3 |
4 | add_executable(webview-example "main.cpp")
5 | add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../../ ${CMAKE_CURRENT_SOURCE_DIR}/../../example_build EXCLUDE_FROM_ALL)
6 |
7 | target_link_libraries(webview-example webview)
8 | target_include_directories(webview PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) # This directory contains the embedded folder - thats why we have to add it as a include directory
9 |
10 | target_compile_features(webview-example PUBLIC cxx_std_17)
11 | set_target_properties(webview-example PROPERTIES CMAKE_CXX_STANDARD 17)
12 | set_target_properties(webview-example PROPERTIES CMAKE_CXX_EXTENSIONS Off)
13 | set_target_properties(webview-example PROPERTIES CMAKE_CXX_STANDARD_REQUIRED On)
14 | set_target_properties(webview-example PROPERTIES VERSION ${PROJECT_VERSION})
15 | set_target_properties(webview-example PROPERTIES PROJECT_NAME ${PROJECT_NAME})
--------------------------------------------------------------------------------
/examples/embedded/README.md:
--------------------------------------------------------------------------------
1 | # Embedded Example
2 |
3 | The `embedded` folder was generated by executing:
4 | ```bash
5 | embed_helper ./dist
6 | ```
7 |
8 | ---
9 |
10 | The most important part of the `CMakeLists.txt` is the line
11 | ```cmake
12 | target_include_directories(webview PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) # This directory contains the embedded folder - thats why we have to add it as a include directory
13 | ```
--------------------------------------------------------------------------------
/examples/embedded/dist/img_logo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Soundux/webviewpp/7843623ec88751812ed6dbdef75979397d023fac/examples/embedded/dist/img_logo.gif
--------------------------------------------------------------------------------
/examples/embedded/dist/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Drag the W3Schools image into the rectangle:
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/examples/embedded/dist/index.js:
--------------------------------------------------------------------------------
1 | function allowDrop(ev) {
2 | ev.preventDefault();
3 | }
4 |
5 | function drag(ev) {
6 | ev.dataTransfer.setData("text", ev.target.id);
7 | }
8 |
9 | function drop(ev) {
10 | ev.preventDefault();
11 | var data = ev.dataTransfer.getData("text");
12 | ev.target.appendChild(document.getElementById(data));
13 | }
14 |
--------------------------------------------------------------------------------
/examples/embedded/dist/style.css:
--------------------------------------------------------------------------------
1 | #div1 {
2 | width: 350px;
3 | height: 70px;
4 | padding: 10px;
5 | border: 1px solid #aaaaaa;
6 | }
7 |
--------------------------------------------------------------------------------
/examples/embedded/embedded/img_logo.gif.hpp:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "webview_base.hpp"
3 | namespace Webview::Embedded {
4 | inline unsigned char embed_file_img_logo_gif[] = {0x47,0x49,0x46,0x38,0x39,0x61,0x50,0x01,0x45,0x00,0xe6,0x00,0x00,0xe0,0xe0,0xe0,0xff,0xff,0xff,0xca,0xc9,0xc9,0x90,0xc1,0x40,0x54,0x54,0x53,0x8f,0x8c,0x8c,0x70,0x6e,0x6d,0xb3,0xb1,0xb1,0xb8,0xcf,0x91,0xa4,0xc8,0x69,0xfb,0xfb,0xfb,0x96,0xc2,0x48,0xdb,0xde,0xd6,0xcd,0xd8,0xb8,0xaf,0xcb,0x7e,0xec,0xeb,0xeb,0xc2,0xd4,0xa4,0xf0,0xee,0xee,0xd3,0xd2,0xd1,0xa0,0x9e,0x9e,0xf4,0xf3,0xf3,0xb4,0xce,0x88,0x9b,0xc4,0x53,0x5a,0x5a,0x59,0xbe,0xbc,0xbc,0x9f,0xc6,0x5d,0xd6,0xdc,0xcc,0x7f,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0xb1,0xc5,0x90,0xd4,0xd2,0xd3,0xf3,0xf3,0xf3,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x21,0xf9,0x04,0x01,0x00,0x00,0x00,0x00,0x2c,0x00,0x00,0x00,0x00,0x50,0x01,0x45,0x00,0x00,0x07,0xff,0x80,0x00,0x82,0x83,0x84,0x85,0x86,0x87,0x88,0x89,0x00,0x47,0x5a,0x44,0x39,0x03,0x90,0x49,0x44,0x47,0x8a,0x95,0x96,0x97,0x98,0x99,0x9a,0x9b,0x9c,0x9d,0x9e,0x9f,0xa0,0xa1,0xa2,0xa3,0xa4,0x9a,0x52,0x3e,0x4c,0x60,0x90,0xab,0xac,0x3d,0x4a,0xa5,0xb0,0xb1,0xb2,0xb3,0xb4,0xb5,0xb6,0xb7,0xb8,0x8b,0x4a,0x44,0x49,0xac,0xbe,0xbf,0x03,0x51,0xb9,0xc3,0xc4,0xc5,0xc6,0xc7,0xc8,0xb3,0xa7,0x4c,0x3d,0xc0,0xce,0xbe,0x39,0xc9,0xd2,0xd3,0xd4,0xd5,0xd6,0xa5,0x47,0xbb,0xbd,0xcf,0xdc,0xbf,0xc2,0xd7,0xe0,0xe1,0xe2,0xe3,0xc4,0x43,0xcb,0xcd,0xdd,0xe9,0xbf,0x3e,0xe4,0xed,0xee,0xef,0xf0,0x95,0x51,0x4a,0x5e,0xdb,0xea,0xf7,0xbf,0xd1,0xf1,0xfb,0xfc,0xfd,0xc9,0xe6,0x3e,0x72,0xa0,0xc3,0x47,0x10,0x98,0xbf,0x83,0x08,0x13,0x8e,0x1a,0x42,0xcf,0x5e,0x41,0x7c,0x60,0x72,0x48,0x1c,0x08,0xe9,0x9b,0xc2,0x8b,0x18,0x33,0x12,0x1a,0x42,0x84,0xe2,0x43,0x75,0x4c,0xb4,0x0c,0x29,0x74,0xc4,0x07,0xba,0x31,0x1a,0x53,0xaa,0xf4,0xe7,0xc1,0xc2,0x47,0x82,0x09,0x34,0x28,0x62,0x00,0x62,0x80,0x83,0x95,0x38,0x73,0x8e,0x63,0xe0,0xf2,0xe5,0x3d,0x16,0x98,0x1c,0x58,0xd0,0x49,0xb4,0xa8,0x34,0x04,0x3e,0xef,0x41,0xd0,0x04,0x82,0x81,0xd1,0xa7,0x50,0x6f,0x65,0x48,0x9a,0xae,0x42,0x21,0x06,0x2c,0x40,0x24,0x48,0x00,0xa2,0xc1,0x55,0x99,0x51,0xc3,0x8a,0x1d,0x45,0xb5,0xdb,0x02,0xa7,0x83,0x3c,0x2c,0xf8,0x75,0x73,0xac,0xdb,0xb7,0xa0,0xff,0xca,0x72,0xb3,0x3a,0x48,0xc3,0x5a,0x60,0x40,0xad,0x1d,0x20,0xc0,0xb7,0xaf,0xdf,0xbf,0x06,0x60,0x48,0x48,0x56,0xc0,0x6f,0x81,0x77,0x7f,0x0f,0xc0,0xbd,0x24,0xf7,0x99,0xd7,0x41,0x0e,0x9e,0x0d,0xd5,0xfb,0xb7,0x72,0xe5,0x0b,0x18,0x90,0x15,0xee,0x7b,0xd8,0x5d,0xe2,0xc5,0x96,0x12,0x34,0x36,0x48,0xe8,0xae,0x33,0x0f,0x94,0x2d,0xab,0xe6,0x7b,0x61,0xb0,0xb1,0xcd,0x7c,0x3b,0xb7,0xfb,0x0c,0x5a,0x51,0x85,0xd1,0xbf,0x0a,0x75,0x7b,0x4c,0x6d,0xef,0xea,0xd5,0xb2,0x89,0xc1,0x26,0x10,0x7c,0x1c,0xed,0xda,0x88,0x20,0xe0,0xf6,0x55,0xf7,0xc4,0x6e,0x6b,0x12,0x0e,0x48,0x9f,0x4e,0xfd,0x00,0x0c,0x03,0x95,0x57,0x1c,0x1b,0x5e,0x5c,0xdc,0x71,0xe4,0x86,0x34,0x2c,0x67,0x95,0xb5,0x67,0x37,0xd4,0xfc,0x5c,0x54,0xde,0x6e,0x18,0xb1,0x5f,0xc5,0xe0,0x11,0x99,0x1e,0xbf,0x6a,0xeb,0xb3,0x04,0xa0,0x0a,0xe8,0xd7,0x5f,0xe8,0xc0,0xfe,0x02,0xf0,0x0d,0xf2,0x5f,0x77,0x8a,0x98,0xb0,0x5e,0x21,0x18,0xc0,0x30,0xe0,0x82,0x13,0x20,0x12,0xdd,0x82,0xfb,0x8d,0x20,0xc8,0x70,0x06,0x2c,0x68,0x82,0x6b,0x89,0x48,0x30,0xc1,0x06,0x06,0x74,0x68,0x80,0x0b,0x30,0x48,0x58,0x89,0x09,0x24,0x78,0xd8,0x61,0x01,0x99,0x1d,0xf2,0x9d,0x20,0x09,0x42,0xf8,0x5f,0x83,0x99,0x34,0x80,0xc0,0x8c,0x34,0xd2,0xc8,0x1b,0x21,0x10,0x38,0xb0,0xd5,0x8e,0x08,0x80,0x65,0x48,0x8d,0x40,0x06,0x19,0xe4,0x09,0x68,0x21,0x52,0x13,0x7d,0x09,0xb0,0x80,0x9e,0xff,0x72,0xc0,0x2c,0xe0,0x63,0x27,0x7f,0x15,0xc2,0x5d,0x21,0x51,0x66,0xe2,0x9b,0x5f,0x84,0x98,0xc0,0xc1,0x6f,0x7d,0x19,0x60,0x88,0x04,0x1b,0x70,0x09,0xdf,0x70,0xab,0x6d,0x20,0xa2,0x21,0x05,0x5c,0xb0,0x1a,0x09,0x18,0x16,0xa2,0xe5,0x6a,0x06,0x9c,0x39,0xc8,0x77,0x6f,0x72,0x49,0x80,0x97,0x96,0x30,0x80,0xc0,0x7c,0xbf,0x20,0x50,0x08,0x0b,0x7c,0xb2,0x02,0xc2,0x93,0x82,0x50,0xe5,0x40,0x91,0x85,0x20,0x55,0x50,0x06,0x0e,0x28,0xfa,0x8c,0x9f,0x83,0x34,0x00,0xcc,0xa1,0xa1,0x54,0x29,0x60,0x7b,0x84,0x58,0x7a,0x09,0x99,0x78,0x02,0x70,0xa5,0x9d,0x9d,0xb2,0xa8,0xa6,0x98,0x13,0xda,0xc9,0x9a,0x9c,0x00,0x48,0xb0,0x82,0x9d,0x1c,0xa4,0x48,0x48,0x98,0x5c,0x5e,0x00,0xe3,0x9c,0xef,0x0d,0x82,0x81,0xa9,0x7c,0x85,0x8a,0x08,0x03,0x53,0x75,0x03,0xa9,0x20,0x91,0x99,0x85,0xde,0x20,0x65,0x65,0x80,0x88,0xa4,0xf8,0x50,0x2a,0x48,0xa0,0xac,0xfc,0x0a,0x00,0xb2,0x90,0x24,0x49,0xa8,0x27,0x9a,0x02,0x30,0x65,0xa6,0x58,0x5e,0x22,0x01,0x0c,0x95,0xcd,0xba,0x2a,0xae,0xa1,0x4a,0x30,0x2a,0xa9,0xd6,0xe2,0x4a,0x80,0x0b,0x85,0xa8,0x67,0x2a,0x07,0x6d,0x72,0x8b,0xab,0xab,0x00,0x1c,0x87,0x1d,0xb8,0x96,0xf4,0xea,0xeb,0x20,0xb7,0xa9,0xb3,0xc0,0xb0,0x00,0xc8,0x95,0xd7,0x55,0x30,0x11,0x12,0xac,0x33,0x4b,0x0d,0xe2,0xa8,0x4d,0xa5,0x54,0x7b,0x2d,0xad,0x7d,0x11,0xf2,0x29,0xa8,0x83,0x48,0xf0,0x17,0x07,0x2e,0xea,0x37,0x2b,0xff,0x00,0xb0,0xfa,0xb5,0x02,0x09,0x0b,0x8a,0x38,0x1c,0x07,0x26,0xce,0xeb,0x17,0x86,0x13,0xfc,0x75,0x01,0x09,0xd2,0xc1,0xb0,0xa5,0x5f,0x1b,0x0c,0x32,0xc2,0xb8,0x7c,0x6d,0x60,0xc2,0x01,0x13,0x88,0xcc,0x17,0x07,0xd8,0xf6,0x15,0xe0,0xc4,0x15,0x17,0x70,0xf1,0x21,0x07,0x43,0x62,0x41,0x05,0x41,0x3e,0xe6,0x01,0x5b,0x27,0x34,0x00,0x81,0x68,0xac,0xe0,0x47,0x6c,0xd3,0x3b,0x26,0x60,0xde,0x00,0x16,0xec,0x38,0xf5,0x00,0xc6,0x1e,0x62,0x6f,0x3a,0x4e,0x0b,0x72,0xb4,0x33,0x67,0x11,0x72,0x24,0x24,0x59,0x8f,0xa2,0x30,0xa6,0x0c,0xf3,0xe5,0xb0,0xb9,0x2b,0x60,0xf8,0x70,0x9b,0x8a,0x8c,0xf0,0xd7,0x0a,0x01,0x22,0xb2,0xb0,0x20,0x0f,0x07,0xb8,0x32,0x6b,0xf0,0xaa,0xfa,0x97,0x6b,0x19,0xf3,0xf5,0x73,0xe0,0x04,0xcc,0x4a,0xdb,0xc3,0xa8,0x6e,0x32,0xdf,0x02,0x05,0x27,0x32,0x30,0x24,0x8d,0x03,0xeb,0x0b,0x6f,0xcc,0x11,0x72,0xb0,0xb3,0x41,0x23,0xf2,0x78,0x37,0x5d,0x4b,0x0e,0x8c,0xb3,0x0c,0xf0,0x89,0x28,0x28,0x67,0x73,0x46,0x65,0xb6,0x78,0x9b,0x5b,0xf7,0xdb,0x98,0x0c,0x77,0x41,0xe2,0x68,0xa2,0x3d,0x88,0xcd,0xf0,0xdd,0xea,0xd7,0xcf,0x00,0xc8,0x7d,0xbb,0x20,0x30,0xb7,0x6c,0xc8,0xde,0x04,0xf8,0x1e,0x6f,0xad,0x9e,0xfe,0x05,0x3b,0x26,0xce,0xb1,0x72,0xe3,0x21,0x0c,0xf8,0xe2,0xac,0x20,0x3c,0xb1,0x42,0x57,0xbf,0xac,0x24,0xda,0x2c,0x21,0xcd,0x57,0x7f,0x08,0x93,0x03,0x30,0xdb,0xf4,0x55,0x5b,0x43,0xf2,0x7c,0xff,0xd0,0x03,0xb0,0x80,0x40,0x05,0x8d,0x9e,0xf0,0x49,0xe9,0xb1,0x9d,0xde,0xf0,0x20,0x0f,0x73,0x29,0x9b,0xed,0x7d,0x51,0xcc,0x20,0xdc,0x36,0x0b,0xaf,0xc8,0xdd,0x82,0xd0,0x2e,0x88,0xbb,0xac,0x41,0x84,0xba,0x62,0x06,0x00,0xfa,0xf1,0x05,0x5e,0x83,0x00,0x20,0x01,0x70,0x26,0x08,0xda,0x48,0xcc,0x2f,0xf6,0x1b,0xd0,0x04,0xe0,0x06,0x34,0x56,0x94,0x2d,0x11,0xd0,0x82,0xc4,0xb4,0x00,0x90,0xaf,0x68,0x3d,0x6d,0x15,0xd6,0x5b,0xc5,0xf3,0x2a,0x17,0x1e,0x04,0x34,0x80,0x01,0x5f,0x7b,0xc6,0xf4,0x08,0xc1,0x02,0x1e,0x11,0xca,0x2e,0xe9,0xb0,0x00,0xbf,0x32,0xc1,0x3e,0xe2,0xb8,0x4f,0x6d,0x2e,0xab,0xd8,0x06,0x60,0xc6,0x97,0x00,0xf1,0x70,0x4d,0x84,0x00,0x1e,0x81,0x62,0x67,0xba,0x42,0xf8,0xaf,0x5c,0x5d,0xb2,0x9b,0x5f,0xbc,0xf4,0x30,0x44,0x34,0xb1,0x81,0xc4,0x03,0xc0,0x0f,0x55,0xc3,0x26,0x45,0x30,0x0d,0x12,0x6d,0x51,0xc4,0xc1,0x26,0x63,0x88,0xe4,0x81,0xb0,0x50,0xda,0x33,0xd8,0xf5,0x08,0x41,0x42,0x2b,0x72,0x63,0x83,0x33,0x09,0xdf,0x33,0xf6,0xc5,0x89,0x1a,0x16,0xa7,0x5a,0x8a,0xf0,0x9b,0x5f,0xd0,0x25,0x08,0x12,0x98,0x4b,0x78,0x7f,0x31,0xc1,0xa6,0x64,0xd7,0x3f,0xe2,0xd9,0x4c,0x57,0x97,0x4a,0x22,0x99,0x9c,0x68,0xa9,0xe3,0x90,0xe9,0x37,0x74,0x44,0xc4,0x15,0x07,0xf0,0xbc,0x0a,0xd6,0xe7,0x58,0x24,0x2c,0x23,0x00,0x2e,0xa7,0x9b,0x30,0x2a,0x02,0x86,0xc0,0x88,0x9c,0xfa,0x2a,0xc1,0xab,0x80,0x6d,0xc2,0xff,0x8d,0x37,0x24,0x80,0x26,0x0c,0xe4,0x97,0x0b,0x44,0xcc,0x66,0x5c,0x4a,0x11,0xcc,0x70,0x77,0x08,0xfe,0x01,0xe0,0x88,0x76,0x4c,0x62,0x2b,0x97,0x08,0x00,0x52,0xbe,0xcf,0x10,0x4f,0x1c,0x9e,0xce,0x5e,0x65,0x2e,0x04,0x12,0x62,0x91,0x8d,0xfc,0xd1,0xf7,0x0e,0x91,0xc1,0x01,0x7c,0x10,0x12,0x21,0x14,0x5f,0x25,0xbf,0x68,0x09,0x0d,0x2c,0x72,0x00,0x09,0x58,0x9e,0x05,0x9a,0x92,0x88,0x13,0x5c,0x4d,0x1d,0x68,0x4c,0x04,0x28,0x73,0x86,0x43,0x1a,0x56,0x0b,0x03,0x13,0x80,0x10,0xe1,0x3a,0x63,0x33,0x12,0xec,0xb1,0x88,0x84,0x38,0xe2,0xc7,0x10,0x11,0x38,0x74,0x21,0xee,0x10,0x25,0xeb,0x8b,0x29,0xa1,0xb8,0x4b,0x42,0x80,0x53,0x9c,0x7f,0x19,0x22,0x07,0x87,0xa9,0x08,0x2f,0x42,0x62,0x74,0x82,0x38,0x58,0xd9,0x24,0x49,0x49,0x32,0x5a,0xb2,0x99,0x0d,0x48,0x28,0x40,0x99,0x64,0x01,0x08,0x20,0x8a,0x01,0x10,0x50,0xe3,0x3d,0x96,0x67,0x89,0x6d,0xa6,0x4d,0x94,0x99,0xb0,0xe5,0x2d,0x2d,0xa1,0x40,0x3a,0xc6,0xf2,0x66,0x14,0x24,0x62,0xfb,0x8c,0x48,0x3c,0x8d,0x12,0xa0,0x6e,0x82,0x10,0x97,0x5f,0x60,0x40,0xcf,0x91,0x92,0xb4,0x2f,0x89,0x5c,0x91,0x22,0xe2,0x99,0xab,0x44,0x70,0x4f,0x83,0x95,0x10,0x0f,0x2b,0x22,0x37,0x88,0xad,0x65,0x91,0xa0,0x63,0x3c,0xa6,0x31,0x6d,0x9a,0x09,0xb5,0xf8,0xc2,0x6a,0x54,0xf9,0x17,0x26,0xf2,0x48,0x08,0xfe,0xc1,0x31,0x11,0x23,0xf8,0x96,0x3c,0x33,0x41,0xd3,0x73,0xb1,0xe8,0x2f,0xfa,0xff,0x53,0x22,0x3a,0x67,0x17,0x45,0x98,0xb5,0xad,0x10,0x84,0x13,0xd1,0x00,0x09,0x80,0x99,0x42,0x54,0xb5,0x70,0x17,0x45,0x69,0x81,0x68,0xb9,0x2b,0x5f,0x64,0x00,0xa0,0x85,0x58,0x64,0xd8,0x58,0xe8,0x8b,0x4d,0x52,0x8f,0x99,0x01,0x0d,0x2a,0x18,0xf1,0x6a,0x88,0x0c,0xf0,0xf4,0x58,0xde,0x93,0x0b,0x45,0x2b,0x01,0xbc,0x0b,0x6c,0x60,0x3f,0x7f,0x1c,0x50,0x95,0x30,0x10,0xb2,0xc6,0xa2,0x92,0x2f,0x89,0xac,0x8e,0x64,0x27,0x00,0x33,0xd9,0xa0,0x92,0x03,0x1c,0x93,0xac,0x6b,0x5c,0x79,0x44,0x24,0xf6,0x65,0x05,0x7a,0x2c,0x20,0x2a,0x85,0xf7,0x30,0x59,0x0d,0x66,0x04,0x1f,0xbd,0x19,0x37,0x4f,0x6a,0x2b,0xc9,0x52,0x67,0x02,0x42,0x14,0xc4,0xd2,0xb6,0x32,0xbd,0xcd,0x2d,0x80,0x68,0x49,0x4b,0x68,0x42,0xc1,0xe2,0x4f,0xaa,0x15,0xcc,0x03,0x9b,0xe3,0xe2,0x5d,0x91,0x69,0x39,0xbd,0x0e,0x77,0xa8,0x9a,0x1b,0x40,0x05,0xe0,0xea,0xb5,0xcd,0xe1,0x63,0x01,0x20,0x40,0xc0,0x33,0x7f,0xf1,0x24,0xe6,0x12,0x22,0xb5,0xe6,0x3a,0x50,0xfc,0x4c,0xb5,0xb3,0xec,0x86,0xb6,0x80,0xb8,0x1a,0x13,0x1f,0x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d,0x60,0x82,0x86,0x28,0xb4,0x87,0x5c,0xc0,0x4a,0x5b,0x15,0xc0,0x05,0x81,0x4e,0x51,0xcd,0x3c,0x84,0x3b,0x40,0x77,0x28,0xcb,0x07,0xd8,0x40,0x61,0x19,0x5d,0x09,0xd4,0x96,0x38,0x30,0x21,0x0d,0x99,0xab,0x2c,0x5d,0xe8,0x9f,0xcd,0xb6,0xce,0x87,0xd0,0x00,0x0b,0x74,0x14,0xb5,0x1d,0xfd,0x15,0xb8,0x53,0x83,0xae,0x43,0x0f,0xd1,0xea,0x42,0x9c,0x3a,0x01,0x3c,0xad,0xb5,0x19,0x9f,0x91,0x81,0xa9,0x81,0xa0,0x02,0x09,0x8e,0xe8,0x09,0x32,0xd0,0x00,0xe8,0x4a,0x2d,0x79,0x3e,0x16,0x84,0x06,0x20,0xff,0x30,0xa3,0x13,0x1a,0x22,0x58,0x83,0x8d,0x8f,0xb4,0x8b,0x42,0x3e,0x41,0xad,0x3a,0x32,0xd2,0xb5,0xc0,0x09,0x12,0x80,0x94,0x3a,0x4b,0x97,0xdb,0x06,0x5e,0xc5,0x5f,0x15,0x31,0xb0,0x60,0x4e,0xfb,0xdc,0x38,0x29,0xe6,0x7f,0xd1,0xb7,0x2f,0x5c,0x13,0x1b,0x12,0xc5,0xce,0x11,0x04,0x12,0x7c,0x60,0xc6,0x5d,0x42,0x03,0xf7,0x05,0x01,0xba,0xf7,0x4d,0x94,0xec,0xd9,0x04,0x01,0x91,0xb1,0x26,0xbc,0x77,0x5c,0x01,0x10,0x9c,0xe0,0x7c,0x64,0x53,0xc7,0x9e,0x11,0xa1,0x81,0x3d,0x1d,0x95,0xdf,0x10,0xc7,0xc9,0x54,0x70,0x5d,0xb5,0x01,0x40,0x6b,0xde,0xb7,0xed,0x5e,0x8b,0xc1,0xe6,0x00,0x08,0x18,0x4d,0x46,0x65,0x86,0x66,0xc4,0x47,0xae,0x91,0x60,0x01,0xbc,0x02,0x05,0x07,0xb9,0x05,0x36,0x3e,0x9e,0x64,0x93,0xfc,0xe5,0xfd,0x60,0x01,0x24,0x7e,0x0d,0x28,0xfa,0x10,0x64,0xdc,0x30,0xcf,0xb9,0x3b,0xbe,0xc6,0x72,0x9b,0xbb,0x55,0xe7,0x40,0xe7,0x87,0xcf,0x1f,0xc2,0x85,0x2c,0x04,0xfd,0xe8,0xef,0x00,0xc2,0xd0,0xf1,0x01,0x84,0x2d,0x20,0xfd,0xe9,0xe4,0x70,0xc2,0xd2,0xbb,0x11,0x86,0x20,0x18,0x1d,0xea,0x58,0x0f,0xc7,0x12,0xa6,0xee,0x0b,0x2e,0x34,0xc1,0x09,0x3f,0xc8,0xba,0xd8,0xc5,0xb1,0x05,0xae,0x57,0x5d,0x0c,0x3a,0x18,0xbb,0xda,0xc7,0x61,0x04,0xfa,0x18,0xe1,0xeb,0x61,0x5f,0xbb,0xdc,0xc7,0x11,0x84,0xd1,0x00,0x21,0x08,0x4b,0x48,0xfb,0xdc,0xf7,0x3e,0x0e,0x1d,0x24,0xe5,0xed,0x55,0x88,0x3b,0xdf,0x07,0x4f,0x8e,0xff,0xba,0x13,0xe4,0xee,0x79,0x27,0xbc,0xe2,0x93,0xde,0x0d,0xc0,0x0b,0x7e,0xf1,0x90,0x77,0x47,0x15,0xda,0xce,0x0a,0x20,0x38,0x21,0xf1,0x91,0xcf,0xfc,0x3e,0x74,0xf0,0x83,0x1f,0xe8,0x5d,0xf3,0xa0,0x7f,0x87,0x02,0x46,0x4f,0xfa,0xd2,0x93,0x3e,0x06,0x0a,0xe8,0x40,0x0c,0x62,0xa0,0xfa,0xd4,0x9b,0xfe,0xf5,0xa3,0x0f,0xbd,0xec,0x37,0x61,0xfa,0x0e,0x74,0x40,0x05,0x2a,0xa0,0x80,0xee,0x5b,0xd0,0x82,0x19,0xcc,0x20,0x02,0xc0,0x8f,0x40,0x08,0x86,0x1f,0x82,0x07,0x18,0xff,0xf8,0xc7,0x27,0x7e,0x08,0x82,0x1f,0x81,0x1a,0xd4,0x80,0xf7,0xba,0xd7,0xbd,0x0a,0x6c,0x6f,0xfa,0xd9,0x87,0xbe,0xf4,0xb7,0xdf,0xbd,0xf3,0x81,0x5f,0xfc,0x07,0x58,0x81,0x0a,0x25,0x08,0x3f,0x0d,0x78,0xf0,0x81,0xf2,0x7f,0x00,0x05,0xe8,0x17,0x81,0xfa,0xd7,0x2f,0x02,0xf4,0xa3,0x7f,0x0a,0xe5,0x9f,0x02,0x0f,0xc2,0x5f,0x02,0x2a,0x58,0x21,0xf9,0xc0,0x9f,0x41,0x0b,0xa4,0x4f,0xfd,0xd8,0x5b,0x5f,0xf1,0xd9,0x47,0x01,0xbd,0xc7,0x7d,0xc6,0x77,0x03,0xe2,0x57,0x7e,0x28,0x20,0x02,0x3b,0xb0,0x03,0x45,0x20,0x03,0x32,0x80,0x03,0x58,0xf0,0x02,0x12,0x68,0x03,0x36,0x90,0x02,0x16,0x78,0x81,0x14,0x28,0x81,0x4f,0x80,0x03,0x0e,0x28,0x03,0x45,0x70,0x05,0xed,0x57,0x7e,0x34,0x10,0x7e,0x54,0x70,0x03,0x0f,0xb0,0x7c,0xcd,0x57,0x06,0xd2,0xa7,0x02,0xfe,0xf7,0x7f,0x7b,0x97,0x7b,0x02,0x58,0x03,0xc0,0x57,0x80,0x48,0x50,0x02,0xe3,0x77,0x7e,0x22,0x70,0xca,0x05,0x0d,0x08,0x81,0x13,0x78,0x81,0x5d,0x20,0x04,0x40,0x08,0x05,0x42,0x08,0x05,0x40,0x28,0x04,0x5d,0x40,0x06,0x16,0x68,0x03,0x2f,0xb0,0x81,0x1e,0xb8,0x03,0x21,0xf8,0x01,0x23,0x58,0x02,0x26,0xf8,0x00,0xf9,0xb7,0x7f,0x14,0x30,0x7d,0x0a,0xe0,0x82,0x7c,0x17,0x80,0x03,0x28,0x7c,0x0f,0x70,0x03,0x06,0x68,0x83,0x08,0xa8,0x80,0x3b,0xe0,0x80,0x38,0x80,0x03,0x4f,0x20,0x81,0x2f,0x50,0x81,0x5f,0x70,0x81,0x16,0xf8,0x05,0x4a,0xa8,0x81,0x1c,0xd8,0x84,0x3b,0x80,0x02,0xe5,0xc7,0x03,0x23,0x88,0x04,0x26,0x88,0x82,0xfa,0xc7,0x7f,0x2d,0xa8,0x85,0x6b,0x77,0x7a,0x31,0x00,0x83,0xbc,0x17,0x7c,0xdd,0x67,0x05,0x35,0x68,0x83,0x3c,0x40,0x7e,0x08,0x98,0x7e,0x20,0xc8,0x7e,0xeb,0x87,0x7e,0xe6,0xc7,0x03,0x53,0x10,0x85,0x48,0xa0,0x87,0xc6,0x87,0x82,0xcf,0xc7,0x7f,0x1d,0x50,0x7a,0x80,0xb8,0x78,0xb5,0x17,0x80,0xbb,0xe7,0x7b,0xcc,0x47,0x7c,0xc8,0x77,0x8a,0xc8,0x47,0x7c,0xcc,0x57,0x03,0x7d,0x18,0x7d,0xb8,0x87,0x7a,0x9e,0xf8,0x89,0xb2,0x08,0x7b,0xa5,0xb7,0x7a,0xb6,0xc7,0x7a,0xb7,0x48,0x7d,0xb0,0x48,0x8b,0x59,0x28,0x8b,0xd6,0x17,0x08,0x00,0x3b};inline auto webview_embed_file_img_logo_gif = []() -> bool { files.insert({"img_logo.gif", {3181,embed_file_img_logo_gif}});return true; }();
5 | }
--------------------------------------------------------------------------------
/examples/embedded/embedded/include.hpp:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "webview_base.hpp"
3 | #include "img_logo.gif.hpp"
4 | #include "index.html.hpp"
5 | #include "index.js.hpp"
6 | #include "style.css.hpp"
7 |
--------------------------------------------------------------------------------
/examples/embedded/embedded/index.html.hpp:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "webview_base.hpp"
3 | namespace Webview::Embedded {
4 | inline unsigned char embed_file_index_html[] = {0x3c,0x21,0x44,0x4f,0x43,0x54,0x59,0x50,0x45,0x20,0x68,0x74,0x6d,0x6c,0x3e,0x0a,0x3c,0x68,0x74,0x6d,0x6c,0x3e,0x0a,0x20,0x20,0x20,0x20,0x3c,0x68,0x65,0x61,0x64,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x6c,0x69,0x6e,0x6b,0x20,0x72,0x65,0x6c,0x3d,0x22,0x73,0x74,0x79,0x6c,0x65,0x73,0x68,0x65,0x65,0x74,0x22,0x20,0x68,0x72,0x65,0x66,0x3d,0x22,0x73,0x74,0x79,0x6c,0x65,0x2e,0x63,0x73,0x73,0x22,0x20,0x2f,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x73,0x63,0x72,0x69,0x70,0x74,0x20,0x73,0x72,0x63,0x3d,0x22,0x69,0x6e,0x64,0x65,0x78,0x2e,0x6a,0x73,0x22,0x3e,0x3c,0x2f,0x73,0x63,0x72,0x69,0x70,0x74,0x3e,0x0a,0x20,0x20,0x20,0x20,0x3c,0x2f,0x68,0x65,0x61,0x64,0x3e,0x0a,0x20,0x20,0x20,0x20,0x3c,0x62,0x6f,0x64,0x79,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x70,0x3e,0x44,0x72,0x61,0x67,0x20,0x74,0x68,0x65,0x20,0x57,0x33,0x53,0x63,0x68,0x6f,0x6f,0x6c,0x73,0x20,0x69,0x6d,0x61,0x67,0x65,0x20,0x69,0x6e,0x74,0x6f,0x20,0x74,0x68,0x65,0x20,0x72,0x65,0x63,0x74,0x61,0x6e,0x67,0x6c,0x65,0x3a,0x3c,0x2f,0x70,0x3e,0x0a,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x64,0x69,0x76,0x20,0x69,0x64,0x3d,0x22,0x64,0x69,0x76,0x31,0x22,0x20,0x6f,0x6e,0x64,0x72,0x6f,0x70,0x3d,0x22,0x64,0x72,0x6f,0x70,0x28,0x65,0x76,0x65,0x6e,0x74,0x29,0x22,0x20,0x6f,0x6e,0x64,0x72,0x61,0x67,0x6f,0x76,0x65,0x72,0x3d,0x22,0x61,0x6c,0x6c,0x6f,0x77,0x44,0x72,0x6f,0x70,0x28,0x65,0x76,0x65,0x6e,0x74,0x29,0x22,0x3e,0x3c,0x2f,0x64,0x69,0x76,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x62,0x72,0x3e,0x0a,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x3c,0x69,0x6d,0x67,0x20,0x69,0x64,0x3d,0x22,0x64,0x72,0x61,0x67,0x31,0x22,0x20,0x73,0x72,0x63,0x3d,0x22,0x69,0x6d,0x67,0x5f,0x6c,0x6f,0x67,0x6f,0x2e,0x67,0x69,0x66,0x22,0x20,0x64,0x72,0x61,0x67,0x67,0x61,0x62,0x6c,0x65,0x3d,0x22,0x74,0x72,0x75,0x65,0x22,0x20,0x6f,0x6e,0x64,0x72,0x61,0x67,0x73,0x74,0x61,0x72,0x74,0x3d,0x22,0x64,0x72,0x61,0x67,0x28,0x65,0x76,0x65,0x6e,0x74,0x29,0x22,0x20,0x77,0x69,0x64,0x74,0x68,0x3d,0x22,0x33,0x33,0x36,0x22,0x20,0x68,0x65,0x69,0x67,0x68,0x74,0x3d,0x22,0x36,0x39,0x22,0x3e,0x0a,0x20,0x20,0x20,0x20,0x3c,0x2f,0x62,0x6f,0x64,0x79,0x3e,0x0a,0x3c,0x2f,0x68,0x74,0x6d,0x6c,0x3e,0x0a};inline auto webview_embed_file_index_html = []() -> bool { files.insert({"index.html", {435,embed_file_index_html}});return true; }();
5 | }
--------------------------------------------------------------------------------
/examples/embedded/embedded/index.js.hpp:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "webview_base.hpp"
3 | namespace Webview::Embedded {
4 | inline unsigned char embed_file_index_js[] = {0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e,0x20,0x61,0x6c,0x6c,0x6f,0x77,0x44,0x72,0x6f,0x70,0x28,0x65,0x76,0x29,0x20,0x7b,0x0a,0x20,0x20,0x65,0x76,0x2e,0x70,0x72,0x65,0x76,0x65,0x6e,0x74,0x44,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x29,0x3b,0x0a,0x7d,0x0a,0x0a,0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e,0x20,0x64,0x72,0x61,0x67,0x28,0x65,0x76,0x29,0x20,0x7b,0x0a,0x20,0x20,0x65,0x76,0x2e,0x64,0x61,0x74,0x61,0x54,0x72,0x61,0x6e,0x73,0x66,0x65,0x72,0x2e,0x73,0x65,0x74,0x44,0x61,0x74,0x61,0x28,0x22,0x74,0x65,0x78,0x74,0x22,0x2c,0x20,0x65,0x76,0x2e,0x74,0x61,0x72,0x67,0x65,0x74,0x2e,0x69,0x64,0x29,0x3b,0x0a,0x7d,0x0a,0x0a,0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e,0x20,0x64,0x72,0x6f,0x70,0x28,0x65,0x76,0x29,0x20,0x7b,0x0a,0x20,0x20,0x65,0x76,0x2e,0x70,0x72,0x65,0x76,0x65,0x6e,0x74,0x44,0x65,0x66,0x61,0x75,0x6c,0x74,0x28,0x29,0x3b,0x0a,0x20,0x20,0x76,0x61,0x72,0x20,0x64,0x61,0x74,0x61,0x20,0x3d,0x20,0x65,0x76,0x2e,0x64,0x61,0x74,0x61,0x54,0x72,0x61,0x6e,0x73,0x66,0x65,0x72,0x2e,0x67,0x65,0x74,0x44,0x61,0x74,0x61,0x28,0x22,0x74,0x65,0x78,0x74,0x22,0x29,0x3b,0x0a,0x20,0x20,0x65,0x76,0x2e,0x74,0x61,0x72,0x67,0x65,0x74,0x2e,0x61,0x70,0x70,0x65,0x6e,0x64,0x43,0x68,0x69,0x6c,0x64,0x28,0x64,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x2e,0x67,0x65,0x74,0x45,0x6c,0x65,0x6d,0x65,0x6e,0x74,0x42,0x79,0x49,0x64,0x28,0x64,0x61,0x74,0x61,0x29,0x29,0x3b,0x0a,0x7d,0x0a};inline auto webview_embed_file_index_js = []() -> bool { files.insert({"index.js", {270,embed_file_index_js}});return true; }();
5 | }
--------------------------------------------------------------------------------
/examples/embedded/embedded/style.css.hpp:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include "webview_base.hpp"
3 | namespace Webview::Embedded {
4 | inline unsigned char embed_file_style_css[] = {0x23,0x64,0x69,0x76,0x31,0x20,0x7b,0x0a,0x20,0x20,0x77,0x69,0x64,0x74,0x68,0x3a,0x20,0x33,0x35,0x30,0x70,0x78,0x3b,0x0a,0x20,0x20,0x68,0x65,0x69,0x67,0x68,0x74,0x3a,0x20,0x37,0x30,0x70,0x78,0x3b,0x0a,0x20,0x20,0x70,0x61,0x64,0x64,0x69,0x6e,0x67,0x3a,0x20,0x31,0x30,0x70,0x78,0x3b,0x0a,0x20,0x20,0x62,0x6f,0x72,0x64,0x65,0x72,0x3a,0x20,0x31,0x70,0x78,0x20,0x73,0x6f,0x6c,0x69,0x64,0x20,0x23,0x61,0x61,0x61,0x61,0x61,0x61,0x3b,0x0a,0x7d,0x0a};inline auto webview_embed_file_style_css = []() -> bool { files.insert({"style.css", {88,embed_file_style_css}});return true; }();
5 | }
--------------------------------------------------------------------------------
/examples/embedded/embedded/webview_base.hpp:
--------------------------------------------------------------------------------
1 | #pragma once
2 | #include