JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::Grid::TrackInfo Struct Referencefinal

Represents a track. More...

#include <juce_Grid.h>

Collaboration diagram for juce::Grid::TrackInfo:

Public Member Functions

 TrackInfo () noexcept
 Creates a track with auto dimension. More...
 
 TrackInfo (const String &startLineNameToUse, Fr fractionOfFreeSpace) noexcept
 
 TrackInfo (const String &startLineNameToUse, Fr fractionOfFreeSpace, const String &endLineNameToUse) noexcept
 
 TrackInfo (const String &startLineNameToUse, Px sizeInPixels) noexcept
 
 TrackInfo (const String &startLineNameToUse, Px sizeInPixels, const String &endLineNameToUse) noexcept
 
 TrackInfo (Fr fractionOfFreeSpace) noexcept
 
 TrackInfo (Fr fractionOfFreeSpace, const String &endLineNameToUse) noexcept
 
 TrackInfo (Px sizeInPixels) noexcept
 
 TrackInfo (Px sizeInPixels, const String &endLineNameToUse) noexcept
 
const StringgetEndLineName () const noexcept
 
float getSize () const noexcept
 Get the track's size - which might mean an absolute pixels value or a fractional ratio. More...
 
const StringgetStartLineName () const noexcept
 
bool isAuto () const noexcept
 
bool isFractional () const noexcept
 
bool isPixels () const noexcept
 

Private Member Functions

float getAbsoluteSize (float relativeFractionalUnit) const
 

Private Attributes

String endLineName
 
bool hasKeyword = false
 
bool isFraction = false
 
float size = 0
 
String startLineName
 

Friends

class Grid
 

Detailed Description

Represents a track.

Constructor & Destructor Documentation

◆ TrackInfo() [1/9]

juce::Grid::TrackInfo::TrackInfo ( )
noexcept

Creates a track with auto dimension.

◆ TrackInfo() [2/9]

juce::Grid::TrackInfo::TrackInfo ( Px  sizeInPixels)
noexcept

◆ TrackInfo() [3/9]

juce::Grid::TrackInfo::TrackInfo ( Fr  fractionOfFreeSpace)
noexcept

◆ TrackInfo() [4/9]

juce::Grid::TrackInfo::TrackInfo ( Px  sizeInPixels,
const String endLineNameToUse 
)
noexcept

◆ TrackInfo() [5/9]

juce::Grid::TrackInfo::TrackInfo ( Fr  fractionOfFreeSpace,
const String endLineNameToUse 
)
noexcept

◆ TrackInfo() [6/9]

juce::Grid::TrackInfo::TrackInfo ( const String startLineNameToUse,
Px  sizeInPixels 
)
noexcept

◆ TrackInfo() [7/9]

juce::Grid::TrackInfo::TrackInfo ( const String startLineNameToUse,
Fr  fractionOfFreeSpace 
)
noexcept

◆ TrackInfo() [8/9]

juce::Grid::TrackInfo::TrackInfo ( const String startLineNameToUse,
Px  sizeInPixels,
const String endLineNameToUse 
)
noexcept

◆ TrackInfo() [9/9]

juce::Grid::TrackInfo::TrackInfo ( const String startLineNameToUse,
Fr  fractionOfFreeSpace,
const String endLineNameToUse 
)
noexcept

Member Function Documentation

◆ getAbsoluteSize()

float juce::Grid::TrackInfo::getAbsoluteSize ( float  relativeFractionalUnit) const
private

◆ getEndLineName()

const String& juce::Grid::TrackInfo::getEndLineName ( ) const
inlinenoexcept

◆ getSize()

float juce::Grid::TrackInfo::getSize ( ) const
inlinenoexcept

Get the track's size - which might mean an absolute pixels value or a fractional ratio.

References juce::gl::size.

◆ getStartLineName()

const String& juce::Grid::TrackInfo::getStartLineName ( ) const
inlinenoexcept

◆ isAuto()

bool juce::Grid::TrackInfo::isAuto ( ) const
inlinenoexcept

◆ isFractional()

bool juce::Grid::TrackInfo::isFractional ( ) const
inlinenoexcept

◆ isPixels()

bool juce::Grid::TrackInfo::isPixels ( ) const
inlinenoexcept

Friends And Related Function Documentation

◆ Grid

friend class Grid
friend

Member Data Documentation

◆ endLineName

String juce::Grid::TrackInfo::endLineName
private

◆ hasKeyword

bool juce::Grid::TrackInfo::hasKeyword = false
private

◆ isFraction

bool juce::Grid::TrackInfo::isFraction = false
private

◆ size

float juce::Grid::TrackInfo::size = 0
private

◆ startLineName

String juce::Grid::TrackInfo::startLineName
private

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