LeviLamina
Loading...
Searching...
No Matches
WebviewInterface.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/application/AppPlatformListener.h"
7
8// auto generated forward declare list
9// clang-format off
10class RectangleArea;
11class WebviewObserver;
12// clang-format on
13
14class WebviewInterface : public ::AppPlatformListener {
15public:
16 // member variables
17 // NOLINTBEGIN
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
33 WebviewInterface& operator=(WebviewInterface const&);
36
37public:
38 // virtual functions
39 // NOLINTBEGIN
40 virtual ~WebviewInterface() /*override*/ = default;
41
42 virtual void addObserver(::WebviewObserver&);
43
44 virtual void clearObservers();
45
46 virtual bool isShown() const;
47
48 virtual bool isLoaded() const;
49
50 virtual bool handlesLoadingCallbacks();
51
52 virtual void onWebviewChanged();
53
54 virtual void sendMessage(::std::string const&);
55
56 virtual void onAppSuspended() /*override*/;
57
58 virtual void onResizeBegin() /*override*/;
59
60 virtual void onResizeEnd() /*override*/;
61
62 virtual void setRect(::RectangleArea const&) = 0;
63
64 virtual void setPropagatedAlpha(float) = 0;
65
66 virtual void setMuted(bool) = 0;
67
68 virtual void setUrl(::std::string const&, bool) = 0;
69
70 virtual void setShowView(bool) = 0;
71 // NOLINTEND
72
73public:
74 // member functions
75 // NOLINTBEGIN
76 MCNAPI void requestSetShowView(bool show);
77
78 MCNAPI void requestSetUrl(::std::string const& url, bool force);
79 // NOLINTEND
80
81public:
82 // virtual function thunks
83 // NOLINTBEGIN
84
85 // NOLINTEND
86};
Definition WebviewInterface.h:5
MCAPI void requestSetShowView(bool show)
MCAPI void requestSetUrl(::std::string const &url, bool force)
Definition Alias.h:14