Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_spreadsheet/spreadsheet_cell_value.hh
| Show All 12 Lines | |||||
| * along with this program; if not, write to the Free Software Foundation, | * along with this program; if not, write to the Free Software Foundation, | ||||
| * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
| */ | */ | ||||
| #pragma once | #pragma once | ||||
| #include <optional> | #include <optional> | ||||
| #include "BLI_color.hh" | |||||
| #include "BLI_float2.hh" | |||||
| #include "BLI_float3.hh" | |||||
| struct Object; | struct Object; | ||||
| struct Collection; | struct Collection; | ||||
| namespace blender::ed::spreadsheet { | namespace blender::ed::spreadsheet { | ||||
| struct ObjectCellValue { | struct ObjectCellValue { | ||||
| const Object *object; | const Object *object; | ||||
| }; | }; | ||||
| Show All 10 Lines | |||||
| public: | public: | ||||
| /* The implementation just uses a bunch of `std::option` for now. Unfortunately, we cannot use | /* The implementation just uses a bunch of `std::option` for now. Unfortunately, we cannot use | ||||
| * `std::variant` yet, due to missing compiler support. This type can really be optimized more, | * `std::variant` yet, due to missing compiler support. This type can really be optimized more, | ||||
| * but it does not really matter too much currently. */ | * but it does not really matter too much currently. */ | ||||
| std::optional<int> value_int; | std::optional<int> value_int; | ||||
| std::optional<float> value_float; | std::optional<float> value_float; | ||||
| std::optional<bool> value_bool; | std::optional<bool> value_bool; | ||||
| std::optional<float2> value_float2; | |||||
| std::optional<float3> value_float3; | |||||
| std::optional<Color4f> value_color; | |||||
| std::optional<ObjectCellValue> value_object; | std::optional<ObjectCellValue> value_object; | ||||
| std::optional<CollectionCellValue> value_collection; | std::optional<CollectionCellValue> value_collection; | ||||
| }; | }; | ||||
| } // namespace blender::ed::spreadsheet | } // namespace blender::ed::spreadsheet | ||||