8 #ifndef BOOST_UI_FONT_HPP
9 #define BOOST_UI_FONT_HPP
13 #ifdef BOOST_HAS_PRAGMA_ONCE
19 #include <boost/core/scoped_enum.hpp>
36 BOOST_SCOPED_ENUM_DECLARE_BEGIN(
family)
45 BOOST_SCOPED_ENUM_DECLARE_END(family)
48 BOOST_SCOPED_ENUM_DECLARE_BEGIN(
slant)
54 BOOST_SCOPED_ENUM_DECLARE_END(slant)
57 BOOST_SCOPED_ENUM_DECLARE_BEGIN(
weight)
62 BOOST_SCOPED_ENUM_DECLARE_END(weight)
72 explicit font(
double pt, family f,
73 slant s = slant::normal, weight w = weight::normal);
75 slant s = slant::normal, weight w = weight::normal);
79 font& set_family(family f);
82 family get_family()
const;
85 font& set_slant(slant s);
88 slant get_slant()
const;
91 font& set_weight(weight w);
94 weight get_weight()
const;
105 font& size_pt(
double pt);
108 double size_pt()
const;
111 bool valid() const BOOST_NOEXCEPT;
122 static font caption() BOOST_NOEXCEPT;
128 friend class native_helper;
135 #endif // BOOST_UI_FONT_HPP