Ylva And Malin
Data Structures | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
imgui.cpp File Reference
#include "imgui.h"
#include "imgui_internal.h"
#include <ctype.h>
#include <stdio.h>
#include <stdint.h>
#include "stb_textedit.h"
Include dependency graph for imgui.cpp:

Data Structures

struct  ImGuiResizeGripDef
 
struct  ImGuiStyleVarInfo
 
struct  ImGuiDataTypeInfo
 
struct  ImGuiPlotArrayGetterData
 
struct  ImGuiStb::StbFindState
 

Namespaces

 ImGui
 
 ImGuiStb
 

Macros

#define IMGUI_DEFINE_MATH_OPERATORS
 
#define IMGUI_DEBUG_NAV_SCORING   0
 
#define IMGUI_DEBUG_NAV_RECTS   0
 
#define IMGUI_CDECL
 
#define IM_STATIC_ASSERT(_COND)   typedef char static_assertion_##__line__[(_COND)?1:-1]
 
#define IM_F32_TO_INT8_UNBOUND(_VAL)   ((int)((_VAL) * 255.0f + ((_VAL)>=0 ? 0.5f : -0.5f)))
 
#define IM_F32_TO_INT8_SAT(_VAL)   ((int)(ImSaturate(_VAL) * 255.0f + 0.5f))
 
#define va_copy(dest, src)   (dest = src)
 
#define NAV_MAP_KEY(_KEY, _NAV_INPUT)   if (IsKeyDown(g.IO.KeyMap[_KEY])) { g.IO.NavInputs[_NAV_INPUT] = 1.0f; g.NavInputSource = ImGuiInputSource_NavKeyboard; }
 
#define STB_TEXTEDIT_MOVEWORDLEFT   STB_TEXTEDIT_MOVEWORDLEFT_IMPL
 
#define STB_TEXTEDIT_MOVEWORDRIGHT   STB_TEXTEDIT_MOVEWORDRIGHT_IMPL
 
#define STB_TEXTEDIT_K_LEFT   0x10000
 
#define STB_TEXTEDIT_K_RIGHT   0x10001
 
#define STB_TEXTEDIT_K_UP   0x10002
 
#define STB_TEXTEDIT_K_DOWN   0x10003
 
#define STB_TEXTEDIT_K_LINESTART   0x10004
 
#define STB_TEXTEDIT_K_LINEEND   0x10005
 
#define STB_TEXTEDIT_K_TEXTSTART   0x10006
 
#define STB_TEXTEDIT_K_TEXTEND   0x10007
 
#define STB_TEXTEDIT_K_DELETE   0x10008
 
#define STB_TEXTEDIT_K_BACKSPACE   0x10009
 
#define STB_TEXTEDIT_K_UNDO   0x1000A
 
#define STB_TEXTEDIT_K_REDO   0x1000B
 
#define STB_TEXTEDIT_K_WORDLEFT   0x1000C
 
#define STB_TEXTEDIT_K_WORDRIGHT   0x1000D
 
#define STB_TEXTEDIT_K_SHIFT   0x20000
 
#define STB_TEXTEDIT_IMPLEMENTATION
 

Typedefs

typedef char static_assertion___line__[(((int) (sizeof(GDataTypeInfo)/sizeof(*GDataTypeInfo)))==ImGuiDataType_COUNT)?1:-1]
 

Enumerations

enum  ImGuiPopupPositionPolicy {
  ImGuiPopupPositionPolicy_Default,
  ImGuiPopupPositionPolicy_ComboBox
}
 

Functions

ImVec2 ImLineClosestPoint (const ImVec2 &a, const ImVec2 &b, const ImVec2 &p)
 
bool ImTriangleContainsPoint (const ImVec2 &a, const ImVec2 &b, const ImVec2 &c, const ImVec2 &p)
 
void ImTriangleBarycentricCoords (const ImVec2 &a, const ImVec2 &b, const ImVec2 &c, const ImVec2 &p, float &out_u, float &out_v, float &out_w)
 
ImVec2 ImTriangleClosestPoint (const ImVec2 &a, const ImVec2 &b, const ImVec2 &c, const ImVec2 &p)
 
int ImStricmp (const char *str1, const char *str2)
 
int ImStrnicmp (const char *str1, const char *str2, size_t count)
 
void ImStrncpy (char *dst, const char *src, size_t count)
 
char * ImStrdup (const char *str)
 
const char * ImStrchrRange (const char *str, const char *str_end, char c)
 
int ImStrlenW (const ImWchar *str)
 
const ImWcharImStrbolW (const ImWchar *buf_mid_line, const ImWchar *buf_begin)
 
const char * ImStristr (const char *haystack, const char *haystack_end, const char *needle, const char *needle_end)
 
void ImStrTrimBlanks (char *buf)
 
int ImFormatString (char *buf, size_t buf_size, const char *fmt,...)
 
int ImFormatStringV (char *buf, size_t buf_size, const char *fmt, va_list args)
 
ImU32 ImHash (const void *data, int data_size, ImU32 seed)
 
int ImTextCharFromUtf8 (unsigned int *out_char, const char *in_text, const char *in_text_end)
 
int ImTextStrFromUtf8 (ImWchar *buf, int buf_size, const char *in_text, const char *in_text_end, const char **in_text_remaining)
 
int ImTextCountCharsFromUtf8 (const char *in_text, const char *in_text_end)
 
int ImTextStrToUtf8 (char *buf, int buf_size, const ImWchar *in_text, const ImWchar *in_text_end)
 
int ImTextCountUtf8BytesFromStr (const ImWchar *in_text, const ImWchar *in_text_end)
 
FILE * ImFileOpen (const char *filename, const char *mode)
 
voidImFileLoadToMemory (const char *filename, const char *file_open_mode, size_t *out_file_size, int padding_bytes)
 
const char * ImParseFormatFindStart (const char *fmt)
 
const char * ImParseFormatFindEnd (const char *fmt)
 
const char * ImParseFormatTrimDecorations (const char *fmt, char *buf, int buf_size)
 
int ImParseFormatPrecision (const char *fmt, int default_precision)
 

Variables

ImGuiContextGImGui = NULL
 
const ImGuiResizeGripDef resize_grip_def [4]
 

Macro Definition Documentation

#define IM_F32_TO_INT8_SAT (   _VAL)    ((int)(ImSaturate(_VAL) * 255.0f + 0.5f))
#define IM_F32_TO_INT8_UNBOUND (   _VAL)    ((int)((_VAL) * 255.0f + ((_VAL)>=0 ? 0.5f : -0.5f)))
#define IM_STATIC_ASSERT (   _COND)    typedef char static_assertion_##__line__[(_COND)?1:-1]
#define IMGUI_CDECL
#define IMGUI_DEBUG_NAV_RECTS   0
#define IMGUI_DEBUG_NAV_SCORING   0
#define IMGUI_DEFINE_MATH_OPERATORS
#define NAV_MAP_KEY (   _KEY,
  _NAV_INPUT 
)    if (IsKeyDown(g.IO.KeyMap[_KEY])) { g.IO.NavInputs[_NAV_INPUT] = 1.0f; g.NavInputSource = ImGuiInputSource_NavKeyboard; }
#define STB_TEXTEDIT_IMPLEMENTATION
#define STB_TEXTEDIT_K_BACKSPACE   0x10009
#define STB_TEXTEDIT_K_DELETE   0x10008
#define STB_TEXTEDIT_K_DOWN   0x10003
#define STB_TEXTEDIT_K_LEFT   0x10000
#define STB_TEXTEDIT_K_LINEEND   0x10005
#define STB_TEXTEDIT_K_LINESTART   0x10004
#define STB_TEXTEDIT_K_REDO   0x1000B
#define STB_TEXTEDIT_K_RIGHT   0x10001
#define STB_TEXTEDIT_K_SHIFT   0x20000
#define STB_TEXTEDIT_K_TEXTEND   0x10007
#define STB_TEXTEDIT_K_TEXTSTART   0x10006
#define STB_TEXTEDIT_K_UNDO   0x1000A
#define STB_TEXTEDIT_K_UP   0x10002
#define STB_TEXTEDIT_K_WORDLEFT   0x1000C
#define STB_TEXTEDIT_K_WORDRIGHT   0x1000D
#define STB_TEXTEDIT_MOVEWORDLEFT   STB_TEXTEDIT_MOVEWORDLEFT_IMPL
#define STB_TEXTEDIT_MOVEWORDRIGHT   STB_TEXTEDIT_MOVEWORDRIGHT_IMPL
#define va_copy (   dest,
  src 
)    (dest = src)

Typedef Documentation

typedef char static_assertion___line__[(((int)(sizeof(GDataTypeInfo)/sizeof(*GDataTypeInfo)))==ImGuiDataType_COUNT)?1:-1]

Enumeration Type Documentation

Enumerator
ImGuiPopupPositionPolicy_Default 
ImGuiPopupPositionPolicy_ComboBox 

Function Documentation

void* ImFileLoadToMemory ( const char *  filename,
const char *  file_open_mode,
size_t *  out_file_size,
int  padding_bytes 
)

Here is the call graph for this function:

Here is the caller graph for this function:

FILE* ImFileOpen ( const char *  filename,
const char *  mode 
)

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

ImU32 ImHash ( const void data,
int  data_size,
ImU32  seed 
)

Here is the caller graph for this function:

ImVec2 ImLineClosestPoint ( const ImVec2 a,
const ImVec2 b,
const ImVec2 p 
)

Here is the caller graph for this function:

const char* ImParseFormatFindEnd ( const char *  fmt)

Here is the caller graph for this function:

const char* ImParseFormatFindStart ( const char *  fmt)

Here is the caller graph for this function:

int ImParseFormatPrecision ( const char *  fmt,
int  default_precision 
)

Here is the call graph for this function:

Here is the caller graph for this function:

const char* ImParseFormatTrimDecorations ( const char *  fmt,
char *  buf,
int  buf_size 
)

Here is the call graph for this function:

Here is the caller graph for this function:

const ImWchar* ImStrbolW ( const ImWchar buf_mid_line,
const ImWchar buf_begin 
)

Here is the caller graph for this function:

const char* ImStrchrRange ( const char *  str,
const char *  str_end,
char  c 
)

Here is the caller graph for this function:

char* ImStrdup ( const char *  str)

Here is the call graph for this function:

Here is the caller graph for this function:

int ImStricmp ( const char *  str1,
const char *  str2 
)
const char* ImStristr ( const char *  haystack,
const char *  haystack_end,
const char *  needle,
const char *  needle_end 
)

Here is the caller graph for this function:

int ImStrlenW ( const ImWchar str)

Here is the caller graph for this function:

void ImStrncpy ( char *  dst,
const char *  src,
size_t  count 
)

Here is the caller graph for this function:

int ImStrnicmp ( const char *  str1,
const char *  str2,
size_t  count 
)
void ImStrTrimBlanks ( char *  buf)

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

int ImTextCountUtf8BytesFromStr ( const ImWchar in_text,
const ImWchar in_text_end 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int ImTextStrFromUtf8 ( ImWchar buf,
int  buf_size,
const char *  in_text,
const char *  in_text_end,
const char **  in_text_remaining 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int ImTextStrToUtf8 ( char *  buf,
int  buf_size,
const ImWchar in_text,
const ImWchar in_text_end 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void ImTriangleBarycentricCoords ( const ImVec2 a,
const ImVec2 b,
const ImVec2 c,
const ImVec2 p,
float &  out_u,
float &  out_v,
float &  out_w 
)

Here is the caller graph for this function:

ImVec2 ImTriangleClosestPoint ( const ImVec2 a,
const ImVec2 b,
const ImVec2 c,
const ImVec2 p 
)

Here is the call graph for this function:

Here is the caller graph for this function:

bool ImTriangleContainsPoint ( const ImVec2 a,
const ImVec2 b,
const ImVec2 c,
const ImVec2 p 
)

Here is the caller graph for this function:

Variable Documentation

ImGuiContext* GImGui = NULL
const ImGuiResizeGripDef resize_grip_def[4]
Initial value:
=
{
{ ImVec2(1,1), ImVec2(-1,-1), 0, 3 },
{ ImVec2(0,1), ImVec2(+1,-1), 3, 6 },
{ ImVec2(0,0), ImVec2(+1,+1), 6, 9 },
{ ImVec2(1,0), ImVec2(-1,+1), 9,12 },
}
Definition: imgui.h:121