bgfx/3rdparty/dear-imgui/imgui_user.h

52 lines
952 B
C
Raw Normal View History

2016-06-07 06:13:03 +03:00
#include <stdint.h>
2016-06-07 21:28:00 +03:00
#include <inttypes.h>
2016-06-07 06:13:03 +03:00
2016-05-29 03:14:19 +03:00
namespace ImGui
{
struct Font
2016-06-07 06:13:03 +03:00
{
enum Enum
{
Regular,
Mono,
Count
};
};
void PushFont(Font::Enum _font);
// BK - simple string class for convenience.
class ImString
{
public:
ImString();
ImString(const ImString& rhs);
ImString(const char* rhs);
~ImString();
ImString& operator=(const ImString& rhs);
ImString& operator=(const char* rhs);
void Clear();
bool IsEmpty() const;
2016-05-29 03:14:19 +03:00
2016-06-07 06:13:03 +03:00
const char* CStr() const
{
return NULL == Ptr ? "" : Ptr;
}
2016-05-29 03:14:19 +03:00
2016-06-07 06:13:03 +03:00
private:
char* Ptr;
};
2016-05-29 03:14:19 +03:00
} // namespace ImGui
2016-12-27 00:01:50 +03:00
#include "widgets/color_picker.h"
#include "widgets/color_wheel.h"
2016-12-26 08:07:39 +03:00
#include "widgets/dock.h"
2016-06-07 04:17:40 +03:00
#include "widgets/file_list.h"
2016-08-28 02:44:09 +03:00
#include "widgets/gizmo.h"
2019-01-31 20:47:32 +03:00
#include "widgets/markdown.h"
2016-12-27 00:01:50 +03:00
#include "widgets/range_slider.h"