-
Notifications
You must be signed in to change notification settings - Fork 336
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
204 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* Virtual Keyboard Implementations | ||
* Nana C++ Library(http://www.nanapro.org) | ||
* Copyright(C) 2003-2023 Jinhao([email protected]) | ||
* Copyright(C) 2003-2024 Jinhao([email protected]) | ||
* | ||
* Distributed under the Boost Software License, Version 1.0. | ||
* (See accompanying file LICENSE_1_0.txt or copy at | ||
|
@@ -41,9 +41,11 @@ namespace nana::detail | |
virtual_keyboard(); | ||
~virtual_keyboard(); | ||
|
||
static std::string& default_im_value() noexcept; | ||
|
||
void attach(window); | ||
bool qwerty(window, std::vector<std::string> langs, behaves, modes); | ||
bool numeric(window); | ||
bool numeric(window, bool padding); | ||
private: | ||
implementation* const impl_; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* A text editor implementation | ||
* Nana C++ Library(http://www.nanapro.org) | ||
* Copyright(C) 2003-2023 Jinhao([email protected]) | ||
* Copyright(C) 2003-2024 Jinhao([email protected]) | ||
* | ||
* Distributed under the Boost Software License, Version 1.0. | ||
* (See accompanying file LICENSE_1_0.txt or copy at | ||
|
@@ -164,6 +164,7 @@ namespace nana::widgets::skeletons | |
bool select(bool); | ||
|
||
bool select_points(nana::upoint arg_a, nana::upoint arg_b); | ||
::std::wstring make_select_string() const; | ||
|
||
/// IM candidate mode | ||
void im_candidate_mode(bool); | ||
|
@@ -196,6 +197,7 @@ namespace nana::widgets::skeletons | |
void render(bool focused); | ||
public: | ||
upoint im_input(upoint insert_pos, const std::wstring& str, bool candidate); | ||
void im_cancel(); | ||
void put(std::wstring, bool perform_event); | ||
void put(wchar_t); | ||
void copy() const; | ||
|
@@ -255,7 +257,6 @@ namespace nana::widgets::skeletons | |
|
||
::nana::upoint _m_erase_select(bool perform_event); | ||
|
||
::std::wstring _m_make_select_string() const; | ||
static bool _m_resolve_text(const ::std::wstring&, std::vector<std::pair<std::size_t, std::size_t>> & lines); | ||
|
||
bool _m_cancel_select(int align); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.