docs
Loading...
Searching...
No Matches
ULDOMDataLeafValue

#include <Ultralight/CAPI/CAPI_DOMData.h>

Overview

One value of a field or of an action's payload.

Only the member that matches kind is meaningful.

Note
Zero-initialize a value you fill in (eg, ULDOMDataLeafValue value = { 0 };) before you set its members, so a member a later release adds reads as 0.

Public Attributes

unsigned char kind
 The kind of value (a ULDOMDataValueKind value).
bool bool_value
 The value of a boolean.
long long int64_value
 The value of an integer.
double double_value
 The value of a double-precision float.
const char * string_value
 The UTF-8 text of a string.
size_t string_length
 The length of string_value in bytes (text can contain NUL characters).
ULColor color_value
 The value of a color.

Member Data Documentation

◆ bool_value

bool bool_value

The value of a boolean.

◆ color_value

ULColor color_value

The value of a color.

◆ double_value

double double_value

The value of a double-precision float.

◆ int64_value

long long int64_value

The value of an integer.

◆ kind

unsigned char kind

The kind of value (a ULDOMDataValueKind value).

◆ string_length

size_t string_length

The length of string_value in bytes (text can contain NUL characters).

The length is exact, so 0 means an empty string.

◆ string_value

const char* string_value

The UTF-8 text of a string.

In a value the library gives you, it's never NULL, it's NUL-terminated, and it's valid only during the call. In a value you pass in, NULL means an empty string.


The documentation for this struct was generated from the following file: