Blender V4.3
spreadsheet_draw.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
5#pragma once
6
7#include "BLI_vector.hh"
8
9struct ARegion;
10struct bContext;
11struct uiBlock;
12
14
20
22 public:
26 int tot_rows = 0;
27 int tot_columns = 0;
28
31
32 virtual void draw_top_row_cell(int column_index, const CellDrawParams &params) const;
33
34 virtual void draw_left_column_cell(int row_index, const CellDrawParams &params) const;
35
36 virtual void draw_content_cell(int row_index,
37 int column_index,
38 const CellDrawParams &params) const;
39
40 virtual int column_width(int column_index) const;
41};
42
44 ARegion *region,
45 const SpreadsheetDrawer &drawer);
46
47} // namespace blender::ed::spreadsheet
virtual void draw_top_row_cell(int column_index, const CellDrawParams &params) const
virtual int column_width(int column_index) const
virtual void draw_left_column_cell(int row_index, const CellDrawParams &params) const
virtual void draw_content_cell(int row_index, int column_index, const CellDrawParams &params) const
uiWidgetBaseParameters params[MAX_WIDGET_BASE_BATCH]
void draw_spreadsheet_in_region(const bContext *C, ARegion *region, const SpreadsheetDrawer &drawer)