Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Layout Class Reference

#include <Layout.h>

List of all members.

Public Member Functions

 Layout ()
virtual ~Layout ()
virtual bool DoLayout (ActiveWindow *panel)
virtual void Clear ()
virtual void AddCol (DWORD min_width, float col_factor)
virtual void AddRow (DWORD min_height, float row_factor)
virtual void SetConstraints (const std::vector< DWORD > &min_x, const std::vector< DWORD > &min_y, const std::vector< float > &weight_x, const std::vector< float > &weight_y)
virtual void SetConstraints (const std::vector< float > &min_x, const std::vector< float > &min_y, const std::vector< float > &weight_x, const std::vector< float > &weight_y)
virtual void SetConstraints (int ncols, int nrows, const int *min_x, const int *min_y, const float *weight_x, const float *weight_y)

Static Public Member Functions

static const char * TYPENAME ()

Protected Member Functions

virtual void ScaleWeights ()
virtual void CalcCells (DWORD w, DWORD h, std::vector< DWORD > &cell_x, std::vector< DWORD > &cell_y)

Protected Attributes

std::vector< DWORD > cols
std::vector< DWORD > rows
std::vector< float > col_weights
std::vector< float > row_weights

Detailed Description

Definition at line 22 of file Layout.h.


Constructor & Destructor Documentation

Layout::Layout ( )

Definition at line 20 of file Layout.cpp.

Layout::~Layout ( )
virtual

Definition at line 23 of file Layout.cpp.


Member Function Documentation

void Layout::AddCol ( DWORD  min_width,
float  col_factor 
)
virtual

Definition at line 167 of file Layout.cpp.

void Layout::AddRow ( DWORD  min_height,
float  row_factor 
)
virtual

Definition at line 174 of file Layout.cpp.

void Layout::CalcCells ( DWORD  w,
DWORD  h,
std::vector< DWORD > &  cell_x,
std::vector< DWORD > &  cell_y 
)
protectedvirtual

Definition at line 120 of file Layout.cpp.

void Layout::Clear ( )
virtual

Definition at line 157 of file Layout.cpp.

bool Layout::DoLayout ( ActiveWindow panel)
virtual

Definition at line 29 of file Layout.cpp.

void Layout::ScaleWeights ( )
protectedvirtual

Definition at line 95 of file Layout.cpp.

void Layout::SetConstraints ( const std::vector< DWORD > &  min_x,
const std::vector< DWORD > &  min_y,
const std::vector< float > &  weight_x,
const std::vector< float > &  weight_y 
)
virtual

Definition at line 181 of file Layout.cpp.

void Layout::SetConstraints ( const std::vector< float > &  min_x,
const std::vector< float > &  min_y,
const std::vector< float > &  weight_x,
const std::vector< float > &  weight_y 
)
virtual

Definition at line 204 of file Layout.cpp.

void Layout::SetConstraints ( int  ncols,
int  nrows,
const int *  min_x,
const int *  min_y,
const float *  weight_x,
const float *  weight_y 
)
virtual

Definition at line 229 of file Layout.cpp.

static const char* Layout::TYPENAME ( )
inlinestatic

Definition at line 25 of file Layout.h.


Member Data Documentation

std::vector<float> Layout::col_weights
protected

Definition at line 60 of file Layout.h.

std::vector<DWORD> Layout::cols
protected

Definition at line 58 of file Layout.h.

std::vector<float> Layout::row_weights
protected

Definition at line 61 of file Layout.h.

std::vector<DWORD> Layout::rows
protected

Definition at line 59 of file Layout.h.


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