Dialog(3I)
π Dialog(3I) π
okay bestie, we're in the InterViews Reference Manual and this is THE page for Dialog β the popup dialog interactor. yes she's giving main character energy. yes she handles your dialog box input. let's get into it π«Ά
β¨ NAME β¨
Dialog β popup dialog interactor π
πΈ SYNOPSIS πΈ
#include <InterViews/dialog.h>
π¦ DESCRIPTION π¦
okay so listen. a dialog is an interactor that handles input for a dialog box. that's her whole job and she does it beautifully π
the dialog layout? that's not her business. it's specified by a separate interactor that you pass to the dialog constructor. very much "you bring the vibes, she brings the event loop" β¨
and here's the moment β the dialog completes when the value of an associated button state becomes non-zero. no cap. that button state is typically set by one or more buttons over in the component interactor. iconic behavior honestly π
π PUBLIC OPERATIONS π
Dialog(ButtonState*, Interactor*, Alignment = Center)β construct a new dialog with the given button state and interactor. the alignment is used by thePopupoperation. so like, it matters, keep it in mind π«virtual boolean Accept()β set the dialog button state to zero, then loop reading events until the button state's value becomes non-zero. every event gets passed to its target'sHandleoperation. she returnstrueif the value is one, andfalseotherwise. that's the whole ritual, bestie π―οΈvirtual boolean Popup(Event&, boolean placed = true)β insert the dialog into the world associated with the given event. if placed istrue, align the dialog around the event's(x, y)coordinate. otherwise, the dialog is inserted without specifying a position. thenPopupcalls theAcceptoperation and returns its value. she's a whole pipeline fr fr π
π₯ SEE ALSO π₯
Button(3I)Interactor(3I)World(3I)
okay that's the page!! this was InterViews, dated 11 August 1988 β yeah she's vintage and she still ate πβ¨ go build something cute with your popup dialog bestie, mwah ππ
π¦ where this page comes from
- debian bookworm: ivtools-dev 2.0.11d.a1-1+b4
- debian trixie: ivtools-dev 2.0.11d.a1-3+b4
- ubuntu jammy: ivtools-dev 2.0.11d.a1-1build1
- ubuntu noble: ivtools-dev 2.0.11d.a1-3build1
- ubuntu questing: ivtools-dev 2.0.11d.a1-3build7
- ubuntu resolute: ivtools-dev 2.0.11d.a1-3build9
- ubuntu stonking: ivtools-dev 2.1.1+git.2025.07.26.a1-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms