xtd 0.2.0
Loading...
Searching...
No Matches
find_dialog.h
Go to the documentation of this file.
1
4#pragma once
5#include "component.h"
7#include "dialog_appearance.h"
9#include "search_direction.h"
10#include "iwin32_window.h"
12#include <xtd/drawing/point>
13#include <xtd/event>
14#include <xtd/ustring>
15
17namespace xtd {
19 namespace forms {
36 class forms_export_ find_dialog final : public component {
37 struct data;
38
39 public:
41
46
50
52
56 const xtd::ustring& find_string() const noexcept;
60 find_dialog& find_string(const xtd::ustring& value);
61
64 xtd::drawing::point location() const noexcept;
68 find_dialog& location(const xtd::drawing::point& value);
69
72 bool match_case() const noexcept;
76 find_dialog& match_case(bool value);
77
85
88 bool show_match_case() const noexcept;
92 find_dialog& show_match_case(bool value);
93
96 bool show_up_down() const noexcept;
100 find_dialog& show_up_down(bool value);
101
104 bool show_whole_word() const noexcept;
108 find_dialog& show_whole_word(bool value);
109
112 const xtd::ustring& title() const noexcept;
116 find_dialog& title(const xtd::ustring& value);
117
120 bool whole_word() const noexcept;
124 find_dialog& whole_word(bool value);
126
128
133
139
141
145 void close();
146
159 void reset() noexcept;
160
163 void show(const iwin32_window& owner);
165
166 private:
167 void create_handle();
168 void destroy_handle();
169 void on_dialog_closed();
170 void on_dialog_find(const xtd::drawing::point& location, const ustring& find_string, bool downwards, bool whole_word, bool match_case);
171 void recreate_handle();
172
173 std::shared_ptr<data> data_;
174 };
175 }
176}
Contains xtd::forms::layout::arranged_element_collection collection.
Represents an event.
Definition event.h:21
Provides the base implementation and enables object sharing between applications.
Definition component.h:23
Represents a dialog box that displays find dialog.
Definition find_dialog.h:36
find_dialog()
Initializes a new instance of the find_dialog class.
const xtd::ustring & find_string() const noexcept
Gets the string to find.
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.h:21
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
Contains xtd::forms::component class.
Contains xtd::forms::dialog_appearance enum class.
Contains xtd::forms::dialog_closed_event_handler dialog.
Contains xtd::forms::find_event_handler event handler.
delegate< void(object &sender, const dialog_closed_event_args &e)> dialog_closed_event_handler
Provides handler for a dialog closed event.
Definition dialog_closed_event_handler.h:22
delegate< void(object &sender, const find_event_args &e)> find_event_handler
Represents the method that will handle the xtd::forms::find_dialog::find_next event of the xtd::forms...
Definition find_event_handler.h:22
#define forms_export_
Define shared library export.
Definition forms_export.h:13
search_direction
Specifies the search direction for xtd::forms::find_dialog dialog.
Definition search_direction.h:19
Contains xtd::forms::iwin32_window interface.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::forms::search_direction enum class.