Skip to content

Commit

Permalink
Split different types of entry controls into their own packages
Browse files Browse the repository at this point in the history
  • Loading branch information
sanko committed Aug 22, 2023
1 parent b4769dc commit 80517cb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/LibUI.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,9 @@ You may import these functions with the C<:entry> tag.
=cut

typedef 'LibUI::Entry' => Type ['LibUI::Control'];
typedef 'LibUI::Entry' => Type ['LibUI::Control'];
typedef 'LibUI::PasswordEntry' => Type ['LibUI::Entry'];
typedef 'LibUI::SearchEntry' => Type ['LibUI::Entry'];

=head3 C<uiEntryText( ... )>
Expand Down Expand Up @@ -1291,7 +1293,7 @@ The entered text is NOT readable by the user but masked as C<*******>.
=cut

affix $lib, 'uiNewPasswordEntry', [] => Type ['LibUI::Entry'];
affix $lib, 'uiNewPasswordEntry', [] => Type ['LibUI::PasswordEntry'];

=head3 C<uiNewSearchEntry( ... )>
Expand All @@ -1304,7 +1306,7 @@ for a more natural feel.
=cut

affix $lib, 'uiNewSearchEntry', [] => Type ['LibUI::Entry'];
affix $lib, 'uiNewSearchEntry', [] => Type ['LibUI::SearchEntry'];

=head2 Label Functions
Expand Down

0 comments on commit 80517cb

Please sign in to comment.