JKQTPlotter trunk/v5.0.0
an extensive Qt5+Qt6 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
Loading...
Searching...
No Matches

struct, describing basic layout and size properties of a key/legend, mostly used as return value of getSize(). More...

#include <jkqtpkey.h>

Public Member Functions

double calcOverallHeight (double ySeparation, double sampleHeight) const
 calculates the width over all columns
 
double calcOverallWidth (double sampleLineLength, double xSeparation, double columnSeparation) const
 calculates the width over all columns
 
int calcRowCount () const
 calculates the number of rows
 
double calcRowHeight (int i, double sampleHeight) const
 calculate the hieght of the i -th column
 
int countItems () const
 calculate the number of items
 
void redistributeIntoOneColumn ()
 put all items into one column
 
void redistributeOverColumns (int cols, bool colMajor=true)
 takes all elements in columns and redistributes them over the given number of columns, items are distributed as equally as possible (last column may have fewer items)
 
void redistributeOverRows (int rows, bool rowMajor=true)
 takes all elements in columns and redistributes them over the given number of rows, items are distributed as equally as possible (last row may have fewer items)
 

Public Attributes

QList< KeyColumnDescriptioncolumns
 list of all columns with items in the key
 

Detailed Description

struct, describing basic layout and size properties of a key/legend, mostly used as return value of getSize().

Member Function Documentation

◆ calcOverallHeight()

double JKQTPBaseKey::KeyLayoutDescription::calcOverallHeight ( double  ySeparation,
double  sampleHeight 
) const

calculates the width over all columns

◆ calcOverallWidth()

double JKQTPBaseKey::KeyLayoutDescription::calcOverallWidth ( double  sampleLineLength,
double  xSeparation,
double  columnSeparation 
) const

calculates the width over all columns

◆ calcRowCount()

int JKQTPBaseKey::KeyLayoutDescription::calcRowCount ( ) const

calculates the number of rows

◆ calcRowHeight()

double JKQTPBaseKey::KeyLayoutDescription::calcRowHeight ( int  i,
double  sampleHeight 
) const

calculate the hieght of the i -th column

◆ countItems()

int JKQTPBaseKey::KeyLayoutDescription::countItems ( ) const

calculate the number of items

◆ redistributeIntoOneColumn()

void JKQTPBaseKey::KeyLayoutDescription::redistributeIntoOneColumn ( )

put all items into one column

◆ redistributeOverColumns()

void JKQTPBaseKey::KeyLayoutDescription::redistributeOverColumns ( int  cols,
bool  colMajor = true 
)

takes all elements in columns and redistributes them over the given number of columns, items are distributed as equally as possible (last column may have fewer items)

◆ redistributeOverRows()

void JKQTPBaseKey::KeyLayoutDescription::redistributeOverRows ( int  rows,
bool  rowMajor = true 
)

takes all elements in columns and redistributes them over the given number of rows, items are distributed as equally as possible (last row may have fewer items)

Member Data Documentation

◆ columns

QList<KeyColumnDescription> JKQTPBaseKey::KeyLayoutDescription::columns

list of all columns with items in the key


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