Fission FSN
Loading...
Searching...
No Matches
fsNGuiLayout.h
Go to the documentation of this file.
1/********************************************************************
2*
3* File: fsNGuiLayout.h
4*
5* Purpose: Small layout helpers for gui panels.
6*
7*********************************************************************/
8
9#ifndef fsNGuiLayouthdr
10#define fsNGuiLayouthdr
11
12#include <fsCore/fsBaseTypes.h>
13
14class fsCEntity;
15
16namespace fsNGuiLayout
17{
18// Rows are pPanel's direct children grouped by y (within pTolerance). A row whose children are all
19// hidden gives its height back: the panel's sprite shrinks by the gap to the next row and the rows
20// either side close up, so a build that hides an option leaves no hole.
21void hiddenRowsCollapse(fsCEntity* pPanel, fsF32 pTolerance = 12.0f);
22}
23
24#endif
Definition fsCEntity.h:39
float fsF32
Definition fsBaseTypes.h:28
Definition fsNGuiLayout.h:17
void hiddenRowsCollapse(fsCEntity *pPanel, fsF32 pTolerance=12.0f)
Definition fsNGuiLayout.cpp:21