Finish renaming win32-editor.h

This commit is contained in:
Robbert van der Helm
2020-03-17 22:13:30 +01:00
parent f43c0bc78b
commit f3bf7879c6
3 changed files with 7 additions and 7 deletions
+4 -4
View File
@@ -2,11 +2,11 @@
ATOM register_window_class(std::string window_class_name);
Win32Editor::Win32Editor(std::string window_class_name)
Editor::Editor(std::string window_class_name)
: window_class(register_window_class(window_class_name)),
x11_connection(xcb_connect(nullptr, nullptr), &xcb_disconnect) {}
HWND Win32Editor::open() {
HWND Editor::open() {
window_handle =
std::unique_ptr<std::remove_pointer_t<HWND>, decltype(&DestroyWindow)>(
CreateWindowEx(WS_EX_TOOLWINDOW,
@@ -18,7 +18,7 @@ HWND Win32Editor::open() {
return window_handle->get();
}
void Win32Editor::close() {
void Editor::close() {
// RAII does the rest for us
window_handle = std::nullopt;
@@ -26,7 +26,7 @@ void Win32Editor::close() {
// everything for us?
}
std::optional<xcb_window_t> Win32Editor::get_x11_handle() {
std::optional<xcb_window_t> Editor::get_x11_handle() {
if (!window_handle.has_value()) {
return std::nullopt;
}
+2 -2
View File
@@ -20,13 +20,13 @@
* windows. A VST plugin can embed itself in that window, and we can then later
* embed the window in a VST host provided X11 window.
*/
class Win32Editor {
class Editor {
public:
/**
* @param window_class_name The name for the window class for editor
* windows.
*/
Win32Editor(std::string window_class_name);
Editor(std::string window_class_name);
/**
* Open a window and return a handle to the new Win32 window that can be
+1 -1
View File
@@ -130,5 +130,5 @@ class PluginBridge {
*/
std::vector<uint8_t> process_buffer;
Win32Editor editor;
Editor editor;
};