Boost.UI
User Interface Boost library
web_widget.hpp
Go to the documentation of this file.
1 // Copyright (c) 2017 Kolya Kosenko
2 
3 // Distributed under the Boost Software License, Version 1.0.
4 // See http://www.boost.org/LICENSE_1_0.txt
5 
7 
8 #ifndef BOOST_UI_WEB_WIDGET_HPP
9 #define BOOST_UI_WEB_WIDGET_HPP
10 
11 #include <boost/ui/config.hpp>
12 
13 #ifdef BOOST_HAS_PRAGMA_ONCE
14 #pragma once
15 #endif
16 
17 #include <boost/ui/widget.hpp>
18 
19 namespace boost {
20 namespace ui {
21 
26 
27 class BOOST_UI_DECL web_widget : public widget
28 {
29 public:
30  web_widget() {}
31 
33  explicit web_widget(widget& parent)
34  { create(parent); }
35  web_widget& create(widget& parent);
37 
40  web_widget& html(const uistring& html);
41 
44  web_widget& load(const uistring& url);
45 
46 private:
47  class detail_impl;
48  detail_impl* get_impl();
49 };
50 
51 } // namespace ui
52 } // namespace boost
53 
54 #endif // BOOST_UI_WEB_WIDGET_HPP
boost::ui::uistring
Helper class to convert string between UI and application logic only.
Definition: string.hpp:49
config.hpp
Configuration options.
widget.hpp
Widget class.
boost
Boost C++ libraries namespace.
Definition: window.hpp:19
boost::ui::web_widget::web_widget
web_widget(widget &parent)
Creates web_widget widget.
Definition: web_widget.hpp:33
boost::ui::widget
Base class for all widgets.
Definition: widget.hpp:45
boost::ui::web_widget
Widget that renders HTML.
Definition: web_widget.hpp:27