|
Blender V5.0
|
#include "BKE_context.hh"#include "BKE_curveprofile.h"#include "BKE_library.hh"#include "BLI_math_base.h"#include "BLI_rect.h"#include "BLI_string_ref.hh"#include "BLT_translation.hh"#include "ED_screen.hh"#include "ED_undo.hh"#include "RNA_access.hh"#include "RNA_prototypes.hh"#include "UI_interface_layout.hh"#include "interface_intern.hh"#include "interface_templates_intern.hh"Go to the source code of this file.
Functions | |
| static uiBlock * | curve_profile_presets_fn (bContext *C, ARegion *region, void *cb_v) |
| static uiBlock * | curve_profile_tools_fn (bContext *C, ARegion *region, void *cb_v) |
| static bool | curve_profile_can_zoom_in (CurveProfile *profile) |
| static bool | curve_profile_can_zoom_out (CurveProfile *profile) |
| static void | curve_profile_zoom_in (bContext *C, CurveProfile *profile) |
| static void | curve_profile_zoom_out (bContext *C, CurveProfile *profile) |
| static void | CurveProfile_buttons_layout (uiLayout *layout, PointerRNA *ptr, const RNAUpdateCb &cb) |
| void | uiTemplateCurveProfile (uiLayout *layout, PointerRNA *ptr, const StringRefNull propname) |
|
static |
Definition at line 133 of file interface_template_curve_profile.cc.
References BLI_rctf_size_x(), CurveProfile::clip_rect, CURVE_ZOOM_MAX, and CurveProfile::view_rect.
Referenced by curve_profile_zoom_in(), and CurveProfile_buttons_layout().
|
static |
Definition at line 139 of file interface_template_curve_profile.cc.
References BLI_rctf_size_x(), CurveProfile::clip_rect, and CurveProfile::view_rect.
Referenced by curve_profile_zoom_out(), and CurveProfile_buttons_layout().
Definition at line 32 of file interface_template_curve_profile.cc.
References BKE_curveprofile_reset(), BKE_curveprofile_update(), BLT_I18NCONTEXT_ID_MESH, ButMenu, C, CTX_IFACE_, CTX_wm_region(), PointerRNA::data, ED_region_tag_redraw(), ED_undo_push(), blender::ui::Emboss, IFACE_, CurveProfile::preset, PROF_PRESET_CORNICE, PROF_PRESET_CROWN, PROF_PRESET_LINE, PROF_PRESET_STEPS, PROF_PRESET_SUPPORTS, PROF_UPDATE_NONE, RNAUpdateCb::prop, RNAUpdateCb::ptr, RNA_property_pointer_get(), rna_update_cb(), UI_block_begin(), UI_block_bounds_set_text(), UI_block_direction_set(), UI_but_func_set(), UI_DIR_DOWN, UI_UNIT_X, UI_UNIT_Y, and uiDefIconTextBut().
Referenced by CurveProfile_buttons_layout().
Definition at line 80 of file interface_template_curve_profile.cc.
References BKE_curveprofile_reset(), BKE_curveprofile_reset_view(), BKE_curveprofile_update(), ButMenu, C, CTX_wm_region(), PointerRNA::data, ED_region_tag_redraw(), ED_undo_push(), blender::ui::Emboss, IFACE_, PROF_UPDATE_NONE, RNAUpdateCb::prop, RNAUpdateCb::ptr, RNA_property_pointer_get(), rna_update_cb(), UI_block_begin(), UI_block_bounds_set_text(), UI_block_direction_set(), UI_but_func_set(), UI_DIR_DOWN, UI_UNIT_X, UI_UNIT_Y, and uiDefIconTextBut().
Referenced by CurveProfile_buttons_layout().
|
static |
Definition at line 144 of file interface_template_curve_profile.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), C, CTX_wm_region(), curve_profile_can_zoom_in(), ED_region_tag_redraw(), CurveProfile::view_rect, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by CurveProfile_buttons_layout().
|
static |
Definition at line 158 of file interface_template_curve_profile.cc.
References BLI_rctf_size_x(), BLI_rctf_size_y(), C, CurveProfile::clip_rect, CTX_wm_region(), curve_profile_can_zoom_out(), ED_region_tag_redraw(), CurveProfile::flag, PROF_USE_CLIP, CurveProfile::view_rect, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by CurveProfile_buttons_layout().
|
static |
Definition at line 200 of file interface_template_curve_profile.cc.
References uiLayout::alignment_set(), BKE_curveprofile_remove_by_flag(), BKE_curveprofile_reset(), BKE_curveprofile_reverse(), BKE_curveprofile_update(), uiLayout::block(), bounds(), But, but_func_argN_copy(), but_func_argN_free(), C, CurveProfile::clip_rect, curve_profile_can_zoom_in(), curve_profile_can_zoom_out(), curve_profile_presets_fn(), curve_profile_tools_fn(), curve_profile_zoom_in(), curve_profile_zoom_out(), CurveProfile, ELEM, blender::ui::Emboss, CurveProfile::flag, CurveProfilePoint::flag, CurveProfilePoint::h1_loc, CurveProfilePoint::h2_loc, i, IFACE_, blender::ui::Left, max_ii(), min_ii(), Num, CurveProfile::path, CurveProfile::path_len, CurveProfile::preset, PROF_DIRTY_PRESET, PROF_H1_SELECT, PROF_H2_SELECT, PROF_PRESET_STEPS, PROF_PRESET_SUPPORTS, PROF_SELECT, PROF_UPDATE_CLIP, PROF_UPDATE_NONE, PROF_UPDATE_REMOVE_DOUBLES, PROF_USE_CLIP, uiLayout::prop(), ptr, blender::ui::Right, RNA_NO_INDEX, RNA_pointer_create_discrete(), RNA_struct_find_property(), rna_update_cb(), uiLayout::row(), SELECT, TIP_, UI_block_emboss_set(), UI_block_funcN_set(), UI_but_disable(), UI_BUT_DISABLED, UI_but_flag_enable(), UI_but_func_set(), UI_but_funcN_set(), UI_but_number_precision_set(), UI_but_number_step_size_set(), UI_ITEM_NONE, UI_ITEM_R_EXPAND, UI_ITEM_R_ICON_ONLY, UI_UNIT_X, UI_UNIT_Y, uiDefBlockBut(), uiDefBut(), uiDefButF(), uiDefIconBlockBut(), uiDefIconBut(), uiDefIconTextBut(), uiLayout::use_property_split_set(), uiLayout::width(), CurveProfilePoint::x, and CurveProfilePoint::y.
Referenced by uiTemplateCurveProfile().
| void uiTemplateCurveProfile | ( | uiLayout * | layout, |
| PointerRNA * | ptr, | ||
| blender::StringRefNull | propname ) |
Template for a path creation widget intended for custom bevel profiles. This section is quite similar to uiTemplateCurveMapping, but with reduced complexity.
Definition at line 512 of file interface_template_curve_profile.cc.
References uiLayout::block(), blender::StringRefNull::c_str(), CurveProfile_buttons_layout(), PointerRNA::data, ERROR_LIBDATA_MESSAGE, ID_IS_EDITABLE, PointerRNA::owner_id, PROP_POINTER, ptr, RNA_property_pointer_get(), RNA_property_type(), RNA_struct_find_property(), RNA_struct_identifier(), RNA_struct_is_a(), RNA_warning, PointerRNA::type, UI_block_lock_clear(), and UI_block_lock_set().
Referenced by edbm_bevel_ui(), and profile_panel_draw().