Files
test2/source/blender/blenkernel/intern/wm_runtime.cc
Sebastian Parborg 09ba1aabbd Refactor: Make the event queue only use runtime data.
Also make it more clear that some of the functions are internal
functions.

Pull Request: https://projects.blender.org/blender/blender/pulls/135181
2025-03-11 14:39:19 +01:00

39 lines
769 B
C++

/* SPDX-FileCopyrightText: 2024 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup bke
*/
#include "BKE_report.hh"
#include "BKE_wm_runtime.hh"
#include "BLI_ghash.h"
#include "BLI_listbase.h"
namespace blender::bke {
WindowManagerRuntime::WindowManagerRuntime()
{
BKE_reports_init(&this->reports, RPT_STORE);
}
WindowManagerRuntime::~WindowManagerRuntime()
{
BKE_reports_free(&this->reports);
BLI_freelistN(&this->notifier_queue);
if (this->notifier_queue_set) {
BLI_gset_free(this->notifier_queue_set, nullptr);
}
}
WindowRuntime::~WindowRuntime()
{
/** The event_queue should be freed when the window is freed. */
BLI_assert(BLI_listbase_is_empty(&this->event_queue));
}
} // namespace blender::bke