lecui 1.0.0-alpha.20
lecui C++ user interface library
html_view.h
1//
2// html_view.h - html_view widget interface
3//
4// lecui user interface library, part of the liblec library
5// Copyright (c) 2019 Alec Musasa (alecmus at live dot com)
6//
7// Released under the MIT license. For full details see the
8// file LICENSE.txt
9//
10
11#pragma once
12
13#if defined(LECUI_EXPORTS)
14#include "html_editor.h"
15#else
16#include <liblec/lecui/widgets/html_editor.h>
17#endif
18
19namespace liblec {
20 namespace lecui {
21 namespace widgets {
24 class lecui_api html_view : public html_editor {
25 public:
32 [[nodiscard]]
33 static html_editor& add(containers::page& page, const std::string& alias = std::string());
34
41 [[nodiscard]]
42 static html_editor& get(form& fm, const std::string& path);
43 };
44 }
45 }
46}
47
48#if defined(lecui_helper)
50#define get_html_view(path) liblec::lecui::widgets::html_view::get(*this, path)
51#endif
Page container.
Definition: page.h:32
Form base class. The user must inherit from this class and call one of the two constructors from its ...
Definition: form.h:122
HTML editor widget. To instantiate and add to a container use the add static method.
Definition: html_editor.h:24
HTML view widget. To instantiate and add to a container use the add static method.
Definition: html_view.h:24
static html_editor & get(form &fm, const std::string &path)
Get the specifications of an html view.
static html_editor & add(containers::page &page, const std::string &alias=std::string())
Add an html view to a container.
Top level namespace for the liblec libraries.
Definition: appearance.h:19