DTEDITORUNDOEDIT(3)

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

πŸ’– NAME πŸ’–

okay so welcome to the DtEditorUndoEdit library call page, bestie πŸ’… β€” this is the one where you hit undo on a DtEditor widget and the text goes back to before your last edit. Iconic, honestly.

  • DtEditorUndoEdit β€” undo the last edit made to the text in a DtEditor widget.

✨ SYNOPSIS ✨

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

No cap, that's the whole signature 🫢.

πŸ¦‹ DESCRIPTION πŸ¦‹

The DtEditorUndoEdit function undoes the last change (deletion or insertion) made to the text in a DtEditor widget. A change consists of either a set of consecutive insertions, or a set of consecutive deletions followed by up to one set of consecutive insertions.

Let's get into what consecutive means here, because she's specific πŸ‘‘:

  • An insertion is consecutive if there have been no intervening deletions, and it is continuing forward from the same point.
  • A deletion is consecutive if there have been no intervening insertions, and its start or end position is coincidental with the last deletion (that is, the deletion is continuing from the same point, either forward or backward).
Undoing an edit once restores the original text. Undoing an edit twice restores the last change. That's the whole timeline situation 😭✨.

The widget argument specifies the DtEditor widget ID.

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

πŸŽ€ RETURN VALUE πŸŽ€

Upon successful completion, the DtEditorUndoEdit function returns True; otherwise, if there is no pending undo it returns False.

🌈 SEE ALSO 🌈


okay bye bestie 🫢 β€” source/version corner: the library call section; date: not listed on the footer, so she's timeless πŸ’…πŸŒΈ.

πŸ“¦ where this page comes from