Differential D12938 Diff 43629 source/blender/editors/space_spreadsheet/spreadsheet_column_values.hh
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_spreadsheet/spreadsheet_column_values.hh
| Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | std::unique_ptr<ColumnValues> column_values_from_function(const eSpreadsheetColumnValueType type, | ||||
| const float default_width = 0.0f) | const float default_width = 0.0f) | ||||
| { | { | ||||
| std::unique_ptr<ColumnValues> column_values = std::make_unique<LambdaColumnValues<GetValueF>>( | std::unique_ptr<ColumnValues> column_values = std::make_unique<LambdaColumnValues<GetValueF>>( | ||||
| type, std::move(name), size, std::move(get_value)); | type, std::move(name), size, std::move(get_value)); | ||||
| column_values->default_width = default_width; | column_values->default_width = default_width; | ||||
| return column_values; | return column_values; | ||||
| } | } | ||||
| static constexpr float default_float_column_width = 3; | |||||
| static constexpr float default_float2_column_width = 2 * default_float_column_width; | |||||
| static constexpr float default_float3_column_width = 3 * default_float_column_width; | |||||
| static constexpr float default_color_column_width = 4 * default_float_column_width; | |||||
| } // namespace blender::ed::spreadsheet | } // namespace blender::ed::spreadsheet | ||||