Blender V5.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
7namespace blender {
8
9struct ARegion;
10struct bContext;
11namespace ui {
12struct Block;
13}
14
15namespace ed::spreadsheet {
16
22
24 public:
28 int tot_rows = 0;
29 int tot_columns = 0;
30
33
34 virtual void draw_top_row_cell(int column_index, const CellDrawParams &params) const;
35
36 virtual void draw_left_column_cell(int row_index, const CellDrawParams &params) const;
37
38 virtual void draw_content_cell(int row_index,
39 int column_index,
40 const CellDrawParams &params) const;
41
42 virtual int column_width(int column_index) const;
43};
44
46 ARegion *region,
47 const SpreadsheetDrawer &drawer);
48
49} // namespace ed::spreadsheet
50} // namespace blender
#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
void draw_spreadsheet_in_region(const bContext *C, ARegion *region, const SpreadsheetDrawer &drawer)
BMesh Iterators.