xtd 1.0.0
Loading...
Searching...
No Matches
input_dialog.hpp
Go to the documentation of this file.
1
4#pragma once
7#include "common_dialog.hpp"
8#include <xtd/delegate>
9
11namespace xtd {
13 namespace forms {
39 struct data;
40 public:
42
47
49
53 [[nodiscard]] auto character_casing() const noexcept -> xtd::forms::character_casing;
58
61 [[nodiscard]] auto dialog_appearance() const noexcept -> xtd::forms::dialog_appearance;
66
70 [[nodiscard]] auto multiline() const noexcept -> bool;
76
79 [[nodiscard]] auto message() const noexcept -> xtd::string;
83 auto message(const xtd::string& value) -> input_dialog&;
84
87 [[nodiscard]] auto text() const noexcept -> xtd::string;
91 auto text(const xtd::string& value) -> input_dialog&;
92
96 [[nodiscard]] auto use_system_password_char() const noexcept -> bool;
102
105 [[nodiscard]] auto value() const noexcept -> xtd::string;
109 auto value(const xtd::string& value) -> input_dialog&;
110
114 [[nodiscard]] auto word_wrap() const noexcept -> bool;
121
123
126 auto reset() noexcept -> void override;
128
129 protected:
131
136 auto run_dialog(xtd::intptr owner) -> bool override;
137
140 auto run_sheet(xtd::intptr owner) -> void override;
142
143 private:
144 xtd::sptr<data> data_;
145 };
146 }
147}
Contains xtd::forms::character_casing enum class.
Specifies the base class used for displaying dialog boxes on the screen.
Definition common_dialog.hpp:34
input_dialog()
Initializes a new instance of the input_dialog class.
auto word_wrap() const noexcept -> bool
Gets word wrap status.
auto multiline() const noexcept -> bool
Gets multiline status.
auto dialog_appearance() const noexcept -> xtd::forms::dialog_appearance
Gets the dialog appearance.
auto text() const noexcept -> xtd::string
Gets the dialog caption text.
auto reset() noexcept -> void override
Resets all properties to empty string.
auto run_dialog(xtd::intptr owner) -> bool override
When overridden in a derived class, specifies a common dialog box.
auto run_sheet(xtd::intptr owner) -> void override
When overridden in a derived class, specifies a common dialog box.
auto character_casing() const noexcept -> xtd::forms::character_casing
Gets the character casing.
auto use_system_password_char() const noexcept -> bool
Gets use system password char status.
auto message() const noexcept -> xtd::string
Gets the text message.
auto value() const noexcept -> xtd::string
Gets the value.
Contains xtd::forms::common_dialog class.
Contains xtd::forms::dialog_appearance enum class.
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
std::intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr auto data() const noexcept -> const_pointer
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:197