Krita Source Code Documentation
Loading...
Searching...
No Matches
KisFillInterval Class Reference

#include <kis_fill_interval.h>

+ Inheritance diagram for KisFillInterval:

Public Member Functions

void invalidate ()
 
bool isValid () const
 
 KisFillInterval ()
 
 KisFillInterval (int _start, int _end, int _row)
 
bool operator== (const KisFillInterval &rhs) const
 
int width () const
 

Public Attributes

int end
 
int row
 
int start
 

Detailed Description

Definition at line 15 of file kis_fill_interval.h.

Constructor & Destructor Documentation

◆ KisFillInterval() [1/2]

KisFillInterval::KisFillInterval ( )
inline

Definition at line 18 of file kis_fill_interval.h.

19 : start(0),
20 end(-1),
21 row(-1)
22 {
23 }

◆ KisFillInterval() [2/2]

KisFillInterval::KisFillInterval ( int _start,
int _end,
int _row )
inline

Definition at line 25 of file kis_fill_interval.h.

26 : start(_start),
27 end(_end),
28 row(_row)
29 {
30 }

Member Function Documentation

◆ invalidate()

void KisFillInterval::invalidate ( )
inline

Definition at line 32 of file kis_fill_interval.h.

32 {
33 end = start - 1;
34 }

References start.

◆ isValid()

bool KisFillInterval::isValid ( ) const
inline

Definition at line 44 of file kis_fill_interval.h.

44 {
45 return end >= start;
46 }

References start.

◆ operator==()

bool KisFillInterval::operator== ( const KisFillInterval & rhs) const
inline

Definition at line 36 of file kis_fill_interval.h.

36 {
37 return start == rhs.start && end == rhs.end && row == rhs.row;
38 }

References end, row, and start.

◆ width()

int KisFillInterval::width ( ) const
inline

Definition at line 40 of file kis_fill_interval.h.

40 {
41 return end - start + 1;
42 }

References start.

Member Data Documentation

◆ end

int KisFillInterval::end

Definition at line 49 of file kis_fill_interval.h.

◆ row

int KisFillInterval::row

Definition at line 50 of file kis_fill_interval.h.

◆ start

int KisFillInterval::start

Definition at line 48 of file kis_fill_interval.h.


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