LMMS
Loading...
Searching...
No Matches
juce::Grid::PlacementHelpers Struct Reference

Classes

struct  LineRange
struct  LineArea
struct  LineInfo
struct  NamedArea

Public Types

enum  { invalid = -999999 }

Static Public Member Functions

static Array< LineInfogetArrayOfLinesFromTracks (const Array< TrackInfo > &tracks)
static int deduceAbsoluteLineNumberFromLineName (GridItem::Property prop, const Array< TrackInfo > &tracks)
static int deduceAbsoluteLineNumber (GridItem::Property prop, const Array< TrackInfo > &tracks)
static int deduceAbsoluteLineNumberFromNamedSpan (int startLineNumber, GridItem::Property propertyWithSpan, const Array< TrackInfo > &tracks)
static int deduceAbsoluteLineNumberBasedOnSpan (int startLineNumber, GridItem::Property propertyWithSpan, const Array< TrackInfo > &tracks)
static LineRange deduceLineRange (GridItem::StartAndEndProperty prop, const Array< TrackInfo > &tracks)
static LineArea deduceLineArea (const GridItem &item, const Grid &grid, const std::map< String, LineArea > &namedAreas)
static Array< StringArrayparseAreasProperty (const StringArray &areasStrings)
static NamedArea findArea (Array< StringArray > &stringsArrays)
static std::map< String, LineAreadeduceNamedAreas (const StringArray &areasStrings)
static float getCoord (int trackNumber, float relativeUnit, Px gap, const Array< TrackInfo > &tracks)
static Rectangle< float > getCellBounds (int columnNumber, int rowNumber, const Tracks &tracks, SizeCalculation calculation, Px columnGap, Px rowGap)
static Rectangle< float > alignCell (Rectangle< float > area, int columnNumber, int rowNumber, int numberOfColumns, int numberOfRows, SizeCalculation calculation, AlignContent alignContent, JustifyContent justifyContent)
static Rectangle< float > getAreaBounds (PlacementHelpers::LineRange columnRange, PlacementHelpers::LineRange rowRange, const Tracks &tracks, SizeCalculation calculation, AlignContent alignContent, JustifyContent justifyContent, Px columnGap, Px rowGap)

Static Public Attributes

static constexpr auto emptyAreaCharacter = "."

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
invalid 

Member Function Documentation

◆ alignCell()

Rectangle< float > juce::Grid::PlacementHelpers::alignCell ( Rectangle< float > area,
int columnNumber,
int rowNumber,
int numberOfColumns,
int numberOfRows,
SizeCalculation calculation,
AlignContent alignContent,
JustifyContent justifyContent )
inlinestatic

◆ deduceAbsoluteLineNumber()

int juce::Grid::PlacementHelpers::deduceAbsoluteLineNumber ( GridItem::Property prop,
const Array< TrackInfo > & tracks )
inlinestatic

◆ deduceAbsoluteLineNumberBasedOnSpan()

int juce::Grid::PlacementHelpers::deduceAbsoluteLineNumberBasedOnSpan ( int startLineNumber,
GridItem::Property propertyWithSpan,
const Array< TrackInfo > & tracks )
inlinestatic

◆ deduceAbsoluteLineNumberFromLineName()

int juce::Grid::PlacementHelpers::deduceAbsoluteLineNumberFromLineName ( GridItem::Property prop,
const Array< TrackInfo > & tracks )
inlinestatic

◆ deduceAbsoluteLineNumberFromNamedSpan()

int juce::Grid::PlacementHelpers::deduceAbsoluteLineNumberFromNamedSpan ( int startLineNumber,
GridItem::Property propertyWithSpan,
const Array< TrackInfo > & tracks )
inlinestatic

◆ deduceLineArea()

LineArea juce::Grid::PlacementHelpers::deduceLineArea ( const GridItem & item,
const Grid & grid,
const std::map< String, LineArea > & namedAreas )
inlinestatic

◆ deduceLineRange()

LineRange juce::Grid::PlacementHelpers::deduceLineRange ( GridItem::StartAndEndProperty prop,
const Array< TrackInfo > & tracks )
inlinestatic

◆ deduceNamedAreas()

std::map< String, LineArea > juce::Grid::PlacementHelpers::deduceNamedAreas ( const StringArray & areasStrings)
inlinestatic

◆ findArea()

NamedArea juce::Grid::PlacementHelpers::findArea ( Array< StringArray > & stringsArrays)
inlinestatic

◆ getAreaBounds()

Rectangle< float > juce::Grid::PlacementHelpers::getAreaBounds ( PlacementHelpers::LineRange columnRange,
PlacementHelpers::LineRange rowRange,
const Tracks & tracks,
SizeCalculation calculation,
AlignContent alignContent,
JustifyContent justifyContent,
Px columnGap,
Px rowGap )
inlinestatic

◆ getArrayOfLinesFromTracks()

Array< LineInfo > juce::Grid::PlacementHelpers::getArrayOfLinesFromTracks ( const Array< TrackInfo > & tracks)
inlinestatic

◆ getCellBounds()

Rectangle< float > juce::Grid::PlacementHelpers::getCellBounds ( int columnNumber,
int rowNumber,
const Tracks & tracks,
SizeCalculation calculation,
Px columnGap,
Px rowGap )
inlinestatic

◆ getCoord()

float juce::Grid::PlacementHelpers::getCoord ( int trackNumber,
float relativeUnit,
Px gap,
const Array< TrackInfo > & tracks )
inlinestatic

◆ parseAreasProperty()

Array< StringArray > juce::Grid::PlacementHelpers::parseAreasProperty ( const StringArray & areasStrings)
inlinestatic

Member Data Documentation

◆ emptyAreaCharacter

auto juce::Grid::PlacementHelpers::emptyAreaCharacter = "."
staticconstexpr

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