dhaumann added a comment.

  Reading this API, I still have some general thoughts:
  This is the first time we expose the concept of "visible lines". So far, this 
only exists internally in katetextfolding.h/cpp. By itself, this is fine, but 
given we do not expose folding information so far, I think the API is not 
complete.
  If we already provide infos about visible first / last visible line in a 
view, the complete API should also contain functions like isLineVisible(int 
line). But here, we have a problem, since the fistVisibleLine() and 
lastVisibleLine() are not the text folding lines, instead, its the visually 
visible drawn line on screen. Here, the term "visible" is used in two different 
contexts: once for screen visibility, and once for folding information. 
Internally, KTextEditor uses terms viewLine or displayedLine for this. Maybe 
displayedLine is the best here?
  
  Any comments? Are we lacking more API to make it feel complete?

REPOSITORY
  R39 KTextEditor

REVISION DETAIL
  https://phabricator.kde.org/D4947

To: jsalatas, #frameworks, tfry, mwolff, #ktexteditor
Cc: cullmann, dhaumann, anthonyfieroni, mwolff, kwrite-devel

Reply via email to