Audacity  2.2.0
FlowPacker Class Reference

Packs rectangular boxes into a rectangle, using simple first fit. More...

#include <Theme.h>

Public Member Functions

 FlowPacker ()
 
 ~FlowPacker ()
 
void Init (int width)
 
void GetNextPosition (int xSize, int ySize)
 
void SetNewGroup (int iGroupSize)
 
void SetColourGroup ()
 
wxRect Rect ()
 
wxRect RectInner ()
 
void RectMid (int &x, int &y)
 

Public Attributes

int mFlags
 
int mxPos
 
int myPos
 
int myHeight
 
int mBorderWidth
 

Private Attributes

int iImageGroupSize
 
int iImageGroupIndex
 
int mOldFlags
 
int myPosBase
 
int mxWidth
 
int mxCacheWidth
 
int mComponentWidth
 
int mComponentHeight
 

Detailed Description

Packs rectangular boxes into a rectangle, using simple first fit.

This class is currently used by Theme to pack its images into the image cache. Perhaps someday we will improve FlowPacker and make it more flexible, and use it for toolbar and window layouts too.

Constructor & Destructor Documentation

FlowPacker::FlowPacker ( )
inline
FlowPacker::~FlowPacker ( )
inline

Member Function Documentation

void FlowPacker::GetNextPosition ( int  xSize,
int  ySize 
)
void FlowPacker::Init ( int  width)
wxRect FlowPacker::Rect ( )
wxRect FlowPacker::RectInner ( )
void FlowPacker::RectMid ( int &  x,
int &  y 
)
void FlowPacker::SetColourGroup ( )
void FlowPacker::SetNewGroup ( int  iGroupSize)

Member Data Documentation

int FlowPacker::iImageGroupIndex
private
int FlowPacker::iImageGroupSize
private
int FlowPacker::mComponentHeight
private
int FlowPacker::mComponentWidth
private
int FlowPacker::mOldFlags
private
int FlowPacker::mxCacheWidth
private
int FlowPacker::mxPos
int FlowPacker::mxWidth
private
int FlowPacker::myHeight
int FlowPacker::myPos
int FlowPacker::myPosBase
private

The documentation for this class was generated from the following files: