xtd 0.2.0
Loading...
Searching...
No Matches
find_box.h
Go to the documentation of this file.
1
4#pragma once
5#include "find_dialog.h"
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.h:79
static const basic_string empty_string
Represents the empty basic_string.
Definition basic_string.h:124
Represents a common dialog box that displays a find dialog. This class cannot be inherited.
Definition find_box.h:31
static void show(const iwin32_window &owner, find_next_callback_t find_next)
Displays a find dialog box.
Definition find_box.h: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.h: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.h: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.h: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.h: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.h:70
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.h:23
Contains xtd::forms::find_dialog dialog.
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:24
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
#define forms_export_
Define shared library export.
Definition forms_export.h:13
std::unique_ptr< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.h:25
search_direction
Specifies the search direction for xtd::forms::find_dialog dialog.
Definition search_direction.h:21
@ down
Search direction down.
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