DTEDITORINVOKESPELLDIALOG(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸ’– NAME πŸ’–

okay so bestie, this is DtEditorInvokeSpellDialog, a library call that displays the DtEditor widget dialog for checking text for spelling errors. It’s giving spell-check main character energy, no cap. ✨

πŸŽ€ SYNOPSIS πŸŽ€

#include &<Dt/Editor.h>
DtEditorErrorCode DtEditorInvokeSpellDialog(
Widget widget);

πŸ¦‹ DESCRIPTION πŸ¦‹

The DtEditorInvokeSpellDialog function pops open the Spell dialog for the DtEditor widget. This dialog shows the list of unrecognized or misspelled words from the widget’s text. Users can search for and replace misspelled words with the Spell dialog. The list of misspelled words is automatically generated by filtering the text for the DtEditor widget through the filter specified by the DtNspellFilter resource when DtEditorInvokeSpellDialog is called. For a complete description of the Spell dialog and the DtNspellFilter resource, see DtEditor(3).

The widget argument specifies the DtEditor widget ID. That’s the whole vibe. 🫢

For a complete definition of the DtEditor widget and its associated resources, see DtEditor(3).

πŸ”₯ RETURN VALUE πŸ”₯

Upon successful completion, the DtEditorInvokeSpellDialog function returns DtEDITOR_NO_ERRORS if the widget successfully executed the spell filter; otherwise, it returns one of the following:

  • DtEDITOR_SPELL_FILTER_FAILED β€” if it cannot successfully execute the filter specified by the DtNspellfilter resource. (Yep, that’s the exact spelling right there. πŸ’…)
  • DtEDITOR_NO_TMP_FILE β€” if it cannot create a temporary file in the directory returned by tmpnam(3S).

🌈 SEE ALSO 🌈

Dt/Editor.h - DtEditor(5), DtEditor(3), tmpnam(3S).

And that’s the whole page, bestie β€” signing off from the footer, where the source/version vibe is literally just a library call for DtEditorInvokeSpellDialog, and there’s no date printed at all, so I’m not inventing one. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from