Blender
V3.3
|
Public Member Functions | |
SpreadsheetLayoutDrawer (const SpreadsheetLayout &spreadsheet_layout) | |
void | draw_top_row_cell (int column_index, const CellDrawParams ¶ms) const final |
void | draw_left_column_cell (int row_index, const CellDrawParams ¶ms) const final |
void | draw_content_cell (int row_index, int column_index, const CellDrawParams ¶ms) const final |
void | draw_float_vector (const CellDrawParams ¶ms, const Span< float > values) const |
void | draw_byte_color (const CellDrawParams ¶ms, const ColorGeometry4b color) const |
int | column_width (int column_index) const final |
![]() | |
SpreadsheetDrawer () | |
virtual | ~SpreadsheetDrawer () |
Additional Inherited Members | |
![]() | |
int | left_column_width |
int | top_row_height |
int | row_height |
int | tot_rows = 0 |
int | tot_columns = 0 |
Definition at line 26 of file spreadsheet_layout.cc.
|
inline |
Definition at line 31 of file spreadsheet_layout.cc.
References blender::ed::spreadsheet::SpreadsheetLayout::columns, blender::ed::spreadsheet::SpreadsheetLayout::index_column_width, blender::ed::spreadsheet::SpreadsheetDrawer::left_column_width, blender::ed::spreadsheet::SpreadsheetLayout::row_indices, blender::IndexMask::size(), blender::ed::spreadsheet::SpreadsheetDrawer::tot_columns, and blender::ed::spreadsheet::SpreadsheetDrawer::tot_rows.
|
inlinefinalvirtual |
Reimplemented from blender::ed::spreadsheet::SpreadsheetDrawer.
Definition at line 359 of file spreadsheet_layout.cc.
References blender::ed::spreadsheet::SpreadsheetLayout::columns.
|
inline |
Definition at line 313 of file spreadsheet_layout.cc.
References BLI_sprintfN(), color, float(), blender::Span< T >::index_range(), params, POINTER_AS_UINT, POINTER_FROM_UINT, blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r, blender::Span< T >::size(), TIP_, UI_BTYPE_LABEL, UI_but_drawflag_disable(), UI_but_drawflag_enable(), UI_but_func_tooltip_set(), UI_BUT_TEXT_LEFT, UI_BUT_TEXT_RIGHT, uiDefIconTextBut(), and UNUSED.
Referenced by draw_content_cell().
|
inlinefinalvirtual |
Reimplemented from blender::ed::spreadsheet::SpreadsheetDrawer.
Definition at line 86 of file spreadsheet_layout.cc.
References InstanceReference::Collection, InstanceReference::collection(), blender::ed::spreadsheet::SpreadsheetLayout::columns, data, blender::ed::spreadsheet::ColumnValues::data(), draw_byte_color(), draw_float_vector(), InstanceReference::GeometrySet, Collection::id, ID::name, InstanceReference::None, InstanceReference::Object, InstanceReference::object(), params, blender::ColorRGBA< ChannelStorageType, Space, Alpha >::r, blender::ed::spreadsheet::SpreadsheetLayout::row_indices, blender::ed::spreadsheet::ColumnValues::size(), std::to_string(), InstanceReference::type(), UI_BTYPE_LABEL, UI_but_drawflag_disable(), UI_but_drawflag_enable(), UI_BUT_ICON_LEFT, UI_BUT_TEXT_LEFT, UI_BUT_TEXT_RIGHT, and uiDefIconTextBut().
|
inline |
Definition at line 283 of file spreadsheet_layout.cc.
References BLI_assert, float(), blender::Span< T >::index_range(), blender::Span< T >::is_empty(), params, blender::Span< T >::size(), UI_BTYPE_LABEL, UI_but_drawflag_disable(), UI_but_drawflag_enable(), UI_BUT_TEXT_LEFT, UI_BUT_TEXT_RIGHT, and uiDefIconTextBut().
Referenced by draw_content_cell().
|
inlinefinalvirtual |
Reimplemented from blender::ed::spreadsheet::SpreadsheetDrawer.
Definition at line 62 of file spreadsheet_layout.cc.
References params, blender::ed::spreadsheet::SpreadsheetLayout::row_indices, std::to_string(), UI_BTYPE_LABEL, UI_but_drawflag_disable(), UI_but_drawflag_enable(), UI_BUT_TEXT_LEFT, UI_BUT_TEXT_RIGHT, and uiDefIconTextBut().
|
inlinefinalvirtual |
Reimplemented from blender::ed::spreadsheet::SpreadsheetDrawer.
Definition at line 39 of file spreadsheet_layout.cc.
References blender::StringRefNull::c_str(), blender::ed::spreadsheet::SpreadsheetLayout::columns, params, UI_BTYPE_LABEL, UI_but_drawflag_disable(), UI_BUT_TEXT_LEFT, UI_BUT_TEXT_RIGHT, and uiDefIconTextBut().