Blame view

emulateur/epsilon-nofrendo/escher/src/solid_text_area.cpp 477 Bytes
6663b6c9   adorian   projet complet av...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  #include <escher/solid_text_area.h>
  
  void SolidTextArea::ContentView::clearRect(KDContext * ctx, KDRect rect) const {
    ctx->fillRect(rect, m_backgroundColor);
  }
  
  void SolidTextArea::ContentView::drawLine(KDContext * ctx, int line, const char * text, size_t length, int fromColumn, int toColumn) const {
    drawStringAt(
      ctx,
      line,
      fromColumn,
      text + fromColumn,
      min(length - fromColumn, toColumn - fromColumn),
      m_textColor,
      m_backgroundColor
    );
  }