forked from inkyblackness/imgui-go
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathListClipper.cpp
38 lines (31 loc) · 1.19 KB
/
ListClipper.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include "ListClipper.h"
#include "WrapperConverter.h"
#include "imguiWrappedHeader.h"
IggListClipper iggNewListClipper() {
ImGuiListClipper *clipper = new ImGuiListClipper();
return static_cast<IggListClipper>(clipper);
}
int iggListClipperDisplayStart(IggListClipper handle) {
ImGuiListClipper *clipper = reinterpret_cast<ImGuiListClipper *>(handle);
return clipper->DisplayStart;
}
int iggListClipperDisplayEnd(IggListClipper handle) {
ImGuiListClipper *clipper = reinterpret_cast<ImGuiListClipper *>(handle);
return clipper->DisplayEnd;
}
void iggListClipperDelete(IggListClipper handle) {
ImGuiListClipper *clipper = reinterpret_cast<ImGuiListClipper *>(handle);
delete clipper;
}
IggBool iggListClipperStep(IggListClipper handle) {
ImGuiListClipper *clipper = reinterpret_cast<ImGuiListClipper *>(handle);
return clipper->Step();
}
void iggListClipperBegin(IggListClipper handle, int items_count, float items_height) {
ImGuiListClipper *clipper = reinterpret_cast<ImGuiListClipper *>(handle);
clipper->Begin(items_count, items_height);
}
void iggListClipperEnd(IggListClipper handle) {
ImGuiListClipper *clipper = reinterpret_cast<ImGuiListClipper *>(handle);
clipper->End();
}