DTEDITORCHECKFORUNSAVEDCHANGES(3)

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

okay bestie, this is the library call page for DtEditorCheckForUnsavedChanges, and it is literally here to answer one question: did the text get edited? πŸ‘€βœ¨


πŸ’– NAME πŸ’–

DtEditorCheckForUnsavedChanges β€” report whether text has been edited. πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

       #include &<Dt/Editor.h>
       Boolean DtEditorCheckForUnsavedChanges(
       Widget widget);

🌸 DESCRIPTION 🌸

okay so the DtEditorCheckForUnsavedChanges function reports whether the text contained in the edit window of a DtEditor widget has been modified since the last call to DtEditorGetContents(3) or DtEditorSaveContentsToFile(3) β€” and yes, that includes inserting, deleting or moving text with the keyboard or mouse. keyboard girlies and mouse besties both count πŸ‘€βŒ¨οΈπŸ–±οΈπŸ’…

if you wanna retrieve the text without affecting whether DtEditorCheckForUnsavedChanges reports that all changes have been saved, the page sends you over to DtEditorGetContents(3) and DtEditorSaveContentsToFile(3). iykyk 🫢

the widget argument specifies the DtEditor widget ID. no cap. πŸͺͺ✨

for a complete definition of the DtEditor widget and its associated resources, see DtEditor(3). slay. πŸ‘‘

✨ RETURN VALUE ✨

upon successful completion, the DtEditorCheckForUnsavedChanges function returns True if changes have been made to the contents of the DtEditor widget since the last call to DtEditorGetContents(3) or DtEditorSaveContentsToFile(3); otherwise, it returns False. periodt. πŸ’–

πŸ’œ SEE ALSO πŸ’œ


okay that's the whole library call page, bestie. cute sign-off: the footer energy here is just the library call tag for DtEditorCheckForUnsavedChanges β€” no extra version/date tea on this copy. mwah πŸ’‹πŸ«Ά

πŸ“¦ where this page comes from