Files
kryon/include/ui_input_props.generated.h
T

53 lines
1.3 KiB
C

/* Generated by k2c from runtime/input_props.kry. */
#ifndef K_RUNTIME_INPUT_PROPS_H
#define K_RUNTIME_INPUT_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 enum NumericValueKind {
NumericFloat = 0,
NumericInt = 1,
NumericDouble = 2,
} NumericValueKind;
typedef struct Activation {
bool activated;
bool pressed;
bool hovered;
bool focused;
} Activation;
typedef struct InputProps {
Rectangle bounds;
int32_t id;
const char* label;
NumericValueKind kind;
float* float_values;
int32_t* int_values;
double* double_values;
int32_t value_count;
double step;
double step_fast;
const char* format;
bool disabled;
} InputProps;
#endif /* K_RUNTIME_INPUT_PROPS_H */