xtd 0.2.0
Loading...
Searching...
No Matches
find_box.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "find_dialog.hpp"
6#include <xtd/static>
7#include <memory>
8
10namespace xtd {
12 namespace forms {
32 public:
34
39 template<typename find_next_callback_t>
40 static void show(const iwin32_window& owner, find_next_callback_t find_next) {show_find_box(owner, xtd::forms::find_event_handler(find_next));}
45 template<typename find_next_callback_t>
46 static void show(const iwin32_window& owner, const xtd::string& find_string, find_next_callback_t find_next) {show_find_box(owner, xtd::forms::find_event_handler(find_next), find_string);}
52 template<typename find_next_callback_t>
53 static void show(const iwin32_window& owner, const xtd::string& find_string, const xtd::string& title, find_next_callback_t find_next) {show_find_box(owner, xtd::forms::find_event_handler(find_next), find_string, title);}
60 template<typename find_next_callback_t>
61 static void show(const iwin32_window& owner, const xtd::string& find_string, const xtd::string& title, bool match_case, find_next_callback_t find_next) {show_find_box(owner, xtd::forms::find_event_handler(find_next), find_string, title, match_case);}
69 template<typename find_next_callback_t>
70 static void show(const iwin32_window& owner, const xtd::string& find_string, const xtd::string& title, bool match_case, xtd::forms::search_direction search_direction, find_next_callback_t find_next) {show_find_box(owner, xtd::forms::find_event_handler(find_next), find_string, title, match_case, search_direction);}
79 template<typename find_next_callback_t>
80 static void show(const iwin32_window& owner, const xtd::string& find_string, const xtd::string& title, bool match_case, xtd::forms::search_direction search_direction, bool whole_word, find_next_callback_t find_next) {show_find_box(owner, xtd::forms::find_event_handler(find_next), find_string, title, match_case, search_direction, whole_word);}
82
83 private:
84 static void show_find_box(const iwin32_window& owner, xtd::forms::find_event_handler find_next, const xtd::string& find_string = xtd::string::empty_string, const xtd::string& title = xtd::string::empty_string, bool match_case = false, xtd::forms::search_direction search_direction = xtd::forms::search_direction::down, bool whole_word = false);
85
87 };
88 }
89}
Represents text as a sequence of character units.
Definition basic_string.hpp:79
static const basic_string empty_string
Represents the empty basic_string.
Definition basic_string.hpp:124
Represents a common dialog box that displays a find dialog. This class cannot be inherited.
Definition find_box.hpp:31
static void show(const iwin32_window &owner, find_next_callback_t find_next)
Displays a find dialog box.
Definition find_box.hpp:40
static void show(const iwin32_window &owner, const xtd::string &find_string, const xtd::string &title, bool match_case, find_next_callback_t find_next)
Displays a find dialog box.
Definition find_box.hpp:61
static void show(const iwin32_window &owner, const xtd::string &find_string, find_next_callback_t find_next)
Displays a find dialog box.
Definition find_box.hpp:46
static void show(const iwin32_window &owner, const xtd::string &find_string, const xtd::string &title, find_next_callback_t find_next)
Displays a find dialog box.
Definition find_box.hpp:53
static void show(const iwin32_window &owner, const xtd::string &find_string, const xtd::string &title, bool match_case, xtd::forms::search_direction search_direction, bool whole_word, find_next_callback_t find_next)
Displays a find dialog box.
Definition find_box.hpp:80
static void show(const iwin32_window &owner, const xtd::string &find_string, const xtd::string &title, bool match_case, xtd::forms::search_direction search_direction, find_next_callback_t find_next)
Displays a find dialog box.
Definition find_box.hpp:70
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.hpp:23
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.hpp:24
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
#define forms_export_
Define shared library export.
Definition forms_export.hpp:13
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
search_direction
Specifies the search direction for xtd::forms::find_dialog dialog.
Definition search_direction.hpp:21
@ down
Search direction down.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::forms::find_dialog dialog.