MGUI::LAYOUT_EQUALIZER Class Reference

Automatically equalize width and/or height of controls for alignment. More...

#include <mgui/layout.h>

List of all members.

Public Types

enum  EQUALIZE { EQUALIZE_Width = 1, EQUALIZE_Height = 2, EQUALIZE_Both = 3 }

Public Member Functions

 LAYOUT_EQUALIZER (EQUALIZE equalize=EQUALIZE_Width)
 ~LAYOUT_EQUALIZER ()
void Add (MGUI::CTRL &control)
void Equalize ()
void SetEqualize (EQUALIZE equalize)
void SetMinimumSize (int minwidth, int minheight=0)

Detailed Description

Automatically equalize width and/or height of controls for alignment.


Member Enumeration Documentation

Dimension to equalize.

Enumerator:
EQUALIZE_Width 
EQUALIZE_Height 
EQUALIZE_Both 

Constructor & Destructor Documentation

MGUI::LAYOUT_EQUALIZER::LAYOUT_EQUALIZER ( EQUALIZE  equalize = EQUALIZE_Width  ) 

Constructor.

Parameters:
equalize What dimension(s) to equalize
MGUI::LAYOUT_EQUALIZER::~LAYOUT_EQUALIZER (  ) 

Destructor.


Member Function Documentation

void MGUI::LAYOUT_EQUALIZER::Add ( MGUI::CTRL control  ) 

Add MGUI::CTRL to be equalized.

void MGUI::LAYOUT_EQUALIZER::Equalize (  ) 

Perform equalization.

This is automatically done by destructor if not done previously.

void MGUI::LAYOUT_EQUALIZER::SetEqualize ( EQUALIZE  equalize  )  [inline]

Set dimensions to equalize.

void MGUI::LAYOUT_EQUALIZER::SetMinimumSize ( int  minwidth,
int  minheight = 0 
) [inline]

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

Generated on Sun Oct 7 21:36:09 2012 for TNTsdk 2012 by  doxygen 1.6.1