Lines Matching refs:Text
51 - I integrated Dear ImGui in my engine and the text or lines are blurry..
114 - CTRL+Click on a slider or drag box to input value as text.
116 - Text editor:
117 - Hold SHIFT or use mouse to select text.
123 - ESCAPE to revert text to its original value.
125 - Controls are automatically adjusted for OSX to match standard OSX text editing operations.
201 ImGui::Text("Hello, world!");
253 ImGui::Text("Hello, world!");
254 MyGameUpdate(); // may use any ImGui functions, e.g. ImGui::Begin("My window"); ImGui::Text("Hello, world!"); ImGui::End();
451 - 2017/08/09 (1.51) - removed ValueColor() helpers, they are equivalent to calling Text(label) + SameLine() + ColorButton().
479 - 2016/03/02 (1.48) - InputText() completion/history/always callbacks: if you modify the text buffer manually (without using DeleteChars()/InsertChars() helper) you need to maintain the BufTextLen field. added an assert.
490 you need to render your textured triangles with bilinear filtering to benefit from sub-pixel positioning of text.
523 - 2015/02/11 (1.32) - changed text input callback ImGuiTextEditCallback return type from void-->int. reserved for future use, return 0 for now.
564 Note: Text input widget releases focus on "Return KeyDown", so the subsequent "Return KeyUp" event that your application receive will typically
659 Elements that are typically not clickable (such as calls to the Text functions) don't need an ID.
841 Otherwise you can convert yourself to UTF-8 or load text data from file already saved as UTF-8.
843 Text input: it is up to your application to pass the right character code by calling io.AddInputCharacter().
895 Q: I integrated Dear ImGui in my engine and the text or lines are blurry..
1011 static void SetClipboardTextFn_DefaultImpl(void* user_data, const char* text);
1086 WindowTitleAlign = ImVec2(0.0f,0.5f);// Alignment for title bar text
1105 ButtonTextAlign = ImVec2(0.5f,0.5f);// Alignment of button text when button is larger than text.
1106 SelectableTextAlign = ImVec2(0.0f,0.0f);// Alignment of selectable text when button is larger than text.
1204 // Pass in translated ASCII characters for text input.
2012 // Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]"
2078 bool ImGuiTextFilter::PassFilter(const char* text, const char* text_end) const
2083 if (text == NULL)
2084 text = "";
2094 if (ImStristr(text, text_end, f.begin()+1, f.end()) != NULL)
2100 if (ImStristr(text, text_end, f.begin(), f.end()) != NULL)
2154 // Helper: Text buffer for logging/accumulating text
2272 const char* ImGui::FindRenderedTextEnd(const char* text, const char* text_end)
2274 const char* text_display_end = text;
2283 // Internal ImGui functions to render text
2285 void ImGui::RenderText(ImVec2 pos, const char* text, const char* text_end, bool hide_text_after_hash)
2294 text_display_end = FindRenderedTextEnd(text, text_end);
2299 text_end = text + strlen(text); // FIXME-OPT
2303 if (text != text_display_end)
2305 window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_display_end);
2307 LogRenderedText(&pos, text, text_display_end);
2311 void ImGui::RenderTextWrapped(ImVec2 pos, const char* text, const char* text_end, float wrap_width)
2317 text_end = text + strlen(text); // FIXME-OPT
2319 if (text != text_end)
2321 window->DrawList->AddText(g.Font, g.FontSize, pos, GetColorU32(ImGuiCol_Text), text, text_end, wrap_width);
2323 LogRenderedText(&pos, text, text_end);
2329 void ImGui::RenderTextClippedEx(ImDrawList* draw_list, const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_display_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect)
2333 const ImVec2 text_size = text_size_if_known ? *text_size_if_known : CalcTextSize(text, text_display_end, false, 0.0f);
2349 draw_list->AddText(NULL, 0.0f, pos, GetColorU32(ImGuiCol_Text), text, text_display_end, 0.0f, &fine_clip_rect);
2353 draw_list->AddText(NULL, 0.0f, pos, GetColorU32(ImGuiCol_Text), text, text_display_end, 0.0f, NULL);
2357 void ImGui::RenderTextClipped(const ImVec2& pos_min, const ImVec2& pos_max, const char* text, const char* text_end, const ImVec2* text_size_if_known, const ImVec2& align, const ImRect* clip_rect)
2360 const char* text_display_end = FindRenderedTextEnd(text, text_end);
2361 const int text_len = (int)(text_display_end - text);
2367 RenderTextClippedEx(window->DrawList, pos_min, pos_max, text, text_display_end, text_size_if_known, align, clip_rect);
2369 LogRenderedText(&pos_min, text, text_display_end);
2398 // Render an arrow aimed to be aligned with text (p_min is a position in the same space text would be positioned). To e.g. denote expanded/collapsed state
2819 // - we allow hovering to be true when ActiveId==window->MoveID, so that clicking on non-interactive items such as a Text() item still returns true with IsItemHovered()
2973 void ImGui::SetClipboardText(const char* text)
2976 GImGui->IO.SetClipboardTextFn(GImGui->IO.ClipboardUserData, text);
3896 // Calculate text size. Text can be multi-line. Optionally ignore text after a ## marker.
3898 ImVec2 ImGui::CalcTextSize(const char* text, const char* text_end, bool hide_text_after_double_hash, float wrap_width)
3904 text_display_end = FindRenderedTextEnd(text, text_end); // Hide anything after a '##' string
3910 if (text == text_display_end)
3912 ImVec2 text_size = font->CalcTextSizeA(font_size, FLT_MAX, wrap_width, text, text_display_end, NULL);
5392 // Title bar text (with: horizontal alignment, avoiding collapse/close button, optional "unsaved document" marker)
5393 // FIXME: Refactor text alignment facilities along with RenderText helpers, this is too much code..
5879 case ImGuiCol_Text: return "Text";
6804 IM_ASSERT(id != 0); // You cannot pass a NULL str_id if the last item has no identifier (e.g. a Text() item)
6985 IM_ASSERT(id != 0); // You cannot pass a NULL str_id if the last item has no identifier (e.g. a Text() item)
8509 // If you want to use BeginDragDropSource() on an item with no unique identifier for interaction, such as Text() or Image(), you need to:
8517 // Magic fallback (=somehow reprehensible) to handle items with no assigned ID, e.g. Text(), Image()
8772 // All text output from the interface can be captured into tty/file/clipboard.
8776 // Pass text data straight to log (without being displayed)
8793 // We split text into individual lines to add current tree level padding
8794 void ImGui::LogRenderedText(const ImVec2* ref_pos, const char* text, const char* text_end)
8800 text_end = FindRenderedTextEnd(text, text_end);
8806 const char* text_remaining = text;
8815 const bool is_first_line = (line_start == text);
9083 // Call registered handlers (e.g. SettingsHandlerWindow_WriteAll() + custom handlers) to write their stuff into a text buffer
9141 // Write to text buffer
9204 static void SetClipboardTextFn_DefaultImpl(void*, const char* text)
9208 const int wbuf_length = ImTextCountCharsFromUtf8(text, NULL) + 1;
9216 ImTextStrFromUtf8(wbuf_global, wbuf_length, text, NULL);
9234 static void SetClipboardTextFn_DefaultImpl(void*, const char* text)
9238 const char* text_end = text + strlen(text);
9239 g.PrivateClipboard.resize((int)(text_end - text) + 1);
9240 memcpy(&g.PrivateClipboard[0], text, (size_t)(text_end - text));
9241 g.PrivateClipboard[(int)(text_end - text)] = 0;
9256 // Notify OS Input Method Editor of text input position
9290 ImGui::Text("Dear ImGui %s", ImGui::GetVersion());
9291 ImGui::Text("Application average %.3f ms/frame (%.1f FPS)", 1000.0f / io.Framerate, io.Framerate);
9292 ImGui::Text("%d vertices, %d indices (%d triangles)", io.MetricsRenderVertices, io.MetricsRenderIndices, io.MetricsRenderIndices / 3);
9293 ImGui::Text("%d active windows (%d visible)", io.MetricsActiveWindows, io.MetricsRenderWindows);
9294 ImGui::Text("%d allocations", io.MetricsActiveAllocations);
9438 ImGui::Text("%02d%c Tab 0x%08X", tab_n, (tab->ID == tab_bar->SelectedTabId) ? '*' : ' ', tab->ID);
9473 ImGui::Text("HoveredWindow: '%s'", g.HoveredWindow ? g.HoveredWindow->Name : "NULL");
9474 ImGui::Text("HoveredRootWindow: '%s'", g.HoveredRootWindow ? g.HoveredRootWindow->Name : "NULL");
9475 ImGui::Text("HoveredId: 0x%08X/0x%08X (%.2f sec), AllowOverlap: %d", g.HoveredId, g.HoveredIdPreviousFrame, g.HoveredIdTimer, g.HoveredIdAllowOverlap); // Data is "in-flight" so depending on when the Metrics window is called we may see current frame information or not
9476 ImGui::Text("ActiveId: 0x%08X/0x%08X (%.2f sec), AllowOverlap: %d, Source: %s", g.ActiveId, g.ActiveIdPreviousFrame, g.ActiveIdTimer, g.ActiveIdAllowOverlap, input_source_names[g.ActiveIdSource]);
9477 ImGui::Text("ActiveIdWindow: '%s'", g.ActiveIdWindow ? g.ActiveIdWindow->Name : "NULL");
9478 ImGui::Text("MovingWindow: '%s'", g.MovingWindow ? g.MovingWindow->Name : "NULL");
9479 ImGui::Text("NavWindow: '%s'", g.NavWindow ? g.NavWindow->Name : "NULL");
9480 ImGui::Text("NavId: 0x%08X, NavLayer: %d", g.NavId, g.NavLayer);
9481 ImGui::Text("NavInputSource: %s", input_source_names[g.NavInputSource]);
9482 ImGui::Text("NavActive: %d, NavVisible: %d", g.IO.NavActive, g.IO.NavVisible);
9483 ImGui::Text("NavActivateId: 0x%08X, NavInputId: 0x%08X", g.NavActivateId, g.NavInputId);
9484 ImGui::Text("NavDisableHighlight: %d, NavDisableMouseHover: %d", g.NavDisableHighlight, g.NavDisableMouseHover);
9485 ImGui::Text("NavWindowingTarget: '%s'", g.NavWindowingTarget ? g.NavWindowingTarget->Name : "NULL");
9486 ImGui::Text("DragDrop: %d, SourceId = 0x%08X, Payload \"%s\" (%d bytes)", g.DragDropActive, g.DragDropPayload.SourceId, g.DragDropPayload.DataType, g.DragDropPayload.DataSize);