Blender  V2.93
Functions | Variables
buttons_context.c File Reference
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "BLI_listbase.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "DNA_armature_types.h"
#include "DNA_brush_types.h"
#include "DNA_collection_types.h"
#include "DNA_linestyle_types.h"
#include "DNA_material_types.h"
#include "DNA_node_types.h"
#include "DNA_scene_types.h"
#include "DNA_windowmanager_types.h"
#include "DNA_world_types.h"
#include "BKE_action.h"
#include "BKE_armature.h"
#include "BKE_context.h"
#include "BKE_layer.h"
#include "BKE_linestyle.h"
#include "BKE_material.h"
#include "BKE_modifier.h"
#include "BKE_object.h"
#include "BKE_paint.h"
#include "BKE_particle.h"
#include "BKE_screen.h"
#include "RNA_access.h"
#include "ED_buttons.h"
#include "ED_physics.h"
#include "ED_screen.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "WM_api.h"
#include "buttons_intern.h"

Go to the source code of this file.

Functions

static int set_pointer_type (ButsContextPath *path, bContextDataResult *result, StructRNA *type)
 
static PointerRNAget_pointer_type (ButsContextPath *path, StructRNA *type)
 
static bool buttons_context_path_scene (ButsContextPath *path)
 
static bool buttons_context_path_view_layer (ButsContextPath *path, wmWindow *win)
 
static bool buttons_context_path_world (ButsContextPath *path)
 
static bool buttons_context_path_collection (const bContext *C, ButsContextPath *path, wmWindow *window)
 
static bool buttons_context_path_linestyle (ButsContextPath *path, wmWindow *window)
 
static bool buttons_context_path_object (ButsContextPath *path)
 
static bool buttons_context_path_data (ButsContextPath *path, int type)
 
static bool buttons_context_path_modifier (ButsContextPath *path)
 
static bool buttons_context_path_shaderfx (ButsContextPath *path)
 
static bool buttons_context_path_material (ButsContextPath *path)
 
static bool buttons_context_path_bone (ButsContextPath *path)
 
static bool buttons_context_path_pose_bone (ButsContextPath *path)
 
static bool buttons_context_path_particle (ButsContextPath *path)
 
static bool buttons_context_path_brush (const bContext *C, ButsContextPath *path)
 
static bool buttons_context_path_texture (const bContext *C, ButsContextPath *path, ButsContextTexture *ct)
 
static bool buttons_context_path (const bContext *C, SpaceProperties *sbuts, ButsContextPath *path, int mainb, int flag)
 
static bool buttons_shading_context (const bContext *C, int mainb)
 
static int buttons_shading_new_context (const bContext *C, int flag)
 
void buttons_context_compute (const bContext *C, SpaceProperties *sbuts)
 
static bool is_pointer_in_path (ButsContextPath *path, PointerRNA *ptr)
 
bool ED_buttons_should_sync_with_outliner (const bContext *C, const SpaceProperties *sbuts, ScrArea *area)
 
void ED_buttons_set_context (const bContext *C, SpaceProperties *sbuts, PointerRNA *ptr, const int context)
 
int buttons_context (const bContext *C, const char *member, bContextDataResult *result)
 
static bool buttons_panel_context_poll (const bContext *C, PanelType *UNUSED(pt))
 
static void buttons_panel_context_draw (const bContext *C, Panel *panel)
 
void buttons_context_register (ARegionType *art)
 
IDbuttons_context_id_path (const bContext *C)
 

Variables

const char * buttons_context_dir []
 

Function Documentation

◆ buttons_context()

int buttons_context ( const bContext C,
const char *  member,
bContextDataResult result 
)

Definition at line 858 of file buttons_context.c.

References Object::actcol, BCONTEXT_TOOL, BKE_modifiers_findby_type(), buttons_context_compute(), buttons_context_dir, C, CTX_data_dir(), CTX_data_dir_set(), CTX_data_equals(), CTX_data_pointer_set(), CTX_RESULT_MEMBER_NOT_FOUND, CTX_RESULT_NO_DATA, CTX_RESULT_OK, CTX_wm_space_properties(), PointerRNA::data, eModifierType_Cloth, eModifierType_Collision, eModifierType_DynamicPaint, eModifierType_Fluid, eModifierType_Softbody, get_pointer_type(), FreestyleLineStyle::id, bNodeTree::id, Object::id, ParticleSettings::id, Tex::id, SpaceProperties::mainb, Object::mat, FreestyleLineStyle::mtex, ParticleSettings::mtex, ButsTextureUser::node, ButsTextureUser::ntree, NULL, OB_TYPE_SUPPORT_MATERIAL, PointerRNA::owner_id, SpaceProperties::path, PE_poll(), ButsTextureUser::prop, ButsTextureUser::ptr, ptr, result, RNA_Armature, RNA_Bone, RNA_Brush, RNA_Camera, RNA_ClothModifier, RNA_Collection, RNA_CollisionModifier, RNA_Curve, RNA_DynamicPaintModifier, RNA_EditBone, RNA_FluidModifier, RNA_FreestyleLineStyle, RNA_GreasePencil, RNA_Hair, RNA_Lattice, RNA_Light, RNA_LightProbe, RNA_LineStyleTextureSlot, RNA_Material, RNA_MaterialSlot, RNA_Mesh, RNA_MetaBall, RNA_Node, RNA_Object, RNA_ParticleSettings, RNA_ParticleSettingsTextureSlot, RNA_ParticleSystem, RNA_PointCloud, RNA_PoseBone, RNA_Property, RNA_Scene, RNA_SoftBodyModifier, RNA_Speaker, RNA_Texture, RNA_Volume, RNA_World, set_pointer_type(), FreestyleLineStyle::texact, ParticleSettings::texact, ButsContextTexture::texture, SpaceProperties::texuser, Object::totcol, Object::type, PointerRNA::type, and ButsContextTexture::user.

Referenced by ED_spacetype_buttons().

◆ buttons_context_compute()

void buttons_context_compute ( const bContext C,
SpaceProperties sbuts 
)

◆ buttons_context_id_path()

ID* buttons_context_id_path ( const bContext C)

◆ buttons_context_path()

static bool buttons_context_path ( const bContext C,
SpaceProperties sbuts,
ButsContextPath path,
int  mainb,
int  flag 
)
static

◆ buttons_context_path_bone()

static bool buttons_context_path_bone ( ButsContextPath path)
static

◆ buttons_context_path_brush()

static bool buttons_context_path_brush ( const bContext C,
ButsContextPath path 
)
static

◆ buttons_context_path_collection()

static bool buttons_context_path_collection ( const bContext C,
ButsContextPath path,
wmWindow window 
)
static

◆ buttons_context_path_data()

static bool buttons_context_path_data ( ButsContextPath path,
int  type 
)
static

◆ buttons_context_path_linestyle()

static bool buttons_context_path_linestyle ( ButsContextPath path,
wmWindow window 
)
static

◆ buttons_context_path_material()

static bool buttons_context_path_material ( ButsContextPath path)
static

◆ buttons_context_path_modifier()

static bool buttons_context_path_modifier ( ButsContextPath path)
static

◆ buttons_context_path_object()

static bool buttons_context_path_object ( ButsContextPath path)
static

◆ buttons_context_path_particle()

static bool buttons_context_path_particle ( ButsContextPath path)
static

◆ buttons_context_path_pose_bone()

static bool buttons_context_path_pose_bone ( ButsContextPath path)
static

◆ buttons_context_path_scene()

static bool buttons_context_path_scene ( ButsContextPath path)
static

◆ buttons_context_path_shaderfx()

static bool buttons_context_path_shaderfx ( ButsContextPath path)
static

◆ buttons_context_path_texture()

static bool buttons_context_path_texture ( const bContext C,
ButsContextPath path,
ButsContextTexture ct 
)
static

◆ buttons_context_path_view_layer()

static bool buttons_context_path_view_layer ( ButsContextPath path,
wmWindow win 
)
static

◆ buttons_context_path_world()

static bool buttons_context_path_world ( ButsContextPath path)
static

◆ buttons_context_register()

void buttons_context_register ( ARegionType art)

◆ buttons_panel_context_draw()

static void buttons_panel_context_draw ( const bContext C,
Panel panel 
)
static

◆ buttons_panel_context_poll()

static bool buttons_panel_context_poll ( const bContext C,
PanelType UNUSEDpt 
)
static

◆ buttons_shading_context()

static bool buttons_shading_context ( const bContext C,
int  mainb 
)
static

◆ buttons_shading_new_context()

static int buttons_shading_new_context ( const bContext C,
int  flag 
)
static

◆ ED_buttons_set_context()

void ED_buttons_set_context ( const bContext C,
SpaceProperties sbuts,
PointerRNA ptr,
const int  context 
)

◆ ED_buttons_should_sync_with_outliner()

bool ED_buttons_should_sync_with_outliner ( const bContext C,
const SpaceProperties sbuts,
ScrArea area 
)

◆ get_pointer_type()

static PointerRNA* get_pointer_type ( ButsContextPath path,
StructRNA type 
)
static

◆ is_pointer_in_path()

static bool is_pointer_in_path ( ButsContextPath path,
PointerRNA ptr 
)
static

◆ set_pointer_type()

static int set_pointer_type ( ButsContextPath path,
bContextDataResult result,
StructRNA type 
)
static

Variable Documentation

◆ buttons_context_dir

const char* buttons_context_dir[]

Definition at line 814 of file buttons_context.c.

Referenced by buttons_context().