Searched refs:FramePadding (Results 1 - 23 of 23) sorted by relevance

/xsrc/external/mit/MesaLib.old/dist/src/imgui/
H A Dimgui_widgets.cpp321 const ImRect value_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y*2));
322 const ImRect total_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w + (label_size.x > 0.0f ? style.ItemInnerSpacing.x : 0.0f), style.FramePadding.y*2) + label_size);
323 ItemSize(total_bb, style.FramePadding.y);
332 RenderText(ImVec2(value_bb.Max.x + style.ItemInnerSpacing.x, value_bb.Min.y + style.FramePadding.y), label);
357 const float line_height = ImMax(ImMin(window->DC.CurrentLineSize.y, g.FontSize + g.Style.FramePadding.y*2), g.FontSize);
358 const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(g.FontSize + (label_size.x > 0.0f ? (label_size.x + style.FramePadding.x*2) : 0.0f), ImMax(line_height, label_size.y))); // Empty text doesn't add padding
364 RenderBullet(bb.Min + ImVec2(style.FramePadding.x + g.FontSize*0.5f, line_height*0.5f));
365 RenderText(bb.Min+ImVec2(g.FontSize + style.FramePadding.x*2, text_base_offset_y), text_begin, text_end, false);
556 if ((flags & ImGuiButtonFlags_AlignTextBaseLine) && style.FramePadding.y < window->DC.CurrentLineTextBaseOffset) // Try to vertically align buttons that are smaller/have no padding so that text baseline matches (bit hacky, since it shouldn't be a flag)
557 pos.y += window->DC.CurrentLineTextBaseOffset - style.FramePadding
[all...]
H A Dimgui_memory_editor.h467 ImGui::PushItemWidth((s.AddrDigitsCount + 1) * s.GlyphWidth + style.FramePadding.x * 2.0f);
499 ImGui::PushItemWidth((s.GlyphWidth * 10.0f) + style.FramePadding.x * 2.0f + style.ItemInnerSpacing.x);
509 ImGui::PushItemWidth((s.GlyphWidth * 6.0f) + style.FramePadding.x * 2.0f + style.ItemInnerSpacing.x);
H A Dimgui_internal.h1074 ImVec2 MenuBarOffset; // MenuBarOffset.x is sort of equivalent of a per-layer CursorPos.x, saved/restored as we switch to the menu bar. The only situation when MenuBarOffset.y is > 0 if when (SafeAreaPadding.y > FramePadding.y), often used on TVs.
1223 float TitleBarHeight() const { return (Flags & ImGuiWindowFlags_NoTitleBar) ? 0.0f : CalcFontSize() + GImGui->Style.FramePadding.y * 2.0f; }
1225 float MenuBarHeight() const { return (Flags & ImGuiWindowFlags_MenuBar) ? DC.MenuBarOffset.y + CalcFontSize() + GImGui->Style.FramePadding.y * 2.0f : 0.0f; }
1295 ImVec2 FramePadding; // style.FramePadding locked at the time of BeginTabBar() member in struct:ImGuiTabBar
H A Dimgui.cpp480 - 2016/01/23 (1.48) - fixed not honoring exact width passed to PushItemWidth(), previously it would add extra FramePadding.x*2 over that width. if you had manual pixel-perfect alignment in place it might affect you.
1091 FramePadding = ImVec2(4,3); // Padding within a framed rectangle (used by most widgets)
1097 IndentSpacing = 21.0f; // Horizontal spacing when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2).
1127 FramePadding = ImFloor(FramePadding * scale_factor);
4431 PushStyleVar(ImGuiStyleVar_WindowPadding, style.FramePadding);
5382 const float pad = style.FramePadding.y;
5398 float pad_left = (flags & ImGuiWindowFlags_NoCollapse) ? style.FramePadding.x : (style.FramePadding.x + g.FontSize + style.ItemInnerSpacing.x);
5399 float pad_right = (p_open == NULL) ? style.FramePadding
[all...]
H A Dimgui_demo.cpp2718 ImGui::Text("style.FramePadding: %.2f,%.2f", style.FramePadding.x, style.FramePadding.y);
2825 ImGui::SliderFloat2("FramePadding", (float*)&style.FramePadding, 0.0f, 20.0f, "%.0f");
H A Dimgui.h347 IMGUI_API void AlignTextToFramePadding(); // vertically align upcoming text baseline to FramePadding.y so that it will align properly to regularly framed items (call if you have text on a line before a framed item)
350 IMGUI_API float GetFrameHeight(); // ~ FontSize + style.FramePadding.y * 2
351 IMGUI_API float GetFrameHeightWithSpacing(); // ~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets)
387 IMGUI_API bool SmallButton(const char* label); // button with FramePadding=(0,0) to easily embed within text
486 IMGUI_API float GetTreeNodeToLabelSpacing(); // horizontal distance preceding label when using TreeNode*() or Bullet() == (g.FontSize + style.FramePadding.x*2) for a regular unframed TreeNode
772 ImGuiTreeNodeFlags_FramePadding = 1 << 10, // Use FramePadding (even for an unframed text node) to vertically align text baseline to regular widget height. Equivalent to calling AlignTextToFramePadding().
1073 ImGuiStyleVar_FramePadding, // ImVec2 FramePadding
1246 ImVec2 FramePadding; // Padding within a framed rectangle (used by most widgets). member in struct:ImGuiStyle
1252 float IndentSpacing; // Horizontal indentation when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2).
/xsrc/external/mit/MesaLib/dist/src/imgui/
H A Dimgui_widgets.cpp321 const ImRect value_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w, label_size.y + style.FramePadding.y*2));
322 const ImRect total_bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(w + (label_size.x > 0.0f ? style.ItemInnerSpacing.x : 0.0f), style.FramePadding.y*2) + label_size);
323 ItemSize(total_bb, style.FramePadding.y);
332 RenderText(ImVec2(value_bb.Max.x + style.ItemInnerSpacing.x, value_bb.Min.y + style.FramePadding.y), label);
357 const float line_height = ImMax(ImMin(window->DC.CurrentLineSize.y, g.FontSize + g.Style.FramePadding.y*2), g.FontSize);
358 const ImRect bb(window->DC.CursorPos, window->DC.CursorPos + ImVec2(g.FontSize + (label_size.x > 0.0f ? (label_size.x + style.FramePadding.x*2) : 0.0f), ImMax(line_height, label_size.y))); // Empty text doesn't add padding
364 RenderBullet(bb.Min + ImVec2(style.FramePadding.x + g.FontSize*0.5f, line_height*0.5f));
365 RenderText(bb.Min+ImVec2(g.FontSize + style.FramePadding.x*2, text_base_offset_y), text_begin, text_end, false);
556 if ((flags & ImGuiButtonFlags_AlignTextBaseLine) && style.FramePadding.y < window->DC.CurrentLineTextBaseOffset) // Try to vertically align buttons that are smaller/have no padding so that text baseline matches (bit hacky, since it shouldn't be a flag)
557 pos.y += window->DC.CurrentLineTextBaseOffset - style.FramePadding
[all...]
H A Dimgui_memory_editor.h469 ImGui::PushItemWidth((s.AddrDigitsCount + 1) * s.GlyphWidth + style.FramePadding.x * 2.0f);
501 ImGui::PushItemWidth((s.GlyphWidth * 10.0f) + style.FramePadding.x * 2.0f + style.ItemInnerSpacing.x);
511 ImGui::PushItemWidth((s.GlyphWidth * 6.0f) + style.FramePadding.x * 2.0f + style.ItemInnerSpacing.x);
H A Dimgui_internal.h1074 ImVec2 MenuBarOffset; // MenuBarOffset.x is sort of equivalent of a per-layer CursorPos.x, saved/restored as we switch to the menu bar. The only situation when MenuBarOffset.y is > 0 if when (SafeAreaPadding.y > FramePadding.y), often used on TVs.
1223 float TitleBarHeight() const { return (Flags & ImGuiWindowFlags_NoTitleBar) ? 0.0f : CalcFontSize() + GImGui->Style.FramePadding.y * 2.0f; }
1225 float MenuBarHeight() const { return (Flags & ImGuiWindowFlags_MenuBar) ? DC.MenuBarOffset.y + CalcFontSize() + GImGui->Style.FramePadding.y * 2.0f : 0.0f; }
1295 ImVec2 FramePadding; // style.FramePadding locked at the time of BeginTabBar() member in struct:ImGuiTabBar
H A Dimgui.cpp480 - 2016/01/23 (1.48) - fixed not honoring exact width passed to PushItemWidth(), previously it would add extra FramePadding.x*2 over that width. if you had manual pixel-perfect alignment in place it might affect you.
1091 FramePadding = ImVec2(4,3); // Padding within a framed rectangle (used by most widgets)
1097 IndentSpacing = 21.0f; // Horizontal spacing when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2).
1127 FramePadding = ImFloor(FramePadding * scale_factor);
4431 PushStyleVar(ImGuiStyleVar_WindowPadding, style.FramePadding);
5382 const float pad = style.FramePadding.y;
5398 float pad_left = (flags & ImGuiWindowFlags_NoCollapse) ? style.FramePadding.x : (style.FramePadding.x + g.FontSize + style.ItemInnerSpacing.x);
5399 float pad_right = (p_open == NULL) ? style.FramePadding
[all...]
H A Dimgui.h347 IMGUI_API void AlignTextToFramePadding(); // vertically align upcoming text baseline to FramePadding.y so that it will align properly to regularly framed items (call if you have text on a line before a framed item)
350 IMGUI_API float GetFrameHeight(); // ~ FontSize + style.FramePadding.y * 2
351 IMGUI_API float GetFrameHeightWithSpacing(); // ~ FontSize + style.FramePadding.y * 2 + style.ItemSpacing.y (distance in pixels between 2 consecutive lines of framed widgets)
387 IMGUI_API bool SmallButton(const char* label); // button with FramePadding=(0,0) to easily embed within text
486 IMGUI_API float GetTreeNodeToLabelSpacing(); // horizontal distance preceding label when using TreeNode*() or Bullet() == (g.FontSize + style.FramePadding.x*2) for a regular unframed TreeNode
772 ImGuiTreeNodeFlags_FramePadding = 1 << 10, // Use FramePadding (even for an unframed text node) to vertically align text baseline to regular widget height. Equivalent to calling AlignTextToFramePadding().
1073 ImGuiStyleVar_FramePadding, // ImVec2 FramePadding
1246 ImVec2 FramePadding; // Padding within a framed rectangle (used by most widgets). member in struct:ImGuiStyle
1252 float IndentSpacing; // Horizontal indentation when e.g. entering a tree node. Generally == (FontSize + FramePadding.x*2).
/xsrc/external/mit/ctwm/dist/
H A Dwin_decorations_init.c50 2 * (Scr->FramePadding + Scr->ButtonIndent));
149 Scr->TBInfo.leftx = Scr->TBInfo.rightoff = Scr->FramePadding;
H A Dctwm_main.c723 SETDEF(FramePadding, 0);
729 SETDEF(FramePadding, 2);
823 Scr->TitleBarFont.y += Scr->FramePadding;
824 Scr->TitleHeight = Scr->TitleBarFont.height + Scr->FramePadding * 2;
1174 scr->FramePadding = -100;
H A Dwin_decorations.c953 + Scr->FramePadding);
971 int h = (Scr->TitleHeight - 2 * Scr->FramePadding);
972 int y = Scr->FramePadding;
1099 int h = (Scr->TitleHeight - 2 * Scr->FramePadding);
1100 int y = Scr->FramePadding;
H A Dscreen.h772 /// FramePadding config var. Distance between titlebar contents and
774 int FramePadding; member in struct:ScreenInfo
H A Dparse_be.c1217 Scr->FramePadding = num;
H A DCHANGES.md1674 FramePadding, TitlePadding, ButtonIndent are set to 0 pixels. I am
/xsrc/external/mit/twm/dist/src/
H A Dscreen.h208 int FramePadding; /* distance between decorations and border */ member in struct:ScreenInfo
H A Dtwm.c547 Scr->TitleBarFont.y += Scr->FramePadding;
548 Scr->TitleHeight = Scr->TitleBarFont.height + Scr->FramePadding * 2;
728 Scr->FramePadding = 2; /* values that look "nice" on */
H A Dadd_window.c1114 int h = (Scr->TitleHeight - 2 * Scr->FramePadding);
1167 w = XCreateWindow(dpy, tmp_win->title_w, 0, Scr->FramePadding,
1182 Scr->TBInfo.leftx = Scr->TBInfo.rightoff = Scr->FramePadding;
1207 Scr->FramePadding);
H A Dparse.c838 Scr->FramePadding = num;
H A Dmenus.c296 2 * (Scr->FramePadding + Scr->ButtonIndent));
/xsrc/external/mit/ctwm/dist/doc/manual/
H A Dctwm.1.adoc843 FramePadding `pixels`::
1915 values of `TitleButtonBorderWidth`, `FramePadding`, `TitlePadding`

Completed in 143 milliseconds