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 402 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 408 of file attribute.h.

Member Data Documentation

◆ attribute

Attribute::Ptr KTextEditor::AttributeBlock::attribute

The attribute for the current range.

Definition at line 428 of file attribute.h.

◆ length

int KTextEditor::AttributeBlock::length

The number of columns this attribute spans.

Definition at line 423 of file attribute.h.

◆ start

int KTextEditor::AttributeBlock::start

The column this attribute starts at.

Definition at line 418 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-2023 The KDE developers.
Generated on Wed Sep 27 2023 03:48:57 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.