Starting work on moving GUI to event system (doesnt compile)
This commit is contained in:
parent
f1a855edc3
commit
ef7dfcef05
69 changed files with 4296 additions and 3709 deletions
16
src/GUIStuff/ElementHelpers/ScrollAreaHelpers.hpp
Normal file
16
src/GUIStuff/ElementHelpers/ScrollAreaHelpers.hpp
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#pragma once
|
||||
#include "../Elements/ScrollArea.hpp"
|
||||
|
||||
namespace GUIStuff { namespace ElementHelpers {
|
||||
|
||||
struct ScrollBarManyEntriesOptions {
|
||||
float entryHeight;
|
||||
size_t entryCount;
|
||||
bool clipHorizontal = false;
|
||||
std::function<void(size_t elementIndex)> elementContent;
|
||||
std::function<void(const ScrollArea::InnerContentParameters&)> innerContentExtraCallback;
|
||||
};
|
||||
|
||||
void scroll_area_many_entries(GUIManager& gui, const char* id, const ScrollBarManyEntriesOptions& options);
|
||||
|
||||
}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue