|
|
@@ -118,7 +118,7 @@ namespace ImGui
|
|
|
IMGUI_API void ShowUserGuide(); // help block
|
|
|
IMGUI_API void ShowStyleEditor(ImGuiStyle* ref = NULL); // style editor block. you can pass in a reference ImGuiStyle structure to compare to, revert to and save to (else it uses the default style)
|
|
|
IMGUI_API void ShowTestWindow(bool* p_open = NULL); // test window demonstrating ImGui features
|
|
|
- IMGUI_API void ShowMetricsWindow(bool* p_open = NULL); // metrics window for debugging ImGui
|
|
|
+ IMGUI_API void ShowMetricsWindow(bool* p_open = NULL); // metrics window for debugging ImGui (browse draw commands, individual vertices, window list, etc.)
|
|
|
|
|
|
// Window
|
|
|
IMGUI_API bool Begin(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0); // push window to the stack and start appending to it. see .cpp for details. return false when window is collapsed, so you can early out in your code. 'bool* p_open' creates a widget on the upper-right to close the window (which sets your bool to false).
|
|
|
@@ -521,7 +521,7 @@ enum ImGuiInputTextFlags_
|
|
|
ImGuiInputTextFlags_CallbackAlways = 1 << 8, // Call user function every time. User code may query cursor position, modify text buffer.
|
|
|
ImGuiInputTextFlags_CallbackCharFilter = 1 << 9, // Call user function to filter character. Modify data->EventChar to replace/filter input, or return 1 to discard character.
|
|
|
ImGuiInputTextFlags_AllowTabInput = 1 << 10, // Pressing TAB input a '\t' character into the text field
|
|
|
- ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 11, // In multi-line mode, allow exiting edition by pressing Enter. Ctrl+Enter to add new line (by default adds new lines with Enter).
|
|
|
+ ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 11, // In multi-line mode, unfocus with Enter, add new line with Ctrl+Enter (default is opposite: unfocus with Ctrl+Enter, add line with Enter).
|
|
|
ImGuiInputTextFlags_NoHorizontalScroll = 1 << 12, // Disable following the cursor horizontally
|
|
|
ImGuiInputTextFlags_AlwaysInsertMode = 1 << 13, // Insert mode
|
|
|
ImGuiInputTextFlags_ReadOnly = 1 << 14, // Read-only mode
|
|
|
@@ -1023,8 +1023,8 @@ struct ImGuiTextEditCallbackData
|
|
|
int SelectionEnd; // // Read-write
|
|
|
|
|
|
// NB: Helper functions for text manipulation. Calling those function loses selection.
|
|
|
- void DeleteChars(int pos, int bytes_count);
|
|
|
- void InsertChars(int pos, const char* text, const char* text_end = NULL);
|
|
|
+ IMGUI_API void DeleteChars(int pos, int bytes_count);
|
|
|
+ IMGUI_API void InsertChars(int pos, const char* text, const char* text_end = NULL);
|
|
|
bool HasSelection() const { return SelectionStart != SelectionEnd; }
|
|
|
};
|
|
|
|
|
|
@@ -1371,6 +1371,7 @@ struct ImFont
|
|
|
ImFontConfig* ConfigData; // // Pointer within ContainerAtlas->ConfigData
|
|
|
ImFontAtlas* ContainerAtlas; // // What we has been loaded into
|
|
|
float Ascent, Descent; // // Ascent: distance from top to bottom of e.g. 'A' [0..FontSize]
|
|
|
+ int MetricsTotalSurface;// // Total surface in pixels to get an idea of the font rasterization/texture cost (not exact, we approximate the cost of padding between glyphs)
|
|
|
|
|
|
// Methods
|
|
|
IMGUI_API ImFont();
|