Main Page Namespace List Class Hierarchy Compound List File List Namespace Members Compound Members Related Pages
sjgui::CSqueezePanelCtrlTmpl< Tslider, Tbase > Class Template ReferenceSqueeze panel, which resizes child windos to fit its area.
More...
#include <panel.h>
Inheritance diagram for sjgui::CSqueezePanelCtrlTmpl< 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:
|
|