DTEDITORCHECKFORUNSAVEDCHANGES(3)
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 π
Dt/Editor.h-DtEditor(5),DtEditor(3),DtEditorGetContents(3),DtEditorSaveContentsToFile(3).
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
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms