Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_spreadsheet/spreadsheet_intern.hh
| Show All 11 Lines | |||||
| * You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
| * 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 "BKE_geometry_set.hh" | #include "BKE_geometry_set.hh" | ||||
| #include "spreadsheet_cache.hh" | |||||
| typedef struct SpaceSpreadsheet_Runtime { | struct SpaceSpreadsheet_Runtime { | ||||
| int visible_rows; | public: | ||||
| int tot_rows; | int visible_rows = 0; | ||||
| int tot_columns; | int tot_rows = 0; | ||||
| } SpaceSpreadsheet_Runtime; | int tot_columns = 0; | ||||
| blender::ed::spreadsheet::SpreadsheetCache cache; | |||||
| SpaceSpreadsheet_Runtime() = default; | |||||
| /* The cache is not copied currently. */ | |||||
| SpaceSpreadsheet_Runtime(const SpaceSpreadsheet_Runtime &other) | |||||
| : visible_rows(other.visible_rows), tot_rows(other.tot_rows), tot_columns(other.tot_columns) | |||||
| { | |||||
| } | |||||
| }; | |||||
| struct bContext; | struct bContext; | ||||
| void spreadsheet_operatortypes(void); | void spreadsheet_operatortypes(void); | ||||
| void spreadsheet_update_context_path(const bContext *C); | void spreadsheet_update_context_path(const bContext *C); | ||||
| Object *spreadsheet_get_object_eval(const SpaceSpreadsheet *sspreadsheet, | Object *spreadsheet_get_object_eval(const SpaceSpreadsheet *sspreadsheet, | ||||
| const Depsgraph *depsgraph); | const Depsgraph *depsgraph); | ||||
| namespace blender::ed::spreadsheet { | namespace blender::ed::spreadsheet { | ||||
| GeometrySet spreadsheet_get_display_geometry_set(const SpaceSpreadsheet *sspreadsheet, | GeometrySet spreadsheet_get_display_geometry_set(const SpaceSpreadsheet *sspreadsheet, | ||||
| Object *object_eval, | Object *object_eval, | ||||
| const GeometryComponentType used_component_type); | const GeometryComponentType used_component_type); | ||||
| } | } | ||||