LMMS
Loading...
Searching...
No Matches
juce::Grid::TrackInfo Struct Referencefinal

#include <juce_Grid.h>

Public Member Functions

 TrackInfo () noexcept
 TrackInfo (Px sizeInPixels) noexcept
 TrackInfo (Fr fractionOfFreeSpace) noexcept
 TrackInfo (Px sizeInPixels, const String &endLineNameToUse) noexcept
 TrackInfo (Fr fractionOfFreeSpace, const String &endLineNameToUse) noexcept
 TrackInfo (const String &startLineNameToUse, Px sizeInPixels) noexcept
 TrackInfo (const String &startLineNameToUse, Fr fractionOfFreeSpace) noexcept
 TrackInfo (const String &startLineNameToUse, Px sizeInPixels, const String &endLineNameToUse) noexcept
 TrackInfo (const String &startLineNameToUse, Fr fractionOfFreeSpace, const String &endLineNameToUse) noexcept
bool isAuto () const noexcept
bool isFractional () const noexcept
bool isPixels () const noexcept
const String & getStartLineName () const noexcept
const String & getEndLineName () const noexcept
float getSize () const noexcept

Private Member Functions

float getAbsoluteSize (float relativeFractionalUnit) const

Private Attributes

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

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.

◆ 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

◆ 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 files: