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 <sys/wait.h>
#include <unistd.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 char * ImStrbol (const char *buf_mid_line, const char *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)
 
int ImTextCountLines (const char *in_text, const char *in_text_end)
 
IM_MSVC_RUNTIME_CHECKS_RESTORE IMGUI_API ImU32 ImAlphaBlendColors (ImU32 col_a, ImU32 col_b)
 
ImGuiStoragePair * ImLowerBound (ImGuiStoragePair *in_begin, ImGuiStoragePair *in_end, ImGuiID key)
 
 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 1141 of file imgui.cc.

◆ IMGUI_DEBUG_NAV_SCORING

#define IMGUI_DEBUG_NAV_SCORING   0

Definition at line 1140 of file imgui.cc.

◆ IMGUI_DEFINE_MATH_OPERATORS

#define IMGUI_DEFINE_MATH_OPERATORS

Definition at line 1051 of file imgui.cc.

◆ va_copy

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

Definition at line 2891 of file imgui.cc.

Enumeration Type Documentation

◆ ImGuiDockRequestType

Enumerator
ImGuiDockRequestType_None 
ImGuiDockRequestType_Dock 
ImGuiDockRequestType_Undock 
ImGuiDockRequestType_Split 

Definition at line 16567 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 2564 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 1865 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 1923 of file imgui.cc.

References p3, and p4.

◆ ImFileClose()

bool ImFileClose ( ImFileHandle  f)

Definition at line 2306 of file imgui.cc.

Referenced by ImFileLoadToMemory().

◆ ImFileGetSize()

ImU64 ImFileGetSize ( ImFileHandle  f)

Definition at line 2307 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 2315 of file imgui.cc.

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

◆ ImFileOpen()

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

Definition at line 2281 of file imgui.cc.

Referenced by ImFileLoadToMemory().

◆ ImFileRead()

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

Definition at line 2308 of file imgui.cc.

Referenced by ImFileLoadToMemory().

◆ ImFileWrite()

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

Definition at line 2309 of file imgui.cc.

◆ ImFormatString()

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

Definition at line 2127 of file imgui.cc.

◆ ImFormatStringToTempBuffer()

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

Definition at line 2161 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 2173 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 2145 of file imgui.cc.

Referenced by ImFormatStringToTempBufferV().

◆ ImHashData()

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

Definition at line 2230 of file imgui.cc.

◆ ImHashStr()

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

Definition at line 2246 of file imgui.cc.

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

◆ ImLineClosestPoint()

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

Definition at line 1933 of file imgui.cc.

Referenced by ImBezierCubicClosestPoint(), and ImTriangleClosestPoint().

◆ ImLowerBound()

ImGuiStoragePair * ImLowerBound ( ImGuiStoragePair *  in_begin,
ImGuiStoragePair *  in_end,
ImGuiID  key 
)

Definition at line 2650 of file imgui.cc.

◆ ImStrbol()

const char * ImStrbol ( const char *  buf_mid_line,
const char *  buf_begin 
)

Definition at line 2051 of file imgui.cc.

◆ ImStrchrRange()

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

Definition at line 2030 of file imgui.cc.

◆ ImStrdup()

char * ImStrdup ( const char *  str)

Definition at line 2009 of file imgui.cc.

◆ ImStrdupcpy()

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

Definition at line 2016 of file imgui.cc.

◆ ImStreolRange()

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

Definition at line 2045 of file imgui.cc.

◆ ImStricmp()

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

Definition at line 1986 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 2058 of file imgui.cc.

◆ ImStrlenW()

int ImStrlenW ( const ImWchar *  str)

Definition at line 2036 of file imgui.cc.

◆ ImStrncpy()

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

Definition at line 2000 of file imgui.cc.

Referenced by ImParseFormatTrimDecorations().

◆ ImStrnicmp()

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

Definition at line 1993 of file imgui.cc.

◆ ImStrSkipBlank()

const char * ImStrSkipBlank ( const char *  str)

Definition at line 2096 of file imgui.cc.

◆ ImStrTrimBlanks()

void ImStrTrimBlanks ( char *  buf)

Definition at line 2081 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 2479 of file imgui.cc.

◆ ImTextCountCharsFromUtf8()

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

Definition at line 2431 of file imgui.cc.

References ImTextCharFromUtf8().

◆ ImTextCountLines()

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

Definition at line 2543 of file imgui.cc.

◆ ImTextCountUtf8BytesFromChar()

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

Definition at line 2487 of file imgui.cc.

References ImTextCharFromUtf8().

Referenced by ImTextCountUtf8BytesFromStr().

◆ ImTextCountUtf8BytesFromStr()

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

Definition at line 2518 of file imgui.cc.

References ImTextCountUtf8BytesFromChar().

◆ ImTextFindPreviousUtf8Codepoint()

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

Definition at line 2532 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 2415 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 2502 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 1954 of file imgui.cc.

◆ ImTriangleClosestPoint()

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

Definition at line 1965 of file imgui.cc.

References ImLineClosestPoint().

◆ ImTriangleContainsPoint()

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

Definition at line 1946 of file imgui.cc.

Referenced by ImTriangulator::IsEar().

Variable Documentation

◆ GImGui

ImGuiContext* GImGui = NULL

Definition at line 1276 of file imgui.cc.

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