Blender V5.0
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
7struct ARegion;
8struct bContext;
9struct uiBlock;
10
12
18
20 public:
24 int tot_rows = 0;
25 int tot_columns = 0;
26
29
30 virtual void draw_top_row_cell(int column_index, const CellDrawParams &params) const;
31
32 virtual void draw_left_column_cell(int row_index, const CellDrawParams &params) const;
33
34 virtual void draw_content_cell(int row_index,
35 int column_index,
36 const CellDrawParams &params) const;
37
38 virtual int column_width(int column_index) const;
39};
40
42 ARegion *region,
43 const SpreadsheetDrawer &drawer);
44
45} // namespace blender::ed::spreadsheet
#define C
Definition RandGen.cpp:29
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)