Lines Matching refs:IMGUI_API

54 #ifndef IMGUI_API
55 #define IMGUI_API macro
58 #define IMGUI_IMPL_API IMGUI_API
201 IMGUI_API ImGuiContext* CreateContext(ImFontAtlas* shared_font_atlas = NULL);
202IMGUI_API void DestroyContext(ImGuiContext* ctx = NULL); // NULL = destroy current cont…
203 IMGUI_API ImGuiContext* GetCurrentContext();
204 IMGUI_API void SetCurrentContext(ImGuiContext* ctx);
205IMGUI_API bool DebugCheckVersionAndDataLayout(const char* version_str, size_t sz_io, size…
208IMGUI_API ImGuiIO& GetIO(); // access the IO structure (mo…
209IMGUI_API ImGuiStyle& GetStyle(); // access the Style structure …
210IMGUI_API void NewFrame(); // start a new ImGui frame, yo…
211IMGUI_API void EndFrame(); // ends the ImGui frame. autom…
212IMGUI_API void Render(); // ends the ImGui frame, final…
213IMGUI_API ImDrawData* GetDrawData(); // valid after Render() and un…
216IMGUI_API void ShowDemoWindow(bool* p_open = NULL); // create demo/test window (pr…
217IMGUI_API void ShowAboutWindow(bool* p_open = NULL); // create about window. displa…
218IMGUI_API void ShowMetricsWindow(bool* p_open = NULL); // create metrics window. disp…
219IMGUI_API void ShowStyleEditor(ImGuiStyle* ref = NULL); // add style editor block (not…
220IMGUI_API bool ShowStyleSelector(const char* label); // add style selector block (n…
221IMGUI_API void ShowFontSelector(const char* label); // add font selector block (no…
222IMGUI_API void ShowUserGuide(); // add basic help/info block (…
223IMGUI_API const char* GetVersion(); // get the compiled version st…
226IMGUI_API void StyleColorsDark(ImGuiStyle* dst = NULL); // new, recommended style (def…
227 IMGUI_API void StyleColorsClassic(ImGuiStyle* dst = NULL); // classic imgui style
228IMGUI_API void StyleColorsLight(ImGuiStyle* dst = NULL); // best used with borders and …
240IMGUI_API bool Begin(const char* name, bool* p_open = NULL, ImGuiWindowFlags flags = 0);
241 IMGUI_API void End();
248IMGUI_API bool BeginChild(const char* str_id, const ImVec2& size = ImVec2(0,0), bool bord…
249IMGUI_API bool BeginChild(ImGuiID id, const ImVec2& size = ImVec2(0,0), bool border = fal…
250 IMGUI_API void EndChild();
254 IMGUI_API bool IsWindowAppearing();
255 IMGUI_API bool IsWindowCollapsed();
256IMGUI_API bool IsWindowFocused(ImGuiFocusedFlags flags=0); // is current window focused? …
257IMGUI_API bool IsWindowHovered(ImGuiHoveredFlags flags=0); // is current window hovered (…
258IMGUI_API ImDrawList* GetWindowDrawList(); // get draw list associated to…
260IMGUI_API ImVec2 GetWindowPos(); // get current window position…
261 IMGUI_API ImVec2 GetWindowSize(); // get current window size
262IMGUI_API float GetWindowWidth(); // get current window width (s…
263IMGUI_API float GetWindowHeight(); // get current window height (…
264IMGUI_API ImVec2 GetContentRegionMax(); // current content boundaries …
265IMGUI_API ImVec2 GetContentRegionAvail(); // == GetContentRegionMax() - …
266 IMGUI_API float GetContentRegionAvailWidth(); //
267IMGUI_API ImVec2 GetWindowContentRegionMin(); // content boundaries min (rou…
268IMGUI_API ImVec2 GetWindowContentRegionMax(); // content boundaries max (rou…
269 IMGUI_API float GetWindowContentRegionWidth(); //
271IMGUI_API void SetNextWindowPos(const ImVec2& pos, ImGuiCond cond = 0, const ImVec2& pivo…
272IMGUI_API void SetNextWindowSize(const ImVec2& size, ImGuiCond cond = 0); …
273IMGUI_API void SetNextWindowSizeConstraints(const ImVec2& size_min, const ImVec2& size_ma…
274IMGUI_API void SetNextWindowContentSize(const ImVec2& size); …
275IMGUI_API void SetNextWindowCollapsed(bool collapsed, ImGuiCond cond = 0); …
276IMGUI_API void SetNextWindowFocus(); …
277IMGUI_API void SetNextWindowBgAlpha(float alpha); …
278IMGUI_API void SetWindowPos(const ImVec2& pos, ImGuiCond cond = 0); …
279IMGUI_API void SetWindowSize(const ImVec2& size, ImGuiCond cond = 0); …
280IMGUI_API void SetWindowCollapsed(bool collapsed, ImGuiCond cond = 0); …
281IMGUI_API void SetWindowFocus(); …
282IMGUI_API void SetWindowFontScale(float scale); …
283IMGUI_API void SetWindowPos(const char* name, const ImVec2& pos, ImGuiCond cond = 0); …
284IMGUI_API void SetWindowSize(const char* name, const ImVec2& size, ImGuiCond cond = 0); …
285IMGUI_API void SetWindowCollapsed(const char* name, bool collapsed, ImGuiCond cond = 0); …
286IMGUI_API void SetWindowFocus(const char* name); …
289IMGUI_API float GetScrollX(); // get scr…
290IMGUI_API float GetScrollY(); // get scr…
291IMGUI_API float GetScrollMaxX(); // get max…
292IMGUI_API float GetScrollMaxY(); // get max…
293IMGUI_API void SetScrollX(float scroll_x); // set scr…
294IMGUI_API void SetScrollY(float scroll_y); // set scr…
295IMGUI_API void SetScrollHereY(float center_y_ratio = 0.5f); // adjust …
296IMGUI_API void SetScrollFromPosY(float local_y, float center_y_ratio = 0.5f); // adjust …
299IMGUI_API void PushFont(ImFont* font); // use NUL…
300 IMGUI_API void PopFont();
301 IMGUI_API void PushStyleColor(ImGuiCol idx, ImU32 col);
302 IMGUI_API void PushStyleColor(ImGuiCol idx, const ImVec4& col);
303 IMGUI_API void PopStyleColor(int count = 1);
304 IMGUI_API void PushStyleVar(ImGuiStyleVar idx, float val);
305 IMGUI_API void PushStyleVar(ImGuiStyleVar idx, const ImVec2& val);
306 IMGUI_API void PopStyleVar(int count = 1);
307IMGUI_API const ImVec4& GetStyleColorVec4(ImGuiCol idx); // retriev…
308IMGUI_API ImFont* GetFont(); // get cur…
309IMGUI_API float GetFontSize(); // get cur…
310IMGUI_API ImVec2 GetFontTexUvWhitePixel(); // get UV …
311IMGUI_API ImU32 GetColorU32(ImGuiCol idx, float alpha_mul = 1.0f); // retriev…
312IMGUI_API ImU32 GetColorU32(const ImVec4& col); // retriev…
313IMGUI_API ImU32 GetColorU32(ImU32 col); // retriev…
316IMGUI_API void PushItemWidth(float item_width); // width o…
317 IMGUI_API void PopItemWidth();
318IMGUI_API float CalcItemWidth(); // width o…
319IMGUI_API void PushTextWrapPos(float wrap_local_pos_x = 0.0f); // word-wr…
320 IMGUI_API void PopTextWrapPos();
321IMGUI_API void PushAllowKeyboardFocus(bool allow_keyboard_focus); // allow f…
322 IMGUI_API void PopAllowKeyboardFocus();
323IMGUI_API void PushButtonRepeat(bool repeat); // in 'rep…
324 IMGUI_API void PopButtonRepeat();
329IMGUI_API void Separator(); // separat…
330IMGUI_API void SameLine(float local_pos_x = 0.0f, float spacing_w = -1.0f); // call be…
331IMGUI_API void NewLine(); // undo a …
332IMGUI_API void Spacing(); // add ver…
333IMGUI_API void Dummy(const ImVec2& size); // add a d…
334IMGUI_API void Indent(float indent_w = 0.0f); // move co…
335IMGUI_API void Unindent(float indent_w = 0.0f); // move co…
336IMGUI_API void BeginGroup(); // lock ho…
337IMGUI_API void EndGroup(); // unlock …
338IMGUI_API ImVec2 GetCursorPos(); // cursor …
339IMGUI_API float GetCursorPosX(); // (some…
340IMGUI_API float GetCursorPosY(); // othe…
341IMGUI_API void SetCursorPos(const ImVec2& local_pos); // are …
342IMGUI_API void SetCursorPosX(float local_x); // GetW…
343 IMGUI_API void SetCursorPosY(float local_y); //
344IMGUI_API ImVec2 GetCursorStartPos(); // initial…
345IMGUI_API ImVec2 GetCursorScreenPos(); // cursor …
346IMGUI_API void SetCursorScreenPos(const ImVec2& pos); // cursor …
347IMGUI_API void AlignTextToFramePadding(); // vertica…
348IMGUI_API float GetTextLineHeight(); // ~ FontS…
349IMGUI_API float GetTextLineHeightWithSpacing(); // ~ FontS…
350IMGUI_API float GetFrameHeight(); // ~ FontS…
351IMGUI_API float GetFrameHeightWithSpacing(); // ~ FontS…
360IMGUI_API void PushID(const char* str_id); // push st…
361IMGUI_API void PushID(const char* str_id_begin, const char* str_id_end); // push st…
362IMGUI_API void PushID(const void* ptr_id); // push po…
363IMGUI_API void PushID(int int_id); // push in…
364IMGUI_API void PopID(); // pop fro…
365IMGUI_API ImGuiID GetID(const char* str_id); // calcula…
366 IMGUI_API ImGuiID GetID(const char* str_id_begin, const char* str_id_end);
367 IMGUI_API ImGuiID GetID(const void* ptr_id);
370IMGUI_API void TextUnformatted(const char* text, const char* text_end = NULL); …
371IMGUI_API void Text(const char* fmt, ...) IM_FMTARGS…
372IMGUI_API void TextV(const char* fmt, va_list args) IM_FMTLIST…
373IMGUI_API void TextColored(const ImVec4& col, const char* fmt, ...) IM_FMTARGS…
374IMGUI_API void TextColoredV(const ImVec4& col, const char* fmt, va_list args) IM_FMTLIST…
375IMGUI_API void TextDisabled(const char* fmt, ...) IM_FMTARGS…
376IMGUI_API void TextDisabledV(const char* fmt, va_list args) IM_FMTLIST…
377IMGUI_API void TextWrapped(const char* fmt, ...) IM_FMTARGS…
378IMGUI_API void TextWrappedV(const char* fmt, va_list args) IM_FMTLIST…
379IMGUI_API void LabelText(const char* label, const char* fmt, ...) IM_FMTARGS…
380IMGUI_API void LabelTextV(const char* label, const char* fmt, va_list args) IM_FMTLIST…
381IMGUI_API void BulletText(const char* fmt, ...) IM_FMTARGS…
382IMGUI_API void BulletTextV(const char* fmt, va_list args) IM_FMTLIST…
386IMGUI_API bool Button(const char* label, const ImVec2& size = ImVec2(0,0)); // button
387IMGUI_API bool SmallButton(const char* label); // button …
388IMGUI_API bool InvisibleButton(const char* str_id, const ImVec2& size); // button …
389IMGUI_API bool ArrowButton(const char* str_id, ImGuiDir dir); // square …
390IMGUI_API void Image(ImTextureID user_texture_id, const ImVec2& size, const ImVec2& uv0 =…
391IMGUI_API bool ImageButton(ImTextureID user_texture_id, const ImVec2& size, const ImVec2&…
392 IMGUI_API bool Checkbox(const char* label, bool* v);
393IMGUI_API bool CheckboxFlags(const char* label, unsigned int* flags, unsigned int flags_v…
394IMGUI_API bool RadioButton(const char* label, bool active); // use wit…
395IMGUI_API bool RadioButton(const char* label, int* v, int v_button); // shortcu…
396IMGUI_API void ProgressBar(float fraction, const ImVec2& size_arg = ImVec2(-1,0), const c…
397IMGUI_API void Bullet(); // draw a …
402IMGUI_API bool BeginCombo(const char* label, const char* preview_value, ImGuiComboFlags f…
403 IMGUI_API void EndCombo(); // only call EndCombo() if BeginCombo() returns true!
404IMGUI_API bool Combo(const char* label, int* current_item, const char* const items[], int…
405IMGUI_API bool Combo(const char* label, int* current_item, const char* items_separated_by…
406IMGUI_API bool Combo(const char* label, int* current_item, bool(*items_getter)(void* data…
413IMGUI_API bool DragFloat(const char* label, float* v, float v_speed = 1.0f, float v_min =…
414IMGUI_API bool DragFloat2(const char* label, float v[2], float v_speed = 1.0f, float v_mi…
415IMGUI_API bool DragFloat3(const char* label, float v[3], float v_speed = 1.0f, float v_mi…
416IMGUI_API bool DragFloat4(const char* label, float v[4], float v_speed = 1.0f, float v_mi…
417IMGUI_API bool DragFloatRange2(const char* label, float* v_current_min, float* v_current_…
418IMGUI_API bool DragInt(const char* label, int* v, float v_speed = 1.0f, int v_min = 0, in…
419IMGUI_API bool DragInt2(const char* label, int v[2], float v_speed = 1.0f, int v_min = 0,…
420IMGUI_API bool DragInt3(const char* label, int v[3], float v_speed = 1.0f, int v_min = 0,…
421IMGUI_API bool DragInt4(const char* label, int v[4], float v_speed = 1.0f, int v_min = 0,…
422IMGUI_API bool DragIntRange2(const char* label, int* v_current_min, int* v_current_max, f…
423IMGUI_API bool DragScalar(const char* label, ImGuiDataType data_type, void* v, float v_sp…
424IMGUI_API bool DragScalarN(const char* label, ImGuiDataType data_type, void* v, int compo…
429IMGUI_API bool SliderFloat(const char* label, float* v, float v_min, float v_max, const c…
430IMGUI_API bool SliderFloat2(const char* label, float v[2], float v_min, float v_max, cons…
431IMGUI_API bool SliderFloat3(const char* label, float v[3], float v_min, float v_max, cons…
432IMGUI_API bool SliderFloat4(const char* label, float v[4], float v_min, float v_max, cons…
433IMGUI_API bool SliderAngle(const char* label, float* v_rad, float v_degrees_min = -360.0f…
434IMGUI_API bool SliderInt(const char* label, int* v, int v_min, int v_max, const char* for…
435IMGUI_API bool SliderInt2(const char* label, int v[2], int v_min, int v_max, const char* …
436IMGUI_API bool SliderInt3(const char* label, int v[3], int v_min, int v_max, const char* …
437IMGUI_API bool SliderInt4(const char* label, int v[4], int v_min, int v_max, const char* …
438IMGUI_API bool SliderScalar(const char* label, ImGuiDataType data_type, void* v, const vo…
439IMGUI_API bool SliderScalarN(const char* label, ImGuiDataType data_type, void* v, int com…
440IMGUI_API bool VSliderFloat(const char* label, const ImVec2& size, float* v, float v_min,…
441IMGUI_API bool VSliderInt(const char* label, const ImVec2& size, int* v, int v_min, int v…
442IMGUI_API bool VSliderScalar(const char* label, const ImVec2& size, ImGuiDataType data_ty…
447IMGUI_API bool InputText(const char* label, char* buf, size_t buf_size, ImGuiInputTextFla…
448IMGUI_API bool InputTextMultiline(const char* label, char* buf, size_t buf_size, const Im…
449IMGUI_API bool InputFloat(const char* label, float* v, float step = 0.0f, float step_fast…
450IMGUI_API bool InputFloat2(const char* label, float v[2], const char* format = "%.3f", Im…
451IMGUI_API bool InputFloat3(const char* label, float v[3], const char* format = "%.3f", Im…
452IMGUI_API bool InputFloat4(const char* label, float v[4], const char* format = "%.3f", Im…
453IMGUI_API bool InputInt(const char* label, int* v, int step = 1, int step_fast = 100, ImG…
454 IMGUI_API bool InputInt2(const char* label, int v[2], ImGuiInputTextFlags flags = 0);
455 IMGUI_API bool InputInt3(const char* label, int v[3], ImGuiInputTextFlags flags = 0);
456 IMGUI_API bool InputInt4(const char* label, int v[4], ImGuiInputTextFlags flags = 0);
457IMGUI_API bool InputDouble(const char* label, double* v, double step = 0.0, double step_f…
458IMGUI_API bool InputScalar(const char* label, ImGuiDataType data_type, void* v, const voi…
459IMGUI_API bool InputScalarN(const char* label, ImGuiDataType data_type, void* v, int comp…
463IMGUI_API bool ColorEdit3(const char* label, float col[3], ImGuiColorEditFlags flags = 0);
464IMGUI_API bool ColorEdit4(const char* label, float col[4], ImGuiColorEditFlags flags = 0);
465IMGUI_API bool ColorPicker3(const char* label, float col[3], ImGuiColorEditFlags flags = …
466IMGUI_API bool ColorPicker4(const char* label, float col[4], ImGuiColorEditFlags flags = …
467IMGUI_API bool ColorButton(const char* desc_id, const ImVec4& col, ImGuiColorEditFlags fl…
468IMGUI_API void SetColorEditOptions(ImGuiColorEditFlags flags); // ini…
472 IMGUI_API bool TreeNode(const char* label);
473IMGUI_API bool TreeNode(const char* str_id, const char* fmt, ...) IM_FMTARGS(2); // hel…
474 IMGUI_API bool TreeNode(const void* ptr_id, const char* fmt, ...) IM_FMTARGS(2); // "
475IMGUI_API bool TreeNodeV(const char* str_id, const char* fmt, va_list args) IM_FMTLIST(2);
476IMGUI_API bool TreeNodeV(const void* ptr_id, const char* fmt, va_list args) IM_FMTLIST(2);
477 IMGUI_API bool TreeNodeEx(const char* label, ImGuiTreeNodeFlags flags = 0);
478IMGUI_API bool TreeNodeEx(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, …
479IMGUI_API bool TreeNodeEx(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, …
480IMGUI_API bool TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt,…
481IMGUI_API bool TreeNodeExV(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt,…
482IMGUI_API void TreePush(const char* str_id); // ~ I…
483 IMGUI_API void TreePush(const void* ptr_id = NULL); // "
484IMGUI_API void TreePop(); // ~ U…
485IMGUI_API void TreeAdvanceToLabelPos(); // adv…
486IMGUI_API float GetTreeNodeToLabelSpacing(); // hor…
487IMGUI_API void SetNextTreeNodeOpen(bool is_open, ImGuiCond cond = 0); // set…
488IMGUI_API bool CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags = 0); // if …
489IMGUI_API bool CollapsingHeader(const char* label, bool* p_open, ImGuiTreeNodeFlags flags…
494IMGUI_API bool Selectable(const char* label, bool selected = false, ImGuiSelectableFlags …
495IMGUI_API bool Selectable(const char* label, bool* p_selected, ImGuiSelectableFlags flags…
499IMGUI_API bool ListBox(const char* label, int* current_item, const char* const items[], i…
500IMGUI_API bool ListBox(const char* label, int* current_item, bool (*items_getter)(void* d…
501IMGUI_API bool ListBoxHeader(const char* label, const ImVec2& size = ImVec2(0,0)); // use…
502IMGUI_API bool ListBoxHeader(const char* label, int items_count, int height_in_items = -1…
503IMGUI_API void ListBoxFooter(); // ter…
506IMGUI_API void PlotLines(const char* label, const float* values, int values_count, int va…
507IMGUI_API void PlotLines(const char* label, float(*values_getter)(void* data, int idx), v…
508IMGUI_API void PlotHistogram(const char* label, const float* values, int values_count, in…
509IMGUI_API void PlotHistogram(const char* label, float(*values_getter)(void* data, int idx…
513 IMGUI_API void Value(const char* prefix, bool b);
514 IMGUI_API void Value(const char* prefix, int v);
515 IMGUI_API void Value(const char* prefix, unsigned int v);
516 IMGUI_API void Value(const char* prefix, float v, const char* float_format = NULL);
519IMGUI_API bool BeginMainMenuBar(); // cre…
520IMGUI_API void EndMainMenuBar(); // onl…
521IMGUI_API bool BeginMenuBar(); // app…
522IMGUI_API void EndMenuBar(); // onl…
523IMGUI_API bool BeginMenu(const char* label, bool enabled = true); // cre…
524IMGUI_API void EndMenu(); // onl…
525IMGUI_API bool MenuItem(const char* label, const char* shortcut = NULL, bool selected = f…
526IMGUI_API bool MenuItem(const char* label, const char* shortcut, bool* p_selected, bool e…
529IMGUI_API void BeginTooltip(); // beg…
530 IMGUI_API void EndTooltip();
531IMGUI_API void SetTooltip(const char* fmt, ...) IM_FMTARGS(1); // set…
532 IMGUI_API void SetTooltipV(const char* fmt, va_list args) IM_FMTLIST(1);
542IMGUI_API void OpenPopup(const char* str_id); // cal…
543IMGUI_API bool BeginPopup(const char* str_id, ImGuiWindowFlags flags = 0); …
544IMGUI_API bool BeginPopupContextItem(const char* str_id = NULL, int mouse_button = 1); …
545IMGUI_API bool BeginPopupContextWindow(const char* str_id = NULL, int mouse_button = 1, b…
546IMGUI_API bool BeginPopupContextVoid(const char* str_id = NULL, int mouse_button = 1); …
547IMGUI_API bool BeginPopupModal(const char* name, bool* p_open = NULL, ImGuiWindowFlags fl…
548IMGUI_API void EndPopup(); …
549IMGUI_API bool OpenPopupOnItemClick(const char* str_id = NULL, int mouse_button = 1); …
550IMGUI_API bool IsPopupOpen(const char* str_id); // ret…
551IMGUI_API void CloseCurrentPopup(); // clo…
556 IMGUI_API void Columns(int count = 1, const char* id = NULL, bool border = true);
557IMGUI_API void NextColumn(); // nex…
558IMGUI_API int GetColumnIndex(); // get…
559IMGUI_API float GetColumnWidth(int column_index = -1); // get…
560IMGUI_API void SetColumnWidth(int column_index, float width); // set…
561IMGUI_API float GetColumnOffset(int column_index = -1); // get…
562IMGUI_API void SetColumnOffset(int column_index, float offset_x); // set…
563 IMGUI_API int GetColumnsCount();
567IMGUI_API bool BeginTabBar(const char* str_id, ImGuiTabBarFlags flags = 0); // cre…
568IMGUI_API void EndTabBar(); // onl…
569IMGUI_API bool BeginTabItem(const char* label, bool* p_open = NULL, ImGuiTabItemFlags fla…
570IMGUI_API void EndTabItem(); // onl…
571IMGUI_API void SetTabItemClosed(const char* tab_or_docked_window_label); // not…
575IMGUI_API void LogToTTY(int max_depth = -1); // sta…
576IMGUI_API void LogToFile(int max_depth = -1, const char* filename = NULL); // sta…
577IMGUI_API void LogToClipboard(int max_depth = -1); // sta…
578IMGUI_API void LogFinish(); // sto…
579IMGUI_API void LogButtons(); // hel…
580IMGUI_API void LogText(const char* fmt, ...) IM_FMTARGS(1); // pas…
584IMGUI_API bool BeginDragDropSource(ImGuiDragDropFlags flags = 0); …
585IMGUI_API bool SetDragDropPayload(const char* type, const void* data, size_t size, ImGuiC…
586IMGUI_API void EndDragDropSource(); …
587IMGUI_API bool BeginDragDropTarget(); …
588IMGUI_API const ImGuiPayload* AcceptDragDropPayload(const char* type, ImGuiDragDropFlags flags =…
589IMGUI_API void EndDragDropTarget(); …
590IMGUI_API const ImGuiPayload* GetDragDropPayload(); …
593IMGUI_API void PushClipRect(const ImVec2& clip_rect_min, const ImVec2& clip_rect_max, boo…
594 IMGUI_API void PopClipRect();
598IMGUI_API void SetItemDefaultFocus(); // mak…
599IMGUI_API void SetKeyboardFocusHere(int offset = 0); // foc…
604IMGUI_API bool IsItemHovered(ImGuiHoveredFlags flags = 0); // is …
605IMGUI_API bool IsItemActive(); // is …
606IMGUI_API bool IsItemFocused(); // is …
607IMGUI_API bool IsItemClicked(int mouse_button = 0); // is …
608IMGUI_API bool IsItemVisible(); // is …
609IMGUI_API bool IsItemEdited(); // did…
610IMGUI_API bool IsItemActivated(); // was…
611IMGUI_API bool IsItemDeactivated(); // was…
612IMGUI_API bool IsItemDeactivatedAfterEdit(); // was…
613 IMGUI_API bool IsAnyItemHovered();
614 IMGUI_API bool IsAnyItemActive();
615 IMGUI_API bool IsAnyItemFocused();
616IMGUI_API ImVec2 GetItemRectMin(); // get…
617IMGUI_API ImVec2 GetItemRectMax(); // get…
618IMGUI_API ImVec2 GetItemRectSize(); // get…
619IMGUI_API void SetItemAllowOverlap(); // all…
622IMGUI_API bool IsRectVisible(const ImVec2& size); // tes…
623IMGUI_API bool IsRectVisible(const ImVec2& rect_min, const ImVec2& rect_max); // tes…
624IMGUI_API double GetTime(); // get…
625IMGUI_API int GetFrameCount(); // get…
626IMGUI_API ImDrawList* GetOverlayDrawList(); // thi…
627IMGUI_API ImDrawListSharedData* GetDrawListSharedData(); // you…
628 IMGUI_API const char* GetStyleColorName(ImGuiCol idx);
629IMGUI_API void SetStateStorage(ImGuiStorage* storage); // rep…
630 IMGUI_API ImGuiStorage* GetStateStorage();
631IMGUI_API ImVec2 CalcTextSize(const char* text, const char* text_end = NULL, bool hide_text…
632IMGUI_API void CalcListClipping(int items_count, float items_height, int* out_items_displ…
633IMGUI_API bool BeginChildFrame(ImGuiID id, const ImVec2& size, ImGuiWindowFlags flags = 0…
634IMGUI_API void EndChildFrame(); // alw…
637 IMGUI_API ImVec4 ColorConvertU32ToFloat4(ImU32 in);
638 IMGUI_API ImU32 ColorConvertFloat4ToU32(const ImVec4& in);
639IMGUI_API void ColorConvertRGBtoHSV(float r, float g, float b, float& out_h, float& out_s…
640IMGUI_API void ColorConvertHSVtoRGB(float h, float s, float v, float& out_r, float& out_g…
643IMGUI_API int GetKeyIndex(ImGuiKey imgui_key); // map…
644IMGUI_API bool IsKeyDown(int user_key_index); // is …
645IMGUI_API bool IsKeyPressed(int user_key_index, bool repeat = true); // was…
646IMGUI_API bool IsKeyReleased(int user_key_index); // was…
647IMGUI_API int GetKeyPressedAmount(int key_index, float repeat_delay, float rate); // use…
648IMGUI_API bool IsMouseDown(int button); // is …
649IMGUI_API bool IsAnyMouseDown(); // is …
650IMGUI_API bool IsMouseClicked(int button, bool repeat = false); // did…
651IMGUI_API bool IsMouseDoubleClicked(int button); // did…
652IMGUI_API bool IsMouseReleased(int button); // did…
653IMGUI_API bool IsMouseDragging(int button = 0, float lock_threshold = -1.0f); // is …
654IMGUI_API bool IsMouseHoveringRect(const ImVec2& r_min, const ImVec2& r_max, bool clip = …
655 IMGUI_API bool IsMousePosValid(const ImVec2* mouse_pos = NULL); //
656IMGUI_API ImVec2 GetMousePos(); // sho…
657IMGUI_API ImVec2 GetMousePosOnOpeningCurrentPopup(); // ret…
658IMGUI_API ImVec2 GetMouseDragDelta(int button = 0, float lock_threshold = -1.0f); // ret…
659 IMGUI_API void ResetMouseDragDelta(int button = 0); //
660IMGUI_API ImGuiMouseCursor GetMouseCursor(); // get…
661IMGUI_API void SetMouseCursor(ImGuiMouseCursor type); // set…
662IMGUI_API void CaptureKeyboardFromApp(bool want_capture_keyboard_value = true); // att…
663IMGUI_API void CaptureMouseFromApp(bool want_capture_mouse_value = true); // att…
666 IMGUI_API const char* GetClipboardText();
667 IMGUI_API void SetClipboardText(const char* text);
672IMGUI_API void LoadIniSettingsFromDisk(const char* ini_filename); // cal…
673IMGUI_API void LoadIniSettingsFromMemory(const char* ini_data, size_t ini_size=0); // cal…
674 IMGUI_API void SaveIniSettingsToDisk(const char* ini_filename);
675IMGUI_API const char* SaveIniSettingsToMemory(size_t* out_ini_size = NULL); // ret…
680IMGUI_API void SetAllocatorFunctions(void* (*alloc_func)(size_t sz, void* user_data), voi…
681 IMGUI_API void* MemAlloc(size_t size);
682 IMGUI_API void MemFree(void* ptr);
1270 IMGUI_API ImGuiStyle();
1271 IMGUI_API void ScaleAllSizes(float scale_factor);
1362 IMGUI_API void AddInputCharacter(ImWchar c); // Queue new character input
1363IMGUI_API void AddInputCharactersUTF8(const char* str); // Queue new characters input from an …
1364IMGUI_API void ClearInputCharacters(); // Clear the text input buffer manually
1406 IMGUI_API ImGuiIO();
1442 IMGUI_API ImGuiInputTextCallbackData();
1443 IMGUI_API void DeleteChars(int pos, int bytes_count);
1444 IMGUI_API void InsertChars(int pos, const char* text, const char* text_end = NULL);
1493IMGUI_API bool InputFloat(const char* label, float* v, float step, float step_fast, int decim…
1494IMGUI_API bool InputFloat2(const char* label, float v[2], int decimal_precision, ImGuiInputTe…
1495IMGUI_API bool InputFloat3(const char* label, float v[3], int decimal_precision, ImGuiInputTe…
1496IMGUI_API bool InputFloat4(const char* label, float v[4], int decimal_precision, ImGuiInputTe…
1508IMGUI_API bool Begin(const char* name, bool* p_open, const ImVec2& size_on_first_use, float b…
1553 IMGUI_API ImGuiTextFilter(const char* default_filter = "");
1554IMGUI_API bool Draw(const char* label = "Filter (inc,-exc)", float width = 0.0f); // Helper …
1555 IMGUI_API bool PassFilter(const char* text, const char* text_end = NULL) const;
1556 IMGUI_API void Build();
1571 IMGUI_API void split(char separator, ImVector<TextRange>* out) const;
1594 IMGUI_API void append(const char* str, const char* str_end = NULL);
1595 IMGUI_API void appendf(const char* fmt, ...) IM_FMTARGS(2);
1596 IMGUI_API void appendfv(const char* fmt, va_list args) IM_FMTLIST(2);
1623 IMGUI_API int GetInt(ImGuiID key, int default_val = 0) const;
1624 IMGUI_API void SetInt(ImGuiID key, int val);
1625 IMGUI_API bool GetBool(ImGuiID key, bool default_val = false) const;
1626 IMGUI_API void SetBool(ImGuiID key, bool val);
1627 IMGUI_API float GetFloat(ImGuiID key, float default_val = 0.0f) const;
1628 IMGUI_API void SetFloat(ImGuiID key, float val);
1629 IMGUI_API void* GetVoidPtr(ImGuiID key) const; // default_val is NULL
1630 IMGUI_API void SetVoidPtr(ImGuiID key, void* val);
1636 IMGUI_API int* GetIntRef(ImGuiID key, int default_val = 0);
1637 IMGUI_API bool* GetBoolRef(ImGuiID key, bool default_val = false);
1638 IMGUI_API float* GetFloatRef(ImGuiID key, float default_val = 0.0f);
1639 IMGUI_API void** GetVoidPtrRef(ImGuiID key, void* default_val = NULL);
1642 IMGUI_API void SetAllInt(int val);
1645 IMGUI_API void BuildSortByKey();
1673IMGUI_API bool Step(); // Call until it returns false…
1674IMGUI_API void Begin(int items_count, float items_height = -1.0f); // Automatically called by con…
1675IMGUI_API void End(); // Automatically called on the…
1821IMGUI_API void PushClipRect(ImVec2 clip_rect_min, ImVec2 clip_rect_max, bool intersect_with_curre…
1822 IMGUI_API void PushClipRectFullScreen();
1823 IMGUI_API void PopClipRect();
1824 IMGUI_API void PushTextureID(ImTextureID texture_id);
1825 IMGUI_API void PopTextureID();
1830 IMGUI_API void AddLine(const ImVec2& a, const ImVec2& b, ImU32 col, float thickness = 1.0f);
1831IMGUI_API void AddRect(const ImVec2& a, const ImVec2& b, ImU32 col, float rounding = 0.0f, int ro…
1832IMGUI_API void AddRectFilled(const ImVec2& a, const ImVec2& b, ImU32 col, float rounding = 0.0f, …
1833IMGUI_API void AddRectFilledMultiColor(const ImVec2& a, const ImVec2& b, ImU32 col_upr_left, ImU3…
1834IMGUI_API void AddQuad(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, ImU32 …
1835IMGUI_API void AddQuadFilled(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, …
1836IMGUI_API void AddTriangle(const ImVec2& a, const ImVec2& b, const ImVec2& c, ImU32 col, float th…
1837 IMGUI_API void AddTriangleFilled(const ImVec2& a, const ImVec2& b, const ImVec2& c, ImU32 col);
1838IMGUI_API void AddCircle(const ImVec2& centre, float radius, ImU32 col, int num_segments = 12, fl…
1839IMGUI_API void AddCircleFilled(const ImVec2& centre, float radius, ImU32 col, int num_segments = …
1840IMGUI_API void AddText(const ImVec2& pos, ImU32 col, const char* text_begin, const char* text_end…
1841IMGUI_API void AddText(const ImFont* font, float font_size, const ImVec2& pos, ImU32 col, const c…
1842IMGUI_API void AddImage(ImTextureID user_texture_id, const ImVec2& a, const ImVec2& b, const ImVe…
1843IMGUI_API void AddImageQuad(ImTextureID user_texture_id, const ImVec2& a, const ImVec2& b, const …
1844IMGUI_API void AddImageRounded(ImTextureID user_texture_id, const ImVec2& a, const ImVec2& b, con…
1845IMGUI_API void AddPolyline(const ImVec2* points, const int num_points, ImU32 col, bool closed, fl…
1846IMGUI_API void AddConvexPolyFilled(const ImVec2* points, const int num_points, ImU32 col); // Not…
1847IMGUI_API void AddBezierCurve(const ImVec2& pos0, const ImVec2& cp0, const ImVec2& cp1, const ImV…
1855IMGUI_API void PathArcTo(const ImVec2& centre, float radius, float a_min, float a_max, int num_se…
1856IMGUI_API void PathArcToFast(const ImVec2& centre, float radius, int a_min_of_12, int a_max_of_12…
1857IMGUI_API void PathBezierCurveTo(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, int num_se…
1858IMGUI_API void PathRect(const ImVec2& rect_min, const ImVec2& rect_max, float rounding = 0.0f, in…
1863 IMGUI_API void ChannelsSplit(int channels_count);
1864 IMGUI_API void ChannelsMerge();
1865 IMGUI_API void ChannelsSetCurrent(int channel_index);
1868IMGUI_API void AddCallback(ImDrawCallback callback, void* callback_data); // Your rendering func…
1869IMGUI_API void AddDrawCmd(); // This is useful if y…
1870IMGUI_API ImDrawList* CloneOutput() const; // Create a clone of t…
1874 IMGUI_API void Clear();
1875 IMGUI_API void ClearFreeMemory();
1876 IMGUI_API void PrimReserve(int idx_count, int vtx_count);
1877IMGUI_API void PrimRect(const ImVec2& a, const ImVec2& b, ImU32 col); // Axis aligned rectan…
1878IMGUI_API void PrimRectUV(const ImVec2& a, const ImVec2& b, const ImVec2& uv_a, const ImVec2& uv_…
1879IMGUI_API void PrimQuadUV(const ImVec2& a, const ImVec2& b, const ImVec2& c, const ImVec2& d, con…
1883 IMGUI_API void UpdateClipRect();
1884 IMGUI_API void UpdateTextureID();
1904IMGUI_API void DeIndexAllBuffers(); // Helper to convert all buffers from inde…
1905IMGUI_API void ScaleClipRects(const ImVec2& fb_scale); // Helper to scale the ClipRect field of e…
1935 IMGUI_API ImFontConfig();
1956IMGUI_API void AddText(const char* text, const char* text_end = NULL); // Add string (each ch…
1957IMGUI_API void AddRanges(const ImWchar* ranges); // Add ranges, e.g. bu…
1958 IMGUI_API void BuildRanges(ImVector<ImWchar>* out_ranges); // Output new ranges
1987 IMGUI_API ImFontAtlas();
1988 IMGUI_API ~ImFontAtlas();
1989 IMGUI_API ImFont* AddFont(const ImFontConfig* font_cfg);
1990 IMGUI_API ImFont* AddFontDefault(const ImFontConfig* font_cfg = NULL);
1991IMGUI_API ImFont* AddFontFromFileTTF(const char* filename, float size_pixels, const ImFo…
1992IMGUI_API ImFont* AddFontFromMemoryTTF(void* font_data, int font_size, float size_pixels…
1993IMGUI_API ImFont* AddFontFromMemoryCompressedTTF(const void* compressed_font_data, int c…
1994IMGUI_API ImFont* AddFontFromMemoryCompressedBase85TTF(const char* compressed_font_data_…
1995IMGUI_API void ClearInputData(); // Clear input data (all ImFontConfig stru…
1996IMGUI_API void ClearTexData(); // Clear output texture data (CPU side). S…
1997IMGUI_API void ClearFonts(); // Clear output font data (glyphs storage,…
1998 IMGUI_API void Clear(); // Clear all input and output.
2005IMGUI_API bool Build(); // Build pixels data. This is called autom…
2006IMGUI_API void GetTexDataAsAlpha8(unsigned char** out_pixels, int* out_width, int* ou…
2007IMGUI_API void GetTexDataAsRGBA32(unsigned char** out_pixels, int* out_width, int* ou…
2018IMGUI_API const ImWchar* GetGlyphRangesDefault(); // Basic Latin, Extended Latin
2019IMGUI_API const ImWchar* GetGlyphRangesKorean(); // Default + Korean characters
2020IMGUI_API const ImWchar* GetGlyphRangesJapanese(); // Default + Hiragana, Katakan…
2021IMGUI_API const ImWchar* GetGlyphRangesChineseFull(); // Default + Half-Width + Japa…
2022IMGUI_API const ImWchar* GetGlyphRangesChineseSimplifiedCommon();// Default + Half-Width + Japa…
2023IMGUI_API const ImWchar* GetGlyphRangesCyrillic(); // Default + about 400 Cyrilli…
2024 IMGUI_API const ImWchar* GetGlyphRangesThai(); // Default + Thai characters
2044IMGUI_API int AddCustomRectRegular(unsigned int id, int width, int height); …
2045IMGUI_API int AddCustomRectFontGlyph(ImFont* font, ImWchar id, int width, int height, float …
2049IMGUI_API void CalcCustomRectUV(const CustomRect* rect, ImVec2* out_uv_min, ImVec2* out_uv_ma…
2050IMGUI_API bool GetMouseCursorTexData(ImGuiMouseCursor cursor, ImVec2* out_offset, ImVec2* out…
2106 IMGUI_API ImFont();
2107 IMGUI_API ~ImFont();
2108 IMGUI_API const ImFontGlyph*FindGlyph(ImWchar c) const;
2109 IMGUI_API const ImFontGlyph*FindGlyphNoFallback(ImWchar c) const;
2116IMGUI_API ImVec2 CalcTextSizeA(float size, float max_width, float wrap_width, const cha…
2117IMGUI_API const char* CalcWordWrapPositionA(float scale, const char* text, const char* text_…
2118IMGUI_API void RenderChar(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, I…
2119IMGUI_API void RenderText(ImDrawList* draw_list, float size, ImVec2 pos, ImU32 col, c…
2122 IMGUI_API void BuildLookupTable();
2123 IMGUI_API void ClearOutputData();
2124 IMGUI_API void GrowIndex(int new_size);
2125IMGUI_API void AddGlyph(ImWchar c, float x0, float y0, float x1, float y1, float u0, …
2126IMGUI_API void AddRemapChar(ImWchar dst, ImWchar src, bool overwrite_dst = true); // …
2127 IMGUI_API void SetFallbackChar(ImWchar c);