2018-11-26 15:57:19 +01:00
|
|
|
#ifndef CIMGUI_INCLUDED
|
|
|
|
#define CIMGUI_INCLUDED
|
2018-05-07 10:27:55 +02:00
|
|
|
#include <stdio.h>
|
2018-10-16 11:56:31 +02:00
|
|
|
#include <stdint.h>
|
2018-05-07 10:27:55 +02:00
|
|
|
#if defined _WIN32 || defined __CYGWIN__
|
2018-06-25 15:52:55 +02:00
|
|
|
#ifdef CIMGUI_NO_EXPORT
|
|
|
|
#define API
|
|
|
|
#else
|
|
|
|
#define API __declspec(dllexport)
|
|
|
|
#endif
|
2018-05-07 10:27:55 +02:00
|
|
|
#else
|
2020-04-20 13:09:30 +01:00
|
|
|
#ifdef __GNUC__
|
|
|
|
#define API __attribute__((__visibility__("default")))
|
|
|
|
#else
|
|
|
|
#define API
|
|
|
|
#endif
|
2018-05-07 10:27:55 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined __cplusplus
|
2018-06-25 15:52:55 +02:00
|
|
|
#define EXTERN extern "C"
|
2018-05-07 10:27:55 +02:00
|
|
|
#else
|
2018-06-25 15:52:55 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#define EXTERN extern
|
2018-05-07 10:27:55 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define CIMGUI_API EXTERN API
|
|
|
|
#define CONST const
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
typedef unsigned __int64 ImU64;
|
|
|
|
#else
|
2018-09-12 12:35:10 +02:00
|
|
|
//typedef unsigned long long ImU64;
|
2018-05-07 10:27:55 +02:00
|
|
|
#endif
|
|
|
|
|
2018-09-05 13:59:51 +02:00
|
|
|
|
|
|
|
#ifdef CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
|
|
|
#include "imgui_structs.h"
|
|
|
|
#else
|
|
|
|
struct GLFWwindow;
|
|
|
|
struct SDL_Window;
|
|
|
|
typedef union SDL_Event SDL_Event;
|
2018-05-07 10:27:55 +02:00
|
|
|
#endif // CIMGUI_DEFINE_ENUMS_AND_STRUCTS
|
|
|
|
|
|
|
|
#include "auto_funcs.h"
|
|
|
|
|
|
|
|
/////////////////////////hand written functions
|
|
|
|
//no LogTextV
|
2024-11-01 13:47:14 +01:00
|
|
|
CIMGUI_API void igLogText(const char *fmt, ...);
|
2018-05-07 10:27:55 +02:00
|
|
|
//no appendfV
|
2025-01-06 18:19:54 +01:00
|
|
|
CIMGUI_API void ImGuiTextBuffer_appendf(ImGuiTextBuffer *self, const char *fmt, ...);
|
2018-06-20 11:42:19 +02:00
|
|
|
//for getting FLT_MAX in bindings
|
2022-02-20 12:22:55 -05:00
|
|
|
CIMGUI_API float igGET_FLT_MAX(void);
|
2021-01-27 10:21:07 +01:00
|
|
|
//for getting FLT_MIN in bindings
|
2022-02-20 12:22:55 -05:00
|
|
|
CIMGUI_API float igGET_FLT_MIN(void);
|
2018-10-04 11:22:00 +02:00
|
|
|
|
2020-03-25 12:47:40 +01:00
|
|
|
|
2022-02-20 12:22:55 -05:00
|
|
|
CIMGUI_API ImVector_ImWchar* ImVector_ImWchar_create(void);
|
2020-03-25 12:47:40 +01:00
|
|
|
CIMGUI_API void ImVector_ImWchar_destroy(ImVector_ImWchar* self);
|
|
|
|
CIMGUI_API void ImVector_ImWchar_Init(ImVector_ImWchar* p);
|
|
|
|
CIMGUI_API void ImVector_ImWchar_UnInit(ImVector_ImWchar* p);
|
|
|
|
|
2024-06-01 12:54:07 +02:00
|
|
|
#ifdef IMGUI_HAS_DOCK
|
|
|
|
CIMGUI_API void ImGuiPlatformIO_Set_Platform_GetWindowPos(ImGuiPlatformIO* platform_io, void(*user_callback)(ImGuiViewport* vp, ImVec2* out_pos));
|
|
|
|
CIMGUI_API void ImGuiPlatformIO_Set_Platform_GetWindowSize(ImGuiPlatformIO* platform_io, void(*user_callback)(ImGuiViewport* vp, ImVec2* out_size));
|
|
|
|
#endif
|
2020-03-25 12:21:04 +01:00
|
|
|
|
2018-11-26 15:57:19 +01:00
|
|
|
#endif //CIMGUI_INCLUDED
|
2018-10-17 20:08:40 +02:00
|
|
|
|
|
|
|
|
2018-06-16 17:49:16 +02:00
|
|
|
|
2018-05-07 10:27:55 +02:00
|
|
|
|