DTCREATEEDITOR(3)

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

okay bestie, welcome to DtCreateEditor(library call) β€” the library-call manual page that's gonna walk you through creating a new DtEditor widget πŸ’…βœ¨

πŸ’– NAME πŸ’–

DtCreateEditor β€” create a new instance of a DtEditor widget. that's the whole assignment, and honestly? iconic 🫢

✨ SYNOPSIS ✨

#include &<Dt/Editor.h>
Widget DtCreateEditor(
Widget parent,
String name,
ArgList arglist,
Cardinal argcount);

πŸŽ€ DESCRIPTION πŸŽ€

okay so here's the tea: the DtEditorCreate function creates an instance of a DtEditor widget and returns the associated widget ID. yep, DtEditorCreate is the name printed in DESCRIPTION β€” we keep it exactly as the page says, no cap πŸ˜­πŸ’…

  • parent β€” specifies the parent widget ID. aka who's adopting this widget baby 🌱
  • name β€” specifies the name of the created widget. name it cute, name it right πŸŽ€
  • arglist β€” specifies the argument list. the whole lineup of args, slay πŸ¦‹
  • argcount β€” specifies the number of attribute and value pairs in the argument list (arglist). count 'em, don't guess 'em πŸ”₯

For a complete definition of the DtEditor widget and its associated resources, see DtEditor(3). go read the lore, bestie πŸ“š

πŸ¦‹ RETURN VALUE πŸ¦‹

Upon successful completion, the DtEditorCreate function returns the DtEditor widget ID; otherwise, it returns NULL. so: widget ID when it slays, NULL when it doesn't πŸ˜­πŸ’œ

🌈 SEE ALSO 🌈


and that's the page, bestie πŸŽ€ footer check: source/version is DtCreateEditor(library call), and the date slot isn't separately printed in the footer text β€” so the whole cute sign-off is literally DtCreateEditor(library call), signed with maximum widget-creation energy πŸ’œβœ¨

πŸ“¦ where this page comes from