Lines Matching defs:thickness
716 void ImDrawList::AddPolyline(const ImVec2* points, const int points_count, ImU32 col, ImDrawFlags flags, float thickness)
724 const bool thick_line = (thickness > _FringeScale);
732 // Thicknesses <1.0 should behave like thickness 1.0
733 thickness = ImMax(thickness, 1.0f);
734 const int integer_thickness = (int)thickness;
735 const float fractional_thickness = thickness - integer_thickness;
773 // The width of the geometry we need to draw - this is essentially <thickness> pixels for the line itself, plus "one pixel" for AA.
778 const float half_draw_size = use_texture ? ((thickness * 0.5f) + 1) : AA_SIZE;
869 const float half_inner_thickness = (thickness - AA_SIZE) * 0.5f;
954 dx *= (thickness * 0.5f);
955 dy *= (thickness * 0.5f);
1377 void ImDrawList::AddLine(const ImVec2& p1, const ImVec2& p2, ImU32 col, float thickness)
1383 PathStroke(col, 0, thickness);
1388 void ImDrawList::AddRect(const ImVec2& p_min, const ImVec2& p_max, ImU32 col, float rounding, ImDrawFlags flags, float thickness)
1396 PathStroke(col, ImDrawFlags_Closed, thickness);
1431 void ImDrawList::AddQuad(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness)
1440 PathStroke(col, ImDrawFlags_Closed, thickness);
1455 void ImDrawList::AddTriangle(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness)
1463 PathStroke(col, ImDrawFlags_Closed, thickness);
1477 void ImDrawList::AddCircle(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness)
1498 PathStroke(col, ImDrawFlags_Closed, thickness);
1526 void ImDrawList::AddNgon(const ImVec2& center, float radius, ImU32 col, int num_segments, float thickness)
1534 PathStroke(col, ImDrawFlags_Closed, thickness);
1550 void ImDrawList::AddBezierCubic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, ImU32 col, float thickness, int num_segments)
1557 PathStroke(col, 0, thickness);
1561 void ImDrawList::AddBezierQuadratic(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, ImU32 col, float thickness, int num_segments)
1568 PathStroke(col, 0, thickness);
3780 float thickness = ImMax(sz / 5.0f, 1.0f);
3781 sz -= thickness * 0.5f;
3782 pos += ImVec2(thickness * 0.25f, thickness * 0.25f);
3790 draw_list->PathStroke(col, 0, thickness);