Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
scripted_editor_session.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
6
7namespace pulp::view {
8
9class View;
10
20 public:
21 virtual ~ScriptedEditorSession() = default;
22
24 virtual bool document_load_pending() const noexcept = 0;
26 virtual bool borrows_root(const View& view) const noexcept = 0;
28 virtual bool poll(std::string* error = nullptr) = 0;
30 virtual bool settling() const noexcept = 0;
32 virtual bool complete_pending_load(std::string* error = nullptr) = 0;
34 virtual void release_root() noexcept = 0;
36 virtual void set_host_kind(std::string kind) = 0;
38 virtual void attach_gpu_surface(render::GpuSurface* gpu_surface) = 0;
39
40 protected:
43 ScriptedEditorSession& operator=(const ScriptedEditorSession&) = default;
44};
45
46} // namespace pulp::view
virtual ~ScriptedEditorSession()=default
virtual bool settling() const noexcept=0
See ScriptedUiSession::settling().
virtual bool document_load_pending() const noexcept=0
See ScriptedUiSession::document_load_pending().
virtual bool complete_pending_load(std::string *error=nullptr)=0
See ScriptedUiSession::complete_pending_load().
virtual bool borrows_root(const View &view) const noexcept=0
See ScriptedUiSession::borrows_root().
virtual void release_root() noexcept=0
See ScriptedUiSession::release_root().
virtual bool poll(std::string *error=nullptr)=0
See ScriptedUiSession::poll().
virtual void set_host_kind(std::string kind)=0
See ScriptedUiSession::set_host_kind().
virtual void attach_gpu_surface(render::GpuSurface *gpu_surface)=0
See ScriptedUiSession::attach_gpu_surface().
Definition view.hpp:73
Definition gpu_fwd.hpp:31
Hover-cursor tracking for platform window hosts.
Definition fwd.hpp:27
@ error
Definition design_ir.hpp:697
STL namespace.