LMMS
Loading...
Searching...
No Matches
juce::Grid::AutoPlacement::OccupancyPlane Struct Reference

Classes

struct  Cell
struct  SortableCell

Public Member Functions

 OccupancyPlane (int highestColumnToUse, int highestRowToUse, bool isColumnFirst)
PlacementHelpers::LineArea setCell (Cell cell, int columnSpan, int rowSpan)
PlacementHelpers::LineArea setCell (Cell start, Cell end)
Cell nextAvailable (Cell referenceCell, int columnSpan, int rowSpan)
Cell nextAvailableOnRow (Cell referenceCell, int columnSpan, int rowSpan, int rowNumber)
Cell nextAvailableOnColumn (Cell referenceCell, int columnSpan, int rowSpan, int columnNumber)
void updateMaxCrossDimensionFromAutoPlacementItem (int columnSpan, int rowSpan)

Private Member Functions

void setCell (int column, int row)
bool isOccupied (Cell cell) const
bool isOccupied (Cell cell, int columnSpan, int rowSpan) const
bool isOutOfBounds (Cell cell, int columnSpan, int rowSpan) const
int getHighestCrossDimension () const
Cell advance (Cell cell) const
int getMainDimension (Cell cell) const
int getCrossDimension (Cell cell) const
Cell fromDimensions (int mainDimension, int crossDimension) const

Private Attributes

int highestCrossDimension
bool columnFirst
std::set< SortableCelloccupiedCells

Constructor & Destructor Documentation

◆ OccupancyPlane()

juce::Grid::AutoPlacement::OccupancyPlane::OccupancyPlane ( int highestColumnToUse,
int highestRowToUse,
bool isColumnFirst )
inline

Member Function Documentation

◆ advance()

Cell juce::Grid::AutoPlacement::OccupancyPlane::advance ( Cell cell) const
inlineprivate

◆ fromDimensions()

Cell juce::Grid::AutoPlacement::OccupancyPlane::fromDimensions ( int mainDimension,
int crossDimension ) const
inlineprivate

◆ getCrossDimension()

int juce::Grid::AutoPlacement::OccupancyPlane::getCrossDimension ( Cell cell) const
inlineprivate

◆ getHighestCrossDimension()

int juce::Grid::AutoPlacement::OccupancyPlane::getHighestCrossDimension ( ) const
inlineprivate

◆ getMainDimension()

int juce::Grid::AutoPlacement::OccupancyPlane::getMainDimension ( Cell cell) const
inlineprivate

◆ isOccupied() [1/2]

bool juce::Grid::AutoPlacement::OccupancyPlane::isOccupied ( Cell cell) const
inlineprivate

◆ isOccupied() [2/2]

bool juce::Grid::AutoPlacement::OccupancyPlane::isOccupied ( Cell cell,
int columnSpan,
int rowSpan ) const
inlineprivate

◆ isOutOfBounds()

bool juce::Grid::AutoPlacement::OccupancyPlane::isOutOfBounds ( Cell cell,
int columnSpan,
int rowSpan ) const
inlineprivate

◆ nextAvailable()

Cell juce::Grid::AutoPlacement::OccupancyPlane::nextAvailable ( Cell referenceCell,
int columnSpan,
int rowSpan )
inline

◆ nextAvailableOnColumn()

Cell juce::Grid::AutoPlacement::OccupancyPlane::nextAvailableOnColumn ( Cell referenceCell,
int columnSpan,
int rowSpan,
int columnNumber )
inline

◆ nextAvailableOnRow()

Cell juce::Grid::AutoPlacement::OccupancyPlane::nextAvailableOnRow ( Cell referenceCell,
int columnSpan,
int rowSpan,
int rowNumber )
inline

◆ setCell() [1/3]

PlacementHelpers::LineArea juce::Grid::AutoPlacement::OccupancyPlane::setCell ( Cell cell,
int columnSpan,
int rowSpan )
inline

◆ setCell() [2/3]

PlacementHelpers::LineArea juce::Grid::AutoPlacement::OccupancyPlane::setCell ( Cell start,
Cell end )
inline

◆ setCell() [3/3]

void juce::Grid::AutoPlacement::OccupancyPlane::setCell ( int column,
int row )
inlineprivate

◆ updateMaxCrossDimensionFromAutoPlacementItem()

void juce::Grid::AutoPlacement::OccupancyPlane::updateMaxCrossDimensionFromAutoPlacementItem ( int columnSpan,
int rowSpan )
inline

Member Data Documentation

◆ columnFirst

bool juce::Grid::AutoPlacement::OccupancyPlane::columnFirst
private

◆ highestCrossDimension

int juce::Grid::AutoPlacement::OccupancyPlane::highestCrossDimension
private

◆ occupiedCells

std::set<SortableCell> juce::Grid::AutoPlacement::OccupancyPlane::occupiedCells
private

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