mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-01 20:31:27 +00:00
Added TextInputInterface.text-input-focused
This commit is contained in:
parent
b565eb8820
commit
a57c7eb6bc
17 changed files with 265 additions and 1 deletions
|
|
@ -318,6 +318,8 @@ fn gen_corelib(
|
|||
"slint_windowrc_is_visible",
|
||||
"slint_windowrc_get_scale_factor",
|
||||
"slint_windowrc_set_scale_factor",
|
||||
"slint_windowrc_get_text_input_focused",
|
||||
"slint_windowrc_set_text_input_focused",
|
||||
"slint_windowrc_set_focus_item",
|
||||
"slint_windowrc_set_component",
|
||||
"slint_windowrc_show_popup",
|
||||
|
|
|
|||
|
|
@ -118,6 +118,12 @@ public:
|
|||
|
||||
bool dark_color_scheme() const { return slint_windowrc_dark_color_scheme(&inner); }
|
||||
|
||||
bool text_input_focused() const { return slint_windowrc_get_text_input_focused(&inner); }
|
||||
void set_text_input_focused(bool value) const
|
||||
{
|
||||
slint_windowrc_set_text_input_focused(&inner, value);
|
||||
}
|
||||
|
||||
template<typename Component, typename ItemArray>
|
||||
void unregister_component(Component *c, ItemArray items) const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue