ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Attributes | List of all members
ColumnMetadata Struct Reference

Metadata for a table column. More...

#include <ColumnMetadata.hpp>

Collaboration diagram for ColumnMetadata:
Collaboration graph

Public Attributes

int column
 
std::string_view header
 
column_style style
 
bool hidden_by_default
 
int default_width
 

Detailed Description

Metadata for a table column.

Provides a single source of truth for column configuration including header text, rendering style, visibility, and width. Used by models to define columns in a way that automatically stays in sync with delegate styles and column visibility settings.

Member Data Documentation

◆ column

int column

Column index (should match the model's Column enum value).

◆ header

std::string_view header

Header text displayed in the table view.

◆ style

column_style style

Rendering style for the column (font, alignment).

◆ hidden_by_default

bool hidden_by_default

If true, column is hidden by default.

◆ default_width

int default_width

Default width in pixels, or kColumnWidthAuto for auto-size.