openMSX
Classes | Namespaces | Macros | Enumerations | Functions | Variables
imgui.cc File Reference
#include "imgui.h"
#include "imgui_internal.h"
#include <stdio.h>
#include <stdint.h>
Include dependency graph for imgui.cc:

Go to the source code of this file.

Classes

struct  ImGuiResizeGripDef
 
struct  ImGuiResizeBorderDef
 
struct  ImGuiDockRequest
 
struct  ImGuiDockPreviewData
 
struct  ImGuiDockNodeSettings
 
struct  ImGuiDockContextPruneNodeData
 
struct  ImGuiDockNodeTreeInfo
 

Namespaces

namespace  ImGui
 

Macros

#define IMGUI_DEFINE_MATH_OPERATORS
 
#define IMGUI_DEBUG_NAV_SCORING   0
 
#define IMGUI_DEBUG_NAV_RECTS   0
 
#define va_copy(dest, src)   (dest = src)
 

Enumerations

enum  ImGuiDockRequestType { ImGuiDockRequestType_None = 0 , ImGuiDockRequestType_Dock , ImGuiDockRequestType_Undock , ImGuiDockRequestType_Split }
 

Functions

ImVec2 ImBezierCubicClosestPoint (const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, const ImVec2 &p4, const ImVec2 &p, int num_segments)
 
ImVec2 ImBezierCubicClosestPointCasteljau (const ImVec2 &p1, const ImVec2 &p2, const ImVec2 &p3, const ImVec2 &p4, const ImVec2 &p, float tess_tol)
 
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)
 
char * ImStrdupcpy (char *dst, size_t *p_dst_size, const char *src)
 
const char * ImStrchrRange (const char *str, const char *str_end, char c)
 
int ImStrlenW (const ImWchar *str)
 
const char * ImStreolRange (const char *str, const char *str_end)
 
const ImWchar * ImStrbolW (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)
 
const char * ImStrSkipBlank (const char *str)
 
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)
 
void ImFormatStringToTempBuffer (const char **out_buf, const char **out_buf_end, const char *fmt,...)
 
void ImFormatStringToTempBufferV (const char **out_buf, const char **out_buf_end, const char *fmt, va_list args)
 
ImGuiID ImHashData (const void *data_p, size_t data_size, ImGuiID seed)
 
ImGuiID ImHashStr (const char *data_p, size_t data_size, ImGuiID seed)
 
ImFileHandle ImFileOpen (const char *filename, const char *mode)
 
bool ImFileClose (ImFileHandle f)
 
ImU64 ImFileGetSize (ImFileHandle f)
 
ImU64 ImFileRead (void *data, ImU64 sz, ImU64 count, ImFileHandle f)
 
ImU64 ImFileWrite (const void *data, ImU64 sz, ImU64 count, ImFileHandle f)
 
void * ImFileLoadToMemory (const char *filename, const char *mode, size_t *out_file_size, int padding_bytes)
 
IM_MSVC_RUNTIME_CHECKS_OFF 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)
 
const char * ImTextCharToUtf8 (char out_buf[5], unsigned int c)
 
int ImTextCountUtf8BytesFromChar (const char *in_text, const char *in_text_end)
 
int ImTextStrToUtf8 (char *out_buf, int out_buf_size, const ImWchar *in_text, const ImWchar *in_text_end)
 
int ImTextCountUtf8BytesFromStr (const ImWchar *in_text, const ImWchar *in_text_end)
 
const char * ImTextFindPreviousUtf8Codepoint (const char *in_text_start, const char *in_text_curr)
 
IM_MSVC_RUNTIME_CHECKS_RESTORE IMGUI_API ImU32 ImAlphaBlendColors (ImU32 col_a, ImU32 col_b)
 
 IM_STATIC_ASSERT (ImGuiKey_NamedKey_COUNT==IM_ARRAYSIZE(GKeyNames))
 

Variables

const ImGuiID ImGui::IMGUI_VIEWPORT_DEFAULT_ID = 0x11111111
 
ImGuiContext * GImGui = NULL
 

Macro Definition Documentation

◆ IMGUI_DEBUG_NAV_RECTS

#define IMGUI_DEBUG_NAV_RECTS   0

Definition at line 1056 of file imgui.cc.

◆ IMGUI_DEBUG_NAV_SCORING

#define IMGUI_DEBUG_NAV_SCORING   0

Definition at line 1055 of file imgui.cc.

◆ IMGUI_DEFINE_MATH_OPERATORS

#define IMGUI_DEFINE_MATH_OPERATORS

Definition at line 969 of file imgui.cc.

◆ va_copy

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

Definition at line 2719 of file imgui.cc.

Enumeration Type Documentation

◆ ImGuiDockRequestType

Enumerator
ImGuiDockRequestType_None 
ImGuiDockRequestType_Dock 
ImGuiDockRequestType_Undock 
ImGuiDockRequestType_Split 

Definition at line 15580 of file imgui.cc.

Function Documentation

◆ IM_STATIC_ASSERT()

IM_STATIC_ASSERT ( ImGuiKey_NamedKey_COUNT  = =IM_ARRAYSIZE(GKeyNames))

◆ ImAlphaBlendColors()

IM_MSVC_RUNTIME_CHECKS_RESTORE IMGUI_API ImU32 ImAlphaBlendColors ( ImU32  col_a,
ImU32  col_b 
)

Definition at line 2390 of file imgui.cc.

References g, and t.

◆ ImBezierCubicClosestPoint()

ImVec2 ImBezierCubicClosestPoint ( const ImVec2 &  p1,
const ImVec2 &  p2,
const ImVec2 &  p3,
const ImVec2 &  p4,
const ImVec2 &  p,
int  num_segments 
)

Definition at line 1709 of file imgui.cc.

References ImBezierCubicCalc(), ImLineClosestPoint(), p3, and p4.

◆ ImBezierCubicClosestPointCasteljau()

ImVec2 ImBezierCubicClosestPointCasteljau ( const ImVec2 &  p1,
const ImVec2 &  p2,
const ImVec2 &  p3,
const ImVec2 &  p4,
const ImVec2 &  p,
float  tess_tol 
)

Definition at line 1767 of file imgui.cc.

References p3, and p4.

◆ ImFileClose()

bool ImFileClose ( ImFileHandle  f)

Definition at line 2146 of file imgui.cc.

Referenced by ImFileLoadToMemory().

◆ ImFileGetSize()

ImU64 ImFileGetSize ( ImFileHandle  f)

Definition at line 2147 of file imgui.cc.

Referenced by ImFileLoadToMemory().

◆ ImFileLoadToMemory()

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

Definition at line 2155 of file imgui.cc.

References ImFileClose(), ImFileGetSize(), ImFileOpen(), and ImFileRead().

◆ ImFileOpen()

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

Definition at line 2121 of file imgui.cc.

Referenced by ImFileLoadToMemory().

◆ ImFileRead()

ImU64 ImFileRead ( void *  data,
ImU64  sz,
ImU64  count,
ImFileHandle  f 
)

Definition at line 2148 of file imgui.cc.

Referenced by ImFileLoadToMemory().

◆ ImFileWrite()

ImU64 ImFileWrite ( const void *  data,
ImU64  sz,
ImU64  count,
ImFileHandle  f 
)

Definition at line 2149 of file imgui.cc.

◆ ImFormatString()

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

Definition at line 1971 of file imgui.cc.

◆ ImFormatStringToTempBuffer()

void ImFormatStringToTempBuffer ( const char **  out_buf,
const char **  out_buf_end,
const char *  fmt,
  ... 
)

Definition at line 2005 of file imgui.cc.

References ImFormatStringToTempBufferV().

◆ ImFormatStringToTempBufferV()

void ImFormatStringToTempBufferV ( const char **  out_buf,
const char **  out_buf_end,
const char *  fmt,
va_list  args 
)

Definition at line 2013 of file imgui.cc.

References g, GImGui, and ImFormatStringV().

Referenced by ImFormatStringToTempBuffer().

◆ ImFormatStringV()

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

Definition at line 1989 of file imgui.cc.

Referenced by ImFormatStringToTempBufferV().

◆ ImHashData()

ImGuiID ImHashData ( const void *  data_p,
size_t  data_size,
ImGuiID  seed 
)

Definition at line 2070 of file imgui.cc.

◆ ImHashStr()

ImGuiID ImHashStr ( const char *  data_p,
size_t  data_size,
ImGuiID  seed 
)

Definition at line 2086 of file imgui.cc.

Referenced by openmsx::ImGuiManager::ImGuiManager().

◆ ImLineClosestPoint()

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

Definition at line 1777 of file imgui.cc.

Referenced by ImBezierCubicClosestPoint(), and ImTriangleClosestPoint().

◆ ImStrbolW()

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

Definition at line 1895 of file imgui.cc.

◆ ImStrchrRange()

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

Definition at line 1874 of file imgui.cc.

◆ ImStrdup()

char * ImStrdup ( const char *  str)

Definition at line 1853 of file imgui.cc.

◆ ImStrdupcpy()

char * ImStrdupcpy ( char *  dst,
size_t *  p_dst_size,
const char *  src 
)

Definition at line 1860 of file imgui.cc.

◆ ImStreolRange()

const char * ImStreolRange ( const char *  str,
const char *  str_end 
)

Definition at line 1889 of file imgui.cc.

◆ ImStricmp()

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

Definition at line 1830 of file imgui.cc.

◆ ImStristr()

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

Definition at line 1902 of file imgui.cc.

◆ ImStrlenW()

int ImStrlenW ( const ImWchar *  str)

Definition at line 1880 of file imgui.cc.

◆ ImStrncpy()

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

Definition at line 1844 of file imgui.cc.

Referenced by ImParseFormatTrimDecorations().

◆ ImStrnicmp()

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

Definition at line 1837 of file imgui.cc.

◆ ImStrSkipBlank()

const char * ImStrSkipBlank ( const char *  str)

Definition at line 1940 of file imgui.cc.

◆ ImStrTrimBlanks()

void ImStrTrimBlanks ( char *  buf)

Definition at line 1925 of file imgui.cc.

◆ ImTextCharFromUtf8()

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

◆ ImTextCharToUtf8()

const char * ImTextCharToUtf8 ( char  out_buf[5],
unsigned int  c 
)

Definition at line 2319 of file imgui.cc.

◆ ImTextCountCharsFromUtf8()

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

Definition at line 2271 of file imgui.cc.

References ImTextCharFromUtf8().

◆ ImTextCountUtf8BytesFromChar()

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

Definition at line 2327 of file imgui.cc.

References ImTextCharFromUtf8().

Referenced by ImTextCountUtf8BytesFromStr().

◆ ImTextCountUtf8BytesFromStr()

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

Definition at line 2358 of file imgui.cc.

References ImTextCountUtf8BytesFromChar().

◆ ImTextFindPreviousUtf8Codepoint()

const char * ImTextFindPreviousUtf8Codepoint ( const char *  in_text_start,
const char *  in_text_curr 
)

Definition at line 2372 of file imgui.cc.

◆ ImTextStrFromUtf8()

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

Definition at line 2255 of file imgui.cc.

References ImTextCharFromUtf8().

◆ ImTextStrToUtf8()

int ImTextStrToUtf8 ( char *  out_buf,
int  out_buf_size,
const ImWchar *  in_text,
const ImWchar *  in_text_end 
)

Definition at line 2342 of file imgui.cc.

◆ ImTriangleBarycentricCoords()

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

Definition at line 1798 of file imgui.cc.

◆ ImTriangleClosestPoint()

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

Definition at line 1809 of file imgui.cc.

References ImLineClosestPoint().

◆ ImTriangleContainsPoint()

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

Definition at line 1790 of file imgui.cc.

Referenced by ImTriangulator::IsEar().

Variable Documentation

◆ GImGui

ImGuiContext* GImGui = NULL

Definition at line 1185 of file imgui.cc.

Referenced by ImFormatStringToTempBufferV(), and ImGui::ShowFontAtlas().