Files
kryon/include/ui_segmented_control_props.generated.h
T
waozi 6dadfae89b Route the web KSS layer through the generated kry module
parseWebStyleSheet now runs runtime/kss_parser.kry in declarative mode: the shared grammar lexes rule selectors, declaration spans, and foreign blocks (@keyframes, @media, @supports, @container) and the web layer only maps them to CSS. Theme overlays, typed environment axes, imports with cycle and missing-source diagnostics, layer ordering, and file:line:column provenance now behave identically on the web, and the hand-written regex KSS parser is removed. Durations convert through exact decimal shifting and integer diagnostics printing avoids float division so C, Go, and JavaScript agree. Strict and CSS-superset web suites pass; the remaining k2js syntax failure is the pre-existing ruby text regression from 4d60fab5.
2026-09-15 18:38:13 -03:00

51 lines
1.4 KiB
C

/* Generated by k2c from runtime/segmented_control_props.kry. */
#ifndef K_RUNTIME_SEGMENTED_CONTROL_PROPS_H
#define K_RUNTIME_SEGMENTED_CONTROL_PROPS_H
#include <stdint.h>
#include <stdbool.h>
#include "kry_bounds.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 SegmentOption {
const char* label;
bool disabled;
} SegmentOption;
typedef struct SegmentedControlProps {
Rectangle bounds;
int32_t id;
int32_t class_name;
const SegmentOption* options;
int32_t option_count;
int32_t* selected_index;
int32_t height;
int32_t min_item_width;
int32_t max_item_width;
bool wrap;
} SegmentedControlProps;
typedef struct SegmentedControlResult {
int32_t selected_index;
int32_t clicked_index;
int32_t changed;
int32_t height;
} SegmentedControlResult;
#endif /* K_RUNTIME_SEGMENTED_CONTROL_PROPS_H */