27 printf(
"%s: property not found: %s.%s\n",
41 "UI_MT_color_space_select");
52 printf(
"%s: property not found: %s.%s\n",
61 view_transform_ptr.
data);
67 col = &layout->
column(
false);
68 col->
prop(&view_transform_ptr,
"exposure",
UI_ITEM_NONE, std::nullopt, ICON_NONE);
69 col->
prop(&view_transform_ptr,
"gamma",
UI_ITEM_NONE, std::nullopt, ICON_NONE);
71 col = &layout->
column(
false);
72 col->
prop(&view_transform_ptr,
"use_curve_mapping",
UI_ITEM_NONE, std::nullopt, ICON_NONE);
75 col, &view_transform_ptr,
"curve_mapping",
'c',
true,
false,
false,
false,
false);
78 col = &layout->
column(
false);
79 col->
prop(&view_transform_ptr,
"use_white_balance",
UI_ITEM_NONE, std::nullopt, ICON_NONE);
82 &view_transform_ptr,
"white_balance_temperature",
UI_ITEM_NONE, std::nullopt, ICON_NONE);
83 col->
prop(&view_transform_ptr,
"white_balance_tint",
UI_ITEM_NONE, std::nullopt, ICON_NONE);
constexpr const char * c_str() const
void template_colorspace_settings(Layout *layout, PointerRNA *ptr, StringRefNull propname)
void template_colormanaged_view_settings(Layout *layout, bContext *C, PointerRNA *ptr, StringRefNull propname)
void template_curve_mapping(Layout *layout, PointerRNA *ptr, StringRefNull propname, int type, bool levels, bool brush, bool neg_slope, bool tone, bool presets)
PointerRNA RNA_property_pointer_get(PointerRNA *ptr, PropertyRNA *prop)
@ COLORMANAGE_VIEW_USE_WHITE_BALANCE
@ COLORMANAGE_VIEW_USE_CURVES
PropertyRNA * RNA_struct_find_property(PointerRNA *ptr, const char *identifier)
const char * RNA_struct_identifier(const StructRNA *type)
eColorManageView_Flag flag
void prop_with_menu(PointerRNA *ptr, blender::StringRefNull propname, eUI_Item_Flag flag, std::optional< blender::StringRefNull > name, int icon, const char *menu_type)
void prop(PointerRNA *ptr, PropertyRNA *prop, int index, int value, eUI_Item_Flag flag, std::optional< StringRef > name_opt, int icon, std::optional< StringRef > placeholder=std::nullopt)
Layout & column(bool align)