lua+cpp+html+css+js

This commit is contained in:
OSK\schmidt
2024-12-04 14:12:18 +01:00
parent 2a2b0dbbcc
commit 0b04ea0ac2
8 changed files with 76 additions and 9 deletions

30
inc/modules/hwnd_module.h Normal file
View File

@@ -0,0 +1,30 @@
//
// Created by schmidt on 04.12.2024.
//
#ifndef HWND_MODULE_H
#define HWND_MODULE_H
#include <saucer/modules/native/webview2.hpp> // Für Windows mit WebView2
class hwnd_module {
saucer::natives m_natives;
saucer::smartview_core *m_smartview;
public:
hwnd_module(saucer::smartview_core *smartview, saucer::natives natives)
: m_natives(natives), m_smartview(smartview) {}
HWND get_hwnd() {
auto [window, webview] = m_natives;
return window->hwnd.get();
}
};
static_assert(saucer::Module<hwnd_module>);
#endif //HWND_MODULE_H