Workspace 6.21.5
Public Member Functions | Public Attributes | List of all members
GhostLine Class Reference

#include <Tools/Widgets/highlightingghosttextedit.h>

Public Member Functions

 GhostLine ()
 
 GhostLine (int referenceLineNumber, int offset)
 

Public Attributes

int offset_ {0}
 
int referenceLineNumber_ {-1}
 

Detailed Description

Allows you to add grey blocks without line numbers to signify missing code. A "block" in the text editor corresponds to a line in the original text Note: a block in the text editor may correspond to a number of "lines" which varies according to the widget width and the line-wrapping setting A ghost section corresponds to one or more lines in the original text (eg maybe 10 lines were removed). In this case there will be 10 GhostBlock corresponding to it.

Constructor & Destructor Documentation

◆ GhostLine() [1/2]

GhostLine ( )
inline

◆ GhostLine() [2/2]

GhostLine ( int  referenceLineNumber,
int  offset 
)
inline

Member Data Documentation

◆ offset_

int offset_ {0}

◆ referenceLineNumber_

int referenceLineNumber_ {-1}