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

51 lines
924 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"
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"
2016-12-26 08:07:39 +03:00
#include "widgets/memory_editor.h"
2016-12-27 00:01:50 +03:00
#include "widgets/range_slider.h"