DTEDITORGOTOLINE(3)

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

🌸 NAME 🌸

okay bestie, this is the library call manual page for DtEditorGoToLine β€” the function whose whole gig is moving the insert cursor for a DtEditor widget to a specified line. main character cursor behavior, honestly. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

the summoning ritual looks like this, exactly:

#include &<Dt/Editor.h>
void DtEditorGoToLine(
Widget widget,
int lineNumber);

✨ DESCRIPTION ✨

DtEditorGoToLine moves the insert cursor for the DtEditor widget to the beginning of the line specified by the lineNumber argument. cursor goes to the start of the line, periodt. You can move the cursor to the last line by specifying DtEDITOR_LAST_LINE as the line number. If the line is not currently on-screen, the contents for the DtEditor widget are scrolled to display the new insertion position. scroll scroll scroll to show off the new spot πŸ’«

some lineNumber lore: the lineNumber argument is the number of the line in the file, counting from 1. If the lineNumber argument is less than 1, the insert cursor is placed at the beginning of the first line. If the argument is greater than the total number of lines, the cursor is placed at the last line of text. the range behavior is literally doing its thing 🫢

The insert cursor can be moved to a specific character position with DtEditorSetInsertionPosition(3). The DtNtopCharacter resource can be used to control which line is displayed at the top of the DtEditor widget. iykyk, resource girlies πŸŽ€

argument tea:

  • widget β€” specifies the DtEditor widget ID.
  • lineNumber β€” specifies the line number within the DtEditor widget.

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


πŸŽ€ RETURN VALUE πŸŽ€

The DtEditorGoToLine function returns no value. literally none β€” no value, no extra return gift, just cursor movement and vibes. πŸ’€


πŸ”₯ SEE ALSO πŸ”₯

and that's the whole page, bestie 🫢 β€” this was the DtEditorGoToLine library call manual page. The original footer had no extra version/date deets, just the DtEditorGoToLine library call stamp, so here's your cute sign-off instead: stay scrolling, stay iconic. πŸ’–βœ¨

πŸ“¦ where this page comes from