Improved file selector grid alignment
This commit is contained in:
parent
3b9b9c0cf9
commit
c75c668bf7
7 changed files with 45 additions and 14 deletions
|
|
@ -1,5 +1,6 @@
|
|||
#pragma once
|
||||
#include "../Elements/ScrollArea.hpp"
|
||||
#include "Helpers/ConvertVec.hpp"
|
||||
|
||||
namespace GUIStuff { namespace ElementHelpers {
|
||||
|
||||
|
|
@ -8,6 +9,8 @@ struct ScrollBarManyEntriesOptions {
|
|||
size_t entryCount;
|
||||
bool clipHorizontal = false;
|
||||
bool growing = false; // If set to false, this element has a fixed size. Otherwise, is a growing element.
|
||||
Clay_LayoutAlignmentX xAlign = CLAY_ALIGN_X_LEFT;
|
||||
Clay_SizingAxis xElementSize = CLAY_SIZING_GROW(0);
|
||||
std::function<void(size_t elementIndex)> elementContent;
|
||||
std::function<void(const ScrollArea::InnerContentParameters&)> innerContentExtraCallback;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue