Files
kryon/include/ui_table_view_props.generated.h
T

70 lines
1.9 KiB
C

/* Generated by k2c from runtime/table_view_props.kry. */
#ifndef K_RUNTIME_TABLE_VIEW_PROPS_H
#define K_RUNTIME_TABLE_VIEW_PROPS_H
#include <stdint.h>
#include <stdbool.h>
#ifndef KIR_STRING_VALUE_DEFINED
#define KIR_STRING_VALUE_DEFINED
#include <stddef.h>
#include <string.h>
/* Immutable borrowed UTF-8 bytes; length preserves embedded nulls. */
typedef struct String { const char *data; size_t length; } String;
static inline String StringView(const char *data, size_t length) {
String value = {data, length};
return value;
}
static inline bool StringEqual(String a, String b) {
return a.length == b.length && (a.length == 0 || memcmp(a.data, b.data, a.length) == 0);
}
#endif
#include "kryon_compat.generated.h"
typedef struct TableRow {
const char** cells;
int32_t cell_count;
const Color* text_colors;
const Color* background_colors;
} TableRow;
typedef struct TableViewProps {
Rectangle bounds;
int32_t id;
int32_t class_name;
const char** columns;
int32_t column_count;
const TableRow* rows;
int32_t row_count;
int32_t* column_widths;
int32_t* selected_row;
int32_t* selected_column;
int32_t* activated_row;
int32_t* activated_column;
int32_t* right_clicked_row;
int32_t* right_clicked_column;
int32_t* sort_column;
int32_t* scroll_offset;
int32_t row_height;
int32_t* column_enabled;
int32_t* column_order;
int32_t* sort_direction;
bool disabled;
bool resizable;
int32_t min_column_width;
int32_t freeze_rows;
int32_t header_height;
float header_angle;
bool custom_cells;
const char* copy_text;
const char** pasted_text;
int32_t* pasted_row;
int32_t* pasted_column;
int32_t* selection_start_row;
int32_t* selection_start_column;
int32_t* selection_end_row;
int32_t* selection_end_column;
} TableViewProps;
#endif /* K_RUNTIME_TABLE_VIEW_PROPS_H */