81 Surface(std::shared_ptr<Core::Window> window,
82 std::shared_ptr<Layer> layer,
83 std::shared_ptr<Context> ctx)
84 : m_window(
std::move(window))
85 , m_layer(
std::move(layer))
86 , m_ctx(
std::move(ctx))
107 [[nodiscard]]
Layer& layer() noexcept {
return *m_layer; }
110 [[nodiscard]]
const Layer&
layer() const noexcept {
return *m_layer; }
121 [[nodiscard]]
const Context&
ctx() const noexcept {
return *m_ctx; }
126 [[nodiscard]]
const std::shared_ptr<Core::Window>&
window() const noexcept
136 [[nodiscard]]
const std::shared_ptr<Layer>&
layer_ptr() const noexcept {
return m_layer; }
139 [[nodiscard]]
const std::shared_ptr<Context>&
ctx_ptr() const noexcept {
return m_ctx; }
Event wiring between a Layer and a window surface.