1
// included by gtkhtml.pas
3
{$IFDEF read_forward_definitions}
4
{$ENDIF read_forward_definitions}
6
//------------------------------------------------------------------------------
8
{$IFDEF read_interface_types}
10
THtmlFontStyleType = (HTML_FONT_STYLE_NORMAL := 0,HTML_FONT_STYLE_ITALIC, HTML_FONT_STYLE_OBLIQUE);
11
THtmlFontVariantType = (HTML_FONT_VARIANT_NORMAL := 0,HTML_FONT_VARIANT_SMALL_CAPS);
12
THtmlFontWeightType = (HTML_FONT_WEIGHT_100,HTML_FONT_WEIGHT_200,
13
HTML_FONT_WEIGHT_300,HTML_FONT_WEIGHT_400, HTML_FONT_WEIGHT_500,HTML_FONT_WEIGHT_600,
14
HTML_FONT_WEIGHT_700,HTML_FONT_WEIGHT_800, HTML_FONT_WEIGHT_900);
17
HTML_FONT_WEIGHT_NORMAL = HTML_FONT_WEIGHT_400;
18
HTML_FONT_WEIGHT_BOLD = HTML_FONT_WEIGHT_700;
21
THtmlFontStretchType = (HTML_FONT_STRETCH_NORMAL := 0,HTML_FONT_STRETCH_ULTRA_CONDENSED,
22
HTML_FONT_STRETCH_EXTRA_CONDENSED,HTML_FONT_STRETCH_CONDENSED,
23
HTML_FONT_STRETCH_SEMI_CONDENSED,HTML_FONT_STRETCH_SEMI_EXPANDED,
24
HTML_FONT_STRETCH_EXPANDED,HTML_FONT_STRETCH_EXTRA_EXPANDED,
25
HTML_FONT_STRETCH_ULTRA_EXPANDED);
26
THtmlFontDecorationType = (HTML_FONT_DECORATION_NONE := 0,HTML_FONT_DECORATION_UNDERLINE := 1 shl 0,
27
HTML_FONT_DECORATION_OVERLINE := 1 shl 1, HTML_FONT_DECORATION_LINETHROUGH := 1 shl 2);
29
PHtmlFontSpecification = ^THtmlFontSpecification;
30
THtmlFontSpecification = record
34
end;//THtmlFontSpecification
36
{$ENDIF read_interface_types}
38
//------------------------------------------------------------------------------
40
{$IFDEF read_interface_rest}
42
function weight(var a : _HtmlFontSpecification) : THtmlFontWeightType;
43
procedure set_weight(var a : _HtmlFontSpecification; __weight : THtmlFontWeightType);
44
function style(var a : _HtmlFontSpecification) : THtmlFontStyleType;
45
procedure set_style(var a : _HtmlFontSpecification; __style : THtmlFontStyleType);
46
function variant(var a : _HtmlFontSpecification) : THtmlFontVariantType;
47
procedure set_variant(var a : _HtmlFontSpecification; __variant : THtmlFontVariantType);
48
function stretch(var a : _HtmlFontSpecification) : THtmlFontStretchType;
49
procedure set_stretch(var a : _HtmlFontSpecification; __stretch : THtmlFontStretchType);
50
function decoration(var a : _HtmlFontSpecification) : THtmlFontDecorationType;
51
procedure set_decoration(var a : _HtmlFontSpecification; __decoration : THtmlFontDecorationType);
53
function html_font_specification_new(family:Pgchar; style:THtmlFontStyleType; variant:THtmlFontVariantType; weight:HtmlFontWeightType; stretch:HtmlFontStretchType;
54
decoration:THtmlFontDecorationType; size:gint):PHtmlFontSpecification;cdecl; external gtkhtmllib;
55
function html_font_specification_ref(spec:PHtmlFontSpecification):PHtmlFontSpecification;cdecl; external gtkhtmllib;
56
procedure html_font_specification_unref(spec:PHtmlFontSpecification);cdecl; external gtkhtmllib;
57
function html_font_specification_dup(spec:PHtmlFontSpecification):PHtmlFontSpecification;cdecl; external gtkhtmllib;
58
function html_font_description_equal(a:PHtmlFontSpecification; b:PHtmlFontSpecification):gboolean;cdecl; external gtkhtmllib;
59
function html_font_specification_get_pango_font_description(spec:PHtmlFontSpecification):PPangoFontDescription;cdecl; external gtkhtmllib;
60
procedure html_font_specification_get_extra_attributes(spec:PHtmlFontSpecification; attrs:PPangoAttrList; start_index:gint; end_index:gint);cdecl; external gtkhtmllib;
61
procedure html_font_specification_get_all_attributes(spec:PHtmlFontSpecification; attrs:PPangoAttrList; start_index:gint; end_index:gint; magnification:gdouble);cdecl; external gtkhtmllib;
62
function html_font_specification_get_html_size(spec:PHtmlFontSpecification):gint;cdecl; external gtkhtmllib;
63
function html_font_description_html_size_to_pt(font_size:gint):gint;cdecl; external gtkhtmllib;
65
{$ENDIF read_interface_rest}
67
//------------------------------------------------------------------------------
69
{$IFDEF read_implementation}
71
function weight(var a : THtmlFontSpecification) : THtmlFontWeightType;
73
weight:=(a.flag0 and bm__HtmlFontSpecification_weight) shr bp__HtmlFontSpecification_weight;
76
procedure set_weight(var a : THtmlFontSpecification; __weight : THtmlFontWeightType);
78
a.flag0:=a.flag0 or ((__weight shl bp__HtmlFontSpecification_weight) and bm__HtmlFontSpecification_weight);
81
function style(var a : THtmlFontSpecification) : THtmlFontStyleType;
83
style:=(a.flag0 and bm__HtmlFontSpecification_style) shr bp__HtmlFontSpecification_style;
86
procedure set_style(var a : THtmlFontSpecification; __style : THtmlFontStyleType);
88
a.flag0:=a.flag0 or ((__style shl bp__HtmlFontSpecification_style) and bm__HtmlFontSpecification_style);
91
function variant(var a : THtmlFontSpecification) : THtmlFontVariantType;
93
variant:=(a.flag0 and bm__HtmlFontSpecification_variant) shr bp__HtmlFontSpecification_variant;
96
procedure set_variant(var a : THtmlFontSpecification; __variant : THtmlFontVariantType);
98
a.flag0:=a.flag0 or ((__variant shl bp__HtmlFontSpecification_variant) and bm__HtmlFontSpecification_variant);
101
function stretch(var a : THtmlFontSpecification) : THtmlFontStretchType;
103
stretch:=(a.flag0 and bm__HtmlFontSpecification_stretch) shr bp__HtmlFontSpecification_stretch;
106
procedure set_stretch(var a : THtmlFontSpecification; __stretch : THtmlFontStretchType);
108
a.flag0:=a.flag0 or ((__stretch shl bp__HtmlFontSpecification_stretch) and bm__HtmlFontSpecification_stretch);
111
function decoration(var a : THtmlFontSpecification) : THtmlFontDecorationType;
113
decoration:=(a.flag0 and bm__HtmlFontSpecification_decoration) shr bp__HtmlFontSpecification_decoration;
116
procedure set_decoration(var a : THtmlFontSpecification; __decoration : THtmlFontDecorationType);
118
a.flag0:=a.flag0 or ((__decoration shl bp__HtmlFontSpecification_decoration) and bm__HtmlFontSpecification_decoration);
121
{$ENDIF read_implementation}
122
// included by gtkhtml.pas