Blender V5.3
BKE_recents.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
48
49#pragma once
50
51#include <string>
52
54
55class Section {
56 std::string section_;
57
58 public:
59 explicit Section(std::string section) : section_(std::move(section)) {}
60
61 template<typename T> T get(const std::string &item_key) const;
62 template<typename T> void set(const std::string &item_key, const T &value);
63
64 void remove(const std::string &item_key);
65 void remove_section();
66};
67
68void init();
69void init_async();
70void ensure_init();
71bool save();
72
73} // namespace blender::recents
T get(const std::string &item_key) const
Definition recents.cc:224
Section(std::string section)
void set(const std::string &item_key, const T &value)
Definition recents.cc:285
void remove(const std::string &item_key)
Definition recents.cc:311
#define T
void init_async()
Definition recents.cc:124
void ensure_init()
Definition recents.cc:129