lecui 1.0.0-alpha.20
lecui C++ user interface library
password_field.h
1//
2// password_field.h - password_field 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 "text_field.h"
15#else
16#include <liblec/lecui/widgets/text_field.h>
17#endif
18
19namespace liblec {
20 namespace lecui {
21 namespace widgets {
23 class lecui_api password_field : public text_field {
24 public:
31 [[nodiscard]]
32 static text_field& add(containers::page& page, const std::string& alias = std::string());
33
40 [[nodiscard]]
41 static text_field& get(form& fm, const std::string& path);
42 };
43 }
44 }
45}
46
47#if defined(lecui_helper)
49#define get_password_field(path) liblec::lecui::widgets::password_field::get(*this, path)
50#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
Password field widget. To instantiate and add to a container use the add static method.
Definition: password_field.h:23
static text_field & add(containers::page &page, const std::string &alias=std::string())
Add a password field to a container.
static text_field & get(form &fm, const std::string &path)
Get the specifications of a password field.
Text field widget. To instantiate and add to a container use the add static method.
Definition: text_field.h:26
Top level namespace for the liblec libraries.
Definition: appearance.h:19