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

Go to the source code of this file.

Classes

struct  ImGuiPlotArrayGetterData
 
struct  ImGuiTabBarSection
 

Namespaces

namespace  ImStb
 
namespace  ImGui
 

Macros

#define IMGUI_DEFINE_MATH_OPERATORS
 
#define IMSTB_TEXTEDIT_GETNEXTCHARINDEX   IMSTB_TEXTEDIT_GETNEXTCHARINDEX_IMPL
 
#define IMSTB_TEXTEDIT_GETPREVCHARINDEX   IMSTB_TEXTEDIT_GETPREVCHARINDEX_IMPL
 
#define STB_TEXTEDIT_MOVEWORDLEFT   STB_TEXTEDIT_MOVEWORDLEFT_IMPL
 
#define STB_TEXTEDIT_MOVEWORDRIGHT   STB_TEXTEDIT_MOVEWORDRIGHT_IMPL
 
#define STB_TEXTEDIT_K_LEFT   0x200000
 
#define STB_TEXTEDIT_K_RIGHT   0x200001
 
#define STB_TEXTEDIT_K_UP   0x200002
 
#define STB_TEXTEDIT_K_DOWN   0x200003
 
#define STB_TEXTEDIT_K_LINESTART   0x200004
 
#define STB_TEXTEDIT_K_LINEEND   0x200005
 
#define STB_TEXTEDIT_K_TEXTSTART   0x200006
 
#define STB_TEXTEDIT_K_TEXTEND   0x200007
 
#define STB_TEXTEDIT_K_DELETE   0x200008
 
#define STB_TEXTEDIT_K_BACKSPACE   0x200009
 
#define STB_TEXTEDIT_K_UNDO   0x20000A
 
#define STB_TEXTEDIT_K_REDO   0x20000B
 
#define STB_TEXTEDIT_K_WORDLEFT   0x20000C
 
#define STB_TEXTEDIT_K_WORDRIGHT   0x20000D
 
#define STB_TEXTEDIT_K_PGUP   0x20000E
 
#define STB_TEXTEDIT_K_PGDOWN   0x20000F
 
#define STB_TEXTEDIT_K_SHIFT   0x400000
 
#define IMSTB_TEXTEDIT_IMPLEMENTATION
 
#define IMSTB_TEXTEDIT_memmove   memmove
 

Functions

 IM_STATIC_ASSERT (IM_ARRAYSIZE(GDataTypeInfo)==ImGuiDataType_COUNT)
 
const char * ImParseFormatFindStart (const char *fmt)
 
const char * ImParseFormatFindEnd (const char *fmt)
 
const char * ImParseFormatTrimDecorations (const char *fmt, char *buf, size_t buf_size)
 
void ImParseFormatSanitizeForPrinting (const char *fmt_in, char *fmt_out, size_t fmt_out_size)
 
const char * ImParseFormatSanitizeForScanning (const char *fmt_in, char *fmt_out, size_t fmt_out_size)
 
int ImParseFormatPrecision (const char *fmt, int default_precision)
 

Macro Definition Documentation

◆ IMGUI_DEFINE_MATH_OPERATORS

#define IMGUI_DEFINE_MATH_OPERATORS

Definition at line 40 of file imgui_widgets.cc.

◆ IMSTB_TEXTEDIT_GETNEXTCHARINDEX

#define IMSTB_TEXTEDIT_GETNEXTCHARINDEX   IMSTB_TEXTEDIT_GETNEXTCHARINDEX_IMPL

Definition at line 3969 of file imgui_widgets.cc.

◆ IMSTB_TEXTEDIT_GETPREVCHARINDEX

#define IMSTB_TEXTEDIT_GETPREVCHARINDEX   IMSTB_TEXTEDIT_GETPREVCHARINDEX_IMPL

Definition at line 3970 of file imgui_widgets.cc.

◆ IMSTB_TEXTEDIT_IMPLEMENTATION

#define IMSTB_TEXTEDIT_IMPLEMENTATION

Definition at line 4123 of file imgui_widgets.cc.

◆ IMSTB_TEXTEDIT_memmove

#define IMSTB_TEXTEDIT_memmove   memmove

Definition at line 4124 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_K_BACKSPACE

#define STB_TEXTEDIT_K_BACKSPACE   0x200009

Definition at line 4114 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_K_DELETE

#define STB_TEXTEDIT_K_DELETE   0x200008

Definition at line 4113 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_K_DOWN

#define STB_TEXTEDIT_K_DOWN   0x200003

Definition at line 4108 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_K_LEFT

#define STB_TEXTEDIT_K_LEFT   0x200000

Definition at line 4105 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_K_LINEEND

#define STB_TEXTEDIT_K_LINEEND   0x200005

Definition at line 4110 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_K_LINESTART

#define STB_TEXTEDIT_K_LINESTART   0x200004

Definition at line 4109 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_K_PGDOWN

#define STB_TEXTEDIT_K_PGDOWN   0x20000F

Definition at line 4120 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_K_PGUP

#define STB_TEXTEDIT_K_PGUP   0x20000E

Definition at line 4119 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_K_REDO

#define STB_TEXTEDIT_K_REDO   0x20000B

Definition at line 4116 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_K_RIGHT

#define STB_TEXTEDIT_K_RIGHT   0x200001

Definition at line 4106 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_K_SHIFT

#define STB_TEXTEDIT_K_SHIFT   0x400000

Definition at line 4121 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_K_TEXTEND

#define STB_TEXTEDIT_K_TEXTEND   0x200007

Definition at line 4112 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_K_TEXTSTART

#define STB_TEXTEDIT_K_TEXTSTART   0x200006

Definition at line 4111 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_K_UNDO

#define STB_TEXTEDIT_K_UNDO   0x20000A

Definition at line 4115 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_K_UP

#define STB_TEXTEDIT_K_UP   0x200002

Definition at line 4107 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_K_WORDLEFT

#define STB_TEXTEDIT_K_WORDLEFT   0x20000C

Definition at line 4117 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_K_WORDRIGHT

#define STB_TEXTEDIT_K_WORDRIGHT   0x20000D

Definition at line 4118 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_MOVEWORDLEFT

#define STB_TEXTEDIT_MOVEWORDLEFT   STB_TEXTEDIT_MOVEWORDLEFT_IMPL

Definition at line 4059 of file imgui_widgets.cc.

◆ STB_TEXTEDIT_MOVEWORDRIGHT

#define STB_TEXTEDIT_MOVEWORDRIGHT   STB_TEXTEDIT_MOVEWORDRIGHT_IMPL

Definition at line 4060 of file imgui_widgets.cc.

Function Documentation

◆ IM_STATIC_ASSERT()

IM_STATIC_ASSERT ( IM_ARRAYSIZE(GDataTypeInfo)  = =ImGuiDataType_COUNT)

◆ ImParseFormatFindEnd()

const char * ImParseFormatFindEnd ( const char *  fmt)

◆ ImParseFormatFindStart()

const char * ImParseFormatFindStart ( const char *  fmt)

Definition at line 3471 of file imgui_widgets.cc.

Referenced by ImParseFormatPrecision(), and ImParseFormatTrimDecorations().

◆ ImParseFormatPrecision()

int ImParseFormatPrecision ( const char *  fmt,
int  default_precision 
)

Definition at line 3571 of file imgui_widgets.cc.

References ImParseFormatFindStart().

◆ ImParseFormatSanitizeForPrinting()

void ImParseFormatSanitizeForPrinting ( const char *  fmt_in,
char *  fmt_out,
size_t  fmt_out_size 
)

Definition at line 3521 of file imgui_widgets.cc.

References ImParseFormatFindEnd().

◆ ImParseFormatSanitizeForScanning()

const char * ImParseFormatSanitizeForScanning ( const char *  fmt_in,
char *  fmt_out,
size_t  fmt_out_size 
)

Definition at line 3536 of file imgui_widgets.cc.

References ImParseFormatFindEnd().

◆ ImParseFormatTrimDecorations()

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

Definition at line 3506 of file imgui_widgets.cc.

References ImParseFormatFindEnd(), ImParseFormatFindStart(), and ImStrncpy().