libwebsockets
Lightweight C library for HTML5 websockets
lws-html.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lhp_atr
 
struct  lhp_table_row_t
 
struct  lhp_table_col_t
 
struct  lhp_pstack
 
struct  lcsp_atr
 
struct  lcsp_defs
 
struct  lcsp_names
 
struct  lcsp_stanza
 
struct  lcsp_stanza_ptr
 
struct  lcsp_atr_ptr
 
struct  lhp_ctx
 
union  lcsp_atr.u
 
union  lhp_ctx.u
 
struct  lhp_ctx.u.f
 

Macros

#define LHP_MAX_ELEMS_NEST   32
 
#define LHP_MAX_DEPTH   12
 
#define LHP_STRING_CHUNK   254
 
#define CCPAS_TOP   0
 
#define CCPAS_RIGHT   1
 
#define CCPAS_BOTTOM   2
 
#define CCPAS_LEFT   3
 
#define LHP_FLAG_DOCUMENT_END   (1 << 0)
 
#define LHP_CSS_PROPVAL_INT_WHOLE   1
 
#define LHP_CSS_PROPVAL_INT_FRAC   2
 
#define LHP_CSS_PROPVAL_INT_UNIT   3
 
#define LWS_LHPREF_WIDTH   0
 
#define LWS_LHPREF_HEIGHT   1
 
#define LWS_LHPREF_NONE   2
 

Typedefs

typedef enum lcsp_props lcsp_props_t
 
typedef lws_stateful_ret_t(* lhp_callback) (struct lhp_ctx *ctx, char reason)
 
typedef struct lhp_atr lhp_atr_t
 
typedef struct lhp_pstack lhp_pstack_t
 
typedef enum lcsp_css_units lcsp_css_units_t
 
typedef struct lcsp_atr lcsp_atr_t
 
typedef struct lcsp_defs lcsp_defs_t
 
typedef struct lcsp_names lcsp_names_t
 
typedef struct lcsp_stanza lcsp_stanza_t
 
typedef struct lcsp_stanza_ptr lcsp_stanza_ptr_t
 
typedef struct lcsp_atr_ptr lcsp_atr_ptr_t
 
typedef struct lhp_ctx lhp_ctx_t
 

Enumerations

enum  lhp_callbacks {
  LHPCB_ERR_ATTRIB_SYNTAX = -5 , LHPCB_ERR_ATTRIB_LEN = -4 , LHPCB_ERR_OOM = -3 , LHPCB_ERR_ELEM_DEPTH = -2 ,
  LHPCB_CONTINUE = -1 , LHPCB_CONSTRUCTED = 0 , LHPCB_DESTRUCTED = 1 , LHPCB_COMPLETE = 2 ,
  LHPCB_FAILED = 3 , LHPCB_ELEMENT_START = 4 , LHPCB_ELEMENT_END = 5 , LHPCB_CONTENT = 6 ,
  LHPCB_COMMENT = 7
}
 
enum  lcsp_props {
  LCSP_PROP_AZIMUTH , LCSP_PROP_BACKGROUND_ATTACHMENT , LCSP_PROP_BACKGROUND_COLOR , LCSP_PROP_BACKGROUND_IMAGE ,
  LCSP_PROP_BACKGROUND_POSITION , LCSP_PROP_BACKGROUND_REPEAT , LCSP_PROP_BACKGROUND , LCSP_PROP_BORDER_COLLAPSE ,
  LCSP_PROP_BORDER_COLOR , LCSP_PROP_BORDER_SPACING , LCSP_PROP_BORDER_STYLE , LCSP_PROP_BORDER_TOP ,
  LCSP_PROP_BORDER_RIGHT , LCSP_PROP_BORDER_BOTTOM , LCSP_PROP_BORDER_LEFT , LCSP_PROP_BORDER_TOP_COLOR ,
  LCSP_PROP_BORDER_RIGHT_COLOR , LCSP_PROP_BORDER_BOTTOM_COLOR , LCSP_PROP_BORDER_LEFT_COLOR , LCSP_PROP_BORDER_TOP_STYLE ,
  LCSP_PROP_BORDER_RIGHT_STYLE , LCSP_PROP_BORDER_BOTTOM_STYLE , LCSP_PROP_BORDER_LEFT_STYLE , LCSP_PROP_BORDER_TOP_WIDTH ,
  LCSP_PROP_BORDER_RIGHT_WIDTH , LCSP_PROP_BORDER_BOTTOM_WIDTH , LCSP_PROP_BORDER_LEFT_WIDTH , LCSP_PROP_BORDER_WIDTH ,
  LCSP_PROP_BORDER_TOP_LEFT_RADIUS , LCSP_PROP_BORDER_TOP_RIGHT_RADIUS , LCSP_PROP_BORDER_BOTTOM_LEFT_RADIUS , LCSP_PROP_BORDER_BOTTOM_RIGHT_RADIUS ,
  LCSP_PROP_BORDER_RADIUS , LCSP_PROP_BORDER , LCSP_PROP_BOTTOM , LCSP_PROP_CAPTION_SIDE ,
  LCSP_PROP_CLEAR , LCSP_PROP_CLIP , LCSP_PROP_COLOR , LCSP_PROP_CONTENT ,
  LCSP_PROP_COUNTER_INCREMENT , LCSP_PROP_COUNTER_RESET , LCSP_PROP_CUE_AFTER , LCSP_PROP_CUE_BEFORE ,
  LCSP_PROP_CUE , LCSP_PROP_CURSOR , LCSP_PROP_DIRECTION , LCSP_PROP_DISPLAY ,
  LCSP_PROP_ELEVATION , LCSP_PROP_EMPTY_CELLS , LCSP_PROP_FLOAT , LCSP_PROP_FONT_FAMILY ,
  LCSP_PROP_FONT_SIZE , LCSP_PROP_FONT_STYLE , LCSP_PROP_FONT_VARAIANT , LCSP_PROP_FONT_WEIGHT ,
  LCSP_PROP_FONT , LCSP_PROP_HEIGHT , LCSP_PROP_LEFT , LCSP_PROP_LETTER_SPACING ,
  LCSP_PROP_LINE_HEIGHT , LCSP_PROP_LIST_STYLE_IMAGE , LCSP_PROP_LIST_STYLE_POSITION , LCSP_PROP_LIST_STYLE_TYPE ,
  LCSP_PROP_LIST_STYLE , LCSP_PROP_MARGIN_RIGHT , LCSP_PROP_MARGIN_LEFT , LCSP_PROP_MARGIN_TOP ,
  LCSP_PROP_MARGIN_BOTTOM , LCSP_PROP_MARGIN , LCSP_PROP_MAX_HEIGHT , LCSP_PROP_MAX_WIDTH ,
  LCSP_PROP_MIN_HEIGHT , LCSP_PROP_MIN_WIDTH , LCSP_PROP_ORPHANS , LCSP_PROP_OUTLINE_COLOR ,
  LCSP_PROP_OUTLINE_STYLE , LCSP_PROP_OUTLINE_WIDTH , LCSP_PROP_OUTLINE , LCSP_PROP_OVERFLOW ,
  LCSP_PROP_PADDING_TOP , LCSP_PROP_PADDING_RIGHT , LCSP_PROP_PADDING_BOTTOM , LCSP_PROP_PADDING_LEFT ,
  LCSP_PROP_PADDING , LCSP_PROP_PAGE_BREAK_AFTER , LCSP_PROP_PAGE_BREAK_BEFORE , LCSP_PROP_PAGE_BREAK_INSIDE ,
  LCSP_PROP_PAUSE_AFTER , LCSP_PROP_PAUSE_BEFORE , LCSP_PROP_PAUSE , LCSP_PROP_PITCH_RANGE ,
  LCSP_PROP_PITCH , LCSP_PROP_PLAY_DURING , LCSP_PROP_POSITION , LCSP_PROP_QUOTES ,
  LCSP_PROP_RICHNESS , LCSP_PROP_RIGHT , LCSP_PROP_SPEAK_HEADER , LCSP_PROP_SPEAK_NUMERAL ,
  LCSP_PROP_SPEAK_PUNCTUATION , LCSP_PROP_SPEAK , LCSP_PROP_SPEECH_RATE , LCSP_PROP_STRESS ,
  LCSP_PROP_TABLE_LAYOUT , LCSP_PROP_TEXT_ALIGN , LCSP_PROP_TEXT_DECORATION , LCSP_PROP_TEXT_INDENT ,
  LCSP_PROP_TEXT_TRANSFORM , LCSP_PROP_TOP , LCSP_PROP_UNICODE_BIDI , LCSP_PROP_VERTICAL_ALIGN ,
  LCSP_PROP_VISIBILITY , LCSP_PROP_VOICE_FAMILY , LCSP_PROP_VOLUME , LCSP_PROP_WHITE_SPACE ,
  LCSP_PROP_WIDOWS , LCSP_PROP_WIDTH , LCSP_PROP_WORD_SPACING , LCSP_PROP_Z_INDEX ,
  LCSP_PROP__COUNT
}
 
enum  lcsp_propvals_t {
  LCSP_PROPVAL_ABOVE , LCSP_PROPVAL_ABSOLUTE , LCSP_PROPVAL_ALWAYS , LCSP_PROPVAL_ARMENIAN ,
  LCSP_PROPVAL_AUTO , LCSP_PROPVAL_AVOID , LCSP_PROPVAL_BASELINE , LCSP_PROPVAL_BEHIND ,
  LCSP_PROPVAL_BELOW , LCSP_PROPVAL_BIDI_OVERRIDE , LCSP_PROPVAL_BLINK , LCSP_PROPVAL_BLOCK ,
  LCSP_PROPVAL_BOLD , LCSP_PROPVAL_BOLDER , LCSP_PROPVAL_BOTH , LCSP_PROPVAL_BOTTOM ,
  LCSP_PROPVAL_CAPITALIZE , LCSP_PROPVAL_CAPTION , LCSP_PROPVAL_CENTER , LCSP_PROPVAL_CIRCLE ,
  LCSP_PROPVAL_CLOSE_QUOTE , LCSP_PROPVAL_CODE , LCSP_PROPVAL_COLLAPSE , LCSP_PROPVAL_CONTINUOUS ,
  LCSP_PROPVAL_CROSSHAIR , LCSP_PROPVAL_DECIMAL_LEADING_ZERO , LCSP_PROPVAL_DECIMAL , LCSP_PROPVAL_DIGITS ,
  LCSP_PROPVAL_DISC , LCSP_PROPVAL_EMBED , LCSP_PROPVAL_E_RESIZE , LCSP_PROPVAL_FIXED ,
  LCSP_PROPVAL_GEORGIAN , LCSP_PROPVAL_HELP , LCSP_PROPVAL_HIDDEN , LCSP_PROPVAL_HIDE ,
  LCSP_PROPVAL_HIGH , LCSP_PROPVAL_HIGHER , LCSP_PROPVAL_ICON , LCSP_PROPVAL_INHERIT ,
  LCSP_PROPVAL_INLINE , LCSP_PROPVAL_INLINE_BLOCK , LCSP_PROPVAL_INLINE_TABLE , LCSP_PROPVAL_INVERT ,
  LCSP_PROPVAL_ITALIC , LCSP_PROPVAL_JUSTIFY , LCSP_PROPVAL_LEFT , LCSP_PROPVAL_LIGHTER ,
  LCSP_PROPVAL_LINE_THROUGH , LCSP_PROPVAL_LIST_ITEM , LCSP_PROPVAL_LOW , LCSP_PROPVAL_LOWER ,
  LCSP_PROPVAL_LOWER_ALPHA , LCSP_PROPVAL_LOWERCASE , LCSP_PROPVAL_LOWER_GREEK , LCSP_PROPVAL_LOWER_LATIN ,
  LCSP_PROPVAL_LOWER_ROMAN , LCSP_PROPVAL_LTR , LCSP_PROPVAL_MENU , LCSP_PROPVAL_MESSAGE_BOX ,
  LCSP_PROPVAL_MIDDLE , LCSP_PROPVAL_MIX , LCSP_PROPVAL_MOVE , LCSP_PROPVAL_NE_RESIZE ,
  LCSP_PROPVAL_NO_CLOSE_QUOTE , LCSP_PROPVAL_NONE , LCSP_PROPVAL_NO_OPEN_QUOTE , LCSP_PROPVAL_NO_REPEAT ,
  LCSP_PROPVAL_NORMAL , LCSP_PROPVAL_NOWRAP , LCSP_PROPVAL_N_RESIZE , LCSP_PROPVAL_NW_RESIZE ,
  LCSP_PROPVAL_OBLIQUE , LCSP_PROPVAL_ONCE , LCSP_PROPVAL_OPEN_QUOTE , LCSP_PROPVAL_OUTSIDE ,
  LCSP_PROPVAL_OVERLINE , LCSP_PROPVAL_POINTER , LCSP_PROPVAL_PRE , LCSP_PROPVAL_PRE_LINE ,
  LCSP_PROPVAL_PRE_WRAP , LCSP_PROPVAL_PROGRESS , LCSP_PROPVAL_RELATIVE , LCSP_PROPVAL_REPEAT ,
  LCSP_PROPVAL_REPEAT_X , LCSP_PROPVAL_REPEAT_Y , LCSP_PROPVAL_RIGHT , LCSP_PROPVAL_RTL ,
  LCSP_PROPVAL_SCROLL , LCSP_PROPVAL_SEPARATE , LCSP_PROPVAL_SE_RESIZE , LCSP_PROPVAL_SHOW ,
  LCSP_PROPVAL_SILENT , LCSP_PROPVAL_SMALL_CAPS , LCSP_PROPVAL_SMALL_CAPTION , LCSP_PROPVAL_SPELL_OUT ,
  LCSP_PROPVAL_SQUARE , LCSP_PROPVAL_S_RESIZE , LCSP_PROPVAL_STATIC , LCSP_PROPVAL_STATUS_BAR ,
  LCSP_PROPVAL_SUB , LCSP_PROPVAL_SUPER , LCSP_PROPVAL_SW_RESIZE , LCSP_PROPVAL_TABLE ,
  LCSP_PROPVAL_TABLE_CAPTION , LCSP_PROPVAL_TABLE_CELL , LCSP_PROPVAL_TABLE_COLUMN , LCSP_PROPVAL_TABLE_COLUMN_GROUP ,
  LCSP_PROPVAL_TABLE_FOOTER_GROUP , LCSP_PROPVAL_TABLE_HEADER_GROUP , LCSP_PROPVAL_TABLE_ROW , LCSP_PROPVAL_TABLE_ROW_GROUP ,
  LCSP_PROPVAL_TEXT_BOTTOM , LCSP_PROPVAL_TEXT_TOP , LCSP_PROPVAL_TEXT , LCSP_PROPVAL_TOP ,
  LCSP_PROPVAL_TRANSPARENT , LCSP_PROPVAL_UNDERLINE , LCSP_PROPVAL_UPPER_ALPHA , LCSP_PROPVAL_UPPERCASE ,
  LCSP_PROPVAL_UPPER_LATIN , LCSP_PROPVAL_UPPER_ROMAN , LCSP_PROPVAL_VISIBLE , LCSP_PROPVAL_WAIT ,
  LCSP_PROPVAL_W_RESIZE , LCSP_PROPVAL__COUNT
}
 
enum  lcsp_css_units {
  LCSP_UNIT_NONE , LCSP_UNIT_NUM , LCSP_UNIT_LENGTH_EM , LCSP_UNIT_LENGTH_EX ,
  LCSP_UNIT_LENGTH_IN , LCSP_UNIT_LENGTH_CM , LCSP_UNIT_LENGTH_MM , LCSP_UNIT_LENGTH_PT ,
  LCSP_UNIT_LENGTH_PC , LCSP_UNIT_LENGTH_PX , LCSP_UNIT_LENGTH_PERCENT , LCSP_UNIT_ANGLE_ABS_DEG ,
  LCSP_UNIT_ANGLE_REL_DEG , LCSP_UNIT_FREQ_HZ , LCSP_UNIT_RGBA , LCSP_UNIT_URL ,
  LCSP_UNIT_STRING , LCSP_UNIT_DATA
}
 

Functions

LWS_VISIBLE LWS_EXTERN int lws_lhp_construct (lhp_ctx_t *ctx, lhp_callback cb, void *user, const lws_surface_info_t *ic)
 
LWS_VISIBLE LWS_EXTERN void lws_lhp_destruct (lhp_ctx_t *ctx)
 
LWS_VISIBLE LWS_EXTERN int lws_lhp_ss_browse (struct lws_context *cx, lws_display_render_state_t *rs, const char *url, sul_cb_t render)
 
LWS_VISIBLE LWS_EXTERN lws_stateful_ret_t lws_lhp_parse (lhp_ctx_t *ctx, const uint8_t **buf, size_t *len)
 
LWS_VISIBLE LWS_EXTERN const lcsp_atr_tlws_css_cascade_get_prop_atr (lhp_ctx_t *ctx, lcsp_props_t prop)
 
LWS_VISIBLE LWS_EXTERN int lws_http_rel_to_url (char *dest, size_t len, const char *base, const char *rel)
 
LWS_VISIBLE LWS_EXTERN lhp_pstack_tlws_css_get_parent_block (lhp_ctx_t *ctx, lhp_pstack_t *ps)
 
LWS_VISIBLE LWS_EXTERN const char * lws_css_pstack_name (lhp_pstack_t *ps)
 
LWS_VISIBLE LWS_EXTERN const char * lws_html_get_atr (lhp_pstack_t *ps, const char *aname, size_t aname_len)
 
LWS_VISIBLE LWS_EXTERN const lws_fx_tlws_csp_px (const lcsp_atr_t *a, lhp_pstack_t *ps)
 
LWS_VISIBLE LWS_EXTERN void lws_lhp_tag_dlo_id (lhp_ctx_t *ctx, lhp_pstack_t *ps, lws_dlo_t *dlo)
 
void lhp_set_dlo_padding_margin (lhp_pstack_t *ps, lws_dlo_t *dlo)
 
LWS_VISIBLE LWS_EXTERN int lhp_prop_axis (const lcsp_atr_t *a)
 

Data Structure Documentation

◆ lhp_atr

struct lhp_atr

Definition at line 330 of file lws-html.h.

+ Collaboration diagram for lhp_atr:
Data Fields
lws_dll2_t list
size_t name_len
size_t value_len

◆ lhp_table_row_t

struct lhp_table_row_t

Definition at line 344 of file lws-html.h.

+ Collaboration diagram for lhp_table_row_t:
Data Fields
lws_dll2_t list
lws_dll2_owner_t row_dlos
lws_fx_t height

◆ lhp_table_col_t

struct lhp_table_col_t

Definition at line 352 of file lws-html.h.

+ Collaboration diagram for lhp_table_col_t:
Data Fields
lws_dll2_t list
lws_dll2_owner_t col_dlos
lws_fx_t width

◆ lhp_pstack

struct lhp_pstack

Definition at line 367 of file lws-html.h.

+ Collaboration diagram for lhp_pstack:
Data Fields
lws_dll2_t list
void * user
lhp_callback cb
lws_box_t drt
lws_fx_t curx
lws_fx_t cury
lws_fx_t widest
lws_fx_t deepest
lws_dlo_t * dlo_set_curx
lws_dlo_t * dlo_set_cury
lws_dll2_owner_t atr
const lws_display_font_t * f
const struct lcsp_atr * css_background_color
const struct lcsp_atr * css_color
const struct lcsp_atr * css_position
const struct lcsp_atr * css_display
const struct lcsp_atr * css_width
const struct lcsp_atr * css_height
const struct lcsp_atr * css_border_radius[4]
const struct lcsp_atr * css_pos[4]
const struct lcsp_atr * css_margin[4]
const struct lcsp_atr * css_padding[4]
uint16_t tr_idx
uint16_t td_idx
uint8_t is_block:1
uint8_t is_table:1
lws_dlo_t * dlo
const lws_display_font_t * font
int oi[4]
int positioned[4]
int rel_layout_cursor[4]
uint8_t runon

◆ lcsp_atr

struct lcsp_atr

Definition at line 447 of file lws-html.h.

+ Collaboration diagram for lcsp_atr:
Data Fields
lws_dll2_t list
int propval
size_t value_len
lcsp_css_units_t unit
union lcsp_atr.u u
lws_fx_t r
uint8_t op

◆ lcsp_defs

struct lcsp_defs

Definition at line 468 of file lws-html.h.

+ Collaboration diagram for lcsp_defs:
Data Fields
lws_dll2_t list
lws_dll2_owner_t atrs
lcsp_props_t prop

◆ lcsp_names

struct lcsp_names

Definition at line 474 of file lws-html.h.

+ Collaboration diagram for lcsp_names:
Data Fields
lws_dll2_t list
size_t name_len

◆ lcsp_stanza

struct lcsp_stanza

Definition at line 481 of file lws-html.h.

+ Collaboration diagram for lcsp_stanza:
Data Fields
lws_dll2_t list
lws_dll2_owner_t names
lws_dll2_owner_t defs

◆ lcsp_stanza_ptr

struct lcsp_stanza_ptr

Definition at line 498 of file lws-html.h.

+ Collaboration diagram for lcsp_stanza_ptr:
Data Fields
lws_dll2_t list
lcsp_stanza_t * stz

◆ lcsp_atr_ptr

struct lcsp_atr_ptr

Definition at line 504 of file lws-html.h.

+ Collaboration diagram for lcsp_atr_ptr:
Data Fields
lws_dll2_t list
lcsp_atr_t * atr

◆ lhp_ctx

struct lhp_ctx

Definition at line 512 of file lws-html.h.

+ Collaboration diagram for lhp_ctx:
Data Fields
lws_dll2_owner_t stack
struct lwsac * cssac
struct lwsac * cascadeac
struct lwsac * propatrac
lws_dll2_owner_t css
lws_dll2_owner_t * ids
lws_fx_t tf
lcsp_css_units_t unit
lcsp_stanza_t * stz
lcsp_defs_t * def
lws_dll2_owner_t active_stanzas
lws_dll2_owner_t active_atr
lws_surface_info_t ic
const char * base_url
sul_cb_t ssevcb
lws_sorted_usec_list_t * ssevsul
sul_cb_t sshtmlevcb
lws_sorted_usec_list_t * sshtmlevsul
void * user
void * user1
const char * tag
size_t tag_len
int npos
int state
int state_css_comm
int nl_temp
int temp_count
uint32_t flags
uint32_t temp
int32_t window
union lhp_ctx.u u
int prop
int propval
int16_t css_state
int16_t cssval_state
uint8_t in_body:1
uint8_t finish_css:1
uint8_t is_css:1
uint8_t await_css_done:1
char buf[LHP_STRING_CHUNK+1]

◆ lcsp_atr.u

union lcsp_atr.u

Definition at line 455 of file lws-html.h.

+ Collaboration diagram for lcsp_atr.u:
Data Fields
lws_fx_t i
uint32_t rgba

◆ lhp_ctx.u

union lhp_ctx.u

Definition at line 555 of file lws-html.h.

+ Collaboration diagram for lhp_ctx.u:
Data Fields
uint32_t s
struct lhp_ctx.u.f f

◆ lhp_ctx.u.f

struct lhp_ctx.u.f

Definition at line 557 of file lws-html.h.

+ Collaboration diagram for lhp_ctx.u.f:
Data Fields
uint32_t first:1
uint32_t closing:1
uint32_t void_element:1
uint32_t doctype:1
uint32_t inq:1
uint32_t tag_used:1
uint32_t arg:1
uint32_t default_css:1
uint32_t integer:2
uint32_t color:2

Macro Definition Documentation

◆ LHP_MAX_ELEMS_NEST

#define LHP_MAX_ELEMS_NEST   32

Definition at line 29 of file lws-html.h.

◆ LHP_MAX_DEPTH

#define LHP_MAX_DEPTH   12

Definition at line 32 of file lws-html.h.

◆ LHP_STRING_CHUNK

#define LHP_STRING_CHUNK   254

Definition at line 35 of file lws-html.h.

◆ CCPAS_TOP

#define CCPAS_TOP   0

Definition at line 362 of file lws-html.h.

◆ CCPAS_RIGHT

#define CCPAS_RIGHT   1

Definition at line 363 of file lws-html.h.

◆ CCPAS_BOTTOM

#define CCPAS_BOTTOM   2

Definition at line 364 of file lws-html.h.

◆ CCPAS_LEFT

#define CCPAS_LEFT   3

Definition at line 365 of file lws-html.h.

◆ LHP_FLAG_DOCUMENT_END

#define LHP_FLAG_DOCUMENT_END   (1 << 0)

Definition at line 510 of file lws-html.h.

◆ LHP_CSS_PROPVAL_INT_WHOLE

#define LHP_CSS_PROPVAL_INT_WHOLE   1

Definition at line 566 of file lws-html.h.

◆ LHP_CSS_PROPVAL_INT_FRAC

#define LHP_CSS_PROPVAL_INT_FRAC   2

Definition at line 567 of file lws-html.h.

◆ LHP_CSS_PROPVAL_INT_UNIT

#define LHP_CSS_PROPVAL_INT_UNIT   3

Definition at line 568 of file lws-html.h.

◆ LWS_LHPREF_WIDTH

#define LWS_LHPREF_WIDTH   0

Definition at line 712 of file lws-html.h.

◆ LWS_LHPREF_HEIGHT

#define LWS_LHPREF_HEIGHT   1

Definition at line 713 of file lws-html.h.

◆ LWS_LHPREF_NONE

#define LWS_LHPREF_NONE   2

Definition at line 714 of file lws-html.h.

Typedef Documentation

◆ lcsp_props_t

typedef enum lcsp_props lcsp_props_t

◆ lhp_callback

typedef lws_stateful_ret_t(* lhp_callback) (struct lhp_ctx *ctx, char reason)

Definition at line 326 of file lws-html.h.

◆ lhp_atr_t

typedef struct lhp_atr lhp_atr_t

◆ lhp_pstack_t

typedef struct lhp_pstack lhp_pstack_t

◆ lcsp_css_units_t

◆ lcsp_atr_t

typedef struct lcsp_atr lcsp_atr_t

◆ lcsp_defs_t

typedef struct lcsp_defs lcsp_defs_t

◆ lcsp_names_t

typedef struct lcsp_names lcsp_names_t

◆ lcsp_stanza_t

typedef struct lcsp_stanza lcsp_stanza_t

◆ lcsp_stanza_ptr_t

◆ lcsp_atr_ptr_t

typedef struct lcsp_atr_ptr lcsp_atr_ptr_t

◆ lhp_ctx_t

typedef struct lhp_ctx lhp_ctx_t

Enumeration Type Documentation

◆ lhp_callbacks

Enumerator
LHPCB_ERR_ATTRIB_SYNTAX 
LHPCB_ERR_ATTRIB_LEN 
LHPCB_ERR_OOM 
LHPCB_ERR_ELEM_DEPTH 
LHPCB_CONTINUE 
LHPCB_CONSTRUCTED 
LHPCB_DESTRUCTED 
LHPCB_COMPLETE 
LHPCB_FAILED 
LHPCB_ELEMENT_START 
LHPCB_ELEMENT_END 
LHPCB_CONTENT 
LHPCB_COMMENT 

Definition at line 38 of file lws-html.h.

38 {
39
42 LHPCB_ERR_OOM = -3,
44 LHPCB_CONTINUE = -1,
45
48
50 LHPCB_FAILED = 3,
51
52 LHPCB_ELEMENT_START = 4, /* reported at end of <> */
54
55 LHPCB_CONTENT = 6,
56
57 LHPCB_COMMENT = 7,
58};
@ LHPCB_COMPLETE
Definition: lws-html.h:49
@ LHPCB_ERR_ELEM_DEPTH
Definition: lws-html.h:43
@ LHPCB_ELEMENT_START
Definition: lws-html.h:52
@ LHPCB_ERR_ATTRIB_SYNTAX
Definition: lws-html.h:40
@ LHPCB_ERR_OOM
Definition: lws-html.h:42
@ LHPCB_CONTENT
Definition: lws-html.h:55
@ LHPCB_DESTRUCTED
Definition: lws-html.h:47
@ LHPCB_COMMENT
Definition: lws-html.h:57
@ LHPCB_CONSTRUCTED
Definition: lws-html.h:46
@ LHPCB_FAILED
Definition: lws-html.h:50
@ LHPCB_ELEMENT_END
Definition: lws-html.h:53
@ LHPCB_ERR_ATTRIB_LEN
Definition: lws-html.h:41
@ LHPCB_CONTINUE
Definition: lws-html.h:44

◆ lcsp_props

enum lcsp_props
Enumerator
LCSP_PROP_AZIMUTH 
LCSP_PROP_BACKGROUND_ATTACHMENT 
LCSP_PROP_BACKGROUND_COLOR 
LCSP_PROP_BACKGROUND_IMAGE 
LCSP_PROP_BACKGROUND_POSITION 
LCSP_PROP_BACKGROUND_REPEAT 
LCSP_PROP_BACKGROUND 
LCSP_PROP_BORDER_COLLAPSE 
LCSP_PROP_BORDER_COLOR 
LCSP_PROP_BORDER_SPACING 
LCSP_PROP_BORDER_STYLE 
LCSP_PROP_BORDER_TOP 
LCSP_PROP_BORDER_RIGHT 
LCSP_PROP_BORDER_BOTTOM 
LCSP_PROP_BORDER_LEFT 
LCSP_PROP_BORDER_TOP_COLOR 
LCSP_PROP_BORDER_RIGHT_COLOR 
LCSP_PROP_BORDER_BOTTOM_COLOR 
LCSP_PROP_BORDER_LEFT_COLOR 
LCSP_PROP_BORDER_TOP_STYLE 
LCSP_PROP_BORDER_RIGHT_STYLE 
LCSP_PROP_BORDER_BOTTOM_STYLE 
LCSP_PROP_BORDER_LEFT_STYLE 
LCSP_PROP_BORDER_TOP_WIDTH 
LCSP_PROP_BORDER_RIGHT_WIDTH 
LCSP_PROP_BORDER_BOTTOM_WIDTH 
LCSP_PROP_BORDER_LEFT_WIDTH 
LCSP_PROP_BORDER_WIDTH 
LCSP_PROP_BORDER_TOP_LEFT_RADIUS 
LCSP_PROP_BORDER_TOP_RIGHT_RADIUS 
LCSP_PROP_BORDER_BOTTOM_LEFT_RADIUS 
LCSP_PROP_BORDER_BOTTOM_RIGHT_RADIUS 
LCSP_PROP_BORDER_RADIUS 
LCSP_PROP_BORDER 
LCSP_PROP_BOTTOM 
LCSP_PROP_CAPTION_SIDE 
LCSP_PROP_CLEAR 
LCSP_PROP_CLIP 
LCSP_PROP_COLOR 
LCSP_PROP_CONTENT 
LCSP_PROP_COUNTER_INCREMENT 
LCSP_PROP_COUNTER_RESET 
LCSP_PROP_CUE_AFTER 
LCSP_PROP_CUE_BEFORE 
LCSP_PROP_CUE 
LCSP_PROP_CURSOR 
LCSP_PROP_DIRECTION 
LCSP_PROP_DISPLAY 
LCSP_PROP_ELEVATION 
LCSP_PROP_EMPTY_CELLS 
LCSP_PROP_FLOAT 
LCSP_PROP_FONT_FAMILY 
LCSP_PROP_FONT_SIZE 
LCSP_PROP_FONT_STYLE 
LCSP_PROP_FONT_VARAIANT 
LCSP_PROP_FONT_WEIGHT 
LCSP_PROP_FONT 
LCSP_PROP_HEIGHT 
LCSP_PROP_LEFT 
LCSP_PROP_LETTER_SPACING 
LCSP_PROP_LINE_HEIGHT 
LCSP_PROP_LIST_STYLE_IMAGE 
LCSP_PROP_LIST_STYLE_POSITION 
LCSP_PROP_LIST_STYLE_TYPE 
LCSP_PROP_LIST_STYLE 
LCSP_PROP_MARGIN_RIGHT 
LCSP_PROP_MARGIN_LEFT 
LCSP_PROP_MARGIN_TOP 
LCSP_PROP_MARGIN_BOTTOM 
LCSP_PROP_MARGIN 
LCSP_PROP_MAX_HEIGHT 
LCSP_PROP_MAX_WIDTH 
LCSP_PROP_MIN_HEIGHT 
LCSP_PROP_MIN_WIDTH 
LCSP_PROP_ORPHANS 
LCSP_PROP_OUTLINE_COLOR 
LCSP_PROP_OUTLINE_STYLE 
LCSP_PROP_OUTLINE_WIDTH 
LCSP_PROP_OUTLINE 
LCSP_PROP_OVERFLOW 
LCSP_PROP_PADDING_TOP 
LCSP_PROP_PADDING_RIGHT 
LCSP_PROP_PADDING_BOTTOM 
LCSP_PROP_PADDING_LEFT 
LCSP_PROP_PADDING 
LCSP_PROP_PAGE_BREAK_AFTER 
LCSP_PROP_PAGE_BREAK_BEFORE 
LCSP_PROP_PAGE_BREAK_INSIDE 
LCSP_PROP_PAUSE_AFTER 
LCSP_PROP_PAUSE_BEFORE 
LCSP_PROP_PAUSE 
LCSP_PROP_PITCH_RANGE 
LCSP_PROP_PITCH 
LCSP_PROP_PLAY_DURING 
LCSP_PROP_POSITION 
LCSP_PROP_QUOTES 
LCSP_PROP_RICHNESS 
LCSP_PROP_RIGHT 
LCSP_PROP_SPEAK_HEADER 
LCSP_PROP_SPEAK_NUMERAL 
LCSP_PROP_SPEAK_PUNCTUATION 
LCSP_PROP_SPEAK 
LCSP_PROP_SPEECH_RATE 
LCSP_PROP_STRESS 
LCSP_PROP_TABLE_LAYOUT 
LCSP_PROP_TEXT_ALIGN 
LCSP_PROP_TEXT_DECORATION 
LCSP_PROP_TEXT_INDENT 
LCSP_PROP_TEXT_TRANSFORM 
LCSP_PROP_TOP 
LCSP_PROP_UNICODE_BIDI 
LCSP_PROP_VERTICAL_ALIGN 
LCSP_PROP_VISIBILITY 
LCSP_PROP_VOICE_FAMILY 
LCSP_PROP_VOLUME 
LCSP_PROP_WHITE_SPACE 
LCSP_PROP_WIDOWS 
LCSP_PROP_WIDTH 
LCSP_PROP_WORD_SPACING 
LCSP_PROP_Z_INDEX 
LCSP_PROP__COUNT 

Definition at line 66 of file lws-html.h.

66 {
187
188 LCSP_PROP__COUNT /* always last */
@ LCSP_PROP_OVERFLOW
Definition: lws-html.h:146
@ LCSP_PROP_POSITION
Definition: lws-html.h:161
@ LCSP_PROP_Z_INDEX
Definition: lws-html.h:186
@ LCSP_PROP_TEXT_ALIGN
Definition: lws-html.h:172
@ LCSP_PROP_LETTER_SPACING
Definition: lws-html.h:126
@ LCSP_PROP_HEIGHT
Definition: lws-html.h:124
@ LCSP_PROP_BACKGROUND_REPEAT
Definition: lws-html.h:72
@ LCSP_PROP_MARGIN_BOTTOM
Definition: lws-html.h:135
@ LCSP_PROP_TOP
Definition: lws-html.h:176
@ LCSP_PROP_BACKGROUND_IMAGE
Definition: lws-html.h:70
@ LCSP_PROP_BACKGROUND_POSITION
Definition: lws-html.h:71
@ LCSP_PROP_BORDER_RIGHT_WIDTH
Definition: lws-html.h:91
@ LCSP_PROP_FONT_WEIGHT
Definition: lws-html.h:122
@ LCSP_PROP_FONT_VARAIANT
Definition: lws-html.h:121
@ LCSP_PROP_PAUSE
Definition: lws-html.h:157
@ LCSP_PROP_BORDER_TOP_STYLE
Definition: lws-html.h:86
@ LCSP_PROP_EMPTY_CELLS
Definition: lws-html.h:116
@ LCSP_PROP_BORDER_RIGHT
Definition: lws-html.h:79
@ LCSP_PROP_SPEAK_HEADER
Definition: lws-html.h:165
@ LCSP_PROP_BORDER_COLLAPSE
Definition: lws-html.h:74
@ LCSP_PROP_BACKGROUND_COLOR
Definition: lws-html.h:69
@ LCSP_PROP_WHITE_SPACE
Definition: lws-html.h:182
@ LCSP_PROP_SPEAK
Definition: lws-html.h:168
@ LCSP_PROP_BACKGROUND_ATTACHMENT
Definition: lws-html.h:68
@ LCSP_PROP_VERTICAL_ALIGN
Definition: lws-html.h:178
@ LCSP_PROP_SPEAK_NUMERAL
Definition: lws-html.h:166
@ LCSP_PROP_LIST_STYLE_POSITION
Definition: lws-html.h:129
@ LCSP_PROP_MARGIN_TOP
Definition: lws-html.h:134
@ LCSP_PROP_BORDER_RIGHT_STYLE
Definition: lws-html.h:87
@ LCSP_PROP_MIN_WIDTH
Definition: lws-html.h:140
@ LCSP_PROP_BORDER_BOTTOM_LEFT_RADIUS
Definition: lws-html.h:97
@ LCSP_PROP_BORDER_SPACING
Definition: lws-html.h:76
@ LCSP_PROP_TEXT_DECORATION
Definition: lws-html.h:173
@ LCSP_PROP_VISIBILITY
Definition: lws-html.h:179
@ LCSP_PROP_PADDING_BOTTOM
Definition: lws-html.h:149
@ LCSP_PROP_CURSOR
Definition: lws-html.h:112
@ LCSP_PROP_DISPLAY
Definition: lws-html.h:114
@ LCSP_PROP_COLOR
Definition: lws-html.h:105
@ LCSP_PROP_UNICODE_BIDI
Definition: lws-html.h:177
@ LCSP_PROP_MAX_HEIGHT
Definition: lws-html.h:137
@ LCSP_PROP_BORDER_COLOR
Definition: lws-html.h:75
@ LCSP_PROP_COUNTER_INCREMENT
Definition: lws-html.h:107
@ LCSP_PROP_CONTENT
Definition: lws-html.h:106
@ LCSP_PROP_OUTLINE_COLOR
Definition: lws-html.h:142
@ LCSP_PROP_BOTTOM
Definition: lws-html.h:101
@ LCSP_PROP_SPEAK_PUNCTUATION
Definition: lws-html.h:167
@ LCSP_PROP_BORDER_TOP_COLOR
Definition: lws-html.h:82
@ LCSP_PROP_PADDING_TOP
Definition: lws-html.h:147
@ LCSP_PROP_BORDER_WIDTH
Definition: lws-html.h:94
@ LCSP_PROP_BORDER_TOP_LEFT_RADIUS
Definition: lws-html.h:95
@ LCSP_PROP_BORDER_BOTTOM_WIDTH
Definition: lws-html.h:92
@ LCSP_PROP_VOLUME
Definition: lws-html.h:181
@ LCSP_PROP_CUE_AFTER
Definition: lws-html.h:109
@ LCSP_PROP_BORDER_LEFT_STYLE
Definition: lws-html.h:89
@ LCSP_PROP_BORDER_STYLE
Definition: lws-html.h:77
@ LCSP_PROP_BORDER_LEFT_COLOR
Definition: lws-html.h:85
@ LCSP_PROP_BORDER_RADIUS
Definition: lws-html.h:99
@ LCSP_PROP_TEXT_INDENT
Definition: lws-html.h:174
@ LCSP_PROP_OUTLINE_STYLE
Definition: lws-html.h:143
@ LCSP_PROP_FONT
Definition: lws-html.h:123
@ LCSP_PROP_PADDING
Definition: lws-html.h:151
@ LCSP_PROP_PAUSE_AFTER
Definition: lws-html.h:155
@ LCSP_PROP_FONT_FAMILY
Definition: lws-html.h:118
@ LCSP_PROP_TEXT_TRANSFORM
Definition: lws-html.h:175
@ LCSP_PROP_PLAY_DURING
Definition: lws-html.h:160
@ LCSP_PROP_MAX_WIDTH
Definition: lws-html.h:138
@ LCSP_PROP_QUOTES
Definition: lws-html.h:162
@ LCSP_PROP_BORDER_LEFT_WIDTH
Definition: lws-html.h:93
@ LCSP_PROP_FONT_STYLE
Definition: lws-html.h:120
@ LCSP_PROP_LIST_STYLE
Definition: lws-html.h:131
@ LCSP_PROP_OUTLINE_WIDTH
Definition: lws-html.h:144
@ LCSP_PROP_PITCH
Definition: lws-html.h:159
@ LCSP_PROP_CUE
Definition: lws-html.h:111
@ LCSP_PROP_MARGIN_RIGHT
Definition: lws-html.h:132
@ LCSP_PROP_MARGIN_LEFT
Definition: lws-html.h:133
@ LCSP_PROP_BORDER_BOTTOM
Definition: lws-html.h:80
@ LCSP_PROP_WIDOWS
Definition: lws-html.h:183
@ LCSP_PROP_PAGE_BREAK_BEFORE
Definition: lws-html.h:153
@ LCSP_PROP_RIGHT
Definition: lws-html.h:164
@ LCSP_PROP_BORDER_BOTTOM_COLOR
Definition: lws-html.h:84
@ LCSP_PROP_PAGE_BREAK_INSIDE
Definition: lws-html.h:154
@ LCSP_PROP_MARGIN
Definition: lws-html.h:136
@ LCSP_PROP_BORDER_RIGHT_COLOR
Definition: lws-html.h:83
@ LCSP_PROP_DIRECTION
Definition: lws-html.h:113
@ LCSP_PROP_CUE_BEFORE
Definition: lws-html.h:110
@ LCSP_PROP_CLIP
Definition: lws-html.h:104
@ LCSP_PROP_FONT_SIZE
Definition: lws-html.h:119
@ LCSP_PROP_ELEVATION
Definition: lws-html.h:115
@ LCSP_PROP_WIDTH
Definition: lws-html.h:184
@ LCSP_PROP_CAPTION_SIDE
Definition: lws-html.h:102
@ LCSP_PROP_BORDER_TOP_WIDTH
Definition: lws-html.h:90
@ LCSP_PROP_LEFT
Definition: lws-html.h:125
@ LCSP_PROP_LINE_HEIGHT
Definition: lws-html.h:127
@ LCSP_PROP_STRESS
Definition: lws-html.h:170
@ LCSP_PROP_PADDING_LEFT
Definition: lws-html.h:150
@ LCSP_PROP_CLEAR
Definition: lws-html.h:103
@ LCSP_PROP_PADDING_RIGHT
Definition: lws-html.h:148
@ LCSP_PROP_PITCH_RANGE
Definition: lws-html.h:158
@ LCSP_PROP_WORD_SPACING
Definition: lws-html.h:185
@ LCSP_PROP_FLOAT
Definition: lws-html.h:117
@ LCSP_PROP__COUNT
Definition: lws-html.h:188
@ LCSP_PROP_BORDER
Definition: lws-html.h:100
@ LCSP_PROP_ORPHANS
Definition: lws-html.h:141
@ LCSP_PROP_AZIMUTH
Definition: lws-html.h:67
@ LCSP_PROP_BORDER_LEFT
Definition: lws-html.h:81
@ LCSP_PROP_COUNTER_RESET
Definition: lws-html.h:108
@ LCSP_PROP_MIN_HEIGHT
Definition: lws-html.h:139
@ LCSP_PROP_LIST_STYLE_TYPE
Definition: lws-html.h:130
@ LCSP_PROP_SPEECH_RATE
Definition: lws-html.h:169
@ LCSP_PROP_RICHNESS
Definition: lws-html.h:163
@ LCSP_PROP_BORDER_BOTTOM_STYLE
Definition: lws-html.h:88
@ LCSP_PROP_PAUSE_BEFORE
Definition: lws-html.h:156
@ LCSP_PROP_OUTLINE
Definition: lws-html.h:145
@ LCSP_PROP_TABLE_LAYOUT
Definition: lws-html.h:171
@ LCSP_PROP_BACKGROUND
Definition: lws-html.h:73
@ LCSP_PROP_BORDER_TOP_RIGHT_RADIUS
Definition: lws-html.h:96
@ LCSP_PROP_PAGE_BREAK_AFTER
Definition: lws-html.h:152
@ LCSP_PROP_BORDER_BOTTOM_RIGHT_RADIUS
Definition: lws-html.h:98
@ LCSP_PROP_BORDER_TOP
Definition: lws-html.h:78
@ LCSP_PROP_LIST_STYLE_IMAGE
Definition: lws-html.h:128
@ LCSP_PROP_VOICE_FAMILY
Definition: lws-html.h:180
enum lcsp_props lcsp_props_t

◆ lcsp_propvals_t

Enumerator
LCSP_PROPVAL_ABOVE 
LCSP_PROPVAL_ABSOLUTE 
LCSP_PROPVAL_ALWAYS 
LCSP_PROPVAL_ARMENIAN 
LCSP_PROPVAL_AUTO 
LCSP_PROPVAL_AVOID 
LCSP_PROPVAL_BASELINE 
LCSP_PROPVAL_BEHIND 
LCSP_PROPVAL_BELOW 
LCSP_PROPVAL_BIDI_OVERRIDE 
LCSP_PROPVAL_BLINK 
LCSP_PROPVAL_BLOCK 
LCSP_PROPVAL_BOLD 
LCSP_PROPVAL_BOLDER 
LCSP_PROPVAL_BOTH 
LCSP_PROPVAL_BOTTOM 
LCSP_PROPVAL_CAPITALIZE 
LCSP_PROPVAL_CAPTION 
LCSP_PROPVAL_CENTER 
LCSP_PROPVAL_CIRCLE 
LCSP_PROPVAL_CLOSE_QUOTE 
LCSP_PROPVAL_CODE 
LCSP_PROPVAL_COLLAPSE 
LCSP_PROPVAL_CONTINUOUS 
LCSP_PROPVAL_CROSSHAIR 
LCSP_PROPVAL_DECIMAL_LEADING_ZERO 
LCSP_PROPVAL_DECIMAL 
LCSP_PROPVAL_DIGITS 
LCSP_PROPVAL_DISC 
LCSP_PROPVAL_EMBED 
LCSP_PROPVAL_E_RESIZE 
LCSP_PROPVAL_FIXED 
LCSP_PROPVAL_GEORGIAN 
LCSP_PROPVAL_HELP 
LCSP_PROPVAL_HIDDEN 
LCSP_PROPVAL_HIDE 
LCSP_PROPVAL_HIGH 
LCSP_PROPVAL_HIGHER 
LCSP_PROPVAL_ICON 
LCSP_PROPVAL_INHERIT 
LCSP_PROPVAL_INLINE 
LCSP_PROPVAL_INLINE_BLOCK 
LCSP_PROPVAL_INLINE_TABLE 
LCSP_PROPVAL_INVERT 
LCSP_PROPVAL_ITALIC 
LCSP_PROPVAL_JUSTIFY 
LCSP_PROPVAL_LEFT 
LCSP_PROPVAL_LIGHTER 
LCSP_PROPVAL_LINE_THROUGH 
LCSP_PROPVAL_LIST_ITEM 
LCSP_PROPVAL_LOW 
LCSP_PROPVAL_LOWER 
LCSP_PROPVAL_LOWER_ALPHA 
LCSP_PROPVAL_LOWERCASE 
LCSP_PROPVAL_LOWER_GREEK 
LCSP_PROPVAL_LOWER_LATIN 
LCSP_PROPVAL_LOWER_ROMAN 
LCSP_PROPVAL_LTR 
LCSP_PROPVAL_MENU 
LCSP_PROPVAL_MESSAGE_BOX 
LCSP_PROPVAL_MIDDLE 
LCSP_PROPVAL_MIX 
LCSP_PROPVAL_MOVE 
LCSP_PROPVAL_NE_RESIZE 
LCSP_PROPVAL_NO_CLOSE_QUOTE 
LCSP_PROPVAL_NONE 
LCSP_PROPVAL_NO_OPEN_QUOTE 
LCSP_PROPVAL_NO_REPEAT 
LCSP_PROPVAL_NORMAL 
LCSP_PROPVAL_NOWRAP 
LCSP_PROPVAL_N_RESIZE 
LCSP_PROPVAL_NW_RESIZE 
LCSP_PROPVAL_OBLIQUE 
LCSP_PROPVAL_ONCE 
LCSP_PROPVAL_OPEN_QUOTE 
LCSP_PROPVAL_OUTSIDE 
LCSP_PROPVAL_OVERLINE 
LCSP_PROPVAL_POINTER 
LCSP_PROPVAL_PRE 
LCSP_PROPVAL_PRE_LINE 
LCSP_PROPVAL_PRE_WRAP 
LCSP_PROPVAL_PROGRESS 
LCSP_PROPVAL_RELATIVE 
LCSP_PROPVAL_REPEAT 
LCSP_PROPVAL_REPEAT_X 
LCSP_PROPVAL_REPEAT_Y 
LCSP_PROPVAL_RIGHT 
LCSP_PROPVAL_RTL 
LCSP_PROPVAL_SCROLL 
LCSP_PROPVAL_SEPARATE 
LCSP_PROPVAL_SE_RESIZE 
LCSP_PROPVAL_SHOW 
LCSP_PROPVAL_SILENT 
LCSP_PROPVAL_SMALL_CAPS 
LCSP_PROPVAL_SMALL_CAPTION 
LCSP_PROPVAL_SPELL_OUT 
LCSP_PROPVAL_SQUARE 
LCSP_PROPVAL_S_RESIZE 
LCSP_PROPVAL_STATIC 
LCSP_PROPVAL_STATUS_BAR 
LCSP_PROPVAL_SUB 
LCSP_PROPVAL_SUPER 
LCSP_PROPVAL_SW_RESIZE 
LCSP_PROPVAL_TABLE 
LCSP_PROPVAL_TABLE_CAPTION 
LCSP_PROPVAL_TABLE_CELL 
LCSP_PROPVAL_TABLE_COLUMN 
LCSP_PROPVAL_TABLE_COLUMN_GROUP 
LCSP_PROPVAL_TABLE_FOOTER_GROUP 
LCSP_PROPVAL_TABLE_HEADER_GROUP 
LCSP_PROPVAL_TABLE_ROW 
LCSP_PROPVAL_TABLE_ROW_GROUP 
LCSP_PROPVAL_TEXT_BOTTOM 
LCSP_PROPVAL_TEXT_TOP 
LCSP_PROPVAL_TEXT 
LCSP_PROPVAL_TOP 
LCSP_PROPVAL_TRANSPARENT 
LCSP_PROPVAL_UNDERLINE 
LCSP_PROPVAL_UPPER_ALPHA 
LCSP_PROPVAL_UPPERCASE 
LCSP_PROPVAL_UPPER_LATIN 
LCSP_PROPVAL_UPPER_ROMAN 
LCSP_PROPVAL_VISIBLE 
LCSP_PROPVAL_WAIT 
LCSP_PROPVAL_W_RESIZE 
LCSP_PROPVAL__COUNT 

Definition at line 195 of file lws-html.h.

195 {
321
322 LCSP_PROPVAL__COUNT /* always last */
lcsp_propvals_t
Definition: lws-html.h:195
@ LCSP_PROPVAL_LTR
Definition: lws-html.h:253
@ LCSP_PROPVAL_BLINK
Definition: lws-html.h:206
@ LCSP_PROPVAL_REPEAT_Y
Definition: lws-html.h:281
@ LCSP_PROPVAL_LEFT
Definition: lws-html.h:242
@ LCSP_PROPVAL_LINE_THROUGH
Definition: lws-html.h:244
@ LCSP_PROPVAL_TOP
Definition: lws-html.h:311
@ LCSP_PROPVAL_SMALL_CAPTION
Definition: lws-html.h:290
@ LCSP_PROPVAL_RIGHT
Definition: lws-html.h:282
@ LCSP_PROPVAL_CODE
Definition: lws-html.h:217
@ LCSP_PROPVAL_FIXED
Definition: lws-html.h:227
@ LCSP_PROPVAL_SCROLL
Definition: lws-html.h:284
@ LCSP_PROPVAL_COLLAPSE
Definition: lws-html.h:218
@ LCSP_PROPVAL_SHOW
Definition: lws-html.h:287
@ LCSP_PROPVAL_LOWER
Definition: lws-html.h:247
@ LCSP_PROPVAL_DECIMAL_LEADING_ZERO
Definition: lws-html.h:221
@ LCSP_PROPVAL_OPEN_QUOTE
Definition: lws-html.h:270
@ LCSP_PROPVAL_TABLE_COLUMN_GROUP
Definition: lws-html.h:303
@ LCSP_PROPVAL_HIGH
Definition: lws-html.h:232
@ LCSP_PROPVAL_PRE
Definition: lws-html.h:274
@ LCSP_PROPVAL_ALWAYS
Definition: lws-html.h:198
@ LCSP_PROPVAL_BLOCK
Definition: lws-html.h:207
@ LCSP_PROPVAL_HIDE
Definition: lws-html.h:231
@ LCSP_PROPVAL_INVERT
Definition: lws-html.h:239
@ LCSP_PROPVAL_HELP
Definition: lws-html.h:229
@ LCSP_PROPVAL_UPPER_ROMAN
Definition: lws-html.h:317
@ LCSP_PROPVAL_TEXT
Definition: lws-html.h:310
@ LCSP_PROPVAL_ABSOLUTE
Definition: lws-html.h:197
@ LCSP_PROPVAL_HIGHER
Definition: lws-html.h:233
@ LCSP_PROPVAL_TABLE_CELL
Definition: lws-html.h:301
@ LCSP_PROPVAL_INLINE_TABLE
Definition: lws-html.h:238
@ LCSP_PROPVAL_PRE_LINE
Definition: lws-html.h:275
@ LCSP_PROPVAL_TABLE_CAPTION
Definition: lws-html.h:300
@ LCSP_PROPVAL_MOVE
Definition: lws-html.h:258
@ LCSP_PROPVAL_DIGITS
Definition: lws-html.h:223
@ LCSP_PROPVAL_NOWRAP
Definition: lws-html.h:265
@ LCSP_PROPVAL_TABLE_FOOTER_GROUP
Definition: lws-html.h:304
@ LCSP_PROPVAL_MENU
Definition: lws-html.h:254
@ LCSP_PROPVAL_N_RESIZE
Definition: lws-html.h:266
@ LCSP_PROPVAL_NO_CLOSE_QUOTE
Definition: lws-html.h:260
@ LCSP_PROPVAL_CENTER
Definition: lws-html.h:214
@ LCSP_PROPVAL_LIGHTER
Definition: lws-html.h:243
@ LCSP_PROPVAL_BOTTOM
Definition: lws-html.h:211
@ LCSP_PROPVAL_EMBED
Definition: lws-html.h:225
@ LCSP_PROPVAL_CAPTION
Definition: lws-html.h:213
@ LCSP_PROPVAL_WAIT
Definition: lws-html.h:319
@ LCSP_PROPVAL_ARMENIAN
Definition: lws-html.h:199
@ LCSP_PROPVAL_TRANSPARENT
Definition: lws-html.h:312
@ LCSP_PROPVAL_INHERIT
Definition: lws-html.h:235
@ LCSP_PROPVAL_BELOW
Definition: lws-html.h:204
@ LCSP_PROPVAL_NW_RESIZE
Definition: lws-html.h:267
@ LCSP_PROPVAL_TABLE_ROW_GROUP
Definition: lws-html.h:307
@ LCSP_PROPVAL_RELATIVE
Definition: lws-html.h:278
@ LCSP_PROPVAL_SMALL_CAPS
Definition: lws-html.h:289
@ LCSP_PROPVAL_UPPER_ALPHA
Definition: lws-html.h:314
@ LCSP_PROPVAL_DECIMAL
Definition: lws-html.h:222
@ LCSP_PROPVAL_PRE_WRAP
Definition: lws-html.h:276
@ LCSP_PROPVAL_LOWER_ROMAN
Definition: lws-html.h:252
@ LCSP_PROPVAL_NE_RESIZE
Definition: lws-html.h:259
@ LCSP_PROPVAL_TABLE_HEADER_GROUP
Definition: lws-html.h:305
@ LCSP_PROPVAL_SUB
Definition: lws-html.h:296
@ LCSP_PROPVAL_SUPER
Definition: lws-html.h:297
@ LCSP_PROPVAL_CIRCLE
Definition: lws-html.h:215
@ LCSP_PROPVAL_LOWER_GREEK
Definition: lws-html.h:250
@ LCSP_PROPVAL__COUNT
Definition: lws-html.h:322
@ LCSP_PROPVAL_CAPITALIZE
Definition: lws-html.h:212
@ LCSP_PROPVAL_CONTINUOUS
Definition: lws-html.h:219
@ LCSP_PROPVAL_OBLIQUE
Definition: lws-html.h:268
@ LCSP_PROPVAL_NO_REPEAT
Definition: lws-html.h:263
@ LCSP_PROPVAL_BOTH
Definition: lws-html.h:210
@ LCSP_PROPVAL_INLINE_BLOCK
Definition: lws-html.h:237
@ LCSP_PROPVAL_MIDDLE
Definition: lws-html.h:256
@ LCSP_PROPVAL_TEXT_BOTTOM
Definition: lws-html.h:308
@ LCSP_PROPVAL_REPEAT_X
Definition: lws-html.h:280
@ LCSP_PROPVAL_SW_RESIZE
Definition: lws-html.h:298
@ LCSP_PROPVAL_UNDERLINE
Definition: lws-html.h:313
@ LCSP_PROPVAL_TABLE_ROW
Definition: lws-html.h:306
@ LCSP_PROPVAL_GEORGIAN
Definition: lws-html.h:228
@ LCSP_PROPVAL_OUTSIDE
Definition: lws-html.h:271
@ LCSP_PROPVAL_LOWER_LATIN
Definition: lws-html.h:251
@ LCSP_PROPVAL_HIDDEN
Definition: lws-html.h:230
@ LCSP_PROPVAL_BASELINE
Definition: lws-html.h:202
@ LCSP_PROPVAL_LOW
Definition: lws-html.h:246
@ LCSP_PROPVAL_BEHIND
Definition: lws-html.h:203
@ LCSP_PROPVAL_OVERLINE
Definition: lws-html.h:272
@ LCSP_PROPVAL_UPPER_LATIN
Definition: lws-html.h:316
@ LCSP_PROPVAL_POINTER
Definition: lws-html.h:273
@ LCSP_PROPVAL_SPELL_OUT
Definition: lws-html.h:291
@ LCSP_PROPVAL_NONE
Definition: lws-html.h:261
@ LCSP_PROPVAL_LOWER_ALPHA
Definition: lws-html.h:248
@ LCSP_PROPVAL_STATIC
Definition: lws-html.h:294
@ LCSP_PROPVAL_LOWERCASE
Definition: lws-html.h:249
@ LCSP_PROPVAL_UPPERCASE
Definition: lws-html.h:315
@ LCSP_PROPVAL_PROGRESS
Definition: lws-html.h:277
@ LCSP_PROPVAL_JUSTIFY
Definition: lws-html.h:241
@ LCSP_PROPVAL_TABLE
Definition: lws-html.h:299
@ LCSP_PROPVAL_W_RESIZE
Definition: lws-html.h:320
@ LCSP_PROPVAL_STATUS_BAR
Definition: lws-html.h:295
@ LCSP_PROPVAL_NO_OPEN_QUOTE
Definition: lws-html.h:262
@ LCSP_PROPVAL_DISC
Definition: lws-html.h:224
@ LCSP_PROPVAL_ITALIC
Definition: lws-html.h:240
@ LCSP_PROPVAL_INLINE
Definition: lws-html.h:236
@ LCSP_PROPVAL_VISIBLE
Definition: lws-html.h:318
@ LCSP_PROPVAL_SE_RESIZE
Definition: lws-html.h:286
@ LCSP_PROPVAL_ONCE
Definition: lws-html.h:269
@ LCSP_PROPVAL_RTL
Definition: lws-html.h:283
@ LCSP_PROPVAL_REPEAT
Definition: lws-html.h:279
@ LCSP_PROPVAL_SEPARATE
Definition: lws-html.h:285
@ LCSP_PROPVAL_TABLE_COLUMN
Definition: lws-html.h:302
@ LCSP_PROPVAL_S_RESIZE
Definition: lws-html.h:293
@ LCSP_PROPVAL_MIX
Definition: lws-html.h:257
@ LCSP_PROPVAL_BIDI_OVERRIDE
Definition: lws-html.h:205
@ LCSP_PROPVAL_SILENT
Definition: lws-html.h:288
@ LCSP_PROPVAL_MESSAGE_BOX
Definition: lws-html.h:255
@ LCSP_PROPVAL_AUTO
Definition: lws-html.h:200
@ LCSP_PROPVAL_LIST_ITEM
Definition: lws-html.h:245
@ LCSP_PROPVAL_TEXT_TOP
Definition: lws-html.h:309
@ LCSP_PROPVAL_ABOVE
Definition: lws-html.h:196
@ LCSP_PROPVAL_E_RESIZE
Definition: lws-html.h:226
@ LCSP_PROPVAL_BOLD
Definition: lws-html.h:208
@ LCSP_PROPVAL_CROSSHAIR
Definition: lws-html.h:220
@ LCSP_PROPVAL_AVOID
Definition: lws-html.h:201
@ LCSP_PROPVAL_CLOSE_QUOTE
Definition: lws-html.h:216
@ LCSP_PROPVAL_NORMAL
Definition: lws-html.h:264
@ LCSP_PROPVAL_SQUARE
Definition: lws-html.h:292
@ LCSP_PROPVAL_ICON
Definition: lws-html.h:234
@ LCSP_PROPVAL_BOLDER
Definition: lws-html.h:209

◆ lcsp_css_units

Enumerator
LCSP_UNIT_NONE 
LCSP_UNIT_NUM 
LCSP_UNIT_LENGTH_EM 
LCSP_UNIT_LENGTH_EX 
LCSP_UNIT_LENGTH_IN 
LCSP_UNIT_LENGTH_CM 
LCSP_UNIT_LENGTH_MM 
LCSP_UNIT_LENGTH_PT 
LCSP_UNIT_LENGTH_PC 
LCSP_UNIT_LENGTH_PX 
LCSP_UNIT_LENGTH_PERCENT 
LCSP_UNIT_ANGLE_ABS_DEG 
LCSP_UNIT_ANGLE_REL_DEG 
LCSP_UNIT_FREQ_HZ 
LCSP_UNIT_RGBA 
LCSP_UNIT_URL 
LCSP_UNIT_STRING 
LCSP_UNIT_DATA 

Definition at line 419 of file lws-html.h.

419 {
421
422 LCSP_UNIT_NUM, /* u.i */
423
424 LCSP_UNIT_LENGTH_EM, /* u.i */
425 LCSP_UNIT_LENGTH_EX, /* u.i */
426 LCSP_UNIT_LENGTH_IN, /* u.i */
427 LCSP_UNIT_LENGTH_CM, /* u.i */
428 LCSP_UNIT_LENGTH_MM, /* u.i */
429 LCSP_UNIT_LENGTH_PT, /* u.i */
430 LCSP_UNIT_LENGTH_PC, /* u.i */
431 LCSP_UNIT_LENGTH_PX, /* u.i */
432 LCSP_UNIT_LENGTH_PERCENT, /* u.i */
433
434 LCSP_UNIT_ANGLE_ABS_DEG, /* u.i */
435 LCSP_UNIT_ANGLE_REL_DEG, /* u.i */
436
437 LCSP_UNIT_FREQ_HZ, /* u.i */
438
439 LCSP_UNIT_RGBA, /* u.rgba */
440
441 LCSP_UNIT_URL, /* string at end of atr */
442 LCSP_UNIT_STRING, /* string at end of atr */
443 LCSP_UNIT_DATA, /* binary data at end of atr */
444
@ LCSP_UNIT_LENGTH_MM
Definition: lws-html.h:428
@ LCSP_UNIT_LENGTH_PC
Definition: lws-html.h:430
@ LCSP_UNIT_LENGTH_CM
Definition: lws-html.h:427
@ LCSP_UNIT_DATA
Definition: lws-html.h:443
@ LCSP_UNIT_LENGTH_EX
Definition: lws-html.h:425
@ LCSP_UNIT_RGBA
Definition: lws-html.h:439
@ LCSP_UNIT_STRING
Definition: lws-html.h:442
@ LCSP_UNIT_LENGTH_PX
Definition: lws-html.h:431
@ LCSP_UNIT_NONE
Definition: lws-html.h:420
@ LCSP_UNIT_FREQ_HZ
Definition: lws-html.h:437
@ LCSP_UNIT_NUM
Definition: lws-html.h:422
@ LCSP_UNIT_LENGTH_PERCENT
Definition: lws-html.h:432
@ LCSP_UNIT_URL
Definition: lws-html.h:441
@ LCSP_UNIT_ANGLE_ABS_DEG
Definition: lws-html.h:434
@ LCSP_UNIT_ANGLE_REL_DEG
Definition: lws-html.h:435
@ LCSP_UNIT_LENGTH_EM
Definition: lws-html.h:424
@ LCSP_UNIT_LENGTH_PT
Definition: lws-html.h:429
@ LCSP_UNIT_LENGTH_IN
Definition: lws-html.h:426
enum lcsp_css_units lcsp_css_units_t

Function Documentation

◆ lws_lhp_construct()

LWS_VISIBLE LWS_EXTERN int lws_lhp_construct ( lhp_ctx_t ctx,
lhp_callback  cb,
void *  user,
const lws_surface_info_t ic 
)

◆ lws_lhp_destruct()

LWS_VISIBLE LWS_EXTERN void lws_lhp_destruct ( lhp_ctx_t ctx)

◆ lws_lhp_ss_browse()

LWS_VISIBLE LWS_EXTERN int lws_lhp_ss_browse ( struct lws_context *  cx,
lws_display_render_state_t rs,
const char *  url,
sul_cb_t  render 
)

lws_lhp_ss_browse() - browse url using SS and parse via lhp to DLOs

Parameters
cxthe lws_context
rsthe user's render state object
urlthe https://x.com/y.xyz URL to browse
renderthe user's linewise render callback (called from rs.sul)

High level network fetch via SS and render html via lhp / DLO

rs->ic must be prepared before calling.

Returns nonzero if an early, fatal problem, else returns 0 and continues asynchronously.

If rs->box is (0,0,0,0) on entry, it is set to represent the whole display surface. Otherwise if not representing the whole display surface, it indicates partial mode should be used.

◆ lws_lhp_parse()

LWS_VISIBLE LWS_EXTERN lws_stateful_ret_t lws_lhp_parse ( lhp_ctx_t ctx,
const uint8_t **  buf,
size_t *  len 
)

lws_lhp_parse() - parses a chunk of input HTML

ctx: the parsing context buf: pointer to the start of the chunk of html len: pointer the number of bytes of html available at *\pbuf

Parses up to *len bytes at *buf. On exit, *buf and *len are adjusted according to how much data was used. May return before processing all the input.

Returns LWS_SRET_WANT_INPUT if the parsing is stalled on some other async event (eg, fetch of image to find out the dimensions).

The lws_lhp_ss_browse() api wraps this.

◆ lws_css_cascade_get_prop_atr()

LWS_VISIBLE LWS_EXTERN const lcsp_atr_t * lws_css_cascade_get_prop_atr ( lhp_ctx_t ctx,
lcsp_props_t  prop 
)

lws_css_cascade_get_prop_atr() - create active css atr list for property

ctx: the parsing context prop: the LCSP_PROP_ property to generate the attribute list for

Returns NULL if no atr or OOM.

Otherwise produces a list of active CSS property attributes walkable via ctx->active_atr, and returns the tail one. For simple attributes where the last definition is the active one, this points to the last definition.

◆ lws_http_rel_to_url()

LWS_VISIBLE LWS_EXTERN int lws_http_rel_to_url ( char *  dest,
size_t  len,
const char *  base,
const char *  rel 
)

lws_http_rel_to_url() - make absolute url from base and relative

Parameters
destplace to store the result
lenmax length of result including NUL
basea reference url including a file part
relthe absolute or relative url or path to apply to base

Copy the url formof rel into dest, using base to fill in missing context

If base is https://x.com/y/z.html

a.html -> https://x.com/y/a/html ../b.html -> https://x.com/b.html /c.html -> https://x.com/c.html https://y.com/a.html -> https://y.com/a.html

◆ lws_css_get_parent_block()

LWS_VISIBLE LWS_EXTERN lhp_pstack_t * lws_css_get_parent_block ( lhp_ctx_t ctx,
lhp_pstack_t ps 
)

◆ lws_css_pstack_name()

LWS_VISIBLE LWS_EXTERN const char * lws_css_pstack_name ( lhp_pstack_t ps)

◆ lws_html_get_atr()

LWS_VISIBLE LWS_EXTERN const char * lws_html_get_atr ( lhp_pstack_t ps,
const char *  aname,
size_t  aname_len 
)

◆ lws_csp_px()

LWS_VISIBLE LWS_EXTERN const lws_fx_t * lws_csp_px ( const lcsp_atr_t a,
lhp_pstack_t ps 
)

◆ lws_lhp_tag_dlo_id()

LWS_VISIBLE LWS_EXTERN void lws_lhp_tag_dlo_id ( lhp_ctx_t ctx,
lhp_pstack_t ps,
lws_dlo_t dlo 
)

◆ lhp_set_dlo_padding_margin()

void lhp_set_dlo_padding_margin ( lhp_pstack_t ps,
lws_dlo_t dlo 
)

◆ lhp_prop_axis()

LWS_VISIBLE LWS_EXTERN int lhp_prop_axis ( const lcsp_atr_t a)