Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #pragma once
00030
00031 #include "../css_box_property.h"
00032
00033 class CL_CSSBoxFontFamilyName
00034 {
00035 public:
00036 CL_CSSBoxFontFamilyName() : type(type_serif) { }
00037 CL_CSSBoxFontFamilyName(const CL_String &name) : type(type_family_name), name(name) { }
00038
00039 enum Type
00040 {
00041 type_family_name,
00042 type_serif,
00043 type_sans_serif,
00044 type_cursive,
00045 type_fantasy,
00046 type_monospace
00047 };
00048 Type type;
00049 CL_String name;
00050 };
00051
00052 class CL_CSSBoxFontFamily : public CL_CSSBoxProperty
00053 {
00054 public:
00055 CL_CSSBoxFontFamily();
00056 void compute(const CL_CSSBoxFontFamily *parent, CL_CSSResourceCache *layout, float em_size, float ex_size);
00057 CL_String to_string() const;
00058
00059 enum Type
00060 {
00061 type_names,
00062 type_inherit
00063 };
00064 Type type;
00065 std::vector<CL_CSSBoxFontFamilyName> names;
00066 };