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 306 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 312 of file attribute.h.

Member Data Documentation

◆ attribute

Attribute::Ptr KTextEditor::AttributeBlock::attribute

The attribute for the current range.

Definition at line 332 of file attribute.h.

◆ length

int KTextEditor::AttributeBlock::length

The number of columns this attribute spans.

Definition at line 327 of file attribute.h.

◆ start

int KTextEditor::AttributeBlock::start

The column this attribute starts at.

Definition at line 322 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-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:15:44 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.