Blender V5.3
BKE_blender_project.hh File Reference
#include "intern/blender_project_config.h"
#include <concepts>
#include <cstdint>
#include <memory>
#include <optional>
#include "BLI_function_ref.hh"
#include "BLI_string_ref.hh"
#include "BLI_vector.hh"
#include "DNA_ID.h"
#include "BKE_idprop.hh"

Go to the source code of this file.

Classes

class  blender::bke::ProjectVariable
class  blender::bke::BlenderProject
struct  blender::RecentProject

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke

Macros

#define BLENDER_PROJECT_CONFIG_DIR   ".blender_project"
#define BLENDER_PROJECT_CONFIG_FILE   "project.toml"

Enumerations

enum class  blender::bke::ProjectVariableType : char { blender::bke::STRING = eIDPropertyType::IDP_STRING , blender::bke::INT = eIDPropertyType::IDP_INT , blender::bke::FLOAT = eIDPropertyType::IDP_FLOAT }
enum class  blender::bke::ProjectVariableStringSubtype { blender::bke::NONE = 0 , blender::bke::FILEPATH = 1 }

Functions

void blender::bke::with_blender_project_read_lock (FunctionRef< void()> lambda)
void blender::bke::with_blender_project_write_lock (FunctionRef< void()> lambda)
bool blender::bke::is_valid_project_variable_name (StringRef name)
std::string blender::bke::ensure_is_valid_project_variable_name (StringRef name)
std::string blender::BKE_is_path_inside_blender_project (const char *path)
bke::BlenderProject * blender::BKE_blender_project_get (const Main *bmain)
template<std::invocable< const bke::BlenderProject * > Fn>
auto blender::BKE_blender_project_read_callback (const Main *bmain, Fn lambda)
template<std::invocable< bke::BlenderProject * > Fn>
auto blender::BKE_blender_project_write_callback (const Main *bmain, Fn lambda)
bool blender::BKE_blender_project_init (blender::StringRef name, blender::StringRef root_path)
void blender::BKE_blender_project_refresh (Main *bmain, const char *filepath)
void blender::BKE_blender_project_clear ()
std::string blender::BKE_blender_project_path_make_relative (StringRef path, bool path_is_template, const bke::BlenderProject &project)
std::string blender::BKE_blender_project_path_resolve (StringRef path, const bke::BlenderProject &project)
void blender::BKE_blender_project_config_autosave (Main *bmain)
bool blender::BKE_blender_project_config_file_write (Main *bmain)
bool blender::BKE_blender_project_init_from_root_path (Main *bmain, std::string project_root_path)
bool blender::BKE_blender_project_dir_is_project (StringRef path)
Recent Projects
Vector< RecentProject > blender::BKE_blender_project_recent_get ()
void blender::BKE_blender_project_recent_update (const Main *bmain)
void blender::BKE_blender_project_recent_clear (bool only_missing)

Macro Definition Documentation

◆ BLENDER_PROJECT_CONFIG_DIR

◆ BLENDER_PROJECT_CONFIG_FILE

#define BLENDER_PROJECT_CONFIG_FILE   "project.toml"