QtCraft API C++ classes QML types Handbook

QcPathOpening Struct

A free stretch of a cell along one horizontal axis, in block units from the cell's corner. More...

Header: #include <server/pathing/QcPathCells.h>

Public Functions

float middle() const
float width() const
QcPathOpening within(QcPathOpening other) const

Public Variables

float from
float to

Detailed Description

Member Function Documentation

float QcPathOpening::middle() const

Returns its middle.

float QcPathOpening::width() const

Returns its width.

QcPathOpening QcPathOpening::within(QcPathOpening other) const

Returns the stretch free in both this and other: where they do not overlap, the empty stretch between their inner edges (its middle lies as far from both panels as can be).

Member Variable Documentation

float QcPathOpening::from

Where it starts.

float QcPathOpening::to

Where it ends.