Blender  V2.59
Classes | Typedefs | 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 "DNA_armature_types.h"
#include "DNA_lamp_types.h"
#include "DNA_material_types.h"
#include "DNA_node_types.h"
#include "DNA_scene_types.h"
#include "DNA_world_types.h"
#include "DNA_brush_types.h"
#include "BKE_context.h"
#include "BKE_action.h"
#include "BKE_material.h"
#include "BKE_modifier.h"
#include "BKE_paint.h"
#include "BKE_particle.h"
#include "BKE_screen.h"
#include "BKE_texture.h"
#include "RNA_access.h"
#include "ED_armature.h"
#include "ED_screen.h"
#include "ED_physics.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "buttons_intern.h"

Go to the source code of this file.

Classes

struct  ButsContextPath

Typedefs

typedef struct ButsContextPath ButsContextPath

Functions

static int set_pointer_type (ButsContextPath *path, bContextDataResult *result, StructRNA *type)
static PointerRNAget_pointer_type (ButsContextPath *path, StructRNA *type)
static int buttons_context_path_scene (ButsContextPath *path)
static int buttons_context_path_world (ButsContextPath *path)
static int buttons_context_path_object (ButsContextPath *path)
static int buttons_context_path_data (ButsContextPath *path, int type)
static int buttons_context_path_modifier (ButsContextPath *path)
static int buttons_context_path_material (ButsContextPath *path, int for_texture)
static int buttons_context_path_bone (ButsContextPath *path)
static int buttons_context_path_pose_bone (ButsContextPath *path)
static int buttons_context_path_particle (ButsContextPath *path)
static int buttons_context_path_brush (ButsContextPath *path)
static int buttons_context_path_texture (ButsContextPath *path)
static int buttons_context_path (const bContext *C, ButsContextPath *path, int mainb, int flag)
static int 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, SpaceButs *sbuts)
int buttons_context (const bContext *C, const char *member, bContextDataResult *result)
static void pin_cb (bContext *C, void *UNUSED(arg1), void *UNUSED(arg2))
void buttons_context_draw (const bContext *C, uiLayout *layout)
static void buttons_panel_context (const bContext *C, Panel *pa)
void buttons_context_register (ARegionType *art)
IDbuttons_context_id_path (const bContext *C)

Variables

const char * buttons_context_dir []

Detailed Description

Definition in file buttons_context.c.


Typedef Documentation


Function Documentation

int buttons_context ( const bContext C,
const char *  member,
bContextDataResult result 
)
void buttons_context_compute ( const bContext C,
SpaceButs sbuts 
)
void buttons_context_draw ( const bContext C,
uiLayout layout 
)
ID* buttons_context_id_path ( const bContext C)
static int buttons_context_path ( const bContext C,
ButsContextPath path,
int  mainb,
int  flag 
) [static]
static int buttons_context_path_bone ( ButsContextPath path) [static]
static int buttons_context_path_brush ( ButsContextPath path) [static]
static int buttons_context_path_data ( ButsContextPath path,
int  type 
) [static]
static int buttons_context_path_material ( ButsContextPath path,
int  for_texture 
) [static]
static int buttons_context_path_modifier ( ButsContextPath path) [static]
static int buttons_context_path_object ( ButsContextPath path) [static]
static int buttons_context_path_particle ( ButsContextPath path) [static]
static int buttons_context_path_pose_bone ( ButsContextPath path) [static]
static int buttons_context_path_scene ( ButsContextPath path) [static]
static int buttons_context_path_texture ( ButsContextPath path) [static]
static int buttons_context_path_world ( ButsContextPath path) [static]
void buttons_context_register ( ARegionType art)
static void buttons_panel_context ( const bContext C,
Panel pa 
) [static]

Definition at line 934 of file buttons_context.c.

References buttons_context_draw(), and Panel::layout.

Referenced by buttons_context_register().

static int buttons_shading_context ( const bContext C,
int  mainb 
) [static]
static int buttons_shading_new_context ( const bContext C,
int  flag 
) [static]
static PointerRNA* get_pointer_type ( ButsContextPath path,
StructRNA type 
) [static]
static void pin_cb ( bContext C,
void *  UNUSEDarg1,
void *  UNUSEDarg2 
) [static]
static int set_pointer_type ( ButsContextPath path,
bContextDataResult result,
StructRNA type 
) [static]

Variable Documentation

const char* buttons_context_dir[]
Initial value:
 {
        "world", "object", "mesh", "armature", "lattice", "curve",
        "meta_ball", "lamp", "camera", "material", "material_slot",
        "texture", "texture_slot", "bone", "edit_bone", "pose_bone", "particle_system", "particle_system_editable",
        "cloth", "soft_body", "fluid", "smoke", "collision", "brush", NULL}

Definition at line 649 of file buttons_context.c.

Referenced by buttons_context().