Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QClipData Class Reference

#include <qpaintengine_raster_p.h>

+ Collaboration diagram for QClipData:

Classes

struct  ClipLine
 

Public Member Functions

 QClipData (int height)
 
 ~QClipData ()
 
void initialize ()
 
ClipLineclipLines ()
 
QT_FT_Spanspans ()
 
void appendSpan (int x, int length, int y, int coverage)
 
void appendSpans (const QT_FT_Span *s, int num)
 
void setClipRect (const QRect &rect)
 
void setClipRegion (const QRegion &region)
 
void fixup ()
 

Public Attributes

int clipSpanHeight
 
struct QClipData::ClipLinem_clipLines
 
int allocated
 
int count
 
QT_FT_Spanm_spans
 
int xmin
 
int xmax
 
int ymin
 
int ymax
 
QRect clipRect
 
QRegion clipRegion
 
uint enabled: 1
 
uint hasRectClip: 1
 
uint hasRegionClip: 1
 

Detailed Description

Definition at line 310 of file qpaintengine_raster_p.h.

Constructor & Destructor Documentation

◆ QClipData()

QClipData::QClipData ( int height)

◆ ~QClipData()

QClipData::~QClipData ( )

Definition at line 3791 of file qpaintengine_raster.cpp.

References m_clipLines, and m_spans.

Member Function Documentation

◆ appendSpan()

void QClipData::appendSpan ( int x,
int length,
int y,
int coverage )
inline

◆ appendSpans()

void QClipData::appendSpans ( const QT_FT_Span * s,
int num )
inline

Definition at line 373 of file qpaintengine_raster_p.h.

References allocated, m_spans, and Q_ASSERT.

Referenced by qt_span_clip().

+ Here is the caller graph for this function:

◆ clipLines()

ClipLine * QClipData::clipLines ( )
inline

Definition at line 323 of file qpaintengine_raster_p.h.

References initialize(), and m_clipLines.

+ Here is the call graph for this function:

◆ fixup()

void QClipData::fixup ( )

Definition at line 3910 of file qpaintengine_raster.cpp.

References clipRect, count, hasRectClip, i, QT_FT_Span_::len, m_clipLines, m_spans, Q_ASSERT, QRect::setRect(), QT_FT_Span_::x, xmax, xmin, QT_FT_Span_::y, ymax, and ymin.

Referenced by QRasterPaintEngine::clip().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initialize()

void QClipData::initialize ( )

Definition at line 3799 of file qpaintengine_raster.cpp.

References allocated, QRegion::begin(), clipRect, clipRegion, clipSpanHeight, count, hasRectClip, hasRegionClip, m_clipLines, m_spans, Q_ASSERT, Q_CHECK_PTR(), qMax(), QT_CATCH, QT_RETHROW, QT_TRY, QRegion::rectCount(), QRect::width(), QT_FT_Span_::x, xmin, ymax, and ymin.

Referenced by QRasterPaintEngine::clip(), clipLines(), qt_span_clip(), and spans().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setClipRect()

void QClipData::setClipRect ( const QRect & rect)

Definition at line 3963 of file qpaintengine_raster.cpp.

References clipRect, clipSpanHeight, hasRectClip, hasRegionClip, m_spans, qMin(), rect, QRect::x(), xmax, xmin, ymax, and ymin.

Referenced by setClipRegion(), and QRasterPaintEnginePrivate::systemStateChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setClipRegion()

void QClipData::setClipRegion ( const QRegion & region)

Definition at line 3989 of file qpaintengine_raster.cpp.

References QRegion::boundingRect(), clipRegion, hasRectClip, hasRegionClip, m_spans, rect, QRegion::rectCount(), setClipRect(), QRect::x(), xmax, xmin, ymax, and ymin.

Referenced by QRasterPaintEngine::clip(), and QRasterPaintEnginePrivate::systemStateChanged().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ spans()

QT_FT_Span * QClipData::spans ( )
inline

Definition at line 329 of file qpaintengine_raster_p.h.

References initialize(), and m_spans.

+ Here is the call graph for this function:

Member Data Documentation

◆ allocated

int QClipData::allocated

Definition at line 335 of file qpaintengine_raster_p.h.

Referenced by QClipData(), appendSpan(), appendSpans(), initialize(), and qt_span_clip().

◆ clipRect

◆ clipRegion

◆ clipSpanHeight

int QClipData::clipSpanHeight

Definition at line 315 of file qpaintengine_raster_p.h.

Referenced by QClipData(), initialize(), and setClipRect().

◆ count

int QClipData::count

◆ enabled

uint QClipData::enabled

Definition at line 343 of file qpaintengine_raster_p.h.

◆ hasRectClip

◆ hasRegionClip

◆ m_clipLines

◆ m_spans

◆ xmax

int QClipData::xmax

Definition at line 338 of file qpaintengine_raster_p.h.

Referenced by QClipData(), fixup(), setClipRect(), and setClipRegion().

◆ xmin

int QClipData::xmin

Definition at line 338 of file qpaintengine_raster_p.h.

Referenced by QClipData(), fixup(), initialize(), setClipRect(), and setClipRegion().

◆ ymax

int QClipData::ymax

Definition at line 338 of file qpaintengine_raster_p.h.

Referenced by QClipData(), fixup(), initialize(), setClipRect(), and setClipRegion().

◆ ymin

int QClipData::ymin

Definition at line 338 of file qpaintengine_raster_p.h.

Referenced by QClipData(), fixup(), initialize(), setClipRect(), and setClipRegion().


The documentation for this class was generated from the following files: