Blender V5.0
interface_template_curve_profile.cc File Reference
#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 uiBlockcurve_profile_presets_fn (bContext *C, ARegion *region, void *cb_v)
static uiBlockcurve_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)

Function Documentation

◆ curve_profile_can_zoom_in()

bool curve_profile_can_zoom_in ( CurveProfile * profile)
static

◆ curve_profile_can_zoom_out()

bool curve_profile_can_zoom_out ( CurveProfile * profile)
static

◆ curve_profile_presets_fn()

◆ curve_profile_tools_fn()

◆ curve_profile_zoom_in()

◆ curve_profile_zoom_out()

◆ CurveProfile_buttons_layout()

void CurveProfile_buttons_layout ( uiLayout * layout,
PointerRNA * ptr,
const RNAUpdateCb & cb )
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().

◆ uiTemplateCurveProfile()