blob: 366b25460cb2eb722ed58e3a887857b3ec60cf82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|
/*
* This file is part of LibCSS
* Licensed under the MIT License,
* http://www.opensource.org/licenses/mit-license.php
* Copyright 2009 John-Mark Bell <jmb@netsurf-browser.org>
*/
#ifndef libcss_hint_h_
#define libcss_hint_h_
#include <libwapcaplet/libwapcaplet.h>
#include <libcss/errors.h>
#include <libcss/functypes.h>
#include <libcss/types.h>
/**
* Length object for use in presentational hints
*/
typedef struct css_hint_length {
css_fixed value;
css_unit unit;
} css_hint_length;
/**
* Typed colour object for use in presentational hints
*/
typedef struct css_hint_typed_colour {
uint8_t type;
css_colour color;
} css_hint_typed_colour;
/**
* Typed length object for use in presentational hints
*/
typedef struct css_hint_typed_length {
uint8_t type;
css_hint_length length;
} css_hint_typed_length;
/**
* Typed string object for use in presentational hints
*/
typedef struct css_hint_typed_string {
uint8_t type;
lwc_string *string;
} css_hint_typed_string;
/**
* Presentational hint border
*/
typedef struct css_hint_border {
css_hint_typed_length width;
css_hint_typed_colour color;
uint8_t style;
} css_hint_border;
/**
* Presentational hints
*
* \todo There's no way to flag that a property isn't set here.
*/
typedef struct css_hint {
css_hint_typed_colour background_color;
css_hint_typed_string background_image;
uint8_t border_collapse;
css_hint_border border_bottom;
css_hint_border border_left;
css_hint_border border_right;
css_hint_border border_top;
struct {
uint8_t type;
css_hint_length h;
css_hint_length v;
} border_spacing;
uint8_t caption_side;
uint8_t clear;
css_hint_typed_colour color;
uint8_t _float;
css_hint_typed_string font_family;
css_hint_typed_length font_size;
css_hint_typed_length height;
uint8_t list_style_type;
css_hint_typed_length margin_bottom;
css_hint_typed_length margin_left;
css_hint_typed_length margin_right;
css_hint_typed_length margin_top;
uint8_t overflow;
css_hint_typed_length padding_bottom;
css_hint_typed_length padding_left;
css_hint_typed_length padding_right;
css_hint_typed_length padding_top;
uint8_t text_align;
css_hint_typed_length vertical_align;
uint8_t white_space;
css_hint_typed_length width;
} css_hint;
#endif
|