wxPasswordEntryDialog(3)

πŸ“¦
version 29.0.6 Β· 3 versions
, in ubuntu stonking

πŸ’– NAME πŸ’–

ok so bestie, wxPasswordEntryDialog β€” this is a class that pops up a dialog and asks the user for a one-line password string. that's it, that's the whole job. secret little text box, main character energy. πŸ”βœ¨


πŸŽ€ DESCRIPTION πŸŽ€

it's implemented as a generic wxWidgets dialog, no cap. πŸ¦‹

See: Overview cmndlg

ok and since it's giving derived-class realness, it can also use functions from all of these ancestors, so keep that in mind bestie:

  • wxTextEntryDialog
  • wxDialog
  • wxTopLevelWindow
  • wxWindow
  • wxEvtHandler

wxWidgets docs: wxPasswordEntryDialog


🌸 DATA TYPES 🌸

wxPasswordEntryDialog() :: wx:wx_object().

yes, it's a wx_object(). slay. πŸ’…


✨ FUNCTIONS ✨

🫢 destroy(This :: wxPasswordEntryDialog()) -> ok.

Destroys the object. bye bye, iconic, we hardly knew ye πŸ˜­πŸ‘‹


🧚 new(Parent, Message, [Option]) -> wxPasswordEntryDialog()

when
    Parent :: wxWindow:wxWindow(),
    Message :: unicode:chardata(),
    Option ::
        {caption, unicode:chardata()} |
        {value, unicode:chardata()} |
        {style, integer()} |
        {pos, {X :: integer(), Y :: integer()}}.

Constructor. the lil baby-making function for your dialog πŸŒ±πŸ’–

here's the rundown on the args:

  • Parent β€” a wxWindow:wxWindow(), your parent window obvs
  • Message β€” unicode:chardata(), the prompt text the user sees
  • Option β€” a list of optional extras, and the options are:
    • {caption, unicode:chardata()}
    • {value, unicode:chardata()}
    • {style, integer()}
    • {pos, {X :: integer(), Y :: integer()}}
and bestie, use wxDialog:showModal/1 to actually show the dialog. it does not just appear out of thin air, you gotta call it. periodt. πŸ’€

that's the whole page bestie, go forth and password-protect your vibe πŸŒˆπŸ“

this little love letter was brought to you by Ericsson AB, from the wx 2.6 era β€” ngl, vintage but still serving πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from