QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskBoxMetrics Class Reference

Detailed Description

Definition at line 16 of file QskBoxMetrics.h.

Classes

struct  Corner
 

Public Attributes

const QRectF outerRect
 
QRectF innerRect
 
struct QskBoxMetrics::Corner corners [4]
 
bool hasBorder = false
 
bool isBorderRegular = false
 
bool isOutsideRounded = false
 
bool isOutsideSymmetric = false
 
bool isInsideRounded = false
 
Qt::Orientations stepSymmetries
 
Qt::Orientation preferredOrientation
 

Public Member Functions

 QskBoxMetrics (const QRectF &, const QskBoxShapeMetrics &, const QskBoxBorderMetrics &)
 
int outerStepCount () const
 
int innerStepCount () const
 
int innerStepCount (int corner1, int corner2) const
 

Constructor & Destructor Documentation

◆ QskBoxMetrics()

QskBoxMetrics::QskBoxMetrics ( const QRectF &  rect,
const QskBoxShapeMetrics shape,
const QskBoxBorderMetrics border 
)

Definition at line 12 of file QskBoxMetrics.cpp.

Member Function Documentation

◆ innerStepCount() [1/2]

int QskBoxMetrics::innerStepCount ( ) const

Definition at line 195 of file QskBoxMetrics.cpp.

◆ innerStepCount() [2/2]

int QskBoxMetrics::innerStepCount ( int  corner1,
int  corner2 
) const
inline

Definition at line 28 of file QskBoxMetrics.h.

◆ outerStepCount()

int QskBoxMetrics::outerStepCount ( ) const

Definition at line 189 of file QskBoxMetrics.cpp.

Member Data Documentation

◆ hasBorder

bool QskBoxMetrics::hasBorder = false

Definition at line 63 of file QskBoxMetrics.h.

◆ innerRect

QRectF QskBoxMetrics::innerRect

Definition at line 23 of file QskBoxMetrics.h.

◆ isBorderRegular

bool QskBoxMetrics::isBorderRegular = false

Definition at line 66 of file QskBoxMetrics.h.

◆ isInsideRounded

bool QskBoxMetrics::isInsideRounded = false

Definition at line 82 of file QskBoxMetrics.h.

◆ isOutsideRounded

bool QskBoxMetrics::isOutsideRounded = false

Definition at line 69 of file QskBoxMetrics.h.

◆ isOutsideSymmetric

bool QskBoxMetrics::isOutsideSymmetric = false

Definition at line 74 of file QskBoxMetrics.h.

◆ outerRect

const QRectF QskBoxMetrics::outerRect

Definition at line 22 of file QskBoxMetrics.h.

◆ preferredOrientation

Qt::Orientation QskBoxMetrics::preferredOrientation

Definition at line 93 of file QskBoxMetrics.h.

◆ stepSymmetries

Qt::Orientations QskBoxMetrics::stepSymmetries

Definition at line 90 of file QskBoxMetrics.h.