Blender V5.3
BKE_workspace.hh File Reference
#include <string>
#include "DNA_listBase.h"
#include "BLI_compiler_attrs.hh"
#include "BLI_vector.hh"

Go to the source code of this file.

Classes

struct  blender::bke::WorkSpaceStatusItem
struct  blender::bke::WorkSpaceRuntime

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::bke

Functions

Create, Delete, Initialize
WorkSpace * blender::BKE_workspace_add (Main *bmain, const char *name)
void blender::BKE_workspace_remove (Main *bmain, WorkSpace *workspace)
WorkSpaceInstanceHook * blender::BKE_workspace_instance_hook_create (const Main *bmain, int winid)
void blender::BKE_workspace_instance_hook_free (const Main *bmain, WorkSpaceInstanceHook *hook)
WorkSpaceLayout * blender::BKE_workspace_layout_add (Main *bmain, WorkSpace &workspace, bScreen &screen, const char *name)
WorkSpaceLayout * blender::BKE_workspace_layout_add_from_layout (Main *bmain, WorkSpace &workspace_dst, const WorkSpaceLayout &layout_src, const int id_copy_flags)
void blender::BKE_workspace_layout_remove (Main *bmain, WorkSpace *workspace, WorkSpaceLayout *layout) ATTR_NONNULL()
void blender::BKE_workspace_relations_free (ListBaseT< WorkSpaceDataRelation > *relation_list)
General Utilities
WorkSpaceLayout * blender::BKE_workspace_layout_find (const WorkSpace *workspace, const bScreen *screen) ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
WorkSpaceLayout * blender::BKE_workspace_layout_find_global (const Main *bmain, const bScreen *screen, WorkSpace **r_workspace) ATTR_NONNULL(1
WorkSpaceLayout WorkSpaceLayout * blender::BKE_workspace_layout_iter_circular (const WorkSpace *workspace, WorkSpaceLayout *start, bool(*callback)(const WorkSpaceLayout *layout, void *arg), void *arg, bool iter_backward)
void blender::BKE_workspace_tool_remove (WorkSpace *workspace, bToolRef *tref) ATTR_NONNULL(1
void void blender::BKE_workspace_tool_id_replace_table (WorkSpace *workspace, const int space_type, const int mode, const char *idname_prefix_skip, const char *replace_table[][2], int replace_table_num) ATTR_NONNULL(1

Getters/Setters

#define GETTER_ATTRS   ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT
#define SETTER_ATTRS   ATTR_NONNULL(1)
WorkSpace * blender::BKE_workspace_active_get (WorkSpaceInstanceHook *hook) GETTER_ATTRS
void blender::BKE_workspace_active_set (WorkSpaceInstanceHook *hook, WorkSpace *workspace) SETTER_ATTRS
WorkSpaceLayout * blender::BKE_workspace_active_layout_get (const WorkSpaceInstanceHook *hook) GETTER_ATTRS
void blender::BKE_workspace_active_layout_set (WorkSpaceInstanceHook *hook, int winid, WorkSpace *workspace, WorkSpaceLayout *layout) SETTER_ATTRS
 Activate a layout.
bScreen * blender::BKE_workspace_active_screen_get (const WorkSpaceInstanceHook *hook) GETTER_ATTRS
void blender::BKE_workspace_active_screen_set (WorkSpaceInstanceHook *hook, int winid, WorkSpace *workspace, bScreen *screen) SETTER_ATTRS
const char * blender::BKE_workspace_layout_name_get (const WorkSpaceLayout *layout) GETTER_ATTRS
void blender::BKE_workspace_layout_name_set (WorkSpace *workspace, WorkSpaceLayout *layout, const char *new_name) ATTR_NONNULL()
bScreen * blender::BKE_workspace_layout_screen_get (const WorkSpaceLayout *layout) GETTER_ATTRS
WorkSpaceLayout * blender::BKE_workspace_active_layout_for_workspace_get (const WorkSpaceInstanceHook *hook, const WorkSpace *workspace) GETTER_ATTRS
bool blender::BKE_workspace_owner_id_check (const WorkSpace *workspace, const char *owner_id) ATTR_NONNULL()
void blender::BKE_workspace_id_tag_all_visible (Main *bmain, int tag) ATTR_NONNULL()
void blender::BKE_workspace_status_clear (WorkSpace *workspace)

Macro Definition Documentation

◆ GETTER_ATTRS

#define GETTER_ATTRS   ATTR_NONNULL() ATTR_WARN_UNUSED_RESULT

Definition at line 140 of file BKE_workspace.hh.

◆ SETTER_ATTRS

#define SETTER_ATTRS   ATTR_NONNULL(1)

Definition at line 141 of file BKE_workspace.hh.