WXPOPUPTRANSIENTWINDOW(3erl)

πŸ’… wxPopupTransientWindow (Erlang Module Definition)

okay so bestie, welcome to the manual page for wxPopupTransientWindow β€” a whole module definition, Erlang flavored, and honestly? kinda iconic. let's get into it ✨


🌸 NAME 🌸

wxPopupTransientWindow β€” literally the functions for the wxPopupTransientWindow class. that's it, that's the name, periodt.


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: it's a wxPopupWindow that disappears automatically the moment the user clicks their mouse outside of it, or honestly if it loses focus in any other way too. it's giving "i was never here" energy πŸ’¨

this window is lowkey useful for implementing custom combobox-like controls, for example. iykyk πŸ‘‘

See: wxPopupWindow β€” go look at it, it's the parent vibe fr.

this class is derived (and can use functions) from:

  • wxPopupWindow
  • wxWindow
  • wxEvtHandler

and for all the wxWidgets docs girlies, check out: wxWidgets docs: wxPopupWidget β€” wait no, wxWidgets docs: wxPopupTransientWindow 🫢


πŸŽ€ DATA TYPES πŸŽ€

  • wxPopupTransientWindow() = wx:wx_object()

that's the whole type. short, sweet, main character energy ⭐


πŸ”₯ EXPORTS πŸ”₯

✨ new() -> wxPopupTransientWindow()

the default constructor. no arguments, no drama, just vibes πŸ’–

✨ new(Parent) -> wxPopupTransientWindow()

Types:

Parent = wxWindow:wxWindow()

yep, you pass in a Parent. that's the whole deal πŸ¦‹

✨ new(Parent, Options :: [Option]) -> wxPopupTransientWindow()

Types:

Parent = wxWindow:wxWindow()
Option = {style, integer()}

the constructor with options, bestie. you got your Parent, and Option is a {style, integer()} tuple. slay πŸŽ€

Types:

This = wxPopupTransientWindow()

Types:

This = wxPopupTransientWindow()
Option = {focus, wxWindow:wxWindow()}

popup the window β€” and yes, this will show it too, that's the whole point πŸ’…

okay so here's the important part: if focus is non-NULL, it will be kept focused while this window is shown if supported by the current platform. otherwise the popup itself will receive focus. either way? the popup disappears automatically if it loses focus because of a user action. no cap, that's the whole transient thing fr fr 😭

See: dismiss/1

✨ dismiss(This) -> ok

Types:

This = wxPopupTransientWindow()

hide the window. bye bestie πŸ‘‹

✨ destroy(This :: wxPopupTransientWindow()) -> ok

destroys the object. rip to it honestly πŸ’€


okay ngl that's the entire page, every flag, every type, every function. no skips, no summaries, we ate and left no crumbs πŸ“

sign-off time 🧚 this masterpiece was brought to you by the wxWidgets team, and it's from wx 2.2.2.1 β€” the original footer even had that cute truncated wxPopupTr...entWindow(3erl) thing going on, love that for it. mwah, bye! πŸ’œπŸŒˆβ­

πŸ“¦ where this page comes from