Krita Source Code Documentation
Loading...
Searching...
No Matches
detail::VerticalMergePolicy Struct Reference

Static Public Member Functions

static int col (const QRect &rc)
 
static bool elementIsLess (const QRect &lhs, const QRect &rhs)
 
static int nextCol (const QRect &rc)
 
static int rowHeight (const QRect &rc)
 
static bool rowIsLess (const QRect &lhs, const QRect &rhs)
 

Detailed Description

Definition at line 32 of file KisRegion.cpp.

Member Function Documentation

◆ col()

static int detail::VerticalMergePolicy::col ( const QRect & rc)
inlinestatic

Definition at line 34 of file KisRegion.cpp.

34 {
35 return rc.y();
36 }

◆ elementIsLess()

static bool detail::VerticalMergePolicy::elementIsLess ( const QRect & lhs,
const QRect & rhs )
inlinestatic

Definition at line 46 of file KisRegion.cpp.

46 {
47 return lhs.x() < rhs.x() || (lhs.x() == rhs.x() && lhs.y() < rhs.y());
48 }

◆ nextCol()

static int detail::VerticalMergePolicy::nextCol ( const QRect & rc)
inlinestatic

Definition at line 37 of file KisRegion.cpp.

37 {
38 return rc.y() + rc.height();
39 }

◆ rowHeight()

static int detail::VerticalMergePolicy::rowHeight ( const QRect & rc)
inlinestatic

Definition at line 40 of file KisRegion.cpp.

40 {
41 return rc.width();
42 }

◆ rowIsLess()

static bool detail::VerticalMergePolicy::rowIsLess ( const QRect & lhs,
const QRect & rhs )
inlinestatic

Definition at line 43 of file KisRegion.cpp.

43 {
44 return lhs.x() < rhs.x();
45 }

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