32 : spreadsheet_layout_(spreadsheet_layout)
64 const int real_index = spreadsheet_layout_.
row_indices[row_index];
88 const int real_index = spreadsheet_layout_.
row_indices[row_index];
90 if (real_index > column.
size()) {
96 if (
data.type().is<
int>()) {
97 const int value =
data.get<
int>(real_index);
140 else if (
data.type().is<
float>()) {
141 const float value =
data.get<
float>(real_index);
142 std::stringstream ss;
143 ss << std::fixed << std::setprecision(3) << value;
144 const std::string value_str = ss.str();
164 else if (
data.type().is<
bool>()) {
165 const bool value =
data.get<
bool>(real_index);
166 const int icon = value ? ICON_CHECKBOX_HLT : ICON_CHECKBOX_DEHLT;
202 switch (value.
type()) {
227 ICON_OUTLINER_COLLECTION,
264 else if (
data.type().is<std::string>()) {
269 data.get<std::string>(real_index).c_str(),
288 std::stringstream ss;
289 const float value = values[i];
290 ss <<
" " << std::fixed << std::setprecision(3) << value;
291 const std::string value_str = ss.str();
297 params.xmin + i * segment_width,
319 std::stringstream ss;
320 const float value = values[i];
321 ss <<
" " << std::fixed << std::setprecision(3) << value;
322 const std::string value_str = ss.str();
328 params.xmin + i * segment_width,
361 return spreadsheet_layout_.
columns[column_index].width;
368 return std::make_unique<SpreadsheetLayoutDrawer>(spreadsheet_layout);
typedef float(TangentPoint)[2]
size_t size_t char * BLI_sprintfN(const char *__restrict format,...) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1) ATTR_MALLOC ATTR_PRINTF_FORMAT(1
#define POINTER_AS_UINT(i)
#define POINTER_FROM_UINT(i)
Object groups, one object can be in many groups at once.
Object is a sort of wrapper for general info.
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Bright Control the brightness and contrast of the input color Vector Map an input vectors to used to fine tune the interpolation of the input Camera Retrieve information about the camera and how it relates to the current shading point s position Clamp a value between a minimum and a maximum Vector Perform vector math operation Invert a color
uiBut * uiDefIconTextBut(uiBlock *block, int type, int retval, int icon, const char *str, int x, int y, short width, short height, void *poin, float min, float max, float a1, float a2, const char *tip)
void UI_but_func_tooltip_set(uiBut *but, uiButToolTipFunc func, void *arg, uiFreeArgFunc free_arg)
void UI_but_drawflag_enable(uiBut *but, int flag)
void UI_but_drawflag_disable(uiBut *but, int flag)
Collection & collection() const
constexpr int64_t size() const
constexpr IndexRange index_range() const
constexpr bool is_empty() const
constexpr const char * c_str() const
const GVArray & data() const
void draw_top_row_cell(int column_index, const CellDrawParams ¶ms) const final
void draw_byte_color(const CellDrawParams ¶ms, const ColorGeometry4b color) const
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
int column_width(int column_index) const final
void draw_float_vector(const CellDrawParams ¶ms, const Span< float > values) const
SpreadsheetLayoutDrawer(const SpreadsheetLayout &spreadsheet_layout)
std::unique_ptr< SpreadsheetDrawer > spreadsheet_drawer_from_layout(const SpreadsheetLayout &spreadsheet_layout)
std::string to_string(const T &n)
Vector< ColumnLayout > columns