ListClipper.cpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #include "ListClipper.h"
  2. #include "WrapperConverter.h"
  3. #include "imguiWrappedHeader.h"
  4. IggListClipper iggNewListClipper() {
  5. ImGuiListClipper *clipper = new ImGuiListClipper();
  6. return static_cast<IggListClipper>(clipper);
  7. }
  8. int iggListClipperDisplayStart(IggListClipper handle) {
  9. ImGuiListClipper *clipper = reinterpret_cast<ImGuiListClipper *>(handle);
  10. return clipper->DisplayStart;
  11. }
  12. int iggListClipperDisplayEnd(IggListClipper handle) {
  13. ImGuiListClipper *clipper = reinterpret_cast<ImGuiListClipper *>(handle);
  14. return clipper->DisplayEnd;
  15. }
  16. void iggListClipperDelete(IggListClipper handle) {
  17. ImGuiListClipper *clipper = reinterpret_cast<ImGuiListClipper *>(handle);
  18. delete clipper;
  19. }
  20. IggBool iggListClipperStep(IggListClipper handle) {
  21. ImGuiListClipper *clipper = reinterpret_cast<ImGuiListClipper *>(handle);
  22. return clipper->Step();
  23. }
  24. void iggListClipperBegin(IggListClipper handle, int items_count, float items_height) {
  25. ImGuiListClipper *clipper = reinterpret_cast<ImGuiListClipper *>(handle);
  26. clipper->Begin(items_count, items_height);
  27. }
  28. void iggListClipperEnd(IggListClipper handle) {
  29. ImGuiListClipper *clipper = reinterpret_cast<ImGuiListClipper *>(handle);
  30. clipper->End();
  31. }