Changeset View
Changeset View
Standalone View
Standalone View
src/buffer/katetextline.h
Show First 20 Lines • Show All 406 Lines • ▼ Show 20 Line(s) | 45 | public: | |||
---|---|---|---|---|---|
407 | 407 | | |||
408 | /** | 408 | /** | ||
409 | * Gets the attribute at the given position | 409 | * Gets the attribute at the given position | ||
410 | * use KRenderer::attributes to get the KTextAttribute for this. | 410 | * use KRenderer::attributes to get the KTextAttribute for this. | ||
411 | * | 411 | * | ||
412 | * @param pos position of attribute requested | 412 | * @param pos position of attribute requested | ||
413 | * @return value of attribute | 413 | * @return value of attribute | ||
414 | */ | 414 | */ | ||
415 | short attribute(int pos) const | 415 | short attribute(int pos) const; | ||
416 | { | | |||
417 | for (int i = 0; i < m_attributesList.size(); ++i) { | | |||
418 | if (pos >= m_attributesList[i].offset && pos < (m_attributesList[i].offset + m_attributesList[i].length)) { | | |||
419 | return m_attributesList[i].attributeValue; | | |||
420 | } | | |||
421 | | ||||
422 | if (pos < m_attributesList[i].offset) { | | |||
423 | break; | | |||
424 | } | | |||
425 | } | | |||
426 | | ||||
427 | return 0; | | |||
428 | } | | |||
429 | 416 | | |||
430 | /** | 417 | /** | ||
431 | * set hl continue flag | 418 | * set hl continue flag | ||
432 | * @param cont continue flag? | 419 | * @param cont continue flag? | ||
433 | */ | 420 | */ | ||
434 | void setHlLineContinue(bool cont) | 421 | void setHlLineContinue(bool cont) | ||
435 | { | 422 | { | ||
436 | if (cont) { | 423 | if (cont) { | ||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |