OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Macros | Enumerations | Functions | Variables
imgui.cpp File Reference
#include "imgui.h"
#include <ctype.h>
#include <math.h>
#include <stdint.h>
#include <stdio.h>
#include <new>
#include "stb_rect_pack.h"
#include "stb_truetype.h"
#include "stb_textedit.h"
#include "imgui_user.inl"
Include dependency graph for imgui.cpp:

Go to the source code of this file.

Macros

#define STBRP_ASSERT(x)   IM_ASSERT(x)
 
#define STBRP_STATIC
 
#define STB_RECT_PACK_IMPLEMENTATION
 
#define STBTT_malloc(x, u)   ((void)(u), ImGui::MemAlloc(x))
 
#define STBTT_free(x, u)   ((void)(u), ImGui::MemFree(x))
 
#define STBTT_assert(x)   IM_ASSERT(x)
 
#define STBTT_STATIC
 
#define STB_TRUETYPE_IMPLEMENTATION
 
#define STB_TEXTEDIT_STRING   ImGuiTextEditState
 
#define STB_TEXTEDIT_CHARTYPE   ImWchar
 
#define IM_ARRAYSIZE(_ARR)   ((int)(sizeof(_ARR)/sizeof(*_ARR)))
 
#define IM_INT_MAX   2147483647
 
#define STR_NEWLINE   "\n"
 
#define va_copy(dest, src)   (dest = src)
 
#define STB_TEXTEDIT_IS_SPACE(CH)   ( ImCharIsSpace((unsigned int)CH) || is_separator((unsigned int)CH) )
 
#define STB_TEXTEDIT_IMPLEMENTATION
 
#define stb__in2(x)   ((i[x] << 8) + i[(x)+1])
 
#define stb__in3(x)   ((i[x] << 16) + stb__in2((x)+1))
 
#define stb__in4(x)   ((i[x] << 24) + stb__in3((x)+1))
 

Enumerations

enum  ImGuiPlotType { ImGuiPlotType_Lines, ImGuiPlotType_Histogram }
 
enum  {
  STB_TEXTEDIT_K_LEFT = 1 << 16, STB_TEXTEDIT_K_RIGHT, STB_TEXTEDIT_K_UP, STB_TEXTEDIT_K_DOWN,
  STB_TEXTEDIT_K_LINESTART, STB_TEXTEDIT_K_LINEEND, STB_TEXTEDIT_K_TEXTSTART, STB_TEXTEDIT_K_TEXTEND,
  STB_TEXTEDIT_K_DELETE, STB_TEXTEDIT_K_BACKSPACE, STB_TEXTEDIT_K_UNDO, STB_TEXTEDIT_K_REDO,
  STB_TEXTEDIT_K_WORDLEFT, STB_TEXTEDIT_K_WORDRIGHT, STB_TEXTEDIT_K_SHIFT = 1 << 17
}
 

Functions

static bool ButtonBehaviour (const ImGuiAabb &bb, const ImGuiID &id, bool *out_hovered, bool *out_held, bool allow_key_modifiers, bool repeat=false, bool pressed_on_click=false)
 
static void LogText (const ImVec2 &ref_pos, const char *text, const char *text_end=NULL)
 
static void RenderText (ImVec2 pos, const char *text, const char *text_end=NULL, bool hide_text_after_hash=true)
 
static void RenderTextWrapped (ImVec2 pos, const char *text, const char *text_end, float wrap_width)
 
static void RenderTextClipped (ImVec2 pos, const char *text, const char *text_end, const ImVec2 *text_size_if_known, const ImVec2 &clip_max)
 
static void RenderFrame (ImVec2 p_min, ImVec2 p_max, ImU32 fill_col, bool border=true, float rounding=0.0f)
 
static void RenderCollapseTriangle (ImVec2 p_min, bool opened, float scale=1.0f, bool shadow=false)
 
static void SetFont (ImFont *font)
 
static bool ItemAdd (const ImGuiAabb &bb, const ImGuiID *id)
 
static void ItemSize (ImVec2 size, ImVec2 *adjust_start_offset=NULL)
 
static void ItemSize (const ImGuiAabb &bb, ImVec2 *adjust_start_offset=NULL)
 
static void PushColumnClipRect (int column_index=-1)
 
static bool IsClipped (const ImGuiAabb &bb)
 
static bool IsMouseHoveringBox (const ImGuiAabb &bb)
 
static bool IsKeyPressedMap (ImGuiKey key, bool repeat=true)
 
static void Scrollbar (ImGuiWindow *window)
 
static bool CloseWindowButton (bool *p_opened=NULL)
 
static void FocusWindow (ImGuiWindow *window)
 
static ImGuiWindow * FindHoveredWindow (ImVec2 pos, bool excluding_childs)
 
static int ImStricmp (const char *str1, const char *str2)
 
static int ImStrnicmp (const char *str1, const char *str2, int count)
 
static char * ImStrdup (const char *str)
 
static size_t ImStrlenW (const ImWchar *str)
 
static const char * ImStristr (const char *haystack, const char *needle, const char *needle_end)
 
static size_t ImFormatString (char *buf, size_t buf_size, const char *fmt,...)
 
static size_t ImFormatStringV (char *buf, size_t buf_size, const char *fmt, va_list args)
 
static ImU32 ImHash (const void *data, size_t data_size, ImU32 seed)
 
static bool ImLoadFileToMemory (const char *filename, const char *file_open_mode, void **out_file_data, size_t *out_file_size, size_t padding_bytes=0)
 
static int ImUpperPowerOfTwo (int v)
 
static bool ImCharIsSpace (int c)
 
static int ImTextCharToUtf8 (char *buf, size_t buf_size, unsigned int in_char)
 
static ptrdiff_t ImTextStrToUtf8 (char *buf, size_t buf_size, const ImWchar *in_text, const ImWchar *in_text_end)
 
static int ImTextCharFromUtf8 (unsigned int *out_char, const char *in_text, const char *in_text_end)
 
static ptrdiff_t ImTextStrFromUtf8 (ImWchar *buf, size_t buf_size, const char *in_text, const char *in_text_end, const char **in_remaining=NULL)
 
static int ImTextCountCharsFromUtf8 (const char *in_text, const char *in_text_end)
 
static int ImTextCountUtf8BytesFromStr (const ImWchar *in_text, const ImWchar *in_text_end)
 
static const char * GetClipboardTextFn_DefaultImpl ()
 
static void SetClipboardTextFn_DefaultImpl (const char *text)
 
static void ImeSetInputScreenPosFn_DefaultImpl (int x, int y)
 
static ImVec2 operator* (const ImVec2 &lhs, const float rhs)
 
static ImVec2 operator+ (const ImVec2 &lhs, const ImVec2 &rhs)
 
static ImVec2 operator- (const ImVec2 &lhs, const ImVec2 &rhs)
 
static ImVec2 operator* (const ImVec2 &lhs, const ImVec2 rhs)
 
static ImVec2 operator/ (const ImVec2 &lhs, const ImVec2 rhs)
 
static ImVec2operator+= (ImVec2 &lhs, const ImVec2 &rhs)
 
static ImVec2operator-= (ImVec2 &lhs, const ImVec2 &rhs)
 
static ImVec2operator*= (ImVec2 &lhs, const float rhs)
 
static int ImMin (int lhs, int rhs)
 
static int ImMax (int lhs, int rhs)
 
static float ImMin (float lhs, float rhs)
 
static float ImMax (float lhs, float rhs)
 
static ImVec2 ImMin (const ImVec2 &lhs, const ImVec2 &rhs)
 
static ImVec2 ImMax (const ImVec2 &lhs, const ImVec2 &rhs)
 
static int ImClamp (int v, int mn, int mx)
 
static float ImClamp (float v, float mn, float mx)
 
static ImVec2 ImClamp (const ImVec2 &f, const ImVec2 &mn, ImVec2 mx)
 
static float ImSaturate (float f)
 
static float ImLerp (float a, float b, float t)
 
static ImVec2 ImLerp (const ImVec2 &a, const ImVec2 &b, const ImVec2 &t)
 
static float ImLengthSqr (const ImVec2 &lhs)
 
static ImGuiWindow * GetCurrentWindow ()
 
static ImGuiWindow * GetParentWindow ()
 
static void SetActiveId (ImGuiID id)
 
static void RegisterAliveId (const ImGuiID &id)
 
static ImVector< ImGuiStorage::Pair >::iterator LowerBound (ImVector< ImGuiStorage::Pair > &data, ImU32 key)
 
static ImGuiIniData * FindWindowSettings (const char *name)
 
static ImGuiIniData * AddWindowSettings (const char *name)
 
static void LoadSettings ()
 
static void SaveSettings ()
 
static void MarkSettingsDirty ()
 
static int ChildWindowComparer (const void *lhs, const void *rhs)
 
static void AddWindowToSortedBuffer (ImGuiWindow *window, ImVector< ImGuiWindow * > &sorted_windows)
 
static void PushClipRect (const ImVec4 &clip_rect, bool clipped=true)
 
static void PopClipRect ()
 
static const char * FindTextDisplayEnd (const char *text, const char *text_end=NULL)
 
static float CalcWrapWidthForPos (const ImVec2 &pos, float wrap_pos_x)
 
static ImGuiWindow * FindWindowByName (const char *name)
 
static ImGuiWindow * CreateNewWindow (const char *name, ImVec2 size, ImGuiWindowFlags flags)
 
static float * GetStyleVarFloatAddr (ImGuiStyleVar idx)
 
static ImVec2GetStyleVarVec2Addr (ImGuiStyleVar idx)
 
static void SetWindowPos (ImGuiWindow *window, const ImVec2 &pos, ImGuiSetCond cond)
 
static void SetWindowSize (ImGuiWindow *window, const ImVec2 &size, ImGuiSetCond cond)
 
static void SetWindowCollapsed (ImGuiWindow *window, bool collapsed, ImGuiSetCond cond)
 
static bool IsHovered (const ImGuiAabb &bb, const ImGuiID &id)
 
static void ApplyNumericalTextInput (const char *buf, float *v)
 
static bool SliderFloatN (const char *label, float v[3], int components, float v_min, float v_max, const char *display_format, float power)
 
static bool SliderIntN (const char *label, int v[3], int components, int v_min, int v_max, const char *display_format)
 
static void Plot (ImGuiPlotType plot_type, const char *label, float(*values_getter)(void *data, int idx), void *data, int values_count, int values_offset, const char *overlay_text, float scale_min, float scale_max, ImVec2 graph_size)
 
static float Plot_ArrayGetter (void *data, int idx)
 
static int STB_TEXTEDIT_STRINGLEN (const STB_TEXTEDIT_STRING *obj)
 
static ImWchar STB_TEXTEDIT_GETCHAR (const STB_TEXTEDIT_STRING *obj, int idx)
 
static float STB_TEXTEDIT_GETWIDTH (STB_TEXTEDIT_STRING *obj, int line_start_idx, int char_idx)
 
static int STB_TEXTEDIT_KEYTOTEXT (int key)
 
static void STB_TEXTEDIT_LAYOUTROW (StbTexteditRow *r, STB_TEXTEDIT_STRING *obj, int line_start_idx)
 
static bool is_separator (unsigned int c)
 
static void STB_TEXTEDIT_DELETECHARS (STB_TEXTEDIT_STRING *obj, int pos, int n)
 
static bool STB_TEXTEDIT_INSERTCHARS (STB_TEXTEDIT_STRING *obj, int pos, const ImWchar *new_text, int new_text_len)
 
static bool InputTextFilterCharacter (unsigned int *p_char, ImGuiInputTextFlags flags, ImGuiTextEditCallback callback, void *user_data)
 
static bool InputFloatN (const char *label, float *v, int components, int decimal_precision)
 
static bool Items_ArrayGetter (void *data, int idx, const char **out_text)
 
static bool Items_SingleStringGetter (void *data, int idx, const char **out_text)
 
static void GetDefaultCompressedFontDataTTF (const void **ttf_compressed_data, unsigned int *ttf_compressed_size)
 
static unsigned int stb_decompress_length (unsigned char *input)
 
static unsigned int stb_decompress (unsigned char *output, unsigned char *i, unsigned int length)
 
static void ShowExampleAppConsole (bool *opened)
 
static void ShowExampleAppLongText (bool *opened)
 
static void ShowExampleAppAutoResize (bool *opened)
 
static void ShowExampleAppFixedOverlay (bool *opened)
 
static void ShowExampleAppManipulatingWindowTitle (bool *opened)
 
static void ShowExampleAppCustomRendering (bool *opened)
 
static void stb__match (unsigned char *data, unsigned int length)
 
static void stb__lit (unsigned char *data, unsigned int length)
 
static unsigned char * stb_decompress_token (unsigned char *i)
 
static unsigned int stb_adler32 (unsigned int adler32, unsigned char *buffer, unsigned int buflen)
 

Variables

static const ImVec2 TEX_ATLAS_SIZE (32, 32)
 
static const ImVec2 TEX_ATLAS_POS_MOUSE_CURSOR_BLACK (1, 3)
 
static const ImVec2 TEX_ATLAS_POS_MOUSE_CURSOR_WHITE (14, 3)
 
static const ImVec2 TEX_ATLAS_SIZE_MOUSE_CURSOR (12, 19)
 
static ImFontAtlas GDefaultFontAtlas
 
const float PI = 3.14159265358979323846f
 
static ImGuiState GImDefaultState
 
static ImGuiState * GImGui = &GImDefaultState
 
static ImWchar STB_TEXTEDIT_NEWLINE = '\n'
 
static ImVec4 GNullClipRect (-9999.0f,-9999.0f,+9999.0f,+9999.0f)
 
static unsigned char * stb__barrier
 
static unsigned char * stb__barrier2
 
static unsigned char * stb__barrier3
 
static unsigned char * stb__barrier4
 
static unsigned char * stb__dout
 
static const unsigned int proggy_clean_ttf_compressed_size = 9583
 
static const unsigned int proggy_clean_ttf_compressed_data [9584/4]
 

Macro Definition Documentation

#define STBRP_ASSERT (   x)    IM_ASSERT(x)

Definition at line 379 of file imgui.cpp.

#define STBRP_STATIC

Definition at line 381 of file imgui.cpp.

#define STB_RECT_PACK_IMPLEMENTATION

Definition at line 382 of file imgui.cpp.

#define STBTT_malloc (   x,
 
)    ((void)(u), ImGui::MemAlloc(x))

Definition at line 386 of file imgui.cpp.

#define STBTT_free (   x,
 
)    ((void)(u), ImGui::MemFree(x))

Definition at line 387 of file imgui.cpp.

#define STBTT_assert (   x)    IM_ASSERT(x)

Definition at line 388 of file imgui.cpp.

#define STBTT_STATIC

Definition at line 390 of file imgui.cpp.

#define STB_TRUETYPE_IMPLEMENTATION

Definition at line 391 of file imgui.cpp.

#define STB_TEXTEDIT_STRING   ImGuiTextEditState

Definition at line 395 of file imgui.cpp.

#define STB_TEXTEDIT_CHARTYPE   ImWchar

Definition at line 396 of file imgui.cpp.

#define IM_ARRAYSIZE (   _ARR)    ((int)(sizeof(_ARR)/sizeof(*_ARR)))

Definition at line 599 of file imgui.cpp.

#define IM_INT_MAX   2147483647

Definition at line 607 of file imgui.cpp.

#define STR_NEWLINE   "\n"

Definition at line 614 of file imgui.cpp.

#define va_copy (   dest,
  src 
)    (dest = src)

Definition at line 1428 of file imgui.cpp.

#define STB_TEXTEDIT_IS_SPACE (   CH)    ( ImCharIsSpace((unsigned int)CH) || is_separator((unsigned int)CH) )

Definition at line 5271 of file imgui.cpp.

#define STB_TEXTEDIT_IMPLEMENTATION

Definition at line 5331 of file imgui.cpp.

#define stb__in2 (   x)    ((i[x] << 8) + i[(x)+1])

Definition at line 9746 of file imgui.cpp.

#define stb__in3 (   x)    ((i[x] << 16) + stb__in2((x)+1))

Definition at line 9747 of file imgui.cpp.

#define stb__in4 (   x)    ((i[x] << 24) + stb__in3((x)+1))

Definition at line 9748 of file imgui.cpp.

Enumeration Type Documentation

Enumerator
ImGuiPlotType_Lines 
ImGuiPlotType_Histogram 

Definition at line 4989 of file imgui.cpp.

anonymous enum
Enumerator
STB_TEXTEDIT_K_LEFT 
STB_TEXTEDIT_K_RIGHT 
STB_TEXTEDIT_K_UP 
STB_TEXTEDIT_K_DOWN 
STB_TEXTEDIT_K_LINESTART 
STB_TEXTEDIT_K_LINEEND 
STB_TEXTEDIT_K_TEXTSTART 
STB_TEXTEDIT_K_TEXTEND 
STB_TEXTEDIT_K_DELETE 
STB_TEXTEDIT_K_BACKSPACE 
STB_TEXTEDIT_K_UNDO 
STB_TEXTEDIT_K_REDO 
STB_TEXTEDIT_K_WORDLEFT 
STB_TEXTEDIT_K_WORDRIGHT 
STB_TEXTEDIT_K_SHIFT 

Definition at line 5308 of file imgui.cpp.

Function Documentation

static bool ButtonBehaviour ( const ImGuiAabb &  bb,
const ImGuiID id,
bool *  out_hovered,
bool *  out_held,
bool  allow_key_modifiers,
bool  repeat = false,
bool  pressed_on_click = false 
)
static

Definition at line 4002 of file imgui.cpp.

static void LogText ( const ImVec2 ref_pos,
const char *  text,
const char *  text_end = NULL 
)
static

Definition at line 2139 of file imgui.cpp.

static void RenderText ( ImVec2  pos,
const char *  text,
const char *  text_end = NULL,
bool  hide_text_after_hash = true 
)
static

Definition at line 2205 of file imgui.cpp.

static void RenderTextWrapped ( ImVec2  pos,
const char *  text,
const char *  text_end,
float  wrap_width 
)
static

Definition at line 2235 of file imgui.cpp.

static void RenderTextClipped ( ImVec2  pos,
const char *  text,
const char *  text_end,
const ImVec2 text_size_if_known,
const ImVec2 clip_max 
)
static

Definition at line 2255 of file imgui.cpp.

static void RenderFrame ( ImVec2  p_min,
ImVec2  p_max,
ImU32  fill_col,
bool  border = true,
float  rounding = 0.0f 
)
static

Definition at line 2280 of file imgui.cpp.

static void RenderCollapseTriangle ( ImVec2  p_min,
bool  opened,
float  scale = 1.0f,
bool  shadow = false 
)
static

Definition at line 2294 of file imgui.cpp.

static void SetFont ( ImFont font)
static

Definition at line 3278 of file imgui.cpp.

static bool ItemAdd ( const ImGuiAabb &  bb,
const ImGuiID id 
)
static

Definition at line 6528 of file imgui.cpp.

static void ItemSize ( ImVec2  size,
ImVec2 adjust_start_offset = NULL 
)
static

Definition at line 6486 of file imgui.cpp.

static void ItemSize ( const ImGuiAabb &  bb,
ImVec2 adjust_start_offset = NULL 
)
static

Definition at line 6507 of file imgui.cpp.

static void PushColumnClipRect ( int  column_index = -1)
static

Definition at line 6663 of file imgui.cpp.

static bool IsClipped ( const ImGuiAabb &  bb)
static

Definition at line 6512 of file imgui.cpp.

static bool IsMouseHoveringBox ( const ImGuiAabb &  bb)
static

Definition at line 2408 of file imgui.cpp.

static bool IsKeyPressedMap ( ImGuiKey  key,
bool  repeat = true 
)
static

Definition at line 2449 of file imgui.cpp.

static void Scrollbar ( ImGuiWindow *  window)
static

Definition at line 3161 of file imgui.cpp.

static bool CloseWindowButton ( bool *  p_opened = NULL)
static

Definition at line 4134 of file imgui.cpp.

static void FocusWindow ( ImGuiWindow *  window)
static

Definition at line 3227 of file imgui.cpp.

static ImGuiWindow * FindHoveredWindow ( ImVec2  pos,
bool  excluding_childs 
)
static

Definition at line 2386 of file imgui.cpp.

static int ImStricmp ( const char *  str1,
const char *  str2 
)
static

Definition at line 644 of file imgui.cpp.

static int ImStrnicmp ( const char *  str1,
const char *  str2,
int  count 
)
static

Definition at line 651 of file imgui.cpp.

static char * ImStrdup ( const char *  str)
static

Definition at line 658 of file imgui.cpp.

static size_t ImStrlenW ( const ImWchar str)
static

Definition at line 666 of file imgui.cpp.

static const char * ImStristr ( const char *  haystack,
const char *  needle,
const char *  needle_end 
)
static

Definition at line 673 of file imgui.cpp.

static size_t ImFormatString ( char *  buf,
size_t  buf_size,
const char *  fmt,
  ... 
)
static

Definition at line 740 of file imgui.cpp.

static size_t ImFormatStringV ( char *  buf,
size_t  buf_size,
const char *  fmt,
va_list  args 
)
static

Definition at line 750 of file imgui.cpp.

static ImU32 ImHash ( const void *  data,
size_t  data_size,
ImU32  seed = 0 
)
static

Definition at line 697 of file imgui.cpp.

static bool ImLoadFileToMemory ( const char *  filename,
const char *  file_open_mode,
void **  out_file_data,
size_t *  out_file_size,
size_t  padding_bytes = 0 
)
static

Definition at line 819 of file imgui.cpp.

static int ImUpperPowerOfTwo ( int  v)
inlinestatic

Definition at line 457 of file imgui.cpp.

static bool ImCharIsSpace ( int  c)
inlinestatic

Definition at line 458 of file imgui.cpp.

static int ImTextCharToUtf8 ( char *  buf,
size_t  buf_size,
unsigned int  in_char 
)
static

Definition at line 7857 of file imgui.cpp.

static ptrdiff_t ImTextStrToUtf8 ( char *  buf,
size_t  buf_size,
const ImWchar in_text,
const ImWchar in_text_end 
)
static

Definition at line 7901 of file imgui.cpp.

static int ImTextCharFromUtf8 ( unsigned int *  out_char,
const char *  in_text,
const char *  in_text_end 
)
static

Definition at line 7764 of file imgui.cpp.

static ptrdiff_t ImTextStrFromUtf8 ( ImWchar buf,
size_t  buf_size,
const char *  in_text,
const char *  in_text_end,
const char **  in_remaining = NULL 
)
static

Definition at line 7822 of file imgui.cpp.

static int ImTextCountCharsFromUtf8 ( const char *  in_text,
const char *  in_text_end 
)
static

Definition at line 7841 of file imgui.cpp.

static int ImTextCountUtf8BytesFromStr ( const ImWchar in_text,
const ImWchar in_text_end 
)
static

Definition at line 7914 of file imgui.cpp.

static const char * GetClipboardTextFn_DefaultImpl ( )
static

Definition at line 8342 of file imgui.cpp.

static void SetClipboardTextFn_DefaultImpl ( const char *  text)
static

Definition at line 8348 of file imgui.cpp.

static void ImeSetInputScreenPosFn_DefaultImpl ( int  x,
int  y 
)
static

Definition at line 8389 of file imgui.cpp.

static ImVec2 operator* ( const ImVec2 lhs,
const float  rhs 
)
inlinestatic

Definition at line 619 of file imgui.cpp.

static ImVec2 operator+ ( const ImVec2 lhs,
const ImVec2 rhs 
)
inlinestatic

Definition at line 621 of file imgui.cpp.

static ImVec2 operator- ( const ImVec2 lhs,
const ImVec2 rhs 
)
inlinestatic

Definition at line 622 of file imgui.cpp.

static ImVec2 operator* ( const ImVec2 lhs,
const ImVec2  rhs 
)
inlinestatic

Definition at line 623 of file imgui.cpp.

static ImVec2 operator/ ( const ImVec2 lhs,
const ImVec2  rhs 
)
inlinestatic

Definition at line 624 of file imgui.cpp.

static ImVec2& operator+= ( ImVec2 lhs,
const ImVec2 rhs 
)
inlinestatic

Definition at line 625 of file imgui.cpp.

static ImVec2& operator-= ( ImVec2 lhs,
const ImVec2 rhs 
)
inlinestatic

Definition at line 626 of file imgui.cpp.

static ImVec2& operator*= ( ImVec2 lhs,
const float  rhs 
)
inlinestatic

Definition at line 627 of file imgui.cpp.

static int ImMin ( int  lhs,
int  rhs 
)
inlinestatic

Definition at line 630 of file imgui.cpp.

static int ImMax ( int  lhs,
int  rhs 
)
inlinestatic

Definition at line 631 of file imgui.cpp.

static float ImMin ( float  lhs,
float  rhs 
)
inlinestatic

Definition at line 632 of file imgui.cpp.

static float ImMax ( float  lhs,
float  rhs 
)
inlinestatic

Definition at line 633 of file imgui.cpp.

static ImVec2 ImMin ( const ImVec2 lhs,
const ImVec2 rhs 
)
inlinestatic

Definition at line 634 of file imgui.cpp.

static ImVec2 ImMax ( const ImVec2 lhs,
const ImVec2 rhs 
)
inlinestatic

Definition at line 635 of file imgui.cpp.

static int ImClamp ( int  v,
int  mn,
int  mx 
)
inlinestatic

Definition at line 636 of file imgui.cpp.

static float ImClamp ( float  v,
float  mn,
float  mx 
)
inlinestatic

Definition at line 637 of file imgui.cpp.

static ImVec2 ImClamp ( const ImVec2 f,
const ImVec2 mn,
ImVec2  mx 
)
inlinestatic

Definition at line 638 of file imgui.cpp.

static float ImSaturate ( float  f)
inlinestatic

Definition at line 639 of file imgui.cpp.

static float ImLerp ( float  a,
float  b,
float  t 
)
inlinestatic

Definition at line 640 of file imgui.cpp.

static ImVec2 ImLerp ( const ImVec2 a,
const ImVec2 b,
const ImVec2 t 
)
inlinestatic

Definition at line 641 of file imgui.cpp.

static float ImLengthSqr ( const ImVec2 lhs)
inlinestatic

Definition at line 642 of file imgui.cpp.

static ImGuiWindow* GetCurrentWindow ( )
inlinestatic

Definition at line 1185 of file imgui.cpp.

static ImGuiWindow* GetParentWindow ( )
inlinestatic

Definition at line 1193 of file imgui.cpp.

static void SetActiveId ( ImGuiID  id)
static

Definition at line 1200 of file imgui.cpp.

static void RegisterAliveId ( const ImGuiID id)
static

Definition at line 1207 of file imgui.cpp.

static ImVector<ImGuiStorage::Pair>::iterator LowerBound ( ImVector< ImGuiStorage::Pair > &  data,
ImU32  key 
)
static

Definition at line 1223 of file imgui.cpp.

static ImGuiIniData* FindWindowSettings ( const char *  name)
static

Definition at line 1592 of file imgui.cpp.

static ImGuiIniData* AddWindowSettings ( const char *  name)
static

Definition at line 1605 of file imgui.cpp.

static void LoadSettings ( )
static

Definition at line 1620 of file imgui.cpp.

static void SaveSettings ( )
static

Definition at line 1666 of file imgui.cpp.

static void MarkSettingsDirty ( )
static

Definition at line 1708 of file imgui.cpp.

static int ChildWindowComparer ( const void *  lhs,
const void *  rhs 
)
static

Definition at line 1961 of file imgui.cpp.

static void AddWindowToSortedBuffer ( ImGuiWindow *  window,
ImVector< ImGuiWindow * > &  sorted_windows 
)
static

Definition at line 1972 of file imgui.cpp.

static void PushClipRect ( const ImVec4 clip_rect,
bool  clipped = true 
)
static

Definition at line 1989 of file imgui.cpp.

static void PopClipRect ( )
static

Definition at line 2005 of file imgui.cpp.

static const char* FindTextDisplayEnd ( const char *  text,
const char *  text_end = NULL 
)
static

Definition at line 2107 of file imgui.cpp.

static float CalcWrapWidthForPos ( const ImVec2 pos,
float  wrap_pos_x 
)
static

Definition at line 2188 of file imgui.cpp.

static ImGuiWindow* FindWindowByName ( const char *  name)
static

Definition at line 2667 of file imgui.cpp.

static ImGuiWindow* CreateNewWindow ( const char *  name,
ImVec2  size,
ImGuiWindowFlags  flags 
)
static

Definition at line 2678 of file imgui.cpp.

static float* GetStyleVarFloatAddr ( ImGuiStyleVar  idx)
static

Definition at line 3358 of file imgui.cpp.

static ImVec2* GetStyleVarVec2Addr ( ImGuiStyleVar  idx)
static

Definition at line 3372 of file imgui.cpp.

static void SetWindowPos ( ImGuiWindow *  window,
const ImVec2 pos,
ImGuiSetCond  cond 
)
static

Definition at line 3496 of file imgui.cpp.

static void SetWindowSize ( ImGuiWindow *  window,
const ImVec2 size,
ImGuiSetCond  cond 
)
static

Definition at line 3529 of file imgui.cpp.

static void SetWindowCollapsed ( ImGuiWindow *  window,
bool  collapsed,
ImGuiSetCond  cond 
)
static

Definition at line 3563 of file imgui.cpp.

static bool IsHovered ( const ImGuiAabb &  bb,
const ImGuiID id 
)
static

Definition at line 3987 of file imgui.cpp.

static void ApplyNumericalTextInput ( const char *  buf,
float *  v 
)
static

Definition at line 4608 of file imgui.cpp.

static bool SliderFloatN ( const char *  label,
float  v[3],
int  components,
float  v_min,
float  v_max,
const char *  display_format,
float  power 
)
static

Definition at line 4889 of file imgui.cpp.

static bool SliderIntN ( const char *  label,
int  v[3],
int  components,
int  v_min,
int  v_max,
const char *  display_format 
)
static

Definition at line 4939 of file imgui.cpp.

static void Plot ( ImGuiPlotType  plot_type,
const char *  label,
float(*)(void *data, int idx)  values_getter,
void *  data,
int  values_count,
int  values_offset,
const char *  overlay_text,
float  scale_min,
float  scale_max,
ImVec2  graph_size 
)
static

Definition at line 4995 of file imgui.cpp.

static float Plot_ArrayGetter ( void *  data,
int  idx 
)
static

Definition at line 5099 of file imgui.cpp.

static int STB_TEXTEDIT_STRINGLEN ( const STB_TEXTEDIT_STRING obj)
static

Definition at line 5253 of file imgui.cpp.

static ImWchar STB_TEXTEDIT_GETCHAR ( const STB_TEXTEDIT_STRING obj,
int  idx 
)
static

Definition at line 5254 of file imgui.cpp.

static float STB_TEXTEDIT_GETWIDTH ( STB_TEXTEDIT_STRING obj,
int  line_start_idx,
int  char_idx 
)
static

Definition at line 5255 of file imgui.cpp.

static int STB_TEXTEDIT_KEYTOTEXT ( int  key)
static

Definition at line 5256 of file imgui.cpp.

static void STB_TEXTEDIT_LAYOUTROW ( StbTexteditRow r,
STB_TEXTEDIT_STRING obj,
int  line_start_idx 
)
static

Definition at line 5258 of file imgui.cpp.

static bool is_separator ( unsigned int  c)
static

Definition at line 5270 of file imgui.cpp.

static void STB_TEXTEDIT_DELETECHARS ( STB_TEXTEDIT_STRING obj,
int  pos,
int  n 
)
static

Definition at line 5272 of file imgui.cpp.

static bool STB_TEXTEDIT_INSERTCHARS ( STB_TEXTEDIT_STRING obj,
int  pos,
const ImWchar new_text,
int  new_text_len 
)
static

Definition at line 5287 of file imgui.cpp.

static bool InputTextFilterCharacter ( unsigned int *  p_char,
ImGuiInputTextFlags  flags,
ImGuiTextEditCallback  callback,
void *  user_data 
)
static

Definition at line 5529 of file imgui.cpp.

static bool InputFloatN ( const char *  label,
float *  v,
int  components,
int  decimal_precision 
)
static

Definition at line 5904 of file imgui.cpp.

static bool Items_ArrayGetter ( void *  data,
int  idx,
const char **  out_text 
)
static

Definition at line 5954 of file imgui.cpp.

static bool Items_SingleStringGetter ( void *  data,
int  idx,
const char **  out_text 
)
static

Definition at line 5962 of file imgui.cpp.

static void GetDefaultCompressedFontDataTTF ( const void **  ttf_compressed_data,
unsigned int *  ttf_compressed_size 
)
static

Definition at line 10037 of file imgui.cpp.

static unsigned int stb_decompress_length ( unsigned char *  input)
static

Definition at line 9720 of file imgui.cpp.

static unsigned int stb_decompress ( unsigned char *  output,
unsigned char *  i,
unsigned int  length 
)
static

Definition at line 9798 of file imgui.cpp.

static void ShowExampleAppConsole ( bool *  opened)
static

Definition at line 9645 of file imgui.cpp.

static void ShowExampleAppLongText ( bool *  opened)
static

Definition at line 9651 of file imgui.cpp.

static void ShowExampleAppAutoResize ( bool *  opened)
static

Definition at line 9268 of file imgui.cpp.

static void ShowExampleAppFixedOverlay ( bool *  opened)
static

Definition at line 9285 of file imgui.cpp.

static void ShowExampleAppManipulatingWindowTitle ( bool *  opened)
static

Definition at line 9301 of file imgui.cpp.

static void ShowExampleAppCustomRendering ( bool *  opened)
static

Definition at line 9328 of file imgui.cpp.

static void stb__match ( unsigned char *  data,
unsigned int  length 
)
static

Definition at line 9728 of file imgui.cpp.

static void stb__lit ( unsigned char *  data,
unsigned int  length 
)
static

Definition at line 9737 of file imgui.cpp.

static unsigned char* stb_decompress_token ( unsigned char *  i)
static

Definition at line 9750 of file imgui.cpp.

static unsigned int stb_adler32 ( unsigned int  adler32,
unsigned char *  buffer,
unsigned int  buflen 
)
static

Definition at line 9767 of file imgui.cpp.

Variable Documentation

const ImVec2 TEX_ATLAS_SIZE(32, 32)
static
const ImVec2 TEX_ATLAS_POS_MOUSE_CURSOR_BLACK(1, 3)
static
const ImVec2 TEX_ATLAS_POS_MOUSE_CURSOR_WHITE(14, 3)
static
const ImVec2 TEX_ATLAS_SIZE_MOUSE_CURSOR(12, 19)
static
ImFontAtlas GDefaultFontAtlas
static

Definition at line 553 of file imgui.cpp.

const float PI = 3.14159265358979323846f

Definition at line 602 of file imgui.cpp.

ImGuiState GImDefaultState
static

Definition at line 1117 of file imgui.cpp.

ImGuiState* GImGui = &GImDefaultState
static

Definition at line 1118 of file imgui.cpp.

ImWchar STB_TEXTEDIT_NEWLINE = '\n'
static

Definition at line 5257 of file imgui.cpp.

ImVec4 GNullClipRect(-9999.0f,-9999.0f,+9999.0f,+9999.0f)
static
unsigned char* stb__barrier
static

Definition at line 9725 of file imgui.cpp.

unsigned char * stb__barrier2
static

Definition at line 9725 of file imgui.cpp.

unsigned char * stb__barrier3
static

Definition at line 9725 of file imgui.cpp.

unsigned char * stb__barrier4
static

Definition at line 9725 of file imgui.cpp.

unsigned char* stb__dout
static

Definition at line 9727 of file imgui.cpp.

const unsigned int proggy_clean_ttf_compressed_size = 9583
static

Definition at line 9832 of file imgui.cpp.

const unsigned int proggy_clean_ttf_compressed_data[9584/4]
static

Definition at line 9833 of file imgui.cpp.