Fission
FSN
Loading...
Searching...
No Matches
libs
fsAppCore
src
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
14
class
fsCEntity
;
15
16
namespace
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.
21
void
hiddenRowsCollapse
(
fsCEntity
* pPanel,
fsF32
pTolerance = 12.0f);
22
}
23
24
#endif
fsCEntity
Definition
fsCEntity.h:39
fsBaseTypes.h
fsF32
float fsF32
Definition
fsBaseTypes.h:28
fsNGuiLayout
Definition
fsNGuiLayout.h:17
fsNGuiLayout::hiddenRowsCollapse
void hiddenRowsCollapse(fsCEntity *pPanel, fsF32 pTolerance=12.0f)
Definition
fsNGuiLayout.cpp:21
Generated on
for Fission by
1.16.1