Blender V5.3
interface_template_constraint.cc File Reference
#include "BKE_constraint.h"
#include "BKE_context.hh"
#include "BKE_library.hh"
#include "BKE_screen.hh"
#include "BLI_listbase.hh"
#include "BLI_string_utils.hh"
#include "BLT_translation.hh"
#include "DNA_constraint_types.h"
#include "ED_object.hh"
#include "RNA_access.hh"
#include "RNA_prototypes.hh"
#include "WM_api.hh"
#include "UI_interface_layout.hh"
#include "interface_intern.hh"
#include "interface_templates_intern.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::ui

Functions

static void blender::ui::constraint_active_func (bContext *, void *ob_v, void *con_v)
static void blender::ui::constraint_ops_extra_draw (bContext *C, Layout *layout, void *con_v)
Constraint Header Template
static void blender::ui::draw_constraint_header (Layout &layout, Object *ob, bConstraint *con)
void blender::ui::template_constraint_header (Layout *layout, PointerRNA *ptr)

Constraints Template

Template for building the panel layout for the active object or bone's constraints.

#define CONSTRAINT_TYPE_PANEL_PREFIX   "OBJECT_PT_"
#define CONSTRAINT_BONE_TYPE_PANEL_PREFIX   "BONE_PT_"
static bool blender::ui::constraint_panel_is_bone (Panel *panel)
static void blender::ui::constraint_reorder (bContext *C, Panel *panel, int new_index)
static short blender::ui::get_constraint_expand_flag (const bContext *, Panel *panel)
static void blender::ui::set_constraint_expand_flag (const bContext *, Panel *panel, short expand_flag)
static void blender::ui::object_constraint_panel_id (void *md_link, char *r_idname)
static void blender::ui::bone_constraint_panel_id (void *md_link, char *r_idname)
void blender::ui::template_constraints (Layout *layout, bContext *C, bool use_bone_constraints)

Detailed Description

Template for building the panel layout for the active object or bone's constraints.

Definition in file interface_template_constraint.cc.

Macro Definition Documentation

◆ CONSTRAINT_BONE_TYPE_PANEL_PREFIX

#define CONSTRAINT_BONE_TYPE_PANEL_PREFIX   "BONE_PT_"

◆ CONSTRAINT_TYPE_PANEL_PREFIX

#define CONSTRAINT_TYPE_PANEL_PREFIX   "OBJECT_PT_"

For building the panel UI for constraints.

Definition at line 178 of file interface_template_constraint.cc.

Referenced by blender::ui::object_constraint_panel_id().