Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

sjgui::CSqueezePanelCtrlTmpl< Tslider, Tbase > Class Template Reference

Squeeze panel, which resizes child windos to fit its area. More...

#include <panel.h>

Inheritance diagram for sjgui::CSqueezePanelCtrlTmpl< Tslider, Tbase >:

sjgui::CStackPanelCtrlTmpl< Tslider, Tbase > sjgui::CPanelCtrlTmpl< Tslider, Tbase > sjgui::classic::CSqueezePanelTmpl< Tslider, Tbase > sjgui::modern::CSqueezePanelTmpl< Tslider, Tbase > List of all members.

Public Member Functions

void SetEven (bool b=true)
 Enables even distribution of sizes.

bool IsEven ()
 Returns if sizes are distributed evenly.

virtual void OnReshape ()
 placement of the child windows


Detailed Description

template<class Tslider, class Tbase>
class sjgui::CSqueezePanelCtrlTmpl< Tslider, Tbase >

Squeeze panel, which resizes child windos to fit its area.

Two modes: horizontal(default) and vertical. In horizontal mode, height of all windows are changed to the same size and they are positioned as they are in a stack panel in horizontal mode. Distance set by SetSideDist() will be used to separate child windows from the edges.

Note:
If child window has minimum size set it will stay at this size, even if panel tries squeeze it.
See also:
CStackPanelCtrlTmpl


Member Function Documentation

template<class Tslider, class Tbase>
void sjgui::CSqueezePanelCtrlTmpl< Tslider, Tbase >::SetEven bool  b = true  )  [inline]
 

Enables even distribution of sizes.

For horizontal mode, widths of all child windows will be set to be equal, so in the sum, they would fit the area of the panel. For vertical mode the same for height. Requires Reshape for updating.


The documentation for this class was generated from the following file:
sjgui logo
Quick Links:

 News
 Description
 Screen Shots
 Projects
 Downloads
 Source Code
 Help/FAQ
 Want to help?
 Credits
 Disclaimer


Documentation:

 Documentation
 Reference
 Lessons


Useful links:

sjcomp logo
sjcomp

opengl logo

nehe logo

SourceForge.net Logo

Last modified:


Started by Alexander Shyrokov. Generated at Wed Apr 28 12:31:06 2004 for the sjgui by doxygen 1.3.1. SourceForge.net Logo