KTextEditor::AttributeBlock

Search for usage in LXR

KTextEditor::AttributeBlock Class Reference

#include <attribute.h>

Public Member Functions

 AttributeBlock (int _start, int _length, const Attribute::Ptr &_attribute)
 

Public Attributes

Attribute::Ptr attribute
 
int length
 
int start
 

Detailed Description

Attributes of a part of a line.

An AttributeBlock represents an Attribute spanning the interval [start, start + length) of a given line. An AttributeBlock is obtained by calling KTextEditor::View::lineAttributes().

See also
KTextEditor::View::lineAttributes()

Definition at line 398 of file attribute.h.

Constructor & Destructor Documentation

◆ AttributeBlock()

KTextEditor::AttributeBlock::AttributeBlock ( int  _start,
int  _length,
const Attribute::Ptr _attribute 
)
inline

Constructor of AttributeBlock.

Definition at line 404 of file attribute.h.

Member Data Documentation

◆ attribute

Attribute::Ptr KTextEditor::AttributeBlock::attribute

The attribute for the current range.

Definition at line 424 of file attribute.h.

◆ length

int KTextEditor::AttributeBlock::length

The number of columns this attribute spans.

Definition at line 419 of file attribute.h.

◆ start

int KTextEditor::AttributeBlock::start

The column this attribute starts at.

Definition at line 414 of file attribute.h.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Jun 26 2022 03:49:55 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.